@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.mjs CHANGED
@@ -2414,6 +2414,8 @@ function EditorInner({
2414
2414
  { maskMargin: [24, 0, 24, 0], ...userOptions }
2415
2415
  );
2416
2416
  editorRef.current = instance;
2417
+ const initialScale = userOptions?.scale ?? 1;
2418
+ setPageScale(Math.round(initialScale * 100));
2417
2419
  instance.listener.rangeStyleChange = (payload) => {
2418
2420
  setRangeStyle(payload);
2419
2421
  onRangeStyleChange?.(payload);