@realsee/dnalogel 2.1.0-alpha.19 → 2.1.0-alpha.20

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 (119) hide show
  1. package/components/index.js +10 -11
  2. package/dist/index.cjs.js +38 -38
  3. package/dist/index.es.js +1288 -1288
  4. package/dist/index.js +1288 -1288
  5. package/dist/index.umd.js +31 -31
  6. package/docs/classes/CruisePluginController.html +14 -14
  7. package/docs/classes/Magnifier.html +4 -4
  8. package/docs/classes/ModelRoomLabelController.html +4 -4
  9. package/docs/classes/Object3DHelperController.html +9 -9
  10. package/docs/classes/PaintBrush.html +3 -3
  11. package/docs/classes/PanoTagPluginController.html +23 -23
  12. package/docs/enums/CameraMovementEffect.html +1 -1
  13. package/docs/enums/ContentType.html +7 -7
  14. package/docs/enums/DIRECTION.html +1 -1
  15. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  16. package/docs/enums/DimensionType.html +1 -1
  17. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  18. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  19. package/docs/enums/LinkType.html +1 -1
  20. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  21. package/docs/enums/PointType.html +1 -1
  22. package/docs/enums/Rotation.html +1 -1
  23. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  24. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  25. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  26. package/docs/interfaces/FloorplanBounding.html +3 -3
  27. package/docs/interfaces/FloorplanData.html +1 -1
  28. package/docs/interfaces/FloorplanEntrance.html +6 -6
  29. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  30. package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
  31. package/docs/interfaces/FloorplanFloorData.html +1 -1
  32. package/docs/interfaces/FloorplanImagePosition.html +1 -1
  33. package/docs/interfaces/FloorplanObserver.html +1 -1
  34. package/docs/interfaces/FloorplanOutlineItem.html +1 -1
  35. package/docs/interfaces/FloorplanPosition.html +1 -1
  36. package/docs/interfaces/FloorplanRoomItem.html +5 -5
  37. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  38. package/docs/interfaces/FloorplanServerBounding.html +3 -3
  39. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  40. package/docs/interfaces/FloorplanServerData.html +1 -1
  41. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  42. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  43. package/docs/interfaces/FloorplanServerEntrance.html +6 -6
  44. package/docs/interfaces/FloorplanServerFloorData.html +1 -1
  45. package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
  46. package/docs/interfaces/FloorplanServerObserver.html +1 -1
  47. package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
  48. package/docs/interfaces/FloorplanServerPosition.html +1 -1
  49. package/docs/interfaces/FloorplanServerRoomItem.html +6 -6
  50. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  51. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  52. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  54. package/docs/interfaces/LineJson.html +1 -1
  55. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  58. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  60. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  63. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  64. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  67. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  68. package/docs/interfaces/Object3DHelperState.html +1 -1
  69. package/docs/interfaces/OpenParameter.html +1 -1
  70. package/docs/interfaces/PaintBrushAction.html +7 -7
  71. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  72. package/docs/interfaces/PaintBrushState.html +1 -1
  73. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  74. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  75. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  76. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  77. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  78. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  79. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  82. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  89. package/docs/interfaces/Point.html +1 -1
  90. package/docs/interfaces/PointJson.html +1 -1
  91. package/docs/interfaces/Room.html +1 -1
  92. package/docs/interfaces/RoomInfo.html +1 -1
  93. package/docs/interfaces/RoomLabel.html +7 -7
  94. package/docs/interfaces/Scissor.html +4 -4
  95. package/docs/interfaces/TagConfig.html +3 -3
  96. package/docs/interfaces/Tags.html +3 -3
  97. package/docs/modules.html +21 -21
  98. package/libs/PanoTagPlugin/controller/index.js +18 -17
  99. package/libs/components/PaintBrush/tween.d.ts +0 -55
  100. package/libs/components/PaintBrush/tween.js +7 -9
  101. package/package.json +2 -2
  102. package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
  103. package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
  104. package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
  105. package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
  106. package/libs/PanoTagPlugin/mocks/mock1.d.ts +0 -168
  107. package/libs/PanoTagPlugin/mocks/mock1.js +0 -123
  108. package/libs/PanoTagPlugin/mocks/mock2.d.ts +0 -233
  109. package/libs/PanoTagPlugin/mocks/mock2.js +0 -296
  110. package/libs/PanoTagPlugin/mocks/mock3.d.ts +0 -22
  111. package/libs/PanoTagPlugin/mocks/mock3.js +0 -32
  112. package/libs/PanoTagPlugin/mocks/mock4.d.ts +0 -56
  113. package/libs/PanoTagPlugin/mocks/mock4.js +0 -60
  114. package/libs/PanoTagPlugin/mocks/mock5.d.ts +0 -13
  115. package/libs/PanoTagPlugin/mocks/mock5.js +0 -17
  116. package/libs/PanoTagPlugin/mocks/mock6.d.ts +0 -16
  117. package/libs/PanoTagPlugin/mocks/mock6.js +0 -27
  118. package/libs/PanoTagPlugin/mocks/mock7.d.ts +0 -22
  119. package/libs/PanoTagPlugin/mocks/mock7.js +0 -228
