@realsee/dnalogel 3.52.3 → 3.53.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/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +40 -40
- package/dist/index.d.ts +1 -79
- package/dist/index.js +1606 -1567
- package/dist/index.umd.js +34 -34
- package/dist/shared-utils/exports.d.ts +2 -0
- package/dist/shared-utils/five/FivePuppet.d.ts +63 -0
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +14 -12
- package/libs/AreaMakerPlugin/index.js +4 -2
- package/libs/AreaMakerPlugin/utils/Item.js +4 -2
- package/libs/CSS3DRenderPlugin/Controller.js +4 -2
- package/libs/CSS3DRenderPlugin/index.js +7 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
- package/libs/CruisePlugin/BaseController.js +6 -4
- package/libs/CruisePlugin/Move.js +4 -3
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +8 -7
- package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
- package/libs/CurrentPanoImagePlugin/index.js +5 -3
- package/libs/GuideLinePlugin/Controller.js +6 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
- package/libs/GuideLinePlugin/index.js +8 -7
- package/libs/ModelMakerPlugin/Controller.js +4 -2
- package/libs/ModelMakerPlugin/index.js +4 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
- package/libs/ModelTVVideoPlugin/index.js +4 -2
- package/libs/Object3DHelperPlugin/Controller.js +4 -2
- package/libs/Object3DHelperPlugin/index.js +7 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
- package/libs/PanoRulerProPlugin/Controller.js +11 -10
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -6
- package/libs/PanoTagPlugin/index.js +13 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +4 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
- package/libs/PanoVideoPlugin/index.js +7 -5
- package/libs/PipelinePlugin/Controller.js +4 -2
- package/libs/PipelinePlugin/index.js +5 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
- package/libs/Sculpt/Meshes/Cylinder.js +6 -5
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polygon.js +11 -10
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +18 -17
- package/libs/Sculpt/utils/export.js +5 -5
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.d.ts +1 -79
- package/libs/index.js +156 -170
- package/libs/shared-utils/exports.d.ts +2 -0
- package/libs/shared-utils/exports.js +82 -0
- package/libs/shared-utils/five/FivePuppet.d.ts +63 -0
- package/libs/shared-utils/five/FivePuppet.js +48 -0
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +10 -78
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +2 -2
|
@@ -68,6 +68,8 @@ import "../../shared-utils/isNil.js";
|
|
|
68
68
|
import "../../shared-utils/three/core/Sphere.js";
|
|
69
69
|
import "animejs";
|
|
70
70
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
71
|
+
import "../../shared-utils/five/FivePuppet.js";
|
|
72
|
+
import "@realsee/five";
|
|
71
73
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
72
74
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
73
75
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -94,8 +96,8 @@ import "../../shared-utils/nearlyEqual.js";
|
|
|
94
96
|
import "../../shared-utils/to.js";
|
|
95
97
|
import "../../shared-utils/getPxmm.js";
|
|
96
98
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
97
|
-
const
|
|
99
|
+
const Wo = (o, r) => new t(o, r);
|
|
98
100
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
Wo as TopviewFloorplanPlugin,
|
|
102
|
+
Wo as default
|
|
101
103
|
};
|
package/libs/floorplan/index.js
CHANGED
package/libs/index.d.ts
CHANGED
|
@@ -26,82 +26,4 @@ export * from './AreaMakerPlugin';
|
|
|
26
26
|
export * from './CurrentPanoImagePlugin';
|
|
27
27
|
export * from './Sculpt';
|
|
28
28
|
export * from './ModelMakerPlugin';
|
|
29
|
-
|
|
30
|
-
import * as sculpt from './Sculpt/utils/export';
|
|
31
|
-
declare const Util: {
|
|
32
|
-
sculpt: typeof sculpt;
|
|
33
|
-
Interval: typeof _Util.Interval;
|
|
34
|
-
Rectangle: typeof _Util.Rectangle;
|
|
35
|
-
convexHull(points: import("./typings/math.type").Vector2Position[]): import("./typings/math.type").Vector2Position[];
|
|
36
|
-
inside: typeof _Util.inside;
|
|
37
|
-
pointInPolygon: typeof _Util.inside;
|
|
38
|
-
tag(five: import("@realsee/five").Five, position?: import("./shared-utils/positionToVector3").AnyPosition, config?: {
|
|
39
|
-
wrapper?: HTMLElement;
|
|
40
|
-
positionsForRotate?: import("./shared-utils/positionToVector3").AnyPosition[];
|
|
41
|
-
namespace?: string;
|
|
42
|
-
}): _Util.LightTag;
|
|
43
|
-
LightTag: typeof _Util.LightTag;
|
|
44
|
-
checkFiveModelLoaded(five: import("@realsee/five").Five): {
|
|
45
|
-
result: boolean;
|
|
46
|
-
msg: string;
|
|
47
|
-
};
|
|
48
|
-
isPanoramaLike(mode: import("@realsee/five").Mode): boolean;
|
|
49
|
-
isModelLike(mode: import("@realsee/five").Mode): boolean;
|
|
50
|
-
lookObject(five: import("@realsee/five").Five, object: import("three").Object3D, config?: {
|
|
51
|
-
scale?: number;
|
|
52
|
-
}): Promise<void>;
|
|
53
|
-
lookPoint(five: import("@realsee/five").Five, point: import("three").Vector3, config?: {
|
|
54
|
-
distance?: number;
|
|
55
|
-
}): Promise<void>;
|
|
56
|
-
waitFiveModelLoaded(five: import("@realsee/five").Five): Promise<void>;
|
|
57
|
-
fiveModelIsLoaded(five: import("@realsee/five").Five): boolean;
|
|
58
|
-
FiveDomEvents: typeof _Util.FiveDomEvents;
|
|
59
|
-
Magnifier: typeof _Util.Magnifier;
|
|
60
|
-
getCoordsFromClient(position: {
|
|
61
|
-
x: number;
|
|
62
|
-
y: number;
|
|
63
|
-
}, element: HTMLElement): import("three").Vector2;
|
|
64
|
-
getCoordsFromElement(position: {
|
|
65
|
-
x: number;
|
|
66
|
-
y: number;
|
|
67
|
-
}, element: HTMLElement): import("three").Vector2;
|
|
68
|
-
PointSelector: typeof _Util.PointSelector;
|
|
69
|
-
PointHelper: typeof _Util.PointHelper;
|
|
70
|
-
PointSelectorHelper: typeof _Util.PointSelectorHelper;
|
|
71
|
-
Object3D: typeof _Util.Object3D;
|
|
72
|
-
LineSegments: typeof _Util.LineSegments;
|
|
73
|
-
boxVertexes(box: {
|
|
74
|
-
max: import("./typings/math.type").Vector3Position;
|
|
75
|
-
min: import("./typings/math.type").Vector3Position;
|
|
76
|
-
}): import("three").Vector3[];
|
|
77
|
-
boxVertex(box: {
|
|
78
|
-
max: import("./typings/math.type").Vector3Position;
|
|
79
|
-
min: import("./typings/math.type").Vector3Position;
|
|
80
|
-
}, index: number): import("three").Vector3;
|
|
81
|
-
boundingBox(object3D: import("three").Object3D): import("three").Box3;
|
|
82
|
-
boundingSphere(object3D: import("three").Object3D): import("three").Sphere;
|
|
83
|
-
worldBoundingBox(object3D: import("three").Object3D): import("three").Box3;
|
|
84
|
-
worldBoundingSphere(object3D: import("three").Object3D): import("three").Sphere;
|
|
85
|
-
worldBounding<T extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T): T extends "box3" ? import("three").Box3 : import("three").Sphere;
|
|
86
|
-
bounding<T_1 extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T_1): T_1 extends "box3" ? import("three").Box3 : import("three").Sphere;
|
|
87
|
-
blink: typeof _Util.blink;
|
|
88
|
-
reblink: typeof _Util.reblink;
|
|
89
|
-
animeMap: Map<(HTMLElement | import("three").Object3D) | (HTMLElement | import("three").Object3D)[], _Util.AnimeInstance>;
|
|
90
|
-
isNil<T_2>(value: T_2): value is Extract<T_2, null>;
|
|
91
|
-
notNil<T_3>(value: T_3): value is T_3;
|
|
92
|
-
uuid: typeof _Util.uuid;
|
|
93
|
-
isAbsoluteURL(url: string): boolean;
|
|
94
|
-
absoluteUrl(baseUrl: string, url: string): string;
|
|
95
|
-
nextFrame(fn: (time: number) => void, delay?: number): void;
|
|
96
|
-
awaitNextFrame(): Promise<void>;
|
|
97
|
-
requestAnimationFrameInterval(callback?: (time: number) => any, frame?: number): () => void;
|
|
98
|
-
getFrameTime(): Promise<unknown>;
|
|
99
|
-
tweenProgress(duration?: number, easing?: (amount: number) => number): _Util.BetterTween<{
|
|
100
|
-
progress: number;
|
|
101
|
-
}>;
|
|
102
|
-
BetterTween: typeof _Util.BetterTween;
|
|
103
|
-
equal(value: any, other: any, opt?: {
|
|
104
|
-
deep: boolean;
|
|
105
|
-
}): boolean;
|
|
106
|
-
};
|
|
107
|
-
export { Util };
|
|
29
|
+
export * as Util from './shared-utils/exports';
|
package/libs/index.js
CHANGED
|
@@ -1,84 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { default as
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import { defaultGlobalConfig as ha } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
70
|
-
import { ContentType as wa, DimensionType as Ha, PointType as ja } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
71
|
-
import { Object3DHelperController as Wa, PLUGIN as qa } from "./Object3DHelperPlugin/Controller.js";
|
|
72
|
-
import { typings as Ja } from "./PanoVideoPlugin/typings/index.js";
|
|
73
|
-
import { createPoint as Qa } from "./Sculpt/Objects/Point/index.js";
|
|
74
|
-
import { createLine as Za } from "./Sculpt/Objects/Line/index.js";
|
|
75
|
-
import { createPolyline as rP } from "./Sculpt/Objects/Polyline/index.js";
|
|
76
|
-
import { createPolygon as iP } from "./Sculpt/Objects/Polygon/index.js";
|
|
77
|
-
import { createPrism as pP } from "./Sculpt/Objects/Prism/index.js";
|
|
78
|
-
import { createRectangle as lP } from "./Sculpt/Objects/Rectangle/index.js";
|
|
79
|
-
import { createCircle as aP } from "./Sculpt/Objects/Circle/index.js";
|
|
80
|
-
import { createCylinder as fP } from "./Sculpt/Objects/Cylinder/index.js";
|
|
81
|
-
import { createBox as xP } from "./Sculpt/Objects/Box/index.js";
|
|
1
|
+
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
|
+
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
+
import { PaintBrush as Cl } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as cl } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as _l } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Il } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Sl } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Al, modelRoomLabelPluginServerParams as Dl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as bl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Fl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as Vl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as Nl } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as kl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as Hl, ROOM_FETILE_TYPE_MAP as Ul, ROOM_TYPE_MAP as jl } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Wl } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as zl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as Kl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Xl, Rotation as Zl } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as rn } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as mn } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as en } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as nn } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as Pn } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as un } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as gn } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as dn } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as Tn } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Ln } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as Rn } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as En, MovePlugin as In } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as Sn } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as An } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as Gn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as vn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as Yn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as Bn } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as hn, SculptPlugin as kn } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as Hn } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { exports as jn } from "./shared-utils/exports.js";
|
|
40
|
+
import { CSS3DRender as Wn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as zn } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as Kn } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as Xn } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as oa } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as ta } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as ma } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as ea } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as na } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as Pa } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as ua } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as ga } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as da, default as Ma } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as Ca } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as ca } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as _a, pluginFlag as Ea } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as ya } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as Oa, DimensionType as Aa, PointType as Da } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as ba, PLUGIN as va } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as Ya } from "./PanoVideoPlugin/typings/index.js";
|
|
60
|
+
import { createPoint as Ba } from "./Sculpt/Objects/Point/index.js";
|
|
61
|
+
import { createLine as ha } from "./Sculpt/Objects/Line/index.js";
|
|
62
|
+
import { createPolyline as wa } from "./Sculpt/Objects/Polyline/index.js";
|
|
63
|
+
import { createPolygon as Ua } from "./Sculpt/Objects/Polygon/index.js";
|
|
64
|
+
import { createPrism as $a } from "./Sculpt/Objects/Prism/index.js";
|
|
65
|
+
import { createRectangle as qa } from "./Sculpt/Objects/Rectangle/index.js";
|
|
66
|
+
import { createCircle as Ja } from "./Sculpt/Objects/Circle/index.js";
|
|
67
|
+
import { createCylinder as Qa } from "./Sculpt/Objects/Cylinder/index.js";
|
|
68
|
+
import { createBox as Za } from "./Sculpt/Objects/Box/index.js";
|
|
82
69
|
import "./components/PaintBrush/Controller.js";
|
|
83
70
|
import "./components/PaintBrush/utils.js";
|
|
84
71
|
import "./components/PaintBrush/tween.js";
|
|
@@ -119,6 +106,7 @@ import "@realsee/five/line";
|
|
|
119
106
|
import "./shared-utils/isNil.js";
|
|
120
107
|
import "./shared-utils/three/core/Sphere.js";
|
|
121
108
|
import "animejs";
|
|
109
|
+
import "./shared-utils/five/FivePuppet.js";
|
|
122
110
|
import "./shared-utils/three/PointSelector/utils/html.js";
|
|
123
111
|
import "./shared-utils/five/initialCSS3DRender.js";
|
|
124
112
|
import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -491,13 +479,7 @@ import "./Sculpt/Meshes/Polygon.js";
|
|
|
491
479
|
import "./ModelMakerPlugin/utils/tagRenderer.js";
|
|
492
480
|
import "./ModelMakerPlugin/utils/Text.js";
|
|
493
481
|
import "./ModelMakerPlugin/item/prismItem.js";
|
|
494
|
-
import "./
|
|
495
|
-
import "./shared-utils/math/Rectangle.js";
|
|
496
|
-
import "./shared-utils/math/convexHull.js";
|
|
497
|
-
import "./shared-utils/math/inside.js";
|
|
498
|
-
import "./shared-utils/five/index.js";
|
|
499
|
-
import "./shared-utils/three/getCoords.js";
|
|
500
|
-
import "./shared-utils/five/lookObject.js";
|
|
482
|
+
import "./Sculpt/utils/export.js";
|
|
501
483
|
import "./Sculpt/Objects/Base/Editor.js";
|
|
502
484
|
import "./Sculpt/Editors/BoxMeshEditor.js";
|
|
503
485
|
import "./Sculpt/Editors/CircleMeshEditor.js";
|
|
@@ -512,6 +494,13 @@ import "./Sculpt/Meshes/Cylinder.js";
|
|
|
512
494
|
import "./Sculpt/Meshes/Rectangle.js";
|
|
513
495
|
import "./Sculpt/utils/three/RectangleGeometry.js";
|
|
514
496
|
import "./Sculpt/Meshes/RectangleWithEdge.js";
|
|
497
|
+
import "./shared-utils/math/Interval.js";
|
|
498
|
+
import "./shared-utils/math/Rectangle.js";
|
|
499
|
+
import "./shared-utils/math/convexHull.js";
|
|
500
|
+
import "./shared-utils/math/inside.js";
|
|
501
|
+
import "./shared-utils/five/index.js";
|
|
502
|
+
import "./shared-utils/three/getCoords.js";
|
|
503
|
+
import "./shared-utils/five/lookObject.js";
|
|
515
504
|
import "./Sculpt/Objects/Base/index.js";
|
|
516
505
|
import "./Sculpt/Objects/Point/Editor.js";
|
|
517
506
|
import "./shared-utils/three/vector3ToArray.js";
|
|
@@ -521,87 +510,84 @@ import "./Sculpt/Objects/Polyline/Editor.js";
|
|
|
521
510
|
import "./Sculpt/Meshes/Area.js";
|
|
522
511
|
import "./Sculpt/Objects/Polygon/Editor.js";
|
|
523
512
|
import "./Sculpt/utils/sortPositionsByCameraPosition.js";
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const bl = e(p({}, g), {
|
|
527
|
-
sculpt: s
|
|
528
|
-
});
|
|
513
|
+
r();
|
|
514
|
+
o();
|
|
529
515
|
export {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
516
|
+
Yn as AreaMakerPlugin,
|
|
517
|
+
Wn as CSS3DRender,
|
|
518
|
+
Il as CSS3DRenderPlugin,
|
|
519
|
+
Xl as CameraMovementEffect,
|
|
520
|
+
Kl as CameraMovementPlugin,
|
|
521
|
+
Oa as ContentType,
|
|
522
|
+
En as CruisePlugin,
|
|
523
|
+
da as CruisePluginController,
|
|
524
|
+
ca as CruisePluginTypes,
|
|
525
|
+
Bn as CurrentPanoImagePlugin,
|
|
526
|
+
dn as DIRECTION,
|
|
527
|
+
ma as DISPLAY_STRATEGY_TYPE,
|
|
528
|
+
Aa as DimensionType,
|
|
529
|
+
bl as FLOOR_PLAN_ATTACHED_TO,
|
|
530
|
+
Hl as FLOOR_TYPE_MAP,
|
|
531
|
+
ua as GuideLineItem,
|
|
532
|
+
ga as GuideLineModeItem,
|
|
533
|
+
Rn as GuideLinePlugin,
|
|
534
|
+
na as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
535
|
+
Pa as ItemLabelPlugin,
|
|
536
|
+
ta as Magnifier,
|
|
537
|
+
Vl as MapviewFloorplanPlugin,
|
|
538
|
+
Wl as ModelChassisCompassPlugin,
|
|
539
|
+
zl as ModelEntryDoorGuidePlugin,
|
|
540
|
+
Fl as ModelFloorplanPlugin,
|
|
541
|
+
ea as ModelItemLabelPlugin,
|
|
542
|
+
Hn as ModelMakerPlugin,
|
|
543
|
+
Al as ModelRoomLabelPlugin,
|
|
544
|
+
gn as ModelTVVideoPlugin,
|
|
545
|
+
_l as ModelViewPlugin,
|
|
546
|
+
Ca as MoveController,
|
|
547
|
+
In as MovePlugin,
|
|
548
|
+
ba as Object3DHelperController,
|
|
549
|
+
An as Object3DHelperPlugin,
|
|
550
|
+
va as PLUGIN,
|
|
551
|
+
Cl as PaintBrush,
|
|
552
|
+
cl as PaintBrushTypeEnum,
|
|
553
|
+
en as PanoCompassPlugin,
|
|
554
|
+
Sl as PanoCursorRaycasterPlugin,
|
|
555
|
+
Ln as PanoDoorLabelPlugin,
|
|
556
|
+
kl as PanoFloorplanRadarPlugin,
|
|
557
|
+
nn as PanoMeasurePlugin,
|
|
558
|
+
Xn as PanoMeasurePluginLine,
|
|
559
|
+
zn as PanoMeasurePluginModel,
|
|
560
|
+
Kn as PanoMeasurePluginPoint,
|
|
561
|
+
oa as PanoMeasurePluginPolyline,
|
|
562
|
+
rn as PanoRulerPlugin,
|
|
563
|
+
mn as PanoRulerProPlugin,
|
|
564
|
+
Pn as PanoSpatialTagPlugin,
|
|
565
|
+
Sn as PanoTagPlugin,
|
|
566
|
+
_a as PanoTagPluginController,
|
|
567
|
+
Gn as PanoVideoPlugin,
|
|
568
|
+
Ya as PanoVideoPluginType,
|
|
569
|
+
vn as PipelinePlugin,
|
|
570
|
+
Da as PointType,
|
|
571
|
+
Ul as ROOM_FETILE_TYPE_MAP,
|
|
572
|
+
jl as ROOM_TYPE_MAP,
|
|
573
|
+
Zl as Rotation,
|
|
574
|
+
hn as Sculpt,
|
|
575
|
+
kn as SculptPlugin,
|
|
576
|
+
Nl as TopviewFloorplanPlugin,
|
|
577
|
+
jn as Util,
|
|
578
|
+
Ma as WalkController,
|
|
579
|
+
Za as createBox,
|
|
580
|
+
Ja as createCircle,
|
|
581
|
+
Qa as createCylinder,
|
|
582
|
+
ha as createLine,
|
|
583
|
+
Ba as createPoint,
|
|
584
|
+
Ua as createPolygon,
|
|
585
|
+
wa as createPolyline,
|
|
586
|
+
$a as createPrism,
|
|
587
|
+
qa as createRectangle,
|
|
588
|
+
ya as defaultGlobalConfig,
|
|
589
|
+
Tn as itemLabelPluginServerParams,
|
|
590
|
+
un as modelItemLabelPluginServerParams,
|
|
591
|
+
Dl as modelRoomLabelPluginServerParams,
|
|
592
|
+
Ea as pluginFlag
|
|
607
593
|
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { _export as r } from "../Sculpt/utils/export.js";
|
|
2
|
+
import { Interval as e } from "./math/Interval.js";
|
|
3
|
+
import { Rectangle as t } from "./math/Rectangle.js";
|
|
4
|
+
import { convexHull as i } from "./math/convexHull.js";
|
|
5
|
+
import { inside as o } from "./math/inside.js";
|
|
6
|
+
import { LightTag as m, tag as n } from "./tag.js";
|
|
7
|
+
import { checkFiveModelLoaded as p } from "./five/index.js";
|
|
8
|
+
import { Magnifier as l } from "./three/Magnifier.js";
|
|
9
|
+
import { getCoordsFromClient as f, getCoordsFromElement as a } from "./three/getCoords.js";
|
|
10
|
+
import { PointSelector as d } from "./three/PointSelector/index.js";
|
|
11
|
+
import { PointHelper as g } from "./three/PointSelector/utils/PointHelper.js";
|
|
12
|
+
import { PointSelectorHelper as s } from "./three/PointSelector/utils/PointSelectorHelper.js";
|
|
13
|
+
import { Object3D as u } from "./three/core/Object3D.js";
|
|
14
|
+
import { LineSegments as b } from "./three/core/LineSegments.js";
|
|
15
|
+
import { bounding as c, boundingBox as x, boundingSphere as v, boxVertex as F, boxVertexes as P, worldBounding as L, worldBoundingBox as k, worldBoundingSphere as w } from "./three/boundingBox.js";
|
|
16
|
+
import { animeMap as M, blink as S, reblink as B } from "./three/blink.js";
|
|
17
|
+
import { isNil as _, notNil as h } from "./isNil.js";
|
|
18
|
+
import { uuid as j } from "./uuid.js";
|
|
19
|
+
import { absoluteUrl as I, isAbsoluteURL as O } from "./url/absoluteUrl.js";
|
|
20
|
+
import { awaitNextFrame as T, getFrameTime as y, nextFrame as C, requestAnimationFrameInterval as H } from "./animationFrame/index.js";
|
|
21
|
+
import { equal as N } from "./equal.js";
|
|
22
|
+
import { FivePuppet as q } from "./five/FivePuppet.js";
|
|
23
|
+
import { isModelLike as A, isPanoramaLike as D } from "./five/mode.js";
|
|
24
|
+
import { lookObject as E } from "./five/lookObject.js";
|
|
25
|
+
import { lookPoint as R } from "./five/lookPoint.js";
|
|
26
|
+
import { fiveModelIsLoaded as U, waitFiveModelLoaded as V } from "./five/fiveModelLoad.js";
|
|
27
|
+
import { FiveDomEvents as z } from "./five/FiveDomEvents.js";
|
|
28
|
+
import { BetterTween as G, tweenProgress as J } from "./animationFrame/BetterTween.js";
|
|
29
|
+
const ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
|
+
__proto__: null,
|
|
31
|
+
BetterTween: G,
|
|
32
|
+
FiveDomEvents: z,
|
|
33
|
+
FivePuppet: q,
|
|
34
|
+
Interval: e,
|
|
35
|
+
LightTag: m,
|
|
36
|
+
LineSegments: b,
|
|
37
|
+
Magnifier: l,
|
|
38
|
+
Object3D: u,
|
|
39
|
+
PointHelper: g,
|
|
40
|
+
PointSelector: d,
|
|
41
|
+
PointSelectorHelper: s,
|
|
42
|
+
Rectangle: t,
|
|
43
|
+
absoluteUrl: I,
|
|
44
|
+
animeMap: M,
|
|
45
|
+
awaitNextFrame: T,
|
|
46
|
+
blink: S,
|
|
47
|
+
bounding: c,
|
|
48
|
+
boundingBox: x,
|
|
49
|
+
boundingSphere: v,
|
|
50
|
+
boxVertex: F,
|
|
51
|
+
boxVertexes: P,
|
|
52
|
+
checkFiveModelLoaded: p,
|
|
53
|
+
convexHull: i,
|
|
54
|
+
equal: N,
|
|
55
|
+
fiveModelIsLoaded: U,
|
|
56
|
+
getCoordsFromClient: f,
|
|
57
|
+
getCoordsFromElement: a,
|
|
58
|
+
getFrameTime: y,
|
|
59
|
+
inside: o,
|
|
60
|
+
isAbsoluteURL: O,
|
|
61
|
+
isModelLike: A,
|
|
62
|
+
isNil: _,
|
|
63
|
+
isPanoramaLike: D,
|
|
64
|
+
lookObject: E,
|
|
65
|
+
lookPoint: R,
|
|
66
|
+
nextFrame: C,
|
|
67
|
+
notNil: h,
|
|
68
|
+
pointInPolygon: o,
|
|
69
|
+
reblink: B,
|
|
70
|
+
requestAnimationFrameInterval: H,
|
|
71
|
+
sculpt: r,
|
|
72
|
+
tag: n,
|
|
73
|
+
tweenProgress: J,
|
|
74
|
+
uuid: j,
|
|
75
|
+
waitFiveModelLoaded: V,
|
|
76
|
+
worldBounding: L,
|
|
77
|
+
worldBoundingBox: k,
|
|
78
|
+
worldBoundingSphere: w
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
80
|
+
export {
|
|
81
|
+
ko as exports
|
|
82
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
/**
|
|
4
|
+
* @description 模拟 Five 行为的 canvas,与 Five 唯一区别是 scene 是空的
|
|
5
|
+
* @usecase
|
|
6
|
+
* 当需 five 的 canvas 上层有一些额外的 Dom 元素比如平面图时,希望在这些 Dom 元素上层再绘制一些三维物体,可以
|
|
7
|
+
* 使用 FivePuppet,将要渲染的物体加入到 FivePuppet 的 scene 中即可。甚至可以是原本在 five 中的物体,可以使
|
|
8
|
+
* 用 `.clone()` 将物体克隆一份然后加入到 FivePuppet 的 scene 中。
|
|
9
|
+
* @example react
|
|
10
|
+
```typescript
|
|
11
|
+
import { Util } from '@realsee/dnalogel'
|
|
12
|
+
|
|
13
|
+
function App() {
|
|
14
|
+
const fivePuppet = React.useRef<Util.FivePuppet>()
|
|
15
|
+
const five = unsafe__useFiveInstance()
|
|
16
|
+
|
|
17
|
+
React.useEffect(() => {
|
|
18
|
+
fivePuppet.current = new Util.FivePuppet(five, { zIndex: 20 })
|
|
19
|
+
|
|
20
|
+
const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
|
|
21
|
+
fivePuppet.current.scene.add(object)
|
|
22
|
+
|
|
23
|
+
return () => {
|
|
24
|
+
fivePuppet.current?.destory()
|
|
25
|
+
}
|
|
26
|
+
}, [five])
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
* @example javascript
|
|
30
|
+
```typescript
|
|
31
|
+
import { Util } from '@realsee/dnalogel'
|
|
32
|
+
|
|
33
|
+
const five = new Five({
|
|
34
|
+
plugins: [
|
|
35
|
+
[(five) => new Util.FivePuppet(five), 'fivePuppet']
|
|
36
|
+
],
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const object = new THREE.Mesh(new THREE.BoxGeometry(), new THREE.MeshBasicMaterial({ color: 0xff0000 }))
|
|
40
|
+
five.plugins.fivePuppet.scene.add(object)
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export declare class FivePuppet {
|
|
44
|
+
scene: THREE.Scene;
|
|
45
|
+
private five;
|
|
46
|
+
private renderer;
|
|
47
|
+
private cancelRequestAnimationFrameId;
|
|
48
|
+
private camera;
|
|
49
|
+
private domInited;
|
|
50
|
+
private params?;
|
|
51
|
+
private _rendererCache;
|
|
52
|
+
private _cameraCache;
|
|
53
|
+
constructor(five: Five, params?: {
|
|
54
|
+
/**
|
|
55
|
+
* @description canvas 的 zIndex
|
|
56
|
+
* @default 1
|
|
57
|
+
*/
|
|
58
|
+
zIndex: number;
|
|
59
|
+
});
|
|
60
|
+
animate: () => void;
|
|
61
|
+
stopAnimate: () => void;
|
|
62
|
+
destory: () => void;
|
|
63
|
+
}
|