@tmagic/stage 1.8.0-manmanyu.8 → 1.8.0
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/es/ActionManager.js +14 -6
- package/dist/es/MoveableOptionsManager.js +4 -2
- package/dist/es/StageCore.js +14 -2
- package/dist/es/StageDragResize.js +12 -9
- package/dist/es/StageFlashHighlight.js +1 -1
- package/dist/es/StageMask.js +39 -9
- package/dist/es/index.js +2 -2
- package/dist/es/util.js +28 -1
- package/dist/tmagic-stage.umd.cjs +264 -149
- package/package.json +5 -5
- package/src/ActionManager.ts +20 -8
- package/src/StageCore.ts +23 -2
- package/src/StageMask.ts +55 -10
- package/src/types.ts +14 -1
- package/src/util.ts +43 -1
- package/types/index.d.ts +124 -97
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
return to;
|
|
33
33
|
};
|
|
34
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
34
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
35
35
|
value: mod,
|
|
36
36
|
enumerable: true
|
|
37
37
|
}) : target, mod));
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
moveable_helper = __toESM(moveable_helper, 1);
|
|
42
42
|
moveable = __toESM(moveable, 1);
|
|
43
43
|
_scena_guides = __toESM(_scena_guides, 1);
|
|
44
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
44
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
45
45
|
/** Detect free variable `global` from Node.js. */
|
|
46
46
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
48
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
49
49
|
/** Detect free variable `self`. */
|
|
50
50
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
51
51
|
/** Used as a reference to the global object. */
|
|
52
52
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
54
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
55
55
|
/** Built-in value references. */
|
|
56
56
|
var Symbol$1 = root.Symbol;
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
58
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
59
59
|
/** Used for built-in method references. */
|
|
60
60
|
var objectProto$4 = Object.prototype;
|
|
61
61
|
/** Used to check objects for own properties. */
|
|
@@ -82,12 +82,14 @@
|
|
|
82
82
|
var unmasked = true;
|
|
83
83
|
} catch (e) {}
|
|
84
84
|
var result = nativeObjectToString$1.call(value);
|
|
85
|
-
if (unmasked)
|
|
86
|
-
|
|
85
|
+
if (unmasked) {
|
|
86
|
+
if (isOwn) value[symToStringTag$1] = tag;
|
|
87
|
+
else delete value[symToStringTag$1];
|
|
88
|
+
}
|
|
87
89
|
return result;
|
|
88
90
|
}
|
|
89
91
|
//#endregion
|
|
90
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
92
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
91
93
|
/**
|
|
92
94
|
* Used to resolve the
|
|
93
95
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
@@ -105,9 +107,10 @@
|
|
|
105
107
|
return nativeObjectToString.call(value);
|
|
106
108
|
}
|
|
107
109
|
//#endregion
|
|
108
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
110
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
109
111
|
/** `Object#toString` result references. */
|
|
110
|
-
var nullTag = "[object Null]"
|
|
112
|
+
var nullTag = "[object Null]";
|
|
113
|
+
var undefinedTag = "[object Undefined]";
|
|
111
114
|
/** Built-in value references. */
|
|
112
115
|
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
113
116
|
/**
|
|
@@ -122,7 +125,7 @@
|
|
|
122
125
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
123
126
|
}
|
|
124
127
|
//#endregion
|
|
125
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
128
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
126
129
|
/**
|
|
127
130
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
128
131
|
* and has a `typeof` result of "object".
|
|
@@ -151,7 +154,7 @@
|
|
|
151
154
|
return value != null && typeof value == "object";
|
|
152
155
|
}
|
|
153
156
|
//#endregion
|
|
154
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
157
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
155
158
|
/** `Object#toString` result references. */
|
|
156
159
|
var symbolTag = "[object Symbol]";
|
|
157
160
|
/**
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
176
179
|
}
|
|
177
180
|
//#endregion
|
|
178
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
181
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
179
182
|
/**
|
|
180
183
|
* Checks if `value` is classified as an `Array` object.
|
|
181
184
|
*
|
|
@@ -201,7 +204,7 @@
|
|
|
201
204
|
*/
|
|
202
205
|
var isArray = Array.isArray;
|
|
203
206
|
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
207
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
|
|
205
208
|
/** Used to match a single whitespace character. */
|
|
206
209
|
var reWhitespace = /\s/;
|
|
207
210
|
/**
|
|
@@ -218,7 +221,7 @@
|
|
|
218
221
|
return index;
|
|
219
222
|
}
|
|
220
223
|
//#endregion
|
|
221
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
224
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
222
225
|
/** Used to match leading whitespace. */
|
|
223
226
|
var reTrimStart = /^\s+/;
|
|
224
227
|
/**
|
|
@@ -232,7 +235,7 @@
|
|
|
232
235
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
233
236
|
}
|
|
234
237
|
//#endregion
|
|
235
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
238
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
236
239
|
/**
|
|
237
240
|
* Checks if `value` is the
|
|
238
241
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -263,7 +266,7 @@
|
|
|
263
266
|
return value != null && (type == "object" || type == "function");
|
|
264
267
|
}
|
|
265
268
|
//#endregion
|
|
266
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
269
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
267
270
|
/** Used as references for various `Number` constants. */
|
|
268
271
|
var NAN = NaN;
|
|
269
272
|
/** Used to detect bad signed hexadecimal string values. */
|
|
@@ -310,7 +313,7 @@
|
|
|
310
313
|
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
311
314
|
}
|
|
312
315
|
//#endregion
|
|
313
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
316
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
|
|
314
317
|
/**
|
|
315
318
|
* This method returns the first argument it receives.
|
|
316
319
|
*
|
|
@@ -331,9 +334,12 @@
|
|
|
331
334
|
return value;
|
|
332
335
|
}
|
|
333
336
|
//#endregion
|
|
334
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
337
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
335
338
|
/** `Object#toString` result references. */
|
|
336
|
-
var asyncTag = "[object AsyncFunction]"
|
|
339
|
+
var asyncTag = "[object AsyncFunction]";
|
|
340
|
+
var funcTag$1 = "[object Function]";
|
|
341
|
+
var genTag = "[object GeneratorFunction]";
|
|
342
|
+
var proxyTag = "[object Proxy]";
|
|
337
343
|
/**
|
|
338
344
|
* Checks if `value` is classified as a `Function` object.
|
|
339
345
|
*
|
|
@@ -357,11 +363,11 @@
|
|
|
357
363
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
358
364
|
}
|
|
359
365
|
//#endregion
|
|
360
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
366
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
361
367
|
/** Used to detect overreaching core-js shims. */
|
|
362
368
|
var coreJsData = root["__core-js_shared__"];
|
|
363
369
|
//#endregion
|
|
364
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
370
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
365
371
|
/** Used to detect methods masquerading as native. */
|
|
366
372
|
var maskSrcKey = function() {
|
|
367
373
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -378,7 +384,7 @@
|
|
|
378
384
|
return !!maskSrcKey && maskSrcKey in func;
|
|
379
385
|
}
|
|
380
386
|
//#endregion
|
|
381
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
387
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
382
388
|
/** Used to resolve the decompiled source of functions. */
|
|
383
389
|
var funcToString$2 = Function.prototype.toString;
|
|
384
390
|
/**
|
|
@@ -400,7 +406,7 @@
|
|
|
400
406
|
return "";
|
|
401
407
|
}
|
|
402
408
|
//#endregion
|
|
403
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
409
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
404
410
|
/**
|
|
405
411
|
* Used to match `RegExp`
|
|
406
412
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -409,7 +415,8 @@
|
|
|
409
415
|
/** Used to detect host constructors (Safari). */
|
|
410
416
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
411
417
|
/** Used for built-in method references. */
|
|
412
|
-
var funcProto$1 = Function.prototype
|
|
418
|
+
var funcProto$1 = Function.prototype;
|
|
419
|
+
var objectProto$3 = Object.prototype;
|
|
413
420
|
/** Used to resolve the decompiled source of functions. */
|
|
414
421
|
var funcToString$1 = funcProto$1.toString;
|
|
415
422
|
/** Used to check objects for own properties. */
|
|
@@ -429,7 +436,7 @@
|
|
|
429
436
|
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
430
437
|
}
|
|
431
438
|
//#endregion
|
|
432
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
439
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
433
440
|
/**
|
|
434
441
|
* Gets the value at `key` of `object`.
|
|
435
442
|
*
|
|
@@ -442,7 +449,7 @@
|
|
|
442
449
|
return object == null ? void 0 : object[key];
|
|
443
450
|
}
|
|
444
451
|
//#endregion
|
|
445
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
452
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
446
453
|
/**
|
|
447
454
|
* Gets the native function at `key` of `object`.
|
|
448
455
|
*
|
|
@@ -456,7 +463,7 @@
|
|
|
456
463
|
return baseIsNative(value) ? value : void 0;
|
|
457
464
|
}
|
|
458
465
|
//#endregion
|
|
459
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
466
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
460
467
|
/** Built-in value references. */
|
|
461
468
|
var objectCreate = Object.create;
|
|
462
469
|
/**
|
|
@@ -479,7 +486,7 @@
|
|
|
479
486
|
};
|
|
480
487
|
}();
|
|
481
488
|
//#endregion
|
|
482
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
489
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
|
|
483
490
|
/**
|
|
484
491
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
485
492
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
@@ -500,7 +507,7 @@
|
|
|
500
507
|
return func.apply(thisArg, args);
|
|
501
508
|
}
|
|
502
509
|
//#endregion
|
|
503
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
510
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
504
511
|
/**
|
|
505
512
|
* Copies the values of `source` to `array`.
|
|
506
513
|
*
|
|
@@ -516,9 +523,10 @@
|
|
|
516
523
|
return array;
|
|
517
524
|
}
|
|
518
525
|
//#endregion
|
|
519
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
526
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
|
|
520
527
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
521
|
-
var HOT_COUNT = 800
|
|
528
|
+
var HOT_COUNT = 800;
|
|
529
|
+
var HOT_SPAN = 16;
|
|
522
530
|
var nativeNow = Date.now;
|
|
523
531
|
/**
|
|
524
532
|
* Creates a function that'll short out and invoke `identity` instead
|
|
@@ -541,7 +549,7 @@
|
|
|
541
549
|
};
|
|
542
550
|
}
|
|
543
551
|
//#endregion
|
|
544
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
552
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
|
|
545
553
|
/**
|
|
546
554
|
* Creates a function that returns `value`.
|
|
547
555
|
*
|
|
@@ -567,7 +575,7 @@
|
|
|
567
575
|
};
|
|
568
576
|
}
|
|
569
577
|
//#endregion
|
|
570
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
578
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
571
579
|
var defineProperty = function() {
|
|
572
580
|
try {
|
|
573
581
|
var func = getNative(Object, "defineProperty");
|
|
@@ -576,7 +584,7 @@
|
|
|
576
584
|
} catch (e) {}
|
|
577
585
|
}();
|
|
578
586
|
//#endregion
|
|
579
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
587
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
|
|
580
588
|
/**
|
|
581
589
|
* Sets the `toString` method of `func` to return `string`.
|
|
582
590
|
*
|
|
@@ -594,7 +602,7 @@
|
|
|
594
602
|
});
|
|
595
603
|
});
|
|
596
604
|
//#endregion
|
|
597
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
605
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
598
606
|
/** Used as references for various `Number` constants. */
|
|
599
607
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
600
608
|
/** Used to detect unsigned integer values. */
|
|
@@ -613,7 +621,7 @@
|
|
|
613
621
|
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
614
622
|
}
|
|
615
623
|
//#endregion
|
|
616
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
624
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
617
625
|
/**
|
|
618
626
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
619
627
|
* value checks.
|
|
@@ -633,7 +641,7 @@
|
|
|
633
641
|
else object[key] = value;
|
|
634
642
|
}
|
|
635
643
|
//#endregion
|
|
636
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
644
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
637
645
|
/**
|
|
638
646
|
* Performs a
|
|
639
647
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -670,7 +678,7 @@
|
|
|
670
678
|
return value === other || value !== value && other !== other;
|
|
671
679
|
}
|
|
672
680
|
//#endregion
|
|
673
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
681
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
674
682
|
/** Used to check objects for own properties. */
|
|
675
683
|
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
676
684
|
/**
|
|
@@ -688,7 +696,7 @@
|
|
|
688
696
|
if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
689
697
|
}
|
|
690
698
|
//#endregion
|
|
691
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
699
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
692
700
|
/**
|
|
693
701
|
* Copies properties of `source` to `object`.
|
|
694
702
|
*
|
|
@@ -713,7 +721,7 @@
|
|
|
713
721
|
return object;
|
|
714
722
|
}
|
|
715
723
|
//#endregion
|
|
716
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
724
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
|
|
717
725
|
var nativeMax$1 = Math.max;
|
|
718
726
|
/**
|
|
719
727
|
* A specialized version of `baseRest` which transforms the rest array.
|
|
@@ -737,7 +745,7 @@
|
|
|
737
745
|
};
|
|
738
746
|
}
|
|
739
747
|
//#endregion
|
|
740
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
748
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
741
749
|
/**
|
|
742
750
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
743
751
|
*
|
|
@@ -750,7 +758,7 @@
|
|
|
750
758
|
return setToString(overRest(func, start, identity), func + "");
|
|
751
759
|
}
|
|
752
760
|
//#endregion
|
|
753
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
761
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
754
762
|
/** Used as references for various `Number` constants. */
|
|
755
763
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
756
764
|
/**
|
|
@@ -783,7 +791,7 @@
|
|
|
783
791
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
784
792
|
}
|
|
785
793
|
//#endregion
|
|
786
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
794
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
787
795
|
/**
|
|
788
796
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
789
797
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -813,7 +821,7 @@
|
|
|
813
821
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
814
822
|
}
|
|
815
823
|
//#endregion
|
|
816
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
824
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
817
825
|
/**
|
|
818
826
|
* Checks if the given arguments are from an iteratee call.
|
|
819
827
|
*
|
|
@@ -831,7 +839,7 @@
|
|
|
831
839
|
return false;
|
|
832
840
|
}
|
|
833
841
|
//#endregion
|
|
834
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
842
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js
|
|
835
843
|
/**
|
|
836
844
|
* Creates a function like `_.assign`.
|
|
837
845
|
*
|
|
@@ -856,7 +864,7 @@
|
|
|
856
864
|
});
|
|
857
865
|
}
|
|
858
866
|
//#endregion
|
|
859
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
867
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
860
868
|
/** Used for built-in method references. */
|
|
861
869
|
var objectProto$2 = Object.prototype;
|
|
862
870
|
/**
|
|
@@ -871,7 +879,7 @@
|
|
|
871
879
|
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$2);
|
|
872
880
|
}
|
|
873
881
|
//#endregion
|
|
874
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
882
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
875
883
|
/**
|
|
876
884
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
877
885
|
* or max array length checks.
|
|
@@ -887,7 +895,7 @@
|
|
|
887
895
|
return result;
|
|
888
896
|
}
|
|
889
897
|
//#endregion
|
|
890
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
898
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
891
899
|
/** `Object#toString` result references. */
|
|
892
900
|
var argsTag$1 = "[object Arguments]";
|
|
893
901
|
/**
|
|
@@ -901,7 +909,7 @@
|
|
|
901
909
|
return isObjectLike(value) && baseGetTag(value) == argsTag$1;
|
|
902
910
|
}
|
|
903
911
|
//#endregion
|
|
904
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
912
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
905
913
|
/** Used for built-in method references. */
|
|
906
914
|
var objectProto$1 = Object.prototype;
|
|
907
915
|
/** Used to check objects for own properties. */
|
|
@@ -932,7 +940,7 @@
|
|
|
932
940
|
return isObjectLike(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
933
941
|
};
|
|
934
942
|
//#endregion
|
|
935
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
943
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
936
944
|
/**
|
|
937
945
|
* This method returns `false`.
|
|
938
946
|
*
|
|
@@ -950,7 +958,7 @@
|
|
|
950
958
|
return false;
|
|
951
959
|
}
|
|
952
960
|
//#endregion
|
|
953
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
961
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
954
962
|
/** Detect free variable `exports`. */
|
|
955
963
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
956
964
|
/** Detect free variable `module`. */
|
|
@@ -976,10 +984,32 @@
|
|
|
976
984
|
*/
|
|
977
985
|
var isBuffer = (Buffer$2 ? Buffer$2.isBuffer : void 0) || stubFalse;
|
|
978
986
|
//#endregion
|
|
979
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
987
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
980
988
|
/** `Object#toString` result references. */
|
|
981
|
-
var argsTag = "[object Arguments]"
|
|
982
|
-
var
|
|
989
|
+
var argsTag = "[object Arguments]";
|
|
990
|
+
var arrayTag = "[object Array]";
|
|
991
|
+
var boolTag = "[object Boolean]";
|
|
992
|
+
var dateTag = "[object Date]";
|
|
993
|
+
var errorTag = "[object Error]";
|
|
994
|
+
var funcTag = "[object Function]";
|
|
995
|
+
var mapTag = "[object Map]";
|
|
996
|
+
var numberTag = "[object Number]";
|
|
997
|
+
var objectTag$1 = "[object Object]";
|
|
998
|
+
var regexpTag = "[object RegExp]";
|
|
999
|
+
var setTag = "[object Set]";
|
|
1000
|
+
var stringTag = "[object String]";
|
|
1001
|
+
var weakMapTag = "[object WeakMap]";
|
|
1002
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1003
|
+
var dataViewTag = "[object DataView]";
|
|
1004
|
+
var float32Tag = "[object Float32Array]";
|
|
1005
|
+
var float64Tag = "[object Float64Array]";
|
|
1006
|
+
var int8Tag = "[object Int8Array]";
|
|
1007
|
+
var int16Tag = "[object Int16Array]";
|
|
1008
|
+
var int32Tag = "[object Int32Array]";
|
|
1009
|
+
var uint8Tag = "[object Uint8Array]";
|
|
1010
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
1011
|
+
var uint16Tag = "[object Uint16Array]";
|
|
1012
|
+
var uint32Tag = "[object Uint32Array]";
|
|
983
1013
|
/** Used to identify `toStringTag` values of typed arrays. */
|
|
984
1014
|
var typedArrayTags = {};
|
|
985
1015
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
@@ -995,7 +1025,7 @@
|
|
|
995
1025
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
996
1026
|
}
|
|
997
1027
|
//#endregion
|
|
998
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1028
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
999
1029
|
/**
|
|
1000
1030
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
1001
1031
|
*
|
|
@@ -1009,7 +1039,7 @@
|
|
|
1009
1039
|
};
|
|
1010
1040
|
}
|
|
1011
1041
|
//#endregion
|
|
1012
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1042
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
1013
1043
|
/** Detect free variable `exports`. */
|
|
1014
1044
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1015
1045
|
/** Detect free variable `module`. */
|
|
@@ -1025,7 +1055,7 @@
|
|
|
1025
1055
|
} catch (e) {}
|
|
1026
1056
|
}();
|
|
1027
1057
|
//#endregion
|
|
1028
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1058
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
1029
1059
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1030
1060
|
/**
|
|
1031
1061
|
* Checks if `value` is classified as a typed array.
|
|
@@ -1046,7 +1076,7 @@
|
|
|
1046
1076
|
*/
|
|
1047
1077
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1048
1078
|
//#endregion
|
|
1049
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1079
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
1050
1080
|
/** Used to check objects for own properties. */
|
|
1051
1081
|
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
1052
1082
|
/**
|
|
@@ -1063,7 +1093,7 @@
|
|
|
1063
1093
|
return result;
|
|
1064
1094
|
}
|
|
1065
1095
|
//#endregion
|
|
1066
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1096
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
1067
1097
|
/**
|
|
1068
1098
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1069
1099
|
*
|
|
@@ -1078,7 +1108,7 @@
|
|
|
1078
1108
|
};
|
|
1079
1109
|
}
|
|
1080
1110
|
//#endregion
|
|
1081
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1111
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
1082
1112
|
/**
|
|
1083
1113
|
* This function is like
|
|
1084
1114
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
@@ -1094,7 +1124,7 @@
|
|
|
1094
1124
|
return result;
|
|
1095
1125
|
}
|
|
1096
1126
|
//#endregion
|
|
1097
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1127
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
1098
1128
|
/** Used to check objects for own properties. */
|
|
1099
1129
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1100
1130
|
/**
|
|
@@ -1111,7 +1141,7 @@
|
|
|
1111
1141
|
return result;
|
|
1112
1142
|
}
|
|
1113
1143
|
//#endregion
|
|
1114
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1144
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
1115
1145
|
/**
|
|
1116
1146
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1117
1147
|
*
|
|
@@ -1139,10 +1169,10 @@
|
|
|
1139
1169
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1140
1170
|
}
|
|
1141
1171
|
//#endregion
|
|
1142
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1172
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
1143
1173
|
var nativeCreate = getNative(Object, "create");
|
|
1144
1174
|
//#endregion
|
|
1145
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1175
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
1146
1176
|
/**
|
|
1147
1177
|
* Removes all key-value entries from the hash.
|
|
1148
1178
|
*
|
|
@@ -1155,7 +1185,7 @@
|
|
|
1155
1185
|
this.size = 0;
|
|
1156
1186
|
}
|
|
1157
1187
|
//#endregion
|
|
1158
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1188
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1159
1189
|
/**
|
|
1160
1190
|
* Removes `key` and its value from the hash.
|
|
1161
1191
|
*
|
|
@@ -1172,7 +1202,7 @@
|
|
|
1172
1202
|
return result;
|
|
1173
1203
|
}
|
|
1174
1204
|
//#endregion
|
|
1175
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1205
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1176
1206
|
/** Used to stand-in for `undefined` hash values. */
|
|
1177
1207
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1178
1208
|
/** Used to check objects for own properties. */
|
|
@@ -1195,7 +1225,7 @@
|
|
|
1195
1225
|
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
1196
1226
|
}
|
|
1197
1227
|
//#endregion
|
|
1198
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1228
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1199
1229
|
/** Used to check objects for own properties. */
|
|
1200
1230
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1201
1231
|
/**
|
|
@@ -1212,7 +1242,7 @@
|
|
|
1212
1242
|
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
1213
1243
|
}
|
|
1214
1244
|
//#endregion
|
|
1215
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1245
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1216
1246
|
/** Used to stand-in for `undefined` hash values. */
|
|
1217
1247
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1218
1248
|
/**
|
|
@@ -1232,7 +1262,7 @@
|
|
|
1232
1262
|
return this;
|
|
1233
1263
|
}
|
|
1234
1264
|
//#endregion
|
|
1235
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1265
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1236
1266
|
/**
|
|
1237
1267
|
* Creates a hash object.
|
|
1238
1268
|
*
|
|
@@ -1254,7 +1284,7 @@
|
|
|
1254
1284
|
Hash.prototype.has = hashHas;
|
|
1255
1285
|
Hash.prototype.set = hashSet;
|
|
1256
1286
|
//#endregion
|
|
1257
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1287
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1258
1288
|
/**
|
|
1259
1289
|
* Removes all key-value entries from the list cache.
|
|
1260
1290
|
*
|
|
@@ -1267,7 +1297,7 @@
|
|
|
1267
1297
|
this.size = 0;
|
|
1268
1298
|
}
|
|
1269
1299
|
//#endregion
|
|
1270
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1300
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1271
1301
|
/**
|
|
1272
1302
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1273
1303
|
*
|
|
@@ -1282,7 +1312,7 @@
|
|
|
1282
1312
|
return -1;
|
|
1283
1313
|
}
|
|
1284
1314
|
//#endregion
|
|
1285
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1315
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1286
1316
|
/** Built-in value references. */
|
|
1287
1317
|
var splice = Array.prototype.splice;
|
|
1288
1318
|
/**
|
|
@@ -1303,7 +1333,7 @@
|
|
|
1303
1333
|
return true;
|
|
1304
1334
|
}
|
|
1305
1335
|
//#endregion
|
|
1306
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1336
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1307
1337
|
/**
|
|
1308
1338
|
* Gets the list cache value for `key`.
|
|
1309
1339
|
*
|
|
@@ -1318,7 +1348,7 @@
|
|
|
1318
1348
|
return index < 0 ? void 0 : data[index][1];
|
|
1319
1349
|
}
|
|
1320
1350
|
//#endregion
|
|
1321
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1351
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1322
1352
|
/**
|
|
1323
1353
|
* Checks if a list cache value for `key` exists.
|
|
1324
1354
|
*
|
|
@@ -1332,7 +1362,7 @@
|
|
|
1332
1362
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1333
1363
|
}
|
|
1334
1364
|
//#endregion
|
|
1335
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1365
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1336
1366
|
/**
|
|
1337
1367
|
* Sets the list cache `key` to `value`.
|
|
1338
1368
|
*
|
|
@@ -1352,7 +1382,7 @@
|
|
|
1352
1382
|
return this;
|
|
1353
1383
|
}
|
|
1354
1384
|
//#endregion
|
|
1355
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1385
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1356
1386
|
/**
|
|
1357
1387
|
* Creates an list cache object.
|
|
1358
1388
|
*
|
|
@@ -1374,10 +1404,10 @@
|
|
|
1374
1404
|
ListCache.prototype.has = listCacheHas;
|
|
1375
1405
|
ListCache.prototype.set = listCacheSet;
|
|
1376
1406
|
//#endregion
|
|
1377
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1407
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
1378
1408
|
var Map = getNative(root, "Map");
|
|
1379
1409
|
//#endregion
|
|
1380
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1410
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1381
1411
|
/**
|
|
1382
1412
|
* Removes all key-value entries from the map.
|
|
1383
1413
|
*
|
|
@@ -1394,7 +1424,7 @@
|
|
|
1394
1424
|
};
|
|
1395
1425
|
}
|
|
1396
1426
|
//#endregion
|
|
1397
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1427
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1398
1428
|
/**
|
|
1399
1429
|
* Checks if `value` is suitable for use as unique object key.
|
|
1400
1430
|
*
|
|
@@ -1407,7 +1437,7 @@
|
|
|
1407
1437
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1408
1438
|
}
|
|
1409
1439
|
//#endregion
|
|
1410
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1440
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1411
1441
|
/**
|
|
1412
1442
|
* Gets the data for `map`.
|
|
1413
1443
|
*
|
|
@@ -1421,7 +1451,7 @@
|
|
|
1421
1451
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1422
1452
|
}
|
|
1423
1453
|
//#endregion
|
|
1424
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1454
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1425
1455
|
/**
|
|
1426
1456
|
* Removes `key` and its value from the map.
|
|
1427
1457
|
*
|
|
@@ -1437,7 +1467,7 @@
|
|
|
1437
1467
|
return result;
|
|
1438
1468
|
}
|
|
1439
1469
|
//#endregion
|
|
1440
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1470
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1441
1471
|
/**
|
|
1442
1472
|
* Gets the map value for `key`.
|
|
1443
1473
|
*
|
|
@@ -1451,7 +1481,7 @@
|
|
|
1451
1481
|
return getMapData(this, key).get(key);
|
|
1452
1482
|
}
|
|
1453
1483
|
//#endregion
|
|
1454
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1484
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1455
1485
|
/**
|
|
1456
1486
|
* Checks if a map value for `key` exists.
|
|
1457
1487
|
*
|
|
@@ -1465,7 +1495,7 @@
|
|
|
1465
1495
|
return getMapData(this, key).has(key);
|
|
1466
1496
|
}
|
|
1467
1497
|
//#endregion
|
|
1468
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1498
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1469
1499
|
/**
|
|
1470
1500
|
* Sets the map `key` to `value`.
|
|
1471
1501
|
*
|
|
@@ -1483,7 +1513,7 @@
|
|
|
1483
1513
|
return this;
|
|
1484
1514
|
}
|
|
1485
1515
|
//#endregion
|
|
1486
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1516
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1487
1517
|
/**
|
|
1488
1518
|
* Creates a map cache object to store key-value pairs.
|
|
1489
1519
|
*
|
|
@@ -1505,15 +1535,16 @@
|
|
|
1505
1535
|
MapCache.prototype.has = mapCacheHas;
|
|
1506
1536
|
MapCache.prototype.set = mapCacheSet;
|
|
1507
1537
|
//#endregion
|
|
1508
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1538
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1509
1539
|
/** Built-in value references. */
|
|
1510
1540
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1511
1541
|
//#endregion
|
|
1512
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1542
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js
|
|
1513
1543
|
/** `Object#toString` result references. */
|
|
1514
1544
|
var objectTag = "[object Object]";
|
|
1515
1545
|
/** Used for built-in method references. */
|
|
1516
|
-
var funcProto = Function.prototype
|
|
1546
|
+
var funcProto = Function.prototype;
|
|
1547
|
+
var objectProto = Object.prototype;
|
|
1517
1548
|
/** Used to resolve the decompiled source of functions. */
|
|
1518
1549
|
var funcToString = funcProto.toString;
|
|
1519
1550
|
/** Used to check objects for own properties. */
|
|
@@ -1556,7 +1587,7 @@
|
|
|
1556
1587
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1557
1588
|
}
|
|
1558
1589
|
//#endregion
|
|
1559
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1590
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1560
1591
|
/**
|
|
1561
1592
|
* Removes all key-value entries from the stack.
|
|
1562
1593
|
*
|
|
@@ -1569,7 +1600,7 @@
|
|
|
1569
1600
|
this.size = 0;
|
|
1570
1601
|
}
|
|
1571
1602
|
//#endregion
|
|
1572
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1603
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
1573
1604
|
/**
|
|
1574
1605
|
* Removes `key` and its value from the stack.
|
|
1575
1606
|
*
|
|
@@ -1585,7 +1616,7 @@
|
|
|
1585
1616
|
return result;
|
|
1586
1617
|
}
|
|
1587
1618
|
//#endregion
|
|
1588
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1619
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
1589
1620
|
/**
|
|
1590
1621
|
* Gets the stack value for `key`.
|
|
1591
1622
|
*
|
|
@@ -1599,7 +1630,7 @@
|
|
|
1599
1630
|
return this.__data__.get(key);
|
|
1600
1631
|
}
|
|
1601
1632
|
//#endregion
|
|
1602
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1633
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
1603
1634
|
/**
|
|
1604
1635
|
* Checks if a stack value for `key` exists.
|
|
1605
1636
|
*
|
|
@@ -1613,7 +1644,7 @@
|
|
|
1613
1644
|
return this.__data__.has(key);
|
|
1614
1645
|
}
|
|
1615
1646
|
//#endregion
|
|
1616
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1647
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
1617
1648
|
/** Used as the size to enable large array optimizations. */
|
|
1618
1649
|
var LARGE_ARRAY_SIZE = 200;
|
|
1619
1650
|
/**
|
|
@@ -1642,7 +1673,7 @@
|
|
|
1642
1673
|
return this;
|
|
1643
1674
|
}
|
|
1644
1675
|
//#endregion
|
|
1645
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1676
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
1646
1677
|
/**
|
|
1647
1678
|
* Creates a stack cache object to store key-value pairs.
|
|
1648
1679
|
*
|
|
@@ -1660,13 +1691,14 @@
|
|
|
1660
1691
|
Stack.prototype.has = stackHas;
|
|
1661
1692
|
Stack.prototype.set = stackSet;
|
|
1662
1693
|
//#endregion
|
|
1663
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1694
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
1664
1695
|
/** Detect free variable `exports`. */
|
|
1665
1696
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1666
1697
|
/** Detect free variable `module`. */
|
|
1667
1698
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1668
1699
|
/** Built-in value references. */
|
|
1669
|
-
var Buffer$1 = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0
|
|
1700
|
+
var Buffer$1 = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
|
|
1701
|
+
var allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0;
|
|
1670
1702
|
/**
|
|
1671
1703
|
* Creates a clone of `buffer`.
|
|
1672
1704
|
*
|
|
@@ -1682,11 +1714,11 @@
|
|
|
1682
1714
|
return result;
|
|
1683
1715
|
}
|
|
1684
1716
|
//#endregion
|
|
1685
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1717
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1686
1718
|
/** Built-in value references. */
|
|
1687
1719
|
var Uint8Array$1 = root.Uint8Array;
|
|
1688
1720
|
//#endregion
|
|
1689
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1721
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1690
1722
|
/**
|
|
1691
1723
|
* Creates a clone of `arrayBuffer`.
|
|
1692
1724
|
*
|
|
@@ -1700,7 +1732,7 @@
|
|
|
1700
1732
|
return result;
|
|
1701
1733
|
}
|
|
1702
1734
|
//#endregion
|
|
1703
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1735
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
1704
1736
|
/**
|
|
1705
1737
|
* Creates a clone of `typedArray`.
|
|
1706
1738
|
*
|
|
@@ -1714,7 +1746,7 @@
|
|
|
1714
1746
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1715
1747
|
}
|
|
1716
1748
|
//#endregion
|
|
1717
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1749
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
1718
1750
|
/**
|
|
1719
1751
|
* Initializes an object clone.
|
|
1720
1752
|
*
|
|
@@ -1726,7 +1758,7 @@
|
|
|
1726
1758
|
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1727
1759
|
}
|
|
1728
1760
|
//#endregion
|
|
1729
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1761
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
1730
1762
|
/**
|
|
1731
1763
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
1732
1764
|
*
|
|
@@ -1745,7 +1777,7 @@
|
|
|
1745
1777
|
};
|
|
1746
1778
|
}
|
|
1747
1779
|
//#endregion
|
|
1748
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1780
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
1749
1781
|
/**
|
|
1750
1782
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1751
1783
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -1759,7 +1791,7 @@
|
|
|
1759
1791
|
*/
|
|
1760
1792
|
var baseFor = createBaseFor();
|
|
1761
1793
|
//#endregion
|
|
1762
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1794
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
|
|
1763
1795
|
/**
|
|
1764
1796
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
1765
1797
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
@@ -1780,10 +1812,11 @@
|
|
|
1780
1812
|
return root.Date.now();
|
|
1781
1813
|
};
|
|
1782
1814
|
//#endregion
|
|
1783
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1815
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
1784
1816
|
/** Error message constants. */
|
|
1785
1817
|
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
1786
|
-
var nativeMax = Math.max
|
|
1818
|
+
var nativeMax = Math.max;
|
|
1819
|
+
var nativeMin = Math.min;
|
|
1787
1820
|
/**
|
|
1788
1821
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
1789
1822
|
* milliseconds have elapsed since the last time the debounced function was
|
|
@@ -1908,7 +1941,7 @@
|
|
|
1908
1941
|
return debounced;
|
|
1909
1942
|
}
|
|
1910
1943
|
//#endregion
|
|
1911
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1944
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js
|
|
1912
1945
|
/**
|
|
1913
1946
|
* This function is like `assignValue` except that it doesn't assign
|
|
1914
1947
|
* `undefined` values.
|
|
@@ -1922,7 +1955,7 @@
|
|
|
1922
1955
|
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
1923
1956
|
}
|
|
1924
1957
|
//#endregion
|
|
1925
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1958
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
1926
1959
|
/**
|
|
1927
1960
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1928
1961
|
* is an object.
|
|
@@ -1952,7 +1985,7 @@
|
|
|
1952
1985
|
return isObjectLike(value) && isArrayLike(value);
|
|
1953
1986
|
}
|
|
1954
1987
|
//#endregion
|
|
1955
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
1988
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js
|
|
1956
1989
|
/**
|
|
1957
1990
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
1958
1991
|
*
|
|
@@ -1967,7 +2000,7 @@
|
|
|
1967
2000
|
return object[key];
|
|
1968
2001
|
}
|
|
1969
2002
|
//#endregion
|
|
1970
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2003
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js
|
|
1971
2004
|
/**
|
|
1972
2005
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
1973
2006
|
* keyed properties of `value` to own properties of the plain object.
|
|
@@ -1996,7 +2029,7 @@
|
|
|
1996
2029
|
return copyObject(value, keysIn(value));
|
|
1997
2030
|
}
|
|
1998
2031
|
//#endregion
|
|
1999
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2032
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js
|
|
2000
2033
|
/**
|
|
2001
2034
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
2002
2035
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -2023,16 +2056,17 @@
|
|
|
2023
2056
|
if (isCommon) {
|
|
2024
2057
|
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2025
2058
|
newValue = srcValue;
|
|
2026
|
-
if (isArr || isBuff || isTyped)
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2059
|
+
if (isArr || isBuff || isTyped) {
|
|
2060
|
+
if (isArray(objValue)) newValue = objValue;
|
|
2061
|
+
else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
|
|
2062
|
+
else if (isBuff) {
|
|
2063
|
+
isCommon = false;
|
|
2064
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2065
|
+
} else if (isTyped) {
|
|
2066
|
+
isCommon = false;
|
|
2067
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2068
|
+
} else newValue = [];
|
|
2069
|
+
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2036
2070
|
newValue = objValue;
|
|
2037
2071
|
if (isArguments(objValue)) newValue = toPlainObject(objValue);
|
|
2038
2072
|
else if (!isObject(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
|
|
@@ -2046,7 +2080,7 @@
|
|
|
2046
2080
|
assignMergeValue(object, key, newValue);
|
|
2047
2081
|
}
|
|
2048
2082
|
//#endregion
|
|
2049
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2083
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js
|
|
2050
2084
|
/**
|
|
2051
2085
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
2052
2086
|
*
|
|
@@ -2071,7 +2105,7 @@
|
|
|
2071
2105
|
}, keysIn);
|
|
2072
2106
|
}
|
|
2073
2107
|
//#endregion
|
|
2074
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2108
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/merge.js
|
|
2075
2109
|
/**
|
|
2076
2110
|
* This method is like `_.assign` except that it recursively merges own and
|
|
2077
2111
|
* inherited enumerable string keyed properties of source objects into the
|
|
@@ -2107,7 +2141,7 @@
|
|
|
2107
2141
|
baseMerge(object, source, srcIndex);
|
|
2108
2142
|
});
|
|
2109
2143
|
//#endregion
|
|
2110
|
-
//#region node_modules/.pnpm/lodash-es@4.
|
|
2144
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
2111
2145
|
/** Error message constants. */
|
|
2112
2146
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
2113
2147
|
/**
|
|
@@ -2351,6 +2385,33 @@
|
|
|
2351
2385
|
}
|
|
2352
2386
|
return null;
|
|
2353
2387
|
};
|
|
2388
|
+
/**
|
|
2389
|
+
* 将元素滚动到指定滚动容器的可视区域内(仅垂直方向,滚动最小距离)
|
|
2390
|
+
* @description 与原生 scrollIntoView 不同,只滚动指定的容器自身,不会连带滚动外层祖先滚动容器,
|
|
2391
|
+
* 避免编辑器画布外层容器(如 stage 外层使用 transform 模拟滚动的容器)被浏览器自动滚动导致整个画布位移
|
|
2392
|
+
* @param el 目标元素
|
|
2393
|
+
* @param container 滚动容器
|
|
2394
|
+
*/
|
|
2395
|
+
var scrollElementIntoView = (el, container) => {
|
|
2396
|
+
const { ownerDocument } = container;
|
|
2397
|
+
const win = ownerDocument?.defaultView;
|
|
2398
|
+
if (!ownerDocument || !win) return;
|
|
2399
|
+
const elRect = el.getBoundingClientRect();
|
|
2400
|
+
let viewTop = 0;
|
|
2401
|
+
let viewHeight = 0;
|
|
2402
|
+
if (container === ownerDocument.documentElement || container === ownerDocument.body) {
|
|
2403
|
+
viewTop = 0;
|
|
2404
|
+
viewHeight = win.innerHeight;
|
|
2405
|
+
} else {
|
|
2406
|
+
viewTop = container.getBoundingClientRect().top + container.clientTop;
|
|
2407
|
+
viewHeight = container.clientHeight;
|
|
2408
|
+
}
|
|
2409
|
+
const viewBottom = viewTop + viewHeight;
|
|
2410
|
+
let delta = 0;
|
|
2411
|
+
if (elRect.top < viewTop) delta = elRect.top - viewTop;
|
|
2412
|
+
else if (elRect.bottom > viewBottom) delta = Math.min(elRect.bottom - viewBottom, elRect.top - viewTop);
|
|
2413
|
+
if (delta !== 0) container.scrollTop += delta;
|
|
2414
|
+
};
|
|
2354
2415
|
var removeSelectedClassName = (doc) => {
|
|
2355
2416
|
const oldEl = doc.querySelector(`.${SELECTED_CLASS}`);
|
|
2356
2417
|
if (oldEl) {
|
|
@@ -3192,12 +3253,14 @@
|
|
|
3192
3253
|
timeout = void 0;
|
|
3193
3254
|
}
|
|
3194
3255
|
const parentEl = this.markContainerEnd();
|
|
3195
|
-
if (this.dragStatus === StageDragStatus.ING)
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3256
|
+
if (this.dragStatus === StageDragStatus.ING) {
|
|
3257
|
+
if (parentEl) this.update(false, parentEl);
|
|
3258
|
+
else switch (this.mode) {
|
|
3259
|
+
case Mode.SORTABLE:
|
|
3260
|
+
this.sort();
|
|
3261
|
+
break;
|
|
3262
|
+
default: this.update();
|
|
3263
|
+
}
|
|
3201
3264
|
}
|
|
3202
3265
|
this.dragStatus = StageDragStatus.END;
|
|
3203
3266
|
this.dragResizeHelper.destroyGhostEl();
|
|
@@ -3250,9 +3313,10 @@
|
|
|
3250
3313
|
const { top } = this.dragResizeHelper.getGhostEl().getBoundingClientRect();
|
|
3251
3314
|
const { top: oriTop } = this.target.getBoundingClientRect();
|
|
3252
3315
|
const deltaTop = top - oriTop;
|
|
3253
|
-
if (Math.abs(deltaTop) >= this.target.clientHeight / 2)
|
|
3254
|
-
|
|
3255
|
-
|
|
3316
|
+
if (Math.abs(deltaTop) >= this.target.clientHeight / 2) {
|
|
3317
|
+
if (deltaTop > 0) this.emit("sort", down(deltaTop, this.target));
|
|
3318
|
+
else this.emit("sort", up(deltaTop, this.target));
|
|
3319
|
+
} else {
|
|
3256
3320
|
const id = (0, _tmagic_core.getIdFromEl)()(this.target);
|
|
3257
3321
|
id && this.emit("sort", {
|
|
3258
3322
|
src: id,
|
|
@@ -3509,6 +3573,8 @@
|
|
|
3509
3573
|
containerHighlightDuration;
|
|
3510
3574
|
/** 将组件加入容器的操作方式 */
|
|
3511
3575
|
containerHighlightType;
|
|
3576
|
+
/** 是否仅在新增组件时才启用将组件加入容器 */
|
|
3577
|
+
containerHighlightAddOnly = false;
|
|
3512
3578
|
isAltKeydown = false;
|
|
3513
3579
|
getTargetElement;
|
|
3514
3580
|
getElementsFromPoint;
|
|
@@ -3542,6 +3608,7 @@
|
|
|
3542
3608
|
this.containerHighlightClassName = config.containerHighlightClassName || "tmagic-stage-container-highlight";
|
|
3543
3609
|
this.containerHighlightDuration = config.containerHighlightDuration || defaultContainerHighlightDuration;
|
|
3544
3610
|
this.containerHighlightType = config.containerHighlightType;
|
|
3611
|
+
this.containerHighlightAddOnly = config.containerHighlightAddOnly ?? false;
|
|
3545
3612
|
this.disabledMultiSelect = config.disabledMultiSelect ?? false;
|
|
3546
3613
|
this.alwaysMultiSelect = config.alwaysMultiSelect ?? false;
|
|
3547
3614
|
this.getTargetElement = config.getTargetElement;
|
|
@@ -3773,10 +3840,11 @@
|
|
|
3773
3840
|
* 标记的作用:1、高亮容器,给用户一个加入容器的交互感知;2、释放鼠标后,通过标记的标志找到要加入的容器
|
|
3774
3841
|
* @param event 鼠标事件
|
|
3775
3842
|
* @param excludeElList 计算鼠标所在容器时要排除的元素列表
|
|
3843
|
+
* @param isAdd 当前操作是否为新增组件(从组件列表拖入),开启 containerHighlightAddOnly 时只有新增才会标记
|
|
3776
3844
|
* @returns timeoutId,调用方在鼠标移走时要取消该timeout,阻止标记
|
|
3777
3845
|
*/
|
|
3778
|
-
delayedMarkContainer(event, excludeElList = []) {
|
|
3779
|
-
if (this.canAddToContainer()) return globalThis.setTimeout(() => {
|
|
3846
|
+
delayedMarkContainer(event, excludeElList = [], isAdd = false) {
|
|
3847
|
+
if (this.canAddToContainer(isAdd)) return globalThis.setTimeout(() => {
|
|
3780
3848
|
this.addContainerHighlightClassName(event, excludeElList);
|
|
3781
3849
|
}, this.containerHighlightDuration);
|
|
3782
3850
|
}
|
|
@@ -3895,9 +3963,12 @@
|
|
|
3895
3963
|
} else this.selectedElList.push(el);
|
|
3896
3964
|
}
|
|
3897
3965
|
/**
|
|
3898
|
-
* 当前状态下能否将组件加入容器,默认是鼠标悬停一段时间加入,alt模式则是按住alt
|
|
3966
|
+
* 当前状态下能否将组件加入容器,默认是鼠标悬停一段时间加入,alt模式则是按住alt+鼠标悬停一段时间加入;
|
|
3967
|
+
* 开启containerHighlightAddOnly时,画布中拖动已有组件不能加入容器
|
|
3968
|
+
* @param isAdd 当前操作是否为新增组件
|
|
3899
3969
|
*/
|
|
3900
|
-
canAddToContainer() {
|
|
3970
|
+
canAddToContainer(isAdd = false) {
|
|
3971
|
+
if (this.containerHighlightAddOnly && !isAdd) return false;
|
|
3901
3972
|
return this.containerHighlightType === ContainerHighlightType.DEFAULT || this.containerHighlightType === ContainerHighlightType.ALT && this.isAltKeydown;
|
|
3902
3973
|
}
|
|
3903
3974
|
/**
|
|
@@ -3906,8 +3977,9 @@
|
|
|
3906
3977
|
*/
|
|
3907
3978
|
markContainerEnd() {
|
|
3908
3979
|
const doc = this.getRenderDocument();
|
|
3909
|
-
if (doc
|
|
3910
|
-
|
|
3980
|
+
if (!doc) return null;
|
|
3981
|
+
const markedContainer = (0, _tmagic_core.removeClassNameByClassName)(doc, this.containerHighlightClassName);
|
|
3982
|
+
return this.canAddToContainer() ? markedContainer : null;
|
|
3911
3983
|
}
|
|
3912
3984
|
initMouseEvent() {
|
|
3913
3985
|
this.container.addEventListener("mousedown", this.mouseDownHandler);
|
|
@@ -4299,25 +4371,38 @@
|
|
|
4299
4371
|
}
|
|
4300
4372
|
/**
|
|
4301
4373
|
* 初始化视窗和蒙层监听,监听元素是否在视窗区域、监听mask蒙层所在的wrapper大小变化
|
|
4302
|
-
* @description
|
|
4374
|
+
* @description 初始化视窗和蒙层监听;切换到新页面 DOM 时重置滚动
|
|
4303
4375
|
* @param page 页面Dom节点
|
|
4304
4376
|
*/
|
|
4305
4377
|
observe(page) {
|
|
4306
4378
|
if (!page) return;
|
|
4379
|
+
const pageChanged = this.page !== page;
|
|
4307
4380
|
this.page = page;
|
|
4308
4381
|
this.initObserverIntersection();
|
|
4309
4382
|
this.initObserverWrapper();
|
|
4383
|
+
if (pageChanged) {
|
|
4384
|
+
this.pageScrollParent?.scrollTo({
|
|
4385
|
+
top: 0,
|
|
4386
|
+
left: 0
|
|
4387
|
+
});
|
|
4388
|
+
this.scrollTop = 0;
|
|
4389
|
+
this.scrollLeft = 0;
|
|
4390
|
+
this.scroll();
|
|
4391
|
+
}
|
|
4392
|
+
this.syncPageSize();
|
|
4310
4393
|
}
|
|
4311
4394
|
/**
|
|
4312
|
-
* 处理页面大小变更,同步页面和mask大小
|
|
4395
|
+
* 处理页面大小变更,同步页面和 mask 大小
|
|
4396
|
+
* @description 仅处理当前 page 且仍挂载在文档中的 entry;非当前页、已卸载或宽高为 0 的回调会被忽略
|
|
4313
4397
|
* @param entries ResizeObserverEntry,获取页面最新大小
|
|
4314
4398
|
*/
|
|
4315
4399
|
pageResize(entries) {
|
|
4316
|
-
|
|
4317
|
-
const
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4400
|
+
if (!this.page || !entries.length) return;
|
|
4401
|
+
const entry = entries.find((item) => item.target === this.page);
|
|
4402
|
+
if (!entry) return;
|
|
4403
|
+
const { target } = entry;
|
|
4404
|
+
if (!target.isConnected) return;
|
|
4405
|
+
this.applyPageSize(target.clientWidth, target.clientHeight);
|
|
4321
4406
|
}
|
|
4322
4407
|
/**
|
|
4323
4408
|
* 监听一个组件是否在画布可视区域内
|
|
@@ -4344,8 +4429,8 @@
|
|
|
4344
4429
|
this.scrollIntoView(scrollParent);
|
|
4345
4430
|
return;
|
|
4346
4431
|
}
|
|
4347
|
-
el.scrollIntoView();
|
|
4348
4432
|
if (!this.pageScrollParent) return;
|
|
4433
|
+
scrollElementIntoView(el, this.pageScrollParent);
|
|
4349
4434
|
this.scrollLeft = this.pageScrollParent.scrollLeft;
|
|
4350
4435
|
this.scrollTop = this.pageScrollParent.scrollTop;
|
|
4351
4436
|
this.scroll();
|
|
@@ -4358,6 +4443,7 @@
|
|
|
4358
4443
|
this.content?.remove();
|
|
4359
4444
|
this.page = null;
|
|
4360
4445
|
this.pageScrollParent = null;
|
|
4446
|
+
this.intersectionObserver?.disconnect();
|
|
4361
4447
|
this.wrapperResizeObserver?.disconnect();
|
|
4362
4448
|
}
|
|
4363
4449
|
on(eventName, listener) {
|
|
@@ -4428,6 +4514,22 @@
|
|
|
4428
4514
|
this.content.dispatchEvent(event);
|
|
4429
4515
|
}
|
|
4430
4516
|
/**
|
|
4517
|
+
* 从当前页面同步蒙层宽高,并修正滚动偏移
|
|
4518
|
+
*/
|
|
4519
|
+
syncPageSize() {
|
|
4520
|
+
if (!this.page?.isConnected) return;
|
|
4521
|
+
this.applyPageSize(this.page.clientWidth, this.page.clientHeight);
|
|
4522
|
+
}
|
|
4523
|
+
/**
|
|
4524
|
+
* 应用页面尺寸到蒙层;宽高为 0 时忽略,避免切换/布局过程中把 editor-mask 置空
|
|
4525
|
+
*/
|
|
4526
|
+
applyPageSize(clientWidth, clientHeight) {
|
|
4527
|
+
if (clientWidth <= 0 || clientHeight <= 0) return;
|
|
4528
|
+
this.setHeight(clientHeight);
|
|
4529
|
+
this.setWidth(clientWidth);
|
|
4530
|
+
this.scroll();
|
|
4531
|
+
}
|
|
4532
|
+
/**
|
|
4431
4533
|
* 设置蒙层高度
|
|
4432
4534
|
* @param height 高度
|
|
4433
4535
|
*/
|
|
@@ -4843,10 +4945,11 @@
|
|
|
4843
4945
|
* 标记的作用:1、高亮容器,给用户一个加入容器的交互感知;2、释放鼠标后,通过标记的标志找到要加入的容器
|
|
4844
4946
|
* @param event 鼠标事件
|
|
4845
4947
|
* @param excludeElList 计算鼠标所在容器时要排除的元素列表
|
|
4948
|
+
* @param isAdd 当前操作是否为新增组件(从组件列表拖入),开启 containerHighlightAddOnly 时只有新增才会标记
|
|
4846
4949
|
* @returns timeoutId,调用方在鼠标移走时要取消该timeout,阻止标记
|
|
4847
4950
|
*/
|
|
4848
|
-
delayedMarkContainer(event, excludeElList = []) {
|
|
4849
|
-
return this.actionManager?.delayedMarkContainer(event, excludeElList);
|
|
4951
|
+
delayedMarkContainer(event, excludeElList = [], isAdd = false) {
|
|
4952
|
+
return this.actionManager?.delayedMarkContainer(event, excludeElList, isAdd);
|
|
4850
4953
|
}
|
|
4851
4954
|
getMoveableOption(key) {
|
|
4852
4955
|
return this.actionManager?.getMoveableOption(key);
|
|
@@ -4914,11 +5017,21 @@
|
|
|
4914
5017
|
this.pageResizeObserver.observe(page);
|
|
4915
5018
|
}
|
|
4916
5019
|
}
|
|
5020
|
+
/**
|
|
5021
|
+
* page-el-update 后,若当前选中节点仍在新页面文档中且需要自动滚动,则重新触发 scrollIntoView
|
|
5022
|
+
*/
|
|
5023
|
+
scrollSelectedIntoViewAfterPageUpdate() {
|
|
5024
|
+
const selected = this.actionManager?.getSelectedEl();
|
|
5025
|
+
if (!selected?.isConnected) return;
|
|
5026
|
+
if (!(this.autoScrollIntoView || selected.dataset.autoScrollIntoView)) return;
|
|
5027
|
+
this.mask?.observerIntersection(selected);
|
|
5028
|
+
}
|
|
4917
5029
|
getActionManagerConfig(config) {
|
|
4918
5030
|
return {
|
|
4919
5031
|
containerHighlightClassName: config.containerHighlightClassName,
|
|
4920
5032
|
containerHighlightDuration: config.containerHighlightDuration,
|
|
4921
5033
|
containerHighlightType: config.containerHighlightType,
|
|
5034
|
+
containerHighlightAddOnly: config.containerHighlightAddOnly,
|
|
4922
5035
|
moveableOptions: config.moveableOptions,
|
|
4923
5036
|
container: this.mask.content,
|
|
4924
5037
|
disabledDragStart: config.disabledDragStart,
|
|
@@ -4941,6 +5054,7 @@
|
|
|
4941
5054
|
this.renderer?.on("page-el-update", (el) => {
|
|
4942
5055
|
this.mask?.observe(el);
|
|
4943
5056
|
this.observePageResize(el);
|
|
5057
|
+
this.scrollSelectedIntoViewAfterPageUpdate();
|
|
4944
5058
|
this.emit("page-el-update", el);
|
|
4945
5059
|
});
|
|
4946
5060
|
}
|
|
@@ -5070,6 +5184,7 @@
|
|
|
5070
5184
|
exports.isRelative = isRelative;
|
|
5071
5185
|
exports.isStatic = isStatic;
|
|
5072
5186
|
exports.removeSelectedClassName = removeSelectedClassName;
|
|
5187
|
+
exports.scrollElementIntoView = scrollElementIntoView;
|
|
5073
5188
|
exports.up = up;
|
|
5074
5189
|
Object.keys(moveable).forEach(function(k) {
|
|
5075
5190
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|