@windoc/react 0.3.16 → 0.3.17
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.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2494,6 +2494,8 @@ function EditorInner({
|
|
|
2494
2494
|
{ maskMargin: [24, 0, 24, 0], ...userOptions }
|
|
2495
2495
|
);
|
|
2496
2496
|
editorRef.current = instance;
|
|
2497
|
+
const initialScale = userOptions?.scale ?? 1;
|
|
2498
|
+
setPageScale(Math.round(initialScale * 100));
|
|
2497
2499
|
instance.listener.rangeStyleChange = (payload) => {
|
|
2498
2500
|
setRangeStyle(payload);
|
|
2499
2501
|
onRangeStyleChange?.(payload);
|