[d565449] | 1 | import {
|
---|
| 2 | __commonJS
|
---|
| 3 | } from "./chunk-V4OQ3NZ2.js";
|
---|
| 4 |
|
---|
| 5 | // node_modules/konva/lib/Global.js
|
---|
| 6 | var require_Global = __commonJS({
|
---|
| 7 | "node_modules/konva/lib/Global.js"(exports) {
|
---|
| 8 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 9 | exports._registerNode = exports.Konva = exports.glob = void 0;
|
---|
| 10 | var PI_OVER_180 = Math.PI / 180;
|
---|
| 11 | function detectBrowser() {
|
---|
| 12 | return typeof window !== "undefined" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
---|
| 13 | }
|
---|
| 14 | exports.glob = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" ? self : {};
|
---|
| 15 | exports.Konva = {
|
---|
| 16 | _global: exports.glob,
|
---|
| 17 | version: "9.3.14",
|
---|
| 18 | isBrowser: detectBrowser(),
|
---|
| 19 | isUnminified: /param/.test((function(param) {
|
---|
| 20 | }).toString()),
|
---|
| 21 | dblClickWindow: 400,
|
---|
| 22 | getAngle(angle) {
|
---|
| 23 | return exports.Konva.angleDeg ? angle * PI_OVER_180 : angle;
|
---|
| 24 | },
|
---|
| 25 | enableTrace: false,
|
---|
| 26 | pointerEventsEnabled: true,
|
---|
| 27 | autoDrawEnabled: true,
|
---|
| 28 | hitOnDragEnabled: false,
|
---|
| 29 | capturePointerEventsEnabled: false,
|
---|
| 30 | _mouseListenClick: false,
|
---|
| 31 | _touchListenClick: false,
|
---|
| 32 | _pointerListenClick: false,
|
---|
| 33 | _mouseInDblClickWindow: false,
|
---|
| 34 | _touchInDblClickWindow: false,
|
---|
| 35 | _pointerInDblClickWindow: false,
|
---|
| 36 | _mouseDblClickPointerId: null,
|
---|
| 37 | _touchDblClickPointerId: null,
|
---|
| 38 | _pointerDblClickPointerId: null,
|
---|
| 39 | _fixTextRendering: false,
|
---|
| 40 | pixelRatio: typeof window !== "undefined" && window.devicePixelRatio || 1,
|
---|
| 41 | dragDistance: 3,
|
---|
| 42 | angleDeg: true,
|
---|
| 43 | showWarnings: true,
|
---|
| 44 | dragButtons: [0, 1],
|
---|
| 45 | isDragging() {
|
---|
| 46 | return exports.Konva["DD"].isDragging;
|
---|
| 47 | },
|
---|
| 48 | isTransforming() {
|
---|
| 49 | var _a;
|
---|
| 50 | return (_a = exports.Konva["Transformer"]) === null || _a === void 0 ? void 0 : _a.isTransforming();
|
---|
| 51 | },
|
---|
| 52 | isDragReady() {
|
---|
| 53 | return !!exports.Konva["DD"].node;
|
---|
| 54 | },
|
---|
| 55 | releaseCanvasOnDestroy: true,
|
---|
| 56 | document: exports.glob.document,
|
---|
| 57 | _injectGlobal(Konva) {
|
---|
| 58 | exports.glob.Konva = Konva;
|
---|
| 59 | }
|
---|
| 60 | };
|
---|
| 61 | var _registerNode = (NodeClass) => {
|
---|
| 62 | exports.Konva[NodeClass.prototype.getClassName()] = NodeClass;
|
---|
| 63 | };
|
---|
| 64 | exports._registerNode = _registerNode;
|
---|
| 65 | exports.Konva._injectGlobal(exports.Konva);
|
---|
| 66 | }
|
---|
| 67 | });
|
---|
| 68 |
|
---|
| 69 | export {
|
---|
| 70 | require_Global
|
---|
| 71 | };
|
---|
| 72 | //# sourceMappingURL=chunk-M3JPOOL7.js.map
|
---|