@realsee/dnalogel 2.2.5 → 2.2.7
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/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +849 -887
- package/dist/index.umd.js +17 -17
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/assets/main.js +1 -1
- 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 +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- 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 +5 -5
- package/docs/index.html +4 -4
- 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 +5 -5
- 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 +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- 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 +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- 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 +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +39 -33
- package/libs/CSS3DRenderPlugin/Controller.js +30 -22
- package/libs/CSS3DRenderPlugin/index.js +12 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +2 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +52 -41
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +3 -2
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +52 -44
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +35 -25
- package/libs/ModelTVVideoPlugin/index.js +17 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.js +48 -27
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +40 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +25 -13
- package/libs/PanoCompassPlugin/index.js +23 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -42
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +74 -62
- package/libs/PanoSpatialTagPlugin/index.js +20 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +92 -100
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +13 -15
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +26 -28
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +12 -13
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +24 -32
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +51 -83
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +48 -59
- package/libs/PanoTagPlugin/Components/Tag/index.js +75 -104
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +82 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +24 -24
- package/libs/floorplan/Components/Compass.js +3 -3
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +32 -32
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +54 -54
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +15 -15
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +38 -38
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +71 -80
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +34 -34
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/libs/vendor/svelte/internal/index.js +151 -152
- package/package.json +17 -18
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,77 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var C = (t, s, e) => new Promise((P, E) => {
|
|
2
|
+
var h = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
l(e.next(r));
|
|
5
5
|
} catch (m) {
|
|
6
|
-
|
|
6
|
+
E(m);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, x = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
l(e.throw(r));
|
|
11
11
|
} catch (m) {
|
|
12
|
-
|
|
12
|
+
E(m);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, l = (r) => r.done ? P(r.value) : Promise.resolve(r.value).then(h, x);
|
|
15
|
+
l((e = e.apply(t, s)).next());
|
|
16
16
|
});
|
|
17
|
-
import * as
|
|
17
|
+
import * as S from "three";
|
|
18
18
|
import { MeshBasicMaterial as z, AnimationMixer as B } from "three";
|
|
19
|
-
import { FBXLoader as
|
|
20
|
-
import { createCanvasTextTexture as
|
|
19
|
+
import { FBXLoader as _ } from "three/examples/jsm/loaders/FBXLoader";
|
|
20
|
+
import { createCanvasTextTexture as v } from "../shared-utils/createCanvasTextTexture.js";
|
|
21
21
|
import { transformPositionToVector3 as H } from "../shared-utils/three/transformPositionToVector3.js";
|
|
22
|
-
import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/
|
|
23
|
-
const
|
|
24
|
-
var
|
|
25
|
-
const e = {},
|
|
26
|
-
var
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
29
|
-
return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
|
|
30
|
-
const i = H(
|
|
22
|
+
import { transfromToMeshBasicMaterial as L } from "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
23
|
+
const K = (t, s) => {
|
|
24
|
+
var G, T, R;
|
|
25
|
+
const e = {}, P = (G = s.animationEnabled) != null ? G : !0, E = (T = s.position) != null ? T : void 0, h = (R = s.rad) != null ? R : void 0, x = s.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", l = [], r = (o) => C(void 0, null, function* () {
|
|
26
|
+
var u, b, M, f, p, j, y, q;
|
|
27
|
+
const c = (u = o == null ? void 0 : o.position) != null ? u : E;
|
|
28
|
+
if (!c)
|
|
29
|
+
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
30
|
+
const i = H(c), n = (b = o == null ? void 0 : o.rad) != null ? b : h, A = (M = o == null ? void 0 : o.fbx_url) != null ? M : x;
|
|
31
31
|
if (e.rad = n, n === void 0)
|
|
32
|
-
return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`);
|
|
33
|
-
const a = yield new
|
|
34
|
-
a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side:
|
|
35
|
-
const d = (
|
|
36
|
-
|
|
32
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${n}`));
|
|
33
|
+
const a = yield new _().loadAsync(A);
|
|
34
|
+
a.position.copy(i), a.rotation.z = n, a.scale.set(0.8, 0.8, 0.8), L(a, { transparent: !0, side: S.DoubleSide });
|
|
35
|
+
const d = (y = (j = (p = (f = a.children) == null ? void 0 : f[0]) == null ? void 0 : p.children) == null ? void 0 : j[3]) == null ? void 0 : y.clone();
|
|
36
|
+
if (!d)
|
|
37
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${d}`));
|
|
38
|
+
const w = (q = s.name) != null ? q : "\u5165\u6237\u95E8";
|
|
39
|
+
return d.material = new z({ transparent: !0, map: v(w) }), d.renderOrder = 3, a.children[0].add(d), e.object = a, !0;
|
|
37
40
|
}), m = () => {
|
|
38
41
|
if (e.animation)
|
|
39
42
|
return;
|
|
40
43
|
if (!e.object)
|
|
41
44
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
42
|
-
const o = 1,
|
|
43
|
-
|
|
44
|
-
const i =
|
|
45
|
+
const o = 1, c = new B(e.object);
|
|
46
|
+
l.push(c);
|
|
47
|
+
const i = c.clipAction(e.object.animations[0]);
|
|
45
48
|
i.timeScale = o;
|
|
46
49
|
let n;
|
|
47
|
-
const
|
|
50
|
+
const A = () => {
|
|
48
51
|
let u = 0, b = 0;
|
|
49
|
-
const
|
|
50
|
-
u = requestAnimationFrame(
|
|
51
|
-
const j =
|
|
52
|
-
j <
|
|
52
|
+
const M = 1e3 / 30, f = (p) => {
|
|
53
|
+
u = requestAnimationFrame(f);
|
|
54
|
+
const j = p - b;
|
|
55
|
+
j < M || (b = p, l.forEach((y) => y.update(j / 1e3)), t.needsRender = !0);
|
|
53
56
|
};
|
|
54
|
-
return u = requestAnimationFrame(
|
|
57
|
+
return u = requestAnimationFrame(f), () => {
|
|
55
58
|
cancelAnimationFrame(u);
|
|
56
59
|
};
|
|
57
|
-
},
|
|
58
|
-
n || (i.play(), n =
|
|
60
|
+
}, w = { play: () => {
|
|
61
|
+
n || (i.play(), n = A(), requestAnimationFrame(() => {
|
|
59
62
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
60
63
|
}));
|
|
61
64
|
}, stop: () => {
|
|
62
65
|
i.stop(), n == null || n(), n = void 0;
|
|
63
66
|
} };
|
|
64
|
-
e.animation =
|
|
65
|
-
},
|
|
67
|
+
e.animation = w;
|
|
68
|
+
}, g = (o) => {
|
|
66
69
|
var i;
|
|
67
70
|
if (!e.object)
|
|
68
71
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
69
|
-
((i = o == null ? void 0 : o.animationEnable) != null ? i :
|
|
70
|
-
},
|
|
72
|
+
((i = o == null ? void 0 : o.animationEnable) != null ? i : P) && (e.animation || m(), e.animation.play()), t.scene.add(e.object), t.needsRender = !0;
|
|
73
|
+
}, F = () => {
|
|
71
74
|
!e.object || (e.animation && e.animation.stop(), t.scene.remove(e.object), t.needsRender = !0);
|
|
72
|
-
},
|
|
73
|
-
return { load: r, enable: (o) => (e.enabled || (e.enabled = !0,
|
|
75
|
+
}, D = (o) => o === "Floorplan" ? g() : F();
|
|
76
|
+
return { load: r, enable: (o) => (e.enabled || (e.enabled = !0, D(t.currentMode), t.on("modeChange", D), g(o)), !0), disable: () => (e.enabled && (e.enabled = !1, F(), t.off("modeChange", D)), !0) };
|
|
77
|
+
}, N = {
|
|
78
|
+
name: "ModelEntryDoorGuidePlugin",
|
|
79
|
+
version: 0
|
|
74
80
|
};
|
|
75
81
|
export {
|
|
76
|
-
|
|
82
|
+
K as ModelEntryDoorGuidePlugin,
|
|
83
|
+
K as default,
|
|
84
|
+
N as modelEntryDoorGuidePluginServerParams
|
|
77
85
|
};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelEntryDoorGuidePlugin as u, ModelEntryDoorGuidePlugin as n } from "./Plugin.js";
|
|
1
3
|
import "three";
|
|
2
4
|
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
|
+
import "../shared-utils/createCanvasTextTexture.js";
|
|
6
|
+
import "../shared-utils/three/transformPositionToVector3.js";
|
|
7
|
+
import "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
8
|
+
export {
|
|
9
|
+
u as ModelEntryDoorGuidePlugin,
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
@@ -67,7 +67,7 @@ function Te(o) {
|
|
|
67
67
|
t = le("div");
|
|
68
68
|
for (let l = 0; l < e.length; l += 1)
|
|
69
69
|
e[l].c();
|
|
70
|
-
ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0
|
|
70
|
+
ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0);
|
|
71
71
|
},
|
|
72
72
|
m(l, s) {
|
|
73
73
|
V(l, t, s);
|
|
@@ -76,7 +76,7 @@ function Te(o) {
|
|
|
76
76
|
h = me(t, o[9].bind(t)), r = !0;
|
|
77
77
|
},
|
|
78
78
|
p(l, [s]) {
|
|
79
|
-
s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0
|
|
79
|
+
s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0);
|
|
80
80
|
},
|
|
81
81
|
i(l) {
|
|
82
82
|
if (!r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as
|
|
1
|
+
import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as f, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
function q(t) {
|
|
4
4
|
w(t, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
|
|
@@ -6,16 +6,16 @@ function q(t) {
|
|
|
6
6
|
}}`);
|
|
7
7
|
}
|
|
8
8
|
function A(t) {
|
|
9
|
-
let e,
|
|
9
|
+
let e, o, l, n = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, g, p, _;
|
|
10
10
|
return {
|
|
11
11
|
c() {
|
|
12
|
-
e =
|
|
12
|
+
e = f("div"), o = f("div"), l = f("span"), m = z(n), s = I(), d = f("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(o, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(o, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", g = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform);
|
|
13
13
|
},
|
|
14
|
-
m(i,
|
|
15
|
-
x(i, e,
|
|
14
|
+
m(i, a) {
|
|
15
|
+
x(i, e, a), c(e, o), c(o, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
|
|
16
16
|
},
|
|
17
|
-
p(i, [
|
|
18
|
-
|
|
17
|
+
p(i, [a]) {
|
|
18
|
+
a & 1 && n !== (n = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, n), a & 1 && r(o, "top", `-${i[0].strokeLength + 26}px`), a & 1 && r(d, "height", `${i[0].strokeLength}px`), a & 1 && g !== (g = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", g), a & 1 && r(e, "z-index", i[0].zIndex), a & 1 && r(e, "transform", i[0].transform);
|
|
19
19
|
},
|
|
20
20
|
i: h,
|
|
21
21
|
o: h,
|
|
@@ -24,14 +24,14 @@ function A(t) {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function E(t, e,
|
|
28
|
-
let { itemLabel: l } = e, { hooks:
|
|
27
|
+
function E(t, e, o) {
|
|
28
|
+
let { itemLabel: l } = e, { hooks: n } = e;
|
|
29
29
|
function m() {
|
|
30
|
-
console.log("__onclick___: ", l),
|
|
30
|
+
console.log("__onclick___: ", l), n.emit("onLabelClick", l);
|
|
31
31
|
}
|
|
32
32
|
return t.$$set = (s) => {
|
|
33
|
-
"itemLabel" in s &&
|
|
34
|
-
}, [l, m,
|
|
33
|
+
"itemLabel" in s && o(0, l = s.itemLabel), "hooks" in s && o(2, n = s.hooks);
|
|
34
|
+
}, [l, m, n];
|
|
35
35
|
}
|
|
36
36
|
class B extends y {
|
|
37
37
|
constructor(e) {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { Subscribe as
|
|
1
|
+
import { Subscribe as y, Five as s } from "@realsee/five";
|
|
2
2
|
import L from "./ItemLabelComponent.js";
|
|
3
3
|
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
4
4
|
import { parseModelItemLabelPluginData as E } from "./utils/parseData.js";
|
|
5
|
-
|
|
5
|
+
import "../vendor/svelte/internal/index.js";
|
|
6
|
+
import "three";
|
|
7
|
+
import "./ItemLabelItem.js";
|
|
8
|
+
import "classnames";
|
|
9
|
+
import "../shared-utils/debounce.js";
|
|
10
|
+
const C = (n, o) => {
|
|
6
11
|
var a, d;
|
|
7
12
|
const e = {
|
|
8
13
|
container: document.createElement("div"),
|
|
@@ -12,7 +17,7 @@ const T = (t, o) => {
|
|
|
12
17
|
itemLabels: [],
|
|
13
18
|
wrapper: null,
|
|
14
19
|
app: void 0,
|
|
15
|
-
hooks: new
|
|
20
|
+
hooks: new y(),
|
|
16
21
|
modelOcclusionEnable: (a = o == null ? void 0 : o.modelOcclusionEnable) != null ? a : !0,
|
|
17
22
|
displayStrategyType: (d = o == null ? void 0 : o.displayStrategyType) != null ? d : g.SMALL
|
|
18
23
|
};
|
|
@@ -24,24 +29,24 @@ const T = (t, o) => {
|
|
|
24
29
|
height: 100%;
|
|
25
30
|
z-index: 5;
|
|
26
31
|
`, e.container.style.pointerEvents = "none";
|
|
27
|
-
const p = (
|
|
28
|
-
e.itemLabels = E(
|
|
29
|
-
}, u = () => (e.enabled || (e.enabled = !0,
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
var
|
|
32
|
+
const p = (t) => (e.wrapper = t, t.appendChild(e.container), r(), !0), c = (t) => {
|
|
33
|
+
e.itemLabels = E(t), r();
|
|
34
|
+
}, u = () => (e.enabled || (e.enabled = !0, r()), !0), b = () => (e.enabled && (e.enabled = !1, r()), !0), i = () => {
|
|
35
|
+
f(), e.container.remove();
|
|
36
|
+
}, r = () => {
|
|
37
|
+
var t;
|
|
33
38
|
if (!!e.wrapper) {
|
|
34
39
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
35
|
-
(
|
|
40
|
+
(t = e.app) == null || t.$destroy(), e.app = void 0;
|
|
36
41
|
return;
|
|
37
42
|
}
|
|
38
43
|
e.app ? e.app.$set({
|
|
39
|
-
five:
|
|
44
|
+
five: n,
|
|
40
45
|
itemLabels: e.itemLabels
|
|
41
46
|
}) : e.app = new L({
|
|
42
47
|
target: e.container,
|
|
43
48
|
props: {
|
|
44
|
-
five:
|
|
49
|
+
five: n,
|
|
45
50
|
modelOcclusionEnable: e.modelOcclusionEnable,
|
|
46
51
|
itemLabels: e.itemLabels,
|
|
47
52
|
wrapper: e.wrapper,
|
|
@@ -51,17 +56,17 @@ const T = (t, o) => {
|
|
|
51
56
|
});
|
|
52
57
|
}
|
|
53
58
|
}, m = () => {
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
59
|
+
n.on("modeChange", l), n.once("dispose", i);
|
|
60
|
+
}, f = () => {
|
|
61
|
+
n.off("modeChange", l);
|
|
62
|
+
}, l = (t) => {
|
|
58
63
|
if (!!e.enabled) {
|
|
59
|
-
if (
|
|
60
|
-
e.fiveModeEnabled = !1,
|
|
64
|
+
if (t !== s.Mode.Floorplan) {
|
|
65
|
+
e.fiveModeEnabled = !1, r();
|
|
61
66
|
return;
|
|
62
67
|
}
|
|
63
|
-
|
|
64
|
-
e.fiveModeEnabled =
|
|
68
|
+
n.once("initAnimationEnded", () => {
|
|
69
|
+
e.fiveModeEnabled = n.currentMode === s.Mode.Floorplan, r();
|
|
65
70
|
});
|
|
66
71
|
}
|
|
67
72
|
};
|
|
@@ -70,10 +75,11 @@ const T = (t, o) => {
|
|
|
70
75
|
load: c,
|
|
71
76
|
enable: u,
|
|
72
77
|
disable: b,
|
|
73
|
-
dispose:
|
|
78
|
+
dispose: i,
|
|
74
79
|
hooks: e.hooks
|
|
75
80
|
};
|
|
76
81
|
};
|
|
77
82
|
export {
|
|
78
|
-
|
|
83
|
+
C as ModelItemLabelPlugin,
|
|
84
|
+
C as default
|
|
79
85
|
};
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
import "./ModelItemLabelPlugin.js";
|
|
2
|
+
import { ModelItemLabelPlugin as I, ModelItemLabelPlugin as L } from "./ModelItemLabelPlugin.js";
|
|
3
|
+
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
1
4
|
import "@realsee/five";
|
|
5
|
+
import "./ItemLabelComponent.js";
|
|
2
6
|
import "../vendor/svelte/internal/index.js";
|
|
3
7
|
import "three";
|
|
8
|
+
import "./ItemLabelItem.js";
|
|
4
9
|
import "classnames";
|
|
5
|
-
|
|
10
|
+
import "../shared-utils/debounce.js";
|
|
11
|
+
import "./utils/parseData.js";
|
|
12
|
+
const P = {
|
|
6
13
|
name: "ModelItemLabelPlugin",
|
|
7
14
|
version: 0
|
|
8
15
|
};
|
|
9
16
|
export {
|
|
10
|
-
|
|
17
|
+
g as DISPLAY_STRATEGY_TYPE,
|
|
18
|
+
I as ModelItemLabelPlugin,
|
|
19
|
+
L as default,
|
|
20
|
+
P as modelItemLabelPluginServerParams
|
|
11
21
|
};
|
|
@@ -3,7 +3,11 @@ var n = (t, e, o) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (t, e, o) => (n(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import r from "./RoomLabelItems.js";
|
|
5
5
|
import { parseModelRoomLabelPluginData as a } from "./utils/parseData.js";
|
|
6
|
-
|
|
6
|
+
import "../vendor/svelte/internal/index.js";
|
|
7
|
+
import "three";
|
|
8
|
+
import "./RoomLabelItem.js";
|
|
9
|
+
import "./Assets/roomLabelBg.js";
|
|
10
|
+
class c {
|
|
7
11
|
constructor(e) {
|
|
8
12
|
i(this, "five");
|
|
9
13
|
i(this, "enabled", !0);
|
|
@@ -56,5 +60,5 @@ class p {
|
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
export {
|
|
59
|
-
|
|
63
|
+
c as ModelRoomLabelController
|
|
60
64
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as
|
|
1
|
+
import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as f, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
|
|
3
3
|
function C(t) {
|
|
4
4
|
z(t, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
|
|
5
5
|
}
|
|
6
6
|
function O(t) {
|
|
7
|
-
let e, n,
|
|
7
|
+
let e, n, i = t[0].name + "", a, m, l, u, c;
|
|
8
8
|
return {
|
|
9
9
|
c() {
|
|
10
|
-
e =
|
|
10
|
+
e = f("div"), n = f("span"), a = w(i), m = k(), l = f("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(l, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform), r(e, "opacity", t[0].visible ? 1 : 0);
|
|
11
11
|
},
|
|
12
12
|
m(o, s) {
|
|
13
|
-
L(o, e, s), d(e, n), d(n,
|
|
13
|
+
L(o, e, s), d(e, n), d(n, a), d(e, m), d(e, l), u || (c = I(n, "click", t[1]), u = !0);
|
|
14
14
|
},
|
|
15
15
|
p(o, [s]) {
|
|
16
|
-
s & 1 &&
|
|
16
|
+
s & 1 && i !== (i = o[0].name + "") && x(a, i), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex), s & 1 && r(e, "transform", o[0].transform), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0);
|
|
17
17
|
},
|
|
18
18
|
i: v,
|
|
19
19
|
o: v,
|
|
20
20
|
d(o) {
|
|
21
|
-
o && y(e),
|
|
21
|
+
o && y(e), u = !1, c();
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function R(t, e, n) {
|
|
26
|
-
let { five:
|
|
26
|
+
let { five: i } = e, { roomLabel: a } = e;
|
|
27
27
|
function m() {
|
|
28
|
-
|
|
29
|
-
panoIndex:
|
|
28
|
+
i.setState({
|
|
29
|
+
panoIndex: a.panoIndex,
|
|
30
30
|
mode: "Panorama",
|
|
31
|
-
longitude:
|
|
31
|
+
longitude: a.longitude
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
return t.$$set = (
|
|
35
|
-
"five" in
|
|
36
|
-
}, [
|
|
34
|
+
return t.$$set = (l) => {
|
|
35
|
+
"five" in l && n(2, i = l.five), "roomLabel" in l && n(0, a = l.roomLabel);
|
|
36
|
+
}, [a, m, i];
|
|
37
37
|
}
|
|
38
38
|
class q extends g {
|
|
39
39
|
constructor(e) {
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { ModelRoomLabelController as e } from "./Controller.js";
|
|
2
|
-
|
|
2
|
+
import "./RoomLabelItems.js";
|
|
3
|
+
import "../vendor/svelte/internal/index.js";
|
|
4
|
+
import "three";
|
|
5
|
+
import "./RoomLabelItem.js";
|
|
6
|
+
import "./Assets/roomLabelBg.js";
|
|
7
|
+
import "./utils/parseData.js";
|
|
8
|
+
const p = (o) => new e(o), d = {
|
|
3
9
|
name: "ModelRoomLabelPlugin",
|
|
4
10
|
version: 0
|
|
5
11
|
};
|
|
6
12
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
p as ModelRoomLabelPlugin,
|
|
14
|
+
p as default,
|
|
15
|
+
d as modelRoomLabelPluginServerParams
|
|
9
16
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
var F = (s, b, e) => new Promise((m,
|
|
1
|
+
var F = (s, b, e) => new Promise((m, x) => {
|
|
2
2
|
var w = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
y
|
|
4
|
+
h(e.next(l));
|
|
5
|
+
} catch (y) {
|
|
6
|
+
x(y);
|
|
7
7
|
}
|
|
8
8
|
}, E = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
y
|
|
10
|
+
h(e.throw(l));
|
|
11
|
+
} catch (y) {
|
|
12
|
+
x(y);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, h = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, E);
|
|
15
|
+
h((e = e.apply(s, b)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as d from "three";
|
|
18
18
|
import { parseModelTVVideoPoints as I } from "./utils/parseData.js";
|
|
19
19
|
import { CSS3DRenderPlugin as O } from "../CSS3DRenderPlugin/index.js";
|
|
20
|
-
|
|
20
|
+
import "./typings.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
23
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
24
|
+
import "../shared-utils/Subscribe.js";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
28
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
29
|
+
const X = (s, { videoElement: b }) => {
|
|
21
30
|
const e = {
|
|
22
31
|
videoMeshes: [],
|
|
23
32
|
videoTextureEnabled: !1,
|
|
@@ -25,12 +34,12 @@ const C = (s, { videoElement: b }) => {
|
|
|
25
34
|
rectPoints: [],
|
|
26
35
|
enabled: !1,
|
|
27
36
|
videoElement: b
|
|
28
|
-
}, m = O(s),
|
|
37
|
+
}, m = O(s), x = /* @__PURE__ */ new Map(), w = (t) => {
|
|
29
38
|
e.videoTexture && (e.videoTexture.image.muted = t);
|
|
30
|
-
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0,
|
|
39
|
+
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
|
|
31
40
|
if (e.enabled || !e.videoTexture)
|
|
32
41
|
return;
|
|
33
|
-
e.enabled = !0, e.videoMeshes =
|
|
42
|
+
e.enabled = !0, e.videoMeshes = y(), e.videoMeshes.forEach((n) => s.scene.add(n));
|
|
34
43
|
const t = () => {
|
|
35
44
|
if (!e.videoTexture)
|
|
36
45
|
return;
|
|
@@ -56,7 +65,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
56
65
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
57
66
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
58
67
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
59
|
-
},
|
|
68
|
+
}, y = () => e.rectPoints.map((t, n) => {
|
|
60
69
|
const i = new d.BufferGeometry(), o = 128, a = [];
|
|
61
70
|
a.push(...t[0].toArray());
|
|
62
71
|
for (let r = 1; r < o; r++)
|
|
@@ -87,10 +96,10 @@ const C = (s, { videoElement: b }) => {
|
|
|
87
96
|
i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
88
97
|
const f = new d.AxesHelper(10);
|
|
89
98
|
s.scene.add(f);
|
|
90
|
-
const
|
|
99
|
+
const p = new d.MeshBasicMaterial({
|
|
91
100
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
92
101
|
side: d.DoubleSide
|
|
93
|
-
}), v = new d.Mesh(i,
|
|
102
|
+
}), v = new d.Mesh(i, p);
|
|
94
103
|
v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
|
|
95
104
|
const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
|
|
96
105
|
if (T != null && T.container) {
|
|
@@ -99,7 +108,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
99
108
|
const g = document.createElement("img");
|
|
100
109
|
g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
|
|
101
110
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
102
|
-
}, r.appendChild(g),
|
|
111
|
+
}, r.appendChild(g), x.set(v, T);
|
|
103
112
|
}
|
|
104
113
|
return v;
|
|
105
114
|
}), L = (t) => {
|
|
@@ -119,7 +128,7 @@ const C = (s, { videoElement: b }) => {
|
|
|
119
128
|
}, a.onerror = (c) => o(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
120
129
|
}), V = (t, n) => F(void 0, null, function* () {
|
|
121
130
|
const { video_src: i, video_poster_src: o, points: a } = t;
|
|
122
|
-
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z:
|
|
131
|
+
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z: p }) => new d.Vector3(u, f, p))), e.imageTexture = L(o), n && (e.videoElement = n), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
123
132
|
}), M = (t) => {
|
|
124
133
|
if (!e.enabled)
|
|
125
134
|
return;
|
|
@@ -132,15 +141,15 @@ const C = (s, { videoElement: b }) => {
|
|
|
132
141
|
if (!e.enabled)
|
|
133
142
|
return;
|
|
134
143
|
const t = s.camera.position;
|
|
135
|
-
if (
|
|
136
|
-
const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t),
|
|
137
|
-
u && u.distance +
|
|
144
|
+
if (x.forEach((n, i) => {
|
|
145
|
+
const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t), p = 0.01;
|
|
146
|
+
u && u.distance + p < f ? n.hide() : n.show();
|
|
138
147
|
}), !E()) {
|
|
139
148
|
const n = e.rectPoints.find((i) => {
|
|
140
149
|
const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
|
|
141
150
|
return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
|
|
142
|
-
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0],
|
|
143
|
-
return !(f && f.distance +
|
|
151
|
+
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0], p = 0.01;
|
|
152
|
+
return !(f && f.distance + p < c);
|
|
144
153
|
}).length >= 2;
|
|
145
154
|
});
|
|
146
155
|
(!n || n.length === 0) && w(!0);
|
|
@@ -156,8 +165,9 @@ const C = (s, { videoElement: b }) => {
|
|
|
156
165
|
e.videoMeshes.forEach((t) => {
|
|
157
166
|
t && (t.needsRender = !0);
|
|
158
167
|
});
|
|
159
|
-
}), { enable:
|
|
168
|
+
}), { enable: h, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
|
|
160
169
|
};
|
|
161
170
|
export {
|
|
162
|
-
|
|
171
|
+
X as ModelTVVideoPlugin,
|
|
172
|
+
X as default
|
|
163
173
|
};
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelTVVideoPlugin as M, ModelTVVideoPlugin as P } from "./Plugin.js";
|
|
3
|
+
import { DIRECTION as x } from "./typings.js";
|
|
1
4
|
import "three";
|
|
5
|
+
import "./utils/parseData.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
2
9
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../shared-utils/Subscribe.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
15
|
+
export {
|
|
16
|
+
x as DIRECTION,
|
|
17
|
+
M as ModelTVVideoPlugin,
|
|
18
|
+
P as default
|
|
19
|
+
};
|
|
@@ -102,5 +102,6 @@ const S = (o, i) => {
|
|
|
102
102
|
return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
|
|
103
103
|
};
|
|
104
104
|
export {
|
|
105
|
-
S as ModelViewPlugin
|
|
105
|
+
S as ModelViewPlugin,
|
|
106
|
+
S as default
|
|
106
107
|
};
|