@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.
- package/components/index.js +10 -11
- package/dist/index.cjs.js +38 -38
- package/dist/index.es.js +1288 -1288
- package/dist/index.js +1288 -1288
- package/dist/index.umd.js +31 -31
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/enums/CameraMovementEffect.html +1 -1
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PaintBrushTypeEnum.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +1 -1
- package/docs/interfaces/FloorplanEntrance.html +6 -6
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
- package/docs/interfaces/FloorplanFloorData.html +1 -1
- package/docs/interfaces/FloorplanImagePosition.html +1 -1
- package/docs/interfaces/FloorplanObserver.html +1 -1
- package/docs/interfaces/FloorplanOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanPosition.html +1 -1
- package/docs/interfaces/FloorplanRoomItem.html +5 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +1 -1
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +6 -6
- package/docs/interfaces/FloorplanServerFloorData.html +1 -1
- package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
- package/docs/interfaces/FloorplanServerObserver.html +1 -1
- package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanServerPosition.html +1 -1
- package/docs/interfaces/FloorplanServerRoomItem.html +6 -6
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +1 -1
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +1 -1
- package/docs/interfaces/PaintBrushState.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/controller/index.js +18 -17
- package/libs/components/PaintBrush/tween.d.ts +0 -55
- package/libs/components/PaintBrush/tween.js +7 -9
- package/package.json +2 -2
- package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
- package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +0 -168
- package/libs/PanoTagPlugin/mocks/mock1.js +0 -123
- package/libs/PanoTagPlugin/mocks/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/mock7.js +0 -228
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
|
-
var C = (
|
|
3
|
-
var a = (
|
|
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
|
|
9
|
+
import w from "../Components/Tag/index.js";
|
|
10
10
|
import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
11
|
-
import { addDebugPoints as
|
|
11
|
+
import { addDebugPoints as R } from "../utils/addDebugPoints.js";
|
|
12
12
|
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
13
|
-
import { actionAfterFiveModelLoad as
|
|
14
|
-
import { normalPositionToPositions as
|
|
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 = (
|
|
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 &&
|
|
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),
|
|
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 (
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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 :
|
|
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
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
10
|
+
return m({ progress: 0 }, { progress: 1 }, e, n);
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
14
|
-
|
|
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.
|
|
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.
|
|
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",
|