@vsleem-realsee-viewer/projection-plugin 2.0.2 → 2.0.4

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as U, ref as g, watch as W, onMounted as X, onUnmounted as J, unref as l, createElementBlock as x, openBlock as E, createElementVNode as o, createCommentVNode as L, Fragment as N, toDisplayString as m, createVNode as _, withCtx as I, createTextVNode as z } from "vue";
2
- import { utils as p, Point as Y } from "@vsleem-realsee-viewer/shared";
3
- import { q as S, J as Z, y as H } from "./index-CS-tvHJ_.mjs";
4
- const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee = { class: "position-wrappper" }, te = { class: "group-wrapper" }, ne = /* @__PURE__ */ U({
1
+ import { defineComponent as W, ref as g, watch as X, onMounted as q, onUnmounted as Y, unref as l, createElementBlock as x, openBlock as E, createElementVNode as o, createCommentVNode as L, Fragment as N, toDisplayString as m, createVNode as I, withCtx as T, createTextVNode as z } from "vue";
2
+ import { utils as p, Point as Z } from "@vsleem-realsee-viewer/shared";
3
+ import { n as S, T as H, x as J } from "./index-D64Q9Gg8.mjs";
4
+ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee = { class: "position-wrappper" }, te = { class: "group-wrapper" }, ne = /* @__PURE__ */ W({
5
5
  name: "ForgeControl",
6
6
  __name: "ForgeControl",
7
7
  props: {
@@ -9,11 +9,11 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
9
9
  points: {}
10
10
  },
11
11
  emits: ["change"],
12
- setup(T, { emit: P }) {
13
- const C = P, k = T, i = g(), V = g(), w = g(), d = g([]), s = g([]);
14
- W([() => k.points], A), X(() => {
12
+ setup(P, { emit: _ }) {
13
+ const C = _, k = P, i = g(), V = g(), w = g(), d = g([]), s = g([]);
14
+ X([() => k.points], A), q(() => {
15
15
  A(), B();
16
- }), J(() => {
16
+ }), Y(() => {
17
17
  O();
18
18
  });
19
19
  function A() {
@@ -33,7 +33,7 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
33
33
  env: "AutodeskProduction",
34
34
  api: "derivativeV2",
35
35
  getAccessToken: async (r) => {
36
- const u = await Z();
36
+ const u = await H();
37
37
  r(u, 3600);
38
38
  }
39
39
  };
@@ -88,17 +88,17 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
88
88
  }
89
89
  }
90
90
  function b(e) {
91
- const t = q();
91
+ const t = U();
92
92
  d.value.length || (d.value = [t, t]), d.value.some((u) => u !== t) && D(t);
93
93
  const n = l(i).getCamera(), r = h(n.position);
94
- r && (s.value[e] = new Y(r), C("change", F()));
94
+ r && (s.value[e] = new Z(r), C("change", F()));
95
95
  }
96
96
  function D(e) {
97
97
  d.value.length || (d.value = [e, e]), d.value.forEach((t, n) => {
98
98
  t != e && s.value[n] && (s.value[n] = void 0);
99
99
  }), d.value = [e, e], C("change", F());
100
100
  }
101
- function q() {
101
+ function U() {
102
102
  const e = l(i).getExtension("Autodesk.AEC.LevelsExtension");
103
103
  return e ? e.getCurrentLevel().index : void 0;
104
104
  }
@@ -167,34 +167,32 @@ const K = { class: "vsleem-forge-control" }, Q = { class: "map-wrapper" }, ee =
167
167
  ])
168
168
  ]),
169
169
  o("div", te, [
170
- _(l(S), {
170
+ I(l(S), {
171
171
  style: { margin: "0 12px" },
172
172
  type: s.value.length ? "primary" : "default",
173
173
  onClick: t[2] || (t[2] = (v) => b(0))
174
174
  }, {
175
- default: I(() => t[5] || (t[5] = [
175
+ default: T(() => [...t[5] || (t[5] = [
176
176
  z(" 设定此处为定位点1 ", -1)
177
- ])),
178
- _: 1,
179
- __: [5]
177
+ ])]),
178
+ _: 1
180
179
  }, 8, ["type"]),
181
- _(l(S), {
180
+ I(l(S), {
182
181
  style: { margin: "0 12px" },
183
182
  type: s.value.length > 1 ? "primary" : "default",
184
183
  disabled: !s.value.length,
185
184
  onClick: t[3] || (t[3] = (v) => b(1))
186
185
  }, {
187
- default: I(() => t[6] || (t[6] = [
186
+ default: T(() => [...t[6] || (t[6] = [
188
187
  z(" 设定此处为定位点2 ", -1)
189
- ])),
190
- _: 1,
191
- __: [6]
188
+ ])]),
189
+ _: 1
192
190
  }, 8, ["type", "disabled"])
193
191
  ])
194
192
  ]);
195
193
  };
196
194
  }
197
- }), se = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-f11b2e08"]]);
195
+ }), se = /* @__PURE__ */ J(ne, [["__scopeId", "data-v-f11b2e08"]]);
198
196
  export {
199
197
  se as default
200
198
  };