@realsee/dnalogel 2.2.3 → 2.2.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -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 +12 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -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 +63 -58
- package/dist/index.js +5827 -5094
- package/dist/index.umd.js +51 -46
- 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 +47 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +48 -57
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +3 -2
- 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 +29 -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 +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -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/ItemLabelPlugin/ItemLabelComponent.js +13 -14
- package/libs/ItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ItemLabelPlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +11 -12
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelItemLabelPlugin/index.js +3 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +17 -18
- package/libs/ModelTVVideoPlugin/index.js +2 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +89 -74
- package/libs/PanoDoorLabelPlugin/Controller.js +72 -73
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoRulerProPlugin/RulerItems.js +18 -19
- package/libs/PanoSpatialTagPlugin/Components/origins.js +41 -41
- package/libs/PanoSpatialTagPlugin/Components/tag.js +8 -9
- package/libs/PanoSpatialTagPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/store.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +25 -26
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +30 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +75 -76
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +18 -19
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +15 -15
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +9 -9
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +14 -13
- package/libs/PanoTagPlugin/Components/Common/Text.js +15 -16
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +10 -10
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +18 -19
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +27 -28
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +9 -10
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +52 -81
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +10 -11
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +32 -33
- package/libs/PanoTagPlugin/Components/Tag/index.js +39 -40
- package/libs/PanoTagPlugin/Components/TagContainer.js +12 -13
- package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -10
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +4 -4
- package/libs/floorplan/Components/Camera.js +23 -23
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/CurrentFloor.js +9 -10
- package/libs/floorplan/Components/Main.js +24 -25
- package/libs/floorplan/Components/Normalmage.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +7 -7
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +37 -38
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +39 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +7 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +53 -53
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +8 -8
- package/libs/floorplan/Components/SvgImage.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +5 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +27 -27
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +34 -35
- package/libs/floorplan/index.js +1 -5
- package/libs/index.js +110 -102
- 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/libs/vendor/svelte/easing/index.js +12 -0
- package/libs/vendor/svelte/index.js +1 -0
- package/libs/vendor/svelte/internal/index.js +641 -0
- package/libs/vendor/svelte/store/index.js +31 -0
- package/libs/vendor/svelte/transition/index.js +37 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +10 -11
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -2
- package/libs/vendor/swiper/svelte/swiper.js +9 -10
- package/package.json +15 -15
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
|
@@ -2,7 +2,7 @@ var G = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e,
|
|
5
|
+
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, P = (g, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
7
|
T.call(c, e) && x(g, e, c[e]);
|
|
8
8
|
if (E)
|
|
@@ -10,7 +10,7 @@ var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
A.call(c, e) && x(g, e, c[e]);
|
|
11
11
|
return g;
|
|
12
12
|
}, L = (g, c) => K(g, U(c));
|
|
13
|
-
var
|
|
13
|
+
var S = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
14
|
var y = (g, c, e) => new Promise((t, i) => {
|
|
15
15
|
var a = (s) => {
|
|
16
16
|
try {
|
|
@@ -47,7 +47,7 @@ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
|
|
|
47
47
|
class B extends O {
|
|
48
48
|
constructor(e, t) {
|
|
49
49
|
super(e, t);
|
|
50
|
-
|
|
50
|
+
S(this, "state", {
|
|
51
51
|
visible: !0,
|
|
52
52
|
enabled: !0,
|
|
53
53
|
disposed: !1,
|
|
@@ -62,9 +62,9 @@ class B extends O {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
S(this, "data");
|
|
66
|
+
S(this, "config");
|
|
67
|
+
S(this, "privateState", {
|
|
68
68
|
playing: !1,
|
|
69
69
|
currentPlayQueue: [],
|
|
70
70
|
currentPlayKeyframe: null,
|
|
@@ -72,7 +72,7 @@ class B extends O {
|
|
|
72
72
|
disposers: [],
|
|
73
73
|
modeChanging: !1
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
S(this, "GuideLine");
|
|
76
76
|
this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
|
|
77
77
|
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
78
78
|
this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
|
|
@@ -115,7 +115,7 @@ class B extends O {
|
|
|
115
115
|
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
116
116
|
}
|
|
117
117
|
playFromStart(e) {
|
|
118
|
-
return this.playFrom(L(
|
|
118
|
+
return this.playFrom(L(P({}, e), { index: 0 }));
|
|
119
119
|
}
|
|
120
120
|
pause(e) {
|
|
121
121
|
this.setState({ playing: !1 }, e);
|
|
@@ -145,8 +145,8 @@ class B extends O {
|
|
|
145
145
|
return F();
|
|
146
146
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
147
|
return q();
|
|
148
|
-
const i =
|
|
149
|
-
this.state =
|
|
148
|
+
const i = P({}, this.state);
|
|
149
|
+
this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
150
|
}
|
|
151
151
|
formatData(e) {
|
|
152
152
|
return y(this, null, function* () {
|
|
@@ -161,7 +161,7 @@ class B extends O {
|
|
|
161
161
|
keyframes: i.keyframes.map((a, o) => {
|
|
162
162
|
var r;
|
|
163
163
|
const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
|
|
164
|
-
return
|
|
164
|
+
return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
|
|
165
165
|
})
|
|
166
166
|
};
|
|
167
167
|
if (i.panoIndexList) {
|
|
@@ -182,9 +182,9 @@ class B extends O {
|
|
|
182
182
|
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
183
183
|
moveIndex: r,
|
|
184
184
|
stay: i.stay,
|
|
185
|
-
data:
|
|
186
|
-
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data:
|
|
187
|
-
}), { keyframesId: k(), keyframes: a.map((s, r) =>
|
|
185
|
+
data: P({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
|
|
186
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: P({ effect: "Rotate", panoIndex: s }, d) }));
|
|
187
|
+
}), { keyframesId: k(), keyframes: a.map((s, r) => P({ id: k(), index: r }, s)) };
|
|
188
188
|
} else
|
|
189
189
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
190
190
|
});
|
|
@@ -417,7 +417,7 @@ class B extends O {
|
|
|
417
417
|
}
|
|
418
418
|
changeMode(e, t) {
|
|
419
419
|
return y(this, null, function* () {
|
|
420
|
-
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0,
|
|
420
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
forceInteruptUpdateCamera() {
|
|
@@ -478,7 +478,7 @@ class B extends O {
|
|
|
478
478
|
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
|
|
481
|
+
S(B, "PluginVersion", M);
|
|
482
482
|
export {
|
|
483
483
|
B as CruisePluginController
|
|
484
484
|
};
|
|
@@ -10,9 +10,8 @@ var H = (i, t, e) => t in i ? ae(i, t, { enumerable: !0, configurable: !0, writa
|
|
|
10
10
|
me.call(t, e) && H(i, e, t[e]);
|
|
11
11
|
return i;
|
|
12
12
|
}, y = (i, t) => ce(i, le(t));
|
|
13
|
-
import { SvelteComponent as fe, init as ue, safe_not_equal as pe, append_styles as he, element as _e, attr as be, add_render_callback as Ie, set_style as W, insert as v, add_resize_listener as ge,
|
|
13
|
+
import { SvelteComponent as fe, init as ue, safe_not_equal as pe, append_styles as he, element as _e, attr as be, add_render_callback as Ie, set_style as W, insert as v, add_resize_listener as ge, update_keyed_each as ke, check_outros as Z, transition_in as w, transition_out as z, detach as T, beforeUpdate as ye, onMount as Pe, onDestroy as we, empty as A, group_outros as G, outro_and_destroy_block as Le, create_component as Me, mount_component as ze, destroy_component as Ce } from "../vendor/svelte/internal/index.js";
|
|
14
14
|
import { Five as P } from "@realsee/five";
|
|
15
|
-
import { beforeUpdate as Me, onMount as ze, onDestroy as Ce } from "svelte";
|
|
16
15
|
import * as Ee from "three";
|
|
17
16
|
import Fe from "./ItemLabelItem.js";
|
|
18
17
|
import { debounce as Oe } from "../shared-utils/debounce.js";
|
|
@@ -40,10 +39,10 @@ function X(i) {
|
|
|
40
39
|
}
|
|
41
40
|
}), {
|
|
42
41
|
c() {
|
|
43
|
-
|
|
42
|
+
Me(t.$$.fragment);
|
|
44
43
|
},
|
|
45
44
|
m(r, f) {
|
|
46
|
-
|
|
45
|
+
ze(t, r, f), e = !0;
|
|
47
46
|
},
|
|
48
47
|
p(r, f) {
|
|
49
48
|
const o = {};
|
|
@@ -56,7 +55,7 @@ function X(i) {
|
|
|
56
55
|
z(t.$$.fragment, r), e = !1;
|
|
57
56
|
},
|
|
58
57
|
d(r) {
|
|
59
|
-
|
|
58
|
+
Ce(t, r);
|
|
60
59
|
}
|
|
61
60
|
};
|
|
62
61
|
}
|
|
@@ -72,9 +71,9 @@ function Y(i, t) {
|
|
|
72
71
|
v(d, e, h), o && o.m(d, h), v(d, r, h), f = !0;
|
|
73
72
|
},
|
|
74
73
|
p(d, h) {
|
|
75
|
-
t = d, t[30].visible ? o ? (o.p(t, h), h[0] & 2 && w(o, 1)) : (o = X(t), o.c(), w(o, 1), o.m(r.parentNode, r)) : o && (
|
|
74
|
+
t = d, t[30].visible ? o ? (o.p(t, h), h[0] & 2 && w(o, 1)) : (o = X(t), o.c(), w(o, 1), o.m(r.parentNode, r)) : o && (G(), z(o, 1, 1, () => {
|
|
76
75
|
o = null;
|
|
77
|
-
}),
|
|
76
|
+
}), Z());
|
|
78
77
|
},
|
|
79
78
|
i(d) {
|
|
80
79
|
f || (w(o), f = !0);
|
|
@@ -99,7 +98,7 @@ function Te(i) {
|
|
|
99
98
|
t = _e("div");
|
|
100
99
|
for (let c = 0; c < e.length; c += 1)
|
|
101
100
|
e[c].c();
|
|
102
|
-
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0
|
|
101
|
+
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0);
|
|
103
102
|
},
|
|
104
103
|
m(c, a) {
|
|
105
104
|
v(c, t, a);
|
|
@@ -108,7 +107,7 @@ function Te(i) {
|
|
|
108
107
|
f = ge(t, i[12].bind(t)), o = !0;
|
|
109
108
|
},
|
|
110
109
|
p(c, a) {
|
|
111
|
-
a[0] & 71 && (d = c[1],
|
|
110
|
+
a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0);
|
|
112
111
|
},
|
|
113
112
|
i(c) {
|
|
114
113
|
if (!o) {
|
|
@@ -219,11 +218,11 @@ function Ue(i, t, e) {
|
|
|
219
218
|
});
|
|
220
219
|
}
|
|
221
220
|
};
|
|
222
|
-
|
|
221
|
+
ye(() => {
|
|
223
222
|
ne();
|
|
224
|
-
}),
|
|
223
|
+
}), Pe(() => {
|
|
225
224
|
e(1, g = N(h)), C = h, L(), oe(), o.on("cameraUpdate", U);
|
|
226
|
-
}),
|
|
225
|
+
}), we(() => {
|
|
227
226
|
o.off("cameraUpdate", U), window.removeEventListener("resize", R, !1);
|
|
228
227
|
});
|
|
229
228
|
function re() {
|
|
@@ -247,7 +246,7 @@ function Ue(i, t, e) {
|
|
|
247
246
|
re
|
|
248
247
|
];
|
|
249
248
|
}
|
|
250
|
-
class
|
|
249
|
+
class Ze extends fe {
|
|
251
250
|
constructor(t) {
|
|
252
251
|
super(), ue(
|
|
253
252
|
this,
|
|
@@ -269,5 +268,5 @@ class Ge extends fe {
|
|
|
269
268
|
}
|
|
270
269
|
}
|
|
271
270
|
export {
|
|
272
|
-
|
|
271
|
+
Ze as default
|
|
273
272
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as B, init as x, safe_not_equal as F, append_styles as N, element as w, space as z, attr as c, null_to_empty as p, set_style as _, insert as q, append as v, listen as j, noop as I, detach as y, binding_callbacks as S, text as L, set_data as C } from "svelte/internal";
|
|
1
|
+
import { SvelteComponent as B, init as x, safe_not_equal as F, append_styles as N, element as w, space as z, attr as c, null_to_empty as p, set_style as _, insert as q, append as v, listen as j, noop as I, detach as y, binding_callbacks as S, text as L, set_data as C } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import k from "classnames";
|
|
3
3
|
function A(l) {
|
|
4
4
|
N(l, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
|
|
@@ -11,11 +11,11 @@ function D(l) {
|
|
|
11
11
|
c() {
|
|
12
12
|
a && a.c(), e = z(), t = w("div"), n = w("span"), h = L(s), o = z(), m = w("span"), g = L(r), c(n, "class", "item-model svelte-gduhqw"), c(m, "class", "item-name svelte-gduhqw"), c(t, "class", "item-label-text svelte-gduhqw");
|
|
13
13
|
},
|
|
14
|
-
m(i,
|
|
15
|
-
a && a.m(i,
|
|
14
|
+
m(i, b) {
|
|
15
|
+
a && a.m(i, b), q(i, e, b), q(i, t, b), v(t, n), v(n, h), v(t, o), v(t, m), v(m, g);
|
|
16
16
|
},
|
|
17
|
-
p(i,
|
|
18
|
-
i[0].icon ? a ? a.p(i,
|
|
17
|
+
p(i, b) {
|
|
18
|
+
i[0].icon ? a ? a.p(i, b) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), b & 1 && s !== (s = (i[0].code || i[0].id) + "") && C(h, s), b & 1 && r !== (r = i[0].name + "") && C(g, r);
|
|
19
19
|
},
|
|
20
20
|
d(i) {
|
|
21
21
|
a && a.d(i), i && y(e), i && y(t);
|
|
@@ -59,25 +59,25 @@ function H(l) {
|
|
|
59
59
|
function i(d, u) {
|
|
60
60
|
return u & 1 && (n = null), n == null && (n = !!Boolean(typeof d[0].render == "function")), n ? G : D;
|
|
61
61
|
}
|
|
62
|
-
let
|
|
62
|
+
let b = i(l, -1), f = b(l);
|
|
63
63
|
return {
|
|
64
64
|
c() {
|
|
65
|
-
e = w("div"), t = w("div"),
|
|
65
|
+
e = w("div"), t = w("div"), f.c(), h = z(), o = w("div"), c(t, "class", s = p(k("item-label-item__text-wrap", {
|
|
66
66
|
"item-label-item__custom": Boolean(typeof l[0].render == "function")
|
|
67
|
-
})) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex
|
|
67
|
+
})) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex), _(e, "transform", l[0].transform);
|
|
68
68
|
},
|
|
69
69
|
m(d, u) {
|
|
70
|
-
q(d, e, u), v(e, t),
|
|
70
|
+
q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(t, "click", l[4]), g = !0);
|
|
71
71
|
},
|
|
72
72
|
p(d, [u]) {
|
|
73
|
-
|
|
73
|
+
b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & 1 && s !== (s = p(k("item-label-item__text-wrap", {
|
|
74
74
|
"item-label-item__custom": Boolean(typeof d[0].render == "function")
|
|
75
|
-
})) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex
|
|
75
|
+
})) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex), u & 1 && _(e, "transform", d[0].transform);
|
|
76
76
|
},
|
|
77
77
|
i: I,
|
|
78
78
|
o: I,
|
|
79
79
|
d(d) {
|
|
80
|
-
d && y(e),
|
|
80
|
+
d && y(e), f.d(), g = !1, a();
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "@realsee/five";
|
|
2
|
-
import "svelte/internal";
|
|
3
|
-
import "svelte";
|
|
2
|
+
import "../vendor/svelte/internal/index.js";
|
|
4
3
|
import "three";
|
|
5
4
|
import "classnames";
|
|
6
|
-
const
|
|
5
|
+
const t = {
|
|
7
6
|
name: "ItemLabelPlugin",
|
|
8
7
|
version: 0
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
t as itemLabelPluginServerParams
|
|
12
11
|
};
|
|
@@ -10,9 +10,8 @@ var O = (o, t, e) => t in o ? Z(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
ne.call(t, e) && O(o, e, t[e]);
|
|
11
11
|
return o;
|
|
12
12
|
}, I = (o, t) => $(o, ee(t));
|
|
13
|
-
import { SvelteComponent as oe, init as se, safe_not_equal as ie, append_styles as re, element as le, attr as ae, add_render_callback as ce, set_style as U, insert as V, add_resize_listener as me,
|
|
13
|
+
import { SvelteComponent as oe, init as se, safe_not_equal as ie, append_styles as re, element as le, attr as ae, add_render_callback as ce, set_style as U, insert as V, add_resize_listener as me, update_keyed_each as de, check_outros as ue, transition_in as W, transition_out as G, detach as Y, beforeUpdate as fe, onMount as he, onDestroy as _e, empty as Le, create_component as be, mount_component as ge, destroy_component as ye, group_outros as pe, outro_and_destroy_block as ke } from "../vendor/svelte/internal/index.js";
|
|
14
14
|
import { DISPLAY_STRATEGY_TYPE as E } from "./typings.js";
|
|
15
|
-
import { beforeUpdate as ye, onMount as pe, onDestroy as ke } from "svelte";
|
|
16
15
|
import * as Ie from "three";
|
|
17
16
|
import Ee from "./ItemLabelItem.js";
|
|
18
17
|
import { debounce as we } from "../shared-utils/debounce.js";
|
|
@@ -35,10 +34,10 @@ function S(o, t) {
|
|
|
35
34
|
key: o,
|
|
36
35
|
first: null,
|
|
37
36
|
c() {
|
|
38
|
-
e =
|
|
37
|
+
e = Le(), be(c.$$.fragment), this.first = e;
|
|
39
38
|
},
|
|
40
39
|
m(r, m) {
|
|
41
|
-
V(r, e, m),
|
|
40
|
+
V(r, e, m), ge(c, r, m), h = !0;
|
|
42
41
|
},
|
|
43
42
|
p(r, m) {
|
|
44
43
|
t = r;
|
|
@@ -52,7 +51,7 @@ function S(o, t) {
|
|
|
52
51
|
G(c.$$.fragment, r), h = !1;
|
|
53
52
|
},
|
|
54
53
|
d(r) {
|
|
55
|
-
r && Y(e),
|
|
54
|
+
r && Y(e), ye(c, r);
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
}
|
|
@@ -68,7 +67,7 @@ function Te(o) {
|
|
|
68
67
|
t = le("div");
|
|
69
68
|
for (let l = 0; l < e.length; l += 1)
|
|
70
69
|
e[l].c();
|
|
71
|
-
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);
|
|
72
71
|
},
|
|
73
72
|
m(l, s) {
|
|
74
73
|
V(l, t, s);
|
|
@@ -77,7 +76,7 @@ function Te(o) {
|
|
|
77
76
|
h = me(t, o[9].bind(t)), r = !0;
|
|
78
77
|
},
|
|
79
78
|
p(l, [s]) {
|
|
80
|
-
s & 3 && (m = l[1],
|
|
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);
|
|
81
80
|
},
|
|
82
81
|
i(l) {
|
|
83
82
|
if (!r) {
|
|
@@ -147,13 +146,13 @@ function Re(o, t, e) {
|
|
|
147
146
|
}, p = () => {
|
|
148
147
|
y = [], e(1, g = X(r, g));
|
|
149
148
|
};
|
|
150
|
-
|
|
149
|
+
fe(() => {
|
|
151
150
|
K();
|
|
152
151
|
});
|
|
153
152
|
const R = () => {
|
|
154
153
|
e(4, T = !1), B();
|
|
155
154
|
};
|
|
156
|
-
|
|
155
|
+
he(() => {
|
|
157
156
|
e(1, g = d), _ = d, p(), J(), r.on("cameraUpdate", R);
|
|
158
157
|
});
|
|
159
158
|
const B = we(
|
|
@@ -168,7 +167,7 @@ function Re(o, t, e) {
|
|
|
168
167
|
}, v = () => {
|
|
169
168
|
r.once("renderFrame", p);
|
|
170
169
|
};
|
|
171
|
-
|
|
170
|
+
_e(() => {
|
|
172
171
|
r.off("cameraUpdate", R), window.removeEventListener("resize", v, !1);
|
|
173
172
|
});
|
|
174
173
|
function N() {
|
|
@@ -189,7 +188,7 @@ function Re(o, t, e) {
|
|
|
189
188
|
N
|
|
190
189
|
];
|
|
191
190
|
}
|
|
192
|
-
class
|
|
191
|
+
class De extends oe {
|
|
193
192
|
constructor(t) {
|
|
194
193
|
super(), se(
|
|
195
194
|
this,
|
|
@@ -209,5 +208,5 @@ class Ve extends oe {
|
|
|
209
208
|
}
|
|
210
209
|
}
|
|
211
210
|
export {
|
|
212
|
-
|
|
211
|
+
De as default
|
|
213
212
|
};
|
|
@@ -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,12 +1,11 @@
|
|
|
1
1
|
import "@realsee/five";
|
|
2
|
-
import "svelte/internal";
|
|
3
|
-
import "svelte";
|
|
2
|
+
import "../vendor/svelte/internal/index.js";
|
|
4
3
|
import "three";
|
|
5
4
|
import "classnames";
|
|
6
|
-
const
|
|
5
|
+
const t = {
|
|
7
6
|
name: "ModelItemLabelPlugin",
|
|
8
7
|
version: 0
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
t as modelItemLabelPluginServerParams
|
|
12
11
|
};
|
|
@@ -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) {
|
|
@@ -10,12 +10,11 @@ var D = (o, t, e) => t in o ? q(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
E.call(t, e) && D(o, e, t[e]);
|
|
11
11
|
return o;
|
|
12
12
|
}, S = (o, t) => P(o, A(t));
|
|
13
|
-
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as N, element as Q, attr as X, add_render_callback as Y, insert as H, add_resize_listener as Z,
|
|
14
|
-
import { onDestroy as ce } from "svelte";
|
|
13
|
+
import { SvelteComponent as G, init as J, safe_not_equal as K, append_styles as N, element as Q, attr as X, add_render_callback as Y, insert as H, add_resize_listener as Z, update_keyed_each as $, check_outros as ee, transition_in as O, transition_out as V, detach as W, onDestroy as te, globals as oe, empty as ne, create_component as re, mount_component as ie, destroy_component as se, group_outros as le, outro_and_destroy_block as ce } from "../vendor/svelte/internal/index.js";
|
|
15
14
|
import { Raycaster as ae, Vector3 as w } from "three";
|
|
16
15
|
import fe from "./RoomLabelItem.js";
|
|
17
16
|
import "./Assets/roomLabelBg.js";
|
|
18
|
-
const { Map: me } =
|
|
17
|
+
const { Map: me } = oe;
|
|
19
18
|
function ue(o) {
|
|
20
19
|
N(o, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
21
20
|
}
|
|
@@ -34,10 +33,10 @@ function U(o, t) {
|
|
|
34
33
|
key: o,
|
|
35
34
|
first: null,
|
|
36
35
|
c() {
|
|
37
|
-
e =
|
|
36
|
+
e = ne(), re(l.$$.fragment), this.first = e;
|
|
38
37
|
},
|
|
39
38
|
m(r, a) {
|
|
40
|
-
H(r, e, a),
|
|
39
|
+
H(r, e, a), ie(l, r, a), s = !0;
|
|
41
40
|
},
|
|
42
41
|
p(r, a) {
|
|
43
42
|
t = r;
|
|
@@ -51,7 +50,7 @@ function U(o, t) {
|
|
|
51
50
|
V(l.$$.fragment, r), s = !1;
|
|
52
51
|
},
|
|
53
52
|
d(r) {
|
|
54
|
-
r && W(e),
|
|
53
|
+
r && W(e), se(l, r);
|
|
55
54
|
}
|
|
56
55
|
};
|
|
57
56
|
}
|
|
@@ -76,7 +75,7 @@ function de(o) {
|
|
|
76
75
|
s = Z(t, o[6].bind(t)), r = !0;
|
|
77
76
|
},
|
|
78
77
|
p(n, [i]) {
|
|
79
|
-
i & 3 && (a = n[0],
|
|
78
|
+
i & 3 && (a = n[0], le(), e = $(e, i, m, 1, n, a, l, t, ce, U, null, T), ee());
|
|
80
79
|
},
|
|
81
80
|
i(n) {
|
|
82
81
|
if (!r) {
|
|
@@ -109,22 +108,22 @@ function he(o, t, e) {
|
|
|
109
108
|
const [f] = s.model.intersectRaycaster(g);
|
|
110
109
|
return !(f && f.distance + 1 < b);
|
|
111
110
|
}
|
|
112
|
-
function d(c,
|
|
113
|
-
const u = new w(c.position.x, c.position.y, c.position.z).clone().project(s.camera), h = Math.ceil((u.x + 1) / 2 *
|
|
111
|
+
function d(c, _) {
|
|
112
|
+
const u = new w(c.position.x, c.position.y, c.position.z).clone().project(s.camera), h = Math.ceil((u.x + 1) / 2 * _.x), b = Math.ceil((-u.y + 1) / 2 * _.y);
|
|
114
113
|
return `translate(${h}px, ${b}px)`;
|
|
115
114
|
}
|
|
116
115
|
function z(c) {
|
|
117
|
-
const { rendererSize:
|
|
116
|
+
const { rendererSize: _, shownFloor: g } = c, u = /* @__PURE__ */ new Map();
|
|
118
117
|
function h(f) {
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
return
|
|
118
|
+
const p = u.get(f.id);
|
|
119
|
+
if (p)
|
|
120
|
+
return p;
|
|
122
121
|
const { x: L, y: v, z: x } = f.position, y = new w(L, v, x).clone().distanceTo(s.camera.position);
|
|
123
122
|
return u.set(f.id, y), y;
|
|
124
123
|
}
|
|
125
124
|
return r.map((f) => {
|
|
126
|
-
const
|
|
127
|
-
return S(R({}, f), { visible:
|
|
125
|
+
const p = i(f), L = p ? d(f, _) : f.transform, v = h(f), y = r.filter((M) => M.visible && h(M) < v).length * 10;
|
|
126
|
+
return S(R({}, f), { visible: p, transform: L, zIndex: y });
|
|
128
127
|
});
|
|
129
128
|
}
|
|
130
129
|
function F() {
|
|
@@ -133,7 +132,7 @@ function he(o, t, e) {
|
|
|
133
132
|
function I(c) {
|
|
134
133
|
e(4, n = c);
|
|
135
134
|
}
|
|
136
|
-
s.on("cameraUpdate", F), s.on("modelShownFloorChange", I),
|
|
135
|
+
s.on("cameraUpdate", F), s.on("modelShownFloorChange", I), te(() => {
|
|
137
136
|
s.off("cameraUpdate", F), s.off("modelShownFloorChange", I);
|
|
138
137
|
});
|
|
139
138
|
function j() {
|
|
@@ -153,11 +152,11 @@ function he(o, t, e) {
|
|
|
153
152
|
j
|
|
154
153
|
];
|
|
155
154
|
}
|
|
156
|
-
class
|
|
155
|
+
class Le extends G {
|
|
157
156
|
constructor(t) {
|
|
158
157
|
super(), J(this, t, he, de, K, { five: 1, roomLabels: 0 }, ue);
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
export {
|
|
162
|
-
|
|
161
|
+
Le as default
|
|
163
162
|
};
|
|
@@ -11,6 +11,8 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
11
11
|
name: string;
|
|
12
12
|
state: Object3DHelperState;
|
|
13
13
|
objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
|
|
14
|
+
private css3DObjectParentMap;
|
|
15
|
+
private css3DRender;
|
|
14
16
|
constructor(five: Five);
|
|
15
17
|
/**
|
|
16
18
|
* @description Show guide line
|