@nous-excalidraw/excalidraw 0.18.3 → 0.18.4-beta.1
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/dev/{chunk-4Q2BPT5H.js → chunk-HYSOV766.js} +3 -3
- package/dist/dev/{chunk-GDIPPJNS.js → chunk-IST5D4R6.js} +2 -2
- package/dist/dev/{chunk-GDIPPJNS.js.map → chunk-IST5D4R6.js.map} +1 -1
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-R36AGSC4.js → CodeMirrorEditor-RMFUAVMX.js} +2 -2
- package/dist/dev/data/{image-X4CDE7NB.js → image-SFAHFWOG.js} +3 -3
- package/dist/dev/index.js +72 -19
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-CB2MQ4HV.js → chunk-GMLUU6HI.js} +1 -1
- package/dist/prod/{chunk-J2BPLTM2.js → chunk-UE62H3PW.js} +2 -2
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-G35LGI2J.js → CodeMirrorEditor-RNDHUBRP.js} +1 -1
- package/dist/prod/data/image-JU7M5XRY.js +1 -0
- package/dist/prod/index.js +25 -25
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +15 -2
- package/dist/types/excalidraw/components/App.d.ts +1 -1
- package/package.json +4 -4
- package/dist/prod/data/image-D2WHTCDO.js +0 -1
- /package/dist/dev/{chunk-4Q2BPT5H.js.map → chunk-HYSOV766.js.map} +0 -0
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-R36AGSC4.js.map → CodeMirrorEditor-RMFUAVMX.js.map} +0 -0
- /package/dist/dev/data/{image-X4CDE7NB.js.map → image-SFAHFWOG.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IST5D4R6.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5085,7 +5085,7 @@ var parseFileContents = async (blob) => {
|
|
|
5085
5085
|
let contents;
|
|
5086
5086
|
if (blob.type === MIME_TYPES6.png) {
|
|
5087
5087
|
try {
|
|
5088
|
-
return await (await import("./data/image-
|
|
5088
|
+
return await (await import("./data/image-SFAHFWOG.js")).decodePngMetadata(blob);
|
|
5089
5089
|
} catch (error) {
|
|
5090
5090
|
if (error.message === "INVALID") {
|
|
5091
5091
|
throw new ImageSceneDataError(
|
|
@@ -5519,4 +5519,4 @@ export {
|
|
|
5519
5519
|
createFile,
|
|
5520
5520
|
normalizeFile
|
|
5521
5521
|
};
|
|
5522
|
-
//# sourceMappingURL=chunk-
|
|
5522
|
+
//# sourceMappingURL=chunk-HYSOV766.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.4", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-IST5D4R6.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["<define:import.meta.env>"],
|
|
4
4
|
"sourcesContent": [""],
|
|
5
|
-
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,+BAA8B,aAAc,
|
|
5
|
+
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,+BAA8B,aAAc,UAAS,KAAM,KAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/dev/components/TTDDialog/{CodeMirrorEditor-R36AGSC4.js → CodeMirrorEditor-RMFUAVMX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-IST5D4R6.js";
|
|
2
2
|
import "../../chunk-XDFCUUT6.js";
|
|
3
3
|
|
|
4
4
|
// components/TTDDialog/CodeMirrorEditor.tsx
|
|
@@ -256,4 +256,4 @@ var CodeMirrorEditor_default = CodeMirrorEditor;
|
|
|
256
256
|
export {
|
|
257
257
|
CodeMirrorEditor_default as default
|
|
258
258
|
};
|
|
259
|
-
//# sourceMappingURL=CodeMirrorEditor-
|
|
259
|
+
//# sourceMappingURL=CodeMirrorEditor-RMFUAVMX.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-HYSOV766.js";
|
|
6
|
+
import "../chunk-IST5D4R6.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-SFAHFWOG.js.map
|
package/dist/dev/index.js
CHANGED
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
serializeAsJSON,
|
|
66
66
|
serializeLibraryAsJSON,
|
|
67
67
|
strokeRectWithRotation_simple
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HYSOV766.js";
|
|
69
69
|
import {
|
|
70
70
|
define_import_meta_env_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-IST5D4R6.js";
|
|
72
72
|
import {
|
|
73
73
|
en_default
|
|
74
74
|
} from "./chunk-4JOINNOK.js";
|
|
@@ -142,7 +142,8 @@ import {
|
|
|
142
142
|
TOUCH_CTX_MENU_TIMEOUT,
|
|
143
143
|
VERTICAL_ALIGN as VERTICAL_ALIGN5,
|
|
144
144
|
YOUTUBE_STATES,
|
|
145
|
-
|
|
145
|
+
getInteractiveZoomStep as getInteractiveZoomStep2,
|
|
146
|
+
INITIAL_CANVAS_ZOOM,
|
|
146
147
|
POINTER_EVENTS,
|
|
147
148
|
TOOL_TYPE as TOOL_TYPE3,
|
|
148
149
|
supportsResizeObserver as supportsResizeObserver2,
|
|
@@ -7878,6 +7879,7 @@ import {
|
|
|
7878
7879
|
MIN_ZOOM,
|
|
7879
7880
|
THEME as THEME5,
|
|
7880
7881
|
ZOOM_STEP,
|
|
7882
|
+
getInteractiveZoomStep,
|
|
7881
7883
|
updateActiveTool as updateActiveTool2,
|
|
7882
7884
|
CODES as CODES2,
|
|
7883
7885
|
KEYS as KEYS12
|
|
@@ -8147,7 +8149,9 @@ var actionZoomIn = register({
|
|
|
8147
8149
|
{
|
|
8148
8150
|
viewportX: appState.width / 2 + appState.offsetLeft,
|
|
8149
8151
|
viewportY: appState.height / 2 + appState.offsetTop,
|
|
8150
|
-
nextZoom: getNormalizedZoom(
|
|
8152
|
+
nextZoom: getNormalizedZoom(
|
|
8153
|
+
appState.zoom.value + getInteractiveZoomStep(appState.zoom.value)
|
|
8154
|
+
)
|
|
8151
8155
|
},
|
|
8152
8156
|
appState
|
|
8153
8157
|
),
|
|
@@ -8186,7 +8190,9 @@ var actionZoomOut = register({
|
|
|
8186
8190
|
{
|
|
8187
8191
|
viewportX: appState.width / 2 + appState.offsetLeft,
|
|
8188
8192
|
viewportY: appState.height / 2 + appState.offsetTop,
|
|
8189
|
-
nextZoom: getNormalizedZoom(
|
|
8193
|
+
nextZoom: getNormalizedZoom(
|
|
8194
|
+
appState.zoom.value - getInteractiveZoomStep(appState.zoom.value, "out")
|
|
8195
|
+
)
|
|
8190
8196
|
},
|
|
8191
8197
|
appState
|
|
8192
8198
|
),
|
|
@@ -9630,7 +9636,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9630
9636
|
let blob = canvasToBlob(tempCanvas);
|
|
9631
9637
|
if (appState.exportEmbedScene) {
|
|
9632
9638
|
blob = blob.then(
|
|
9633
|
-
(blob2) => import("./data/image-
|
|
9639
|
+
(blob2) => import("./data/image-SFAHFWOG.js").then(
|
|
9634
9640
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9635
9641
|
blob: blob2,
|
|
9636
9642
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -17924,11 +17930,20 @@ var ShapesSwitcher = ({
|
|
|
17924
17930
|
var ZoomActions = ({
|
|
17925
17931
|
renderAction,
|
|
17926
17932
|
zoom
|
|
17927
|
-
}) => /* @__PURE__ */ jsx76(
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
|
|
17933
|
+
}) => /* @__PURE__ */ jsx76(
|
|
17934
|
+
"div",
|
|
17935
|
+
{
|
|
17936
|
+
className: CLASSES5.ZOOM_ACTIONS,
|
|
17937
|
+
onPointerDown: (event) => event.stopPropagation(),
|
|
17938
|
+
onClick: (event) => event.stopPropagation(),
|
|
17939
|
+
onDoubleClick: (event) => event.stopPropagation(),
|
|
17940
|
+
children: /* @__PURE__ */ jsx76(Stack_default.Col, { gap: 1, children: /* @__PURE__ */ jsxs43(Stack_default.Row, { align: "center", children: [
|
|
17941
|
+
renderAction("zoomOut"),
|
|
17942
|
+
renderAction("resetZoom"),
|
|
17943
|
+
renderAction("zoomIn")
|
|
17944
|
+
] }) })
|
|
17945
|
+
}
|
|
17946
|
+
);
|
|
17932
17947
|
var UndoRedoActions = ({
|
|
17933
17948
|
renderAction,
|
|
17934
17949
|
className
|
|
@@ -28481,7 +28496,7 @@ var TTDDialogInput = ({
|
|
|
28481
28496
|
setShowSpinner(true);
|
|
28482
28497
|
}
|
|
28483
28498
|
}, SPINNER_DELAY_MS);
|
|
28484
|
-
import("./components/TTDDialog/CodeMirrorEditor-
|
|
28499
|
+
import("./components/TTDDialog/CodeMirrorEditor-RMFUAVMX.js").then((mod) => {
|
|
28485
28500
|
if (!cancelled) {
|
|
28486
28501
|
setEditorState({ type: "ready", component: mod.default });
|
|
28487
28502
|
}
|
|
@@ -38128,6 +38143,37 @@ var App = class _App extends React46.Component {
|
|
|
38128
38143
|
})
|
|
38129
38144
|
};
|
|
38130
38145
|
}
|
|
38146
|
+
const initialZoomValue = getNormalizedZoom(INITIAL_CANVAS_ZOOM);
|
|
38147
|
+
const nonDeletedRestoredElements = restoredElements.filter(
|
|
38148
|
+
(element) => !element.isDeleted
|
|
38149
|
+
);
|
|
38150
|
+
if (nonDeletedRestoredElements.length) {
|
|
38151
|
+
const { appState: fittedAppState } = zoomToFit({
|
|
38152
|
+
targetElements: nonDeletedRestoredElements,
|
|
38153
|
+
appState: {
|
|
38154
|
+
...restoredAppState,
|
|
38155
|
+
width: this.state.width,
|
|
38156
|
+
height: this.state.height,
|
|
38157
|
+
offsetTop: this.state.offsetTop,
|
|
38158
|
+
offsetLeft: this.state.offsetLeft,
|
|
38159
|
+
zoom: { value: initialZoomValue }
|
|
38160
|
+
},
|
|
38161
|
+
fitToViewport: false,
|
|
38162
|
+
maxZoom: initialZoomValue,
|
|
38163
|
+
canvasOffsets: this.getEditorUIOffsets()
|
|
38164
|
+
});
|
|
38165
|
+
restoredAppState = {
|
|
38166
|
+
...restoredAppState,
|
|
38167
|
+
scrollX: fittedAppState.scrollX,
|
|
38168
|
+
scrollY: fittedAppState.scrollY,
|
|
38169
|
+
zoom: fittedAppState.zoom
|
|
38170
|
+
};
|
|
38171
|
+
} else {
|
|
38172
|
+
restoredAppState = {
|
|
38173
|
+
...restoredAppState,
|
|
38174
|
+
zoom: { value: initialZoomValue }
|
|
38175
|
+
};
|
|
38176
|
+
}
|
|
38131
38177
|
this.resetStore();
|
|
38132
38178
|
this.resetHistory();
|
|
38133
38179
|
this.syncActionResult({
|
|
@@ -39679,6 +39725,10 @@ var App = class _App extends React46.Component {
|
|
|
39679
39725
|
event,
|
|
39680
39726
|
this.state
|
|
39681
39727
|
);
|
|
39728
|
+
const hitElement = this.getElementAtPosition(sceneX, sceneY);
|
|
39729
|
+
if (hitElement) {
|
|
39730
|
+
return;
|
|
39731
|
+
}
|
|
39682
39732
|
if (selectedElements.length === 1 && isLinearElement12(selectedElements[0])) {
|
|
39683
39733
|
const selectedLinearElement = selectedElements[0];
|
|
39684
39734
|
if ((event[KEYS55.CTRL_OR_CMD] && isSimpleArrow(selectedLinearElement) || isLineElement8(selectedLinearElement)) && (!this.state.selectedLinearElement?.isEditing || this.state.selectedLinearElement.elementId !== selectedLinearElement.id)) {
|
|
@@ -39756,8 +39806,8 @@ var App = class _App extends React46.Component {
|
|
|
39756
39806
|
resetCursor(this.interactiveCanvas);
|
|
39757
39807
|
const selectedGroupIds = getSelectedGroupIds4(this.state);
|
|
39758
39808
|
if (selectedGroupIds.length > 0) {
|
|
39759
|
-
const
|
|
39760
|
-
const selectedGroupId =
|
|
39809
|
+
const hitElement2 = this.getElementAtPosition(sceneX, sceneY);
|
|
39810
|
+
const selectedGroupId = hitElement2 && getSelectedGroupIdForElement(hitElement2, this.state.selectedGroupIds);
|
|
39761
39811
|
if (selectedGroupId) {
|
|
39762
39812
|
this.store.scheduleCapture();
|
|
39763
39813
|
this.setState((prevState) => ({
|
|
@@ -39765,7 +39815,7 @@ var App = class _App extends React46.Component {
|
|
|
39765
39815
|
...selectGroupsForSelectedElements7(
|
|
39766
39816
|
{
|
|
39767
39817
|
editingGroupId: selectedGroupId,
|
|
39768
|
-
selectedElementIds: { [
|
|
39818
|
+
selectedElementIds: { [hitElement2.id]: true }
|
|
39769
39819
|
},
|
|
39770
39820
|
this.scene.getNonDeletedElements(),
|
|
39771
39821
|
prevState,
|
|
@@ -39777,10 +39827,10 @@ var App = class _App extends React46.Component {
|
|
|
39777
39827
|
}
|
|
39778
39828
|
resetCursor(this.interactiveCanvas);
|
|
39779
39829
|
if (!event[KEYS55.CTRL_OR_CMD] && !this.state.viewModeEnabled) {
|
|
39780
|
-
const
|
|
39781
|
-
if (isIframeLikeElement2(
|
|
39830
|
+
const hitElement2 = this.getElementAtPosition(sceneX, sceneY);
|
|
39831
|
+
if (isIframeLikeElement2(hitElement2)) {
|
|
39782
39832
|
this.setState({
|
|
39783
|
-
activeEmbeddable: { element:
|
|
39833
|
+
activeEmbeddable: { element: hitElement2, state: "active" }
|
|
39784
39834
|
});
|
|
39785
39835
|
return;
|
|
39786
39836
|
}
|
|
@@ -42510,7 +42560,10 @@ var App = class _App extends React46.Component {
|
|
|
42510
42560
|
const { deltaX, deltaY } = event;
|
|
42511
42561
|
if (event.metaKey || event.ctrlKey) {
|
|
42512
42562
|
const sign = Math.sign(deltaY);
|
|
42513
|
-
const MAX_STEP =
|
|
42563
|
+
const MAX_STEP = getInteractiveZoomStep2(
|
|
42564
|
+
this.state.zoom.value,
|
|
42565
|
+
sign > 0 ? "out" : "in"
|
|
42566
|
+
) * 100;
|
|
42514
42567
|
const absDelta = Math.abs(deltaY);
|
|
42515
42568
|
let delta = deltaY;
|
|
42516
42569
|
if (absDelta > MAX_STEP) {
|