@inditextech/weave-sdk 2.8.0 → 2.9.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/sdk.d.ts +17 -5
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +168 -127
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.node.d.ts +1 -1
- package/dist/sdk.node.d.ts.map +1 -1
- package/dist/sdk.node.js +6 -11
- package/dist/sdk.node.js.map +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
|
@@ -2,6 +2,7 @@ import Konva from "konva";
|
|
|
2
2
|
import pino from "pino";
|
|
3
3
|
import { WEAVE_AWARENESS_LAYER_ID, WEAVE_EXPORT_BACKGROUND_COLOR, WEAVE_EXPORT_FORMATS, WEAVE_INSTANCE_STATUS, WEAVE_KONVA_BACKEND, WEAVE_NODE_CUSTOM_EVENTS, WEAVE_NODE_LAYER_ID, WEAVE_NODE_POSITION, WEAVE_STORE_CONNECTION_STATUS, WEAVE_UTILITY_LAYER_ID } from "@inditextech/weave-types";
|
|
4
4
|
import { getYjsDoc, getYjsValue, observeDeep, syncedStore } from "@syncedstore/core";
|
|
5
|
+
import * as Y$1 from "yjs";
|
|
5
6
|
import * as Y from "yjs";
|
|
6
7
|
import React from "react";
|
|
7
8
|
import ReactReconciler from "react-reconciler";
|
|
@@ -1836,7 +1837,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
1836
1837
|
* // => true
|
|
1837
1838
|
*/
|
|
1838
1839
|
function lodash(value) {
|
|
1839
|
-
if (isObjectLike$7(value) && !isArray$
|
|
1840
|
+
if (isObjectLike$7(value) && !isArray$4(value) && !(value instanceof LazyWrapper)) {
|
|
1840
1841
|
if (value instanceof LodashWrapper) return value;
|
|
1841
1842
|
if (hasOwnProperty$9.call(value, "__wrapped__")) return wrapperClone(value);
|
|
1842
1843
|
}
|
|
@@ -1853,7 +1854,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
1853
1854
|
var baseCreate$2 = function() {
|
|
1854
1855
|
function object() {}
|
|
1855
1856
|
return function(proto) {
|
|
1856
|
-
if (!isObject$
|
|
1857
|
+
if (!isObject$12(proto)) return {};
|
|
1857
1858
|
if (objectCreate$1) return objectCreate$1(proto);
|
|
1858
1859
|
object.prototype = proto;
|
|
1859
1860
|
var result$1 = new object();
|
|
@@ -1963,7 +1964,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
1963
1964
|
* @returns {*} Returns the unwrapped value.
|
|
1964
1965
|
*/
|
|
1965
1966
|
function lazyValue() {
|
|
1966
|
-
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray$
|
|
1967
|
+
var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray$4(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin$1(length, this.__takeCount__);
|
|
1967
1968
|
if (!isArr || !isRight && arrLength == length && takeCount == length) return baseWrapperValue(array, this.__actions__);
|
|
1968
1969
|
var result$1 = [];
|
|
1969
1970
|
outer: while (length-- && resIndex < takeCount) {
|
|
@@ -2394,7 +2395,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
2394
2395
|
* @returns {Array} Returns the array of property names.
|
|
2395
2396
|
*/
|
|
2396
2397
|
function arrayLikeKeys$2(value, inherited) {
|
|
2397
|
-
var isArr = isArray$
|
|
2398
|
+
var isArr = isArray$4(value), isArg = !isArr && isArguments$3(value), isBuff = !isArr && !isArg && isBuffer$3(value), isType = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType, result$1 = skipIndexes ? baseTimes$2(value.length, String$1) : [], length = result$1.length;
|
|
2398
2399
|
for (var key in value) if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) result$1.push(key);
|
|
2399
2400
|
return result$1;
|
|
2400
2401
|
}
|
|
@@ -2577,8 +2578,8 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
2577
2578
|
var result$1, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
2578
2579
|
if (customizer) result$1 = object ? customizer(value, key, object, stack) : customizer(value);
|
|
2579
2580
|
if (result$1 !== undefined$1) return result$1;
|
|
2580
|
-
if (!isObject$
|
|
2581
|
-
var isArr = isArray$
|
|
2581
|
+
if (!isObject$12(value)) return value;
|
|
2582
|
+
var isArr = isArray$4(value);
|
|
2582
2583
|
if (isArr) {
|
|
2583
2584
|
result$1 = initCloneArray(value);
|
|
2584
2585
|
if (!isDeep) return copyArray$2(value, result$1);
|
|
@@ -2892,7 +2893,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
2892
2893
|
*/
|
|
2893
2894
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
2894
2895
|
var result$1 = keysFunc(object);
|
|
2895
|
-
return isArray$
|
|
2896
|
+
return isArray$4(object) ? result$1 : arrayPush(result$1, symbolsFunc(object));
|
|
2896
2897
|
}
|
|
2897
2898
|
/**
|
|
2898
2899
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -3083,7 +3084,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3083
3084
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
3084
3085
|
*/
|
|
3085
3086
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
3086
|
-
var objIsArr = isArray$
|
|
3087
|
+
var objIsArr = isArray$4(object), othIsArr = isArray$4(other), objTag = objIsArr ? arrayTag$1 : getTag(object), othTag = othIsArr ? arrayTag$1 : getTag(other);
|
|
3087
3088
|
objTag = objTag == argsTag$2 ? objectTag$2 : objTag;
|
|
3088
3089
|
othTag = othTag == argsTag$2 ? objectTag$2 : othTag;
|
|
3089
3090
|
var objIsObj = objTag == objectTag$2, othIsObj = othTag == objectTag$2, isSameTag = objTag == othTag;
|
|
@@ -3158,7 +3159,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3158
3159
|
* else `false`.
|
|
3159
3160
|
*/
|
|
3160
3161
|
function baseIsNative$2(value) {
|
|
3161
|
-
if (!isObject$
|
|
3162
|
+
if (!isObject$12(value) || isMasked$2(value)) return false;
|
|
3162
3163
|
var pattern = isFunction$4(value) ? reIsNative$1 : reIsHostCtor$1;
|
|
3163
3164
|
return pattern.test(toSource$2(value));
|
|
3164
3165
|
}
|
|
@@ -3202,7 +3203,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3202
3203
|
function baseIteratee(value) {
|
|
3203
3204
|
if (typeof value == "function") return value;
|
|
3204
3205
|
if (value == null) return identity$3;
|
|
3205
|
-
if (typeof value == "object") return isArray$
|
|
3206
|
+
if (typeof value == "object") return isArray$4(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
3206
3207
|
return property(value);
|
|
3207
3208
|
}
|
|
3208
3209
|
/**
|
|
@@ -3226,7 +3227,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3226
3227
|
* @returns {Array} Returns the array of property names.
|
|
3227
3228
|
*/
|
|
3228
3229
|
function baseKeysIn$2(object) {
|
|
3229
|
-
if (!isObject$
|
|
3230
|
+
if (!isObject$12(object)) return nativeKeysIn$2(object);
|
|
3230
3231
|
var isProto = isPrototype$3(object), result$1 = [];
|
|
3231
3232
|
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$9.call(object, key)))) result$1.push(key);
|
|
3232
3233
|
return result$1;
|
|
@@ -3302,7 +3303,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3302
3303
|
if (object === source) return;
|
|
3303
3304
|
baseFor$2(source, function(srcValue, key) {
|
|
3304
3305
|
stack || (stack = new Stack$2());
|
|
3305
|
-
if (isObject$
|
|
3306
|
+
if (isObject$12(srcValue)) baseMergeDeep$2(object, source, key, srcIndex, baseMerge$2, customizer, stack);
|
|
3306
3307
|
else {
|
|
3307
3308
|
var newValue = customizer ? customizer(safeGet$3(object, key), srcValue, key + "", object, source, stack) : undefined$1;
|
|
3308
3309
|
if (newValue === undefined$1) newValue = srcValue;
|
|
@@ -3334,9 +3335,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3334
3335
|
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
|
|
3335
3336
|
var isCommon = newValue === undefined$1;
|
|
3336
3337
|
if (isCommon) {
|
|
3337
|
-
var isArr = isArray$
|
|
3338
|
+
var isArr = isArray$4(srcValue), isBuff = !isArr && isBuffer$3(srcValue), isTyped = !isArr && !isBuff && isTypedArray$3(srcValue);
|
|
3338
3339
|
newValue = srcValue;
|
|
3339
|
-
if (isArr || isBuff || isTyped) if (isArray$
|
|
3340
|
+
if (isArr || isBuff || isTyped) if (isArray$4(objValue)) newValue = objValue;
|
|
3340
3341
|
else if (isArrayLikeObject$2(objValue)) newValue = copyArray$2(objValue);
|
|
3341
3342
|
else if (isBuff) {
|
|
3342
3343
|
isCommon = false;
|
|
@@ -3348,7 +3349,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3348
3349
|
else if (isPlainObject$2(srcValue) || isArguments$3(srcValue)) {
|
|
3349
3350
|
newValue = objValue;
|
|
3350
3351
|
if (isArguments$3(objValue)) newValue = toPlainObject$2(objValue);
|
|
3351
|
-
else if (!isObject$
|
|
3352
|
+
else if (!isObject$12(objValue) || isFunction$4(objValue)) newValue = initCloneObject$2(srcValue);
|
|
3352
3353
|
} else isCommon = false;
|
|
3353
3354
|
}
|
|
3354
3355
|
if (isCommon) {
|
|
@@ -3383,7 +3384,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3383
3384
|
*/
|
|
3384
3385
|
function baseOrderBy(collection, iteratees, orders) {
|
|
3385
3386
|
if (iteratees.length) iteratees = arrayMap(iteratees, function(iteratee$1) {
|
|
3386
|
-
if (isArray$
|
|
3387
|
+
if (isArray$4(iteratee$1)) return function(value) {
|
|
3387
3388
|
return baseGet(value, iteratee$1.length === 1 ? iteratee$1[0] : iteratee$1);
|
|
3388
3389
|
};
|
|
3389
3390
|
return iteratee$1;
|
|
@@ -3586,7 +3587,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3586
3587
|
* @returns {Object} Returns `object`.
|
|
3587
3588
|
*/
|
|
3588
3589
|
function baseSet(object, path, value, customizer) {
|
|
3589
|
-
if (!isObject$
|
|
3590
|
+
if (!isObject$12(object)) return object;
|
|
3590
3591
|
path = castPath(path, object);
|
|
3591
3592
|
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
3592
3593
|
while (nested != null && ++index < length) {
|
|
@@ -3595,7 +3596,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3595
3596
|
if (index != lastIndex) {
|
|
3596
3597
|
var objValue = nested[key];
|
|
3597
3598
|
newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
|
|
3598
|
-
if (newValue === undefined$1) newValue = isObject$
|
|
3599
|
+
if (newValue === undefined$1) newValue = isObject$12(objValue) ? objValue : isIndex$3(path[index + 1]) ? [] : {};
|
|
3599
3600
|
}
|
|
3600
3601
|
assignValue$2(nested, key, newValue);
|
|
3601
3602
|
nested = nested[key];
|
|
@@ -3775,7 +3776,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3775
3776
|
*/
|
|
3776
3777
|
function baseToString(value) {
|
|
3777
3778
|
if (typeof value == "string") return value;
|
|
3778
|
-
if (isArray$
|
|
3779
|
+
if (isArray$4(value)) return arrayMap(value, baseToString) + "";
|
|
3779
3780
|
if (isSymbol$2(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
3780
3781
|
var result$1 = value + "";
|
|
3781
3782
|
return result$1 == "0" && 1 / value == -INFINITY ? "-0" : result$1;
|
|
@@ -3941,7 +3942,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
3941
3942
|
* @returns {Array} Returns the cast property path array.
|
|
3942
3943
|
*/
|
|
3943
3944
|
function castPath(value, object) {
|
|
3944
|
-
if (isArray$
|
|
3945
|
+
if (isArray$4(value)) return value;
|
|
3945
3946
|
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
3946
3947
|
}
|
|
3947
3948
|
/**
|
|
@@ -4198,7 +4199,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
4198
4199
|
*/
|
|
4199
4200
|
function createAggregator(setter, initializer) {
|
|
4200
4201
|
return function(collection, iteratee$1) {
|
|
4201
|
-
var func = isArray$
|
|
4202
|
+
var func = isArray$4(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
|
|
4202
4203
|
return func(collection, setter, getIteratee(iteratee$1, 2), accumulator);
|
|
4203
4204
|
};
|
|
4204
4205
|
}
|
|
@@ -4327,7 +4328,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
4327
4328
|
case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
4328
4329
|
}
|
|
4329
4330
|
var thisBinding = baseCreate$2(Ctor.prototype), result$1 = Ctor.apply(thisBinding, args);
|
|
4330
|
-
return isObject$
|
|
4331
|
+
return isObject$12(result$1) ? result$1 : thisBinding;
|
|
4331
4332
|
};
|
|
4332
4333
|
}
|
|
4333
4334
|
/**
|
|
@@ -4398,7 +4399,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
4398
4399
|
}
|
|
4399
4400
|
return function() {
|
|
4400
4401
|
var args = arguments, value = args[0];
|
|
4401
|
-
if (wrapper && args.length == 1 && isArray$
|
|
4402
|
+
if (wrapper && args.length == 1 && isArray$4(value)) return wrapper.plant(value).value();
|
|
4402
4403
|
var index$1 = 0, result$1 = length ? funcs[index$1].apply(this, args) : value;
|
|
4403
4404
|
while (++index$1 < length) result$1 = funcs[index$1].call(this, result$1);
|
|
4404
4405
|
return result$1;
|
|
@@ -4761,7 +4762,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
4761
4762
|
* @returns {*} Returns the value to assign.
|
|
4762
4763
|
*/
|
|
4763
4764
|
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
|
4764
|
-
if (isObject$
|
|
4765
|
+
if (isObject$12(objValue) && isObject$12(srcValue)) {
|
|
4765
4766
|
stack.set(srcValue, objValue);
|
|
4766
4767
|
baseMerge$2(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
|
|
4767
4768
|
stack["delete"](srcValue);
|
|
@@ -5176,7 +5177,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5176
5177
|
}
|
|
5177
5178
|
if (result$1 || ++index != length) return result$1;
|
|
5178
5179
|
length = object == null ? 0 : object.length;
|
|
5179
|
-
return !!length && isLength$3(length) && isIndex$3(key, length) && (isArray$
|
|
5180
|
+
return !!length && isLength$3(length) && isIndex$3(key, length) && (isArray$4(object) || isArguments$3(object));
|
|
5180
5181
|
}
|
|
5181
5182
|
/**
|
|
5182
5183
|
* Initializes an array clone.
|
|
@@ -5263,7 +5264,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5263
5264
|
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
5264
5265
|
*/
|
|
5265
5266
|
function isFlattenable(value) {
|
|
5266
|
-
return isArray$
|
|
5267
|
+
return isArray$4(value) || isArguments$3(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
5267
5268
|
}
|
|
5268
5269
|
/**
|
|
5269
5270
|
* Checks if `value` is a valid array-like index.
|
|
@@ -5289,7 +5290,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5289
5290
|
* else `false`.
|
|
5290
5291
|
*/
|
|
5291
5292
|
function isIterateeCall$2(value, index, object) {
|
|
5292
|
-
if (!isObject$
|
|
5293
|
+
if (!isObject$12(object)) return false;
|
|
5293
5294
|
var type = typeof index;
|
|
5294
5295
|
if (type == "number" ? isArrayLike$4(object) && isIndex$3(index, object.length) : type == "string" && index in object) return eq$5(object[index], value);
|
|
5295
5296
|
return false;
|
|
@@ -5303,7 +5304,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5303
5304
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
5304
5305
|
*/
|
|
5305
5306
|
function isKey(value, object) {
|
|
5306
|
-
if (isArray$
|
|
5307
|
+
if (isArray$4(value)) return false;
|
|
5307
5308
|
var type = typeof value;
|
|
5308
5309
|
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) return true;
|
|
5309
5310
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object$1(object);
|
|
@@ -5372,7 +5373,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5372
5373
|
* equality comparisons, else `false`.
|
|
5373
5374
|
*/
|
|
5374
5375
|
function isStrictComparable(value) {
|
|
5375
|
-
return value === value && !isObject$
|
|
5376
|
+
return value === value && !isObject$12(value);
|
|
5376
5377
|
}
|
|
5377
5378
|
/**
|
|
5378
5379
|
* A specialized version of `matchesProperty` for source values suitable
|
|
@@ -5779,7 +5780,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
5779
5780
|
if (!length) return [];
|
|
5780
5781
|
var args = Array$1(length - 1), array = arguments[0], index = length;
|
|
5781
5782
|
while (index--) args[index - 1] = arguments[index];
|
|
5782
|
-
return arrayPush(isArray$
|
|
5783
|
+
return arrayPush(isArray$4(array) ? copyArray$2(array) : [array], baseFlatten(args, 1));
|
|
5783
5784
|
}
|
|
5784
5785
|
/**
|
|
5785
5786
|
* Creates an array of `array` values not included in the other given arrays
|
|
@@ -7784,7 +7785,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
7784
7785
|
* // => false
|
|
7785
7786
|
*/
|
|
7786
7787
|
function every(collection, predicate, guard) {
|
|
7787
|
-
var func = isArray$
|
|
7788
|
+
var func = isArray$4(collection) ? arrayEvery : baseEvery;
|
|
7788
7789
|
if (guard && isIterateeCall$2(collection, predicate, guard)) predicate = undefined$1;
|
|
7789
7790
|
return func(collection, getIteratee(predicate, 3));
|
|
7790
7791
|
}
|
|
@@ -7830,7 +7831,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
7830
7831
|
* // => objects for ['fred', 'barney']
|
|
7831
7832
|
*/
|
|
7832
7833
|
function filter(collection, predicate) {
|
|
7833
|
-
var func = isArray$
|
|
7834
|
+
var func = isArray$4(collection) ? arrayFilter : baseFilter;
|
|
7834
7835
|
return func(collection, getIteratee(predicate, 3));
|
|
7835
7836
|
}
|
|
7836
7837
|
/**
|
|
@@ -7993,7 +7994,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
7993
7994
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
7994
7995
|
*/
|
|
7995
7996
|
function forEach(collection, iteratee$1) {
|
|
7996
|
-
var func = isArray$
|
|
7997
|
+
var func = isArray$4(collection) ? arrayEach : baseEach;
|
|
7997
7998
|
return func(collection, getIteratee(iteratee$1, 3));
|
|
7998
7999
|
}
|
|
7999
8000
|
/**
|
|
@@ -8017,7 +8018,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8017
8018
|
* // => Logs `2` then `1`.
|
|
8018
8019
|
*/
|
|
8019
8020
|
function forEachRight(collection, iteratee$1) {
|
|
8020
|
-
var func = isArray$
|
|
8021
|
+
var func = isArray$4(collection) ? arrayEachRight : baseEachRight;
|
|
8021
8022
|
return func(collection, getIteratee(iteratee$1, 3));
|
|
8022
8023
|
}
|
|
8023
8024
|
/**
|
|
@@ -8188,7 +8189,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8188
8189
|
* // => ['barney', 'fred']
|
|
8189
8190
|
*/
|
|
8190
8191
|
function map(collection, iteratee$1) {
|
|
8191
|
-
var func = isArray$
|
|
8192
|
+
var func = isArray$4(collection) ? arrayMap : baseMap;
|
|
8192
8193
|
return func(collection, getIteratee(iteratee$1, 3));
|
|
8193
8194
|
}
|
|
8194
8195
|
/**
|
|
@@ -8222,9 +8223,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8222
8223
|
*/
|
|
8223
8224
|
function orderBy(collection, iteratees, orders, guard) {
|
|
8224
8225
|
if (collection == null) return [];
|
|
8225
|
-
if (!isArray$
|
|
8226
|
+
if (!isArray$4(iteratees)) iteratees = iteratees == null ? [] : [iteratees];
|
|
8226
8227
|
orders = guard ? undefined$1 : orders;
|
|
8227
|
-
if (!isArray$
|
|
8228
|
+
if (!isArray$4(orders)) orders = orders == null ? [] : [orders];
|
|
8228
8229
|
return baseOrderBy(collection, iteratees, orders);
|
|
8229
8230
|
}
|
|
8230
8231
|
/**
|
|
@@ -8306,7 +8307,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8306
8307
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
8307
8308
|
*/
|
|
8308
8309
|
function reduce(collection, iteratee$1, accumulator) {
|
|
8309
|
-
var func = isArray$
|
|
8310
|
+
var func = isArray$4(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
8310
8311
|
return func(collection, getIteratee(iteratee$1, 4), accumulator, initAccum, baseEach);
|
|
8311
8312
|
}
|
|
8312
8313
|
/**
|
|
@@ -8332,7 +8333,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8332
8333
|
* // => [4, 5, 2, 3, 0, 1]
|
|
8333
8334
|
*/
|
|
8334
8335
|
function reduceRight(collection, iteratee$1, accumulator) {
|
|
8335
|
-
var func = isArray$
|
|
8336
|
+
var func = isArray$4(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
|
|
8336
8337
|
return func(collection, getIteratee(iteratee$1, 4), accumulator, initAccum, baseEachRight);
|
|
8337
8338
|
}
|
|
8338
8339
|
/**
|
|
@@ -8370,7 +8371,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8370
8371
|
* // => objects for ['barney']
|
|
8371
8372
|
*/
|
|
8372
8373
|
function reject(collection, predicate) {
|
|
8373
|
-
var func = isArray$
|
|
8374
|
+
var func = isArray$4(collection) ? arrayFilter : baseFilter;
|
|
8374
8375
|
return func(collection, negate(getIteratee(predicate, 3)));
|
|
8375
8376
|
}
|
|
8376
8377
|
/**
|
|
@@ -8388,7 +8389,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8388
8389
|
* // => 2
|
|
8389
8390
|
*/
|
|
8390
8391
|
function sample(collection) {
|
|
8391
|
-
var func = isArray$
|
|
8392
|
+
var func = isArray$4(collection) ? arraySample : baseSample;
|
|
8392
8393
|
return func(collection);
|
|
8393
8394
|
}
|
|
8394
8395
|
/**
|
|
@@ -8414,7 +8415,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8414
8415
|
function sampleSize(collection, n, guard) {
|
|
8415
8416
|
if (guard ? isIterateeCall$2(collection, n, guard) : n === undefined$1) n = 1;
|
|
8416
8417
|
else n = toInteger(n);
|
|
8417
|
-
var func = isArray$
|
|
8418
|
+
var func = isArray$4(collection) ? arraySampleSize : baseSampleSize;
|
|
8418
8419
|
return func(collection, n);
|
|
8419
8420
|
}
|
|
8420
8421
|
/**
|
|
@@ -8433,7 +8434,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8433
8434
|
* // => [4, 1, 3, 2]
|
|
8434
8435
|
*/
|
|
8435
8436
|
function shuffle(collection) {
|
|
8436
|
-
var func = isArray$
|
|
8437
|
+
var func = isArray$4(collection) ? arrayShuffle : baseShuffle;
|
|
8437
8438
|
return func(collection);
|
|
8438
8439
|
}
|
|
8439
8440
|
/**
|
|
@@ -8501,7 +8502,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8501
8502
|
* // => true
|
|
8502
8503
|
*/
|
|
8503
8504
|
function some(collection, predicate, guard) {
|
|
8504
|
-
var func = isArray$
|
|
8505
|
+
var func = isArray$4(collection) ? arraySome : baseSome;
|
|
8505
8506
|
if (guard && isIterateeCall$2(collection, predicate, guard)) predicate = undefined$1;
|
|
8506
8507
|
return func(collection, getIteratee(predicate, 3));
|
|
8507
8508
|
}
|
|
@@ -8885,7 +8886,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
8885
8886
|
var lastArgs, lastThis, maxWait, result$1, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
8886
8887
|
if (typeof func != "function") throw new TypeError$1(FUNC_ERROR_TEXT$2);
|
|
8887
8888
|
wait = toNumber$2(wait) || 0;
|
|
8888
|
-
if (isObject$
|
|
8889
|
+
if (isObject$12(options)) {
|
|
8889
8890
|
leading = !!options.leading;
|
|
8890
8891
|
maxing = "maxWait" in options;
|
|
8891
8892
|
maxWait = maxing ? nativeMax$2(toNumber$2(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -9157,7 +9158,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
9157
9158
|
* // => [100, 10]
|
|
9158
9159
|
*/
|
|
9159
9160
|
var overArgs = castRest(function(func, transforms) {
|
|
9160
|
-
transforms = transforms.length == 1 && isArray$
|
|
9161
|
+
transforms = transforms.length == 1 && isArray$4(transforms[0]) ? arrayMap(transforms[0], baseUnary$2(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary$2(getIteratee()));
|
|
9161
9162
|
var funcsLength = transforms.length;
|
|
9162
9163
|
return baseRest$2(function(args) {
|
|
9163
9164
|
var index = -1, length = nativeMin$1(args.length, funcsLength);
|
|
@@ -9383,7 +9384,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
9383
9384
|
function throttle$1(func, wait, options) {
|
|
9384
9385
|
var leading = true, trailing = true;
|
|
9385
9386
|
if (typeof func != "function") throw new TypeError$1(FUNC_ERROR_TEXT$2);
|
|
9386
|
-
if (isObject$
|
|
9387
|
+
if (isObject$12(options)) {
|
|
9387
9388
|
leading = "leading" in options ? !!options.leading : leading;
|
|
9388
9389
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
9389
9390
|
}
|
|
@@ -9472,7 +9473,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
9472
9473
|
function castArray() {
|
|
9473
9474
|
if (!arguments.length) return [];
|
|
9474
9475
|
var value = arguments[0];
|
|
9475
|
-
return isArray$
|
|
9476
|
+
return isArray$4(value) ? value : [value];
|
|
9476
9477
|
}
|
|
9477
9478
|
/**
|
|
9478
9479
|
* Creates a shallow clone of `value`.
|
|
@@ -9749,7 +9750,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
9749
9750
|
* _.isArray(_.noop);
|
|
9750
9751
|
* // => false
|
|
9751
9752
|
*/
|
|
9752
|
-
var isArray$
|
|
9753
|
+
var isArray$4 = Array$1.isArray;
|
|
9753
9754
|
/**
|
|
9754
9755
|
* Checks if `value` is classified as an `ArrayBuffer` object.
|
|
9755
9756
|
*
|
|
@@ -9935,7 +9936,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
9935
9936
|
*/
|
|
9936
9937
|
function isEmpty(value) {
|
|
9937
9938
|
if (value == null) return true;
|
|
9938
|
-
if (isArrayLike$4(value) && (isArray$
|
|
9939
|
+
if (isArrayLike$4(value) && (isArray$4(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer$3(value) || isTypedArray$3(value) || isArguments$3(value))) return !value.length;
|
|
9939
9940
|
var tag = getTag(value);
|
|
9940
9941
|
if (tag == mapTag$1 || tag == setTag$1) return !value.size;
|
|
9941
9942
|
if (isPrototype$3(value)) return !baseKeys(value).length;
|
|
@@ -10080,7 +10081,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
10080
10081
|
* // => false
|
|
10081
10082
|
*/
|
|
10082
10083
|
function isFunction$4(value) {
|
|
10083
|
-
if (!isObject$
|
|
10084
|
+
if (!isObject$12(value)) return false;
|
|
10084
10085
|
var tag = baseGetTag$6(value);
|
|
10085
10086
|
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag$1 || tag == proxyTag$1;
|
|
10086
10087
|
}
|
|
@@ -10167,7 +10168,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
10167
10168
|
* _.isObject(null);
|
|
10168
10169
|
* // => false
|
|
10169
10170
|
*/
|
|
10170
|
-
function isObject$
|
|
10171
|
+
function isObject$12(value) {
|
|
10171
10172
|
var type = typeof value;
|
|
10172
10173
|
return value != null && (type == "object" || type == "function");
|
|
10173
10174
|
}
|
|
@@ -10535,7 +10536,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
10535
10536
|
* // => false
|
|
10536
10537
|
*/
|
|
10537
10538
|
function isString(value) {
|
|
10538
|
-
return typeof value == "string" || !isArray$
|
|
10539
|
+
return typeof value == "string" || !isArray$4(value) && isObjectLike$7(value) && baseGetTag$6(value) == stringTag$1;
|
|
10539
10540
|
}
|
|
10540
10541
|
/**
|
|
10541
10542
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
@@ -10833,9 +10834,9 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
10833
10834
|
function toNumber$2(value) {
|
|
10834
10835
|
if (typeof value == "number") return value;
|
|
10835
10836
|
if (isSymbol$2(value)) return NAN$1;
|
|
10836
|
-
if (isObject$
|
|
10837
|
+
if (isObject$12(value)) {
|
|
10837
10838
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
10838
|
-
value = isObject$
|
|
10839
|
+
value = isObject$12(other) ? other + "" : other;
|
|
10839
10840
|
}
|
|
10840
10841
|
if (typeof value != "string") return value === 0 ? value : +value;
|
|
10841
10842
|
value = baseTrim$2(value);
|
|
@@ -12065,12 +12066,12 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
12065
12066
|
* // => { '1': ['a', 'c'], '2': ['b'] }
|
|
12066
12067
|
*/
|
|
12067
12068
|
function transform(object, iteratee$1, accumulator) {
|
|
12068
|
-
var isArr = isArray$
|
|
12069
|
+
var isArr = isArray$4(object), isArrLike = isArr || isBuffer$3(object) || isTypedArray$3(object);
|
|
12069
12070
|
iteratee$1 = getIteratee(iteratee$1, 4);
|
|
12070
12071
|
if (accumulator == null) {
|
|
12071
12072
|
var Ctor = object && object.constructor;
|
|
12072
12073
|
if (isArrLike) accumulator = isArr ? new Ctor() : [];
|
|
12073
|
-
else if (isObject$
|
|
12074
|
+
else if (isObject$12(object)) accumulator = isFunction$4(Ctor) ? baseCreate$2(getPrototype$3(object)) : {};
|
|
12074
12075
|
else accumulator = {};
|
|
12075
12076
|
}
|
|
12076
12077
|
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object$1) {
|
|
@@ -13162,7 +13163,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
13162
13163
|
*/
|
|
13163
13164
|
function truncate(string, options) {
|
|
13164
13165
|
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
|
|
13165
|
-
if (isObject$
|
|
13166
|
+
if (isObject$12(options)) {
|
|
13166
13167
|
var separator = "separator" in options ? options.separator : separator;
|
|
13167
13168
|
length = "length" in options ? toInteger(options.length) : length;
|
|
13168
13169
|
omission = "omission" in options ? baseToString(options.omission) : omission;
|
|
@@ -13739,13 +13740,13 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
13739
13740
|
*/
|
|
13740
13741
|
function mixin(object, source, options) {
|
|
13741
13742
|
var props = keys(source), methodNames = baseFunctions(source, props);
|
|
13742
|
-
if (options == null && !(isObject$
|
|
13743
|
+
if (options == null && !(isObject$12(source) && (methodNames.length || !props.length))) {
|
|
13743
13744
|
options = source;
|
|
13744
13745
|
source = object;
|
|
13745
13746
|
object = this;
|
|
13746
13747
|
methodNames = baseFunctions(source, keys(source));
|
|
13747
13748
|
}
|
|
13748
|
-
var chain$1 = !(isObject$
|
|
13749
|
+
var chain$1 = !(isObject$12(options) && "chain" in options) || !!options.chain, isFunc = isFunction$4(object);
|
|
13749
13750
|
arrayEach(methodNames, function(methodName) {
|
|
13750
13751
|
var func = source[methodName];
|
|
13751
13752
|
object[methodName] = func;
|
|
@@ -14169,7 +14170,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
14169
14170
|
* // => ['a', '0', 'b', 'c']
|
|
14170
14171
|
*/
|
|
14171
14172
|
function toPath(value) {
|
|
14172
|
-
if (isArray$
|
|
14173
|
+
if (isArray$4(value)) return arrayMap(value, toKey);
|
|
14173
14174
|
return isSymbol$2(value) ? [value] : copyArray$2(stringToPath(toString(value)));
|
|
14174
14175
|
}
|
|
14175
14176
|
/**
|
|
@@ -14709,7 +14710,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
14709
14710
|
lodash.inRange = inRange;
|
|
14710
14711
|
lodash.invoke = invoke;
|
|
14711
14712
|
lodash.isArguments = isArguments$3;
|
|
14712
|
-
lodash.isArray = isArray$
|
|
14713
|
+
lodash.isArray = isArray$4;
|
|
14713
14714
|
lodash.isArrayBuffer = isArrayBuffer;
|
|
14714
14715
|
lodash.isArrayLike = isArrayLike$4;
|
|
14715
14716
|
lodash.isArrayLikeObject = isArrayLikeObject$2;
|
|
@@ -14733,7 +14734,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
14733
14734
|
lodash.isNil = isNil;
|
|
14734
14735
|
lodash.isNull = isNull;
|
|
14735
14736
|
lodash.isNumber = isNumber;
|
|
14736
|
-
lodash.isObject = isObject$
|
|
14737
|
+
lodash.isObject = isObject$12;
|
|
14737
14738
|
lodash.isObjectLike = isObjectLike$7;
|
|
14738
14739
|
lodash.isPlainObject = isPlainObject$2;
|
|
14739
14740
|
lodash.isRegExp = isRegExp;
|
|
@@ -14925,7 +14926,7 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
14925
14926
|
var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName);
|
|
14926
14927
|
if (!lodashFunc) return;
|
|
14927
14928
|
lodash.prototype[methodName] = function() {
|
|
14928
|
-
var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee$1 = args[0], useLazy = isLazy || isArray$
|
|
14929
|
+
var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee$1 = args[0], useLazy = isLazy || isArray$4(value);
|
|
14929
14930
|
var interceptor = function(value$1) {
|
|
14930
14931
|
var result$2 = lodashFunc.apply(lodash, arrayPush([value$1], args));
|
|
14931
14932
|
return isTaker && chainAll ? result$2[0] : result$2;
|
|
@@ -14960,10 +14961,10 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
14960
14961
|
var args = arguments;
|
|
14961
14962
|
if (retUnwrapped && !this.__chain__) {
|
|
14962
14963
|
var value = this.value();
|
|
14963
|
-
return func.apply(isArray$
|
|
14964
|
+
return func.apply(isArray$4(value) ? value : [], args);
|
|
14964
14965
|
}
|
|
14965
14966
|
return this[chainName](function(value$1) {
|
|
14966
|
-
return func.apply(isArray$
|
|
14967
|
+
return func.apply(isArray$4(value$1) ? value$1 : [], args);
|
|
14967
14968
|
});
|
|
14968
14969
|
};
|
|
14969
14970
|
});
|
|
@@ -15008,12 +15009,11 @@ var require_lodash = __commonJS({ "../../node_modules/lodash/lodash.js"(exports,
|
|
|
15008
15009
|
} else root$8._ = _;
|
|
15009
15010
|
}).call(exports);
|
|
15010
15011
|
} });
|
|
15011
|
-
var import_lodash$1 = __toESM(require_lodash());
|
|
15012
15012
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
15013
15013
|
|
|
15014
15014
|
//#endregion
|
|
15015
15015
|
//#region src/yjs.ts
|
|
15016
|
-
var yjs_default = Y;
|
|
15016
|
+
var yjs_default = Y$1;
|
|
15017
15017
|
|
|
15018
15018
|
//#endregion
|
|
15019
15019
|
//#region src/stores/default-initial-state.ts
|
|
@@ -15153,13 +15153,13 @@ var WeaveStore = class {
|
|
|
15153
15153
|
node: JSON.parse(JSON.stringify(nodeInfo.node))
|
|
15154
15154
|
});
|
|
15155
15155
|
}
|
|
15156
|
-
if (!this.isRoomLoaded && !(0, import_lodash
|
|
15156
|
+
if (!this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) {
|
|
15157
15157
|
this.instance.setupRenderer();
|
|
15158
15158
|
this.isRoomLoaded = true;
|
|
15159
15159
|
this.emitOnRoomLoadedEvent();
|
|
15160
15160
|
return;
|
|
15161
15161
|
}
|
|
15162
|
-
if (this.isRoomLoaded && !(0, import_lodash
|
|
15162
|
+
if (this.isRoomLoaded && !(0, import_lodash.isEmpty)(this.state.weave)) this.instance.render();
|
|
15163
15163
|
});
|
|
15164
15164
|
}
|
|
15165
15165
|
canUndoStateStep() {
|
|
@@ -15713,17 +15713,17 @@ var require_isObject = __commonJS({ "../../node_modules/lodash/isObject.js"(expo
|
|
|
15713
15713
|
* _.isObject(null);
|
|
15714
15714
|
* // => false
|
|
15715
15715
|
*/
|
|
15716
|
-
function isObject$
|
|
15716
|
+
function isObject$11(value) {
|
|
15717
15717
|
var type = typeof value;
|
|
15718
15718
|
return value != null && (type == "object" || type == "function");
|
|
15719
15719
|
}
|
|
15720
|
-
module.exports = isObject$
|
|
15720
|
+
module.exports = isObject$11;
|
|
15721
15721
|
} });
|
|
15722
15722
|
|
|
15723
15723
|
//#endregion
|
|
15724
15724
|
//#region ../../node_modules/lodash/isFunction.js
|
|
15725
15725
|
var require_isFunction = __commonJS({ "../../node_modules/lodash/isFunction.js"(exports, module) {
|
|
15726
|
-
var baseGetTag$4 = require__baseGetTag(), isObject$
|
|
15726
|
+
var baseGetTag$4 = require__baseGetTag(), isObject$10 = require_isObject();
|
|
15727
15727
|
/** `Object#toString` result references. */
|
|
15728
15728
|
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
15729
15729
|
/**
|
|
@@ -15744,7 +15744,7 @@ var require_isFunction = __commonJS({ "../../node_modules/lodash/isFunction.js"(
|
|
|
15744
15744
|
* // => false
|
|
15745
15745
|
*/
|
|
15746
15746
|
function isFunction$3(value) {
|
|
15747
|
-
if (!isObject$
|
|
15747
|
+
if (!isObject$10(value)) return false;
|
|
15748
15748
|
var tag = baseGetTag$4(value);
|
|
15749
15749
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
15750
15750
|
}
|
|
@@ -15813,7 +15813,7 @@ var require__toSource = __commonJS({ "../../node_modules/lodash/_toSource.js"(ex
|
|
|
15813
15813
|
//#endregion
|
|
15814
15814
|
//#region ../../node_modules/lodash/_baseIsNative.js
|
|
15815
15815
|
var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNative.js"(exports, module) {
|
|
15816
|
-
var isFunction$2 = require_isFunction(), isMasked = require__isMasked(), isObject$
|
|
15816
|
+
var isFunction$2 = require_isFunction(), isMasked = require__isMasked(), isObject$9 = require_isObject(), toSource = require__toSource();
|
|
15817
15817
|
/**
|
|
15818
15818
|
* Used to match `RegExp`
|
|
15819
15819
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -15838,7 +15838,7 @@ var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNativ
|
|
|
15838
15838
|
* else `false`.
|
|
15839
15839
|
*/
|
|
15840
15840
|
function baseIsNative$1(value) {
|
|
15841
|
-
if (!isObject$
|
|
15841
|
+
if (!isObject$9(value) || isMasked(value)) return false;
|
|
15842
15842
|
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
15843
15843
|
return pattern.test(toSource(value));
|
|
15844
15844
|
}
|
|
@@ -16465,7 +16465,7 @@ var require__copyArray = __commonJS({ "../../node_modules/lodash/_copyArray.js"(
|
|
|
16465
16465
|
//#endregion
|
|
16466
16466
|
//#region ../../node_modules/lodash/_baseCreate.js
|
|
16467
16467
|
var require__baseCreate = __commonJS({ "../../node_modules/lodash/_baseCreate.js"(exports, module) {
|
|
16468
|
-
var isObject$
|
|
16468
|
+
var isObject$8 = require_isObject();
|
|
16469
16469
|
/** Built-in value references. */
|
|
16470
16470
|
var objectCreate = Object.create;
|
|
16471
16471
|
/**
|
|
@@ -16479,7 +16479,7 @@ var require__baseCreate = __commonJS({ "../../node_modules/lodash/_baseCreate.js
|
|
|
16479
16479
|
var baseCreate$1 = function() {
|
|
16480
16480
|
function object() {}
|
|
16481
16481
|
return function(proto) {
|
|
16482
|
-
if (!isObject$
|
|
16482
|
+
if (!isObject$8(proto)) return {};
|
|
16483
16483
|
if (objectCreate) return objectCreate(proto);
|
|
16484
16484
|
object.prototype = proto;
|
|
16485
16485
|
var result = new object();
|
|
@@ -16668,8 +16668,8 @@ var require_isArray = __commonJS({ "../../node_modules/lodash/isArray.js"(export
|
|
|
16668
16668
|
* _.isArray(_.noop);
|
|
16669
16669
|
* // => false
|
|
16670
16670
|
*/
|
|
16671
|
-
var isArray$
|
|
16672
|
-
module.exports = isArray$
|
|
16671
|
+
var isArray$3 = Array.isArray;
|
|
16672
|
+
module.exports = isArray$3;
|
|
16673
16673
|
} });
|
|
16674
16674
|
|
|
16675
16675
|
//#endregion
|
|
@@ -17098,7 +17098,7 @@ var require__isIndex = __commonJS({ "../../node_modules/lodash/_isIndex.js"(expo
|
|
|
17098
17098
|
//#endregion
|
|
17099
17099
|
//#region ../../node_modules/lodash/_arrayLikeKeys.js
|
|
17100
17100
|
var require__arrayLikeKeys = __commonJS({ "../../node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
|
|
17101
|
-
var baseTimes = require__baseTimes(), isArguments$1 = require_isArguments(), isArray$
|
|
17101
|
+
var baseTimes = require__baseTimes(), isArguments$1 = require_isArguments(), isArray$2 = require_isArray(), isBuffer$1 = require_isBuffer(), isIndex$1 = require__isIndex(), isTypedArray$1 = require_isTypedArray();
|
|
17102
17102
|
/** Used for built-in method references. */
|
|
17103
17103
|
var objectProto$1 = Object.prototype;
|
|
17104
17104
|
/** Used to check objects for own properties. */
|
|
@@ -17112,7 +17112,7 @@ var require__arrayLikeKeys = __commonJS({ "../../node_modules/lodash/_arrayLikeK
|
|
|
17112
17112
|
* @returns {Array} Returns the array of property names.
|
|
17113
17113
|
*/
|
|
17114
17114
|
function arrayLikeKeys$1(value, inherited) {
|
|
17115
|
-
var isArr = isArray$
|
|
17115
|
+
var isArr = isArray$2(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
17116
17116
|
for (var key in value) if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$1(key, length)))) result.push(key);
|
|
17117
17117
|
return result;
|
|
17118
17118
|
}
|
|
@@ -17142,7 +17142,7 @@ var require__nativeKeysIn = __commonJS({ "../../node_modules/lodash/_nativeKeysI
|
|
|
17142
17142
|
//#endregion
|
|
17143
17143
|
//#region ../../node_modules/lodash/_baseKeysIn.js
|
|
17144
17144
|
var require__baseKeysIn = __commonJS({ "../../node_modules/lodash/_baseKeysIn.js"(exports, module) {
|
|
17145
|
-
var isObject$
|
|
17145
|
+
var isObject$7 = require_isObject(), isPrototype = require__isPrototype(), nativeKeysIn = require__nativeKeysIn();
|
|
17146
17146
|
/** Used for built-in method references. */
|
|
17147
17147
|
var objectProto = Object.prototype;
|
|
17148
17148
|
/** Used to check objects for own properties. */
|
|
@@ -17155,7 +17155,7 @@ var require__baseKeysIn = __commonJS({ "../../node_modules/lodash/_baseKeysIn.js
|
|
|
17155
17155
|
* @returns {Array} Returns the array of property names.
|
|
17156
17156
|
*/
|
|
17157
17157
|
function baseKeysIn$1(object) {
|
|
17158
|
-
if (!isObject$
|
|
17158
|
+
if (!isObject$7(object)) return nativeKeysIn(object);
|
|
17159
17159
|
var isProto = isPrototype(object), result = [];
|
|
17160
17160
|
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) result.push(key);
|
|
17161
17161
|
return result;
|
|
@@ -17233,7 +17233,7 @@ var require_toPlainObject = __commonJS({ "../../node_modules/lodash/toPlainObjec
|
|
|
17233
17233
|
//#endregion
|
|
17234
17234
|
//#region ../../node_modules/lodash/_baseMergeDeep.js
|
|
17235
17235
|
var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeDeep.js"(exports, module) {
|
|
17236
|
-
var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments = require_isArguments(), isArray = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer = require_isBuffer(), isFunction = require_isFunction(), isObject$
|
|
17236
|
+
var assignMergeValue$1 = require__assignMergeValue(), cloneBuffer = require__cloneBuffer(), cloneTypedArray = require__cloneTypedArray(), copyArray = require__copyArray(), initCloneObject = require__initCloneObject(), isArguments = require_isArguments(), isArray$1 = require_isArray(), isArrayLikeObject = require_isArrayLikeObject(), isBuffer = require_isBuffer(), isFunction = require_isFunction(), isObject$6 = require_isObject(), isPlainObject = require_isPlainObject(), isTypedArray = require_isTypedArray(), safeGet$1 = require__safeGet(), toPlainObject = require_toPlainObject();
|
|
17237
17237
|
/**
|
|
17238
17238
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
17239
17239
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -17258,9 +17258,9 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
|
|
|
17258
17258
|
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
17259
17259
|
var isCommon = newValue === void 0;
|
|
17260
17260
|
if (isCommon) {
|
|
17261
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
17261
|
+
var isArr = isArray$1(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
17262
17262
|
newValue = srcValue;
|
|
17263
|
-
if (isArr || isBuff || isTyped) if (isArray(objValue)) newValue = objValue;
|
|
17263
|
+
if (isArr || isBuff || isTyped) if (isArray$1(objValue)) newValue = objValue;
|
|
17264
17264
|
else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
|
|
17265
17265
|
else if (isBuff) {
|
|
17266
17266
|
isCommon = false;
|
|
@@ -17272,7 +17272,7 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
|
|
|
17272
17272
|
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
17273
17273
|
newValue = objValue;
|
|
17274
17274
|
if (isArguments(objValue)) newValue = toPlainObject(objValue);
|
|
17275
|
-
else if (!isObject$
|
|
17275
|
+
else if (!isObject$6(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
|
|
17276
17276
|
} else isCommon = false;
|
|
17277
17277
|
}
|
|
17278
17278
|
if (isCommon) {
|
|
@@ -17288,7 +17288,7 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
|
|
|
17288
17288
|
//#endregion
|
|
17289
17289
|
//#region ../../node_modules/lodash/_baseMerge.js
|
|
17290
17290
|
var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(exports, module) {
|
|
17291
|
-
var Stack = require__Stack(), assignMergeValue = require__assignMergeValue(), baseFor = require__baseFor(), baseMergeDeep = require__baseMergeDeep(), isObject$
|
|
17291
|
+
var Stack = require__Stack(), assignMergeValue = require__assignMergeValue(), baseFor = require__baseFor(), baseMergeDeep = require__baseMergeDeep(), isObject$5 = require_isObject(), keysIn = require_keysIn(), safeGet = require__safeGet();
|
|
17292
17292
|
/**
|
|
17293
17293
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
17294
17294
|
*
|
|
@@ -17304,7 +17304,7 @@ var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(
|
|
|
17304
17304
|
if (object === source) return;
|
|
17305
17305
|
baseFor(source, function(srcValue, key) {
|
|
17306
17306
|
stack || (stack = new Stack());
|
|
17307
|
-
if (isObject$
|
|
17307
|
+
if (isObject$5(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
|
|
17308
17308
|
else {
|
|
17309
17309
|
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
17310
17310
|
if (newValue === void 0) newValue = srcValue;
|
|
@@ -17513,7 +17513,7 @@ var require__baseRest = __commonJS({ "../../node_modules/lodash/_baseRest.js"(ex
|
|
|
17513
17513
|
//#endregion
|
|
17514
17514
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
17515
17515
|
var require__isIterateeCall = __commonJS({ "../../node_modules/lodash/_isIterateeCall.js"(exports, module) {
|
|
17516
|
-
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject$
|
|
17516
|
+
var eq = require_eq(), isArrayLike = require_isArrayLike(), isIndex = require__isIndex(), isObject$4 = require_isObject();
|
|
17517
17517
|
/**
|
|
17518
17518
|
* Checks if the given arguments are from an iteratee call.
|
|
17519
17519
|
*
|
|
@@ -17525,7 +17525,7 @@ var require__isIterateeCall = __commonJS({ "../../node_modules/lodash/_isIterate
|
|
|
17525
17525
|
* else `false`.
|
|
17526
17526
|
*/
|
|
17527
17527
|
function isIterateeCall$1(value, index, object) {
|
|
17528
|
-
if (!isObject$
|
|
17528
|
+
if (!isObject$4(object)) return false;
|
|
17529
17529
|
var type = typeof index;
|
|
17530
17530
|
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
|
|
17531
17531
|
return false;
|
|
@@ -17603,7 +17603,7 @@ var require_mergeWith = __commonJS({ "../../node_modules/lodash/mergeWith.js"(ex
|
|
|
17603
17603
|
});
|
|
17604
17604
|
module.exports = mergeWith;
|
|
17605
17605
|
} });
|
|
17606
|
-
var import_mergeWith = __toESM(require_mergeWith());
|
|
17606
|
+
var import_mergeWith = __toESM(require_mergeWith(), 1);
|
|
17607
17607
|
|
|
17608
17608
|
//#endregion
|
|
17609
17609
|
//#region src/utils.ts
|
|
@@ -18226,7 +18226,7 @@ var require_isSymbol = __commonJS({ "../../node_modules/lodash/isSymbol.js"(expo
|
|
|
18226
18226
|
//#endregion
|
|
18227
18227
|
//#region ../../node_modules/lodash/toNumber.js
|
|
18228
18228
|
var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(exports, module) {
|
|
18229
|
-
var baseTrim = require__baseTrim(), isObject$
|
|
18229
|
+
var baseTrim = require__baseTrim(), isObject$3 = require_isObject(), isSymbol = require_isSymbol();
|
|
18230
18230
|
/** Used as references for various `Number` constants. */
|
|
18231
18231
|
var NAN = NaN;
|
|
18232
18232
|
/** Used to detect bad signed hexadecimal string values. */
|
|
@@ -18263,9 +18263,9 @@ var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(expo
|
|
|
18263
18263
|
function toNumber$1(value) {
|
|
18264
18264
|
if (typeof value == "number") return value;
|
|
18265
18265
|
if (isSymbol(value)) return NAN;
|
|
18266
|
-
if (isObject$
|
|
18266
|
+
if (isObject$3(value)) {
|
|
18267
18267
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
18268
|
-
value = isObject$
|
|
18268
|
+
value = isObject$3(other) ? other + "" : other;
|
|
18269
18269
|
}
|
|
18270
18270
|
if (typeof value != "string") return value === 0 ? value : +value;
|
|
18271
18271
|
value = baseTrim(value);
|
|
@@ -18278,7 +18278,7 @@ var require_toNumber = __commonJS({ "../../node_modules/lodash/toNumber.js"(expo
|
|
|
18278
18278
|
//#endregion
|
|
18279
18279
|
//#region ../../node_modules/lodash/debounce.js
|
|
18280
18280
|
var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(exports, module) {
|
|
18281
|
-
var isObject$
|
|
18281
|
+
var isObject$2 = require_isObject(), now = require_now(), toNumber = require_toNumber();
|
|
18282
18282
|
/** Error message constants. */
|
|
18283
18283
|
var FUNC_ERROR_TEXT$1 = "Expected a function";
|
|
18284
18284
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
@@ -18340,7 +18340,7 @@ var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(expo
|
|
|
18340
18340
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
18341
18341
|
if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
18342
18342
|
wait = toNumber(wait) || 0;
|
|
18343
|
-
if (isObject$
|
|
18343
|
+
if (isObject$2(options)) {
|
|
18344
18344
|
leading = !!options.leading;
|
|
18345
18345
|
maxing = "maxWait" in options;
|
|
18346
18346
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -18411,7 +18411,7 @@ var require_debounce = __commonJS({ "../../node_modules/lodash/debounce.js"(expo
|
|
|
18411
18411
|
//#endregion
|
|
18412
18412
|
//#region ../../node_modules/lodash/throttle.js
|
|
18413
18413
|
var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(exports, module) {
|
|
18414
|
-
var debounce = require_debounce(), isObject = require_isObject();
|
|
18414
|
+
var debounce = require_debounce(), isObject$1 = require_isObject();
|
|
18415
18415
|
/** Error message constants. */
|
|
18416
18416
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
18417
18417
|
/**
|
|
@@ -18461,7 +18461,7 @@ var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(expo
|
|
|
18461
18461
|
function throttle(func, wait, options) {
|
|
18462
18462
|
var leading = true, trailing = true;
|
|
18463
18463
|
if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
18464
|
-
if (isObject(options)) {
|
|
18464
|
+
if (isObject$1(options)) {
|
|
18465
18465
|
leading = "leading" in options ? !!options.leading : leading;
|
|
18466
18466
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
18467
18467
|
}
|
|
@@ -18473,7 +18473,7 @@ var require_throttle = __commonJS({ "../../node_modules/lodash/throttle.js"(expo
|
|
|
18473
18473
|
}
|
|
18474
18474
|
module.exports = throttle;
|
|
18475
18475
|
} });
|
|
18476
|
-
var import_throttle = __toESM(require_throttle());
|
|
18476
|
+
var import_throttle = __toESM(require_throttle(), 1);
|
|
18477
18477
|
|
|
18478
18478
|
//#endregion
|
|
18479
18479
|
//#region src/nodes/stage/constants.ts
|
|
@@ -20087,7 +20087,7 @@ var WeaveNode = class {
|
|
|
20087
20087
|
if (nodesSelectionPlugin && this.isSelecting() && this.isNodeSelected(node$1)) nodesSelectionPlugin.getTransformer().forceUpdate();
|
|
20088
20088
|
if (nodesEdgeSnappingPlugin && transforming && this.isSelecting() && this.isNodeSelected(node$1)) nodesEdgeSnappingPlugin.evaluateGuidelines(e);
|
|
20089
20089
|
};
|
|
20090
|
-
node.on("transform", (0, import_lodash
|
|
20090
|
+
node.on("transform", (0, import_lodash.throttle)(handleTransform, 100));
|
|
20091
20091
|
node.on("transformend", (e) => {
|
|
20092
20092
|
const node$1 = e.target;
|
|
20093
20093
|
e.target.setAttr("strokeScaleEnabled", true);
|
|
@@ -20187,7 +20187,7 @@ var WeaveNode = class {
|
|
|
20187
20187
|
if (layerToMove && !hasFrames(realNodeTarget) && realNodeTarget.isDragging() && !realNodeTarget.getAttrs().lockToContainer) layerToMove.fire(WEAVE_NODE_CUSTOM_EVENTS.onTargetEnter, { node: realNodeTarget });
|
|
20188
20188
|
}
|
|
20189
20189
|
};
|
|
20190
|
-
node.on("dragmove", (0, import_lodash
|
|
20190
|
+
node.on("dragmove", (0, import_lodash.throttle)(handleDragMove, 100));
|
|
20191
20191
|
node.on("dragend", (e) => {
|
|
20192
20192
|
const nodeTarget = e.target;
|
|
20193
20193
|
if (this.getSelectionPlugin()?.getSelectedNodes().length === 1) {
|
|
@@ -21628,7 +21628,7 @@ var WeaveTextNode = class extends WeaveNode {
|
|
|
21628
21628
|
text.on("transformstart", (e) => {
|
|
21629
21629
|
this.instance.emitEvent("onTransform", e.target);
|
|
21630
21630
|
});
|
|
21631
|
-
text.on("transform", (0, import_lodash
|
|
21631
|
+
text.on("transform", (0, import_lodash.throttle)(handleTextTransform, 50));
|
|
21632
21632
|
text.on("transformend", () => {
|
|
21633
21633
|
this.instance.emitEvent("onTransform", null);
|
|
21634
21634
|
});
|
|
@@ -22005,7 +22005,6 @@ var WeaveTextNode = class extends WeaveNode {
|
|
|
22005
22005
|
this.instance.emitEvent("onExitTextNodeEditMode", { node: textNode });
|
|
22006
22006
|
}
|
|
22007
22007
|
triggerEditMode(textNode) {
|
|
22008
|
-
const stage = this.instance.getStage();
|
|
22009
22008
|
this.editing = true;
|
|
22010
22009
|
textNode.visible(false);
|
|
22011
22010
|
const selectionPlugin = this.instance.getPlugin("nodesSelection");
|
|
@@ -22015,11 +22014,9 @@ var WeaveTextNode = class extends WeaveNode {
|
|
|
22015
22014
|
tr.hide();
|
|
22016
22015
|
}
|
|
22017
22016
|
const textPosition = textNode.absolutePosition();
|
|
22018
|
-
const stageContainer = stage.container();
|
|
22019
|
-
const stageRect = stageContainer.getBoundingClientRect();
|
|
22020
22017
|
const areaPosition = {
|
|
22021
|
-
x:
|
|
22022
|
-
y:
|
|
22018
|
+
x: textPosition.x,
|
|
22019
|
+
y: textPosition.y
|
|
22023
22020
|
};
|
|
22024
22021
|
this.createTextAreaDOM(textNode, areaPosition);
|
|
22025
22022
|
this.instance.emitEvent("onEnterTextNodeEditMode", { node: textNode });
|
|
@@ -22304,7 +22301,7 @@ var WeaveImageCrop = class WeaveImageCrop {
|
|
|
22304
22301
|
this.cropRect.rotation(0);
|
|
22305
22302
|
const clipRectGroup = this.cropRect.getClientRect({ relativeTo: this.cropGroup });
|
|
22306
22303
|
if (!intersectionRect) return;
|
|
22307
|
-
const imageAttrs = this.
|
|
22304
|
+
const imageAttrs = this.image.getAttrs();
|
|
22308
22305
|
const actualScale = imageAttrs.uncroppedImage.width / imageAttrs.imageInfo.width;
|
|
22309
22306
|
const realClipRect = {
|
|
22310
22307
|
scaleX: actualScale,
|
|
@@ -24935,7 +24932,7 @@ var WeaveStageZoomPlugin = class extends WeavePlugin {
|
|
|
24935
24932
|
this.config.zoomSteps = [minimumZoom, ...this.config.zoomSteps];
|
|
24936
24933
|
}
|
|
24937
24934
|
};
|
|
24938
|
-
mainLayer?.on("draw", (0, import_lodash
|
|
24935
|
+
mainLayer?.on("draw", (0, import_lodash.throttle)(handleDraw, 50));
|
|
24939
24936
|
this.setZoom(this.config.zoomSteps[this.actualStep]);
|
|
24940
24937
|
}
|
|
24941
24938
|
setZoom(scale, centered = true, pointer) {
|
|
@@ -25279,7 +25276,7 @@ var WeaveStageZoomPlugin = class extends WeavePlugin {
|
|
|
25279
25276
|
requestAnimationFrame(this.zoomTick.bind(this));
|
|
25280
25277
|
}
|
|
25281
25278
|
};
|
|
25282
|
-
const throttledHandleWheel = (0, import_lodash
|
|
25279
|
+
const throttledHandleWheel = (0, import_lodash.throttle)(handleWheel, 30);
|
|
25283
25280
|
window.addEventListener("wheel", throttledHandleWheel, { passive: true });
|
|
25284
25281
|
}
|
|
25285
25282
|
getInertiaScale() {
|
|
@@ -28667,7 +28664,7 @@ var WeaveStageGridPlugin = class extends WeavePlugin {
|
|
|
28667
28664
|
if (!this.enabled || !(this.isSpaceKeyPressed || this.isMouseMiddleButtonPressed || this.moveToolActive)) return;
|
|
28668
28665
|
this.onRender();
|
|
28669
28666
|
};
|
|
28670
|
-
stage.on("pointermove", (0, import_lodash
|
|
28667
|
+
stage.on("pointermove", (0, import_lodash.throttle)(handleMouseMove, 50));
|
|
28671
28668
|
stage.on("pointermove", () => {
|
|
28672
28669
|
if (this.enabled) this.onRender();
|
|
28673
28670
|
});
|
|
@@ -28974,7 +28971,7 @@ var WeaveStagePanningPlugin = class extends WeavePlugin {
|
|
|
28974
28971
|
lastPos = pos;
|
|
28975
28972
|
this.instance.emitEvent("onStageMove");
|
|
28976
28973
|
};
|
|
28977
|
-
stage.on("pointermove", (0, import_lodash
|
|
28974
|
+
stage.on("pointermove", (0, import_lodash.throttle)(handleMouseMove, 50));
|
|
28978
28975
|
stage.on("pointerup", (e) => {
|
|
28979
28976
|
this.pointers.delete(e.evt.pointerId);
|
|
28980
28977
|
this.isMouseLeftButtonPressed = false;
|
|
@@ -29000,7 +28997,7 @@ var WeaveStagePanningPlugin = class extends WeavePlugin {
|
|
|
29000
28997
|
stage.y(stage.y() - e.deltaY);
|
|
29001
28998
|
this.instance.emitEvent("onStageMove");
|
|
29002
28999
|
};
|
|
29003
|
-
const handleWheelThrottled = (0, import_lodash
|
|
29000
|
+
const handleWheelThrottled = (0, import_lodash.throttle)(handleWheel, 20);
|
|
29004
29001
|
window.addEventListener("wheel", handleWheelThrottled, { passive: true });
|
|
29005
29002
|
stage.on("dragstart", (e) => {
|
|
29006
29003
|
const duration = 1e3 / 60;
|
|
@@ -29239,7 +29236,7 @@ var WeaveStageMinimapPlugin = class extends WeavePlugin {
|
|
|
29239
29236
|
this.setupMinimap();
|
|
29240
29237
|
}
|
|
29241
29238
|
onInit() {
|
|
29242
|
-
const throttledUpdateMinimap = (0, import_lodash
|
|
29239
|
+
const throttledUpdateMinimap = (0, import_lodash.throttle)(async () => {
|
|
29243
29240
|
await this.updateMinimapContent();
|
|
29244
29241
|
this.updateMinimapViewportReference();
|
|
29245
29242
|
}, 100);
|
|
@@ -29562,7 +29559,7 @@ var WeaveConnectedUsersPlugin = class extends WeavePlugin {
|
|
|
29562
29559
|
newConnectedUsers[userInformation.id] = userInformation;
|
|
29563
29560
|
}
|
|
29564
29561
|
}
|
|
29565
|
-
if (!(0, import_lodash
|
|
29562
|
+
if (!(0, import_lodash.isEqual)(this.connectedUsers, newConnectedUsers)) this.instance.emitEvent("onConnectedUsersChange", newConnectedUsers);
|
|
29566
29563
|
this.connectedUsers = newConnectedUsers;
|
|
29567
29564
|
});
|
|
29568
29565
|
}
|
|
@@ -29811,7 +29808,7 @@ var WeaveUsersPointersPlugin = class extends WeavePlugin {
|
|
|
29811
29808
|
for (let i = 0; i < inactiveUsers.length; i++) delete this.usersPointers[inactiveUsers[i]];
|
|
29812
29809
|
this.renderPointers();
|
|
29813
29810
|
});
|
|
29814
|
-
const sendAwarenessUpdateThrottled = (0, import_lodash
|
|
29811
|
+
const sendAwarenessUpdateThrottled = (0, import_lodash.throttle)(this.sendAwarenessUpdate.bind(this), this.config.awarenessThrottleMs);
|
|
29815
29812
|
stage.on("dragmove", () => {
|
|
29816
29813
|
const mousePos = stage.getRelativePointerPosition();
|
|
29817
29814
|
if (mousePos) sendAwarenessUpdateThrottled(mousePos);
|
|
@@ -29820,7 +29817,7 @@ var WeaveUsersPointersPlugin = class extends WeavePlugin {
|
|
|
29820
29817
|
const mousePos = stage.getRelativePointerPosition();
|
|
29821
29818
|
if (mousePos) sendAwarenessUpdateThrottled(mousePos);
|
|
29822
29819
|
};
|
|
29823
|
-
const throttledHandleOnPointerMove = (0, import_lodash
|
|
29820
|
+
const throttledHandleOnPointerMove = (0, import_lodash.throttle)(handleOnPointerMove, this.config.awarenessThrottleMs);
|
|
29824
29821
|
stage.on("pointermove", throttledHandleOnPointerMove);
|
|
29825
29822
|
this.renderPointers();
|
|
29826
29823
|
}
|
|
@@ -31055,10 +31052,8 @@ var WeaveStageKeyboardMovePlugin = class extends WeavePlugin {
|
|
|
31055
31052
|
|
|
31056
31053
|
//#endregion
|
|
31057
31054
|
//#region src/index.node.ts
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
global._weave_serverSideBackend = void 0;
|
|
31061
|
-
}
|
|
31055
|
+
globalThis._weave_isServerSide = true;
|
|
31056
|
+
globalThis._weave_serverSideBackend = void 0;
|
|
31062
31057
|
|
|
31063
31058
|
//#endregion
|
|
31064
31059
|
//#region src/managers/groups.ts
|
|
@@ -32098,7 +32093,7 @@ var WeaveRegisterManager = class {
|
|
|
32098
32093
|
|
|
32099
32094
|
//#endregion
|
|
32100
32095
|
//#region package.json
|
|
32101
|
-
var version = "2.
|
|
32096
|
+
var version = "2.9.0";
|
|
32102
32097
|
|
|
32103
32098
|
//#endregion
|
|
32104
32099
|
//#region src/managers/setup.ts
|
|
@@ -33148,6 +33143,52 @@ var Weave = class {
|
|
|
33148
33143
|
}
|
|
33149
33144
|
};
|
|
33150
33145
|
|
|
33146
|
+
//#endregion
|
|
33147
|
+
//#region src/utils/mapping.ts
|
|
33148
|
+
const isArray = (val) => {
|
|
33149
|
+
return Array.isArray(val);
|
|
33150
|
+
};
|
|
33151
|
+
const isObject = (val) => {
|
|
33152
|
+
return val !== null && typeof val === "object" && !Array.isArray(val);
|
|
33153
|
+
};
|
|
33154
|
+
const mapJsonToYjsMap = (jsonData) => {
|
|
33155
|
+
const map = new Y.Map();
|
|
33156
|
+
const keys = Object.keys(jsonData);
|
|
33157
|
+
for (const key of keys) {
|
|
33158
|
+
const value = jsonData[key];
|
|
33159
|
+
if (isArray(value)) map.set(key, mapJsonToYjsArray(value));
|
|
33160
|
+
else if (isObject(value)) map.set(key, mapJsonToYjsMap(value));
|
|
33161
|
+
else map.set(key, value);
|
|
33162
|
+
}
|
|
33163
|
+
return map;
|
|
33164
|
+
};
|
|
33165
|
+
const mapJsonToYjsArray = (jsonData) => {
|
|
33166
|
+
const array = new Y.Array();
|
|
33167
|
+
for (const item of jsonData) if (isArray(item)) array.push([mapJsonToYjsArray(item)]);
|
|
33168
|
+
else if (isObject(item)) array.push([mapJsonToYjsMap(item)]);
|
|
33169
|
+
else array.push(item);
|
|
33170
|
+
return array;
|
|
33171
|
+
};
|
|
33172
|
+
const mapJsonToYjsElements = (jsonData) => {
|
|
33173
|
+
if (isArray(jsonData)) return mapJsonToYjsArray(jsonData);
|
|
33174
|
+
else if (isObject(jsonData)) return mapJsonToYjsMap(jsonData);
|
|
33175
|
+
};
|
|
33176
|
+
const weavejsToYjsBinary = (weavejsData) => {
|
|
33177
|
+
const doc = new Y.Doc();
|
|
33178
|
+
doc.getMap("weave").set("key", weavejsData.weave.key);
|
|
33179
|
+
doc.getMap("weave").set("type", weavejsData.weave.type);
|
|
33180
|
+
doc.getMap("weave").set("props", mapJsonToYjsElements(weavejsData.weave.props));
|
|
33181
|
+
const actualState = Y.encodeStateAsUpdate(doc);
|
|
33182
|
+
return actualState;
|
|
33183
|
+
};
|
|
33184
|
+
function getJSONFromYjsBinary(actualState) {
|
|
33185
|
+
const document$1 = new Y.Doc();
|
|
33186
|
+
Y.applyUpdate(document$1, actualState);
|
|
33187
|
+
const actualStateString = JSON.stringify(document$1.getMap("weave").toJSON());
|
|
33188
|
+
const actualStateJson = JSON.parse(actualStateString);
|
|
33189
|
+
return actualStateJson;
|
|
33190
|
+
}
|
|
33191
|
+
|
|
33151
33192
|
//#endregion
|
|
33152
33193
|
//#region src/actions/line-tool/constants.ts
|
|
33153
33194
|
const LINE_TOOL_ACTION_NAME = "lineTool";
|
|
@@ -33429,9 +33470,9 @@ var WeaveLineToolAction = class extends WeaveAction {
|
|
|
33429
33470
|
|
|
33430
33471
|
//#endregion
|
|
33431
33472
|
//#region src/index.ts
|
|
33432
|
-
|
|
33433
|
-
|
|
33473
|
+
globalThis._weave_isServerSide = false;
|
|
33474
|
+
globalThis._weave_serverSideBackend = void 0;
|
|
33434
33475
|
|
|
33435
33476
|
//#endregion
|
|
33436
|
-
export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveLineToolAction, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isIOS, isInShadowDOM, isNodeInSelection, isServer, memoize, mergeExceptArrays, moveNodeToContainer, resetScale };
|
|
33477
|
+
export { ALIGN_NODES_ALIGN_TO, ALIGN_NODES_TOOL_ACTION_NAME, ALIGN_NODES_TOOL_STATE, ARROW_TOOL_ACTION_NAME, ARROW_TOOL_STATE, BRUSH_TOOL_ACTION_NAME, BRUSH_TOOL_DEFAULT_CONFIG, BRUSH_TOOL_STATE, COPY_PASTE_NODES_PLUGIN_STATE, ELLIPSE_TOOL_ACTION_NAME, ELLIPSE_TOOL_STATE, ERASER_TOOL_ACTION_NAME, ERASER_TOOL_STATE, FRAME_TOOL_ACTION_NAME, FRAME_TOOL_STATE, GUIDE_DISTANCE_LINE_DEFAULT_CONFIG, GUIDE_ENTER_SNAPPING_TOLERANCE, GUIDE_EXIT_SNAPPING_TOLERANCE, GUIDE_HORIZONTAL_LINE_NAME, GUIDE_LINE_DEFAULT_CONFIG, GUIDE_LINE_DRAG_SNAPPING_THRESHOLD, GUIDE_LINE_NAME, GUIDE_LINE_TRANSFORM_SNAPPING_THRESHOLD, GUIDE_ORIENTATION, GUIDE_VERTICAL_LINE_NAME, IMAGE_TOOL_ACTION_NAME, IMAGE_TOOL_STATE, LINE_TOOL_ACTION_NAME, LINE_TOOL_DEFAULT_CONFIG, LINE_TOOL_STATE, MOVE_TOOL_ACTION_NAME, MOVE_TOOL_STATE, NODE_SNAP, NODE_SNAP_HORIZONTAL, NODE_SNAP_VERTICAL, PEN_TOOL_ACTION_NAME, PEN_TOOL_STATE, RECTANGLE_TOOL_ACTION_NAME, RECTANGLE_TOOL_STATE, REGULAR_POLYGON_TOOL_ACTION_NAME, REGULAR_POLYGON_TOOL_STATE, SELECTION_TOOL_ACTION_NAME, SELECTION_TOOL_STATE, STAGE_MINIMAP_DEFAULT_CONFIG, STAR_TOOL_ACTION_NAME, STAR_TOOL_STATE, TEXT_LAYOUT, TEXT_TOOL_ACTION_NAME, TEXT_TOOL_STATE, VIDEO_TOOL_ACTION_NAME, VIDEO_TOOL_STATE, WEAVE_ARROW_NODE_TYPE, WEAVE_COMMENTS_RENDERER_KEY, WEAVE_COMMENTS_TOOL_LAYER_ID, WEAVE_COMMENT_CREATE_ACTION, WEAVE_COMMENT_NODE_ACTION, WEAVE_COMMENT_NODE_DEFAULTS, WEAVE_COMMENT_NODE_TYPE, WEAVE_COMMENT_STATUS, WEAVE_COMMENT_TOOL_ACTION_NAME, WEAVE_COMMENT_TOOL_DEFAULT_CONFIG, WEAVE_COMMENT_TOOL_STATE, WEAVE_COMMENT_VIEW_ACTION, WEAVE_COPY_PASTE_CONFIG_DEFAULT, WEAVE_COPY_PASTE_NODES_KEY, WEAVE_COPY_PASTE_PASTE_CATCHER_ID, WEAVE_COPY_PASTE_PASTE_MODES, WEAVE_DEFAULT_USER_INFO_FUNCTION, WEAVE_ELLIPSE_NODE_TYPE, WEAVE_FRAME_DEFAULT_BACKGROUND_COLOR, WEAVE_FRAME_NODE_DEFAULT_CONFIG, WEAVE_FRAME_NODE_DEFAULT_PROPS, WEAVE_FRAME_NODE_TYPE, WEAVE_GRID_DEFAULT_COLOR, WEAVE_GRID_DEFAULT_DOT_MAX_DOTS_PER_AXIS, WEAVE_GRID_DEFAULT_MAJOR_DOT_RATIO, WEAVE_GRID_DEFAULT_MAJOR_EVERY, WEAVE_GRID_DEFAULT_MAJOR_LINE_RATIO, WEAVE_GRID_DEFAULT_ORIGIN_COLOR, WEAVE_GRID_DEFAULT_RADIUS, WEAVE_GRID_DEFAULT_SIZE, WEAVE_GRID_DEFAULT_STROKE, WEAVE_GRID_DEFAULT_TYPE, WEAVE_GRID_LAYER_ID, WEAVE_GRID_TYPES, WEAVE_GROUP_NODE_TYPE, WEAVE_IMAGE_CROP_END_TYPE, WEAVE_IMAGE_DEFAULT_CONFIG, WEAVE_IMAGE_NODE_TYPE, WEAVE_LAYER_NODE_TYPE, WEAVE_LINE_NODE_DEFAULT_CONFIG, WEAVE_LINE_NODE_TYPE, WEAVE_NODES_DISTANCE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_EDGE_SNAPPING_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_DEFAULT_CONFIG, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_KEY, WEAVE_NODES_MULTI_SELECTION_FEEDBACK_PLUGIN_LAYER_ID, WEAVE_NODES_SELECTION_DEFAULT_CONFIG, WEAVE_NODES_SELECTION_KEY, WEAVE_NODES_SELECTION_LAYER_ID, WEAVE_RECTANGLE_NODE_TYPE, WEAVE_REGULAR_POLYGON_NODE_TYPE, WEAVE_STAGE_DEFAULT_MODE, WEAVE_STAGE_GRID_PLUGIN_KEY, WEAVE_STAGE_KEYBOARD_MOVE_DEFAULT_CONFIG, WEAVE_STAGE_KEYBOARD_MOVE_KEY, WEAVE_STAGE_MINIMAP_KEY, WEAVE_STAGE_NODE_TYPE, WEAVE_STAGE_PANNING_DEFAULT_CONFIG, WEAVE_STAGE_PANNING_KEY, WEAVE_STAR_NODE_TYPE, WEAVE_STROKE_NODE_DEFAULT_CONFIG, WEAVE_STROKE_NODE_TYPE, WEAVE_TEXT_NODE_TYPE, WEAVE_USERS_POINTERS_CONFIG_DEFAULT_PROPS, WEAVE_USERS_POINTERS_KEY, WEAVE_USERS_SELECTION_KEY, WEAVE_USER_POINTER_KEY, WEAVE_USER_SELECTION_KEY, WEAVE_VIDEO_DEFAULT_CONFIG, WEAVE_VIDEO_NODE_TYPE, Weave, WeaveAction, WeaveAlignNodesToolAction, WeaveArrowNode, WeaveArrowToolAction, WeaveBrushToolAction, WeaveCommentNode, WeaveCommentToolAction, WeaveCommentsRendererPlugin, WeaveConnectedUsersPlugin, WeaveContextMenuPlugin, WeaveCopyPasteNodesPlugin, WeaveEllipseNode, WeaveEllipseToolAction, WeaveEraserToolAction, WeaveExportNodesToolAction, WeaveExportStageToolAction, WeaveFitToScreenToolAction, WeaveFitToSelectionToolAction, WeaveFrameNode, WeaveFrameToolAction, WeaveGroupNode, WeaveImageNode, WeaveImageToolAction, WeaveLayerNode, WeaveLineNode, WeaveLineToolAction, WeaveMoveToolAction, WeaveNode, WeaveNodesDistanceSnappingPlugin, WeaveNodesEdgeSnappingPlugin, WeaveNodesMultiSelectionFeedbackPlugin, WeaveNodesSelectionPlugin, WeavePenToolAction, WeavePlugin, WeaveRectangleNode, WeaveRectangleToolAction, WeaveRegularPolygonNode, WeaveRegularPolygonToolAction, WeaveSelectionToolAction, WeaveStageDropAreaPlugin, WeaveStageGridPlugin, WeaveStageKeyboardMovePlugin, WeaveStageMinimapPlugin, WeaveStageNode, WeaveStagePanningPlugin, WeaveStageResizePlugin, WeaveStageZoomPlugin, WeaveStarNode, WeaveStarToolAction, WeaveStore, WeaveStrokeNode, WeaveTextNode, WeaveTextToolAction, WeaveUsersPointersPlugin, WeaveUsersSelectionPlugin, WeaveVideoNode, WeaveVideoToolAction, WeaveZoomInToolAction, WeaveZoomOutToolAction, canComposite, clearContainerTargets, containerOverCursor, containsNodeDeep, defaultInitialState, getBoundingBox, getExportBoundingBox, getJSONFromYjsBinary, getPositionRelativeToContainerOnPosition, getSelectedNodesMetadata, getStageClickPoint, getTargetAndSkipNodes, getTargetedNode, getTopmostShadowHost, getVisibleNodes, getVisibleNodesInViewport, hasFrames, hasImages, intersectArrays, isArray, isIOS, isInShadowDOM, isNodeInSelection, isObject, isServer, mapJsonToYjsArray, mapJsonToYjsElements, mapJsonToYjsMap, memoize, mergeExceptArrays, moveNodeToContainer, resetScale, weavejsToYjsBinary };
|
|
33437
33478
|
//# sourceMappingURL=sdk.js.map
|