@windoc/core 0.3.18 → 0.3.19

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/index.d.mts CHANGED
@@ -1548,6 +1548,13 @@ type IControlChange = (payload: IControlChangeResult) => void;
1548
1548
  type IControlContentChange = (payload: IControlContentChangeResult) => void;
1549
1549
  type IPageModeChange = (payload: PageMode) => void;
1550
1550
  type IZoneChange = (payload: EditorZone) => void;
1551
+ interface IOptionsChangePayload {
1552
+ scale: number;
1553
+ paperDirection: string;
1554
+ width: number;
1555
+ height: number;
1556
+ }
1557
+ type IOptionsChange = (payload: IOptionsChangePayload) => void;
1551
1558
  type IMouseEventChange = (evt: MouseEvent) => void;
1552
1559
  type IInputEventChange = (evt: Event) => void;
1553
1560
  interface IPositionContextChangePayload {
@@ -1583,6 +1590,7 @@ declare class Listener {
1583
1590
  controlContentChange: IControlContentChange | null;
1584
1591
  pageModeChange: IPageModeChange | null;
1585
1592
  zoneChange: IZoneChange | null;
1593
+ optionsChange: IOptionsChange | null;
1586
1594
  constructor();
1587
1595
  }
1588
1596
 
package/dist/index.d.ts CHANGED
@@ -1548,6 +1548,13 @@ type IControlChange = (payload: IControlChangeResult) => void;
1548
1548
  type IControlContentChange = (payload: IControlContentChangeResult) => void;
1549
1549
  type IPageModeChange = (payload: PageMode) => void;
1550
1550
  type IZoneChange = (payload: EditorZone) => void;
1551
+ interface IOptionsChangePayload {
1552
+ scale: number;
1553
+ paperDirection: string;
1554
+ width: number;
1555
+ height: number;
1556
+ }
1557
+ type IOptionsChange = (payload: IOptionsChangePayload) => void;
1551
1558
  type IMouseEventChange = (evt: MouseEvent) => void;
1552
1559
  type IInputEventChange = (evt: Event) => void;
1553
1560
  interface IPositionContextChangePayload {
@@ -1583,6 +1590,7 @@ declare class Listener {
1583
1590
  controlContentChange: IControlContentChange | null;
1584
1591
  pageModeChange: IPageModeChange | null;
1585
1592
  zoneChange: IZoneChange | null;
1593
+ optionsChange: IOptionsChange | null;
1586
1594
  constructor();
1587
1595
  }
1588
1596
 
package/dist/index.js CHANGED
@@ -78,7 +78,7 @@ __export(index_exports, {
78
78
  module.exports = __toCommonJS(index_exports);
79
79
 
80
80
  // src/version.ts
81
- var version = "0.3.18";
81
+ var version = "0.3.19";
82
82
 
83
83
  // src/dataset/enum/Common.ts
84
84
  var MaxHeightRatio = /* @__PURE__ */ ((MaxHeightRatio2) => {
@@ -24867,6 +24867,8 @@ var CommandAdapt = class {
24867
24867
  Reflect.set(this.options, key, newOption[key]);
24868
24868
  });
24869
24869
  this.forceUpdate();
24870
+ const { scale, paperDirection, width, height } = this.options;
24871
+ this.draw.getListener().optionsChange?.({ scale, paperDirection, width, height });
24870
24872
  }
24871
24873
  getControlList() {
24872
24874
  return this.draw.getControl().getList();
@@ -25242,6 +25244,7 @@ var Listener = class {
25242
25244
  this.controlContentChange = null;
25243
25245
  this.pageModeChange = null;
25244
25246
  this.zoneChange = null;
25247
+ this.optionsChange = null;
25245
25248
  }
25246
25249
  };
25247
25250