@realsee/dnalogel 3.6.0 → 3.7.0
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/dist/CruisePlugin/BaseController.d.ts +159 -0
- package/dist/CruisePlugin/Move.d.ts +40 -0
- package/dist/CruisePlugin/Work.d.ts +120 -0
- package/dist/CruisePlugin/index.d.ts +6 -4
- package/dist/CruisePlugin/typing.d.ts +2 -2
- package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/dist/GuideLinePlugin/Controller.d.ts +1 -6
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3565 -3466
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/dist/shared-utils/five/fiveReady.d.ts +2 -0
- package/libs/CruisePlugin/BaseController.d.ts +159 -0
- package/libs/CruisePlugin/BaseController.js +231 -0
- package/libs/CruisePlugin/Move.d.ts +40 -0
- package/libs/CruisePlugin/Move.js +137 -0
- package/libs/CruisePlugin/Work.d.ts +120 -0
- package/libs/CruisePlugin/Work.js +598 -0
- package/libs/CruisePlugin/index.d.ts +6 -4
- package/libs/CruisePlugin/index.js +19 -12
- package/libs/CruisePlugin/typing.d.ts +2 -2
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
- package/libs/GuideLinePlugin/Controller.d.ts +1 -6
- package/libs/GuideLinePlugin/Controller.js +49 -62
- package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
- package/libs/GuideLinePlugin/GuideLineItem.js +14 -10
- package/libs/GuideLinePlugin/index.js +21 -17
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +126 -119
- package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/libs/shared-utils/five/fiveLoaded.js +30 -0
- package/libs/shared-utils/five/fiveReady.d.ts +2 -0
- package/libs/shared-utils/five/fiveReady.js +28 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/formatRad.js +7 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +3 -3
- package/dist/CruisePlugin/Controller.d.ts +0 -171
- package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
- package/libs/CruisePlugin/Controller.d.ts +0 -171
- package/libs/CruisePlugin/Controller.js +0 -760
- /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
- /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.js → shared-utils/vectorToCoordinate.js} +0 -0
package/libs/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { index as
|
|
38
|
-
import { CSS3DRender as
|
|
39
|
-
import { Model as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { Polyline as
|
|
43
|
-
import { default as
|
|
44
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
45
|
-
import { ModelItemLabelPlugin as
|
|
46
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { Plugin as
|
|
48
|
-
import { GuideLineItem$1 as
|
|
49
|
-
import { GuideLineModeItem$1 as
|
|
50
|
-
import { default as
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
3
|
+
import { PaintBrush as Jp } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Qp } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Zp } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as re } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as ie } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as pe, modelRoomLabelPluginServerParams as ee } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as ne } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Pe } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as fe } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as ge } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as de } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as Te, ROOM_FETILE_TYPE_MAP as Le, ROOM_TYPE_MAP as Ce } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Ee } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Re } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as ye } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Se, Rotation as De } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as be } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Fe } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as ce } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as Ne } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as we } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as He } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as je } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as $e } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as qe } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Je } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as Qe } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as Ze, MovePlugin as ol } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as tl } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as ml } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as el } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as nl } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as Pl } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as fl } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { index as gl } from "./shared-utils/index.js";
|
|
38
|
+
import { CSS3DRender as dl } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
|
+
import { Model as Tl } from "./PanoMeasurePlugin/Model/index.js";
|
|
40
|
+
import { default as Cl } from "./PanoMeasurePlugin/Model/point.js";
|
|
41
|
+
import { default as El } from "./PanoMeasurePlugin/Model/line.js";
|
|
42
|
+
import { Polyline as Rl } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
43
|
+
import { default as yl } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
44
|
+
import { DISPLAY_STRATEGY_TYPE as Sl } from "./ModelItemLabelPlugin/typings.js";
|
|
45
|
+
import { ModelItemLabelPlugin as Gl } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
46
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as vl } from "./ItemLabelPlugin/typings.js";
|
|
47
|
+
import { Plugin as Yl } from "./ItemLabelPlugin/Plugin.js";
|
|
48
|
+
import { GuideLineItem$1 as Vl } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
49
|
+
import { GuideLineModeItem$1 as hl } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
50
|
+
import { default as Bl, default as Hl } from "./CruisePlugin/Work.js";
|
|
51
|
+
import { default as jl } from "./CruisePlugin/Move.js";
|
|
52
|
+
import { typing as $l } from "./CruisePlugin/typing/index.js";
|
|
53
|
+
import { default as ql, pluginFlag as zl } from "./PanoTagPlugin/controller/index.js";
|
|
54
|
+
import { defaultGlobalConfig as Kl } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
55
|
+
import { ContentType as Xl, DimensionType as Zl, PointType as on } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
56
|
+
import { Object3DHelperController as tn, PLUGIN as mn } from "./Object3DHelperPlugin/Controller.js";
|
|
57
|
+
import { typings as en } from "./PanoVideoPlugin/typings/index.js";
|
|
57
58
|
import "./components/PaintBrush/Controller.js";
|
|
58
59
|
import "./components/PaintBrush/utils.js";
|
|
59
60
|
import "./components/PaintBrush/tween.js";
|
|
@@ -247,6 +248,7 @@ import "./PanoDoorLabelPlugin/BaseController.js";
|
|
|
247
248
|
import "./PanoDoorLabelPlugin/DoorLabelItem.js";
|
|
248
249
|
import "./PanoDoorLabelPlugin/utils.js";
|
|
249
250
|
import "./GuideLinePlugin/Controller.js";
|
|
251
|
+
import "./shared-utils/five/fiveLoaded.js";
|
|
250
252
|
import "./shared-utils/log.js";
|
|
251
253
|
import "./GuideLinePlugin/utils/createLineGeometry.js";
|
|
252
254
|
import "./vendor/polyline-normals/index.js";
|
|
@@ -362,10 +364,12 @@ import "./GuideLinePlugin/utils/index.js";
|
|
|
362
364
|
import "./CruisePlugin/utils/coordinatesAngle.js";
|
|
363
365
|
import "./CruisePlugin/utils/coordinatesToVector.js";
|
|
364
366
|
import "./CruisePlugin/utils/safeCall.js";
|
|
365
|
-
import "./CruisePlugin/utils/vectorToCoordinates.js";
|
|
366
|
-
import "./CruisePlugin/utils/formatRad.js";
|
|
367
|
-
import "./CruisePlugin/utils/linerValue.js";
|
|
368
367
|
import "./CruisePlugin/utils/sleep.js";
|
|
368
|
+
import "./shared-utils/vectorToCoordinate.js";
|
|
369
|
+
import "./shared-utils/formatRad.js";
|
|
370
|
+
import "./CruisePlugin/BaseController.js";
|
|
371
|
+
import "./CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
372
|
+
import "./shared-utils/five/fiveReady.js";
|
|
369
373
|
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
370
374
|
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
371
375
|
import "./shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
@@ -420,66 +424,69 @@ import "./shared-utils/three/getRaycaster.js";
|
|
|
420
424
|
r();
|
|
421
425
|
o();
|
|
422
426
|
export {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
427
|
+
Pl as AreaMakerPlugin,
|
|
428
|
+
dl as CSS3DRender,
|
|
429
|
+
re as CSS3DRenderPlugin,
|
|
430
|
+
Se as CameraMovementEffect,
|
|
431
|
+
ye as CameraMovementPlugin,
|
|
432
|
+
Xl as ContentType,
|
|
433
|
+
Ze as CruisePlugin,
|
|
434
|
+
Bl as CruisePluginController,
|
|
435
|
+
$l as CruisePluginTypes,
|
|
436
|
+
fl as CurrentPanoImagePlugin,
|
|
437
|
+
$e as DIRECTION,
|
|
438
|
+
Sl as DISPLAY_STRATEGY_TYPE,
|
|
439
|
+
Zl as DimensionType,
|
|
440
|
+
ne as FLOOR_PLAN_ATTACHED_TO,
|
|
441
|
+
Te as FLOOR_TYPE_MAP,
|
|
442
|
+
Vl as GuideLineItem,
|
|
443
|
+
hl as GuideLineModeItem,
|
|
444
|
+
Qe as GuideLinePlugin,
|
|
445
|
+
vl as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
446
|
+
Yl as ItemLabelPlugin,
|
|
447
|
+
yl as Magnifier,
|
|
448
|
+
fe as MapviewFloorplanPlugin,
|
|
449
|
+
Ee as ModelChassisCompassPlugin,
|
|
450
|
+
Re as ModelEntryDoorGuidePlugin,
|
|
451
|
+
Pe as ModelFloorplanPlugin,
|
|
452
|
+
Gl as ModelItemLabelPlugin,
|
|
453
|
+
pe as ModelRoomLabelPlugin,
|
|
454
|
+
je as ModelTVVideoPlugin,
|
|
455
|
+
Zp as ModelViewPlugin,
|
|
456
|
+
jl as MoveController,
|
|
457
|
+
ol as MovePlugin,
|
|
458
|
+
tn as Object3DHelperController,
|
|
459
|
+
ml as Object3DHelperPlugin,
|
|
460
|
+
mn as PLUGIN,
|
|
461
|
+
Jp as PaintBrush,
|
|
462
|
+
Qp as PaintBrushTypeEnum,
|
|
463
|
+
ce as PanoCompassPlugin,
|
|
464
|
+
ie as PanoCursorRaycasterPlugin,
|
|
465
|
+
Je as PanoDoorLabelPlugin,
|
|
466
|
+
de as PanoFloorplanRadarPlugin,
|
|
467
|
+
Ne as PanoMeasurePlugin,
|
|
468
|
+
El as PanoMeasurePluginLine,
|
|
469
|
+
Tl as PanoMeasurePluginModel,
|
|
470
|
+
Cl as PanoMeasurePluginPoint,
|
|
471
|
+
Rl as PanoMeasurePluginPolyline,
|
|
472
|
+
be as PanoRulerPlugin,
|
|
473
|
+
Fe as PanoRulerProPlugin,
|
|
474
|
+
we as PanoSpatialTagPlugin,
|
|
475
|
+
tl as PanoTagPlugin,
|
|
476
|
+
ql as PanoTagPluginController,
|
|
477
|
+
el as PanoVideoPlugin,
|
|
478
|
+
en as PanoVideoPluginType,
|
|
479
|
+
nl as PipelinePlugin,
|
|
480
|
+
on as PointType,
|
|
481
|
+
Le as ROOM_FETILE_TYPE_MAP,
|
|
482
|
+
Ce as ROOM_TYPE_MAP,
|
|
483
|
+
De as Rotation,
|
|
484
|
+
ge as TopviewFloorplanPlugin,
|
|
485
|
+
gl as Util,
|
|
486
|
+
Hl as WalkController,
|
|
487
|
+
Kl as defaultGlobalConfig,
|
|
488
|
+
qe as itemLabelPluginServerParams,
|
|
489
|
+
He as modelItemLabelPluginServerParams,
|
|
490
|
+
ee as modelRoomLabelPluginServerParams,
|
|
491
|
+
zl as pluginFlag
|
|
485
492
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var i = (e, o, r) => new Promise((c, d) => {
|
|
2
|
+
var u = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
t(r.next(n));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
d(a);
|
|
7
|
+
}
|
|
8
|
+
}, w = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
t(r.throw(n));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
d(a);
|
|
13
|
+
}
|
|
14
|
+
}, t = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(u, w);
|
|
15
|
+
t((r = r.apply(e, o)).next());
|
|
16
|
+
});
|
|
17
|
+
function k(e) {
|
|
18
|
+
return i(this, null, function* () {
|
|
19
|
+
return new Promise((o) => {
|
|
20
|
+
if (e.work) {
|
|
21
|
+
o();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
e.once("loaded", () => o());
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
k as waitFiveLoaded
|
|
30
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var u = (i, n, t) => new Promise((y, r) => {
|
|
2
|
+
var c = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
o(t.next(e));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
r(a);
|
|
7
|
+
}
|
|
8
|
+
}, d = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
o(t.throw(e));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
r(a);
|
|
13
|
+
}
|
|
14
|
+
}, o = (e) => e.done ? y(e.value) : Promise.resolve(e.value).then(c, d);
|
|
15
|
+
o((t = t.apply(i, n)).next());
|
|
16
|
+
});
|
|
17
|
+
function m(i) {
|
|
18
|
+
return u(this, null, function* () {
|
|
19
|
+
return new Promise((n) => {
|
|
20
|
+
i.ready().then(() => n()), setTimeout(() => {
|
|
21
|
+
console.warn("fiveReady timeout"), n();
|
|
22
|
+
}, 2e3);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
m as fiveReady
|
|
28
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.7.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.7.0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.22.9",
|
|
39
|
-
"@realsee/five": "6.0.0-alpha.
|
|
39
|
+
"@realsee/five": "6.0.0-alpha.50",
|
|
40
40
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
41
41
|
"@tsconfig/svelte": "^4.0.1",
|
|
42
42
|
"@tweenjs/tween.js": "^20.0.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"svelte-carousel": "1.0.25",
|
|
73
73
|
"svelte-preprocess": "^5.0.4",
|
|
74
74
|
"three": "0.117.1",
|
|
75
|
-
"type-fest": "
|
|
75
|
+
"type-fest": "4.6.0",
|
|
76
76
|
"typedoc": "^0.24.8",
|
|
77
77
|
"typescript": "^5.1.6",
|
|
78
78
|
"vite": "4.3.2",
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
2
|
-
import type { BaseOptions } from '../base/BasePlugin';
|
|
3
|
-
import * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
|
-
import type { PluginState, EventMap, PluginServerData, PluginData, Config } from './typing';
|
|
5
|
-
export declare const pluginFlag: (name: string) => string;
|
|
6
|
-
export default class CruisePluginController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
7
|
-
static PluginVersion: string;
|
|
8
|
-
state: PluginState;
|
|
9
|
-
protected data?: PluginData;
|
|
10
|
-
private config?;
|
|
11
|
-
private privateState;
|
|
12
|
-
private GuideLine?;
|
|
13
|
-
constructor(five: Five, config?: Config);
|
|
14
|
-
/**
|
|
15
|
-
* @description Load Data and State
|
|
16
|
-
*/
|
|
17
|
-
load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
20
|
-
*/
|
|
21
|
-
play(options?: {
|
|
22
|
-
userAction?: boolean;
|
|
23
|
-
}): void;
|
|
24
|
-
/**
|
|
25
|
-
* @description If playing, first pause, then play from keyframes index/id
|
|
26
|
-
* @param {number} options.index play from keyframes index
|
|
27
|
-
* @param {string} options.id play from keyframes id
|
|
28
|
-
*/
|
|
29
|
-
playFrom(options: {
|
|
30
|
-
userAction?: boolean;
|
|
31
|
-
index?: number;
|
|
32
|
-
id?: string;
|
|
33
|
-
}): void;
|
|
34
|
-
/**
|
|
35
|
-
* @description Play from first keyframe
|
|
36
|
-
*/
|
|
37
|
-
playFromStart(options?: {
|
|
38
|
-
userAction?: boolean;
|
|
39
|
-
}): void;
|
|
40
|
-
/**
|
|
41
|
-
* @description Pause
|
|
42
|
-
*/
|
|
43
|
-
pause(options?: {
|
|
44
|
-
userAction?: boolean;
|
|
45
|
-
}): void;
|
|
46
|
-
/**
|
|
47
|
-
* @description Show guide line
|
|
48
|
-
*/
|
|
49
|
-
show(options?: {
|
|
50
|
-
userAction?: boolean;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* @description Hide guide line
|
|
54
|
-
*/
|
|
55
|
-
hide(options?: {
|
|
56
|
-
userAction?: boolean;
|
|
57
|
-
}): Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* @description Enable
|
|
60
|
-
*/
|
|
61
|
-
enable(options?: {
|
|
62
|
-
userAction?: boolean;
|
|
63
|
-
}): void;
|
|
64
|
-
/**
|
|
65
|
-
* @description Disable
|
|
66
|
-
*/
|
|
67
|
-
disable(options?: {
|
|
68
|
-
userAction?: boolean;
|
|
69
|
-
}): void;
|
|
70
|
-
/**
|
|
71
|
-
* @description Dispose
|
|
72
|
-
*/
|
|
73
|
-
dispose(): void;
|
|
74
|
-
/**
|
|
75
|
-
* @description Set state
|
|
76
|
-
*/
|
|
77
|
-
setState(state: Partial<PluginState>, options?: BaseOptions & Record<string, any>): void;
|
|
78
|
-
/**
|
|
79
|
-
* @description Format data
|
|
80
|
-
*/
|
|
81
|
-
protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
|
|
82
|
-
private handleEnable;
|
|
83
|
-
private handleVisible;
|
|
84
|
-
private changePlayState;
|
|
85
|
-
/**
|
|
86
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
87
|
-
* @param {number} options.playFromIndex play from keyframes index
|
|
88
|
-
* @param {string} options.playFromId play from keyframes id
|
|
89
|
-
*/
|
|
90
|
-
private handlePlay;
|
|
91
|
-
/**
|
|
92
|
-
* @description: Pause and record pause state
|
|
93
|
-
*/
|
|
94
|
-
private handlePause;
|
|
95
|
-
/**
|
|
96
|
-
* @description Play single keyframe
|
|
97
|
-
*/
|
|
98
|
-
private playKeyframe;
|
|
99
|
-
/**
|
|
100
|
-
* @description: listen interupted by five gesture
|
|
101
|
-
*/
|
|
102
|
-
private addInterruptListener;
|
|
103
|
-
/**
|
|
104
|
-
* @description: getPlayPromise
|
|
105
|
-
*/
|
|
106
|
-
private getPlayPromise;
|
|
107
|
-
/**
|
|
108
|
-
* @description Action promise queue in sequence
|
|
109
|
-
*/
|
|
110
|
-
private actionPromiseQueue;
|
|
111
|
-
/**
|
|
112
|
-
* @description Action move keyframe
|
|
113
|
-
*/
|
|
114
|
-
private move;
|
|
115
|
-
/**
|
|
116
|
-
* @description Action rotate keyframe
|
|
117
|
-
*/
|
|
118
|
-
private rotate;
|
|
119
|
-
/**
|
|
120
|
-
* @description Update five camera
|
|
121
|
-
*/
|
|
122
|
-
private updateCamera;
|
|
123
|
-
/**
|
|
124
|
-
* @description: Change five pano
|
|
125
|
-
*/
|
|
126
|
-
private changePano;
|
|
127
|
-
/**
|
|
128
|
-
* @description: Change play speed
|
|
129
|
-
*/
|
|
130
|
-
private changeSpeed;
|
|
131
|
-
/**
|
|
132
|
-
* @description Get duration by speed
|
|
133
|
-
*/
|
|
134
|
-
private getSpeededDuration;
|
|
135
|
-
/**
|
|
136
|
-
* @description Get ratate progress
|
|
137
|
-
*/
|
|
138
|
-
private getProgress;
|
|
139
|
-
/**
|
|
140
|
-
* @description Change five mode
|
|
141
|
-
*/
|
|
142
|
-
private changeMode;
|
|
143
|
-
/**
|
|
144
|
-
* @description Force interupt five updateCamera
|
|
145
|
-
*/
|
|
146
|
-
private forceInteruptUpdateCamera;
|
|
147
|
-
private getPauseData;
|
|
148
|
-
/**
|
|
149
|
-
* @description Set pause data
|
|
150
|
-
*/
|
|
151
|
-
private setPauseData;
|
|
152
|
-
/**
|
|
153
|
-
* @description Clear pause data
|
|
154
|
-
*/
|
|
155
|
-
private clearPauseData;
|
|
156
|
-
/**
|
|
157
|
-
* @description: Restore state that before loaded
|
|
158
|
-
*/
|
|
159
|
-
private clear;
|
|
160
|
-
private handleDispose;
|
|
161
|
-
/**
|
|
162
|
-
* @description Action function if plugin is enable
|
|
163
|
-
*/
|
|
164
|
-
private actionIfStateIsEnabled;
|
|
165
|
-
/**
|
|
166
|
-
* @description: Wait for five work ready
|
|
167
|
-
*/
|
|
168
|
-
private waitFiveLoaded;
|
|
169
|
-
private setFiveLinearUpdateCamera;
|
|
170
|
-
private setFiveOriginUpdateCamera;
|
|
171
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function linerValue(x0: number, v0: number, t1: number, t: number): number;
|