@realsee/dnalogel 2.2.7 → 2.3.1
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/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +5013 -4842
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +7 -6
- package/docs/index.html +6 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +197 -256
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +59 -62
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +17 -8
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +30 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +60 -52
- package/libs/ModelTVVideoPlugin/index.js +15 -7
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +103 -83
- package/libs/Object3DHelperPlugin/index.js +20 -12
- package/libs/PanoCompassPlugin/Controller.js +49 -41
- package/libs/PanoCompassPlugin/index.js +13 -5
- package/libs/PanoSpatialTagPlugin/Plugin.js +46 -38
- package/libs/PanoSpatialTagPlugin/index.js +13 -5
- package/libs/PanoTagPlugin/index.js +21 -13
- package/libs/index.js +102 -93
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/package.json +15 -14
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -66
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
|
@@ -7,19 +7,27 @@ import { pluginStyle as xe } from "./style.js";
|
|
|
7
7
|
import { render as Ee } from "../shared-utils/tinyEJSrender.js";
|
|
8
8
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
10
11
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
11
15
|
import "../shared-utils/Subscribe.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
13
16
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
15
18
|
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
16
24
|
import "../vendor/svelte/internal/index.js";
|
|
17
25
|
import "./store.js";
|
|
18
26
|
import "../vendor/svelte/store/index.js";
|
|
19
|
-
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
27
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Qe = (n, s) => {
|
|
20
28
|
var k, z, q, B, G, J, K, Q;
|
|
21
29
|
let j = s == null ? void 0 : s.container, y = 1.4;
|
|
22
|
-
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2,
|
|
30
|
+
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, f = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
23
31
|
S.classList.add("PanoSpatialTagPlugin"), Object.assign(S.style, xe);
|
|
24
32
|
const V = new we();
|
|
25
33
|
let Z = new Image();
|
|
@@ -52,20 +60,20 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
52
60
|
t.matrixWorldInverse
|
|
53
61
|
), g.setFromProjectionMatrix(P), e.tags.forEach((i) => {
|
|
54
62
|
const $ = t.position.clone().setY(y).distanceTo(i.position);
|
|
55
|
-
if ($ < A || $ >
|
|
63
|
+
if ($ < A || $ > f || !g.containsPoint(i.position))
|
|
56
64
|
return i.destroying = !0;
|
|
57
65
|
const x = i.position.clone().sub(t.position).setY(0);
|
|
58
66
|
if (x.angleTo(i.normal) > Math.PI / 2 - I && x.angleTo(i.normal) < Math.PI / 2 + I)
|
|
59
67
|
return i.destroying = !0;
|
|
60
68
|
}), e.tags.forEach((i) => {
|
|
61
69
|
i.destroying ? i.app.$set({
|
|
62
|
-
contentZoom: 0.1 + t.position.distanceTo(i.position) /
|
|
63
|
-
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) /
|
|
70
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / f,
|
|
71
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
|
|
64
72
|
destroying: i.destroying
|
|
65
73
|
}) : i.app.$set({
|
|
66
|
-
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) /
|
|
67
|
-
lineHeightZoom: 0.4 + (t.position.distanceTo(i.position) - A) /
|
|
68
|
-
contentZoom: 0.1 + t.position.distanceTo(i.position) /
|
|
74
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(i.position) / f),
|
|
75
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(i.position) - A) / f * 0.6,
|
|
76
|
+
contentZoom: 0.1 + t.position.distanceTo(i.position) / f
|
|
69
77
|
});
|
|
70
78
|
}), setTimeout(() => {
|
|
71
79
|
e.tags.forEach((i) => {
|
|
@@ -104,16 +112,16 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
104
112
|
), g.setFromProjectionMatrix(P);
|
|
105
113
|
const $ = e.tags.filter(
|
|
106
114
|
(d) => g.containsPoint(d.position) && !d.destroying
|
|
107
|
-
).length, x = e.points.reduce((d,
|
|
108
|
-
if (e.tags.find((l) =>
|
|
115
|
+
).length, x = e.points.reduce((d, m) => {
|
|
116
|
+
if (e.tags.find((l) => m.id === l.id && !l.destroying))
|
|
109
117
|
return d;
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
118
|
+
const u = t.position.clone().setY(y).distanceTo(m.position);
|
|
119
|
+
if (u < A || u > f || !g.containsPoint(m.position))
|
|
112
120
|
return d;
|
|
113
|
-
const E =
|
|
114
|
-
if (E.angleTo(
|
|
121
|
+
const E = m.position.clone().sub(t.position).setY(0);
|
|
122
|
+
if (E.angleTo(m.normal) > Math.PI / 2 - I && E.angleTo(m.normal) < Math.PI / 2 + I)
|
|
115
123
|
return d;
|
|
116
|
-
const w =
|
|
124
|
+
const w = m.position.clone().project(t);
|
|
117
125
|
if (!e.tags.every((l) => {
|
|
118
126
|
if (l.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
119
127
|
return !0;
|
|
@@ -124,12 +132,12 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
124
132
|
}))
|
|
125
133
|
return d;
|
|
126
134
|
const h = {
|
|
127
|
-
id:
|
|
128
|
-
position:
|
|
129
|
-
normal:
|
|
130
|
-
replacement:
|
|
131
|
-
weight:
|
|
132
|
-
distance:
|
|
135
|
+
id: m.id,
|
|
136
|
+
position: m.position,
|
|
137
|
+
normal: m.normal,
|
|
138
|
+
replacement: m.replacement,
|
|
139
|
+
weight: m.weight,
|
|
140
|
+
distance: u
|
|
133
141
|
};
|
|
134
142
|
let c;
|
|
135
143
|
for (let l = 0, b = d.length; l < b; l++) {
|
|
@@ -145,11 +153,11 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
145
153
|
}
|
|
146
154
|
return c !== void 0 ? d.splice(c, 0, h) : d.push(h), d;
|
|
147
155
|
}, []);
|
|
148
|
-
for (let d = 0,
|
|
149
|
-
const
|
|
150
|
-
if (p.find((c) =>
|
|
156
|
+
for (let d = 0, m = x.length; d < m && !($ + p.length >= oe); d++) {
|
|
157
|
+
const u = x[d];
|
|
158
|
+
if (p.find((c) => u.id === c.id))
|
|
151
159
|
continue;
|
|
152
|
-
const E =
|
|
160
|
+
const E = u.position.clone().project(t);
|
|
153
161
|
if (!e.tags.concat(p).every((c) => {
|
|
154
162
|
if (c.position.clone().sub(t.position).setY(0).angleTo(i.setY(0)) > Math.PI / 2)
|
|
155
163
|
return !0;
|
|
@@ -161,24 +169,24 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
161
169
|
continue;
|
|
162
170
|
const w = new a.Raycaster(
|
|
163
171
|
t.position.clone().setY(y),
|
|
164
|
-
|
|
172
|
+
u.position.clone().sub(t.position.clone().setY(y)).normalize(),
|
|
165
173
|
0,
|
|
166
|
-
|
|
174
|
+
u.distance + v
|
|
167
175
|
), [h] = e.intersectObjects ? w.intersectObjects(e.intersectObjects, !0) : n.model.bvhs.loaded ? n.model.intersectRaycaster(w) : w.intersectObjects(n.model.children, !0);
|
|
168
|
-
if (!!h &&
|
|
169
|
-
const { position: c, normal: l, id: b, replacement: O } =
|
|
176
|
+
if (!!h && u.distance - h.distance < v) {
|
|
177
|
+
const { position: c, normal: l, id: b, replacement: O } = u, me = new a.Plane().setFromNormalAndCoplanarPoint(l, c), X = c.clone().sub(t.position).cross(new a.Vector3(0, 1, 0)).setLength(D), fe = [
|
|
170
178
|
c.clone(),
|
|
171
179
|
c.clone().add(X),
|
|
172
180
|
c.clone().add(new a.Vector3(0, D, 0)).add(X),
|
|
173
181
|
c.clone().add(new a.Vector3(0, D, 0))
|
|
174
|
-
].map((be) =>
|
|
175
|
-
target:
|
|
182
|
+
].map((be) => me.projectPoint(be, new a.Vector3())), { container: ue, dispose: ge } = C.create3DDomContainer(fe) || {}, he = new Pe({
|
|
183
|
+
target: ue,
|
|
176
184
|
props: {
|
|
177
185
|
id: b,
|
|
178
186
|
content: e.render(e.template, O),
|
|
179
|
-
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(c) /
|
|
180
|
-
lineHeightZoom: 0.4 + (t.position.distanceTo(c) - A) /
|
|
181
|
-
contentZoom: 0.1 + t.position.distanceTo(c) /
|
|
187
|
+
lineWidthZoom: 0.38 * (0.01 + t.position.distanceTo(c) / f),
|
|
188
|
+
lineHeightZoom: 0.4 + (t.position.distanceTo(c) - A) / f * 0.6,
|
|
189
|
+
contentZoom: 0.1 + t.position.distanceTo(c) / f,
|
|
182
190
|
upsideDown: c.y > te,
|
|
183
191
|
folded: e.folded,
|
|
184
192
|
events: e.events,
|
|
@@ -253,6 +261,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
253
261
|
};
|
|
254
262
|
};
|
|
255
263
|
export {
|
|
256
|
-
|
|
257
|
-
|
|
264
|
+
Qe as PanoSpatialTagPlugin,
|
|
265
|
+
Qe as default
|
|
258
266
|
};
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import "./Plugin.js";
|
|
2
|
-
import { PanoSpatialTagPlugin as
|
|
2
|
+
import { PanoSpatialTagPlugin as B, PanoSpatialTagPlugin as C } from "./Plugin.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
6
6
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
7
7
|
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
8
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
9
13
|
import "../shared-utils/Subscribe.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
11
14
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
13
16
|
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
14
22
|
import "./Components/origins.js";
|
|
15
23
|
import "../vendor/svelte/internal/index.js";
|
|
16
24
|
import "./store.js";
|
|
@@ -19,6 +27,6 @@ import "./Components/tag.js";
|
|
|
19
27
|
import "./style.js";
|
|
20
28
|
import "../shared-utils/tinyEJSrender.js";
|
|
21
29
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
B as PanoSpatialTagPlugin,
|
|
31
|
+
C as default
|
|
24
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PanoTagPluginController as t } from "./controller/index.js";
|
|
2
|
-
import { PanoTagPluginController as
|
|
3
|
-
import { ContentType as
|
|
2
|
+
import { PanoTagPluginController as Ao, pluginFlag as Bo } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Go, DimensionType as Ho, LinkType as Io, PointType as Jo } from "./typings/tag.js";
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "three";
|
|
6
6
|
import "object-assign-deep";
|
|
@@ -68,17 +68,25 @@ import "../shared-utils/Subscribe.js";
|
|
|
68
68
|
import "../CSS3DRenderPlugin/index.js";
|
|
69
69
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
70
70
|
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
71
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
71
72
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
72
|
-
import "../CSS3DRenderPlugin/utils/
|
|
73
|
-
import "../CSS3DRenderPlugin/utils/
|
|
74
|
-
|
|
73
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
74
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
75
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
76
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
77
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
78
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
79
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
81
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
82
|
+
const qo = (o, r) => new t(o, r);
|
|
75
83
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
Go as ContentType,
|
|
85
|
+
Ho as DimensionType,
|
|
86
|
+
Io as LinkType,
|
|
87
|
+
qo as PanoTagPlugin,
|
|
88
|
+
Ao as PanoTagPluginController,
|
|
89
|
+
Jo as PointType,
|
|
90
|
+
qo as default,
|
|
91
|
+
Bo as pluginFlag
|
|
84
92
|
};
|
package/libs/index.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { PaintBrush as
|
|
2
|
-
import { PaintBrushTypeEnum as
|
|
3
|
-
import { ModelViewPlugin as
|
|
4
|
-
import { CSS3DRenderPlugin as
|
|
5
|
-
import { PanoCursorRaycasterPlugin as
|
|
6
|
-
import { ModelRoomLabelPlugin as
|
|
7
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
8
|
-
import { ModelFloorplanPlugin as
|
|
9
|
-
import { MapviewFloorplanPlugin as
|
|
10
|
-
import { TopviewFloorplanPlugin as
|
|
11
|
-
import { PanoFloorplanRadarPlugin as
|
|
12
|
-
import { FLOOR_TYPE_MAP as
|
|
13
|
-
import { ModelChassisCompassPlugin as
|
|
14
|
-
import { ModelEntryDoorGuidePlugin as
|
|
15
|
-
import { CameraMovementPlugin as
|
|
16
|
-
import { CameraMovementEffect as
|
|
17
|
-
import { PanoRulerPlugin as
|
|
18
|
-
import { PanoRulerProPlugin as
|
|
19
|
-
import { PanoCompassPlugin as
|
|
20
|
-
import { PanoMeasurePlugin as
|
|
21
|
-
import { PanoSpatialTagPlugin as
|
|
22
|
-
import { modelItemLabelPluginServerParams as
|
|
23
|
-
import { ModelTVVideoPlugin as
|
|
24
|
-
import { DIRECTION as
|
|
25
|
-
import { itemLabelPluginServerParams as
|
|
26
|
-
import { PanoDoorLabelPlugin as
|
|
27
|
-
import { GuideLinePlugin as
|
|
28
|
-
import { CruisePlugin as
|
|
29
|
-
import { PanoTagPlugin as
|
|
30
|
-
import { Object3DHelperPlugin as
|
|
31
|
-
import { index as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
1
|
+
import { PaintBrush as Jm } from "./components/PaintBrush/index.js";
|
|
2
|
+
import { PaintBrushTypeEnum as Qm } from "./components/PaintBrush/typings.js";
|
|
3
|
+
import { ModelViewPlugin as Xm } from "./ModelViewPlugin/Plugin.js";
|
|
4
|
+
import { CSS3DRenderPlugin as $m } from "./CSS3DRenderPlugin/index.js";
|
|
5
|
+
import { PanoCursorRaycasterPlugin as rp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
6
|
+
import { ModelRoomLabelPlugin as mp, modelRoomLabelPluginServerParams as pp } from "./ModelRoomLabelPlugin/index.js";
|
|
7
|
+
import { FLOOR_PLAN_ATTACHED_TO as ep } from "./floorplan/constant.js";
|
|
8
|
+
import { ModelFloorplanPlugin as np } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
9
|
+
import { MapviewFloorplanPlugin as ap } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
10
|
+
import { TopviewFloorplanPlugin as up } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
11
|
+
import { PanoFloorplanRadarPlugin as gp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
12
|
+
import { FLOOR_TYPE_MAP as sp, ROOM_FETILE_TYPE_MAP as Lp, ROOM_TYPE_MAP as Mp } from "./floorplan/typings/floorplanServerData.js";
|
|
13
|
+
import { ModelChassisCompassPlugin as Ep } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
14
|
+
import { ModelEntryDoorGuidePlugin as _p } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
15
|
+
import { CameraMovementPlugin as Op } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
16
|
+
import { CameraMovementEffect as Ip, Rotation as Ap } from "./CameraMovementPlugin/typing.js";
|
|
17
|
+
import { PanoRulerPlugin as bp } from "./PanoRulerPlugin/Plugin.js";
|
|
18
|
+
import { PanoRulerProPlugin as Fp } from "./PanoRulerProPlugin/index.js";
|
|
19
|
+
import { PanoCompassPlugin as yp } from "./PanoCompassPlugin/index.js";
|
|
20
|
+
import { PanoMeasurePlugin as Np } from "./PanoMeasurePlugin/index.js";
|
|
21
|
+
import { PanoSpatialTagPlugin as Vp } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
22
|
+
import { modelItemLabelPluginServerParams as wp } from "./ModelItemLabelPlugin/index.js";
|
|
23
|
+
import { ModelTVVideoPlugin as Hp } from "./ModelTVVideoPlugin/Plugin.js";
|
|
24
|
+
import { DIRECTION as jp } from "./ModelTVVideoPlugin/typings.js";
|
|
25
|
+
import { itemLabelPluginServerParams as qp } from "./ItemLabelPlugin/index.js";
|
|
26
|
+
import { PanoDoorLabelPlugin as Jp } from "./PanoDoorLabelPlugin/index.js";
|
|
27
|
+
import { GuideLinePlugin as Qp } from "./GuideLinePlugin/index.js";
|
|
28
|
+
import { CruisePlugin as Xp } from "./CruisePlugin/index.js";
|
|
29
|
+
import { PanoTagPlugin as $p } from "./PanoTagPlugin/index.js";
|
|
30
|
+
import { Object3DHelperPlugin as ri } from "./Object3DHelperPlugin/index.js";
|
|
31
|
+
import { index as mi } from "./shared-utils/index.js";
|
|
32
|
+
import { CSS3DRender as ii } from "./CSS3DRenderPlugin/CSS3DRender.js";
|
|
33
|
+
import { Magnifier as li } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
34
|
+
import { DISPLAY_STRATEGY_TYPE as Pi } from "./ModelItemLabelPlugin/typings.js";
|
|
35
|
+
import { ModelItemLabelPlugin as fi } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
36
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as xi } from "./ItemLabelPlugin/typings.js";
|
|
37
|
+
import { Plugin as Ti } from "./ItemLabelPlugin/Plugin.js";
|
|
38
|
+
import { default as Li } from "./CruisePlugin/Controller.js";
|
|
39
|
+
import { PanoTagPluginController as di, pluginFlag as Ei } from "./PanoTagPlugin/controller/index.js";
|
|
40
|
+
import { ContentType as _i, DimensionType as Ci, LinkType as Oi, PointType as Si } from "./PanoTagPlugin/typings/tag.js";
|
|
41
|
+
import { Object3DHelperController as Ai, PLUGIN as Di, VERSION as bi } from "./Object3DHelperPlugin/Controller.js";
|
|
41
42
|
import "./components/PaintBrush/Controller.js";
|
|
42
43
|
import "./components/PaintBrush/utils.js";
|
|
43
44
|
import "./components/PaintBrush/tween.js";
|
|
@@ -48,13 +49,20 @@ import "./components/PaintBrush/style.js";
|
|
|
48
49
|
import "@realsee/five";
|
|
49
50
|
import "three";
|
|
50
51
|
import "./CSS3DRenderPlugin/Controller.js";
|
|
51
|
-
import "./CSS3DRenderPlugin/
|
|
52
|
+
import "./CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
53
|
+
import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
54
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
55
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
56
|
+
import "./CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
57
|
+
import "./CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
58
|
+
import "./CSS3DRenderPlugin/utils/even.js";
|
|
53
59
|
import "./shared-utils/Subscribe.js";
|
|
54
|
-
import "./CSS3DRenderPlugin/utils/evenNumber.js";
|
|
55
60
|
import "./CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
56
|
-
import "./CSS3DRenderPlugin/utils/
|
|
61
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
57
62
|
import "./CSS3DRenderPlugin/utils/centerPoint.js";
|
|
63
|
+
import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
64
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
65
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
66
|
import "./shared-utils/createLine/index.js";
|
|
59
67
|
import "@realsee/five/line";
|
|
60
68
|
import "./ModelRoomLabelPlugin/Controller.js";
|
|
@@ -292,54 +300,55 @@ import "./shared-utils/three/Assets/index.js";
|
|
|
292
300
|
import "./shared-utils/three/PointDomHelper.js";
|
|
293
301
|
import "./shared-utils/three/FivePointSelector.js";
|
|
294
302
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
Ti as
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
303
|
+
ii as CSS3DRender,
|
|
304
|
+
$m as CSS3DRenderPlugin,
|
|
305
|
+
Ip as CameraMovementEffect,
|
|
306
|
+
Op as CameraMovementPlugin,
|
|
307
|
+
_i as ContentType,
|
|
308
|
+
Xp as CruisePlugin,
|
|
309
|
+
Li as CruisePluginController,
|
|
310
|
+
jp as DIRECTION,
|
|
311
|
+
Pi as DISPLAY_STRATEGY_TYPE,
|
|
312
|
+
Ci as DimensionType,
|
|
313
|
+
ep as FLOOR_PLAN_ATTACHED_TO,
|
|
314
|
+
sp as FLOOR_TYPE_MAP,
|
|
315
|
+
Qp as GuideLinePlugin,
|
|
316
|
+
xi as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
317
|
+
Ti as ItemLabelPlugin,
|
|
318
|
+
Oi as LinkType,
|
|
319
|
+
li as Magnifier,
|
|
320
|
+
ap as MapviewFloorplanPlugin,
|
|
321
|
+
Ep as ModelChassisCompassPlugin,
|
|
322
|
+
_p as ModelEntryDoorGuidePlugin,
|
|
323
|
+
np as ModelFloorplanPlugin,
|
|
324
|
+
fi as ModelItemLabelPlugin,
|
|
325
|
+
mp as ModelRoomLabelPlugin,
|
|
326
|
+
Hp as ModelTVVideoPlugin,
|
|
327
|
+
Xm as ModelViewPlugin,
|
|
328
|
+
Ai as Object3DHelperController,
|
|
329
|
+
ri as Object3DHelperPlugin,
|
|
330
|
+
Di as PLUGIN,
|
|
331
|
+
Jm as PaintBrush,
|
|
332
|
+
Qm as PaintBrushTypeEnum,
|
|
333
|
+
yp as PanoCompassPlugin,
|
|
334
|
+
rp as PanoCursorRaycasterPlugin,
|
|
335
|
+
Jp as PanoDoorLabelPlugin,
|
|
336
|
+
gp as PanoFloorplanRadarPlugin,
|
|
337
|
+
Np as PanoMeasurePlugin,
|
|
338
|
+
bp as PanoRulerPlugin,
|
|
339
|
+
Fp as PanoRulerProPlugin,
|
|
340
|
+
Vp as PanoSpatialTagPlugin,
|
|
341
|
+
$p as PanoTagPlugin,
|
|
342
|
+
di as PanoTagPluginController,
|
|
343
|
+
Si as PointType,
|
|
344
|
+
Lp as ROOM_FETILE_TYPE_MAP,
|
|
345
|
+
Mp as ROOM_TYPE_MAP,
|
|
346
|
+
Ap as Rotation,
|
|
347
|
+
up as TopviewFloorplanPlugin,
|
|
348
|
+
mi as Util,
|
|
349
|
+
bi as VERSION,
|
|
350
|
+
qp as itemLabelPluginServerParams,
|
|
351
|
+
wp as modelItemLabelPluginServerParams,
|
|
352
|
+
pp as modelRoomLabelPluginServerParams,
|
|
353
|
+
Ei as pluginFlag
|
|
345
354
|
};
|
|
@@ -5,7 +5,7 @@ import * as l from "three";
|
|
|
5
5
|
import { Subscribe as y } from "../../Subscribe.js";
|
|
6
6
|
import { DomEvents as j } from "../utils/threex/domevents/index.js";
|
|
7
7
|
import { notNil as g } from "../../isNil.js";
|
|
8
|
-
import { CSS3DObjectPlus as D } from "../../../CSS3DRenderPlugin/utils/
|
|
8
|
+
import { CSS3DObjectPlus as D } from "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
9
9
|
let h = null;
|
|
10
10
|
class P {
|
|
11
11
|
constructor(e, t, o, n, a, r, c) {
|
|
@@ -2,17 +2,18 @@ var w = Object.defineProperty;
|
|
|
2
2
|
var h = (i, o, r) => o in i ? w(i, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[o] = r;
|
|
3
3
|
var s = (i, o, r) => (h(i, typeof o != "symbol" ? o + "" : o, r), r);
|
|
4
4
|
import { MoveHelperAbstract as A } from "../Base/BaseHelper.js";
|
|
5
|
-
import { ArrowGroup as
|
|
6
|
-
import { AXES_THREE_COLOR as
|
|
5
|
+
import { ArrowGroup as t } from "./Objects/ArrowGroup.js";
|
|
6
|
+
import { AXES_THREE_COLOR as e } from "../Constants/color.js";
|
|
7
7
|
import "three";
|
|
8
|
+
import "../../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
8
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
10
|
import "./OutlineHelper.js";
|
|
10
|
-
class
|
|
11
|
+
class x extends A {
|
|
11
12
|
constructor(r) {
|
|
12
13
|
super(r);
|
|
13
|
-
s(this, "xArrow", new
|
|
14
|
-
s(this, "yArrow", new
|
|
15
|
-
s(this, "zArrow", new
|
|
14
|
+
s(this, "xArrow", new t({ direction: "x", color: e.X }));
|
|
15
|
+
s(this, "yArrow", new t({ direction: "y", color: e.Y }));
|
|
16
|
+
s(this, "zArrow", new t({ direction: "z", color: e.Z }));
|
|
16
17
|
this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
|
|
17
18
|
}
|
|
18
19
|
show() {
|
|
@@ -26,5 +27,5 @@ class v extends A {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
x as MoveHelper
|
|
30
31
|
};
|
|
@@ -3,7 +3,7 @@ import { RectangleScaleHelperAbstract } from '.';
|
|
|
3
3
|
import type { Create3DElementReturnType } from '../../../CSS3DRenderPlugin';
|
|
4
4
|
import type { Vector3 } from 'three';
|
|
5
5
|
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
6
|
-
import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/
|
|
6
|
+
import type { CSS3DObjectPlus } from '../../../CSS3DRenderPlugin/utils/three/CSS3DObject';
|
|
7
7
|
declare type NonVoid<T> = T extends void ? never : T;
|
|
8
8
|
declare type OriginObjectType = CSS3DObject | THREE.Object3D;
|
|
9
9
|
export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObjectType> extends RectangleScaleHelperAbstract<T, HTMLElement> {
|
|
@@ -17,7 +17,7 @@ export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObj
|
|
|
17
17
|
private scene;
|
|
18
18
|
private container;
|
|
19
19
|
private enabled;
|
|
20
|
-
constructor(originObject3D: T, container:
|
|
20
|
+
constructor(originObject3D: T, container: HTMLElement, camera: THREE.Camera, scene: THREE.Scene);
|
|
21
21
|
updatePosition(): void;
|
|
22
22
|
updateQuaternion(): void;
|
|
23
23
|
applyMatrix4(matrix: THREE.Matrix4): void;
|
|
@@ -3,4 +3,5 @@ import "three";
|
|
|
3
3
|
import "@realsee/five";
|
|
4
4
|
import "@tweenjs/tween.js";
|
|
5
5
|
import "../animationFrame/BetterTween.js";
|
|
6
|
-
import "
|
|
6
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
7
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
package/package.json
CHANGED
|
@@ -7,8 +7,21 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.3.1",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
14
|
+
"dev": "run-p dev:*",
|
|
15
|
+
"dev:libs": "NODE_ENV=development BUILD_MODULE=libs vite build -m development",
|
|
16
|
+
"dev:dist": "NODE_ENV=development BUILD_MODULE=dist vite build -m development",
|
|
17
|
+
"dev:components": "NODE_ENV=development BUILD_MODULE=components vite build -m development",
|
|
18
|
+
"build": "run-p build:*",
|
|
19
|
+
"build:libs": "NODE_ENV=production BUILD_MODULE=libs vite build -m production",
|
|
20
|
+
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
21
|
+
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
22
|
+
"docs": "typedoc --options ./typedoc.json",
|
|
23
|
+
"prepublishOnly": "run-p build docs"
|
|
24
|
+
},
|
|
12
25
|
"files": [
|
|
13
26
|
"libs",
|
|
14
27
|
"dist",
|
|
@@ -69,17 +82,5 @@
|
|
|
69
82
|
"peerDependencies": {
|
|
70
83
|
"@realsee/five": "^5.0.0",
|
|
71
84
|
"three": ">=0.115.0 <=0.117.1"
|
|
72
|
-
},
|
|
73
|
-
"scripts": {
|
|
74
|
-
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
75
|
-
"dev": "run-p dev:*",
|
|
76
|
-
"dev:libs": "NODE_ENV=development BUILD_MODULE=libs vite build -m development",
|
|
77
|
-
"dev:dist": "NODE_ENV=development BUILD_MODULE=dist vite build -m development",
|
|
78
|
-
"dev:components": "NODE_ENV=development BUILD_MODULE=components vite build -m development",
|
|
79
|
-
"build": "run-p build:*",
|
|
80
|
-
"build:libs": "NODE_ENV=production BUILD_MODULE=libs vite build -m production",
|
|
81
|
-
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
82
|
-
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
83
|
-
"docs": "typedoc --options ./typedoc.json"
|
|
84
85
|
}
|
|
85
|
-
}
|
|
86
|
+
}
|