@tresjs/cientos 2.0.0-alpha.5 → 2.0.0-beta.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/README.md +51 -2
- package/dist/trescientos.js +139 -139
- package/dist/trescientos.umd.cjs +2 -2
- package/package.json +11 -5
package/dist/trescientos.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/cientos
|
|
3
|
-
* version: v2.0.0-alpha.
|
|
3
|
+
* version: v2.0.0-alpha.5
|
|
4
4
|
* (c) 2023
|
|
5
5
|
* description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
7
7
|
*/
|
|
8
|
-
import { inject as sa, defineComponent as Ie, ref as on, watch as uo, unref as
|
|
8
|
+
import { inject as sa, defineComponent as Ie, ref as on, watch as uo, unref as jt, openBlock as Be, createElementBlock as je, createCommentVNode as to, shallowRef as Je, computed as Yi, watchEffect as ho, onUnmounted as Ca, renderSlot as $e, getCurrentInstance as Yc, onMounted as Pa, nextTick as qc, getCurrentScope as Qc, onScopeDispose as Zc, shallowReactive as Wc, useSlots as Jc, withAsyncContext as ep, mergeProps as nt, createElementVNode as xe } from "vue";
|
|
9
9
|
import { useTres as tp, useLogger as np, useRenderLoop as Ta, useLoader as mo } from "@tresjs/core";
|
|
10
|
-
import { Object3D as On, Raycaster as ip, Vector3 as $, Quaternion as Te, Euler as pi, Matrix4 as Ee, Color as ke, MeshBasicMaterial as Dn, DoubleSide as fo, LineBasicMaterial as vo, CylinderGeometry as gt, BoxGeometry as Sn, BufferGeometry as zt, Float32BufferAttribute as
|
|
10
|
+
import { Object3D as On, Raycaster as ip, Vector3 as $, Quaternion as Te, Euler as pi, Matrix4 as Ee, Color as ke, MeshBasicMaterial as Dn, DoubleSide as fo, LineBasicMaterial as vo, CylinderGeometry as gt, BoxGeometry as Sn, BufferGeometry as zt, Float32BufferAttribute as Bt, Mesh as Z, Line as pe, OctahedronGeometry as An, PlaneGeometry as Rn, TorusGeometry as Ls, SphereGeometry as sp, EventDispatcher as rp, MOUSE as ai, TOUCH as li, PerspectiveCamera as sn, Spherical as ra, Vector2 as pt, OrthographicCamera as Ki, Loader as zs, LoaderUtils as Tt, FileLoader as ui, SpotLight as ka, PointLight as no, DirectionalLight as Ma, sRGBEncoding as ht, MeshPhysicalMaterial as Nn, TangentSpaceNormalMap as op, TextureLoader as Sa, ImageBitmapLoader as ap, InterleavedBuffer as lp, InterleavedBufferAttribute as cp, BufferAttribute as Ns, LinearFilter as Fs, LinearMipmapLinearFilter as Aa, RepeatWrapping as qi, PointsMaterial as pp, Material as Kr, MeshStandardMaterial as bo, PropertyBinding as Qi, SkinnedMesh as La, LineSegments as up, LineLoop as hp, Points as dp, Group as $i, MathUtils as wt, InterpolateLinear as Ra, AnimationClip as Ia, Bone as io, Skeleton as Va, TriangleFanDrawMode as Da, NearestFilter as mp, NearestMipmapNearestFilter as fp, LinearMipmapNearestFilter as vp, NearestMipmapLinearFilter as bp, ClampToEdgeWrapping as so, MirroredRepeatWrapping as gp, InterpolateDiscrete as _p, FrontSide as wp, Texture as Bs, TriangleStripDrawMode as yp, VectorKeyframeTrack as Oa, QuaternionKeyframeTrack as ro, NumberKeyframeTrack as Na, Box3 as xp, Sphere as Ep, Interpolant as Cp, ExtrudeGeometry as Pp, Vector4 as Us, Curve as Tp, MeshPhongMaterial as $r, MeshLambertMaterial as kp, EquirectangularReflectionMapping as Fa, AmbientLight as Mp, Uint16BufferAttribute as Sp, Matrix3 as Ap, ShapePath as Lp, DataTextureLoader as Rp, HalfFloatType as Rs, FloatType as Xr, DataUtils as Is, LinearEncoding as Ba, AnimationMixer as Ip, QuadraticBezierCurve3 as Vp, CubeReflectionMapping as Dp, CubeTextureLoader as Op } from "three";
|
|
11
11
|
function Np(b, i) {
|
|
12
12
|
for (var r = 0; r < i.length; r++) {
|
|
13
13
|
const s = i[r];
|
|
@@ -515,15 +515,15 @@ class tu extends On {
|
|
|
515
515
|
const D = F.clone();
|
|
516
516
|
D.opacity = 0.25;
|
|
517
517
|
const Y = new gt(0, 0.05, 0.2, 12, 1, !1), G = new Sn(0.125, 0.125, 0.125), N = new zt();
|
|
518
|
-
N.setAttribute("position", new
|
|
518
|
+
N.setAttribute("position", new Bt([0, 0, 0, 1, 0, 0], 3));
|
|
519
519
|
const O = (fe, ae) => {
|
|
520
520
|
const ne = new zt(), be = [];
|
|
521
521
|
for (let M = 0; M <= 64 * ae; ++M)
|
|
522
522
|
be.push(0, Math.cos(M / 32 * Math.PI) * fe, Math.sin(M / 32 * Math.PI) * fe);
|
|
523
|
-
return ne.setAttribute("position", new
|
|
523
|
+
return ne.setAttribute("position", new Bt(be, 3)), ne;
|
|
524
524
|
}, H = () => {
|
|
525
525
|
const fe = new zt();
|
|
526
|
-
return fe.setAttribute("position", new
|
|
526
|
+
return fe.setAttribute("position", new Bt([0, 0, 0, 1, 1, 1], 3)), fe;
|
|
527
527
|
}, K = {
|
|
528
528
|
X: [[new Z(Y, c), [1, 0, 0], [0, 0, -Math.PI / 2], null, "fwd"], [new Z(Y, c), [1, 0, 0], [0, 0, Math.PI / 2], null, "bwd"], [new pe(N, C)]],
|
|
529
529
|
Y: [[new Z(Y, u), [0, 1, 0], null, null, "fwd"], [new Z(Y, u), [0, 1, 0], [Math.PI, 0, 0], null, "bwd"], [new pe(N, I), null, [0, 0, Math.PI / 2]]],
|
|
@@ -854,7 +854,7 @@ class iu extends rp {
|
|
|
854
854
|
if (O.length == 1)
|
|
855
855
|
R.set(A.pageX, A.pageY);
|
|
856
856
|
else {
|
|
857
|
-
const W =
|
|
857
|
+
const W = St(A), ie = 0.5 * (A.pageX + W.x), ye = 0.5 * (A.pageY + W.y);
|
|
858
858
|
R.set(ie, ye);
|
|
859
859
|
}
|
|
860
860
|
j.subVectors(R, S).multiplyScalar(s.rotateSpeed);
|
|
@@ -865,16 +865,16 @@ class iu extends rp {
|
|
|
865
865
|
if (O.length == 1)
|
|
866
866
|
V.set(A.pageX, A.pageY);
|
|
867
867
|
else {
|
|
868
|
-
const U =
|
|
868
|
+
const U = St(A), W = 0.5 * (A.pageX + U.x), ie = 0.5 * (A.pageY + U.y);
|
|
869
869
|
V.set(W, ie);
|
|
870
870
|
}
|
|
871
871
|
D.subVectors(V, F).multiplyScalar(s.panSpeed), he(D.x, D.y), F.copy(V);
|
|
872
872
|
}
|
|
873
873
|
function dt(A) {
|
|
874
|
-
const U =
|
|
874
|
+
const U = St(A), W = A.pageX - U.x, ie = A.pageY - U.y, ye = Math.sqrt(W * W + ie * ie);
|
|
875
875
|
G.set(0, ye), N.set(0, Math.pow(G.y / Y.y, s.zoomSpeed)), ee(N.y), Y.copy(G);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function kt(A) {
|
|
878
878
|
s.enableZoom && dt(A), s.enablePan && an(A);
|
|
879
879
|
}
|
|
880
880
|
function ze(A) {
|
|
@@ -886,7 +886,7 @@ class iu extends rp {
|
|
|
886
886
|
var U, W;
|
|
887
887
|
(U = s.domElement) === null || U === void 0 || U.ownerDocument.addEventListener("pointermove", ln), (W = s.domElement) === null || W === void 0 || W.ownerDocument.addEventListener("pointerup", mt);
|
|
888
888
|
}
|
|
889
|
-
Kn(A), A.pointerType === "touch" ?
|
|
889
|
+
Kn(A), A.pointerType === "touch" ? Mt(A) : hi(A);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
function ln(A) {
|
|
@@ -976,7 +976,7 @@ class iu extends rp {
|
|
|
976
976
|
function yt(A) {
|
|
977
977
|
s.enabled === !1 || s.enablePan === !1 || Ve(A);
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Mt(A) {
|
|
980
980
|
switch (ft(A), O.length) {
|
|
981
981
|
case 1:
|
|
982
982
|
switch (s.touches.ONE) {
|
|
@@ -1030,7 +1030,7 @@ class iu extends rp {
|
|
|
1030
1030
|
case h.TOUCH_DOLLY_PAN:
|
|
1031
1031
|
if (s.enableZoom === !1 && s.enablePan === !1)
|
|
1032
1032
|
return;
|
|
1033
|
-
|
|
1033
|
+
kt(A), s.update();
|
|
1034
1034
|
break;
|
|
1035
1035
|
case h.TOUCH_DOLLY_ROTATE:
|
|
1036
1036
|
if (s.enableZoom === !1 && s.enableRotate === !1)
|
|
@@ -1059,7 +1059,7 @@ class iu extends rp {
|
|
|
1059
1059
|
let U = H[A.pointerId];
|
|
1060
1060
|
U === void 0 && (U = new pt(), H[A.pointerId] = U), U.set(A.pageX, A.pageY);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function St(A) {
|
|
1063
1063
|
const U = A.pointerId === O[0].pointerId ? O[1] : O[0];
|
|
1064
1064
|
return H[U.pointerId];
|
|
1065
1065
|
}
|
|
@@ -1097,7 +1097,7 @@ class su extends zs {
|
|
|
1097
1097
|
load(i, r, s, a) {
|
|
1098
1098
|
const c = this;
|
|
1099
1099
|
let u;
|
|
1100
|
-
this.resourcePath !== "" ? u = this.resourcePath : this.path !== "" ? u = this.path : u =
|
|
1100
|
+
this.resourcePath !== "" ? u = this.resourcePath : this.path !== "" ? u = this.path : u = Tt.extractUrlBase(i), this.manager.itemStart(i);
|
|
1101
1101
|
const h = function(g) {
|
|
1102
1102
|
a ? a(g) : console.error(g), c.manager.itemError(i), c.manager.itemEnd(i);
|
|
1103
1103
|
}, d = new ui(this.manager);
|
|
@@ -1134,7 +1134,7 @@ class su extends zs {
|
|
|
1134
1134
|
const u = {}, h = {};
|
|
1135
1135
|
if (typeof i == "string")
|
|
1136
1136
|
c = i;
|
|
1137
|
-
else if (
|
|
1137
|
+
else if (Tt.decodeText(new Uint8Array(i, 0, 4)) === $a) {
|
|
1138
1138
|
try {
|
|
1139
1139
|
u[re.KHR_BINARY_GLTF] = new _u(i);
|
|
1140
1140
|
} catch (_) {
|
|
@@ -1143,7 +1143,7 @@ class su extends zs {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
c = u[re.KHR_BINARY_GLTF].content;
|
|
1145
1145
|
} else
|
|
1146
|
-
c =
|
|
1146
|
+
c = Tt.decodeText(new Uint8Array(i));
|
|
1147
1147
|
const d = JSON.parse(c);
|
|
1148
1148
|
if (d.asset === void 0 || d.asset.version[0] < 2) {
|
|
1149
1149
|
a && a(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
|
|
@@ -1515,7 +1515,7 @@ class _u {
|
|
|
1515
1515
|
this.name = re.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
1516
1516
|
const r = new DataView(i, 0, Gi);
|
|
1517
1517
|
if (this.header = {
|
|
1518
|
-
magic:
|
|
1518
|
+
magic: Tt.decodeText(new Uint8Array(i.slice(0, 4))),
|
|
1519
1519
|
version: r.getUint32(4, !0),
|
|
1520
1520
|
length: r.getUint32(8, !0)
|
|
1521
1521
|
}, this.header.magic !== $a)
|
|
@@ -1530,7 +1530,7 @@ class _u {
|
|
|
1530
1530
|
const h = a.getUint32(c, !0);
|
|
1531
1531
|
if (c += 4, h === aa.JSON) {
|
|
1532
1532
|
const d = new Uint8Array(i, Gi + c, u);
|
|
1533
|
-
this.content =
|
|
1533
|
+
this.content = Tt.decodeText(d);
|
|
1534
1534
|
} else if (h === aa.BIN) {
|
|
1535
1535
|
const d = Gi + c;
|
|
1536
1536
|
this.body = i.slice(d, d + u);
|
|
@@ -1703,7 +1703,7 @@ class Pu extends Xa {
|
|
|
1703
1703
|
return Cu.fromArray(c).normalize().toArray(c), c;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
const
|
|
1706
|
+
const Ft = {
|
|
1707
1707
|
FLOAT: 5126,
|
|
1708
1708
|
//FLOAT_MAT2: 35674,
|
|
1709
1709
|
FLOAT_MAT3: 35675,
|
|
@@ -2060,7 +2060,7 @@ class Ru {
|
|
|
2060
2060
|
return Promise.resolve(this.extensions[re.KHR_BINARY_GLTF].body);
|
|
2061
2061
|
const a = this.options;
|
|
2062
2062
|
return new Promise(function(c, u) {
|
|
2063
|
-
s.load(
|
|
2063
|
+
s.load(Tt.resolveURL(r.uri, a.path), c, void 0, function() {
|
|
2064
2064
|
u(new Error('THREE.GLTFLoader: Failed to load buffer "' + r.uri + '".'));
|
|
2065
2065
|
});
|
|
2066
2066
|
});
|
|
@@ -2159,7 +2159,7 @@ class Ru {
|
|
|
2159
2159
|
r.isImageBitmapLoader === !0 && (I = function(S) {
|
|
2160
2160
|
const R = new Bs(S);
|
|
2161
2161
|
R.needsUpdate = !0, y(R);
|
|
2162
|
-
}), r.load(
|
|
2162
|
+
}), r.load(Tt.resolveURL(_, c.path), I, void 0, C);
|
|
2163
2163
|
});
|
|
2164
2164
|
}).then(function(_) {
|
|
2165
2165
|
return g === !0 && h.revokeObjectURL(d), _.userData.mimeType = u.mimeType || Lu(u.uri), _;
|
|
@@ -2315,15 +2315,15 @@ class Ru {
|
|
|
2315
2315
|
const S = w[C], R = u[C];
|
|
2316
2316
|
let j;
|
|
2317
2317
|
const F = g[C];
|
|
2318
|
-
if (R.mode ===
|
|
2319
|
-
j = c.isSkinnedMesh === !0 ? new La(S, F) : new Z(S, F), j.isSkinnedMesh === !0 && !j.geometry.attributes.skinWeight.normalized && j.normalizeSkinWeights(), R.mode ===
|
|
2320
|
-
else if (R.mode ===
|
|
2318
|
+
if (R.mode === Ft.TRIANGLES || R.mode === Ft.TRIANGLE_STRIP || R.mode === Ft.TRIANGLE_FAN || R.mode === void 0)
|
|
2319
|
+
j = c.isSkinnedMesh === !0 ? new La(S, F) : new Z(S, F), j.isSkinnedMesh === !0 && !j.geometry.attributes.skinWeight.normalized && j.normalizeSkinWeights(), R.mode === Ft.TRIANGLE_STRIP ? j.geometry = da(j.geometry, yp) : R.mode === Ft.TRIANGLE_FAN && (j.geometry = da(j.geometry, Da));
|
|
2320
|
+
else if (R.mode === Ft.LINES)
|
|
2321
2321
|
j = new up(S, F);
|
|
2322
|
-
else if (R.mode ===
|
|
2322
|
+
else if (R.mode === Ft.LINE_STRIP)
|
|
2323
2323
|
j = new pe(S, F);
|
|
2324
|
-
else if (R.mode ===
|
|
2324
|
+
else if (R.mode === Ft.LINE_LOOP)
|
|
2325
2325
|
j = new hp(S, F);
|
|
2326
|
-
else if (R.mode ===
|
|
2326
|
+
else if (R.mode === Ft.POINTS)
|
|
2327
2327
|
j = new dp(S, F);
|
|
2328
2328
|
else
|
|
2329
2329
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + R.mode);
|
|
@@ -2802,7 +2802,7 @@ class Uu extends zs {
|
|
|
2802
2802
|
super(i);
|
|
2803
2803
|
}
|
|
2804
2804
|
load(i, r, s, a) {
|
|
2805
|
-
const c = this, u = c.path === "" ?
|
|
2805
|
+
const c = this, u = c.path === "" ? Tt.extractUrlBase(i) : c.path, h = new ui(this.manager);
|
|
2806
2806
|
h.setPath(c.path), h.setResponseType("arraybuffer"), h.setRequestHeader(c.requestHeader), h.setWithCredentials(c.withCredentials), h.load(i, function(d) {
|
|
2807
2807
|
try {
|
|
2808
2808
|
r(c.parse(d, u));
|
|
@@ -3373,14 +3373,14 @@ class Hu {
|
|
|
3373
3373
|
genGeometry(i, r, s, a) {
|
|
3374
3374
|
const c = new zt();
|
|
3375
3375
|
i.attrName && (c.name = i.attrName);
|
|
3376
|
-
const u = this.parseGeoNode(i, r), h = this.genBuffers(u), d = new
|
|
3377
|
-
if (d.applyMatrix4(a), c.setAttribute("position", d), h.colors.length > 0 && c.setAttribute("color", new
|
|
3378
|
-
const g = new Ap().getNormalMatrix(a), w = new
|
|
3376
|
+
const u = this.parseGeoNode(i, r), h = this.genBuffers(u), d = new Bt(h.vertex, 3);
|
|
3377
|
+
if (d.applyMatrix4(a), c.setAttribute("position", d), h.colors.length > 0 && c.setAttribute("color", new Bt(h.colors, 3)), r && (c.setAttribute("skinIndex", new Sp(h.weightsIndices, 4)), c.setAttribute("skinWeight", new Bt(h.vertexWeights, 4)), c.FBX_Deformer = r), h.normal.length > 0) {
|
|
3378
|
+
const g = new Ap().getNormalMatrix(a), w = new Bt(h.normal, 3);
|
|
3379
3379
|
w.applyNormalMatrix(g), c.setAttribute("normal", w);
|
|
3380
3380
|
}
|
|
3381
3381
|
if (h.uvs.forEach(function(g, w) {
|
|
3382
3382
|
let _ = "uv" + (w + 1).toString();
|
|
3383
|
-
w === 0 && (_ = "uv"), c.setAttribute(_, new
|
|
3383
|
+
w === 0 && (_ = "uv"), c.setAttribute(_, new Bt(h.uvs[w], 2));
|
|
3384
3384
|
}), u.material && u.material.mappingType !== "AllSame") {
|
|
3385
3385
|
let g = h.materialIndex[0], w = 0;
|
|
3386
3386
|
if (h.materialIndex.forEach(function(_, y) {
|
|
@@ -3494,7 +3494,7 @@ class Hu {
|
|
|
3494
3494
|
const _ = {
|
|
3495
3495
|
vertexIndices: u,
|
|
3496
3496
|
vertexPositions: w
|
|
3497
|
-
}, y = this.genBuffers(_), C = new
|
|
3497
|
+
}, y = this.genBuffers(_), C = new Bt(y.vertex, 3);
|
|
3498
3498
|
C.name = c || s.attrName, C.applyMatrix4(a), i.morphAttributes.position.push(C);
|
|
3499
3499
|
}
|
|
3500
3500
|
// Parse normal from FBXTree.Objects.Geometry.LayerElementNormal if it exists
|
|
@@ -4119,7 +4119,7 @@ class fa {
|
|
|
4119
4119
|
for (let a = 0; a < i; a++)
|
|
4120
4120
|
r[a] = this.getUint8();
|
|
4121
4121
|
const s = r.indexOf(0);
|
|
4122
|
-
return s >= 0 && (r = r.slice(0, s)),
|
|
4122
|
+
return s >= 0 && (r = r.slice(0, s)), Tt.decodeText(new Uint8Array(r));
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
4125
4125
|
class Qa {
|
|
@@ -4234,7 +4234,7 @@ function Wr(b) {
|
|
|
4234
4234
|
});
|
|
4235
4235
|
}
|
|
4236
4236
|
function Ja(b, i, r) {
|
|
4237
|
-
return i === void 0 && (i = 0), r === void 0 && (r = b.byteLength),
|
|
4237
|
+
return i === void 0 && (i = 0), r === void 0 && (r = b.byteLength), Tt.decodeText(new Uint8Array(b, i, r));
|
|
4238
4238
|
}
|
|
4239
4239
|
function Wu(b, i) {
|
|
4240
4240
|
for (let r = 0, s = b.length, a = i.length; r < a; r++, s++)
|
|
@@ -4771,11 +4771,11 @@ const ah = ["args"], ud = /* @__PURE__ */ Ie({
|
|
|
4771
4771
|
u && i.makeDefault ? s("controls", u) : s("controls", null);
|
|
4772
4772
|
}), (u, h) => {
|
|
4773
4773
|
var d;
|
|
4774
|
-
return
|
|
4774
|
+
return jt(r).camera && jt(r).renderer ? (Be(), je("TresOrbitControls", {
|
|
4775
4775
|
key: 0,
|
|
4776
4776
|
ref_key: "controls",
|
|
4777
4777
|
ref: c,
|
|
4778
|
-
args: [
|
|
4778
|
+
args: [jt(r).camera || b.camera, ((d = jt(r).renderer) == null ? void 0 : d.domElement) || b.domElement]
|
|
4779
4779
|
}, null, 8, ah)) : to("", !0);
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
@@ -4858,7 +4858,7 @@ const tl = typeof window < "u", ph = (b) => typeof b == "string", uh = () => {
|
|
|
4858
4858
|
};
|
|
4859
4859
|
tl && ((ga = window == null ? void 0 : window.navigator) != null && ga.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
4860
4860
|
function nl(b) {
|
|
4861
|
-
return typeof b == "function" ? b() :
|
|
4861
|
+
return typeof b == "function" ? b() : jt(b);
|
|
4862
4862
|
}
|
|
4863
4863
|
function hh(b) {
|
|
4864
4864
|
return b;
|
|
@@ -5513,7 +5513,7 @@ var js = {}, Ch = {
|
|
|
5513
5513
|
last: "lst",
|
|
5514
5514
|
verylast: "vlst"
|
|
5515
5515
|
};
|
|
5516
|
-
class
|
|
5516
|
+
class kt {
|
|
5517
5517
|
constructor(e) {
|
|
5518
5518
|
this.parent_ = null, this.blade = e.blade, this.view = e.view, this.viewProps = e.viewProps;
|
|
5519
5519
|
const t = this.view.element;
|
|
@@ -5574,7 +5574,7 @@ var js = {}, Ch = {
|
|
|
5574
5574
|
const t = n.createElementNS(ze, "svg");
|
|
5575
5575
|
return t.innerHTML = Gn[e], t;
|
|
5576
5576
|
}
|
|
5577
|
-
function
|
|
5577
|
+
function Mt(n, e, t) {
|
|
5578
5578
|
n.insertBefore(e, n.children[t]);
|
|
5579
5579
|
}
|
|
5580
5580
|
function Hn(n) {
|
|
@@ -5592,7 +5592,7 @@ var js = {}, Ch = {
|
|
|
5592
5592
|
return n.relatedTarget ? n.relatedTarget : "explicitOriginalTarget" in n ? n.explicitOriginalTarget : null;
|
|
5593
5593
|
}
|
|
5594
5594
|
const ft = D("lbl");
|
|
5595
|
-
function
|
|
5595
|
+
function St(n, e) {
|
|
5596
5596
|
const t = n.createDocumentFragment();
|
|
5597
5597
|
return e.split(`
|
|
5598
5598
|
`).map((v) => n.createTextNode(v)).forEach((v, E) => {
|
|
@@ -5604,13 +5604,13 @@ var js = {}, Ch = {
|
|
|
5604
5604
|
this.element = e.createElement("div"), this.element.classList.add(ft()), t.viewProps.bindClassModifiers(this.element);
|
|
5605
5605
|
const l = e.createElement("div");
|
|
5606
5606
|
l.classList.add(ft("l")), O(t.props, "label", (E) => {
|
|
5607
|
-
_(E) ? this.element.classList.add(ft(void 0, "nol")) : (this.element.classList.remove(ft(void 0, "nol")), Kn(l), l.appendChild(
|
|
5607
|
+
_(E) ? this.element.classList.add(ft(void 0, "nol")) : (this.element.classList.remove(ft(void 0, "nol")), Kn(l), l.appendChild(St(e, E)));
|
|
5608
5608
|
}), this.element.appendChild(l), this.labelElement = l;
|
|
5609
5609
|
const v = e.createElement("div");
|
|
5610
5610
|
v.classList.add(ft("v")), this.element.appendChild(v), this.valueElement = v;
|
|
5611
5611
|
}
|
|
5612
5612
|
}
|
|
5613
|
-
class U extends
|
|
5613
|
+
class U extends kt {
|
|
5614
5614
|
constructor(e, t) {
|
|
5615
5615
|
const l = t.valueController.viewProps;
|
|
5616
5616
|
super(Object.assign(Object.assign({}, t), { view: new A(e, {
|
|
@@ -5648,7 +5648,7 @@ var js = {}, Ch = {
|
|
|
5648
5648
|
return !(n.controller instanceof U) || !(n.controller.valueController instanceof ce) ? null : new j(n.controller);
|
|
5649
5649
|
}
|
|
5650
5650
|
};
|
|
5651
|
-
class ie extends
|
|
5651
|
+
class ie extends kt {
|
|
5652
5652
|
constructor(e) {
|
|
5653
5653
|
super(e), this.value = e.value;
|
|
5654
5654
|
}
|
|
@@ -5734,7 +5734,7 @@ var js = {}, Ch = {
|
|
|
5734
5734
|
function di(n, e) {
|
|
5735
5735
|
return n.addBlade(Object.assign(Object.assign({}, e), { view: "tab" }));
|
|
5736
5736
|
}
|
|
5737
|
-
class
|
|
5737
|
+
class At {
|
|
5738
5738
|
constructor(e) {
|
|
5739
5739
|
this.emitter = new F(), this.items_ = [], this.cache_ = /* @__PURE__ */ new Set(), this.onSubListAdd_ = this.onSubListAdd_.bind(this), this.onSubListRemove_ = this.onSubListRemove_.bind(this), this.extract_ = e;
|
|
5740
5740
|
}
|
|
@@ -5878,7 +5878,7 @@ var js = {}, Ch = {
|
|
|
5878
5878
|
}
|
|
5879
5879
|
class $n extends a {
|
|
5880
5880
|
constructor(e, t) {
|
|
5881
|
-
super(e), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.onRackInputChange_ = this.onRackInputChange_.bind(this), this.onRackMonitorUpdate_ = this.onRackMonitorUpdate_.bind(this), this.emitter_ = new F(), this.apiSet_ = new
|
|
5881
|
+
super(e), this.onRackAdd_ = this.onRackAdd_.bind(this), this.onRackRemove_ = this.onRackRemove_.bind(this), this.onRackInputChange_ = this.onRackInputChange_.bind(this), this.onRackMonitorUpdate_ = this.onRackMonitorUpdate_.bind(this), this.emitter_ = new F(), this.apiSet_ = new At(ts), this.pool_ = t;
|
|
5882
5882
|
const l = this.controller_.rack;
|
|
5883
5883
|
l.emitter.on("add", this.onRackAdd_), l.emitter.on("remove", this.onRackRemove_), l.emitter.on("inputchange", this.onRackInputChange_), l.emitter.on("monitorupdate", this.onRackMonitorUpdate_), l.children.forEach((v) => {
|
|
5884
5884
|
this.setUpApi_(v);
|
|
@@ -6025,7 +6025,7 @@ var js = {}, Ch = {
|
|
|
6025
6025
|
}), this;
|
|
6026
6026
|
}
|
|
6027
6027
|
}
|
|
6028
|
-
class bi extends
|
|
6028
|
+
class bi extends kt {
|
|
6029
6029
|
constructor(e) {
|
|
6030
6030
|
super({
|
|
6031
6031
|
blade: e.blade,
|
|
@@ -6074,7 +6074,7 @@ var js = {}, Ch = {
|
|
|
6074
6074
|
class Zs {
|
|
6075
6075
|
constructor(e) {
|
|
6076
6076
|
var t, l;
|
|
6077
|
-
this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildInputChange_ = this.onChildInputChange_.bind(this), this.onChildMonitorUpdate_ = this.onChildMonitorUpdate_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onDescendantLayout_ = this.onDescendantLayout_.bind(this), this.onDescendantInputChange_ = this.onDescendantInputChange_.bind(this), this.onDescendantMonitorUpdate_ = this.onDescendantMonitorUpdate_.bind(this), this.emitter = new F(), this.blade_ = (t = e.blade) !== null && t !== void 0 ? t : null, (l = this.blade_) === null || l === void 0 || l.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = e.viewProps, this.bcSet_ = new
|
|
6077
|
+
this.onBladePositionsChange_ = this.onBladePositionsChange_.bind(this), this.onSetAdd_ = this.onSetAdd_.bind(this), this.onSetRemove_ = this.onSetRemove_.bind(this), this.onChildDispose_ = this.onChildDispose_.bind(this), this.onChildPositionsChange_ = this.onChildPositionsChange_.bind(this), this.onChildInputChange_ = this.onChildInputChange_.bind(this), this.onChildMonitorUpdate_ = this.onChildMonitorUpdate_.bind(this), this.onChildValueChange_ = this.onChildValueChange_.bind(this), this.onChildViewPropsChange_ = this.onChildViewPropsChange_.bind(this), this.onDescendantLayout_ = this.onDescendantLayout_.bind(this), this.onDescendantInputChange_ = this.onDescendantInputChange_.bind(this), this.onDescendantMonitorUpdate_ = this.onDescendantMonitorUpdate_.bind(this), this.emitter = new F(), this.blade_ = (t = e.blade) !== null && t !== void 0 ? t : null, (l = this.blade_) === null || l === void 0 || l.value("positions").emitter.on("change", this.onBladePositionsChange_), this.viewProps = e.viewProps, this.bcSet_ = new At(Qs), this.bcSet_.emitter.on("add", this.onSetAdd_), this.bcSet_.emitter.on("remove", this.onSetRemove_);
|
|
6078
6078
|
}
|
|
6079
6079
|
get children() {
|
|
6080
6080
|
return this.bcSet_.items;
|
|
@@ -6219,7 +6219,7 @@ var js = {}, Ch = {
|
|
|
6219
6219
|
this.updatePositions_();
|
|
6220
6220
|
}
|
|
6221
6221
|
}
|
|
6222
|
-
class hn extends
|
|
6222
|
+
class hn extends kt {
|
|
6223
6223
|
constructor(e, t) {
|
|
6224
6224
|
super(Object.assign(Object.assign({}, t), { view: new $s(e, {
|
|
6225
6225
|
viewName: "brk",
|
|
@@ -6235,7 +6235,7 @@ var js = {}, Ch = {
|
|
|
6235
6235
|
});
|
|
6236
6236
|
}
|
|
6237
6237
|
onRackAdd_(e) {
|
|
6238
|
-
e.isRoot &&
|
|
6238
|
+
e.isRoot && Mt(this.view.element, e.bladeController.view.element, e.index);
|
|
6239
6239
|
}
|
|
6240
6240
|
onRackRemove_(e) {
|
|
6241
6241
|
e.isRoot && Hn(e.bladeController.view.element);
|
|
@@ -6331,7 +6331,7 @@ var js = {}, Ch = {
|
|
|
6331
6331
|
l.classList.add(_i("r")), this.element.appendChild(l);
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
|
-
class dn extends
|
|
6334
|
+
class dn extends kt {
|
|
6335
6335
|
constructor(e, t) {
|
|
6336
6336
|
super(Object.assign(Object.assign({}, t), { view: new er(e, {
|
|
6337
6337
|
viewProps: t.viewProps
|
|
@@ -6580,7 +6580,7 @@ var js = {}, Ch = {
|
|
|
6580
6580
|
empty: v.empty,
|
|
6581
6581
|
viewProps: t.viewProps
|
|
6582
6582
|
})
|
|
6583
|
-
}), this.onPageAdd_ = this.onPageAdd_.bind(this), this.onPageRemove_ = this.onPageRemove_.bind(this), this.pageSet_ = new
|
|
6583
|
+
}), this.onPageAdd_ = this.onPageAdd_.bind(this), this.onPageRemove_ = this.onPageRemove_.bind(this), this.pageSet_ = new At(() => null), this.pageSet_.emitter.on("add", this.onPageAdd_), this.pageSet_.emitter.on("remove", this.onPageRemove_), this.tab = v;
|
|
6584
6584
|
}
|
|
6585
6585
|
get pageSet() {
|
|
6586
6586
|
return this.pageSet_;
|
|
@@ -6593,7 +6593,7 @@ var js = {}, Ch = {
|
|
|
6593
6593
|
}
|
|
6594
6594
|
onPageAdd_(e) {
|
|
6595
6595
|
const t = e.item;
|
|
6596
|
-
|
|
6596
|
+
Mt(this.view.itemsElement, t.itemController.view.element, e.index), t.itemController.viewProps.set("parent", this.viewProps), this.rackController.rack.add(t.contentController, e.index), this.tab.add(t.props.value("selected"));
|
|
6597
6597
|
}
|
|
6598
6598
|
onPageRemove_(e) {
|
|
6599
6599
|
const t = e.item;
|
|
@@ -6980,7 +6980,7 @@ var js = {}, Ch = {
|
|
|
6980
6980
|
return "";
|
|
6981
6981
|
};
|
|
6982
6982
|
}
|
|
6983
|
-
function
|
|
6983
|
+
function Lt(n, e) {
|
|
6984
6984
|
var t;
|
|
6985
6985
|
const l = n.substr(e).match(/^\s+/);
|
|
6986
6986
|
return (t = l && l[0]) !== null && t !== void 0 ? t : "";
|
|
@@ -7102,7 +7102,7 @@ var js = {}, Ch = {
|
|
|
7102
7102
|
const l = Wn(n, e);
|
|
7103
7103
|
if (!l)
|
|
7104
7104
|
return null;
|
|
7105
|
-
e = l.cursor, e +=
|
|
7105
|
+
e = l.cursor, e += Lt(n, e).length;
|
|
7106
7106
|
const v = n.substr(e, 1);
|
|
7107
7107
|
return e += v.length, v !== ")" ? null : {
|
|
7108
7108
|
evaluable: l.evaluable,
|
|
@@ -7127,14 +7127,14 @@ var js = {}, Ch = {
|
|
|
7127
7127
|
}) : null;
|
|
7128
7128
|
}
|
|
7129
7129
|
function xr(n, e, t) {
|
|
7130
|
-
t +=
|
|
7130
|
+
t += Lt(e, t).length;
|
|
7131
7131
|
const l = n.filter((v) => e.startsWith(v, t))[0];
|
|
7132
|
-
return l ? (t += l.length, t +=
|
|
7132
|
+
return l ? (t += l.length, t += Lt(e, t).length, {
|
|
7133
7133
|
cursor: t,
|
|
7134
7134
|
operator: l
|
|
7135
7135
|
}) : null;
|
|
7136
7136
|
}
|
|
7137
|
-
function
|
|
7137
|
+
function Rt(n, e) {
|
|
7138
7138
|
return (t, l) => {
|
|
7139
7139
|
const v = n(t, l);
|
|
7140
7140
|
if (!v)
|
|
@@ -7165,13 +7165,13 @@ var js = {}, Ch = {
|
|
|
7165
7165
|
["&"],
|
|
7166
7166
|
["^"],
|
|
7167
7167
|
["|"]
|
|
7168
|
-
].reduce((n, e) =>
|
|
7168
|
+
].reduce((n, e) => Rt(n, e), Mi);
|
|
7169
7169
|
function Wn(n, e) {
|
|
7170
|
-
return e +=
|
|
7170
|
+
return e += Lt(n, e).length, ys(n, e);
|
|
7171
7171
|
}
|
|
7172
7172
|
function xs(n) {
|
|
7173
7173
|
const e = Wn(n, 0);
|
|
7174
|
-
return !e || e.cursor +
|
|
7174
|
+
return !e || e.cursor + Lt(n, e.cursor).length !== n.length ? null : e.evaluable;
|
|
7175
7175
|
}
|
|
7176
7176
|
function at(n) {
|
|
7177
7177
|
var e;
|
|
@@ -7260,7 +7260,7 @@ var js = {}, Ch = {
|
|
|
7260
7260
|
y: n.pageY - (((l = v && v.scrollY) !== null && l !== void 0 ? l : 0) + E.top)
|
|
7261
7261
|
};
|
|
7262
7262
|
}
|
|
7263
|
-
class
|
|
7263
|
+
class It {
|
|
7264
7264
|
constructor(e) {
|
|
7265
7265
|
this.lastTouch_ = null, this.onDocumentMouseMove_ = this.onDocumentMouseMove_.bind(this), this.onDocumentMouseUp_ = this.onDocumentMouseUp_.bind(this), this.onMouseDown_ = this.onMouseDown_.bind(this), this.onTouchEnd_ = this.onTouchEnd_.bind(this), this.onTouchMove_ = this.onTouchMove_.bind(this), this.onTouchStart_ = this.onTouchStart_.bind(this), this.elem_ = e, this.emitter = new F(), e.addEventListener("touchstart", this.onTouchStart_, {
|
|
7266
7266
|
passive: !1
|
|
@@ -7407,7 +7407,7 @@ var js = {}, Ch = {
|
|
|
7407
7407
|
value: this.value,
|
|
7408
7408
|
viewProps: this.viewProps
|
|
7409
7409
|
}), this.view.inputElement.addEventListener("change", this.onInputChange_), this.view.inputElement.addEventListener("keydown", this.onInputKeyDown_), this.view.inputElement.addEventListener("keyup", this.onInputKeyUp_);
|
|
7410
|
-
const v = new
|
|
7410
|
+
const v = new It(this.view.knobElement);
|
|
7411
7411
|
v.emitter.on("down", this.onPointerDown_), v.emitter.on("move", this.onPointerMove_), v.emitter.on("up", this.onPointerUp_);
|
|
7412
7412
|
}
|
|
7413
7413
|
constrainValue_(e) {
|
|
@@ -7480,7 +7480,7 @@ var js = {}, Ch = {
|
|
|
7480
7480
|
props: this.props,
|
|
7481
7481
|
value: this.value,
|
|
7482
7482
|
viewProps: this.viewProps
|
|
7483
|
-
}), this.ptHandler_ = new
|
|
7483
|
+
}), this.ptHandler_ = new It(this.view.trackElement), this.ptHandler_.emitter.on("down", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("move", this.onPointerDownOrMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.trackElement.addEventListener("keydown", this.onKeyDown_), this.view.trackElement.addEventListener("keyup", this.onKeyUp_);
|
|
7484
7484
|
}
|
|
7485
7485
|
handlePointerEvent_(e, t) {
|
|
7486
7486
|
e.point && this.value.setRawValue(_e(Se(e.point.x, 0, e.bounds.width), 0, e.bounds.width, this.props.get("minValue"), this.props.get("maxValue")), t);
|
|
@@ -7591,11 +7591,11 @@ var js = {}, Ch = {
|
|
|
7591
7591
|
const t = n && et(n, Qn);
|
|
7592
7592
|
return t ? Li(t.step) : Math.max(Li(e), 2);
|
|
7593
7593
|
}
|
|
7594
|
-
function
|
|
7594
|
+
function Vt(n) {
|
|
7595
7595
|
const e = Cr(n);
|
|
7596
7596
|
return e ?? 1;
|
|
7597
7597
|
}
|
|
7598
|
-
function
|
|
7598
|
+
function Dt(n, e) {
|
|
7599
7599
|
var t;
|
|
7600
7600
|
const l = n && et(n, Qn), v = Math.abs((t = l == null ? void 0 : l.step) !== null && t !== void 0 ? t : e);
|
|
7601
7601
|
return v === 0 ? 0.1 : Math.pow(10, Math.floor(Math.log10(v)) - 1);
|
|
@@ -7668,18 +7668,18 @@ var js = {}, Ch = {
|
|
|
7668
7668
|
viewProps: n.viewProps
|
|
7669
7669
|
});
|
|
7670
7670
|
}
|
|
7671
|
-
},
|
|
7671
|
+
}, Ot = D("col");
|
|
7672
7672
|
class Fi {
|
|
7673
7673
|
constructor(e, t) {
|
|
7674
|
-
this.element = e.createElement("div"), this.element.classList.add(
|
|
7674
|
+
this.element = e.createElement("div"), this.element.classList.add(Ot()), t.foldable.bindExpandedClass(this.element, Ot(void 0, "expanded")), O(t.foldable, "completed", K(this.element, Ot(void 0, "cpl")));
|
|
7675
7675
|
const l = e.createElement("div");
|
|
7676
|
-
l.classList.add(
|
|
7676
|
+
l.classList.add(Ot("h")), this.element.appendChild(l);
|
|
7677
7677
|
const v = e.createElement("div");
|
|
7678
|
-
v.classList.add(
|
|
7678
|
+
v.classList.add(Ot("s")), l.appendChild(v), this.swatchElement = v;
|
|
7679
7679
|
const E = e.createElement("div");
|
|
7680
|
-
if (E.classList.add(
|
|
7680
|
+
if (E.classList.add(Ot("t")), l.appendChild(E), this.textElement = E, t.pickerLayout === "inline") {
|
|
7681
7681
|
const k = e.createElement("div");
|
|
7682
|
-
k.classList.add(
|
|
7682
|
+
k.classList.add(Ot("p")), this.element.appendChild(k), this.pickerElement = k;
|
|
7683
7683
|
} else
|
|
7684
7684
|
this.pickerElement = null;
|
|
7685
7685
|
}
|
|
@@ -8317,7 +8317,7 @@ var js = {}, Ch = {
|
|
|
8317
8317
|
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.view = new gl(e, {
|
|
8318
8318
|
value: this.value,
|
|
8319
8319
|
viewProps: this.viewProps
|
|
8320
|
-
}), this.ptHandler_ = new
|
|
8320
|
+
}), this.ptHandler_ = new It(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
|
|
8321
8321
|
}
|
|
8322
8322
|
handlePointerEvent_(e, t) {
|
|
8323
8323
|
if (!e.point)
|
|
@@ -8491,7 +8491,7 @@ var js = {}, Ch = {
|
|
|
8491
8491
|
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.view = new Pl(e, {
|
|
8492
8492
|
value: this.value,
|
|
8493
8493
|
viewProps: this.viewProps
|
|
8494
|
-
}), this.ptHandler_ = new
|
|
8494
|
+
}), this.ptHandler_ = new It(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
|
|
8495
8495
|
}
|
|
8496
8496
|
handlePointerEvent_(e, t) {
|
|
8497
8497
|
if (!e.point)
|
|
@@ -8568,7 +8568,7 @@ var js = {}, Ch = {
|
|
|
8568
8568
|
this.onKeyDown_ = this.onKeyDown_.bind(this), this.onKeyUp_ = this.onKeyUp_.bind(this), this.onPointerDown_ = this.onPointerDown_.bind(this), this.onPointerMove_ = this.onPointerMove_.bind(this), this.onPointerUp_ = this.onPointerUp_.bind(this), this.value = t.value, this.viewProps = t.viewProps, this.view = new kl(e, {
|
|
8569
8569
|
value: this.value,
|
|
8570
8570
|
viewProps: this.viewProps
|
|
8571
|
-
}), this.ptHandler_ = new
|
|
8571
|
+
}), this.ptHandler_ = new It(this.view.element), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.element.addEventListener("keydown", this.onKeyDown_), this.view.element.addEventListener("keyup", this.onKeyUp_);
|
|
8572
8572
|
}
|
|
8573
8573
|
handlePointerEvent_(e, t) {
|
|
8574
8574
|
if (!e.point)
|
|
@@ -9045,23 +9045,23 @@ var js = {}, Ch = {
|
|
|
9045
9045
|
});
|
|
9046
9046
|
const E = (e = "format" in n.params ? n.params.format : void 0) !== null && e !== void 0 ? e : Re(ti(l, t.rawValue)), k = l && et(l, Xt);
|
|
9047
9047
|
return k ? new ei(n.document, {
|
|
9048
|
-
baseStep:
|
|
9048
|
+
baseStep: Vt(l),
|
|
9049
9049
|
parser: at,
|
|
9050
9050
|
sliderProps: new X({
|
|
9051
9051
|
maxValue: k.values.value("max"),
|
|
9052
9052
|
minValue: k.values.value("min")
|
|
9053
9053
|
}),
|
|
9054
9054
|
textProps: X.fromObject({
|
|
9055
|
-
draggingScale:
|
|
9055
|
+
draggingScale: Dt(l, t.rawValue),
|
|
9056
9056
|
formatter: E
|
|
9057
9057
|
}),
|
|
9058
9058
|
value: t,
|
|
9059
9059
|
viewProps: n.viewProps
|
|
9060
9060
|
}) : new yn(n.document, {
|
|
9061
|
-
baseStep:
|
|
9061
|
+
baseStep: Vt(l),
|
|
9062
9062
|
parser: at,
|
|
9063
9063
|
props: X.fromObject({
|
|
9064
|
-
draggingScale:
|
|
9064
|
+
draggingScale: Dt(l, t.rawValue),
|
|
9065
9065
|
formatter: E
|
|
9066
9066
|
}),
|
|
9067
9067
|
value: t,
|
|
@@ -9156,7 +9156,7 @@ var js = {}, Ch = {
|
|
|
9156
9156
|
maxValue: this.maxValue_,
|
|
9157
9157
|
value: this.value,
|
|
9158
9158
|
viewProps: this.viewProps
|
|
9159
|
-
}), this.ptHandler_ = new
|
|
9159
|
+
}), this.ptHandler_ = new It(this.view.padElement), this.ptHandler_.emitter.on("down", this.onPointerDown_), this.ptHandler_.emitter.on("move", this.onPointerMove_), this.ptHandler_.emitter.on("up", this.onPointerUp_), this.view.padElement.addEventListener("keydown", this.onPadKeyDown_), this.view.padElement.addEventListener("keyup", this.onPadKeyUp_);
|
|
9160
9160
|
}
|
|
9161
9161
|
handlePointerEvent_(e, t) {
|
|
9162
9162
|
if (!e.point)
|
|
@@ -9288,18 +9288,18 @@ var js = {}, Ch = {
|
|
|
9288
9288
|
return new Zt({
|
|
9289
9289
|
assembly: Xo,
|
|
9290
9290
|
components: [
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9291
|
+
Nt("x" in n ? n.x : void 0, e.x),
|
|
9292
|
+
Nt("y" in n ? n.y : void 0, e.y),
|
|
9293
|
+
Nt("z" in n ? n.z : void 0, e.z)
|
|
9294
9294
|
]
|
|
9295
9295
|
});
|
|
9296
9296
|
}
|
|
9297
9297
|
function zr(n, e) {
|
|
9298
9298
|
return {
|
|
9299
|
-
baseStep:
|
|
9299
|
+
baseStep: Vt(e),
|
|
9300
9300
|
constraint: e,
|
|
9301
9301
|
textProps: X.fromObject({
|
|
9302
|
-
draggingScale:
|
|
9302
|
+
draggingScale: Dt(e, n),
|
|
9303
9303
|
formatter: Re(ti(e, n))
|
|
9304
9304
|
})
|
|
9305
9305
|
};
|
|
@@ -9382,19 +9382,19 @@ var js = {}, Ch = {
|
|
|
9382
9382
|
return new Zt({
|
|
9383
9383
|
assembly: Yo,
|
|
9384
9384
|
components: [
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9385
|
+
Nt("x" in n ? n.x : void 0, e.x),
|
|
9386
|
+
Nt("y" in n ? n.y : void 0, e.y),
|
|
9387
|
+
Nt("z" in n ? n.z : void 0, e.z),
|
|
9388
|
+
Nt("w" in n ? n.w : void 0, e.w)
|
|
9389
9389
|
]
|
|
9390
9390
|
});
|
|
9391
9391
|
}
|
|
9392
9392
|
function mc(n, e) {
|
|
9393
9393
|
return {
|
|
9394
|
-
baseStep:
|
|
9394
|
+
baseStep: Vt(e),
|
|
9395
9395
|
constraint: e,
|
|
9396
9396
|
textProps: X.fromObject({
|
|
9397
|
-
draggingScale:
|
|
9397
|
+
draggingScale: Dt(e, n),
|
|
9398
9398
|
formatter: Re(ti(e, n))
|
|
9399
9399
|
})
|
|
9400
9400
|
};
|
|
@@ -9611,7 +9611,7 @@ var js = {}, Ch = {
|
|
|
9611
9611
|
}), !mt(e))
|
|
9612
9612
|
this.view.element.addEventListener("mousemove", this.onGraphMouseMove_), this.view.element.addEventListener("mouseleave", this.onGraphMouseLeave_);
|
|
9613
9613
|
else {
|
|
9614
|
-
const l = new
|
|
9614
|
+
const l = new It(this.view.element);
|
|
9615
9615
|
l.emitter.on("down", this.onGraphPointerDown_), l.emitter.on("move", this.onGraphPointerMove_), l.emitter.on("up", this.onGraphPointerUp_);
|
|
9616
9616
|
}
|
|
9617
9617
|
}
|
|
@@ -9911,7 +9911,7 @@ var js = {}, Ch = {
|
|
|
9911
9911
|
function Ic(n, e) {
|
|
9912
9912
|
n.writeProperty("x", e.x), n.writeProperty("y", e.y);
|
|
9913
9913
|
}
|
|
9914
|
-
function
|
|
9914
|
+
function Nt(n, e) {
|
|
9915
9915
|
if (!n)
|
|
9916
9916
|
return;
|
|
9917
9917
|
const t = [], l = Go(n, e);
|
|
@@ -9923,8 +9923,8 @@ var js = {}, Ch = {
|
|
|
9923
9923
|
return new Zt({
|
|
9924
9924
|
assembly: Ko,
|
|
9925
9925
|
components: [
|
|
9926
|
-
|
|
9927
|
-
|
|
9926
|
+
Nt("x" in n ? n.x : void 0, e.x),
|
|
9927
|
+
Nt("y" in n ? n.y : void 0, e.y)
|
|
9928
9928
|
]
|
|
9929
9929
|
});
|
|
9930
9930
|
}
|
|
@@ -9932,7 +9932,7 @@ var js = {}, Ch = {
|
|
|
9932
9932
|
const [t, l] = n ? ec(n) : [];
|
|
9933
9933
|
if (!_(t) || !_(l))
|
|
9934
9934
|
return Math.max(Math.abs(t ?? 0), Math.abs(l ?? 0));
|
|
9935
|
-
const v =
|
|
9935
|
+
const v = Vt(n);
|
|
9936
9936
|
return Math.max(Math.abs(v) * 10, Math.abs(e) * 10);
|
|
9937
9937
|
}
|
|
9938
9938
|
function Dc(n, e) {
|
|
@@ -9941,10 +9941,10 @@ var js = {}, Ch = {
|
|
|
9941
9941
|
}
|
|
9942
9942
|
function Jo(n, e) {
|
|
9943
9943
|
return {
|
|
9944
|
-
baseStep:
|
|
9944
|
+
baseStep: Vt(e),
|
|
9945
9945
|
constraint: e,
|
|
9946
9946
|
textProps: X.fromObject({
|
|
9947
|
-
draggingScale:
|
|
9947
|
+
draggingScale: Dt(e, n),
|
|
9948
9948
|
formatter: Re(ti(e, n))
|
|
9949
9949
|
})
|
|
9950
9950
|
};
|
|
@@ -10230,7 +10230,7 @@ var js = {}, Ch = {
|
|
|
10230
10230
|
minValue: v.values.value("min")
|
|
10231
10231
|
}),
|
|
10232
10232
|
textProps: X.fromObject({
|
|
10233
|
-
draggingScale:
|
|
10233
|
+
draggingScale: Dt(void 0, l),
|
|
10234
10234
|
formatter: (t = n.params.format) !== null && t !== void 0 ? t : Er
|
|
10235
10235
|
}),
|
|
10236
10236
|
value: ee(l, {
|
|
@@ -10822,7 +10822,7 @@ var Ji = {}, Ph = {
|
|
|
10822
10822
|
return m.relatedTarget ? m.relatedTarget : "explicitOriginalTarget" in m ? m.explicitOriginalTarget : null;
|
|
10823
10823
|
}
|
|
10824
10824
|
const dt = y("lbl");
|
|
10825
|
-
function
|
|
10825
|
+
function kt(m, o) {
|
|
10826
10826
|
const p = m.createDocumentFragment();
|
|
10827
10827
|
return o.split(`
|
|
10828
10828
|
`).map((x) => m.createTextNode(x)).forEach((x, P) => {
|
|
@@ -10834,7 +10834,7 @@ var Ji = {}, Ph = {
|
|
|
10834
10834
|
this.element = o.createElement("div"), this.element.classList.add(dt()), p.viewProps.bindClassModifiers(this.element);
|
|
10835
10835
|
const f = o.createElement("div");
|
|
10836
10836
|
f.classList.add(dt("l")), R(p.props, "label", (P) => {
|
|
10837
|
-
h(P) ? this.element.classList.add(dt(void 0, "nol")) : (this.element.classList.remove(dt(void 0, "nol")), jn(f), f.appendChild(
|
|
10837
|
+
h(P) ? this.element.classList.add(dt(void 0, "nol")) : (this.element.classList.remove(dt(void 0, "nol")), jn(f), f.appendChild(kt(o, P)));
|
|
10838
10838
|
}), this.element.appendChild(f), this.labelElement = f;
|
|
10839
10839
|
const x = o.createElement("div");
|
|
10840
10840
|
x.classList.add(dt("v")), this.element.appendChild(x), this.valueElement = x;
|
|
@@ -10915,7 +10915,7 @@ var Ji = {}, Ph = {
|
|
|
10915
10915
|
this.element = o.createElement("div"), this.element.classList.add(f()), p.viewProps.bindClassModifiers(this.element);
|
|
10916
10916
|
}
|
|
10917
10917
|
}
|
|
10918
|
-
class
|
|
10918
|
+
class Mt extends ln {
|
|
10919
10919
|
constructor(o, p) {
|
|
10920
10920
|
const f = p.valueController.viewProps;
|
|
10921
10921
|
super(Object.assign(Object.assign({}, p), { value: p.valueController.value, view: new ze(o, {
|
|
@@ -10997,7 +10997,7 @@ var Ji = {}, Ph = {
|
|
|
10997
10997
|
return Math.min(Math.max(o, f), p);
|
|
10998
10998
|
}
|
|
10999
10999
|
}
|
|
11000
|
-
class
|
|
11000
|
+
class St {
|
|
11001
11001
|
constructor(o) {
|
|
11002
11002
|
this.values = K.fromObject({
|
|
11003
11003
|
max: o.max,
|
|
@@ -11144,7 +11144,7 @@ var Ji = {}, Ph = {
|
|
|
11144
11144
|
return "";
|
|
11145
11145
|
};
|
|
11146
11146
|
}
|
|
11147
|
-
function
|
|
11147
|
+
function At(m, o) {
|
|
11148
11148
|
var p;
|
|
11149
11149
|
const f = m.substr(o).match(/^\s+/);
|
|
11150
11150
|
return (p = f && f[0]) !== null && p !== void 0 ? p : "";
|
|
@@ -11266,7 +11266,7 @@ var Ji = {}, Ph = {
|
|
|
11266
11266
|
const f = _i(m, o);
|
|
11267
11267
|
if (!f)
|
|
11268
11268
|
return null;
|
|
11269
|
-
o = f.cursor, o +=
|
|
11269
|
+
o = f.cursor, o += At(m, o).length;
|
|
11270
11270
|
const x = m.substr(o, 1);
|
|
11271
11271
|
return o += x.length, x !== ")" ? null : {
|
|
11272
11272
|
evaluable: f.evaluable,
|
|
@@ -11291,9 +11291,9 @@ var Ji = {}, Ph = {
|
|
|
11291
11291
|
}) : null;
|
|
11292
11292
|
}
|
|
11293
11293
|
function Js(m, o, p) {
|
|
11294
|
-
p +=
|
|
11294
|
+
p += At(o, p).length;
|
|
11295
11295
|
const f = m.filter((x) => o.startsWith(x, p))[0];
|
|
11296
|
-
return f ? (p += f.length, p +=
|
|
11296
|
+
return f ? (p += f.length, p += At(o, p).length, {
|
|
11297
11297
|
cursor: p,
|
|
11298
11298
|
operator: f
|
|
11299
11299
|
}) : null;
|
|
@@ -11331,11 +11331,11 @@ var Ji = {}, Ph = {
|
|
|
11331
11331
|
["|"]
|
|
11332
11332
|
].reduce((m, o) => Gt(m, o), Xn);
|
|
11333
11333
|
function _i(m, o) {
|
|
11334
|
-
return o +=
|
|
11334
|
+
return o += At(m, o).length, ss(m, o);
|
|
11335
11335
|
}
|
|
11336
11336
|
function er(m) {
|
|
11337
11337
|
const o = _i(m, 0);
|
|
11338
|
-
return !o || o.cursor +
|
|
11338
|
+
return !o || o.cursor + At(m, o.cursor).length !== m.length ? null : o.evaluable;
|
|
11339
11339
|
}
|
|
11340
11340
|
function dn(m) {
|
|
11341
11341
|
var o;
|
|
@@ -11785,7 +11785,7 @@ var Ji = {}, Ph = {
|
|
|
11785
11785
|
viewProps: o.viewProps
|
|
11786
11786
|
});
|
|
11787
11787
|
}
|
|
11788
|
-
class
|
|
11788
|
+
class Lt {
|
|
11789
11789
|
constructor(o, p) {
|
|
11790
11790
|
this.value = p.value, this.viewProps = p.viewProps, this.acs_ = p.axes.map((f, x) => Ci(o, p, x)), this.acs_.forEach((f, x) => {
|
|
11791
11791
|
Ht({
|
|
@@ -11809,7 +11809,7 @@ var Ji = {}, Ph = {
|
|
|
11809
11809
|
return !h(m.max) && !h(m.min) ? new ft({
|
|
11810
11810
|
max: m.max,
|
|
11811
11811
|
min: m.min
|
|
11812
|
-
}) : !h(m.max) || !h(m.min) ? new
|
|
11812
|
+
}) : !h(m.max) || !h(m.min) ? new St({
|
|
11813
11813
|
max: m.max,
|
|
11814
11814
|
min: m.min
|
|
11815
11815
|
}) : null;
|
|
@@ -12097,20 +12097,20 @@ var Ji = {}, Ph = {
|
|
|
12097
12097
|
}, []);
|
|
12098
12098
|
return new Et(...p ?? Mi);
|
|
12099
12099
|
}
|
|
12100
|
-
const
|
|
12100
|
+
const Rt = y("cbz");
|
|
12101
12101
|
class ys {
|
|
12102
12102
|
constructor(o, p) {
|
|
12103
|
-
this.element = o.createElement("div"), this.element.classList.add(
|
|
12103
|
+
this.element = o.createElement("div"), this.element.classList.add(Rt()), p.viewProps.bindClassModifiers(this.element), p.foldable.bindExpandedClass(this.element, Rt(void 0, "expanded")), R(p.foldable, "completed", F(this.element, Rt(void 0, "cpl")));
|
|
12104
12104
|
const f = o.createElement("div");
|
|
12105
|
-
f.classList.add(
|
|
12105
|
+
f.classList.add(Rt("h")), this.element.appendChild(f);
|
|
12106
12106
|
const x = o.createElement("button");
|
|
12107
|
-
x.classList.add(
|
|
12107
|
+
x.classList.add(Rt("b")), p.viewProps.bindDisabled(x);
|
|
12108
12108
|
const P = o.createElementNS(we, "svg");
|
|
12109
12109
|
P.innerHTML = '<path d="M2 13C8 13 8 3 14 3"/>', x.appendChild(P), f.appendChild(x), this.buttonElement = x;
|
|
12110
12110
|
const L = o.createElement("div");
|
|
12111
|
-
if (L.classList.add(
|
|
12111
|
+
if (L.classList.add(Rt("t")), f.appendChild(L), this.textElement = L, p.pickerLayout === "inline") {
|
|
12112
12112
|
const z = o.createElement("div");
|
|
12113
|
-
z.classList.add(
|
|
12113
|
+
z.classList.add(Rt("p")), this.element.appendChild(z), this.pickerElement = z;
|
|
12114
12114
|
} else
|
|
12115
12115
|
this.pickerElement = null;
|
|
12116
12116
|
}
|
|
@@ -12335,8 +12335,8 @@ var Ji = {}, Ph = {
|
|
|
12335
12335
|
value: this.value,
|
|
12336
12336
|
viewProps: this.viewProps
|
|
12337
12337
|
}), this.view.graphElement.appendChild(this.gc_.view.element);
|
|
12338
|
-
const f = Object.assign(Object.assign({}, p.axis), { constraint: new
|
|
12339
|
-
this.tc_ = new
|
|
12338
|
+
const f = Object.assign(Object.assign({}, p.axis), { constraint: new St({ max: 1, min: 0 }) }), x = Object.assign(Object.assign({}, p.axis), { constraint: void 0 });
|
|
12339
|
+
this.tc_ = new Lt(o, {
|
|
12340
12340
|
assembly: ki,
|
|
12341
12341
|
axes: [f, x, f, x],
|
|
12342
12342
|
parser: dn,
|
|
@@ -12408,13 +12408,13 @@ var Ji = {}, Ph = {
|
|
|
12408
12408
|
function Ai() {
|
|
12409
12409
|
return new ur({
|
|
12410
12410
|
assembly: ki,
|
|
12411
|
-
components: [0, 1, 2, 3].map((m) => m % 2 === 0 ? new
|
|
12411
|
+
components: [0, 1, 2, 3].map((m) => m % 2 === 0 ? new St({
|
|
12412
12412
|
min: 0,
|
|
12413
12413
|
max: 1
|
|
12414
12414
|
}) : void 0)
|
|
12415
12415
|
});
|
|
12416
12416
|
}
|
|
12417
|
-
const
|
|
12417
|
+
const It = {
|
|
12418
12418
|
id: "cubic-bezier",
|
|
12419
12419
|
type: "blade",
|
|
12420
12420
|
css: '.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',
|
|
@@ -12446,7 +12446,7 @@ var Ji = {}, Ph = {
|
|
|
12446
12446
|
value: x,
|
|
12447
12447
|
viewProps: m.viewProps
|
|
12448
12448
|
});
|
|
12449
|
-
return new
|
|
12449
|
+
return new Mt(m.document, {
|
|
12450
12450
|
blade: m.blade,
|
|
12451
12451
|
props: K.fromObject({
|
|
12452
12452
|
label: m.params.label
|
|
@@ -12455,7 +12455,7 @@ var Ji = {}, Ph = {
|
|
|
12455
12455
|
});
|
|
12456
12456
|
},
|
|
12457
12457
|
api(m) {
|
|
12458
|
-
return !(m.controller instanceof
|
|
12458
|
+
return !(m.controller instanceof Mt) || !(m.controller.valueController instanceof Jn) ? null : new ws(m.controller);
|
|
12459
12459
|
}
|
|
12460
12460
|
};
|
|
12461
12461
|
class _e extends s {
|
|
@@ -12734,7 +12734,7 @@ var Ji = {}, Ph = {
|
|
|
12734
12734
|
formatter: p.formatter
|
|
12735
12735
|
})
|
|
12736
12736
|
};
|
|
12737
|
-
this.tc_ = new
|
|
12737
|
+
this.tc_ = new Lt(o, {
|
|
12738
12738
|
assembly: Vi,
|
|
12739
12739
|
axes: [f, f],
|
|
12740
12740
|
parser: p.parser,
|
|
@@ -12813,7 +12813,7 @@ var Ji = {}, Ph = {
|
|
|
12813
12813
|
formatter: P
|
|
12814
12814
|
})
|
|
12815
12815
|
};
|
|
12816
|
-
return new
|
|
12816
|
+
return new Lt(m.document, {
|
|
12817
12817
|
assembly: Vi,
|
|
12818
12818
|
axes: [z, z],
|
|
12819
12819
|
parser: dn,
|
|
@@ -12822,7 +12822,7 @@ var Ji = {}, Ph = {
|
|
|
12822
12822
|
});
|
|
12823
12823
|
}
|
|
12824
12824
|
};
|
|
12825
|
-
class
|
|
12825
|
+
class Vt {
|
|
12826
12826
|
constructor(o) {
|
|
12827
12827
|
this.controller_ = o;
|
|
12828
12828
|
}
|
|
@@ -12840,7 +12840,7 @@ var Ji = {}, Ph = {
|
|
|
12840
12840
|
this.controller_.props.set("title", o);
|
|
12841
12841
|
}
|
|
12842
12842
|
}
|
|
12843
|
-
class
|
|
12843
|
+
class Dt extends c {
|
|
12844
12844
|
constructor(o, p, f, x, P) {
|
|
12845
12845
|
super(o, x, P), this.cell = p, this.index = f;
|
|
12846
12846
|
}
|
|
@@ -12848,7 +12848,7 @@ var Ji = {}, Ph = {
|
|
|
12848
12848
|
class Cn extends s {
|
|
12849
12849
|
constructor(o) {
|
|
12850
12850
|
super(o), this.cellToApiMap_ = /* @__PURE__ */ new Map(), this.controller_.valueController.cellControllers.forEach((f) => {
|
|
12851
|
-
const x = new
|
|
12851
|
+
const x = new Vt(f);
|
|
12852
12852
|
this.cellToApiMap_.set(f, x);
|
|
12853
12853
|
});
|
|
12854
12854
|
}
|
|
@@ -12869,7 +12869,7 @@ var Ji = {}, Ph = {
|
|
|
12869
12869
|
if (!z)
|
|
12870
12870
|
return;
|
|
12871
12871
|
const oe = P.cellControllers.indexOf(L);
|
|
12872
|
-
f(new
|
|
12872
|
+
f(new Dt(this, z, [oe % P.size[0], Math.floor(oe / P.size[0])], x.rawValue, void 0));
|
|
12873
12873
|
});
|
|
12874
12874
|
}
|
|
12875
12875
|
}
|
|
@@ -12933,7 +12933,7 @@ var Ji = {}, Ph = {
|
|
|
12933
12933
|
f < 0 || (this.value.rawValue = this.cellValues_[f]);
|
|
12934
12934
|
}
|
|
12935
12935
|
}
|
|
12936
|
-
const
|
|
12936
|
+
const Ot = function() {
|
|
12937
12937
|
return {
|
|
12938
12938
|
id: "radiogrid",
|
|
12939
12939
|
type: "blade",
|
|
@@ -12949,7 +12949,7 @@ var Ji = {}, Ph = {
|
|
|
12949
12949
|
return p ? { params: p } : null;
|
|
12950
12950
|
},
|
|
12951
12951
|
controller(m) {
|
|
12952
|
-
return new
|
|
12952
|
+
return new Mt(m.document, {
|
|
12953
12953
|
blade: m.blade,
|
|
12954
12954
|
props: K.fromObject({
|
|
12955
12955
|
label: m.params.label
|
|
@@ -12963,7 +12963,7 @@ var Ji = {}, Ph = {
|
|
|
12963
12963
|
});
|
|
12964
12964
|
},
|
|
12965
12965
|
api(m) {
|
|
12966
|
-
return !(m.controller instanceof
|
|
12966
|
+
return !(m.controller instanceof Mt) || !(m.controller.valueController instanceof ni) ? null : new Cn(m.controller);
|
|
12967
12967
|
}
|
|
12968
12968
|
};
|
|
12969
12969
|
}();
|
|
@@ -13014,15 +13014,15 @@ var Ji = {}, Ph = {
|
|
|
13014
13014
|
}
|
|
13015
13015
|
}), Ms = [
|
|
13016
13016
|
br,
|
|
13017
|
-
|
|
13017
|
+
It,
|
|
13018
13018
|
Ii,
|
|
13019
13019
|
ti,
|
|
13020
|
-
|
|
13020
|
+
Ot,
|
|
13021
13021
|
kr,
|
|
13022
13022
|
Pr,
|
|
13023
13023
|
Tr
|
|
13024
13024
|
];
|
|
13025
|
-
r.ButtonCellApi = gs, r.ButtonGridApi = _s, r.ButtonGridController = Pi, r.CubicBezier = Et, r.CubicBezierApi = ws, r.CubicBezierAssembly = ki, r.CubicBezierController = Jn, r.CubicBezierGraphController = lt, r.CubicBezierGraphView = Re, r.CubicBezierPickerController = Cs, r.CubicBezierPickerView = xs, r.CubicBezierPreviewView = qt, r.CubicBezierView = ys, r.FpsGraphBladeApi = _e, r.FpsGraphController = Ri, r.FpsView = He, r.Fpswatch = Se, r.Interval = Ke, r.IntervalAssembly = Vi, r.IntervalConstraint = xn, r.RadioCellApi =
|
|
13025
|
+
r.ButtonCellApi = gs, r.ButtonGridApi = _s, r.ButtonGridController = Pi, r.CubicBezier = Et, r.CubicBezierApi = ws, r.CubicBezierAssembly = ki, r.CubicBezierController = Jn, r.CubicBezierGraphController = lt, r.CubicBezierGraphView = Re, r.CubicBezierPickerController = Cs, r.CubicBezierPickerView = xs, r.CubicBezierPreviewView = qt, r.CubicBezierView = ys, r.FpsGraphBladeApi = _e, r.FpsGraphController = Ri, r.FpsView = He, r.Fpswatch = Se, r.Interval = Ke, r.IntervalAssembly = Vi, r.IntervalConstraint = xn, r.RadioCellApi = Vt, r.RadioController = ks, r.RadioGridApi = Cn, r.RadioGridController = ni, r.RadioView = Ts, r.RangeSliderController = Oi, r.RangeSliderTextController = bt, r.RangeSliderTextView = ei, r.RangeSliderView = En, r.TpRadioGridChangeEvent = Dt, r.plugins = Ms, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
13026
13026
|
});
|
|
13027
13027
|
})(Ph, Ji);
|
|
13028
13028
|
const Th = /* @__PURE__ */ ih(Ji), kh = /* @__PURE__ */ Np({
|
|
@@ -13139,10 +13139,10 @@ const bd = Ie({
|
|
|
13139
13139
|
bevelOffset: s.bevelOffset,
|
|
13140
13140
|
bevelSegments: s.bevelSegments
|
|
13141
13141
|
}));
|
|
13142
|
-
return (w, _) =>
|
|
13143
|
-
|
|
13142
|
+
return (w, _) => jt(d) ? (Be(), je("TresMesh", Lh, [
|
|
13143
|
+
jt(h) ? (Be(), je("TresTextGeometry", {
|
|
13144
13144
|
key: 0,
|
|
13145
|
-
args: [
|
|
13145
|
+
args: [jt(h), jt(g)],
|
|
13146
13146
|
center: b.center
|
|
13147
13147
|
}, null, 8, Rh)) : to("", !0),
|
|
13148
13148
|
$e(w.$slots, "default")
|