@realsee/dnalogel 2.16.0-1 → 2.16.0-11
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/components/index.js +688 -240
- package/dist/CruisePlugin/index.d.ts +2 -0
- package/dist/CruisePlugin/typing.d.ts +35 -40
- package/dist/GuideLinePlugin/Controller.d.ts +6 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +45 -4
- package/dist/GuideLinePlugin/index.d.ts +2 -1
- package/dist/GuideLinePlugin/typing.d.ts +36 -5
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -1
- package/dist/GuideLinePlugin/utils/index.d.ts +6 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/dist/index.cjs.js +119 -87
- package/dist/index.js +17164 -10135
- package/dist/index.umd.js +112 -80
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/dist/shared-utils/animationFrame/index.d.ts +1 -1
- package/dist/shared-utils/animationFrame/tween.d.ts +32 -23
- package/dist/shared-utils/five/changeMode.d.ts +2 -4
- package/dist/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/dist/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/CruisePluginController.html +40 -38
- package/docs/classes/GuideLineItem.GuideLineItem.html +57 -23
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +246 -49
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/Object3DHelperController.html +27 -25
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +25 -23
- package/docs/classes/PanoMeasurePluginModel.html +24 -22
- package/docs/classes/PanoMeasurePluginPoint.html +16 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
- package/docs/classes/PanoTagPluginController.html +49 -47
- package/docs/classes/Util.BetterTween.html +31 -18
- package/docs/classes/Util.FivePointSelector.html +14 -12
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.Magnifier.html +19 -17
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +21 -19
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.getCoordsFromClient.html +7 -5
- package/docs/functions/Util.getCoordsFromElement.html +7 -5
- package/docs/functions/Util.getFrameTime.html +7 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -5
- package/docs/functions/Util.isAbsoluteURL.html +7 -5
- package/docs/functions/Util.isModelLike.html +7 -5
- package/docs/functions/Util.isNil.html +7 -5
- package/docs/functions/Util.isPanoramaLike.html +7 -5
- package/docs/functions/Util.nextFrame.html +20 -7
- package/docs/functions/Util.notNil.html +7 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -5
- package/docs/functions/Util.tweenProgress.html +9 -18
- package/docs/functions/Util.uuid.html +7 -5
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +107 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +112 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +429 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +129 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +151 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +153 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +102 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +83 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +148 -0
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +102 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +259 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +93 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +88 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +127 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +86 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +179 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +209 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +293 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +77 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +72 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +83 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +93 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +104 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +93 -0
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +16 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +17 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +13 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +28 -17
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/modules/CruisePluginTypes.html +88 -0
- package/docs/modules/GuideLineItem.html +7 -5
- package/docs/modules/GuideLineModeItem.html +7 -5
- package/docs/modules/GuideLinePluginType.html +108 -0
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +9 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +60 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +60 -0
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +72 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +105 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +70 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +72 -0
- package/docs/types/GuideLinePluginType.PathItem.html +72 -0
- package/docs/types/GuideLinePluginType.PluginData.html +70 -0
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelElement.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/PlaneTagElement.html +7 -5
- package/docs/types/Point2DElement.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DElement.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagElement.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagIconSize.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/CSS3DRenderPlugin/Controller.js +47 -13
- package/libs/CSS3DRenderPlugin/index.js +6 -8
- package/libs/CSS3DRenderPlugin/utils/even.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +37 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +1 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +22 -18
- package/libs/CameraMovementPlugin/index.js +7 -9
- package/libs/CruisePlugin/Controller.js +350 -135
- package/libs/CruisePlugin/index.d.ts +2 -0
- package/libs/CruisePlugin/index.js +123 -11
- package/libs/CruisePlugin/typing/index.js +6 -0
- package/libs/CruisePlugin/typing.d.ts +35 -40
- package/libs/CruisePlugin/utils/coordinatesToVector.js +3 -0
- package/libs/GuideLinePlugin/Components/Tag.js +50 -0
- package/libs/GuideLinePlugin/Controller.d.ts +6 -3
- package/libs/GuideLinePlugin/Controller.js +237 -103
- package/libs/GuideLinePlugin/GuideLineItem/index.js +109 -22
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +6 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +134 -7
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +192 -69
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +45 -4
- package/libs/GuideLinePlugin/GuideLineModeItem.js +116 -4
- package/libs/GuideLinePlugin/index.d.ts +2 -1
- package/libs/GuideLinePlugin/index.js +133 -13
- package/libs/GuideLinePlugin/typing.d.ts +36 -5
- package/libs/GuideLinePlugin/typing.js +32 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +40 -26
- package/libs/GuideLinePlugin/utils/getPoint.js +4 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +6 -0
- package/libs/GuideLinePlugin/utils/index.js +30 -10
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +83 -34
- package/libs/ItemLabelPlugin/ItemLabelItem.js +91 -14
- package/libs/ItemLabelPlugin/Plugin.js +2 -2
- package/libs/ItemLabelPlugin/index.js +8 -9
- package/libs/ModelChassisCompassPlugin/Plugin.js +25 -25
- package/libs/ModelChassisCompassPlugin/index.js +3 -4
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +14 -14
- package/libs/ModelEntryDoorGuidePlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +46 -10
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +60 -7
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +3 -3
- package/libs/ModelItemLabelPlugin/index.js +6 -7
- package/libs/ModelRoomLabelPlugin/Controller.js +18 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +58 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +50 -20
- package/libs/ModelTVVideoPlugin/Plugin.js +6 -8
- package/libs/ModelTVVideoPlugin/index.js +6 -9
- package/libs/ModelViewPlugin/Plugin.js +3 -3
- package/libs/ModelViewPlugin/index.js +3 -4
- package/libs/Object3DHelperPlugin/Controller.js +62 -42
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +2 -1
- package/libs/Object3DHelperPlugin/index.js +7 -9
- package/libs/PanoCompassPlugin/Controller.js +54 -4
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -1
- package/libs/PanoCompassPlugin/index.js +3 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +37 -12
- package/libs/PanoDoorLabelPlugin/Controller.js +9 -6
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +39 -13
- package/libs/PanoDoorLabelPlugin/index.js +5 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +22 -4
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +9 -5
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/index.js +42 -12
- package/libs/PanoMeasurePlugin/Model/index.js +4 -4
- package/libs/PanoMeasurePlugin/Model/line.js +8 -8
- package/libs/PanoMeasurePlugin/Model/polyline.js +25 -24
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +2 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +21 -20
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +14 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +6 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +15 -12
- package/libs/PanoMeasurePlugin/index.js +14 -15
- package/libs/PanoMeasurePlugin/typings/index.js +1 -3
- package/libs/PanoRulerPlugin/Plugin.js +54 -54
- package/libs/PanoRulerPlugin/index.js +3 -4
- package/libs/PanoRulerProPlugin/Controller.js +14 -15
- package/libs/PanoRulerProPlugin/RulerItem.js +134 -45
- package/libs/PanoRulerProPlugin/RulerItems.js +49 -40
- package/libs/PanoRulerProPlugin/index.js +4 -5
- package/libs/PanoSpatialTagPlugin/Components/origins.js +47 -8
- package/libs/PanoSpatialTagPlugin/Components/tag.js +79 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +5 -7
- package/libs/PanoSpatialTagPlugin/index.js +4 -7
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +45 -20
- package/libs/PanoTagPlugin/Components/Common/Audio.js +46 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +218 -54
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +64 -11
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +50 -27
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +151 -26
- package/libs/PanoTagPlugin/Components/Common/Media.js +222 -89
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +171 -22
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +100 -28
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +90 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +66 -13
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +69 -27
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +87 -13
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +29 -6
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +99 -14
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +169 -44
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +31 -6
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +11 -4
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +90 -35
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +33 -7
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +174 -35
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +76 -24
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +87 -14
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +84 -17
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +23 -6
- package/libs/PanoTagPlugin/Components/Tag/index.js +265 -41
- package/libs/PanoTagPlugin/Components/TagContainer.js +111 -58
- package/libs/PanoTagPlugin/Components/TagItem.js +247 -71
- package/libs/PanoTagPlugin/controller/TagCache.js +21 -19
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +45 -18
- package/libs/PanoTagPlugin/controller/TagRender.js +46 -15
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagUtil.js +25 -9
- package/libs/PanoTagPlugin/controller/index.js +95 -33
- package/libs/PanoTagPlugin/index.js +18 -19
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +7 -7
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +4 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +53 -39
- package/libs/PanoVideoPlugin/VideoMeshController.js +89 -43
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/_commonjsHelpers.js +4 -0
- package/libs/base/BasePlugin.js +23 -15
- package/libs/base/BasePluginWithData.js +2 -2
- package/libs/components/PaintBrush/Controller.js +15 -4
- package/libs/components/PaintBrush/Subscribe.js +37 -0
- package/libs/components/PaintBrush/index.js +17 -4
- package/libs/components/PaintBrush/tween.js +2 -2
- package/libs/components/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +24 -6
- package/libs/floorplan/Components/Camera.js +73 -27
- package/libs/floorplan/Components/Compass.js +20 -3
- package/libs/floorplan/Components/CurrentFloor.js +189 -50
- package/libs/floorplan/Components/Main.js +202 -54
- package/libs/floorplan/Components/Normalmage.js +5 -2
- package/libs/floorplan/Components/RoomHighlight/Room.js +38 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +105 -58
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +91 -18
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +106 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +42 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +15 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +40 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -3
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +125 -51
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +80 -15
- package/libs/floorplan/Components/SvgImage.js +18 -6
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +117 -75
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +96 -53
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +43 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +83 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +61 -39
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +128 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +39 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -6
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +83 -63
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -6
- package/libs/floorplan/index.js +1 -3
- package/libs/floorplan/typings/floorplanServerData.js +80 -80
- package/libs/index.js +138 -127
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +29 -1
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +10 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +5 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +9 -8
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +4 -1
- package/libs/shared-utils/Object3DHelper/index.js +15 -0
- package/libs/shared-utils/Subscribe.js +38 -1
- package/libs/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/libs/shared-utils/animationFrame/BetterTween.js +19 -12
- package/libs/shared-utils/animationFrame/index.d.ts +1 -1
- package/libs/shared-utils/animationFrame/index.js +14 -14
- package/libs/shared-utils/animationFrame/tween.d.ts +32 -23
- package/libs/shared-utils/animationFrame/tween.js +15 -15
- package/libs/shared-utils/audio.js +9 -9
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +3 -3
- package/libs/shared-utils/five/changeMode.d.ts +2 -4
- package/libs/shared-utils/five/changeMode.js +37 -28
- package/libs/shared-utils/index.js +15 -15
- package/libs/shared-utils/log.js +2 -2
- package/libs/shared-utils/math/Interval.js +2 -0
- package/libs/shared-utils/math/Rectangle.js +2 -0
- package/libs/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/libs/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/libs/shared-utils/three/FivePointSelector.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +10 -7
- package/libs/shared-utils/three/PointDomHelper.js +11 -10
- package/libs/shared-utils/three/index.js +1 -2
- package/libs/shared-utils/three/loadTexture.js +10 -10
- package/libs/shared-utils/threex/domevents/index.js +2 -2
- package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +403 -0
- package/libs/vendor/classnames/index.js +47 -0
- package/libs/vendor/easy-reactive/main.js +3 -0
- package/libs/vendor/{simply-reactive → easy-reactive}/src/simply-reactive.js +8 -8
- package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/object.js +1 -1
- package/libs/vendor/gl-vec2/add.js +7 -0
- package/libs/vendor/gl-vec2/dot.js +7 -0
- package/libs/vendor/gl-vec2/normalize.js +8 -0
- package/libs/vendor/gl-vec2/set.js +7 -0
- package/libs/vendor/gl-vec2/subtract.js +7 -0
- package/libs/vendor/lodash.clonedeep/index.js +457 -0
- package/libs/vendor/lodash.get/index.js +236 -0
- package/libs/vendor/lodash.isequal/index.js +489 -0
- package/libs/vendor/object-assign-deep/objectAssignDeep.js +62 -0
- package/libs/vendor/polyline-miter-util/index.js +18 -0
- package/libs/vendor/polyline-normals/index.js +28 -0
- package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +155 -134
- package/libs/vendor/svelte/easing/index.js +4 -5
- package/libs/vendor/svelte/index.js +1 -1
- package/libs/vendor/svelte/internal/index.js +412 -388
- package/libs/vendor/svelte/store/index.js +6 -6
- package/libs/vendor/svelte/transition/index.js +23 -20
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -3
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +338 -71
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +7 -1
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +19 -3
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +30 -7
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +15 -3
- package/libs/vendor/svelte-carousel/src/utils/clones.js +1 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +3 -0
- package/package.json +11 -13
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/libs/vendor/simply-reactive/main.js +0 -3
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/subscription.js +0 -0
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/watcher.js +0 -0
|
@@ -3,9 +3,13 @@ const o = [];
|
|
|
3
3
|
function c(r = new e.Vector3(1, 1, 1), a = 0) {
|
|
4
4
|
const n = new e.SphereGeometry(0.02, 16, 16), t = [
|
|
5
5
|
new e.MeshBasicMaterial({ color: 16776960 }),
|
|
6
|
+
// 黄
|
|
6
7
|
new e.MeshBasicMaterial({ color: 16711935 }),
|
|
8
|
+
// 粉
|
|
7
9
|
new e.MeshBasicMaterial({ color: 16711680 }),
|
|
10
|
+
// 红
|
|
8
11
|
new e.MeshBasicMaterial({ color: 65535 })
|
|
12
|
+
// 蓝
|
|
9
13
|
][a], s = new e.Mesh(n, t);
|
|
10
14
|
return t.depthTest = !1, t.transparent = !0, t.opacity = 0.6, t.side = e.DoubleSide, s.position.copy(r), o.push(s), s;
|
|
11
15
|
}
|
|
@@ -5,3 +5,9 @@ export declare function updateGuideLineModeItemByData(options: {
|
|
|
5
5
|
data: PluginType.GuideLineItem;
|
|
6
6
|
mode: PluginType.GuideLineModeItemMode;
|
|
7
7
|
}): void;
|
|
8
|
+
/**
|
|
9
|
+
* 筛选出给定数组中,相邻元素不能重复的元素组成的新数组
|
|
10
|
+
* @param array 要筛选的数组
|
|
11
|
+
* @returns 筛选后的新数组
|
|
12
|
+
*/
|
|
13
|
+
export declare function filterAdjacentDistinct<T>(array: T[]): T[];
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import "three";
|
|
2
|
-
import "polyline-
|
|
2
|
+
import "../../vendor/polyline-miter-util/index.js";
|
|
3
3
|
import "@realsee/five";
|
|
4
4
|
import "hammerjs";
|
|
5
|
-
import "
|
|
5
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
6
6
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
7
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
8
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
9
8
|
import "../../shared-utils/three/loadTexture.js";
|
|
9
|
+
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
10
|
+
import "@realsee/five/gltf-loader";
|
|
11
|
+
import "../../PanoTagPlugin/utils/device.js";
|
|
12
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
13
|
+
import "animejs";
|
|
14
|
+
import "../../PanoTagPlugin/utils/constants.js";
|
|
15
|
+
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
16
|
+
import "../../vendor/lodash.get/index.js";
|
|
17
|
+
import "../../vendor/lodash.clonedeep/index.js";
|
|
18
|
+
import "../../vendor/lodash.isequal/index.js";
|
|
19
|
+
import "../../vendor/classnames/index.js";
|
|
20
|
+
import "../../shared-utils/three/GLTFLoader.js";
|
|
21
|
+
import "../../vendor/gl-vec2/add.js";
|
|
22
|
+
import "../../vendor/gl-vec2/set.js";
|
|
23
|
+
import "../../vendor/gl-vec2/normalize.js";
|
|
24
|
+
import "../../vendor/gl-vec2/subtract.js";
|
|
25
|
+
import "../../vendor/gl-vec2/dot.js";
|
|
10
26
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
27
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
28
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -19,14 +35,18 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
19
35
|
import "../../shared-utils/three/centerPoint.js";
|
|
20
36
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
37
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
-
import "../../
|
|
23
|
-
function
|
|
24
|
-
const t = o.data,
|
|
25
|
-
if (!
|
|
38
|
+
import "../../_commonjsHelpers.js";
|
|
39
|
+
function T(o) {
|
|
40
|
+
const t = o.data, r = o.item, i = o.mode === "panorama" ? t.panorama_style : t.model_style;
|
|
41
|
+
if (!i)
|
|
26
42
|
return;
|
|
27
|
-
const
|
|
28
|
-
t.path ?
|
|
43
|
+
const p = t.path, m = i, e = i;
|
|
44
|
+
t.path ? r.setGeometryByPath(p, m) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, m), r.setMartial(e);
|
|
45
|
+
}
|
|
46
|
+
function U(o) {
|
|
47
|
+
return o.length === 0 ? [] : o.filter((t, r) => t !== o[r - 1]);
|
|
29
48
|
}
|
|
30
49
|
export {
|
|
31
|
-
|
|
50
|
+
U as filterAdjacentDistinct,
|
|
51
|
+
T as updateGuideLineModeItemByData
|
|
32
52
|
};
|
|
@@ -10,16 +10,16 @@ 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
|
|
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 x, add_resize_listener as ge, update_keyed_each as ke, check_outros as Z, transition_in as w, transition_out as z, detach as v, 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
15
|
import * as Ee from "three";
|
|
16
16
|
import Fe from "./ItemLabelItem.js";
|
|
17
17
|
import { debounce as Oe } from "../shared-utils/debounce.js";
|
|
18
18
|
import { isImpacted as B } from "./utils/isImpacted.js";
|
|
19
|
-
import { getStrokeLength as
|
|
20
|
-
import { getLabelTransform as
|
|
19
|
+
import { getStrokeLength as Ve } from "./utils/getStrokeLength.js";
|
|
20
|
+
import { getLabelTransform as xe } from "./utils/getLabelTransform.js";
|
|
21
21
|
import { transform2RenderData as N } from "./utils/transform2RenderData.js";
|
|
22
|
-
import "classnames";
|
|
22
|
+
import "../vendor/classnames/index.js";
|
|
23
23
|
import "./typings.js";
|
|
24
24
|
function ve(i) {
|
|
25
25
|
he(i, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
@@ -32,10 +32,22 @@ function X(i) {
|
|
|
32
32
|
let t, e;
|
|
33
33
|
return t = new Fe({
|
|
34
34
|
props: {
|
|
35
|
-
itemLabel:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
itemLabel: (
|
|
36
|
+
/*itemLabelItem*/
|
|
37
|
+
i[30]
|
|
38
|
+
),
|
|
39
|
+
hooks: (
|
|
40
|
+
/*hooks*/
|
|
41
|
+
i[0]
|
|
42
|
+
),
|
|
43
|
+
anchorEnabled: (
|
|
44
|
+
/*anchorEnabled*/
|
|
45
|
+
i[2]
|
|
46
|
+
),
|
|
47
|
+
onIconClick: (
|
|
48
|
+
/*onIconClick*/
|
|
49
|
+
i[6]
|
|
50
|
+
)
|
|
39
51
|
}
|
|
40
52
|
}), {
|
|
41
53
|
c() {
|
|
@@ -46,7 +58,13 @@ function X(i) {
|
|
|
46
58
|
},
|
|
47
59
|
p(r, f) {
|
|
48
60
|
const o = {};
|
|
49
|
-
f[0] &
|
|
61
|
+
f[0] & /*renderItemLabels*/
|
|
62
|
+
2 && (o.itemLabel = /*itemLabelItem*/
|
|
63
|
+
r[30]), f[0] & /*hooks*/
|
|
64
|
+
1 && (o.hooks = /*hooks*/
|
|
65
|
+
r[0]), f[0] & /*anchorEnabled*/
|
|
66
|
+
4 && (o.anchorEnabled = /*anchorEnabled*/
|
|
67
|
+
r[2]), t.$set(o);
|
|
50
68
|
},
|
|
51
69
|
i(r) {
|
|
52
70
|
e || (w(t.$$.fragment, r), e = !0);
|
|
@@ -60,7 +78,10 @@ function X(i) {
|
|
|
60
78
|
};
|
|
61
79
|
}
|
|
62
80
|
function Y(i, t) {
|
|
63
|
-
let e, r, f, o =
|
|
81
|
+
let e, r, f, o = (
|
|
82
|
+
/*itemLabelItem*/
|
|
83
|
+
t[30].visible && X(t)
|
|
84
|
+
);
|
|
64
85
|
return {
|
|
65
86
|
key: i,
|
|
66
87
|
first: null,
|
|
@@ -68,10 +89,12 @@ function Y(i, t) {
|
|
|
68
89
|
e = A(), o && o.c(), r = A(), this.first = e;
|
|
69
90
|
},
|
|
70
91
|
m(d, h) {
|
|
71
|
-
|
|
92
|
+
x(d, e, h), o && o.m(d, h), x(d, r, h), f = !0;
|
|
72
93
|
},
|
|
73
94
|
p(d, h) {
|
|
74
|
-
t = d,
|
|
95
|
+
t = d, /*itemLabelItem*/
|
|
96
|
+
t[30].visible ? o ? (o.p(t, h), h[0] & /*renderItemLabels*/
|
|
97
|
+
2 && w(o, 1)) : (o = X(t), o.c(), w(o, 1), o.m(r.parentNode, r)) : o && (G(), z(o, 1, 1, () => {
|
|
75
98
|
o = null;
|
|
76
99
|
}), Z());
|
|
77
100
|
},
|
|
@@ -82,13 +105,19 @@ function Y(i, t) {
|
|
|
82
105
|
z(o), f = !1;
|
|
83
106
|
},
|
|
84
107
|
d(d) {
|
|
85
|
-
d &&
|
|
108
|
+
d && v(e), o && o.d(d), d && v(r);
|
|
86
109
|
}
|
|
87
110
|
};
|
|
88
111
|
}
|
|
89
112
|
function Te(i) {
|
|
90
|
-
let t, e = [], r = /* @__PURE__ */ new Map(), f, o, d =
|
|
91
|
-
|
|
113
|
+
let t, e = [], r = /* @__PURE__ */ new Map(), f, o, d = (
|
|
114
|
+
/*renderItemLabels*/
|
|
115
|
+
i[1]
|
|
116
|
+
);
|
|
117
|
+
const h = (c) => (
|
|
118
|
+
/*itemLabelItem*/
|
|
119
|
+
c[30].id
|
|
120
|
+
);
|
|
92
121
|
for (let c = 0; c < d.length; c += 1) {
|
|
93
122
|
let a = q(i, d, c), _ = h(a);
|
|
94
123
|
r.set(_, e[c] = Y(_, a));
|
|
@@ -98,16 +127,36 @@ function Te(i) {
|
|
|
98
127
|
t = _e("div");
|
|
99
128
|
for (let c = 0; c < e.length; c += 1)
|
|
100
129
|
e[c].c();
|
|
101
|
-
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() =>
|
|
130
|
+
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => (
|
|
131
|
+
/*div_elementresize_handler*/
|
|
132
|
+
i[12].call(t)
|
|
133
|
+
)), W(
|
|
134
|
+
t,
|
|
135
|
+
"opacity",
|
|
136
|
+
/*itemsVisible*/
|
|
137
|
+
i[5] ? 1 : 0
|
|
138
|
+
);
|
|
102
139
|
},
|
|
103
140
|
m(c, a) {
|
|
104
|
-
|
|
141
|
+
x(c, t, a);
|
|
105
142
|
for (let _ = 0; _ < e.length; _ += 1)
|
|
106
|
-
e[_].m(t, null);
|
|
107
|
-
f = ge(
|
|
143
|
+
e[_] && e[_].m(t, null);
|
|
144
|
+
f = ge(
|
|
145
|
+
t,
|
|
146
|
+
/*div_elementresize_handler*/
|
|
147
|
+
i[12].bind(t)
|
|
148
|
+
), o = !0;
|
|
108
149
|
},
|
|
109
150
|
p(c, a) {
|
|
110
|
-
a[0] &
|
|
151
|
+
a[0] & /*renderItemLabels, hooks, anchorEnabled, onIconClick*/
|
|
152
|
+
71 && (d = /*renderItemLabels*/
|
|
153
|
+
c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & /*itemsVisible*/
|
|
154
|
+
32 && W(
|
|
155
|
+
t,
|
|
156
|
+
"opacity",
|
|
157
|
+
/*itemsVisible*/
|
|
158
|
+
c[5] ? 1 : 0
|
|
159
|
+
);
|
|
111
160
|
},
|
|
112
161
|
i(c) {
|
|
113
162
|
if (!o) {
|
|
@@ -122,7 +171,7 @@ function Te(i) {
|
|
|
122
171
|
o = !1;
|
|
123
172
|
},
|
|
124
173
|
d(c) {
|
|
125
|
-
c &&
|
|
174
|
+
c && v(t);
|
|
126
175
|
for (let a = 0; a < e.length; a += 1)
|
|
127
176
|
e[a].d();
|
|
128
177
|
f();
|
|
@@ -132,13 +181,13 @@ function Te(i) {
|
|
|
132
181
|
let De = 11;
|
|
133
182
|
function Ue(i, t, e) {
|
|
134
183
|
const { Raycaster: r, Vector3: f } = Ee;
|
|
135
|
-
let { five: o } = t, { modelOcclusionEnable: d } = t, { itemLabels: h } = t, { hooks: c } = t, { displayStrategyType: a } = t, { maxVisibleDistance: _ } = t, C = null, g = null, J = (o == null ? void 0 : o.currentMode) === P.Mode.Panorama, E, F,
|
|
184
|
+
let { five: o } = t, { modelOcclusionEnable: d } = t, { itemLabels: h } = t, { hooks: c } = t, { displayStrategyType: a } = t, { maxVisibleDistance: _ } = t, C = null, g = null, J = (o == null ? void 0 : o.currentMode) === P.Mode.Panorama, E, F, T = [], O = !0;
|
|
136
185
|
const K = (s, u) => {
|
|
137
186
|
const p = s.camera.position.clone(), m = new f(u.modelPosition[0], u.modelPosition[1], u.modelPosition[2]), n = m.distanceTo(p);
|
|
138
187
|
return _ !== void 0 && s.state.mode === P.Mode.Panorama && n > _ ? !1 : B(s, m.clone().sub(p).normalize(), p, n);
|
|
139
188
|
}, Q = (s) => {
|
|
140
|
-
const { camera: u, model: p } = o, { x: m, y: n, z: l } = s.clone().project(u), I = (m + 1) / 2, b = (2 - (n + 1)) / 2
|
|
141
|
-
return
|
|
189
|
+
const { camera: u, model: p } = o, { x: m, y: n, z: l } = s.clone().project(u), I = (m + 1) / 2, b = (2 - (n + 1)) / 2;
|
|
190
|
+
return !!(Math.abs(l) < 1 && [I, b].every((S) => S < 1 && S >= 0));
|
|
142
191
|
}, $ = (s, u) => {
|
|
143
192
|
const p = new f(u.modelPosition[0], u.modelPosition[1], u.modelPosition[2]), m = s.project2d(p), n = m == null ? void 0 : m.x, l = m == null ? void 0 : m.y;
|
|
144
193
|
return [n, l];
|
|
@@ -148,14 +197,14 @@ function Ue(i, t, e) {
|
|
|
148
197
|
return y(k({}, n), { visible: !1 });
|
|
149
198
|
const l = $(s, n);
|
|
150
199
|
n.name.length * De;
|
|
151
|
-
const I =
|
|
200
|
+
const I = Ve(n.modelPosition[1], a), b = s.currentMode === P.Mode.Panorama ? Q(new f(n.position[0], n.position[1], n.position[2])) : !0, V = d ? K(s, n) : !1, M = b && !V;
|
|
152
201
|
if (!M)
|
|
153
202
|
return y(k({}, n), { visible: M });
|
|
154
|
-
|
|
155
|
-
const
|
|
203
|
+
T.push(l);
|
|
204
|
+
const R = xe(l);
|
|
156
205
|
return y(k({}, n), {
|
|
157
206
|
visible: M,
|
|
158
|
-
transform:
|
|
207
|
+
transform: R,
|
|
159
208
|
strokeLength: I
|
|
160
209
|
});
|
|
161
210
|
}), m = p.filter(({ visible: n }) => n).map((n) => ({
|
|
@@ -167,18 +216,18 @@ function Ue(i, t, e) {
|
|
|
167
216
|
return l !== void 0 ? y(k({}, n), { zIndex: l * 10 }) : n;
|
|
168
217
|
});
|
|
169
218
|
}, L = () => {
|
|
170
|
-
|
|
171
|
-
},
|
|
219
|
+
T = [], e(1, g = ee(o, g));
|
|
220
|
+
}, D = () => {
|
|
172
221
|
e(5, O = !1), te();
|
|
173
222
|
}, te = Oe(
|
|
174
223
|
() => {
|
|
175
224
|
e(5, O = !0), L();
|
|
176
225
|
},
|
|
177
226
|
300
|
|
178
|
-
),
|
|
227
|
+
), U = () => {
|
|
179
228
|
o.once("renderFrame", L);
|
|
180
229
|
}, oe = () => {
|
|
181
|
-
window.addEventListener("resize",
|
|
230
|
+
window.addEventListener("resize", U, !1);
|
|
182
231
|
}, ne = () => {
|
|
183
232
|
C !== h && (e(1, g = N(h)), C = h, L());
|
|
184
233
|
}, se = (s, u) => {
|
|
@@ -221,9 +270,9 @@ function Ue(i, t, e) {
|
|
|
221
270
|
ye(() => {
|
|
222
271
|
ne();
|
|
223
272
|
}), Pe(() => {
|
|
224
|
-
e(1, g = N(h)), C = h, L(), oe(), o.on("cameraUpdate",
|
|
273
|
+
e(1, g = N(h)), C = h, L(), oe(), o.on("cameraUpdate", D);
|
|
225
274
|
}), we(() => {
|
|
226
|
-
o.off("cameraUpdate",
|
|
275
|
+
o.off("cameraUpdate", D), window.removeEventListener("resize", U, !1);
|
|
227
276
|
});
|
|
228
277
|
function re() {
|
|
229
278
|
E = this.clientWidth, F = this.clientHeight, e(3, E), e(4, F);
|
|
@@ -1,12 +1,22 @@
|
|
|
1
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
|
-
import k from "classnames";
|
|
2
|
+
import { classnames as k } from "../vendor/classnames/index.js";
|
|
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
|
|
5
5
|
}to{opacity:1
|
|
6
6
|
}}`);
|
|
7
7
|
}
|
|
8
8
|
function D(l) {
|
|
9
|
-
let e, t, n, s = (
|
|
9
|
+
let e, t, n, s = (
|
|
10
|
+
/*itemLabel*/
|
|
11
|
+
(l[0].code || /*itemLabel*/
|
|
12
|
+
l[0].id) + ""
|
|
13
|
+
), h, o, m, r = (
|
|
14
|
+
/*itemLabel*/
|
|
15
|
+
l[0].name + ""
|
|
16
|
+
), g, a = (
|
|
17
|
+
/*itemLabel*/
|
|
18
|
+
l[0].icon && E(l)
|
|
19
|
+
);
|
|
10
20
|
return {
|
|
11
21
|
c() {
|
|
12
22
|
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");
|
|
@@ -15,7 +25,13 @@ function D(l) {
|
|
|
15
25
|
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
26
|
},
|
|
17
27
|
p(i, b) {
|
|
18
|
-
|
|
28
|
+
/*itemLabel*/
|
|
29
|
+
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 & /*itemLabel*/
|
|
30
|
+
1 && s !== (s = /*itemLabel*/
|
|
31
|
+
(i[0].code || /*itemLabel*/
|
|
32
|
+
i[0].id) + "") && C(h, s), b & /*itemLabel*/
|
|
33
|
+
1 && r !== (r = /*itemLabel*/
|
|
34
|
+
i[0].name + "") && C(g, r);
|
|
19
35
|
},
|
|
20
36
|
d(i) {
|
|
21
37
|
a && a.d(i), i && y(e), i && y(t);
|
|
@@ -41,13 +57,21 @@ function E(l) {
|
|
|
41
57
|
let e, t, n, s, h;
|
|
42
58
|
return {
|
|
43
59
|
c() {
|
|
44
|
-
e = w("div"), t = w("div"), c(t, "class", "icon svelte-gduhqw"), c(t, "style", n = `background-image: url(${
|
|
60
|
+
e = w("div"), t = w("div"), c(t, "class", "icon svelte-gduhqw"), c(t, "style", n = `background-image: url(${/*itemLabel*/
|
|
61
|
+
l[0].icon})`), c(e, "class", "icon-wrap svelte-gduhqw");
|
|
45
62
|
},
|
|
46
63
|
m(o, m) {
|
|
47
|
-
q(o, e, m), v(e, t), s || (h = j(
|
|
64
|
+
q(o, e, m), v(e, t), s || (h = j(
|
|
65
|
+
e,
|
|
66
|
+
"click",
|
|
67
|
+
/*click_handler*/
|
|
68
|
+
l[7]
|
|
69
|
+
), s = !0);
|
|
48
70
|
},
|
|
49
71
|
p(o, m) {
|
|
50
|
-
m &
|
|
72
|
+
m & /*itemLabel*/
|
|
73
|
+
1 && n !== (n = `background-image: url(${/*itemLabel*/
|
|
74
|
+
o[0].icon})`) && c(t, "style", n);
|
|
51
75
|
},
|
|
52
76
|
d(o) {
|
|
53
77
|
o && y(e), s = !1, h();
|
|
@@ -57,22 +81,74 @@ function E(l) {
|
|
|
57
81
|
function H(l) {
|
|
58
82
|
let e, t, n, s, h, o, m, r, g, a;
|
|
59
83
|
function i(d, u) {
|
|
60
|
-
return u &
|
|
84
|
+
return u & /*itemLabel*/
|
|
85
|
+
1 && (n = null), n == null && (n = typeof /*itemLabel*/
|
|
86
|
+
d[0].render == "function"), n ? G : D;
|
|
61
87
|
}
|
|
62
88
|
let b = i(l, -1), f = b(l);
|
|
63
89
|
return {
|
|
64
90
|
c() {
|
|
65
91
|
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
|
-
"item-label-item__custom":
|
|
67
|
-
|
|
92
|
+
"item-label-item__custom": typeof /*itemLabel*/
|
|
93
|
+
l[0].render == "function"
|
|
94
|
+
})) + " svelte-gduhqw"), _(t, "bottom", `${/*itemLabel*/
|
|
95
|
+
l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: (
|
|
96
|
+
/*anchorEnabled*/
|
|
97
|
+
l[1]
|
|
98
|
+
) })) + " svelte-gduhqw"), _(o, "height", `${/*itemLabel*/
|
|
99
|
+
l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: (
|
|
100
|
+
/*itemLabel*/
|
|
101
|
+
l[0].isFold
|
|
102
|
+
) })) + " svelte-gduhqw"), _(
|
|
103
|
+
e,
|
|
104
|
+
"z-index",
|
|
105
|
+
/*itemLabel*/
|
|
106
|
+
l[0].zIndex
|
|
107
|
+
), _(
|
|
108
|
+
e,
|
|
109
|
+
"transform",
|
|
110
|
+
/*itemLabel*/
|
|
111
|
+
l[0].transform
|
|
112
|
+
);
|
|
68
113
|
},
|
|
69
114
|
m(d, u) {
|
|
70
|
-
q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(
|
|
115
|
+
q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(
|
|
116
|
+
t,
|
|
117
|
+
"click",
|
|
118
|
+
/*onClick*/
|
|
119
|
+
l[4]
|
|
120
|
+
), g = !0);
|
|
71
121
|
},
|
|
72
122
|
p(d, [u]) {
|
|
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 &
|
|
74
|
-
|
|
75
|
-
|
|
123
|
+
b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & /*itemLabel*/
|
|
124
|
+
1 && s !== (s = p(k("item-label-item__text-wrap", {
|
|
125
|
+
"item-label-item__custom": typeof /*itemLabel*/
|
|
126
|
+
d[0].render == "function"
|
|
127
|
+
})) + " svelte-gduhqw") && c(t, "class", s), u & /*itemLabel*/
|
|
128
|
+
1 && _(t, "bottom", `${/*itemLabel*/
|
|
129
|
+
d[0].strokeLength}px`), u & /*anchorEnabled*/
|
|
130
|
+
2 && m !== (m = p(k("item-label-item__bar", { anchor: (
|
|
131
|
+
/*anchorEnabled*/
|
|
132
|
+
d[1]
|
|
133
|
+
) })) + " svelte-gduhqw") && c(o, "class", m), u & /*itemLabel*/
|
|
134
|
+
1 && _(o, "height", `${/*itemLabel*/
|
|
135
|
+
d[0].strokeLength}px`), u & /*itemLabel*/
|
|
136
|
+
1 && r !== (r = p(k("item-label-item", { fold: (
|
|
137
|
+
/*itemLabel*/
|
|
138
|
+
d[0].isFold
|
|
139
|
+
) })) + " svelte-gduhqw") && c(e, "class", r), u & /*itemLabel*/
|
|
140
|
+
1 && _(
|
|
141
|
+
e,
|
|
142
|
+
"z-index",
|
|
143
|
+
/*itemLabel*/
|
|
144
|
+
d[0].zIndex
|
|
145
|
+
), u & /*itemLabel*/
|
|
146
|
+
1 && _(
|
|
147
|
+
e,
|
|
148
|
+
"transform",
|
|
149
|
+
/*itemLabel*/
|
|
150
|
+
d[0].transform
|
|
151
|
+
);
|
|
76
152
|
},
|
|
77
153
|
i: I,
|
|
78
154
|
o: I,
|
|
@@ -96,7 +172,8 @@ function J(l, e, t) {
|
|
|
96
172
|
return l.$$set = (i) => {
|
|
97
173
|
"itemLabel" in i && t(0, n = i.itemLabel), "hooks" in i && t(5, s = i.hooks), "anchorEnabled" in i && t(1, h = i.anchorEnabled), "onIconClick" in i && t(2, o = i.onIconClick);
|
|
98
174
|
}, l.$$.update = () => {
|
|
99
|
-
if (l.$$.dirty &
|
|
175
|
+
if (l.$$.dirty & /*itemLabel, customElement*/
|
|
176
|
+
9 && typeof n.render == "function" && r && r.children.length === 0) {
|
|
100
177
|
const i = n.render(n);
|
|
101
178
|
i && r.appendChild(i);
|
|
102
179
|
}
|
|
@@ -5,7 +5,7 @@ import { parseItemLabelPluginData as v } from "./utils/parseData.js";
|
|
|
5
5
|
import "../vendor/svelte/internal/index.js";
|
|
6
6
|
import "three";
|
|
7
7
|
import "./ItemLabelItem.js";
|
|
8
|
-
import "classnames";
|
|
8
|
+
import "../vendor/classnames/index.js";
|
|
9
9
|
import "../shared-utils/debounce.js";
|
|
10
10
|
import "./utils/isImpacted.js";
|
|
11
11
|
import "./utils/getStrokeLength.js";
|
|
@@ -41,7 +41,7 @@ const P = void 0, O = (o, t) => {
|
|
|
41
41
|
f(), e.container.remove();
|
|
42
42
|
}, i = () => {
|
|
43
43
|
var n;
|
|
44
|
-
if (
|
|
44
|
+
if (e.wrapper) {
|
|
45
45
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
46
46
|
(n = e.app) == null || n.$destroy(), e.app = void 0;
|
|
47
47
|
return;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import "./Plugin.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as b } from "./typings.js";
|
|
1
|
+
import { Plugin as m } from "./Plugin.js";
|
|
2
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as E } from "./typings.js";
|
|
4
3
|
import "@realsee/five";
|
|
5
4
|
import "./ItemLabelComponent.js";
|
|
6
5
|
import "../vendor/svelte/internal/index.js";
|
|
7
6
|
import "three";
|
|
8
7
|
import "./ItemLabelItem.js";
|
|
9
|
-
import "classnames";
|
|
8
|
+
import "../vendor/classnames/index.js";
|
|
10
9
|
import "../shared-utils/debounce.js";
|
|
11
10
|
import "./utils/isImpacted.js";
|
|
12
11
|
import "./utils/getStrokeLength.js";
|
|
13
12
|
import "./utils/getLabelTransform.js";
|
|
14
13
|
import "./utils/transform2RenderData.js";
|
|
15
14
|
import "./utils/parseData.js";
|
|
16
|
-
const
|
|
15
|
+
const I = {
|
|
17
16
|
name: "ItemLabelPlugin",
|
|
18
17
|
version: 0
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
E as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
21
|
+
m as ItemLabelPlugin,
|
|
22
|
+
m as default,
|
|
23
|
+
I as itemLabelPluginServerParams
|
|
25
24
|
};
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var M = (t, a, s) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var M = (t, a, s) => new Promise((m, o) => {
|
|
2
|
+
var f = (n) => {
|
|
3
3
|
try {
|
|
4
4
|
c(s.next(n));
|
|
5
|
-
} catch (
|
|
6
|
-
o(
|
|
5
|
+
} catch (d) {
|
|
6
|
+
o(d);
|
|
7
7
|
}
|
|
8
8
|
}, i = (n) => {
|
|
9
9
|
try {
|
|
10
10
|
c(s.throw(n));
|
|
11
|
-
} catch (
|
|
12
|
-
o(
|
|
11
|
+
} catch (d) {
|
|
12
|
+
o(d);
|
|
13
13
|
}
|
|
14
|
-
}, c = (n) => n.done ?
|
|
14
|
+
}, c = (n) => n.done ? m(n.value) : Promise.resolve(n.value).then(f, i);
|
|
15
15
|
c((s = s.apply(t, a)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as h from "three";
|
|
18
|
-
import { FBXLoader as
|
|
19
|
-
import { bject3d2LocalMatrix as
|
|
20
|
-
import { transfromToMeshBasicMaterial as
|
|
18
|
+
import { FBXLoader as C } from "three/examples/jsm/loaders/FBXLoader";
|
|
19
|
+
import { bject3d2LocalMatrix as D } from "../shared-utils/object3d2LocalMatrix.js";
|
|
20
|
+
import { transfromToMeshBasicMaterial as E } from "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
21
21
|
const X = (t, a) => {
|
|
22
22
|
var x;
|
|
23
|
-
const s = a.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX",
|
|
23
|
+
const s = a.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", m = (x = a.north_rad) != null ? x : void 0, o = {}, f = (e) => M(void 0, null, function* () {
|
|
24
24
|
var y;
|
|
25
|
-
const r = (e == null ? void 0 : e.fbx_url) || s,
|
|
26
|
-
if (typeof
|
|
27
|
-
throw new Error('"northRad"
|
|
28
|
-
const
|
|
29
|
-
|
|
25
|
+
const r = (e == null ? void 0 : e.fbx_url) || s, b = (y = e == null ? void 0 : e.north_rad) != null ? y : m;
|
|
26
|
+
if (typeof b != "number")
|
|
27
|
+
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
28
|
+
const l = t.model.bounding, j = l.max.x - l.min.x, g = l.max.z - l.min.z, z = Math.max(j, g), u = yield new C().loadAsync(r);
|
|
29
|
+
E(u, {
|
|
30
30
|
transparent: !0,
|
|
31
31
|
side: h.DoubleSide,
|
|
32
32
|
blending: h.AdditiveBlending
|
|
33
33
|
});
|
|
34
|
-
const
|
|
34
|
+
const B = [0, b - Math.PI / 2, 0], {
|
|
35
35
|
model: {
|
|
36
36
|
bounding: {
|
|
37
|
-
max: { x:
|
|
38
|
-
min: { x:
|
|
37
|
+
max: { x: P, z: R },
|
|
38
|
+
min: { x: w, y: p, z: U }
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
} = t;
|
|
42
42
|
o.yBase = p;
|
|
43
|
-
const
|
|
44
|
-
return
|
|
43
|
+
const L = { x: (P + w) / 2, y: p - 1.6, z: (R + U) / 2 }, _ = 45e-4 * z;
|
|
44
|
+
return D(u, { position: L, rotation: B, scale: _ }), o.object = u, !0;
|
|
45
45
|
}), i = ({ latitude: e }) => {
|
|
46
46
|
if (!o.object)
|
|
47
47
|
return;
|
|
@@ -53,11 +53,11 @@ const X = (t, a) => {
|
|
|
53
53
|
const r = 0.6;
|
|
54
54
|
if (e >= Math.PI / 4)
|
|
55
55
|
return o.yBase - (r + 1.6);
|
|
56
|
-
const
|
|
57
|
-
return o.yBase - (r *
|
|
56
|
+
const b = e * (4 / Math.PI);
|
|
57
|
+
return o.yBase - (r * b + 1.6);
|
|
58
58
|
};
|
|
59
|
-
return { load:
|
|
60
|
-
|
|
59
|
+
return { load: f, disable: () => {
|
|
60
|
+
o.object && (t.scene.remove(o.object), t.needsRender = !0, t.off("cameraDirectionUpdate", i));
|
|
61
61
|
}, enable: () => {
|
|
62
62
|
if (!o.object)
|
|
63
63
|
return;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "./Plugin.js";
|
|
2
|
-
import { ModelChassisCompassPlugin as t, ModelChassisCompassPlugin as C } from "./Plugin.js";
|
|
1
|
+
import { ModelChassisCompassPlugin as i } from "./Plugin.js";
|
|
3
2
|
import "three";
|
|
4
3
|
import "three/examples/jsm/loaders/FBXLoader";
|
|
5
4
|
import "../shared-utils/object3d2LocalMatrix.js";
|
|
6
5
|
import "../shared-utils/three/transformToMeshBasicMaterial.js";
|
|
7
6
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
i as ModelChassisCompassPlugin,
|
|
8
|
+
i as default
|
|
10
9
|
};
|