@windoc/react 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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2465,6 +2465,12 @@ function EditorInner({
|
|
|
2465
2465
|
instance.listener.pageScaleChange = (payload) => {
|
|
2466
2466
|
setPageScale(Math.floor(payload * 10 * 10));
|
|
2467
2467
|
};
|
|
2468
|
+
instance.listener.optionsChange = (payload) => {
|
|
2469
|
+
setPageScale(Math.round(payload.scale * 100));
|
|
2470
|
+
setPaperDirection(payload.paperDirection);
|
|
2471
|
+
setPaperWidth(payload.width);
|
|
2472
|
+
setPaperHeight(payload.height);
|
|
2473
|
+
};
|
|
2468
2474
|
instance.listener.contentChange = async () => {
|
|
2469
2475
|
const count2 = await instance?.command.getWordCount();
|
|
2470
2476
|
setWordCount(count2 || 0);
|