@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
package/components/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var M = (o, n, t) => n in o ? j(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
|
|
3
3
|
var g = (o, n, t) => (M(o, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import
|
|
5
|
-
function
|
|
4
|
+
import { Tween as W, Easing as $ } from "@tweenjs/tween.js";
|
|
5
|
+
function U() {
|
|
6
6
|
}
|
|
7
7
|
const S = () => Promise.resolve(), k = {
|
|
8
8
|
__queue: Promise.resolve()
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function q(o = S) {
|
|
11
11
|
k.__queue = k.__queue.then(o).catch(S);
|
|
12
12
|
}
|
|
13
13
|
function b(o, n, t) {
|
|
@@ -27,20 +27,19 @@ function B(o) {
|
|
|
27
27
|
};
|
|
28
28
|
return { control: t, end: e };
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function O(o, n, t = U) {
|
|
31
31
|
new Promise((e) => {
|
|
32
32
|
setTimeout(() => {
|
|
33
33
|
t(), e(!0);
|
|
34
34
|
}, n * o);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const I = window, H = window.requestAnimationFrame || I.webkitRequestAnimationFrame || ((o) => setTimeout(o, 16));
|
|
38
38
|
function D(o, n = 0) {
|
|
39
39
|
n <= 0 ? H(o) : H(() => D(o, n - 1));
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const s = new U.Tween(o).to(n, t).easing(e).start();
|
|
41
|
+
function A(o, n, t, e = $.Linear.None) {
|
|
42
|
+
const s = new W(o).to(n, t).easing(e).start();
|
|
44
43
|
function i(c) {
|
|
45
44
|
!s.update(c) || requestAnimationFrame(i);
|
|
46
45
|
}
|
|
@@ -408,7 +407,7 @@ class X extends P {
|
|
|
408
407
|
timestamp: s,
|
|
409
408
|
end: r === c - 1
|
|
410
409
|
};
|
|
411
|
-
|
|
410
|
+
O(r, 20, () => {
|
|
412
411
|
this.emit("stateChange", l, e);
|
|
413
412
|
});
|
|
414
413
|
}
|
|
@@ -436,8 +435,8 @@ class X extends P {
|
|
|
436
435
|
break;
|
|
437
436
|
}
|
|
438
437
|
}
|
|
439
|
-
handleDrawLine(t, e, { withUndo: s = !1 }, i =
|
|
440
|
-
!e || Object.prototype.toString.call(e) != "[object Object]" || Object.keys(e).length === 0 || (console.log("handleDrawLine", e, e.line),
|
|
438
|
+
handleDrawLine(t, e, { withUndo: s = !1 }, i = U) {
|
|
439
|
+
!e || Object.prototype.toString.call(e) != "[object Object]" || Object.keys(e).length === 0 || (console.log("handleDrawLine", e, e.line), q(() => new Promise((c) => {
|
|
441
440
|
if (s || (this.canvas[t] || (this.canvas[t] = this.initCanvas("_paintBrush-canvas--sync")), this.data[t] || (this.data[t] = []), this.data[t].push(e)), !this.canvas[t])
|
|
442
441
|
return;
|
|
443
442
|
const r = this.canvas[t].getContext("2d");
|