ss-component-new 1.3.545 → 1.3.546
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/{array-DWo4wAMp.js → array-CghFa-jO.js} +2 -2
- package/dist/{index-BrtmfvpG.js → index-4n_acDMK.js} +2 -2
- package/dist/{index-CWkNbqkr.js → index-BYTMN1HW.js} +1 -1
- package/dist/{index-DjETroHK.js → index-Bk0wE2jo.js} +7 -7
- package/dist/{index-B9gD3nEn.js → index-Bq9bE7ga.js} +1 -1
- package/dist/{index-MQKClf4D.js → index-CcggBkt3.js} +3 -3
- package/dist/{index-BoOA2xgC.js → index-D47IrFAU.js} +2 -2
- package/dist/{index-BR0fq_jl.js → index-DJnT8FpF.js} +1 -1
- package/dist/{index-DBb5a4wX.js → index-GTgJbDlP.js} +1 -1
- package/dist/{index-CP-65XoB.js → index-PwoUdVUY.js} +2 -2
- package/dist/{index-CR1azZsN.js → index-RLLrToce.js} +3 -3
- package/dist/{index-Cq100GrM.js → index-ZC0aq3F3.js} +1 -1
- package/dist/{index-C7WILUW2.js → index-kbQZzQVR.js} +1 -1
- package/dist/{main-CuUZ0XN2.js → main-CqBiDFYA.js} +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-D3PkIZoy.js → threeModel-CfN6FNCN.js} +1 -1
- package/dist/{threePreview-CYTdNzPj.js → threePreview-CtUDgdQs.js} +132 -122
- package/dist/{threeSceneView-BpZEwW2o.js → threeSceneView-NKKcrWSu.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-B6UAX0FN.js → threeSceneViewForCPMPIP-DibHqkVY.js} +1 -1
- package/dist/{threeViewerHost-Br3Jg4yu.js → threeViewerHost-gXHoSu-S.js} +1 -1
- package/package.json +2 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as k, computed as ae, resolveComponent as te, createElementBlock as H, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
|
|
2
|
-
import { V as Ie, g as aa, E as oa, G as sa, H as Je, c as ra } from "./index-
|
|
2
|
+
import { V as Ie, g as aa, E as oa, G as sa, H as Je, c as ra } from "./index-RLLrToce.js";
|
|
3
3
|
import { a as Ce, p as he, s as ie, c as K, u as ke, E as ua } from "./index-DqXvOyIs.js";
|
|
4
4
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import ca from "./index-rlStojTL.js";
|
|
6
|
-
import { d as ia, c as da } from "./index-
|
|
6
|
+
import { d as ia, c as da } from "./index-BYTMN1HW.js";
|
|
7
7
|
import { s as va } from "./index-11kpzK0A.js";
|
|
8
8
|
import { E as pa } from "./request-B1c8BUkR.js";
|
|
9
9
|
const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
2
|
import { S as x } from "./index-KxgyPOIl.js";
|
|
3
|
-
import { W as B } from "./index-
|
|
3
|
+
import { W as B } from "./index-RLLrToce.js";
|
|
4
4
|
import { s as F } from "./index-11kpzK0A.js";
|
|
5
|
-
import { b as y } from "./index-
|
|
5
|
+
import { b as y } from "./index-BYTMN1HW.js";
|
|
6
6
|
import { u as S, p as I, s as N } from "./index-DqXvOyIs.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|
|
@@ -8,7 +8,7 @@ import { _ as q0 } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
|
|
|
8
8
|
import { m as Qi, B as W9, Y as a8 } from "./index-DB1HWx1W.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { s as ei } from "./index-11kpzK0A.js";
|
|
11
|
-
import { T as Ji, a as U9 } from "./threeViewerHost-
|
|
11
|
+
import { T as Ji, a as U9 } from "./threeViewerHost-gXHoSu-S.js";
|
|
12
12
|
import { A as I9 } from "./index-D-gH5ElV.js";
|
|
13
13
|
var q9 = "[object Date]";
|
|
14
14
|
function Y9(n) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as kl, defineComponent as _l, defineProps as Ot, ref as E, watch as vl, onMounted as Kl, onUnmounted as nt, resolveComponent as le, createBlock as fe, openBlock as p, withCtx as o, createElementVNode as O, toDisplayString as il, createElementBlock as ee, Fragment as ll, renderList as dl, createCommentVNode as Re, normalizeStyle as Bl, createVNode as s, unref as n, resolveDynamicComponent as oa, provide as Za, shallowRef as us, resolveDirective as st, withDirectives as ql, vShow as pa, createTextVNode as ul, renderSlot as Nl, normalizeClass as Ol, createSlots as yt, mergeProps as En, withModifiers as xl, defineAsyncComponent as fn, reactive as Pl, nextTick as Wl, withKeys as ds } from "vue";
|
|
2
|
-
import { m as Lt, a as Qt, b as Nt, c as ps } from "./array-
|
|
2
|
+
import { m as Lt, a as Qt, b as Nt, c as ps } from "./array-CghFa-jO.js";
|
|
3
3
|
import { u as Vl, p as bl, s as gl, c as Al, a as $l, b as Fl, i as Ea, d as bt, l as fs, j as ga, e as Sa, E as ya, k as Tt, m as $a, v as et, n as Dn, o as vs, q as Pn, h as hs, r as Ct, t as ra, w as vn, x as gs, y as Rn, z as ys, A as bs, B as xn, C as hn, D as Cs, F as ms } from "./index-DqXvOyIs.js";
|
|
4
|
-
import { _ as ot, s as Kt, a as ws } from "./index-
|
|
4
|
+
import { _ as ot, s as Kt, a as ws } from "./index-CcggBkt3.js";
|
|
5
5
|
import { useRouter as Da } from "vue-router";
|
|
6
6
|
import { a as it, d as qt, e as rt, f as ct, g as ut, h as dt, t as ks, c as As, b as Is } from "./index-ChNfRlIP.js";
|
|
7
|
-
import { g as Ba, s as Ms, a as gn, _ as Bt, b as _s, u as Ss, c as Vn, X as Ts, Q as Bs } from "./index-
|
|
7
|
+
import { g as Ba, s as Ms, a as gn, _ as Bt, b as _s, u as Ss, c as Vn, X as Ts, Q as Bs } from "./index-BYTMN1HW.js";
|
|
8
8
|
import { u as Un, g as yn, b as bn, c as Es, a as Ds } from "./index-YvUJL9Us.js";
|
|
9
9
|
import { E as Ml, d as jn, b as ia, I as Ps, s as ea, e as On, a as Ln, c as Qn, g as Rs, h as xs, p as Nn, m as Vs, i as Us, j as js, f as Os } from "./request-B1c8BUkR.js";
|
|
10
10
|
import { b as Ls, g as Kn, c as Qs, u as Wt, d as na, e as tt, o as qn, l as Ns, n as Ks, f as qs, h as fa, s as gt, t as Ws, i as Hs } from "./index-DB1HWx1W.js";
|
|
11
11
|
import { d as Ys, g as lt, a as Fs } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
12
|
-
import { a as Wn, b as da, u as Hn, s as ta, c as Js, d as zs, r as Tl, n as Xs, o as ca, e as ua, f as Yn, h as Et, i as Fn, j as Ht, k as Gs, t as Zs, l as Ca, m as mt, p as ft, q as ma, v as za, w as wa, x as $s, y as ka, z as Aa, A as eo, B as Ia, C as Ma, D as Xa, E as Cn, F as lo, G as mn, H as vt, I as wt, J as ao, K as zl, L as to, M as no, N as kt, O as so, P as oo, Q as io, g as Jn, R as ro, S as wn, T as co, U as uo } from "./index-
|
|
12
|
+
import { a as Wn, b as da, u as Hn, s as ta, c as Js, d as zs, r as Tl, n as Xs, o as ca, e as ua, f as Yn, h as Et, i as Fn, j as Ht, k as Gs, t as Zs, l as Ca, m as mt, p as ft, q as ma, v as za, w as wa, x as $s, y as ka, z as Aa, A as eo, B as Ia, C as Ma, D as Xa, E as Cn, F as lo, G as mn, H as vt, I as wt, J as ao, K as zl, L as to, M as no, N as kt, O as so, P as oo, Q as io, g as Jn, R as ro, S as wn, T as co, U as uo } from "./index-RLLrToce.js";
|
|
13
13
|
import "./JSEncrypt-B36c1iN5.js";
|
|
14
14
|
import "./index-KxgyPOIl.js";
|
|
15
15
|
import "./index-XvX6TMzr.js";
|
|
@@ -17,11 +17,11 @@ import { c as Yt, f as jl, b as zn, a as po, g as fo, d as kn } from "./menuInde
|
|
|
17
17
|
import { _ as Ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
import { C as vo } from "./index-D-gH5ElV.js";
|
|
19
19
|
import { S as Sl } from "./index-BHtNKL1L.js";
|
|
20
|
-
import ho from "./threeModel-
|
|
20
|
+
import ho from "./threeModel-CfN6FNCN.js";
|
|
21
21
|
import { _ as sa } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
22
22
|
import { s as aa } from "./index-11kpzK0A.js";
|
|
23
|
-
import { T as Dt, u as go, a as yo } from "./threeViewerHost-
|
|
24
|
-
import { s as Pt } from "./index-
|
|
23
|
+
import { T as Dt, u as go, a as yo } from "./threeViewerHost-gXHoSu-S.js";
|
|
24
|
+
import { s as Pt } from "./index-DJnT8FpF.js";
|
|
25
25
|
import { u as bo } from "./index-CqUR7JfB.js";
|
|
26
26
|
import { u as Co } from "./index-CocPelja.js";
|
|
27
27
|
import { u as Xn } from "./index-DcNXwXrV.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import { S as m } from "./index-B3osj0rP.js";
|
|
3
|
-
import { W as _ } from "./index-
|
|
3
|
+
import { W as _ } from "./index-RLLrToce.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -4,16 +4,16 @@ import { S as Mt } from "./index-BHtNKL1L.js";
|
|
|
4
4
|
import "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
5
5
|
import { I as wt } from "./request-B1c8BUkR.js";
|
|
6
6
|
import { s as ut } from "./index-11kpzK0A.js";
|
|
7
|
-
import { c as At } from "./index-
|
|
7
|
+
import { c as At } from "./index-BYTMN1HW.js";
|
|
8
8
|
import { useRouter as Bt } from "vue-router";
|
|
9
9
|
import { a as Et, e as Ft, f as Lt, g as Ut, h as jt } from "./index-ChNfRlIP.js";
|
|
10
10
|
import { g as qe, u as Pt, b as We, c as Ot, a as Rt } from "./index-YvUJL9Us.js";
|
|
11
|
-
import { g as Kt } from "./index-
|
|
11
|
+
import { g as Kt } from "./index-RLLrToce.js";
|
|
12
12
|
import { f as $t } from "./menuIndex-VozC7XXB.js";
|
|
13
13
|
import { d as Ge, e as Ne, n as zt } from "./index-DB1HWx1W.js";
|
|
14
14
|
import { u as xt } from "./index-DcNXwXrV.js";
|
|
15
15
|
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const Ue = gt(() => import("./index-
|
|
16
|
+
const Ue = gt(() => import("./index-BYTMN1HW.js").then((i) => i.p));
|
|
17
17
|
Ue.install = (i) => {
|
|
18
18
|
i.component("ssMenu", Ue);
|
|
19
19
|
};
|
|
@@ -4,11 +4,11 @@ import { u as Se, o as _t, s as de, f as ce } from "./index-DcNXwXrV.js";
|
|
|
4
4
|
import { G as Le, H as ft, u as vt, p as gt } from "./index-DqXvOyIs.js";
|
|
5
5
|
import { s as _e } from "./index-11kpzK0A.js";
|
|
6
6
|
import "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-RLLrToce.js";
|
|
8
8
|
import "./index-BHtNKL1L.js";
|
|
9
9
|
import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
10
10
|
import "./index-DB1HWx1W.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-DJnT8FpF.js";
|
|
12
12
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { c as me } from "./clone-ez7vwxnP.js";
|
|
14
14
|
const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
|
|
@@ -5,7 +5,7 @@ import { g as Q, u as we } from "./index-YvUJL9Us.js";
|
|
|
5
5
|
import { J as X } from "./JSEncrypt-B36c1iN5.js";
|
|
6
6
|
import { a5 as Se } from "./index-DB1HWx1W.js";
|
|
7
7
|
import { A as _e } from "./index-D-gH5ElV.js";
|
|
8
|
-
import { u as Y, l as Ce } from "./index-
|
|
8
|
+
import { u as Y, l as Ce } from "./index-BYTMN1HW.js";
|
|
9
9
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { S as V } from "./index-BHtNKL1L.js";
|
|
11
11
|
function Ae(t, s) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
|
|
2
|
-
import { W as C } from "./index-
|
|
2
|
+
import { W as C } from "./index-RLLrToce.js";
|
|
3
3
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = () => {
|
|
5
5
|
const i = l("日志管理"), o = l(), a = l([
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x, s as w, a as L } from "./index-
|
|
2
|
+
import { S as I, t as x, s as w, a as L } from "./index-DJnT8FpF.js";
|
|
3
3
|
import "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import { e as E } from "./index-
|
|
5
|
+
import { e as E } from "./index-BYTMN1HW.js";
|
|
6
6
|
import "./index-DB1HWx1W.js";
|
|
7
7
|
import { b as N, s as U } from "./index-DqXvOyIs.js";
|
|
8
8
|
import "./request-B1c8BUkR.js";
|
|
@@ -4,16 +4,16 @@ var jo = (e, t, a) => fk(e, typeof t != "symbol" ? t + "" : t, a);
|
|
|
4
4
|
import { defineComponent as Pe, shallowRef as Wn, ref as L, computed as R, watch as at, onMounted as wl, watchEffect as kr, createElementBlock as te, openBlock as A, normalizeStyle as ha, normalizeClass as Q, unref as u, createElementVNode as Z, renderSlot as Ze, nextTick as Bt, useSlots as _o, toRef as vn, createBlock as Ke, Transition as Cr, withCtx as ie, withDirectives as Sl, createCommentVNode as He, resolveDynamicComponent as yl, createTextVNode as la, toDisplayString as st, Fragment as Wt, createVNode as oe, vShow as sn, inject as Aa, onBeforeUnmount as wn, withModifiers as Ca, provide as Ll, reactive as Vl, onActivated as B0, onUpdated as Ys, cloneVNode as pk, Comment as Ji, Text as vk, mergeProps as Cl, getCurrentInstance as Wl, Teleport as hk, onBeforeMount as pd, readonly as Y1, onDeactivated as mk, useAttrs as wi, createSlots as Xo, renderList as ka, normalizeProps as Zr, guardReactiveProps as Ps, h as Xa, triggerRef as pf, isVNode as Do, toRaw as qf, isRef as ys, vModelCheckbox as G1, toRefs as To, vModelRadio as X1, onBeforeUpdate as J1, withKeys as po, vModelText as Ip, toHandlers as gk, resolveComponent as ya, TransitionGroup as Z1, markRaw as Lc, effectScope as yk, resolveDirective as Op, toHandlerKey as bk, render as Yf, onUnmounted as Es, createApp as kk, getCurrentScope as wk, onScopeDispose as Sk } from "vue";
|
|
5
5
|
import { z as P0, S as Ck, aO as Q1, l as Ap, M as e3, aP as t3, X as F0, aQ as yo, Z as a3, n as l3, aR as n3, r as _k, t as Ek, W as o3, aS as Dv, aT as r3, aU as xk, aV as Tk, aW as $k, aX as bn, a3 as Ka, a5 as Xt, a7 as qe, ah as Zt, ai as Lt, aY as H0, aZ as Jg, aA as vo, aB as bo, ag as uo, ar as pl, a_ as Ik, aL as Zl, a$ as V0, aJ as Gf, $ as Gn, ao as Oa, aI as Ok, an as ro, ab as Jl, aq as kn, ap as No, b0 as Np, aK as bs, am as So, ac as bh, b1 as Mp, at as Gt, b2 as Gs, a2 as Ul, ax as _a, b3 as Eo, as as zn, ad as Ak, ae as kh, b4 as K0, a6 as ol, b5 as Dp, av as oc, a9 as An, aF as Si, b6 as s3, b7 as Nk, b8 as ql, aw as ao, b9 as fr, ba as Hu, au as W0, bb as Ks, d as nr, aa as Ro, bc as Ar, C as eo, bd as di, aN as Hr, be as rc, a as Ws, bf as vd, h as xs, bg as qc, bh as Mk, a8 as co, ay as Nr, bi as Dk, bj as Rk, bk as i3, bl as Lk, a0 as u3, g as Rp, aC as ms, bm as vi, bn as hi, bo as c3, bp as zk, bq as Yc, br as d3, bs as Zg, bt as Bk, bu as zc, bv as Pk, aM as Fk, bw as Hk, bx as f3, by as Vk, bz as Kk, a1 as p3, bA as Wk, m as jk, p as v3, bB as Uk, bC as qk, bD as Yk, aj as j0, aD as Bs, aE as Qr, bE as Gk, bF as Xk, bG as Jk, bH as wh, bI as Sh, bJ as h3, bK as Qg, af as Zk, bL as Qk, bM as ew, bN as m3, c as g3, bO as Ud, bP as tw, bQ as ey, bR as aw, bS as lw, bT as nw, a4 as y3, bU as ow, bV as rw, bW as sw, bX as iw, bY as uw, bZ as Ch, i as _h, b_ as b3, b$ as k3, e as cw, c0 as dw, c1 as w3, c2 as fw, c3 as pw, aG as vw, c4 as hw, E as cl, b as qo, c5 as S3, c6 as mw } from "./request-B1c8BUkR.js";
|
|
6
6
|
import { X as gw, K as yw, Y as U0, Z as bw, M as kw, _ as ww, $ as Sw, a0 as Rl, a1 as q0, a2 as hr, a3 as ty, a4 as mi, a5 as hd, a6 as Y0, a7 as C3, a8 as vr, a9 as xo, aa as al, ab as Lp, ac as gi, ad as Jo, ae as pr, af as Za, S as Xs, ag as _3, ah as Fo, ai as sc, aj as Zo, ak as Co, al as Ur, am as Fs, an as Cw, c as ct, ao as G0, ap as vf, aq as E3, ar as zp, as as Ci, at as Tc, au as X0, av as _w, aw as Ew, ax as xw, ay as Tw, az as x3, aA as T3, aB as $w, aC as Bp, aD as hf, aE as ay, aF as Vu, aG as Zi, aH as ai, aI as ly, aJ as Iw, aK as Ow, aL as Aw, aM as ny, aN as Nw, aO as oy, t as Mu, E as br, e as Jr, s as Xl, i as ns, p as Hl, b as Ts, u as os, j as Hs, a as $s, n as $3, aP as Xf, W as J0, U as qd, q as md, aQ as Lr, m as mf, h as ko, k as gf, aR as Mw, aS as Dw } from "./index-DqXvOyIs.js";
|
|
7
|
-
import { S as Rw, b as to, _ as ry, f as Lw, h as I3, i as Ku, j as Pp, a as gn, k as yf, l as zw, m as Bw, d as Z0, e as Pw, c as Fw, n as Hw, o as Vw } from "./index-
|
|
7
|
+
import { S as Rw, b as to, _ as ry, f as Lw, h as I3, i as Ku, j as Pp, a as gn, k as yf, l as zw, m as Bw, d as Z0, e as Pw, c as Fw, n as Hw, o as Vw } from "./index-BYTMN1HW.js";
|
|
8
8
|
import { h as Kt, B as ii, C as Bc, D as O3, g as Kn, E as Kw, m as ru, F as Jf, t as Qi, G as Ww, H as jw, f as Uw, I as sy, J as qw, e as ic, K as gd, r as Yw, k as Pc, L as Gw, d as Ao, c as uc, M as Xw, u as Q0, N as tr, O as Fp, P as A3, Q as Jw, R as N3, S as Zw, s as li, l as Qw, T as e7, w as t7, U as a7, V as l7, W as n7, X as M3, Y as Uo, Z as Du, _ as hs, $ as Bi, a0 as Rv, a1 as o7, o as r7, a2 as Lv, a3 as s7, a4 as i7 } from "./index-DB1HWx1W.js";
|
|
9
9
|
import { _ as mn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { I as zv, J as u7, K as c7, d as Vr, N as d7, O as f7, Q as D3, r as p7, R as v7, U as h7, C as m7, c as Bv, u as R3, Y as $c, Z as g7, _ as L3, $ as z3, s as Pv, a0 as y7, t as b7, h as Ni, B as k7, V as Fv, a1 as iy, k as gu, l as kc, a2 as w7, w as S7, a3 as C7, a4 as _7, a5 as B3, a6 as uy } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
11
11
|
import { s as Qn } from "./index-11kpzK0A.js";
|
|
12
|
-
import { a as P3, T as F3 } from "./threeViewerHost-
|
|
12
|
+
import { a as P3, T as F3 } from "./threeViewerHost-gXHoSu-S.js";
|
|
13
13
|
import { c as cy } from "./clone-ez7vwxnP.js";
|
|
14
14
|
import { u as E7, a as x7, g as Eh, b as T7 } from "./index-D-gH5ElV.js";
|
|
15
15
|
import { g as Ou, u as xh, c as H3, a as yd, e as em, b as Zf } from "./index-YvUJL9Us.js";
|
|
16
|
-
import { a as $7, s as I7 } from "./index-
|
|
16
|
+
import { a as $7, s as I7 } from "./index-DJnT8FpF.js";
|
|
17
17
|
import { u as V3 } from "./index-DcNXwXrV.js";
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { i as Qf } from "./isString-BlNsHiyU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { u as h, p as k, s as x, c as m } from "./index-DqXvOyIs.js";
|
|
3
|
-
import { W as M } from "./index-
|
|
3
|
+
import { W as M } from "./index-RLLrToce.js";
|
|
4
4
|
import { a as D, d as T, f as S } from "./index-XvX6TMzr.js";
|
|
5
5
|
import { g as w } from "./index-YvUJL9Us.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { W as m } from "./index-
|
|
2
|
+
import { W as m } from "./index-RLLrToce.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-B3osj0rP.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as U, watch as v, createElementBlock as E, createCommentVNode as q, openBlock as I, Fragment as de, renderList as fe, createElementVNode as S, createBlock as se, toDisplayString as oe, resolveDynamicComponent as ye, onMounted as he, onUnmounted as ke, createVNode as te } from "vue";
|
|
2
|
-
import { m as ge, a as _e, b as Ce, c as be } from "./array-
|
|
2
|
+
import { m as ge, a as _e, b as Ce, c as be } from "./array-CghFa-jO.js";
|
|
3
3
|
import { c, a as ce, p as re, s as ue, u as Oe } from "./index-DqXvOyIs.js";
|
|
4
|
-
import { g as Ae } from "./index-
|
|
4
|
+
import { g as Ae } from "./index-RLLrToce.js";
|
|
5
5
|
import { v as H, a as K } from "./index-DB1HWx1W.js";
|
|
6
6
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const B = [
|
package/dist/ss-component.js
CHANGED
|
@@ -7,15 +7,15 @@ import "./request-B1c8BUkR.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import u from "./ss-component2.js";
|
|
9
9
|
import { t as g, c as T, b as P } from "./index-ChNfRlIP.js";
|
|
10
|
-
const n = o(() => import("./main-
|
|
10
|
+
const n = o(() => import("./main-CqBiDFYA.js"));
|
|
11
11
|
n.install = (t) => {
|
|
12
12
|
t.component("ssComponent", n);
|
|
13
13
|
};
|
|
14
|
-
const s = o(() => import("./index-
|
|
14
|
+
const s = o(() => import("./index-BYTMN1HW.js").then((t) => t.q));
|
|
15
15
|
s.install = (t) => {
|
|
16
16
|
t.component("ssTab", s);
|
|
17
17
|
};
|
|
18
|
-
const r = o(() => import("./index-
|
|
18
|
+
const r = o(() => import("./index-CcggBkt3.js").then((t) => t.i));
|
|
19
19
|
r.install = (t) => {
|
|
20
20
|
t.component("ssMenu", r);
|
|
21
21
|
};
|
|
@@ -35,11 +35,11 @@ const a = o(() => import("./index-D-gH5ElV.js").then((t) => t.i));
|
|
|
35
35
|
a.install = (t) => {
|
|
36
36
|
t.component("ssAvatar", a);
|
|
37
37
|
};
|
|
38
|
-
const l = o(() => import("./threeModel-
|
|
38
|
+
const l = o(() => import("./threeModel-CfN6FNCN.js"));
|
|
39
39
|
l.install = (t) => {
|
|
40
40
|
t.component("ssThree", l);
|
|
41
41
|
};
|
|
42
|
-
const p = o(() => import("./threeViewerHost-
|
|
42
|
+
const p = o(() => import("./threeViewerHost-gXHoSu-S.js").then((t) => t.t));
|
|
43
43
|
p.install = (t) => {
|
|
44
44
|
t.component("threeViewerHost", p);
|
|
45
45
|
};
|
package/dist/ss-component2.js
CHANGED
|
@@ -13,7 +13,7 @@ const a = [
|
|
|
13
13
|
{
|
|
14
14
|
path: "/",
|
|
15
15
|
name: "Model",
|
|
16
|
-
component: async () => import("./index-
|
|
16
|
+
component: async () => import("./index-Bk0wE2jo.js"),
|
|
17
17
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
18
18
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
19
19
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -31,17 +31,17 @@ const a = [
|
|
|
31
31
|
{
|
|
32
32
|
path: "平台管理/菜单管理",
|
|
33
33
|
name: "Menu",
|
|
34
|
-
component: async () => import("./index-
|
|
34
|
+
component: async () => import("./index-4n_acDMK.js")
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
path: "平台管理/主菜单管理",
|
|
38
38
|
name: "MainMenu",
|
|
39
|
-
component: async () => import("./index-
|
|
39
|
+
component: async () => import("./index-ZC0aq3F3.js")
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
path: "系统管理/个人中心",
|
|
43
43
|
name: "PersonalCenter",
|
|
44
|
-
component: async () => import("./index-
|
|
44
|
+
component: async () => import("./index-PwoUdVUY.js")
|
|
45
45
|
},
|
|
46
46
|
// {
|
|
47
47
|
// path: '系统管理/职位管理',
|
|
@@ -66,17 +66,17 @@ const a = [
|
|
|
66
66
|
{
|
|
67
67
|
path: "系统维护/登录日志",
|
|
68
68
|
name: "LoginLog",
|
|
69
|
-
component: async () => import("./index-
|
|
69
|
+
component: async () => import("./index-Bq9bE7ga.js")
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
path: "系统维护/操作日志",
|
|
73
73
|
name: "OperateLog",
|
|
74
|
-
component: async () => import("./index-
|
|
74
|
+
component: async () => import("./index-kbQZzQVR.js")
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
path: "角色管理",
|
|
78
78
|
name: "Role",
|
|
79
|
-
component: async () => import("./index-
|
|
79
|
+
component: async () => import("./index-D47IrFAU.js")
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
path: "部门管理",
|
|
@@ -96,7 +96,7 @@ const a = [
|
|
|
96
96
|
{
|
|
97
97
|
path: "log",
|
|
98
98
|
name: "log",
|
|
99
|
-
component: async () => import("./index-
|
|
99
|
+
component: async () => import("./index-GTgJbDlP.js")
|
|
100
100
|
}
|
|
101
101
|
// {
|
|
102
102
|
// path: 'priority',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, watch as Pe, createElementBlock as q, openBlock as H, createBlock as Le, computed as ie, onMounted as $e, onUnmounted as je, Fragment as Xe, renderList as He, createElementVNode as h, createCommentVNode as xe, toDisplayString as ae, resolveComponent as Je, createVNode as z, defineComponent as Ye, normalizeStyle as Ee, normalizeClass as Fe, nextTick as Be, onBeforeUnmount as qe, withDirectives as se, unref as O, withCtx as Te, isRef as he, vModelRadio as ye, vShow as we } from "vue";
|
|
2
2
|
import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, b as Qe, A as et, c as tt, M as Re, X as nt, G as at, e as Me, f as ot, h as De, i as st, D as ke, H as lt, j as Ve, k as Oe, l as Ue, m as ze, E as _e, n as de, o as it, p as rt, T as ct } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
3
3
|
import { O as ut } from "./OrbitControls-BuhJ_cNV.js";
|
|
4
|
-
import { W as dt, X as pt } from "./index-
|
|
4
|
+
import { W as dt, X as pt } from "./index-RLLrToce.js";
|
|
5
5
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { c as Ge } from "./index-DqXvOyIs.js";
|
|
7
7
|
import { E as Ie } from "./request-B1c8BUkR.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { ak as tt, al as ce, am as Ie, R as Ce, an as
|
|
1
|
+
import { ref as V, shallowRef as ze, defineComponent as Xe, watch as ee, onMounted as We, nextTick as qe, onBeforeUnmount as Ye, resolveComponent as $e, createElementBlock as me, openBlock as te, createElementVNode as I, withDirectives as Je, createCommentVNode as ge, createVNode as H, unref as U, renderSlot as Te, toDisplayString as Re, withCtx as Qe, createBlock as Ze, vShow as et } from "vue";
|
|
2
|
+
import { ak as tt, al as ce, am as Ie, R as Ce, an as q, U as Q, ao as k, ap as Ne, C as F, aq as N, c as v, ar as nt, j as st, D as rt, n as Z, V as K, as as ot, at as ke, au as it, av as Oe, aw as at, ax as ct, a1 as Y, ay as lt, az as Pe, aA as ut, aB as dt, aC as ft, aD as le, aE as De, aF as ue, aG as ht, aH as pt, _ as mt, aI as ne, a2 as gt, t as ve, l as Tt, aJ as W, aK as Rt, u as Fe, aL as _t, h as He, aM as xt, w as At, aN as yt, $ as Lt, s as se, P as Et, o as wt, aO as bt, aP as Mt, aQ as St, aR as It, aS as Ct, aT as Ue, aU as Nt, aV as _e, aW as xe, aX as Ae, aY as ye, aZ as de, a4 as kt, a_ as Ot, B as Ge, a$ as Pt, k as Dt } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
3
3
|
import "./index-DqXvOyIs.js";
|
|
4
4
|
import { u as vt, a as Ft, b as Ht, C as Ut } from "./iconfont-CdO3WbzY.js";
|
|
5
5
|
import { M as Gt, O as jt, S as Bt } from "./MTLLoader-Cej1eu5u.js";
|
|
6
|
-
import { T as
|
|
6
|
+
import { T as B } from "./svgIcon-4u4PW7Is.js";
|
|
7
7
|
import { E as Le } from "./request-B1c8BUkR.js";
|
|
8
8
|
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
function Ee(f, e) {
|
|
@@ -91,10 +91,10 @@ class Vt extends Ce {
|
|
|
91
91
|
if (this.resourcePath !== "")
|
|
92
92
|
s = this.resourcePath;
|
|
93
93
|
else if (this.path !== "") {
|
|
94
|
-
const c =
|
|
95
|
-
s =
|
|
94
|
+
const c = q.extractUrlBase(e);
|
|
95
|
+
s = q.resolveURL(c, this.path);
|
|
96
96
|
} else
|
|
97
|
-
s =
|
|
97
|
+
s = q.extractUrlBase(e);
|
|
98
98
|
this.manager.itemStart(e);
|
|
99
99
|
const a = function(c) {
|
|
100
100
|
n ? n(c) : console.error(c), r.manager.itemError(e), r.manager.itemEnd(e);
|
|
@@ -297,8 +297,8 @@ class Xt {
|
|
|
297
297
|
if (n) return n;
|
|
298
298
|
const r = t.json, i = ((r.extensions && r.extensions[this.name] || {}).lights || [])[e];
|
|
299
299
|
let c;
|
|
300
|
-
const u = new
|
|
301
|
-
i.color !== void 0 && u.setRGB(i.color[0], i.color[1], i.color[2],
|
|
300
|
+
const u = new F(16777215);
|
|
301
|
+
i.color !== void 0 && u.setRGB(i.color[0], i.color[1], i.color[2], N);
|
|
302
302
|
const l = i.range !== void 0 ? i.range : 0;
|
|
303
303
|
switch (i.type) {
|
|
304
304
|
case "directional":
|
|
@@ -313,7 +313,7 @@ class Xt {
|
|
|
313
313
|
default:
|
|
314
314
|
throw new Error("THREE.GLTFLoader: Unexpected light type: " + i.type);
|
|
315
315
|
}
|
|
316
|
-
return c.position.set(0, 0, 0),
|
|
316
|
+
return c.position.set(0, 0, 0), P(c, i), i.intensity !== void 0 && (c.intensity = i.intensity), c.name = t.createUniqueName(i.name || "light_" + e), n = Promise.resolve(c), t.cache.add(o, n), n;
|
|
317
317
|
}
|
|
318
318
|
getDependency(e, t) {
|
|
319
319
|
if (e === "light")
|
|
@@ -331,18 +331,18 @@ class Wt {
|
|
|
331
331
|
this.name = x.KHR_MATERIALS_UNLIT;
|
|
332
332
|
}
|
|
333
333
|
getMaterialType() {
|
|
334
|
-
return
|
|
334
|
+
return W;
|
|
335
335
|
}
|
|
336
336
|
extendParams(e, t, o) {
|
|
337
337
|
const n = [];
|
|
338
|
-
e.color = new
|
|
338
|
+
e.color = new F(1, 1, 1), e.opacity = 1;
|
|
339
339
|
const r = t.pbrMetallicRoughness;
|
|
340
340
|
if (r) {
|
|
341
341
|
if (Array.isArray(r.baseColorFactor)) {
|
|
342
342
|
const s = r.baseColorFactor;
|
|
343
|
-
e.color.setRGB(s[0], s[1], s[2],
|
|
343
|
+
e.color.setRGB(s[0], s[1], s[2], N), e.opacity = s[3];
|
|
344
344
|
}
|
|
345
|
-
r.baseColorTexture !== void 0 && n.push(o.assignTexture(e, "map", r.baseColorTexture,
|
|
345
|
+
r.baseColorTexture !== void 0 && n.push(o.assignTexture(e, "map", r.baseColorTexture, v));
|
|
346
346
|
}
|
|
347
347
|
return Promise.all(n);
|
|
348
348
|
}
|
|
@@ -365,7 +365,7 @@ class Yt {
|
|
|
365
365
|
}
|
|
366
366
|
getMaterialType(e) {
|
|
367
367
|
const o = this.parser.json.materials[e];
|
|
368
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
368
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
369
369
|
}
|
|
370
370
|
extendMaterialParams(e, t) {
|
|
371
371
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -385,7 +385,7 @@ class $t {
|
|
|
385
385
|
}
|
|
386
386
|
getMaterialType(e) {
|
|
387
387
|
const o = this.parser.json.materials[e];
|
|
388
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
388
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
389
389
|
}
|
|
390
390
|
extendMaterialParams(e, t) {
|
|
391
391
|
const n = this.parser.json.materials[e];
|
|
@@ -401,7 +401,7 @@ class Jt {
|
|
|
401
401
|
}
|
|
402
402
|
getMaterialType(e) {
|
|
403
403
|
const o = this.parser.json.materials[e];
|
|
404
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
404
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
405
405
|
}
|
|
406
406
|
extendMaterialParams(e, t) {
|
|
407
407
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -417,20 +417,20 @@ class Qt {
|
|
|
417
417
|
}
|
|
418
418
|
getMaterialType(e) {
|
|
419
419
|
const o = this.parser.json.materials[e];
|
|
420
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
420
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
421
421
|
}
|
|
422
422
|
extendMaterialParams(e, t) {
|
|
423
423
|
const o = this.parser, n = o.json.materials[e];
|
|
424
424
|
if (!n.extensions || !n.extensions[this.name])
|
|
425
425
|
return Promise.resolve();
|
|
426
426
|
const r = [];
|
|
427
|
-
t.sheenColor = new
|
|
427
|
+
t.sheenColor = new F(0, 0, 0), t.sheenRoughness = 0, t.sheen = 1;
|
|
428
428
|
const s = n.extensions[this.name];
|
|
429
429
|
if (s.sheenColorFactor !== void 0) {
|
|
430
430
|
const a = s.sheenColorFactor;
|
|
431
|
-
t.sheenColor.setRGB(a[0], a[1], a[2],
|
|
431
|
+
t.sheenColor.setRGB(a[0], a[1], a[2], N);
|
|
432
432
|
}
|
|
433
|
-
return s.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = s.sheenRoughnessFactor), s.sheenColorTexture !== void 0 && r.push(o.assignTexture(t, "sheenColorMap", s.sheenColorTexture,
|
|
433
|
+
return s.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = s.sheenRoughnessFactor), s.sheenColorTexture !== void 0 && r.push(o.assignTexture(t, "sheenColorMap", s.sheenColorTexture, v)), s.sheenRoughnessTexture !== void 0 && r.push(o.assignTexture(t, "sheenRoughnessMap", s.sheenRoughnessTexture)), Promise.all(r);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
class Zt {
|
|
@@ -439,7 +439,7 @@ class Zt {
|
|
|
439
439
|
}
|
|
440
440
|
getMaterialType(e) {
|
|
441
441
|
const o = this.parser.json.materials[e];
|
|
442
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
442
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
443
443
|
}
|
|
444
444
|
extendMaterialParams(e, t) {
|
|
445
445
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -455,7 +455,7 @@ class en {
|
|
|
455
455
|
}
|
|
456
456
|
getMaterialType(e) {
|
|
457
457
|
const o = this.parser.json.materials[e];
|
|
458
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
458
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
459
459
|
}
|
|
460
460
|
extendMaterialParams(e, t) {
|
|
461
461
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -464,7 +464,7 @@ class en {
|
|
|
464
464
|
const r = [], s = n.extensions[this.name];
|
|
465
465
|
t.thickness = s.thicknessFactor !== void 0 ? s.thicknessFactor : 0, s.thicknessTexture !== void 0 && r.push(o.assignTexture(t, "thicknessMap", s.thicknessTexture)), t.attenuationDistance = s.attenuationDistance || 1 / 0;
|
|
466
466
|
const a = s.attenuationColor || [1, 1, 1];
|
|
467
|
-
return t.attenuationColor = new
|
|
467
|
+
return t.attenuationColor = new F().setRGB(a[0], a[1], a[2], N), Promise.all(r);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
class tn {
|
|
@@ -473,7 +473,7 @@ class tn {
|
|
|
473
473
|
}
|
|
474
474
|
getMaterialType(e) {
|
|
475
475
|
const o = this.parser.json.materials[e];
|
|
476
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
476
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
477
477
|
}
|
|
478
478
|
extendMaterialParams(e, t) {
|
|
479
479
|
const n = this.parser.json.materials[e];
|
|
@@ -489,7 +489,7 @@ class nn {
|
|
|
489
489
|
}
|
|
490
490
|
getMaterialType(e) {
|
|
491
491
|
const o = this.parser.json.materials[e];
|
|
492
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
492
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
493
493
|
}
|
|
494
494
|
extendMaterialParams(e, t) {
|
|
495
495
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -498,7 +498,7 @@ class nn {
|
|
|
498
498
|
const r = [], s = n.extensions[this.name];
|
|
499
499
|
t.specularIntensity = s.specularFactor !== void 0 ? s.specularFactor : 1, s.specularTexture !== void 0 && r.push(o.assignTexture(t, "specularIntensityMap", s.specularTexture));
|
|
500
500
|
const a = s.specularColorFactor || [1, 1, 1];
|
|
501
|
-
return t.specularColor = new
|
|
501
|
+
return t.specularColor = new F().setRGB(a[0], a[1], a[2], N), s.specularColorTexture !== void 0 && r.push(o.assignTexture(t, "specularColorMap", s.specularColorTexture, v)), Promise.all(r);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
class sn {
|
|
@@ -507,7 +507,7 @@ class sn {
|
|
|
507
507
|
}
|
|
508
508
|
getMaterialType(e) {
|
|
509
509
|
const o = this.parser.json.materials[e];
|
|
510
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
510
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
511
511
|
}
|
|
512
512
|
extendMaterialParams(e, t) {
|
|
513
513
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -523,7 +523,7 @@ class rn {
|
|
|
523
523
|
}
|
|
524
524
|
getMaterialType(e) {
|
|
525
525
|
const o = this.parser.json.materials[e];
|
|
526
|
-
return !o.extensions || !o.extensions[this.name] ? null :
|
|
526
|
+
return !o.extensions || !o.extensions[this.name] ? null : k;
|
|
527
527
|
}
|
|
528
528
|
extendMaterialParams(e, t) {
|
|
529
529
|
const o = this.parser, n = o.json.materials[e];
|
|
@@ -628,7 +628,7 @@ class un {
|
|
|
628
628
|
return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(e)), Promise.all(a).then((c) => {
|
|
629
629
|
const u = c.pop(), l = u.isGroup ? u.children : [u], d = c[0].count, h = [];
|
|
630
630
|
for (const m of l) {
|
|
631
|
-
const g = new Z(), p = new
|
|
631
|
+
const g = new Z(), p = new K(), T = new ke(), R = new K(1, 1, 1), A = new ot(m.geometry, m.material, d);
|
|
632
632
|
for (let _ = 0; _ < d; _++)
|
|
633
633
|
i.TRANSLATION && p.fromBufferAttribute(i.TRANSLATION, _), i.ROTATION && T.fromBufferAttribute(i.ROTATION, _), i.SCALE && R.fromBufferAttribute(i.SCALE, _), A.setMatrixAt(_, g.compose(p, T, R));
|
|
634
634
|
for (const _ in i)
|
|
@@ -642,11 +642,11 @@ class un {
|
|
|
642
642
|
}));
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
const je = "glTF",
|
|
645
|
+
const je = "glTF", X = 12, we = { JSON: 1313821514, BIN: 5130562 };
|
|
646
646
|
class dn {
|
|
647
647
|
constructor(e) {
|
|
648
648
|
this.name = x.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
649
|
-
const t = new DataView(e, 0,
|
|
649
|
+
const t = new DataView(e, 0, X), o = new TextDecoder();
|
|
650
650
|
if (this.header = {
|
|
651
651
|
magic: o.decode(new Uint8Array(e.slice(0, 4))),
|
|
652
652
|
version: t.getUint32(4, !0),
|
|
@@ -655,17 +655,17 @@ class dn {
|
|
|
655
655
|
throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
656
656
|
if (this.header.version < 2)
|
|
657
657
|
throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
658
|
-
const n = this.header.length -
|
|
658
|
+
const n = this.header.length - X, r = new DataView(e, X);
|
|
659
659
|
let s = 0;
|
|
660
660
|
for (; s < n; ) {
|
|
661
661
|
const a = r.getUint32(s, !0);
|
|
662
662
|
s += 4;
|
|
663
663
|
const i = r.getUint32(s, !0);
|
|
664
664
|
if (s += 4, i === we.JSON) {
|
|
665
|
-
const c = new Uint8Array(e,
|
|
665
|
+
const c = new Uint8Array(e, X + s, a);
|
|
666
666
|
this.content = o.decode(c);
|
|
667
667
|
} else if (i === we.BIN) {
|
|
668
|
-
const c =
|
|
668
|
+
const c = X + s;
|
|
669
669
|
this.body = e.slice(c, c + a);
|
|
670
670
|
}
|
|
671
671
|
s += a;
|
|
@@ -689,7 +689,7 @@ class fn {
|
|
|
689
689
|
for (const u in e.attributes) {
|
|
690
690
|
const l = fe[u] || u.toLowerCase();
|
|
691
691
|
if (s[u] !== void 0) {
|
|
692
|
-
const d = o.accessors[e.attributes[u]], h =
|
|
692
|
+
const d = o.accessors[e.attributes[u]], h = z[d.componentType];
|
|
693
693
|
c[l] = h.name, i[l] = d.normalized === !0;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
@@ -701,7 +701,7 @@ class fn {
|
|
|
701
701
|
p !== void 0 && (g.normalized = p);
|
|
702
702
|
}
|
|
703
703
|
l(h);
|
|
704
|
-
}, a, c,
|
|
704
|
+
}, a, c, N, d);
|
|
705
705
|
});
|
|
706
706
|
});
|
|
707
707
|
}
|
|
@@ -732,8 +732,8 @@ class Be extends Ot {
|
|
|
732
732
|
interpolate_(e, t, o, n) {
|
|
733
733
|
const r = this.resultBuffer, s = this.sampleValues, a = this.valueSize, i = a * 2, c = a * 3, u = n - t, l = (o - t) / u, d = l * l, h = d * l, m = e * c, g = m - c, p = -2 * h + 3 * d, T = h - d, R = 1 - p, A = T - d + l;
|
|
734
734
|
for (let _ = 0; _ !== a; _++) {
|
|
735
|
-
const L = s[g + _ + a], w = s[g + _ + i] * u, E = s[m + _ + a],
|
|
736
|
-
r[_] = R * L + A * w + p * E + T *
|
|
735
|
+
const L = s[g + _ + a], w = s[g + _ + i] * u, E = s[m + _ + a], O = s[m + _] * u;
|
|
736
|
+
r[_] = R * L + A * w + p * E + T * O;
|
|
737
737
|
}
|
|
738
738
|
return r;
|
|
739
739
|
}
|
|
@@ -753,7 +753,7 @@ const b = {
|
|
|
753
753
|
TRIANGLES: 4,
|
|
754
754
|
TRIANGLE_STRIP: 5,
|
|
755
755
|
TRIANGLE_FAN: 6
|
|
756
|
-
},
|
|
756
|
+
}, z = {
|
|
757
757
|
5120: Int8Array,
|
|
758
758
|
5121: Uint8Array,
|
|
759
759
|
5122: Int16Array,
|
|
@@ -790,7 +790,7 @@ const b = {
|
|
|
790
790
|
COLOR_0: "color",
|
|
791
791
|
WEIGHTS_0: "skinWeight",
|
|
792
792
|
JOINTS_0: "skinIndex"
|
|
793
|
-
},
|
|
793
|
+
}, D = {
|
|
794
794
|
scale: "scale",
|
|
795
795
|
translation: "position",
|
|
796
796
|
rotation: "quaternion",
|
|
@@ -821,7 +821,7 @@ function G(f, e, t) {
|
|
|
821
821
|
for (const o in t.extensions)
|
|
822
822
|
f[o] === void 0 && (e.userData.gltfExtensions = e.userData.gltfExtensions || {}, e.userData.gltfExtensions[o] = t.extensions[o]);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function P(f, e) {
|
|
825
825
|
e.extras !== void 0 && (typeof e.extras == "object" ? Object.assign(f.userData, e.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + e.extras));
|
|
826
826
|
}
|
|
827
827
|
function _n(f, e, t) {
|
|
@@ -943,7 +943,7 @@ class En {
|
|
|
943
943
|
parser: o,
|
|
944
944
|
userData: {}
|
|
945
945
|
};
|
|
946
|
-
return G(r, a, n),
|
|
946
|
+
return G(r, a, n), P(a, n), Promise.all(o._invokeAll(function(i) {
|
|
947
947
|
return i.afterRoot && i.afterRoot(a);
|
|
948
948
|
})).then(function() {
|
|
949
949
|
for (const i of a.scenes)
|
|
@@ -1124,7 +1124,7 @@ class En {
|
|
|
1124
1124
|
return Promise.resolve(this.extensions[x.KHR_BINARY_GLTF].body);
|
|
1125
1125
|
const n = this.options;
|
|
1126
1126
|
return new Promise(function(r, s) {
|
|
1127
|
-
o.load(
|
|
1127
|
+
o.load(q.resolveURL(t.uri, n.path), r, void 0, function() {
|
|
1128
1128
|
s(new Error('THREE.GLTFLoader: Failed to load buffer "' + t.uri + '".'));
|
|
1129
1129
|
});
|
|
1130
1130
|
});
|
|
@@ -1153,23 +1153,23 @@ class En {
|
|
|
1153
1153
|
loadAccessor(e) {
|
|
1154
1154
|
const t = this, o = this.json, n = this.json.accessors[e];
|
|
1155
1155
|
if (n.bufferView === void 0 && n.sparse === void 0) {
|
|
1156
|
-
const s = re[n.type], a =
|
|
1157
|
-
return Promise.resolve(new
|
|
1156
|
+
const s = re[n.type], a = z[n.componentType], i = n.normalized === !0, c = new a(n.count * s);
|
|
1157
|
+
return Promise.resolve(new Y(c, s, i));
|
|
1158
1158
|
}
|
|
1159
1159
|
const r = [];
|
|
1160
1160
|
return n.bufferView !== void 0 ? r.push(this.getDependency("bufferView", n.bufferView)) : r.push(null), n.sparse !== void 0 && (r.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(r).then(function(s) {
|
|
1161
|
-
const a = s[0], i = re[n.type], c =
|
|
1161
|
+
const a = s[0], i = re[n.type], c = z[n.componentType], u = c.BYTES_PER_ELEMENT, l = u * i, d = n.byteOffset || 0, h = n.bufferView !== void 0 ? o.bufferViews[n.bufferView].byteStride : void 0, m = n.normalized === !0;
|
|
1162
1162
|
let g, p;
|
|
1163
1163
|
if (h && h !== l) {
|
|
1164
1164
|
const T = Math.floor(d / h), R = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + T + ":" + n.count;
|
|
1165
1165
|
let A = t.cache.get(R);
|
|
1166
1166
|
A || (g = new c(a, T * h, n.count * h / u), A = new lt(g, h / u), t.cache.add(R, A)), p = new Nt(A, i, d % h / u, m);
|
|
1167
1167
|
} else
|
|
1168
|
-
a === null ? g = new c(n.count * i) : g = new c(a, d, n.count * i), p = new
|
|
1168
|
+
a === null ? g = new c(n.count * i) : g = new c(a, d, n.count * i), p = new Y(g, i, m);
|
|
1169
1169
|
if (n.sparse !== void 0) {
|
|
1170
|
-
const T = re.SCALAR, R =
|
|
1171
|
-
a !== null && (p = new
|
|
1172
|
-
for (let E = 0,
|
|
1170
|
+
const T = re.SCALAR, R = z[n.sparse.indices.componentType], A = n.sparse.indices.byteOffset || 0, _ = n.sparse.values.byteOffset || 0, L = new R(s[1], A, n.sparse.count * T), w = new c(s[2], _, n.sparse.count * i);
|
|
1171
|
+
a !== null && (p = new Y(p.array.slice(), p.itemSize, p.normalized)), p.normalized = !1;
|
|
1172
|
+
for (let E = 0, O = L.length; E < O; E++) {
|
|
1173
1173
|
const M = L[E];
|
|
1174
1174
|
if (p.setX(M, w[E * i]), i >= 2 && p.setY(M, w[E * i + 1]), i >= 3 && p.setZ(M, w[E * i + 2]), i >= 4 && p.setW(M, w[E * i + 3]), i >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
1175
1175
|
}
|
|
@@ -1227,10 +1227,10 @@ class En {
|
|
|
1227
1227
|
t.isImageBitmapLoader === !0 && (m = function(g) {
|
|
1228
1228
|
const p = new _e(g);
|
|
1229
1229
|
p.needsUpdate = !0, d(p);
|
|
1230
|
-
}), t.load(
|
|
1230
|
+
}), t.load(q.resolveURL(l, r.path), m, void 0, h);
|
|
1231
1231
|
});
|
|
1232
1232
|
}).then(function(l) {
|
|
1233
|
-
return c === !0 && a.revokeObjectURL(i),
|
|
1233
|
+
return c === !0 && a.revokeObjectURL(i), P(l, s), l.userData.mimeType = s.mimeType || yn(s.uri), l;
|
|
1234
1234
|
}).catch(function(l) {
|
|
1235
1235
|
throw console.error("THREE.GLTFLoader: Couldn't load texture", i), l;
|
|
1236
1236
|
});
|
|
@@ -1310,11 +1310,11 @@ class En {
|
|
|
1310
1310
|
s = l.getMaterialType(), c.push(l.extendParams(a, r, t));
|
|
1311
1311
|
} else {
|
|
1312
1312
|
const l = r.pbrMetallicRoughness || {};
|
|
1313
|
-
if (a.color = new
|
|
1313
|
+
if (a.color = new F(1, 1, 1), a.opacity = 1, Array.isArray(l.baseColorFactor)) {
|
|
1314
1314
|
const d = l.baseColorFactor;
|
|
1315
|
-
a.color.setRGB(d[0], d[1], d[2],
|
|
1315
|
+
a.color.setRGB(d[0], d[1], d[2], N), a.opacity = d[3];
|
|
1316
1316
|
}
|
|
1317
|
-
l.baseColorTexture !== void 0 && c.push(t.assignTexture(a, "map", l.baseColorTexture,
|
|
1317
|
+
l.baseColorTexture !== void 0 && c.push(t.assignTexture(a, "map", l.baseColorTexture, v)), a.metalness = l.metallicFactor !== void 0 ? l.metallicFactor : 1, a.roughness = l.roughnessFactor !== void 0 ? l.roughnessFactor : 1, l.metallicRoughnessTexture !== void 0 && (c.push(t.assignTexture(a, "metalnessMap", l.metallicRoughnessTexture)), c.push(t.assignTexture(a, "roughnessMap", l.metallicRoughnessTexture))), s = this._invokeOne(function(d) {
|
|
1318
1318
|
return d.getMaterialType && d.getMaterialType(e);
|
|
1319
1319
|
}), c.push(Promise.all(this._invokeAll(function(d) {
|
|
1320
1320
|
return d.extendMaterialParams && d.extendMaterialParams(e, a);
|
|
@@ -1322,17 +1322,17 @@ class En {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
r.doubleSided === !0 && (a.side = Tt);
|
|
1324
1324
|
const u = r.alphaMode || oe.OPAQUE;
|
|
1325
|
-
if (u === oe.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === oe.MASK && (a.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !==
|
|
1325
|
+
if (u === oe.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, u === oe.MASK && (a.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== W && (c.push(t.assignTexture(a, "normalMap", r.normalTexture)), a.normalScale = new Ne(1, 1), r.normalTexture.scale !== void 0)) {
|
|
1326
1326
|
const l = r.normalTexture.scale;
|
|
1327
1327
|
a.normalScale.set(l, l);
|
|
1328
1328
|
}
|
|
1329
|
-
if (r.occlusionTexture !== void 0 && s !==
|
|
1329
|
+
if (r.occlusionTexture !== void 0 && s !== W && (c.push(t.assignTexture(a, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (a.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && s !== W) {
|
|
1330
1330
|
const l = r.emissiveFactor;
|
|
1331
|
-
a.emissive = new
|
|
1331
|
+
a.emissive = new F().setRGB(l[0], l[1], l[2], N);
|
|
1332
1332
|
}
|
|
1333
|
-
return r.emissiveTexture !== void 0 && s !==
|
|
1333
|
+
return r.emissiveTexture !== void 0 && s !== W && c.push(t.assignTexture(a, "emissiveMap", r.emissiveTexture, v)), Promise.all(c).then(function() {
|
|
1334
1334
|
const l = new s(a);
|
|
1335
|
-
return r.name && (l.name = r.name),
|
|
1335
|
+
return r.name && (l.name = r.name), P(l, r), t.associations.set(l, { materials: e }), r.extensions && G(n, l, r), l;
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
/**
|
|
@@ -1405,7 +1405,7 @@ class En {
|
|
|
1405
1405
|
T = new Lt(g, R);
|
|
1406
1406
|
else
|
|
1407
1407
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + p.mode);
|
|
1408
|
-
Object.keys(T.geometry.morphAttributes).length > 0 && xn(T, r), T.name = t.createUniqueName(r.name || "mesh_" + e),
|
|
1408
|
+
Object.keys(T.geometry.morphAttributes).length > 0 && xn(T, r), T.name = t.createUniqueName(r.name || "mesh_" + e), P(T, r), p.extensions && G(n, T, p), t.assignFinalMaterial(T), l.push(T);
|
|
1409
1409
|
}
|
|
1410
1410
|
for (let h = 0, m = l.length; h < m; h++)
|
|
1411
1411
|
t.associations.set(l[h], {
|
|
@@ -1435,7 +1435,7 @@ class En {
|
|
|
1435
1435
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
1438
|
-
return o.type === "perspective" ? t = new Et(wt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : o.type === "orthographic" && (t = new bt(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), o.name && (t.name = this.createUniqueName(o.name)),
|
|
1438
|
+
return o.type === "perspective" ? t = new Et(wt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : o.type === "orthographic" && (t = new bt(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), o.name && (t.name = this.createUniqueName(o.name)), P(t, o), Promise.resolve(t);
|
|
1439
1439
|
}
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -1484,13 +1484,13 @@ class En {
|
|
|
1484
1484
|
]).then(function(l) {
|
|
1485
1485
|
const d = l[0], h = l[1], m = l[2], g = l[3], p = l[4], T = [];
|
|
1486
1486
|
for (let R = 0, A = d.length; R < A; R++) {
|
|
1487
|
-
const _ = d[R], L = h[R], w = m[R], E = g[R],
|
|
1487
|
+
const _ = d[R], L = h[R], w = m[R], E = g[R], O = p[R];
|
|
1488
1488
|
if (_ === void 0) continue;
|
|
1489
1489
|
_.updateMatrix && _.updateMatrix();
|
|
1490
|
-
const M = o._createAnimationTracks(_, L, w, E,
|
|
1490
|
+
const M = o._createAnimationTracks(_, L, w, E, O);
|
|
1491
1491
|
if (M)
|
|
1492
|
-
for (let
|
|
1493
|
-
T.push(M[
|
|
1492
|
+
for (let S = 0; S < M.length; S++)
|
|
1493
|
+
T.push(M[S]);
|
|
1494
1494
|
}
|
|
1495
1495
|
return new St(r, void 0, T);
|
|
1496
1496
|
});
|
|
@@ -1552,7 +1552,7 @@ class En {
|
|
|
1552
1552
|
if (r.isBone === !0 ? u = new It() : c.length > 1 ? u = new se() : c.length === 1 ? u = c[0] : u = new Oe(), u !== c[0])
|
|
1553
1553
|
for (let l = 0, d = c.length; l < d; l++)
|
|
1554
1554
|
u.add(c[l]);
|
|
1555
|
-
if (r.name && (u.userData.name = r.name, u.name = s),
|
|
1555
|
+
if (r.name && (u.userData.name = r.name, u.name = s), P(u, r), r.extensions && G(o, u, r), r.matrix !== void 0) {
|
|
1556
1556
|
const l = new Z();
|
|
1557
1557
|
l.fromArray(r.matrix), u.applyMatrix4(l);
|
|
1558
1558
|
} else
|
|
@@ -1575,7 +1575,7 @@ class En {
|
|
|
1575
1575
|
*/
|
|
1576
1576
|
loadScene(e) {
|
|
1577
1577
|
const t = this.extensions, o = this.json.scenes[e], n = this, r = new se();
|
|
1578
|
-
o.name && (r.name = n.createUniqueName(o.name)),
|
|
1578
|
+
o.name && (r.name = n.createUniqueName(o.name)), P(r, o), o.extensions && G(t, r, o);
|
|
1579
1579
|
const s = o.nodes || [], a = [];
|
|
1580
1580
|
for (let i = 0, c = s.length; i < c; i++)
|
|
1581
1581
|
a.push(n.getDependency("node", s[i]));
|
|
@@ -1596,19 +1596,19 @@ class En {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
_createAnimationTracks(e, t, o, n, r) {
|
|
1598
1598
|
const s = [], a = e.name ? e.name : e.uuid, i = [];
|
|
1599
|
-
|
|
1599
|
+
D[r.path] === D.weights ? e.traverse(function(d) {
|
|
1600
1600
|
d.morphTargetInfluences && i.push(d.name ? d.name : d.uuid);
|
|
1601
1601
|
}) : i.push(a);
|
|
1602
1602
|
let c;
|
|
1603
|
-
switch (
|
|
1604
|
-
case
|
|
1603
|
+
switch (D[r.path]) {
|
|
1604
|
+
case D.weights:
|
|
1605
1605
|
c = Ae;
|
|
1606
1606
|
break;
|
|
1607
|
-
case
|
|
1607
|
+
case D.rotation:
|
|
1608
1608
|
c = ye;
|
|
1609
1609
|
break;
|
|
1610
|
-
case
|
|
1611
|
-
case
|
|
1610
|
+
case D.translation:
|
|
1611
|
+
case D.scale:
|
|
1612
1612
|
c = xe;
|
|
1613
1613
|
break;
|
|
1614
1614
|
default:
|
|
@@ -1627,7 +1627,7 @@ class En {
|
|
|
1627
1627
|
const u = n.interpolation !== void 0 ? Tn[n.interpolation] : Ue, l = this._getArrayFromAccessor(o);
|
|
1628
1628
|
for (let d = 0, h = i.length; d < h; d++) {
|
|
1629
1629
|
const m = new c(
|
|
1630
|
-
i[d] + "." +
|
|
1630
|
+
i[d] + "." + D[r.path],
|
|
1631
1631
|
t.array,
|
|
1632
1632
|
l,
|
|
1633
1633
|
u
|
|
@@ -1659,10 +1659,10 @@ function wn(f, e, t) {
|
|
|
1659
1659
|
const a = t.json.accessors[o.POSITION], i = a.min, c = a.max;
|
|
1660
1660
|
if (i !== void 0 && c !== void 0) {
|
|
1661
1661
|
if (n.set(
|
|
1662
|
-
new
|
|
1663
|
-
new
|
|
1662
|
+
new K(i[0], i[1], i[2]),
|
|
1663
|
+
new K(c[0], c[1], c[2])
|
|
1664
1664
|
), a.normalized) {
|
|
1665
|
-
const u = he(
|
|
1665
|
+
const u = he(z[a.componentType]);
|
|
1666
1666
|
n.min.multiplyScalar(u), n.max.multiplyScalar(u);
|
|
1667
1667
|
}
|
|
1668
1668
|
} else {
|
|
@@ -1673,14 +1673,14 @@ function wn(f, e, t) {
|
|
|
1673
1673
|
return;
|
|
1674
1674
|
const r = e.targets;
|
|
1675
1675
|
if (r !== void 0) {
|
|
1676
|
-
const a = new
|
|
1676
|
+
const a = new K(), i = new K();
|
|
1677
1677
|
for (let c = 0, u = r.length; c < u; c++) {
|
|
1678
1678
|
const l = r[c];
|
|
1679
1679
|
if (l.POSITION !== void 0) {
|
|
1680
1680
|
const d = t.json.accessors[l.POSITION], h = d.min, m = d.max;
|
|
1681
1681
|
if (h !== void 0 && m !== void 0) {
|
|
1682
1682
|
if (i.setX(Math.max(Math.abs(h[0]), Math.abs(m[0]))), i.setY(Math.max(Math.abs(h[1]), Math.abs(m[1]))), i.setZ(Math.max(Math.abs(h[2]), Math.abs(m[2]))), d.normalized) {
|
|
1683
|
-
const g = he(
|
|
1683
|
+
const g = he(z[d.componentType]);
|
|
1684
1684
|
i.multiplyScalar(g);
|
|
1685
1685
|
}
|
|
1686
1686
|
a.max(i);
|
|
@@ -1711,7 +1711,7 @@ function Se(f, e, t) {
|
|
|
1711
1711
|
});
|
|
1712
1712
|
n.push(s);
|
|
1713
1713
|
}
|
|
1714
|
-
return de.workingColorSpace !==
|
|
1714
|
+
return de.workingColorSpace !== N && "COLOR_0" in o && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${de.workingColorSpace}" not supported.`), P(f, e), wn(f, e, t), Promise.all(n).then(function() {
|
|
1715
1715
|
return e.targets !== void 0 ? _n(f, e.targets, t) : f;
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
@@ -1787,10 +1787,10 @@ class bn extends Ce {
|
|
|
1787
1787
|
*/
|
|
1788
1788
|
parse(e, t, o = () => {
|
|
1789
1789
|
}) {
|
|
1790
|
-
this.decodeDracoFile(e, t, null, null,
|
|
1790
|
+
this.decodeDracoFile(e, t, null, null, v, o).catch(o);
|
|
1791
1791
|
}
|
|
1792
1792
|
//
|
|
1793
|
-
decodeDracoFile(e, t, o, n, r =
|
|
1793
|
+
decodeDracoFile(e, t, o, n, r = N, s = () => {
|
|
1794
1794
|
}) {
|
|
1795
1795
|
const a = {
|
|
1796
1796
|
attributeIDs: o || this.defaultAttributeIDs,
|
|
@@ -1824,18 +1824,18 @@ class bn extends Ce {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
_createGeometry(e) {
|
|
1826
1826
|
const t = new Fe();
|
|
1827
|
-
e.index && t.setIndex(new
|
|
1827
|
+
e.index && t.setIndex(new Y(e.index.array, 1));
|
|
1828
1828
|
for (let o = 0; o < e.attributes.length; o++) {
|
|
1829
|
-
const n = e.attributes[o], r = n.name, s = n.array, a = n.itemSize, i = new
|
|
1829
|
+
const n = e.attributes[o], r = n.name, s = n.array, a = n.itemSize, i = new Y(s, a);
|
|
1830
1830
|
r === "color" && (this._assignVertexColorSpace(i, n.vertexColorSpace), i.normalized = !(s instanceof Float32Array)), t.setAttribute(r, i);
|
|
1831
1831
|
}
|
|
1832
1832
|
return t;
|
|
1833
1833
|
}
|
|
1834
1834
|
_assignVertexColorSpace(e, t) {
|
|
1835
|
-
if (t !==
|
|
1836
|
-
const o = new
|
|
1835
|
+
if (t !== v) return;
|
|
1836
|
+
const o = new F();
|
|
1837
1837
|
for (let n = 0, r = e.count; n < r; n++)
|
|
1838
|
-
o.fromBufferAttribute(e, n), de.colorSpaceToWorking(o,
|
|
1838
|
+
o.fromBufferAttribute(e, n), de.colorSpaceToWorking(o, v), e.setXYZ(n, o.r, o.g, o.b);
|
|
1839
1839
|
}
|
|
1840
1840
|
_loadLibrary(e, t) {
|
|
1841
1841
|
const o = new Q(this.manager);
|
|
@@ -1991,7 +1991,7 @@ function Mn() {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
function Sn() {
|
|
1994
|
-
const f =
|
|
1994
|
+
const f = V(!1), e = V(""), t = ze([]), o = V(null), n = new Gt(), r = new jt(), s = new Bt(), a = new Vt();
|
|
1995
1995
|
let i = null;
|
|
1996
1996
|
return {
|
|
1997
1997
|
isLoading: f,
|
|
@@ -2025,9 +2025,9 @@ function Sn() {
|
|
|
2025
2025
|
case "obj":
|
|
2026
2026
|
const L = p.replace(/\.obj$/i, ".mtl").toLowerCase();
|
|
2027
2027
|
if (l.has(L)) {
|
|
2028
|
-
const
|
|
2029
|
-
d.push(
|
|
2030
|
-
const $ = await n.loadAsync(
|
|
2028
|
+
const S = l.get(L), j = URL.createObjectURL(S);
|
|
2029
|
+
d.push(j);
|
|
2030
|
+
const $ = await n.loadAsync(j);
|
|
2031
2031
|
$.preload(), r.setMaterials($);
|
|
2032
2032
|
} else
|
|
2033
2033
|
r.setMaterials(null);
|
|
@@ -2041,7 +2041,17 @@ function Sn() {
|
|
|
2041
2041
|
A = (await a.loadAsync(R, _)).scene;
|
|
2042
2042
|
break;
|
|
2043
2043
|
case "glb":
|
|
2044
|
-
|
|
2044
|
+
if (!i) {
|
|
2045
|
+
i = new bn();
|
|
2046
|
+
const S = document.currentScript;
|
|
2047
|
+
if (console.log(232, S), S) {
|
|
2048
|
+
const j = new URL(S.src);
|
|
2049
|
+
i.setDecoderPath(new URL("draco/", j).href);
|
|
2050
|
+
} else
|
|
2051
|
+
i.setDecoderPath("/draco/");
|
|
2052
|
+
i.preload();
|
|
2053
|
+
}
|
|
2054
|
+
a.setDRACOLoader(i), A = (await a.loadAsync(R, _)).scene;
|
|
2045
2055
|
break;
|
|
2046
2056
|
default:
|
|
2047
2057
|
console.warn(`不支持的文件类型: .${T}`), e.value = `不支持的文件类型: ${p}`;
|
|
@@ -2078,7 +2088,7 @@ const Cn = { class: "obj-viewer-container" }, Nn = { class: "buttonGroup-topLeft
|
|
|
2078
2088
|
fileBlobs: { default: () => [] }
|
|
2079
2089
|
},
|
|
2080
2090
|
setup(f) {
|
|
2081
|
-
const e = f, t =
|
|
2091
|
+
const e = f, t = V(null), o = V(!1), n = V(""), {
|
|
2082
2092
|
threeInfo: {
|
|
2083
2093
|
currentModels: r,
|
|
2084
2094
|
resetView: s,
|
|
@@ -2100,22 +2110,22 @@ const Cn = { class: "obj-viewer-container" }, Nn = { class: "buttonGroup-topLeft
|
|
|
2100
2110
|
animation: { isAnimating: A, toggleAnimation: _, startAnimation: L, stopAnimation: w },
|
|
2101
2111
|
clipping: {
|
|
2102
2112
|
isClipping: E,
|
|
2103
|
-
activeClippingAxis:
|
|
2113
|
+
activeClippingAxis: O,
|
|
2104
2114
|
toggleClipping: M,
|
|
2105
|
-
updateClippingPlanes:
|
|
2115
|
+
updateClippingPlanes: S
|
|
2106
2116
|
}
|
|
2107
2117
|
} = In(t, {
|
|
2108
2118
|
useModelLoaderHook: !0,
|
|
2109
2119
|
useAnimationHook: !0,
|
|
2110
2120
|
useClippingHook: !0
|
|
2111
|
-
}),
|
|
2121
|
+
}), j = () => {
|
|
2112
2122
|
h();
|
|
2113
2123
|
}, $ = (y) => {
|
|
2114
|
-
|
|
2124
|
+
O.value = y, S();
|
|
2115
2125
|
};
|
|
2116
2126
|
ee(() => e.fileBlobs, (y) => {
|
|
2117
|
-
y && y.length > 0 && R(y).catch((
|
|
2118
|
-
console.error("加载错误:",
|
|
2127
|
+
y && y.length > 0 && R(y).catch((C) => {
|
|
2128
|
+
console.error("加载错误:", C);
|
|
2119
2129
|
});
|
|
2120
2130
|
}, {
|
|
2121
2131
|
immediate: !0,
|
|
@@ -2138,72 +2148,72 @@ const Cn = { class: "obj-viewer-container" }, Nn = { class: "buttonGroup-topLeft
|
|
|
2138
2148
|
}
|
|
2139
2149
|
}), Ye(() => {
|
|
2140
2150
|
n.value = "", J && J.disconnect(), A.value && w(), u();
|
|
2141
|
-
}), (y,
|
|
2151
|
+
}), (y, C) => {
|
|
2142
2152
|
const Ke = $e("el-scrollbar");
|
|
2143
2153
|
return te(), me("div", Cn, [
|
|
2144
|
-
|
|
2154
|
+
I("div", {
|
|
2145
2155
|
ref_key: "threejsContainer",
|
|
2146
2156
|
ref: t,
|
|
2147
2157
|
class: "threejs-container"
|
|
2148
2158
|
}, null, 512),
|
|
2149
|
-
|
|
2150
|
-
H(
|
|
2159
|
+
I("div", Nn, [
|
|
2160
|
+
H(B, {
|
|
2151
2161
|
name: "viewReset",
|
|
2152
2162
|
size: "24",
|
|
2153
2163
|
onClick: U(s),
|
|
2154
2164
|
title: "重置"
|
|
2155
2165
|
}, null, 8, ["onClick"]),
|
|
2156
|
-
H(
|
|
2166
|
+
H(B, {
|
|
2157
2167
|
name: "fangda",
|
|
2158
2168
|
size: "24",
|
|
2159
2169
|
title: "放大"
|
|
2160
2170
|
}),
|
|
2161
|
-
H(
|
|
2171
|
+
H(B, {
|
|
2162
2172
|
name: "suoxiao",
|
|
2163
2173
|
size: "24",
|
|
2164
2174
|
title: "缩小"
|
|
2165
2175
|
}),
|
|
2166
|
-
H(
|
|
2176
|
+
H(B, {
|
|
2167
2177
|
name: "lookAround",
|
|
2168
2178
|
size: "24",
|
|
2169
2179
|
onClick: U(_),
|
|
2170
2180
|
title: U(A) ? "停止动画" : "动画视图"
|
|
2171
2181
|
}, null, 8, ["onClick", "title"]),
|
|
2172
|
-
H(
|
|
2182
|
+
H(B, {
|
|
2173
2183
|
name: "zuobiaoxi",
|
|
2174
2184
|
size: "24",
|
|
2175
2185
|
active: U(d),
|
|
2176
|
-
onClick:
|
|
2186
|
+
onClick: j,
|
|
2177
2187
|
title: "显隐坐标轴"
|
|
2178
2188
|
}, null, 8, ["active"])
|
|
2179
2189
|
]),
|
|
2180
|
-
|
|
2190
|
+
I("div", kn, [
|
|
2181
2191
|
Te(y.$slots, "button-left", { switchRightPanel: pe }, void 0, !0),
|
|
2182
|
-
H(
|
|
2192
|
+
H(B, {
|
|
2183
2193
|
name: "clipping",
|
|
2184
2194
|
size: "24",
|
|
2185
|
-
onClick:
|
|
2195
|
+
onClick: C[0] || (C[0] = (Ve) => pe("剖面视图")),
|
|
2186
2196
|
active: o.value && n.value === "剖面视图",
|
|
2187
2197
|
title: "剖面视图"
|
|
2188
2198
|
}, null, 8, ["active"])
|
|
2189
2199
|
]),
|
|
2190
|
-
|
|
2200
|
+
I("div", On, [
|
|
2191
2201
|
Te(y.$slots, "button-right", {}, void 0, !0)
|
|
2192
2202
|
]),
|
|
2193
|
-
|
|
2194
|
-
Je(
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2203
|
+
C[3] || (C[3] = I("div", { class: "buttonGroup-bottom" }, null, -1)),
|
|
2204
|
+
Je(I("div", Pn, [
|
|
2205
|
+
I("div", Dn, [
|
|
2206
|
+
I("span", null, Re(n.value), 1),
|
|
2207
|
+
I("span", {
|
|
2198
2208
|
class: "close",
|
|
2199
|
-
onClick:
|
|
2209
|
+
onClick: C[1] || (C[1] = (Ve) => o.value = !1)
|
|
2200
2210
|
}, " X ")
|
|
2201
2211
|
]),
|
|
2202
2212
|
H(Ke, { "max-height": "650px" }, {
|
|
2203
2213
|
default: Qe(() => [
|
|
2204
2214
|
n.value === "剖面视图" ? (te(), Ze(Ut, {
|
|
2205
2215
|
key: 0,
|
|
2206
|
-
value: U(
|
|
2216
|
+
value: U(O),
|
|
2207
2217
|
onChange: $
|
|
2208
2218
|
}, null, 8, ["value"])) : ge("", !0)
|
|
2209
2219
|
]),
|
|
@@ -2213,8 +2223,8 @@ const Cn = { class: "obj-viewer-container" }, Nn = { class: "buttonGroup-topLeft
|
|
|
2213
2223
|
[et, o.value]
|
|
2214
2224
|
]),
|
|
2215
2225
|
U(m) ? (te(), me("div", vn, [
|
|
2216
|
-
|
|
2217
|
-
|
|
2226
|
+
C[2] || (C[2] = I("div", { class: "loading-spinner" }, null, -1)),
|
|
2227
|
+
I("p", null, Re(U(g)), 1)
|
|
2218
2228
|
])) : ge("", !0)
|
|
2219
2229
|
]);
|
|
2220
2230
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as Le, ref as h, watch as ae, shallowRef as be, computed as Pe, onUnmounted as Ie, resolveComponent as U, createElementBlock as Ve, openBlock as Q, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, createCommentVNode as ke, unref as X, toDisplayString as he, onMounted as Ge, onBeforeUnmount as Ze, Fragment as He, renderList as qe, nextTick as Ke, withDirectives as pe, vShow as de, renderSlot as Me } from "vue";
|
|
2
|
-
import { r as Te, s as Ye } from "./threeViewerHost-
|
|
2
|
+
import { r as Te, s as Ye } from "./threeViewerHost-gXHoSu-S.js";
|
|
3
3
|
import { u as Ne, a as Qe, b as et, C as tt } from "./iconfont-CdO3WbzY.js";
|
|
4
4
|
import { U as lt, u as ot, a as nt, W as at } from "./workpieceTreePanel-Cov6qXNV.js";
|
|
5
5
|
import { c as st } from "./index-DqXvOyIs.js";
|
|
6
6
|
import { av as it, E as j, aM as rt, aN as ct } from "./request-B1c8BUkR.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { p as De, T as xe, V as D, n as H, o as ut, s as pt, h as Se, t as dt, L as mt, u as vt, v as ft, w as gt, x as ht, y as bt, z as yt, l as _t, F as wt } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DGUr6qBw.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-RLLrToce.js";
|
|
10
10
|
import "./index-BHtNKL1L.js";
|
|
11
11
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
12
|
import { y as Be, z as Ct, A as kt } from "./index-DB1HWx1W.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-DJnT8FpF.js";
|
|
14
14
|
import "./index-DcNXwXrV.js";
|
|
15
15
|
import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-C6bprDnn.js";
|
|
16
16
|
import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-CNPjuMA4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ge, ref as r, computed as k, watch as X, onUnmounted as De, resolveComponent as G, createElementBlock as x, openBlock as g, createElementVNode as n, createCommentVNode as U, createVNode as s, toDisplayString as L, Fragment as Be, renderList as Je, withCtx as le, shallowRef as te, onMounted as Me, nextTick as me, onBeforeUnmount as Ee, withDirectives as I, vShow as W, unref as z, renderSlot as ve, createBlock as de } from "vue";
|
|
2
|
-
import { s as pe } from "./threeViewerHost-
|
|
2
|
+
import { s as pe } from "./threeViewerHost-gXHoSu-S.js";
|
|
3
3
|
import { u as Ge, a as He, b as Ie, C as We } from "./iconfont-CdO3WbzY.js";
|
|
4
4
|
import { U as Xe, u as Ye, a as Ze, W as qe } from "./workpieceTreePanel-Cov6qXNV.js";
|
|
5
5
|
import { c as Ke } from "./index-DqXvOyIs.js";
|
|
@@ -112,7 +112,7 @@ const Y = { class: "three-platform mv-inline" }, J = { class: "top-menu" }, Q =
|
|
|
112
112
|
height: { default: "100%" }
|
|
113
113
|
},
|
|
114
114
|
setup(E) {
|
|
115
|
-
const O = b(() => import("./threeSceneView-
|
|
115
|
+
const O = b(() => import("./threeSceneView-NKKcrWSu.js")), y = b(() => import("./threePreview-CtUDgdQs.js")), i = b(() => import("./threeTrackPathView-D53xBW-W.js")), p = b(() => import("./threeSceneViewForCPMPIP-DibHqkVY.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
|
|
116
116
|
var t;
|
|
117
117
|
return (t = n == null ? void 0 : n.files) == null ? void 0 : t.map((s) => {
|
|
118
118
|
const { url: e, name: r } = s;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ss-component-new",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.546",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"fast-glob": "^3.3.3",
|
|
66
66
|
"less": "^4.3.0",
|
|
67
67
|
"patch-package": "^8.0.0",
|
|
68
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
68
69
|
"sass-embedded": "^1.87.0",
|
|
69
70
|
"typescript": "~5.7.2",
|
|
70
71
|
"vite": "^6.3.1",
|