@realsee/five 6.8.0-alpha.16 → 6.8.0-alpha.18

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.
Files changed (164) hide show
  1. package/docs/assets/hierarchy.js +1 -1
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/five.AdaptiveLuminancePass.html +1 -1
  4. package/docs/classes/five.BoundingMesh.html +1 -1
  5. package/docs/classes/five.EyeDomeLightingPass.html +1 -1
  6. package/docs/classes/five.Five.html +1 -1
  7. package/docs/classes/five.FivePass.html +1 -1
  8. package/docs/classes/five.Histogram.html +4 -1
  9. package/docs/classes/five.Model.html +1 -1
  10. package/docs/classes/five.ModelScene.html +1 -1
  11. package/docs/classes/five.NetworkSubscribe.html +1 -1
  12. package/docs/classes/five.PBMContainer.html +1 -1
  13. package/docs/classes/five.PBMCustomShader.html +1 -1
  14. package/docs/classes/five.PBMGSObject.html +1 -1
  15. package/docs/classes/five.PBMGroup.html +1 -1
  16. package/docs/classes/five.PBMMesh.html +1 -1
  17. package/docs/classes/five.PBMMeshMaterial.html +6 -6
  18. package/docs/classes/five.PBMPanoFilter.html +8 -8
  19. package/docs/classes/five.PBMPointCloud.html +1 -1
  20. package/docs/classes/five.PBMPointCloudMaterial.html +1 -1
  21. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  22. package/docs/classes/five.PBMUpdateable.html +1 -1
  23. package/docs/classes/five.PanoCircleMesh.html +1 -1
  24. package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
  25. package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
  26. package/docs/classes/five.Parameter.html +1 -1
  27. package/docs/classes/five.Subscribe.html +1 -1
  28. package/docs/classes/five.Tile3D.html +1 -1
  29. package/docs/classes/five.TileNode.html +1 -1
  30. package/docs/classes/five.TrajectoryNode.html +1 -1
  31. package/docs/classes/five.WorkResolvedObserver.html +1 -1
  32. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  33. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  34. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  35. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  36. package/docs/classes/line.LineGeometry.html +1 -1
  37. package/docs/classes/line.LineMaterial.html +1 -1
  38. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  39. package/docs/classes/line.THREE_Line2.html +1 -1
  40. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  41. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  42. package/docs/classes/vfx.Airflow.html +1 -1
  43. package/docs/classes/vfx.Flame.html +1 -1
  44. package/docs/classes/vfx.Particle.html +1 -1
  45. package/docs/classes/vfx.ParticleGPU.html +1 -1
  46. package/docs/classes/vfx.SpotLight.html +1 -1
  47. package/docs/documents/api.html +15 -15
  48. package/docs/documents/features_flowing-light-2d-pass.html +6 -6
  49. package/docs/documents/features_flowing-light-3d-pass.html +6 -6
  50. package/docs/documents/features_gaussian-blur-pass.html +5 -5
  51. package/docs/hierarchy.html +1 -1
  52. package/docs/interfaces/five.AddableObject.html +1 -1
  53. package/docs/interfaces/five.AjaxOptions.html +1 -1
  54. package/docs/interfaces/five.BaseEvent.html +1 -1
  55. package/docs/interfaces/five.EventCallback.html +1 -1
  56. package/docs/interfaces/five.GestureEvent.html +1 -1
  57. package/docs/interfaces/five.ImageOptions.html +1 -1
  58. package/docs/interfaces/five.IntersectEvent.html +1 -1
  59. package/docs/interfaces/five.IntersectMesh.html +1 -1
  60. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  61. package/docs/interfaces/five.Intersection.html +1 -1
  62. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +1 -1
  63. package/docs/interfaces/five.ModeChangeEvent.html +1 -1
  64. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
  65. package/docs/interfaces/five.ModelEvent.html +1 -1
  66. package/docs/interfaces/five.ModelSceneEvent.html +1 -1
  67. package/docs/interfaces/five.ModelTileEvent.html +1 -1
  68. package/docs/interfaces/five.MovePanoOptions.html +1 -1
  69. package/docs/interfaces/five.NetworkAbortError.html +1 -1
  70. package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
  71. package/docs/interfaces/five.NetworkOptions.html +1 -1
  72. package/docs/interfaces/five.NetworkProxyError.html +1 -1
  73. package/docs/interfaces/five.NetworkResourceEvent.html +1 -1
  74. package/docs/interfaces/five.NetworkResponseError.html +1 -1
  75. package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
  76. package/docs/interfaces/five.ObjectEvent.html +1 -1
  77. package/docs/interfaces/five.PBMClipperParameter.html +2 -2
  78. package/docs/interfaces/five.PBMMaterial.html +1 -1
  79. package/docs/interfaces/five.PBMMeshMaterialParameters.html +2 -2
  80. package/docs/interfaces/five.PBMPanoDepth.html +5 -5
  81. package/docs/interfaces/five.PBMPanoFilterValue.html +6 -5
  82. package/docs/interfaces/five.PBMPanoPicture.html +7 -7
  83. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
  84. package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
  85. package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
  86. package/docs/interfaces/five.PanoEvent.html +1 -1
  87. package/docs/interfaces/five.PanoTextureEvent.html +1 -1
  88. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
  89. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  90. package/docs/interfaces/five.ParameterMaterialValue.html +1 -1
  91. package/docs/interfaces/five.ParameterTilesetValue.html +1 -1
  92. package/docs/interfaces/five.ParameterValue.html +1 -1
  93. package/docs/interfaces/five.Pose.html +1 -1
  94. package/docs/interfaces/five.RenderEvent.html +1 -1
  95. package/docs/interfaces/five.ResolvedParameterValue.html +1 -1
  96. package/docs/interfaces/five.State.html +1 -1
  97. package/docs/interfaces/five.StateEvent.html +1 -1
  98. package/docs/interfaces/five.TextureOptions.html +1 -1
  99. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
  100. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  101. package/docs/interfaces/five.ViewLayer.html +1 -1
  102. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  103. package/docs/interfaces/five.WorkImage.html +1 -1
  104. package/docs/interfaces/five.WorkObserver.html +1 -1
  105. package/docs/interfaces/five.WorkTile.html +1 -1
  106. package/docs/interfaces/five.WorksEvent.html +1 -1
  107. package/docs/interfaces/five.XRControllerEvent.html +1 -1
  108. package/docs/interfaces/five.XRGestureEvent.html +1 -1
  109. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  110. package/docs/interfaces/five.XRSessionEvent.html +1 -1
  111. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  112. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  113. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
  114. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
  115. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
  116. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  117. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  118. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
  119. package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
  120. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  121. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  122. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  123. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  124. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  125. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  126. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  127. package/docs/interfaces/plugins.TrajectoryController.html +1 -1
  128. package/docs/interfaces/react.FiveInjectionTypes.html +1 -1
  129. package/docs/types/five.ParseOptions.html +1 -1
  130. package/five/index.js +144 -665
  131. package/five/index.mjs +26212 -32279
  132. package/five/model/materials/pbmMaterial.d.ts +7 -16
  133. package/five/texture/histogram.d.ts +7 -0
  134. package/five/thirdparty/hammer.d.ts +371 -255
  135. package/five/thirdparty/jsrsasign.d.ts +5 -20
  136. package/gltf-loader/index.js +9 -9
  137. package/gltf-loader/index.mjs +1351 -1451
  138. package/line/index.js +4 -4
  139. package/line/index.mjs +334 -513
  140. package/package.json +2 -2
  141. package/plugins/index.js +17 -21
  142. package/plugins/index.mjs +3342 -4245
  143. package/react/index.js +3 -3
  144. package/react/index.mjs +572 -783
  145. package/shader-lib/index.js +13 -14
  146. package/shader-lib/index.mjs +424 -824
  147. package/sticker/index.js +3 -3
  148. package/sticker/index.mjs +102 -142
  149. package/umd/five-gltf-loader.js +9 -9
  150. package/umd/five-line.js +4 -4
  151. package/umd/five-plugins.js +17 -21
  152. package/umd/five-react.js +3 -3
  153. package/umd/five-shader-lib.js +13 -14
  154. package/umd/five-sticker.js +3 -3
  155. package/umd/five-vfx.js +21 -21
  156. package/umd/five-vue.js +3 -3
  157. package/umd/five.js +139 -660
  158. package/vfx/index.js +21 -21
  159. package/vfx/index.mjs +454 -910
  160. package/vue/index.js +3 -3
  161. package/vue/index.mjs +309 -301
  162. package/work-downloader/index.js +3 -3
  163. package/work-downloader/index.mjs +317 -556
  164. /package/five/assets/{realsee-pmg-data-url.d.ts → realsee-png-data-url.d.ts} +0 -0
