const
This commit is contained in:
parent
eef9662195
commit
22c57c8f4a
@ -51,7 +51,7 @@ import {
|
|||||||
GRID_SIZE,
|
GRID_SIZE,
|
||||||
LINE_CONFIRM_THRESHOLD,
|
LINE_CONFIRM_THRESHOLD,
|
||||||
MIME_TYPES,
|
MIME_TYPES,
|
||||||
NETWORK_SPEED_THRESHOLD,
|
NETWORK_SPEED_TIMEOUT_MS,
|
||||||
POINTER_BUTTON,
|
POINTER_BUTTON,
|
||||||
TAP_TWICE_TIMEOUT,
|
TAP_TWICE_TIMEOUT,
|
||||||
TEXT_TO_CENTER_SNAP_THRESHOLD,
|
TEXT_TO_CENTER_SNAP_THRESHOLD,
|
||||||
@ -1036,7 +1036,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
this.setState({ networkSpeed });
|
this.setState({ networkSpeed });
|
||||||
this.netStatsIntervalId = setTimeout(
|
this.netStatsIntervalId = setTimeout(
|
||||||
this.calculateNetStats,
|
this.calculateNetStats,
|
||||||
NETWORK_SPEED_THRESHOLD,
|
NETWORK_SPEED_TIMEOUT_MS,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ export const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
|
|||||||
export const ELEMENT_TRANSLATE_AMOUNT = 1;
|
export const ELEMENT_TRANSLATE_AMOUNT = 1;
|
||||||
export const TEXT_TO_CENTER_SNAP_THRESHOLD = 30;
|
export const TEXT_TO_CENTER_SNAP_THRESHOLD = 30;
|
||||||
export const SHIFT_LOCKING_ANGLE = Math.PI / 12;
|
export const SHIFT_LOCKING_ANGLE = Math.PI / 12;
|
||||||
export const NETWORK_SPEED_THRESHOLD = 5000;
|
export const NETWORK_SPEED_TIMEOUT_MS = 5000;
|
||||||
|
|
||||||
export const CURSOR_TYPE = {
|
export const CURSOR_TYPE = {
|
||||||
TEXT: "text",
|
TEXT: "text",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user