@design.estate/dees-document 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +1 -2
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/page.js +3 -3
- package/dist_watch/bundle.js +4 -1
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/page.ts +2 -2
package/dist_bundle/bundle.js
CHANGED
|
@@ -513,10 +513,9 @@ EPC QR Code`,i=>{i&&console.error(i),console.log("success!")}),r.currentContent.
|
|
|
513
513
|
`:J` <slot></slot> `}
|
|
514
514
|
</dedocument-pagecontainer>
|
|
515
515
|
</div>
|
|
516
|
-
`}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/oe.a4Height:this.viewWidth&&(n=this.viewWidth/oe.a4Width),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${oe.a4Height*n}px`}};ct.demo=()=>J` <dedocument-page .format="${"a4"}"></dedocument-page> `,ct.styles=[ye.elementBasic.staticStyles,xe`
|
|
516
|
+
`}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/oe.a4Height:this.viewWidth&&(n=this.viewWidth/oe.a4Width),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.overflow="hidden",this.style.width=`${oe.a4Width*n}px`,this.style.height=`${oe.a4Height*n}px`}};ct.demo=()=>J` <dedocument-page .format="${"a4"}"></dedocument-page> `,ct.styles=[ye.elementBasic.staticStyles,xe`
|
|
517
517
|
:host {
|
|
518
518
|
display: block;
|
|
519
|
-
font-family: inherit;
|
|
520
519
|
}
|
|
521
520
|
|
|
522
521
|
#scaleWrapper {
|