@nous-excalidraw/math 0.18.1 → 0.18.2-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.
|
@@ -224,8 +224,21 @@ export declare const TOUCH_CTX_MENU_TIMEOUT = 500;
|
|
|
224
224
|
export declare const TITLE_TIMEOUT = 10000;
|
|
225
225
|
export declare const VERSION_TIMEOUT = 30000;
|
|
226
226
|
export declare const SCROLL_TIMEOUT = 100;
|
|
227
|
-
|
|
228
|
-
export declare const
|
|
227
|
+
/** Finest zoom increment (1%). Used when current zoom is below 10%; also for rounding fit-to-view zoom. */
|
|
228
|
+
export declare const ZOOM_STEP = 0.01;
|
|
229
|
+
/** Coarser zoom increment (10%). Used when current zoom is at or above 10%. */
|
|
230
|
+
export declare const ZOOM_STEP_COARSE = 0.1;
|
|
231
|
+
/** Zoom fraction from which interactive zoom uses {@link ZOOM_STEP_COARSE} (10% inclusive). */
|
|
232
|
+
export declare const ZOOM_STEP_COARSE_THRESHOLD = 0.1;
|
|
233
|
+
/**
|
|
234
|
+
* Interactive zoom step by direction:
|
|
235
|
+
* - zoom in: 10% when current zoom is at or above 10%
|
|
236
|
+
* - zoom out: 10% only when current zoom is above 10%
|
|
237
|
+
*/
|
|
238
|
+
export declare const getInteractiveZoomStep: (zoomValue: number, direction?: "in" | "out") => number;
|
|
239
|
+
/** Initial canvas zoom on app start (15%). */
|
|
240
|
+
export declare const INITIAL_CANVAS_ZOOM = 0.15;
|
|
241
|
+
export declare const MIN_ZOOM = 0.02;
|
|
229
242
|
export declare const MAX_ZOOM = 30;
|
|
230
243
|
export declare const HYPERLINK_TOOLTIP_DELAY = 300;
|
|
231
244
|
export declare const IDLE_THRESHOLD = 60000;
|
|
@@ -397,7 +397,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
397
397
|
fitToContent?: never;
|
|
398
398
|
fitToViewport?: boolean;
|
|
399
399
|
/** when fitToViewport=true, how much screen should the content cover,
|
|
400
|
-
* between 0.
|
|
400
|
+
* between 0.02 (2%) and 1 (100%)
|
|
401
401
|
*/
|
|
402
402
|
viewportZoomFactor?: number;
|
|
403
403
|
animate?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nous-excalidraw/math",
|
|
3
|
-
"version": "0.18.1",
|
|
3
|
+
"version": "0.18.2-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/math/src/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"build:esm": "rimraf dist && node ../../scripts/buildBase.js && yarn gen:types"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nous-excalidraw/common": "0.18.1"
|
|
64
|
+
"@nous-excalidraw/common": "0.18.2-beta.1"
|
|
65
65
|
}
|
|
66
66
|
}
|