@@ -1,17 +1,17 @@
1
1
  var T = Object.defineProperty;
2
- var C = (h, d, e) => d in h ? T(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e;
3
- var a = (h, d, e) => (C(h, typeof d != "symbol" ? d + "" : d, e), e);
2
+ var C = (d, h, e) => h in d ? T(d, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[h] = e;
3
+ var a = (d, h, e) => (C(d, typeof h != "symbol" ? h + "" : h, e), e);
4
4
  import { Subscribe as D } from "@realsee/five";
5
5
  import { Quaternion as y } from "three";
6
6
  import { T as S, o as c } from "../../TagComputer.5bd7014b.js";
7
7
  import { w as P } from "../../index.ad783a2f.js";
8
8
  import A from "../Components/PointTag.js";
9
- import R from "../Components/Tag/index.js";
9
+ import w from "../Components/Tag/index.js";
10
10
  import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
11
- import { addDebugPoints as w } from "../utils/addDebugPoints.js";
11
+ import { addDebugPoints as R } from "../utils/addDebugPoints.js";
12
12
  import { planeNormal as E } from "../utils/planeNormal.js";
13
- import { actionAfterFiveModelLoad as U } from "../utils/actionAfterFiveModelLoad.js";
14
- import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
13
+ import { actionAfterFiveModelLoad as k } from "../utils/actionAfterFiveModelLoad.js";
14
+ import { normalPositionToPositions as U } from "../utils/normalPositionToPositions.js";
15
15
  import { debounce as m } from "../utils/debounce.js";
16
16
  import { throttle as F } from "../utils/throttle.js";
17
17
  import { resizeObserver as u } from "../utils/resizeObserver.js";
@@ -59,7 +59,7 @@ import "../../CSS3DRenderPlugin/CSS3DRender.js";
59
59
  import "three/examples/jsm/renderers/CSS3DRenderer";
60
60
  import "../../CSS3DRenderPlugin/utils/evenNumber.js";
61
61
  import "../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
62
- const b = "1.1.1", g = `DnalogelPlugin-PanoTagPlugin@${b}`, L = !1, ze = (h) => `${g}--${h}`;
62
+ const b = "1.1.1", g = `DnalogelPlugin-PanoTagPlugin@${b}`, L = !1, ze = (d) => `${g}--${d}`;
63
63
  class je extends S {
64
64
  constructor(e, t) {
65
65
  super(e);
@@ -107,7 +107,7 @@ class je extends S {
107
107
  this.clearTags(), console.log(g, "load:", { data: e }), this.params.mergePluginDefaultConfigToLoadDataConfig ? this.config = c.exports({}, this.config, {
108
108
  globalConfig: (i = e.globalConfig) != null ? i : {},
109
109
  contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
110
- }) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && w(this.five, this.tags);
110
+ }) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && R(this.five, this.tags);
111
111
  }
112
112
  addTag(e, t) {
113
113
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
@@ -119,7 +119,7 @@ class je extends S {
119
119
  clickable: n.clickable
120
120
  };
121
121
  }).filter((o) => o.position);
122
- this.tags.push(...s), U(this.five, () => {
122
+ this.tags.push(...s), k(this.five, () => {
123
123
  var o, n, r;
124
124
  if (this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.store.eventListenerDisposer = this.addEventListener(), !this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
125
125
  const l = this.addResizeObserver();
@@ -254,13 +254,14 @@ class je extends S {
254
254
  clickhandler(e) {
255
255
  if (e.target === "TagPoint") {
256
256
  if (!e.tag.state)
257
- return;
257
+ return console.warn("Clickhandler: params.tag.state is undefined");
258
258
  const t = this.getTagConfig(e.tag);
259
- if (typeof t.unfoldedConfig == "object") {
260
- if ((t.unfoldedConfig.disableUnfold || t.unfoldedConfig.keep) && !e.tag.state.unfolded)
261
- return;
262
- } else
263
- e.tag.state.unfolded = !e.tag.state.unfolded;
259
+ if (typeof t.unfoldedConfig == "object")
260
+ if (t.unfoldedConfig.disableUnfold || t.unfoldedConfig.keep) {
261
+ if (!e.tag.state.unfolded)
262
+ return console.warn("Clickhandler: Can not unfold");
263
+ } else
264
+ e.tag.state.unfolded = !e.tag.state.unfolded;
264
265
  e.tag.state.unfolded && this.tags.forEach((i) => {
265
266
  i.id !== e.tag.id && i.state && (i.state.unfolded = !1);
266
267
  }), this.updateRenderAllTags();
@@ -337,11 +338,11 @@ class je extends S {
337
338
  return;
338
339
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = O(this.five)), t.pointType === f.PointTag && !t.normal)
339
340
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
340
- const s = t.pointType === f.PlaneTag ? t.position : k(this.five.camera.position, p(t.position), p(t.normal)), o = t.pointType === f.PlaneTag ? E(t.position) : p(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
341
+ const s = t.pointType === f.PlaneTag ? t.position : U(this.five.camera.position, p(t.position), p(t.normal)), o = t.pointType === f.PlaneTag ? E(t.position) : p(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
341
342
  if (!r)
342
343
  return;
343
344
  this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
344
- svelteApp: new R({
345
+ svelteApp: new w({
345
346
  target: r.container,
346
347
  props: {
347
348
  tag: t,
@@ -1,59 +1,4 @@
1
1
  import { Tween } from '@tweenjs/tween.js';
2
- export declare const Easing: {
3
- Linear: {
4
- None: (amount: number) => number;
5
- };
6
- Quadratic: {
7
- In: (amount: number) => number;
8
- Out: (amount: number) => number;
9
- InOut: (amount: number) => number;
10
- };
11
- Cubic: {
12
- In: (amount: number) => number;
13
- Out: (amount: number) => number;
14
- InOut: (amount: number) => number;
15
- };
16
- Quartic: {
17
- In: (amount: number) => number;
18
- Out: (amount: number) => number;
19
- InOut: (amount: number) => number;
20
- };
21
- Quintic: {
22
- In: (amount: number) => number;
23
- Out: (amount: number) => number;
24
- InOut: (amount: number) => number;
25
- };
26
- Sinusoidal: {
27
- In: (amount: number) => number;
28
- Out: (amount: number) => number;
29
- InOut: (amount: number) => number;
30
- };
31
- Exponential: {
32
- In: (amount: number) => number;
33
- Out: (amount: number) => number;
34
- InOut: (amount: number) => number;
35
- };
36
- Circular: {
37
- In: (amount: number) => number;
38
- Out: (amount: number) => number;
39
- InOut: (amount: number) => number;
40
- };
41
- Elastic: {
42
- In: (amount: number) => number;
43
- Out: (amount: number) => number;
44
- InOut: (amount: number) => number;
45
- };
46
- Back: {
47
- In: (amount: number) => number;
48
- Out: (amount: number) => number;
49
- InOut: (amount: number) => number;
50
- };
51
- Bounce: {
52
- In: (amount: number) => number;
53
- Out: (amount: number) => number;
54
- InOut: (amount: number) => number;
55
- };
56
- };
57
2
  export interface TweenRes extends Tween<any> {
58
3
  onDestroy: (fn: () => void) => any;
59
4
  destroy: () => any;
@@ -1,17 +1,15 @@
1
- import a from "@tweenjs/tween.js";
2
- const u = a.Easing;
3
- function f(e, n, s, o = u.Linear.None) {
4
- const t = new a.Tween(e).to(n, s).easing(o).start();
5
- function r(i) {
6
- !t.update(i) || requestAnimationFrame(r);
1
+ import { Tween as i, Easing as u } from "@tweenjs/tween.js";
2
+ function m(e, n, a, o = u.Linear.None) {
3
+ const t = new i(e).to(n, a).easing(o).start();
4
+ function r(s) {
5
+ !t.update(s) || requestAnimationFrame(r);
7
6
  }
8
7
  return requestAnimationFrame(r), t;
9
8
  }
10
9
  function c(e, n) {
11
- return f({ progress: 0 }, { progress: 1 }, e, n);
10
+ return m({ progress: 0 }, { progress: 1 }, e, n);
12
11
  }
13
12
  export {
14
- u as Easing,
15
- f as default,
13
+ m as default,
16
14
  c as tweenProgress
17
15
  };
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "name": "@realsee/dnalogel",
3
3
  "main": "dist/index.es.js",
4
4
  "module": "dist/index.es.js",
5
- "browser": "dist/index.umd.js",
5
+ "browser": "dist/index.es.js",
6
6
  "type": "module",
7
7
  "types": "libs/index.d.ts",
8
8
  "author": "REALSEE-DEVELOPER",
9
9
  "repository": "https://github.com/realsee-developer/dnalogel.git",
10
10
  "description": "如视 VR 看房插件合集",
11
11
  "private": false,
12
- "version": "2.1.0-alpha.19",
12
+ "version": "2.1.0-alpha.20",
13
13
  "license": "SEE LICENSE IN TERMS.txt",
14
14
  "scripts": {
15
15
  "build": "sh bin/build-production.sh",
@@ -1,2 +0,0 @@
1
- import type { Object3D, Scene } from 'three';
2
- export default function addObject3D(item: any, scene: Scene): Promise<Object3D>;