UNPKG

@tldraw/editor

Version:

tldraw infinite canvas SDK (editor).

73 lines (72 loc) 2.33 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var options_exports = {}; __export(options_exports, { defaultTldrawOptions: () => defaultTldrawOptions }); module.exports = __toCommonJS(options_exports); var import_react = require("react"); const defaultTldrawOptions = { maxShapesPerPage: 4e3, maxFilesAtOnce: 100, maxPages: 40, animationMediumMs: 320, followChaseViewportSnap: 2, doubleClickDurationMs: 450, multiClickDurationMs: 200, coarseDragDistanceSquared: 36, // 6 squared dragDistanceSquared: 16, // 4 squared defaultSvgPadding: 32, cameraSlideFriction: 0.09, gridSteps: [ { min: -1, mid: 0.15, step: 64 }, { min: 0.05, mid: 0.375, step: 16 }, { min: 0.15, mid: 1, step: 4 }, { min: 0.7, mid: 2.5, step: 1 } ], collaboratorInactiveTimeoutMs: 6e4, collaboratorIdleTimeoutMs: 3e3, collaboratorCheckIntervalMs: 1200, cameraMovingTimeoutMs: 64, hitTestMargin: 8, edgeScrollDelay: 200, edgeScrollEaseDuration: 200, edgeScrollSpeed: 25, edgeScrollDistance: 8, coarsePointerWidth: 12, coarseHandleRadius: 20, handleRadius: 12, longPressDurationMs: 500, textShadowLod: 0.35, adjacentShapeMargin: 10, flattenImageBoundsExpand: 64, flattenImageBoundsPadding: 16, laserDelayMs: 1200, maxExportDelayMs: 5e3, temporaryAssetPreviewLifetimeMs: 18e4, actionShortcutsLocation: "swap", createTextOnCanvasDoubleClick: true, exportProvider: import_react.Fragment, enableToolbarKeyboardShortcuts: true, maxFontsToLoadBeforeRender: Infinity, nonce: void 0 }; //# sourceMappingURL=options.js.map