@realsee/dnalogel 2.1.0-alpha.27 → 2.1.0-alpha.29

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 (139) hide show
  1. package/dist/index.cjs.js +556 -0
  2. package/dist/index.es.js +8387 -8231
  3. package/dist/index.js +8387 -8231
  4. package/dist/index.umd.js +556 -0
  5. package/docs/classes/CruisePluginController.html +14 -14
  6. package/docs/classes/Magnifier.html +4 -4
  7. package/docs/classes/ModelRoomLabelController.html +4 -4
  8. package/docs/classes/Object3DHelperController.html +9 -9
  9. package/docs/classes/PaintBrush.html +3 -3
  10. package/docs/classes/PanoTagPluginController.html +23 -23
  11. package/docs/enums/CameraMovementEffect.html +2 -2
  12. package/docs/enums/ContentType.html +7 -7
  13. package/docs/enums/DIRECTION.html +1 -1
  14. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  15. package/docs/enums/DimensionType.html +1 -1
  16. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  17. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  18. package/docs/enums/LinkType.html +1 -1
  19. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  20. package/docs/enums/PointType.html +1 -1
  21. package/docs/enums/Rotation.html +2 -2
  22. package/docs/index.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/ContentTypeMap.html +3 -3
  27. package/docs/interfaces/FloorplanBounding.html +4 -4
  28. package/docs/interfaces/FloorplanData.html +2 -2
  29. package/docs/interfaces/FloorplanEntrance.html +7 -7
  30. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  31. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  32. package/docs/interfaces/FloorplanFloorData.html +2 -2
  33. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  34. package/docs/interfaces/FloorplanObserver.html +2 -2
  35. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  36. package/docs/interfaces/FloorplanPosition.html +2 -2
  37. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  38. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  39. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  40. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  41. package/docs/interfaces/FloorplanServerData.html +2 -2
  42. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  43. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  44. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  45. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  46. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  47. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  48. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  49. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  50. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  51. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  52. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  54. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  55. package/docs/interfaces/LineJson.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  58. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  60. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  63. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  64. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  67. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  68. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  69. package/docs/interfaces/Object3DHelperState.html +1 -1
  70. package/docs/interfaces/OpenParameter.html +2 -2
  71. package/docs/interfaces/PaintBrushAction.html +7 -7
  72. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  73. package/docs/interfaces/PaintBrushState.html +1 -1
  74. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  75. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  76. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  77. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  79. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  92. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  93. package/docs/interfaces/Point.html +1 -1
  94. package/docs/interfaces/PointJson.html +1 -1
  95. package/docs/interfaces/Room.html +1 -1
  96. package/docs/interfaces/RoomInfo.html +1 -1
  97. package/docs/interfaces/RoomLabel.html +7 -7
  98. package/docs/interfaces/RoomRules.html +1 -1
  99. package/docs/interfaces/Rooms.html +1 -1
  100. package/docs/interfaces/Scissor.html +5 -5
  101. package/docs/interfaces/TagConfig.html +3 -3
  102. package/docs/interfaces/Tags.html +3 -3
  103. package/docs/modules.html +21 -21
  104. package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +15 -4
  105. package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -143
  106. package/libs/CSS3DRenderPlugin/Controller.d.ts +2 -0
  107. package/libs/CSS3DRenderPlugin/Controller.js +47 -26
  108. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +22 -4
  109. package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +56 -37
  110. package/libs/Object3DHelperPlugin/Controller.js +24 -23
  111. package/libs/PanoTagPlugin/Components/Common/Audio.js +39 -41
  112. package/libs/PanoTagPlugin/Components/Common/Media.js +1060 -1031
  113. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +49 -57
  114. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +27 -27
  115. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +22 -22
  116. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +7 -7
  117. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +64 -66
  118. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -99
  119. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +35 -33
  120. package/libs/PanoTagPlugin/Components/Tag/index.js +60 -63
  121. package/libs/PanoTagPlugin/Components/TagContainer.js +187 -0
  122. package/libs/PanoTagPlugin/Components/TagWrapper.js +61 -62
  123. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  124. package/libs/PanoTagPlugin/controller/index.d.ts +2 -1
  125. package/libs/PanoTagPlugin/controller/index.js +52 -42
  126. package/libs/PanoTagPlugin/index.js +2 -2
  127. package/libs/PanoTagPlugin/tag.config.js +1 -0
  128. package/libs/{TagComputer.0920083a.js → TagComputer.92e6d9a9.js} +0 -0
  129. package/libs/index.js +2 -2
  130. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +63 -53
  131. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +12 -13
  132. package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +43 -45
  133. package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +16 -10
  134. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -1
  135. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +43 -43
  136. package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -2
  137. package/libs/shared-utils/Object3DHelper/index.js +12 -12
  138. package/package.json +2 -2
  139. package/libs/PanoTagPlugin/Components/PointTag.js +0 -162