package/vue/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 3/12/2026
5
- * Version: 6.8.0-alpha.16
4
+ * Generated: 3/17/2026
5
+ * Version: 6.8.0-alpha.18
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,331 +252,339 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */import { inject as _, defineComponent as P, toRef as R, ref as s, watch as w, h as O, toRefs as B, onBeforeUnmount as l, provide as D, shallowReadonly as I, readonly as V, reactive as U, shallowRef as p, isRef as m } from "vue";
256
- import { getViewportScale as G, Five as H } from "@realsee/five";
257
- import * as d from "three";
258
- var h = function() {
259
- return h = Object.assign || function(r) {
260
- for (var n, o = 1, t = arguments.length; o < t; o++) {
261
- n = arguments[o];
262
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
263
- }
264
- return r;
265
- }, h.apply(this, arguments);
266
- };
267
- var A = !1;
268
- function N(e) {
269
- A = e;
255
+ */import { defineComponent as e, h as t, inject as n, isRef as r, onBeforeUnmount as i, provide as a, reactive as o, readonly as s, ref as c, shallowReadonly as l, shallowRef as u, toRef as d, toRefs as f, watch as p } from "vue";
256
+ import { Five as m, getViewportScale as h } from "@realsee/five";
257
+ import * as g from "three";
258
+ //#region build/vue/context.js
259
+ var _ = !1;
260
+ function v(e) {
261
+ _ = e;
270
262
  }
271
- var L = Symbol();
272
- function v() {
273
- var e = _(L);
274
- if (!e)
275
- throw new Error("Inject five error!");
276
- return e;
263
+ var y = Symbol();
264
+ function b() {
265
+ let e = n(y);
266
+ if (!e) throw Error("Inject five error!");
267
+ return e;
277
268
  }
278
- var q = {
279
- display: "inline-block",
280
- overflow: "hidden"
281
- }, X = P({
282
- props: {
283
- width: {
284
- type: Number,
285
- required: !0
286
- },
287
- height: {
288
- type: Number,
289
- required: !0
290
- }
291
- },
292
- setup: function(e) {
293
- var r = R(e, "width"), n = R(e, "height"), o = v(), t = s(null);
294
- return w([r, n, t], function() {
295
- if (o.renderer && t.value) {
296
- if (o.renderer.domElement.parentNode !== null && o.renderer.domElement.parentNode !== t.value)
297
- throw new Error("There are more than 2 fiveCanvas in this context.");
298
- o.renderer.domElement.parentNode !== t.value && t.value.appendChild(o.renderer.domElement), o.camera.aspect = r.value / n.value, o.camera.updateProjectionMatrix(), o.renderer.setSize(r.value, n.value), o.refresh({ width: r.value, height: n.value }), o.needsRender = !0;
299
- }
300
- }), function() {
301
- return O("div", {
302
- id: "five",
303
- style: h({ width: "".concat(r.value, "px"), height: "".concat(n.value, "px") }, q),
304
- ref: t
305
- });
306
- };
307
- }
308
- }), b = [], C = [];
309
- function T(e) {
310
- var r = e === void 0 ? {} : e, n = r.backgroundColor, o = n === void 0 ? 1579548 : n, t = r.backgroundAlpha, i = t === void 0 ? 1 : t, a = r.preserveDrawingBuffer, f = a === void 0 ? !0 : a, u = r.pixelRatio, g = u === void 0 ? 1 : u, y = r.webgl2, S = y === void 0 ? !1 : y;
311
- if (typeof window != "undefined") {
312
- var c = null;
313
- if (S ? c = b.shift() : c = C.shift(), !c) {
314
- if (S) {
315
- var k = document.createElement("canvas"), F = k.getContext("webgl2");
316
- F ? c = new d.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !0, alpha: !0, stencil: !0, canvas: k, context: F }) : (console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."), c = new d.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !1, alpha: !0, stencil: !0 }));
317
- } else
318
- c = new d.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !1, alpha: !0, stencil: !0 });
319
- c.outputEncoding = d.sRGBEncoding;
320
- }
321
- return c.setPixelRatio(g), c.setClearColor(o, i), c.autoClear = !0, c;
322
- }
269
+ //#endregion
270
+ //#region build/vue/hooks/FiveCanvas.js
271
+ var x = {
272
+ display: "inline-block",
273
+ overflow: "hidden"
274
+ }, S = e({
275
+ props: {
276
+ width: {
277
+ type: Number,
278
+ required: !0
279
+ },
280
+ height: {
281
+ type: Number,
282
+ required: !0
283
+ }
284
+ },
285
+ setup(e) {
286
+ let n = d(e, "width"), r = d(e, "height"), i = b(), a = c(null);
287
+ return p([
288
+ n,
289
+ r,
290
+ a
291
+ ], () => {
292
+ if (i.renderer && a.value) {
293
+ if (i.renderer.domElement.parentNode !== null && i.renderer.domElement.parentNode !== a.value) throw Error("There are more than 2 fiveCanvas in this context.");
294
+ i.renderer.domElement.parentNode !== a.value && a.value.appendChild(i.renderer.domElement), i.camera.aspect = n.value / r.value, i.camera.updateProjectionMatrix(), i.renderer.setSize(n.value, r.value), i.refresh({
295
+ width: n.value,
296
+ height: r.value
297
+ }), i.needsRender = !0;
298
+ }
299
+ }), () => t("div", {
300
+ id: "five",
301
+ style: Object.assign({
302
+ width: `${n.value}px`,
303
+ height: `${r.value}px`
304
+ }, x),
305
+ ref: a
306
+ });
307
+ }
308
+ }), C = [], w = [];
309
+ function T({ backgroundColor: e = 1579548, backgroundAlpha: t = 1, preserveDrawingBuffer: n = !0, pixelRatio: r = 1, webgl2: i = !1 } = {}) {
310
+ if (typeof window > "u") return;
311
+ let a = null;
312
+ if (a = i ? C.shift() : w.shift(), !a) {
313
+ if (i) {
314
+ let e = document.createElement("canvas"), t = e.getContext("webgl2");
315
+ t ? a = new g.WebGLRenderer({
316
+ preserveDrawingBuffer: n,
317
+ antialias: !0,
318
+ alpha: !0,
319
+ stencil: !0,
320
+ canvas: e,
321
+ context: t
322
+ }) : (console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."), a = new g.WebGLRenderer({
323
+ preserveDrawingBuffer: n,
324
+ antialias: !1,
325
+ alpha: !0,
326
+ stencil: !0
327
+ }));
328
+ } else a = new g.WebGLRenderer({
329
+ preserveDrawingBuffer: n,
330
+ antialias: !1,
331
+ alpha: !0,
332
+ stencil: !0
333
+ });
334
+ a.outputEncoding = g.sRGBEncoding;
335
+ }
336
+ return a.setPixelRatio(r), a.setClearColor(e, t), a.autoClear = !0, a;
323
337
  }
324
- function $(e) {
325
- if (e) {
326
- var r = e.capabilities.isWebGL2;
327
- r ? C.indexOf(e) === -1 && C.push(e) : b.indexOf(e) === -1 && b.push(e);
328
- }
338
+ function E(e) {
339
+ e && (e.capabilities.isWebGL2 ? w.indexOf(e) === -1 && w.push(e) : C.indexOf(e) === -1 && C.push(e));
329
340
  }
330
- function z(e, r) {
331
- var n = Array.isArray(e) ? e : [e], o = Array.isArray(r) ? r : [r];
332
- if (n.length !== o.length)
333
- return !1;
334
- for (var t = 0; t < n.length; t++)
335
- if (n[t] !== o[t])
336
- return !1;
337
- return !0;
341
+ //#endregion
342
+ //#region build/vue/hooks/FiveProvider.js
343
+ function D(e, t) {
344
+ let n = Array.isArray(e) ? e : [e], r = Array.isArray(t) ? t : [t];
345
+ if (n.length !== r.length) return !1;
346
+ for (let e = 0; e < n.length; e++) if (n[e] !== r[e]) return !1;
347
+ return !0;
338
348
  }
339
- var Y = P({
340
- props: {
341
- works: Object,
342
- initialWorks: Object,
343
- initialState: Object,
344
- initialUserAction: Boolean,
345
- onWorksChange: Function,
346
- onStateChange: Function,
347
- onCurrentStateChange: Function,
348
- onError: Function,
349
- fiveInitArgs: {
350
- type: Object,
351
- default: function() {
352
- return {};
353
- }
354
- },
355
- style: Object
356
- },
357
- setup: function(e) {
358
- var r, n = B(e).works, o = G(), t = o === 1 ? window.devicePixelRatio : 1, i = T({ pixelRatio: t }), a = new H(h({ renderer: i }, e.fiveInitArgs)), f = e.works || e.initialWorks;
359
- return f && a.load(f, e.initialState, void 0, (r = e.initialUserAction) !== null && r !== void 0 ? r : !0), N(!!e.works), n && w(n, function(u, g) {
360
- u && !z(u, a.works) && a.load(u, e.initialState);
361
- }), l(function() {
362
- a && (a.dispose(), $(a.renderer));
363
- }), a.on("load", function() {
364
- e.onWorksChange && a.works && e.onWorksChange(a == null ? void 0 : a.works);
365
- }), a.on("stateChange", function(u, g) {
366
- e.onStateChange && e.onStateChange(u, g);
367
- }), a.on("currentStateChange", function(u, g) {
368
- e.onCurrentStateChange && e.onCurrentStateChange(u, g);
369
- }), a.on("error", function(u) {
370
- e.onError ? e.onError(u) : console.warn(u.message);
371
- }), D(L, a), {
372
- five: I(a)
373
- };
374
- },
375
- render: function() {
376
- return O("div", { style: this.$props.style }, this.$slots);
377
- }
349
+ var O = e({
350
+ props: {
351
+ works: Object,
352
+ initialWorks: Object,
353
+ initialState: Object,
354
+ initialUserAction: Boolean,
355
+ onWorksChange: Function,
356
+ onStateChange: Function,
357
+ onCurrentStateChange: Function,
358
+ onError: Function,
359
+ fiveInitArgs: {
360
+ type: Object,
361
+ default: () => ({})
362
+ },
363
+ style: Object
364
+ },
365
+ setup(e) {
366
+ var t;
367
+ let { works: n } = f(e), r = T({ pixelRatio: h() === 1 ? window.devicePixelRatio : 1 }), o = new m(Object.assign({ renderer: r }, e.fiveInitArgs)), s = e.works || e.initialWorks;
368
+ return s && o.load(s, e.initialState, void 0, (t = e.initialUserAction) == null ? !0 : t), v(!!e.works), n && p(n, (t, n) => {
369
+ t && !D(t, o.works) && o.load(t, e.initialState);
370
+ }), i(() => {
371
+ o && (o.dispose(), E(o.renderer));
372
+ }), o.on("load", () => {
373
+ e.onWorksChange && o.works && e.onWorksChange(o == null ? void 0 : o.works);
374
+ }), o.on("stateChange", (t, n) => {
375
+ e.onStateChange && e.onStateChange(t, n);
376
+ }), o.on("currentStateChange", (t, n) => {
377
+ e.onCurrentStateChange && e.onCurrentStateChange(t, n);
378
+ }), o.on("error", (t) => {
379
+ e.onError ? e.onError(t) : console.warn(t.message);
380
+ }), a(y, o), { five: l(o) };
381
+ },
382
+ render() {
383
+ return t("div", { style: this.$props.style }, this.$slots);
384
+ }
378
385
  });
379
- function Z() {
380
- var e = v(), r = s(e.works), n = V(r), o = function(i, a, f, u) {
381
- if (A)
382
- throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");
383
- return e.load(i, a, f, u);
384
- }, t = e.on("load", function() {
385
- r.value = e.works;
386
- });
387
- return l(function() {
388
- t();
389
- }), [n, o];
386
+ //#endregion
387
+ //#region build/vue/hooks/useFiveWork.js
388
+ function k() {
389
+ let e = b(), t = c(e.works), n = s(t), r = (t, n, r, i) => {
390
+ if (_) throw Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");
391
+ return e.load(t, n, r, i);
392
+ }, a = e.on("load", () => {
393
+ t.value = e.works;
394
+ });
395
+ return i(() => {
396
+ a();
397
+ }), [n, r];
390
398
  }
391
- function ee() {
392
- var e = v(), r = s(h({}, e.state)), n = e.on("stateChange", function(t) {
393
- Object.assign(r.value, h({}, t));
394
- });
395
- l(function() {
396
- n();
397
- });
398
- var o = function(t, i, a) {
399
- i === void 0 && (i = !1), a === void 0 && (a = !0);
400
- var f = typeof t == "function" ? t(e.getCurrentState()) : t;
401
- e.setState(f, i, a);
402
- };
403
- return [r, o];
399
+ //#endregion
400
+ //#region build/vue/hooks/useFiveState.js
401
+ function A() {
402
+ let e = b(), t = c(Object.assign({}, e.state)), n = e.on("stateChange", (e) => {
403
+ Object.assign(t.value, Object.assign({}, e));
404
+ });
405
+ return i(() => {
406
+ n();
407
+ }), [t, (t, n = !1, r = !0) => {
408
+ let i = typeof t == "function" ? t(e.getCurrentState()) : t;
409
+ e.setState(i, n, r);
410
+ }];
404
411
  }
405
- function re() {
406
- var e = v(), r = s(e.getCurrentState()), n = e.on("currentStateChange", function() {
407
- Object.assign(r.value, e.getCurrentState());
408
- });
409
- l(function() {
410
- n();
411
- });
412
- var o = function(t, i, a) {
413
- var f = typeof t == "function" ? t(e.getCurrentState()) : t;
414
- e.setState(f, i, a);
415
- };
416
- return [r, o];
412
+ //#endregion
413
+ //#region build/vue/hooks/useFiveCurrentState.js
414
+ function j() {
415
+ let e = b(), t = c(e.getCurrentState()), n = e.on("currentStateChange", () => {
416
+ Object.assign(t.value, e.getCurrentState());
417
+ });
418
+ return i(() => {
419
+ n();
420
+ }), [t, (t, n, r) => {
421
+ let i = typeof t == "function" ? t(e.getCurrentState()) : t;
422
+ e.setState(i, n, r);
423
+ }];
417
424
  }
418
- function ne() {
419
- var e = v(), r = U(e.getCurrentState()), n = s(e.works.getObserver(e.pano)), o = e.on("currentStateChange", function() {
420
- Object.assign(r, e.getCurrentState()), n.value = e.works.getObserver({
421
- workCode: r.workCode,
422
- panoIndex: r.panoIndex
423
- });
424
- });
425
- return l(function() {
426
- o();
427
- }), n;
425
+ //#endregion
426
+ //#region build/vue/hooks/useFiveCurrentObserver.js
427
+ function M() {
428
+ let e = b(), t = o(e.getCurrentState()), n = c(e.works.getObserver(e.pano)), r = e.on("currentStateChange", () => {
429
+ Object.assign(t, e.getCurrentState()), n.value = e.works.getObserver({
430
+ workCode: t.workCode,
431
+ panoIndex: t.panoIndex
432
+ });
433
+ });
434
+ return i(() => {
435
+ r();
436
+ }), n;
428
437
  }
429
- function te(e, r) {
430
- var n = v(), o = n.on(e, r);
431
- l(function() {
432
- o();
433
- });
438
+ //#endregion
439
+ //#region build/vue/hooks/useFiveEventCallback.js
440
+ function N(e, t) {
441
+ let n = b().on(e, t);
442
+ i(() => {
443
+ n();
444
+ });
434
445
  }
435
- function oe() {
436
- var e = v(), r = function(f, u) {
437
- return e.updateCamera(f, u);
438
- }, n = e.getPixels.bind(e), o = function(f) {
439
- return e.render(f);
440
- }, t = function() {
441
- return e.needsRender = !0;
442
- }, i = function(f, u) {
443
- return e.preloadPano(f, u);
444
- }, a = function(f, u) {
445
- return u === void 0 && (u = !1), e.project2d(f, u);
446
- };
447
- return {
448
- updateCamera: r,
449
- getPixels: n,
450
- render: o,
451
- needsRender: t,
452
- preloadPano: i,
453
- project2d: a
454
- };
446
+ //#endregion
447
+ //#region build/vue/hooks/useFiveAction.js
448
+ function P() {
449
+ let e = b();
450
+ return {
451
+ updateCamera: (t, n) => e.updateCamera(t, n),
452
+ getPixels: e.getPixels.bind(e),
453
+ render: (t) => e.render(t),
454
+ needsRender: () => e.needsRender = !0,
455
+ preloadPano: (t, n) => e.preloadPano(t, n),
456
+ project2d: (t, n = !1) => e.project2d(t, n)
457
+ };
455
458
  }
456
- function K(e, r) {
457
- r === void 0 && (r = !1);
458
- var n = v(), o = s(Symbol()), t = p(e ? n.project2d(m(e) ? e.value : e, r) : null), i = n.on("cameraUpdate", function() {
459
- o.value = Symbol();
460
- });
461
- return l(function() {
462
- i();
463
- }), w([o, e], function() {
464
- t.value = n.project2d(m(e) ? e.value : e, r);
465
- }), t;
459
+ //#endregion
460
+ //#region build/vue/hooks/useFiveProject2d.js
461
+ function F(e, t = !1) {
462
+ let n = b(), a = c(Symbol()), o = u(e ? n.project2d(r(e) ? e.value : e, t) : null), s = n.on("cameraUpdate", () => {
463
+ a.value = Symbol();
464
+ });
465
+ return i(() => {
466
+ s();
467
+ }), p([a, e], () => {
468
+ o.value = n.project2d(r(e) ? e.value : e, t);
469
+ }), o;
466
470
  }
467
- function ae() {
468
- return K;
471
+ function I() {
472
+ return F;
469
473
  }
470
- function j(e) {
471
- var r = e.camera.getWorldDirection(new d.Vector3()), n = new d.Raycaster(e.camera.position, r);
472
- return n;
474
+ //#endregion
475
+ //#region build/vue/hooks/useFiveCameraRaycaster.js
476
+ function L(e) {
477
+ let t = e.camera.getWorldDirection(new g.Vector3());
478
+ return new g.Raycaster(e.camera.position, t);
473
479
  }
474
- function ie() {
475
- var e = v(), r = p(j(e)), n = e.on("cameraUpdate", function() {
476
- r.value = j(e);
477
- });
478
- return l(function() {
479
- n();
480
- }), r;
480
+ function R() {
481
+ let e = b(), t = u(L(e)), n = e.on("cameraUpdate", () => {
482
+ t.value = L(e);
483
+ });
484
+ return i(() => {
485
+ n();
486
+ }), t;
481
487
  }
482
- function E(e) {
483
- return e.camera.getWorldDirection(new d.Vector3());
488
+ //#endregion
489
+ //#region build/vue/hooks/useFiveCameraDirection.js
490
+ function z(e) {
491
+ return e.camera.getWorldDirection(new g.Vector3());
484
492
  }
485
- function ue() {
486
- var e = v(), r = p(E(e)), n = e.on("cameraUpdate", function() {
487
- r.value = E(e);
488
- });
489
- return l(function() {
490
- n();
491
- }), r;
493
+ function B() {
494
+ let e = b(), t = u(z(e)), n = e.on("cameraUpdate", () => {
495
+ t.value = z(e);
496
+ });
497
+ return i(() => {
498
+ n();
499
+ }), t;
492
500
  }
493
- function M(e) {
494
- var r = v(), n = p([]);
495
- return w(e, function() {
496
- n.value = r.model.intersectRaycaster(m(e) ? e.value : e);
497
- }), n;
501
+ //#endregion
502
+ //#region build/vue/hooks/useFiveModelIntersectRaycaster.js
503
+ function V(e) {
504
+ let t = b(), n = u([]);
505
+ return p(e, () => {
506
+ n.value = t.model.intersectRaycaster(r(e) ? e.value : e);
507
+ }), n;
498
508
  }
499
- function fe() {
500
- return M;
509
+ function H() {
510
+ return V;
501
511
  }
502
- function x(e) {
503
- return e.model.empty ? "Empty" : "Loaded";
512
+ //#endregion
513
+ //#region build/vue/hooks/useFiveModelReadyState.js
514
+ function U(e) {
515
+ return e.model.empty ? "Empty" : "Loaded";
504
516
  }
505
- function ve() {
506
- var e = v(), r = s(x(e)), n = e.on("modelLoaded", function() {
507
- r.value = x(e);
508
- });
509
- return l(function() {
510
- n();
511
- }), r;
517
+ function W() {
518
+ let e = b(), t = c(U(e)), n = e.on("modelLoaded", () => {
519
+ t.value = U(e);
520
+ });
521
+ return i(() => {
522
+ n();
523
+ }), t;
512
524
  }
513
- function le() {
514
- var e = v(), r = s(e.model.shownFloor), n = s(e.model.floorLength), o = function(i) {
515
- typeof i == "number" ? e.model.show(i) : e.model.show();
516
- }, t = [];
517
- return t.push(e.on("modelShownFloorChange", function() {
518
- r.value = e.model.shownFloor;
519
- })), t.push(e.on("modelLoaded", function() {
520
- n.value = e.model.floorLength;
521
- })), l(function() {
522
- for (var i; i = t.shift(); )
523
- i();
524
- }), [r, n, o];
525
+ //#endregion
526
+ //#region build/vue/hooks/useFiveFloor.js
527
+ function G() {
528
+ let e = b(), t = c(e.model.shownFloor), n = c(e.model.floorLength), r = (t) => {
529
+ typeof t == "number" ? e.model.show(t) : e.model.show();
530
+ }, a = [];
531
+ return a.push(e.on("modelShownFloorChange", () => {
532
+ t.value = e.model.shownFloor;
533
+ })), a.push(e.on("modelLoaded", () => {
534
+ n.value = e.model.floorLength;
535
+ })), i(() => {
536
+ let e;
537
+ for (; e = a.shift();) e();
538
+ }), [
539
+ t,
540
+ n,
541
+ r
542
+ ];
525
543
  }
526
- function ce() {
527
- var e = v(), r = s(e.helperVisible), n = function(t) {
528
- e.helperVisible = t;
529
- }, o = e.on("helpersVisibleChange", function(t) {
530
- r.value = t;
531
- });
532
- return l(function() {
533
- o();
534
- }), [r, n];
544
+ //#endregion
545
+ //#region build/vue/hooks/useFiveHelper.js
546
+ function K() {
547
+ let e = b(), t = c(e.helperVisible), n = (t) => {
548
+ e.helperVisible = t;
549
+ }, r = e.on("helpersVisibleChange", (e) => {
550
+ t.value = e;
551
+ });
552
+ return i(() => {
553
+ r();
554
+ }), [t, n];
535
555
  }
536
- function se() {
537
- return v();
556
+ //#endregion
557
+ //#region build/vue/hooks/unsafe__useFiveInject.js
558
+ function q() {
559
+ return b();
538
560
  }
539
- function W(e) {
540
- return e.model.bounding.clone();
561
+ //#endregion
562
+ //#region build/vue/hooks/useFiveModelBounding.js
563
+ function J(e) {
564
+ return e.model.bounding.clone();
541
565
  }
542
- function de() {
543
- var e = v(), r = p(W(e)), n = e.on("modelLoaded", function() {
544
- r.value = W(e);
545
- });
546
- return l(function() {
547
- n();
548
- }), r;
566
+ function Y() {
567
+ let e = b(), t = u(J(e)), n = e.on("modelLoaded", () => {
568
+ t.value = J(e);
569
+ });
570
+ return i(() => {
571
+ n();
572
+ }), t;
549
573
  }
550
- function ge() {
551
- var e = v();
552
- return e.scene;
574
+ //#endregion
575
+ //#region build/vue/hooks/useFiveScene.js
576
+ function X() {
577
+ return b().scene;
553
578
  }
554
- function he() {
555
- var e = v(), r = p(e.model), n = e.on("modelLoaded", function() {
556
- r.value = e.model;
557
- });
558
- return l(function() {
559
- n();
560
- }), r;
579
+ //#endregion
580
+ //#region build/vue/hooks/useFiveModel.js
581
+ function Z() {
582
+ let e = b(), t = u(e.model), n = e.on("modelLoaded", () => {
583
+ t.value = e.model;
584
+ });
585
+ return i(() => {
586
+ n();
587
+ }), t;
561
588
  }
562
- export {
563
- X as FiveCanvas,
564
- Y as FiveProvider,
565
- se as unsafe__useFiveInject,
566
- oe as useFiveAction,
567
- ue as useFiveCameraDirection,
568
- ie as useFiveCameraRaycaster,
569
- ne as useFiveCurrentObserver,
570
- re as useFiveCurrentState,
571
- te as useFiveEventCallback,
572
- le as useFiveFloor,
573
- ce as useFiveHelper,
574
- he as useFiveModel,
575
- de as useFiveModelBounding,
576
- fe as useFiveModelIntersectRaycaster,
577
- ve as useFiveModelReadyState,
578
- ae as useFiveProject2d,
579
- ge as useFiveScene,
580
- ee as useFiveState,
581
- Z as useFiveWorks
582
- };
589
+ //#endregion
590
+ export { S as FiveCanvas, O as FiveProvider, q as unsafe__useFiveInject, P as useFiveAction, B as useFiveCameraDirection, R as useFiveCameraRaycaster, M as useFiveCurrentObserver, j as useFiveCurrentState, N as useFiveEventCallback, G as useFiveFloor, K as useFiveHelper, Z as useFiveModel, Y as useFiveModelBounding, H as useFiveModelIntersectRaycaster, W as useFiveModelReadyState, I as useFiveProject2d, X as useFiveScene, A as useFiveState, k as useFiveWorks };