@@ -1,15 +1,15 @@
1
- var f = Object.defineProperty;
2
- var b = (d, e, s) => e in d ? f(d, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[e] = s;
3
- var n = (d, e, s) => (b(d, typeof e != "symbol" ? e + "" : e, s), s);
4
- import { Subscribe as v } from "../Subscribe.js";
5
- const u = "v1.0.1", C = "Object3DHelper", p = `${C}@${u}`, c = 0.4, S = () => {
1
+ var c = Object.defineProperty;
2
+ var f = (d, e, s) => e in d ? c(d, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[e] = s;
3
+ var n = (d, e, s) => (f(d, typeof e != "symbol" ? e + "" : e, s), s);
4
+ import { Subscribe as b } from "../Subscribe.js";
5
+ const v = "v1.0.1", u = "Object3DHelper", p = `${u}@${v}`, S = () => {
6
6
  console.error(`${p} is disposed`);
7
7
  }, k = () => {
8
8
  console.warn(`${p} is disabled`);
9
- }, E = () => {
9
+ }, C = () => {
10
10
  console.error(`${p} is disabled`);
11
11
  };
12
- class O {
12
+ class m {
13
13
  constructor(e, s) {
14
14
  n(this, "controllers", {});
15
15
  n(this, "state", {
@@ -17,7 +17,7 @@ class O {
17
17
  enabled: !0,
18
18
  disposed: !1
19
19
  });
20
- n(this, "hooks", new v());
20
+ n(this, "hooks", new b());
21
21
  n(this, "helpers");
22
22
  n(this, "eventListener", {});
23
23
  n(this, "handlePositionUpdate", (e, ...s) => {
@@ -59,7 +59,7 @@ class O {
59
59
  if (this.state.disposed)
60
60
  return S();
61
61
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
62
- return E();
62
+ return C();
63
63
  const t = { ...this.state };
64
64
  this.state = { ...this.state, ...e }, e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
65
65
  }
@@ -100,14 +100,14 @@ class O {
100
100
  }
101
101
  handleEnable(e, s = !0) {
102
102
  e ? (this.everyControllerDo((t) => {
103
- t.enable(), t.setOpacity(c);
103
+ t.enable();
104
104
  }), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
105
105
  t.disable(), t.restoreOpacity();
106
106
  }), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
107
107
  }
108
108
  handleVisible(e, s = !0) {
109
109
  e ? (this.everyControllerDo((t) => {
110
- t.show(), t.setOpacity(c);
110
+ t.show();
111
111
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
112
112
  t.hide(), t.restoreOpacity();
113
113
  }), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
@@ -136,5 +136,5 @@ class O {
136
136
  }
137
137
  }
138
138
  export {
139
- O as Object3DHelper
139
+ m as Object3DHelper
140
140
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "main": "dist/index.js",
3
+ "main": "dist/index.es.js",
4
4
  "types": "libs/index.d.ts",
5
5
  "author": "REALSEE-DEVELOPER",
6
6
  "repository": "https://github.com/realsee-developer/dnalogel.git",
7
7
  "description": "如视 VR 看房插件合集",
8
8
  "private": false,
9
- "version": "2.1.0-alpha.27",
9
+ "version": "2.1.0-alpha.29",
10
10
  "license": "SEE LICENSE IN TERMS.txt",
11
11
  "scripts": {
12
12
  "build": "sh bin/build-production.sh",
@@ -1,162 +0,0 @@
1
- import { S as k, i as A, s as T, a as P, e as _, b as y, I as p, c as S, B as z, d as C, f as v, t as w, g as b, w as j, j as q, o as B, m as I, p as M, y as W, k as D, h as E, C as F } from "../../index.164f1850.js";
2
- import G from "./TagWrapper.js";
3
- import "three";
4
- import "../utils/noTypecheck.js";
5
- import "../typings/tag.js";
6
- import "./Tag/index.js";
7
- import "./Tag/TextTag.js";
8
- import "./Common/Line/Straight.js";
9
- import "../../index.dca207cb.js";
10
- import "../../index.6a0eead1.js";
11
- import "../../shared-utils/uuid.js";
12
- import "./Common/Shadow.js";
13
- import "./Common/MultiLineText.js";
14
- import "./Common/Text.js";
15
- import "../../shared-utils/isNil.js";
16
- import "../utils/search.js";
17
- import "../utils/constants.js";
18
- import "./Common/Arrow.js";
19
- import "../Assets/Icon.js";
20
- import "../utils/doUtil.js";
21
- import "./Tag/ImageTextTag.js";
22
- import "./Common/Line/Polyline.js";
23
- import "./Common/Media.js";
24
- import "./Common/MediaItem.js";
25
- import "./Tag/MarketingTag.js";
26
- import "./Tag/AudioTag.js";
27
- import "./Common/Audio.js";
28
- import "./Tag/MediaPlane.js";
29
- import "./Tag/LinkTag.js";
30
- import "./Tag/CustomTag.js";
31
- import "./Common/Point/PointSwitch.js";
32
- import "./Common/Point/CustomPoint.js";
33
- import "./Common/Point/DefaultPoint.js";
34
- function H(r) {
35
- P(r, "svelte-1eci49s", ".tag--container.svelte-1eci49s{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tag.hide.svelte-1eci49s{display:none}.withAnimation.svelte-1eci49s{transition:opacity 0.3s linear}.tag--container.hide.svelte-1eci49s{opacity:0;pointer-events:none}.tag--container.hide.svelte-1eci49s *{pointer-events:none}");
36
- }
37
- function u(r, e, i) {
38
- const n = r.slice();
39
- return n[6] = e[i], n;
40
- }
41
- function d(r, e) {
42
- let i, n, l, s;
43
- const m = [
44
- {
45
- tag: e[6],
46
- hooks: e[2],
47
- state: e[3],
48
- mediaStore: e[4],
49
- temporaryState: e[5],
50
- withAnimation: e[0]
51
- }
52
- ];
53
- let o = {};
54
- for (let t = 0; t < m.length; t += 1)
55
- o = j(o, m[t]);
56
- return n = new G({ props: o }), {
57
- key: r,
58
- first: null,
59
- c() {
60
- var t, a, f;
61
- i = _("div"), q(n.$$.fragment), l = B(), y(i, "class", "tag svelte-1eci49s"), p(i, "hide", !((t = e[6].pointTagStyle) != null && t.leftPercent) || !((a = e[6].pointTagStyle) != null && a.topPercent) || e[6].enabled === !1 || !e[6].state || ((f = e[6].temporaryState) == null ? void 0 : f.visible) === !1), this.first = i;
62
- },
63
- m(t, a) {
64
- S(t, i, a), I(n, i, null), M(i, l), s = !0;
65
- },
66
- p(t, a) {
67
- var h, g, c;
68
- e = t;
69
- const f = a & 63 ? W(m, [
70
- {
71
- tag: e[6],
72
- hooks: e[2],
73
- state: e[3],
74
- mediaStore: e[4],
75
- temporaryState: e[5],
76
- withAnimation: e[0]
77
- }
78
- ]) : {};
79
- n.$set(f), (!s || a & 2) && p(i, "hide", !((h = e[6].pointTagStyle) != null && h.leftPercent) || !((g = e[6].pointTagStyle) != null && g.topPercent) || e[6].enabled === !1 || !e[6].state || ((c = e[6].temporaryState) == null ? void 0 : c.visible) === !1);
80
- },
81
- i(t) {
82
- s || (v(n.$$.fragment, t), s = !0);
83
- },
84
- o(t) {
85
- w(n.$$.fragment, t), s = !1;
86
- },
87
- d(t) {
88
- t && b(i), D(n);
89
- }
90
- };
91
- }
92
- function J(r) {
93
- let e, i = [], n = /* @__PURE__ */ new Map(), l, s = r[1];
94
- const m = (o) => o[6].id;
95
- for (let o = 0; o < s.length; o += 1) {
96
- let t = u(r, s, o), a = m(t);
97
- n.set(a, i[o] = d(a, t));
98
- }
99
- return {
100
- c() {
101
- e = _("div");
102
- for (let o = 0; o < i.length; o += 1)
103
- i[o].c();
104
- y(e, "class", "tag--container svelte-1eci49s"), p(e, "hide", !r[3].visible || !r[5].visible), p(e, "withAnimation", r[0]);
105
- },
106
- m(o, t) {
107
- S(o, e, t);
108
- for (let a = 0; a < i.length; a += 1)
109
- i[a].m(e, null);
110
- l = !0;
111
- },
112
- p(o, [t]) {
113
- t & 63 && (s = o[1], E(), i = z(i, t, m, 1, o, s, n, e, F, d, null, u), C()), (!l || t & 40) && p(e, "hide", !o[3].visible || !o[5].visible), (!l || t & 1) && p(e, "withAnimation", o[0]);
114
- },
115
- i(o) {
116
- if (!l) {
117
- for (let t = 0; t < s.length; t += 1)
118
- v(i[t]);
119
- l = !0;
120
- }
121
- },
122
- o(o) {
123
- for (let t = 0; t < i.length; t += 1)
124
- w(i[t]);
125
- l = !1;
126
- },
127
- d(o) {
128
- o && b(e);
129
- for (let t = 0; t < i.length; t += 1)
130
- i[t].d();
131
- }
132
- };
133
- }
134
- function K(r, e, i) {
135
- let { withAnimation: n = !1 } = e, { tags: l = [] } = e, { hooks: s } = e, { state: m } = e, { mediaStore: o } = e, { temporaryState: t } = e;
136
- return r.$$set = (a) => {
137
- "withAnimation" in a && i(0, n = a.withAnimation), "tags" in a && i(1, l = a.tags), "hooks" in a && i(2, s = a.hooks), "state" in a && i(3, m = a.state), "mediaStore" in a && i(4, o = a.mediaStore), "temporaryState" in a && i(5, t = a.temporaryState);
138
- }, [n, l, s, m, o, t];
139
- }
140
- class we extends k {
141
- constructor(e) {
142
- super(), A(
143
- this,
144
- e,
145
- K,
146
- J,
147
- T,
148
- {
149
- withAnimation: 0,
150
- tags: 1,
151
- hooks: 2,
152
- state: 3,
153
- mediaStore: 4,
154
- temporaryState: 5
155
- },
156
- H
157
- );
158
- }
159
- }
160
- export {
161
- we as default
162
- };