@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.2
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/README.md +3 -12
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -331
- package/libs/CSS3DRenderPlugin/Controller.js +1 -84
- package/libs/CSS3DRenderPlugin/index.js +1 -6
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
- package/libs/CameraMovementPlugin/index.js +1 -0
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -484
- package/libs/CruisePlugin/index.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
- package/libs/CruisePlugin/utils/formatRad.js +1 -7
- package/libs/CruisePlugin/utils/linerValue.js +1 -7
- package/libs/CruisePlugin/utils/safeCall.js +1 -28
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -144
- package/libs/GuideLinePlugin/index.js +1 -6
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -76
- package/libs/ItemLabelPlugin/index.js +1 -12
- package/libs/ItemLabelPlugin/typings.js +1 -4
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
- package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.js +1 -12
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
- package/libs/ModelRoomLabelPlugin/index.js +1 -10
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
- package/libs/ModelTVVideoPlugin/index.js +1 -0
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -107
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +1 -145
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
- package/libs/Object3DHelperPlugin/index.js +1 -10
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -224
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.js +1 -6
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
- package/libs/PanoMeasurePlugin/Model/index.js +1 -92
- package/libs/PanoMeasurePlugin/Model/line.js +1 -56
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
- package/libs/PanoMeasurePlugin/index.js +1 -11
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
- package/libs/PanoMeasurePlugin/utils/line.js +1 -18
- package/libs/PanoMeasurePlugin/utils/math.js +1 -13
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
- package/libs/PanoRulerPlugin/Plugin.js +2 -263
- package/libs/PanoRulerPlugin/index.js +1 -0
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -93
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
- package/libs/PanoRulerProPlugin/index.js +1 -6
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -5
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
- package/libs/PanoTagPlugin/controller/index.js +1 -377
- package/libs/PanoTagPlugin/index.js +1 -9
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/typings/tag.js +1 -7
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
- package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
- package/libs/PanoTagPlugin/utils/constants.js +1 -8
- package/libs/PanoTagPlugin/utils/debounce.js +1 -12
- package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
- package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
- package/libs/PanoTagPlugin/utils/search.js +1 -15
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
- package/libs/PanoTagPlugin/utils/throttle.js +1 -11
- package/libs/base/BasePlugin.js +1 -18
- package/libs/base/BasePluginWithData.js +1 -6
- package/libs/components/PaintBrush/Controller.js +1 -308
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -45
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -11
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -0
- package/libs/floorplan/Assets/camera.js +1 -4
- package/libs/floorplan/Assets/compass.js +1 -4
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
- package/libs/floorplan/Components/BaseImage.js +1 -103
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -246
- package/libs/floorplan/Components/Main.js +1 -264
- package/libs/floorplan/Components/Normalmage.js +1 -37
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
- package/libs/floorplan/Components/SvgImage.js +2 -39
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -7
- package/libs/floorplan/utils/correctFiveState.js +1 -54
- package/libs/floorplan/utils/formatData.js +1 -104
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -92
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
- package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/index.js +1 -169
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
- package/libs/shared-utils/Subscribe.js +1 -50
- package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
- package/libs/shared-utils/animationFrame/formatRad.js +1 -11
- package/libs/shared-utils/animationFrame/index.js +1 -31
- package/libs/shared-utils/animationFrame/tween.js +1 -30
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
- package/libs/shared-utils/createCanvasTextTexture.js +1 -11
- package/libs/shared-utils/createLine/index.js +1 -9
- package/libs/shared-utils/debounce.js +1 -11
- package/libs/shared-utils/equal.js +1 -54
- package/libs/shared-utils/filter.js +1 -10
- package/libs/shared-utils/five/changeMode.js +1 -39
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -31
- package/libs/shared-utils/isNil.js +1 -10
- package/libs/shared-utils/isTruelyObject.js +1 -6
- package/libs/shared-utils/math/Interval.js +1 -23
- package/libs/shared-utils/math/Rectangle.js +1 -23
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -48
- package/libs/shared-utils/math/rad2Deg.js +1 -6
- package/libs/shared-utils/nearlyEqual.js +1 -6
- package/libs/shared-utils/nextFrame.js +1 -6
- package/libs/shared-utils/noop.js +1 -5
- package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
- package/libs/shared-utils/removeArrayItem.js +1 -8
- package/libs/shared-utils/tap.js +1 -6
- package/libs/shared-utils/three/Assets/index.js +1 -4
- package/libs/shared-utils/three/FivePointSelector.js +1 -49
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -60
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -0
- package/libs/shared-utils/three/loadTexture.js +1 -28
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -29
- package/libs/shared-utils/uuid.js +1 -10
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
- package/libs/vendor/swiper/components-shared/get-params.js +1 -0
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/params-list.js +1 -0
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/utils.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
- package/libs/vendor/swiper/svelte/swiper.js +1 -0
- package/package.json +187 -17
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
|
@@ -1,212 +1 @@
|
|
|
1
|
-
var Z = Object.defineProperty, $ =
|
|
2
|
-
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var te = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var O = (o, t, e) => t in o ? Z(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, k = (o, t) => {
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
te.call(t, e) && O(o, e, t[e]);
|
|
8
|
-
if (A)
|
|
9
|
-
for (var e of A(t))
|
|
10
|
-
ne.call(t, e) && O(o, e, t[e]);
|
|
11
|
-
return o;
|
|
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, group_outros as de, update_keyed_each as ue, outro_and_destroy_block as fe, check_outros as he, transition_in as W, transition_out as G, detach as Y, empty as _e, create_component as Le, mount_component as be, destroy_component as ge } from "svelte/internal";
|
|
14
|
-
import { DISPLAY_STRATEGY_TYPE as E } from "./typings.js";
|
|
15
|
-
import { beforeUpdate as ye, onMount as pe, onDestroy as ke } from "svelte";
|
|
16
|
-
import * as Ie from "three";
|
|
17
|
-
import Ee from "./ItemLabelItem.js";
|
|
18
|
-
import we from "../shared-utils/debounce.js";
|
|
19
|
-
function Pe(o) {
|
|
20
|
-
re(o, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
21
|
-
}
|
|
22
|
-
function C(o, t, e) {
|
|
23
|
-
const c = o.slice();
|
|
24
|
-
return c[26] = t[e], c;
|
|
25
|
-
}
|
|
26
|
-
function S(o, t) {
|
|
27
|
-
let e, c, h;
|
|
28
|
-
return c = new Ee({
|
|
29
|
-
props: {
|
|
30
|
-
itemLabel: t[26],
|
|
31
|
-
hooks: t[0]
|
|
32
|
-
}
|
|
33
|
-
}), {
|
|
34
|
-
key: o,
|
|
35
|
-
first: null,
|
|
36
|
-
c() {
|
|
37
|
-
e = _e(), Le(c.$$.fragment), this.first = e;
|
|
38
|
-
},
|
|
39
|
-
m(r, m) {
|
|
40
|
-
V(r, e, m), be(c, r, m), h = !0;
|
|
41
|
-
},
|
|
42
|
-
p(r, m) {
|
|
43
|
-
t = r;
|
|
44
|
-
const d = {};
|
|
45
|
-
m & 2 && (d.itemLabel = t[26]), m & 1 && (d.hooks = t[0]), c.$set(d);
|
|
46
|
-
},
|
|
47
|
-
i(r) {
|
|
48
|
-
h || (W(c.$$.fragment, r), h = !0);
|
|
49
|
-
},
|
|
50
|
-
o(r) {
|
|
51
|
-
G(c.$$.fragment, r), h = !1;
|
|
52
|
-
},
|
|
53
|
-
d(r) {
|
|
54
|
-
r && Y(e), ge(c, r);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function Te(o) {
|
|
59
|
-
let t, e = [], c = /* @__PURE__ */ new Map(), h, r, m = o[1];
|
|
60
|
-
const d = (l) => l[26].id;
|
|
61
|
-
for (let l = 0; l < m.length; l += 1) {
|
|
62
|
-
let s = C(o, m, l), _ = d(s);
|
|
63
|
-
c.set(_, e[l] = S(_, s));
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
c() {
|
|
67
|
-
t = le("div");
|
|
68
|
-
for (let l = 0; l < e.length; l += 1)
|
|
69
|
-
e[l].c();
|
|
70
|
-
ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0, !1);
|
|
71
|
-
},
|
|
72
|
-
m(l, s) {
|
|
73
|
-
V(l, t, s);
|
|
74
|
-
for (let _ = 0; _ < e.length; _ += 1)
|
|
75
|
-
e[_].m(t, null);
|
|
76
|
-
h = me(t, o[9].bind(t)), r = !0;
|
|
77
|
-
},
|
|
78
|
-
p(l, [s]) {
|
|
79
|
-
s & 3 && (m = l[1], de(), e = ue(e, s, d, 1, l, m, c, t, fe, S, null, C), he()), s & 16 && U(t, "opacity", l[4] ? 1 : 0, !1);
|
|
80
|
-
},
|
|
81
|
-
i(l) {
|
|
82
|
-
if (!r) {
|
|
83
|
-
for (let s = 0; s < m.length; s += 1)
|
|
84
|
-
W(e[s]);
|
|
85
|
-
r = !0;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
o(l) {
|
|
89
|
-
for (let s = 0; s < e.length; s += 1)
|
|
90
|
-
G(e[s]);
|
|
91
|
-
r = !1;
|
|
92
|
-
},
|
|
93
|
-
d(l) {
|
|
94
|
-
l && Y(t);
|
|
95
|
-
for (let s = 0; s < e.length; s += 1)
|
|
96
|
-
e[s].d();
|
|
97
|
-
h();
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
let D = 26, ze = 11;
|
|
102
|
-
function Re(o, t, e) {
|
|
103
|
-
const { Raycaster: c, Vector3: h } = Ie;
|
|
104
|
-
let { five: r } = t, { modelOcclusionEnable: m } = t, { itemLabels: d } = t, { hooks: l } = t, { displayStrategyType: s } = t, _ = null, g = null, w, P, y = [], T = !0;
|
|
105
|
-
const x = (n, f) => {
|
|
106
|
-
const L = new c(), a = n.camera.position.clone(), i = new h().fromArray(f.modelPosition), u = i.distanceTo(a);
|
|
107
|
-
L.set(a.clone(), i.clone().sub(a).normalize());
|
|
108
|
-
const [b] = n.model.intersectRaycaster(L);
|
|
109
|
-
return !(b && b.distance + 1 < u);
|
|
110
|
-
}, F = (n, f) => {
|
|
111
|
-
const L = new h(f.modelPosition[0], f.modelPosition[1], f.modelPosition[2]), a = n.project2d(L), i = a == null ? void 0 : a.x, u = a == null ? void 0 : a.y;
|
|
112
|
-
return [i, u];
|
|
113
|
-
}, j = (n) => `translate(${n[0]}px, ${n[1]}px)`, q = (n, f) => y.length === 0 ? !1 : !!y.find((a) => n[0] >= a[0] - f && n[0] <= a[0] + f || n[1] >= a[1] - D && n[1] <= a[1] + D);
|
|
114
|
-
function H(n, f) {
|
|
115
|
-
switch (f) {
|
|
116
|
-
case E.SMALL:
|
|
117
|
-
return Math.ceil(-27.78 * n + 85);
|
|
118
|
-
case E.MIDLLE:
|
|
119
|
-
return Math.ceil(-38.9 * n + 130);
|
|
120
|
-
case E.LARGE:
|
|
121
|
-
return Math.ceil(-44.44 * n + 140);
|
|
122
|
-
case E.EXTRA_LARGE:
|
|
123
|
-
return Math.ceil(-92.59 * n + 300);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
const X = (n, f) => {
|
|
127
|
-
const L = f.map((i) => {
|
|
128
|
-
const u = F(n, i), b = i.name.length * ze, M = H(i.modelPosition[1], s), z = (m ? x(n, i) : !0) && !q([u[0], u[1] + M], b);
|
|
129
|
-
if (!z)
|
|
130
|
-
return I(k({}, i), { visible: z });
|
|
131
|
-
y.push(u);
|
|
132
|
-
const Q = j(u);
|
|
133
|
-
return I(k({}, i), {
|
|
134
|
-
visible: z,
|
|
135
|
-
transform: Q,
|
|
136
|
-
strokeLength: M
|
|
137
|
-
});
|
|
138
|
-
}), a = L.filter(({ visible: i }) => i).map((i) => ({
|
|
139
|
-
itemLabelItem: i,
|
|
140
|
-
distance: new h(i.modelPosition[0], i.modelPosition[1], i.modelPosition[2]).clone().distanceTo(n.camera.position)
|
|
141
|
-
})).sort((i, u) => i.distance - u.distance);
|
|
142
|
-
return L.map((i) => {
|
|
143
|
-
const u = a.findIndex((b) => b.itemLabelItem.id === i.id);
|
|
144
|
-
return u !== void 0 ? I(k({}, i), { zIndex: u * 10 }) : i;
|
|
145
|
-
});
|
|
146
|
-
}, p = () => {
|
|
147
|
-
y = [], e(1, g = X(r, g));
|
|
148
|
-
};
|
|
149
|
-
ye(() => {
|
|
150
|
-
K();
|
|
151
|
-
});
|
|
152
|
-
const R = () => {
|
|
153
|
-
e(4, T = !1), B();
|
|
154
|
-
};
|
|
155
|
-
pe(() => {
|
|
156
|
-
e(1, g = d), _ = d, p(), J(), r.on("cameraUpdate", R);
|
|
157
|
-
});
|
|
158
|
-
const B = we(
|
|
159
|
-
() => {
|
|
160
|
-
e(4, T = !0), p();
|
|
161
|
-
},
|
|
162
|
-
300
|
|
163
|
-
), J = () => {
|
|
164
|
-
window.addEventListener("resize", v, !1);
|
|
165
|
-
}, K = () => {
|
|
166
|
-
_ !== d && (e(1, g = d), _ = d, p());
|
|
167
|
-
}, v = () => {
|
|
168
|
-
r.once("renderFrame", p);
|
|
169
|
-
};
|
|
170
|
-
ke(() => {
|
|
171
|
-
r.off("cameraUpdate", R), window.removeEventListener("resize", v, !1);
|
|
172
|
-
});
|
|
173
|
-
function N() {
|
|
174
|
-
w = this.clientWidth, P = this.clientHeight, e(2, w), e(3, P);
|
|
175
|
-
}
|
|
176
|
-
return o.$$set = (n) => {
|
|
177
|
-
"five" in n && e(5, r = n.five), "modelOcclusionEnable" in n && e(6, m = n.modelOcclusionEnable), "itemLabels" in n && e(7, d = n.itemLabels), "hooks" in n && e(0, l = n.hooks), "displayStrategyType" in n && e(8, s = n.displayStrategyType);
|
|
178
|
-
}, [
|
|
179
|
-
l,
|
|
180
|
-
g,
|
|
181
|
-
w,
|
|
182
|
-
P,
|
|
183
|
-
T,
|
|
184
|
-
r,
|
|
185
|
-
m,
|
|
186
|
-
d,
|
|
187
|
-
s,
|
|
188
|
-
N
|
|
189
|
-
];
|
|
190
|
-
}
|
|
191
|
-
class De extends oe {
|
|
192
|
-
constructor(t) {
|
|
193
|
-
super(), se(
|
|
194
|
-
this,
|
|
195
|
-
t,
|
|
196
|
-
Re,
|
|
197
|
-
Te,
|
|
198
|
-
ie,
|
|
199
|
-
{
|
|
200
|
-
five: 5,
|
|
201
|
-
modelOcclusionEnable: 6,
|
|
202
|
-
itemLabels: 7,
|
|
203
|
-
hooks: 0,
|
|
204
|
-
displayStrategyType: 8
|
|
205
|
-
},
|
|
206
|
-
Pe
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
export {
|
|
211
|
-
De as default
|
|
212
|
-
};
|
|
1
|
+
"use strict";var J=Object.defineProperty,K=Object.defineProperties;var Q=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var z=(n,t,e)=>t in n?J(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,k=(n,t)=>{for(var e in t||(t={}))Z.call(t,e)&&z(n,e,t[e]);if(Y)for(var e of Y(t))$.call(t,e)&&z(n,e,t[e]);return n},T=(n,t)=>K(n,Q(t));const s=require("svelte/internal"),E=require("./typings.js"),R=require("svelte"),ee=require("three"),te=require("./ItemLabelItem.js"),ne=require("../shared-utils/debounce.js");function oe(n){if(n&&n.__esModule)return n;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const se=oe(ee);function re(n){s.append_styles(n,"svelte-gk8s47",".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}")}function D(n,t,e){const c=n.slice();return c[26]=t[e],c}function j(n,t){let e,c,h;return c=new te.ItemLabelItem({props:{itemLabel:t[26],hooks:t[0]}}),{key:n,first:null,c(){e=s.empty(),s.create_component(c.$$.fragment),this.first=e},m(l,d){s.insert(l,e,d),s.mount_component(c,l,d),h=!0},p(l,d){t=l;const m={};d&2&&(m.itemLabel=t[26]),d&1&&(m.hooks=t[0]),c.$set(m)},i(l){h||(s.transition_in(c.$$.fragment,l),h=!0)},o(l){s.transition_out(c.$$.fragment,l),h=!1},d(l){l&&s.detach(e),s.destroy_component(c,l)}}}function ie(n){let t,e=[],c=new Map,h,l,d=n[1];const m=a=>a[26].id;for(let a=0;a<d.length;a+=1){let r=D(n,d,a),b=m(r);c.set(b,e[a]=j(b,r))}return{c(){t=s.element("div");for(let a=0;a<e.length;a+=1)e[a].c();s.attr(t,"class","item-labels-container svelte-gk8s47"),s.add_render_callback(()=>n[9].call(t)),s.set_style(t,"opacity",n[4]?1:0,!1)},m(a,r){s.insert(a,t,r);for(let b=0;b<e.length;b+=1)e[b].m(t,null);h=s.add_resize_listener(t,n[9].bind(t)),l=!0},p(a,[r]){r&3&&(d=a[1],s.group_outros(),e=s.update_keyed_each(e,r,m,1,a,d,c,t,s.outro_and_destroy_block,j,null,D),s.check_outros()),r&16&&s.set_style(t,"opacity",a[4]?1:0,!1)},i(a){if(!l){for(let r=0;r<d.length;r+=1)s.transition_in(e[r]);l=!0}},o(a){for(let r=0;r<e.length;r+=1)s.transition_out(e[r]);l=!1},d(a){a&&s.detach(t);for(let r=0;r<e.length;r+=1)e[r].d();h()}}}let U=26,le=11;function ae(n,t,e){const{Raycaster:c,Vector3:h}=se;let{five:l}=t,{modelOcclusionEnable:d}=t,{itemLabels:m}=t,{hooks:a}=t,{displayStrategyType:r}=t,b=null,y=null,P,S,p=[],w=!0;const q=(o,_)=>{const L=new c,u=o.camera.position.clone(),i=new h().fromArray(_.modelPosition),f=i.distanceTo(u);L.set(u.clone(),i.clone().sub(u).normalize());const[g]=o.model.intersectRaycaster(L);return!(g&&g.distance+1<f)},C=(o,_)=>{const L=new h(_.modelPosition[0],_.modelPosition[1],_.modelPosition[2]),u=o.project2d(L),i=u==null?void 0:u.x,f=u==null?void 0:u.y;return[i,f]},G=o=>`translate(${o[0]}px, ${o[1]}px)`,V=(o,_)=>p.length===0?!1:!!p.find(u=>o[0]>=u[0]-_&&o[0]<=u[0]+_||o[1]>=u[1]-U&&o[1]<=u[1]+U);function W(o,_){switch(_){case E.DISPLAY_STRATEGY_TYPE.SMALL:return Math.ceil(-27.78*o+85);case E.DISPLAY_STRATEGY_TYPE.MIDLLE:return Math.ceil(-38.9*o+130);case E.DISPLAY_STRATEGY_TYPE.LARGE:return Math.ceil(-44.44*o+140);case E.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:return Math.ceil(-92.59*o+300)}}const F=(o,_)=>{const L=_.map(i=>{const f=C(o,i),g=i.name.length*le,O=W(i.modelPosition[1],r),A=(d?q(o,i):!0)&&!V([f[0],f[1]+O],g);if(!A)return T(k({},i),{visible:A});p.push(f);const B=G(f);return T(k({},i),{visible:A,transform:B,strokeLength:O})}),u=L.filter(({visible:i})=>i).map(i=>({itemLabelItem:i,distance:new h(i.modelPosition[0],i.modelPosition[1],i.modelPosition[2]).clone().distanceTo(o.camera.position)})).sort((i,f)=>i.distance-f.distance);return L.map(i=>{const f=u.findIndex(g=>g.itemLabelItem.id===i.id);return f!==void 0?T(k({},i),{zIndex:f*10}):i})},I=()=>{p=[],e(1,y=F(l,y))};R.beforeUpdate(()=>{N()});const v=()=>{e(4,w=!1),H()};R.onMount(()=>{e(1,y=m),b=m,I(),x(),l.on("cameraUpdate",v)});const H=ne.debounce(()=>{e(4,w=!0),I()},300),x=()=>{window.addEventListener("resize",M,!1)},N=()=>{b!==m&&(e(1,y=m),b=m,I())},M=()=>{l.once("renderFrame",I)};R.onDestroy(()=>{l.off("cameraUpdate",v),window.removeEventListener("resize",M,!1)});function X(){P=this.clientWidth,S=this.clientHeight,e(2,P),e(3,S)}return n.$$set=o=>{"five"in o&&e(5,l=o.five),"modelOcclusionEnable"in o&&e(6,d=o.modelOcclusionEnable),"itemLabels"in o&&e(7,m=o.itemLabels),"hooks"in o&&e(0,a=o.hooks),"displayStrategyType"in o&&e(8,r=o.displayStrategyType)},[a,y,P,S,w,l,d,m,r,X]}class ce extends s.SvelteComponent{constructor(t){super(),s.init(this,t,ae,ie,s.safe_not_equal,{five:5,modelOcclusionEnable:6,itemLabels:7,hooks:0,displayStrategyType:8},re)}}exports.ItemLabelComponent=ce;
|
|
@@ -1,43 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import u from "classnames";
|
|
3
|
-
function q(t) {
|
|
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
|
|
1
|
+
"use strict";const e=require("svelte/internal"),_=require("classnames"),g=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},p=g(_);function u(t){e.append_styles(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
|
|
5
2
|
}to{opacity:1
|
|
6
|
-
}}`);
|
|
7
|
-
}
|
|
8
|
-
function A(t) {
|
|
9
|
-
let e, a, l, o = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, f, p, _;
|
|
10
|
-
return {
|
|
11
|
-
c() {
|
|
12
|
-
e = g("div"), a = g("div"), l = g("span"), m = z(o), s = I(), d = g("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(a, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(a, "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", f = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1);
|
|
13
|
-
},
|
|
14
|
-
m(i, n) {
|
|
15
|
-
x(i, e, n), c(e, a), c(a, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
|
|
16
|
-
},
|
|
17
|
-
p(i, [n]) {
|
|
18
|
-
n & 1 && o !== (o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, o), n & 1 && r(a, "top", `-${i[0].strokeLength + 26}px`), n & 1 && r(d, "height", `${i[0].strokeLength}px`), n & 1 && f !== (f = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", f), n & 1 && r(e, "z-index", i[0].zIndex, !1), n & 1 && r(e, "transform", i[0].transform, !1);
|
|
19
|
-
},
|
|
20
|
-
i: h,
|
|
21
|
-
o: h,
|
|
22
|
-
d(i) {
|
|
23
|
-
i && j(e), p = !1, _();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function E(t, e, a) {
|
|
28
|
-
let { itemLabel: l } = e, { hooks: o } = e;
|
|
29
|
-
function m() {
|
|
30
|
-
console.log("__onclick___: ", l), o.emit("onLabelClick", l);
|
|
31
|
-
}
|
|
32
|
-
return t.$$set = (s) => {
|
|
33
|
-
"itemLabel" in s && a(0, l = s.itemLabel), "hooks" in s && a(2, o = s.hooks);
|
|
34
|
-
}, [l, m, o];
|
|
35
|
-
}
|
|
36
|
-
class B extends y {
|
|
37
|
-
constructor(e) {
|
|
38
|
-
super(), k(this, e, E, A, L, { itemLabel: 0, hooks: 2 }, q);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
B as default
|
|
43
|
-
};
|
|
3
|
+
}}`)}function v(t){let i,a,s,n=(t[0].name.length>6?`${t[0].name.slice(0,6)}...`:t[0].name)+"",m,r,d,b,c,f;return{c(){i=e.element("div"),a=e.element("div"),s=e.element("span"),m=e.text(n),r=e.space(),d=e.element("div"),e.attr(s,"class","item-label-item__text svelte-1ir3cyd"),e.attr(a,"class","item-label-item__text-wrap svelte-1ir3cyd"),e.set_style(a,"top",`-${t[0].strokeLength+26}px`),e.attr(d,"class","item-label-item__bar svelte-1ir3cyd"),e.set_style(d,"height",`${t[0].strokeLength}px`),e.attr(i,"class",b=e.null_to_empty(p.default("item-label-item",{visible:t[0].visible}))+" svelte-1ir3cyd"),e.set_style(i,"z-index",t[0].zIndex,!1),e.set_style(i,"transform",t[0].transform,!1)},m(l,o){e.insert(l,i,o),e.append(i,a),e.append(a,s),e.append(s,m),e.append(i,r),e.append(i,d),c||(f=e.listen(s,"click",t[1]),c=!0)},p(l,[o]){o&1&&n!==(n=(l[0].name.length>6?`${l[0].name.slice(0,6)}...`:l[0].name)+"")&&e.set_data(m,n),o&1&&e.set_style(a,"top",`-${l[0].strokeLength+26}px`),o&1&&e.set_style(d,"height",`${l[0].strokeLength}px`),o&1&&b!==(b=e.null_to_empty(p.default("item-label-item",{visible:l[0].visible}))+" svelte-1ir3cyd")&&e.attr(i,"class",b),o&1&&e.set_style(i,"z-index",l[0].zIndex,!1),o&1&&e.set_style(i,"transform",l[0].transform,!1)},i:e.noop,o:e.noop,d(l){l&&e.detach(i),c=!1,f()}}}function h(t,i,a){let{itemLabel:s}=i,{hooks:n}=i;function m(){console.log("__onclick___: ",s),n.emit("onLabelClick",s)}return t.$$set=r=>{"itemLabel"in r&&a(0,s=r.itemLabel),"hooks"in r&&a(2,n=r.hooks)},[s,m,n]}class y extends e.SvelteComponent{constructor(i){super(),e.init(this,i,h,v,e.safe_not_equal,{itemLabel:0,hooks:2},u)}}exports.ItemLabelItem=y;
|
|
@@ -1,80 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import L from "./ItemLabelComponent.js";
|
|
3
|
-
import { DISPLAY_STRATEGY_TYPE as g } from "./typings.js";
|
|
4
|
-
import { parseModelItemLabelPluginData as E } from "./utils/parseData.js";
|
|
5
|
-
const T = (t, o) => {
|
|
6
|
-
var a, d;
|
|
7
|
-
const e = {
|
|
8
|
-
container: document.createElement("div"),
|
|
9
|
-
data: null,
|
|
10
|
-
enabled: !0,
|
|
11
|
-
fiveModeEnabled: void 0,
|
|
12
|
-
itemLabels: [],
|
|
13
|
-
wrapper: null,
|
|
14
|
-
app: void 0,
|
|
15
|
-
hooks: new y(),
|
|
16
|
-
modelOcclusionEnable: (a = o == null ? void 0 : o.modelOcclusionEnable) != null ? a : !0,
|
|
17
|
-
displayStrategyType: (d = o == null ? void 0 : o.displayStrategyType) != null ? d : g.SMALL
|
|
18
|
-
};
|
|
19
|
-
e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
|
|
1
|
+
"use strict";const i=require("@realsee/five"),g=require("./ItemLabelComponent.js"),y=require("./typings.js"),M=require("./utils/parseData.js"),f=(t,o)=>{var s,d;const e={container:document.createElement("div"),data:null,enabled:!0,fiveModeEnabled:void 0,itemLabels:[],wrapper:null,app:void 0,hooks:new i.Subscribe,modelOcclusionEnable:(s=o==null?void 0:o.modelOcclusionEnable)!=null?s:!0,displayStrategyType:(d=o==null?void 0:o.displayStrategyType)!=null?d:y.DISPLAY_STRATEGY_TYPE.SMALL};e.container.setAttribute("class","model-item-label-plugin-container"),e.container.style.cssText=`
|
|
20
2
|
position: absolute;
|
|
21
3
|
left: 0;
|
|
22
4
|
top: 0;
|
|
23
5
|
width: 100%;
|
|
24
6
|
height: 100%;
|
|
25
7
|
z-index: 5;
|
|
26
|
-
`,
|
|
27
|
-
const p = (n) => (e.wrapper = n, n.appendChild(e.container), l(), !0), c = (n) => {
|
|
28
|
-
e.itemLabels = E(n), l();
|
|
29
|
-
}, u = () => (e.enabled || (e.enabled = !0, l()), !0), b = () => (e.enabled && (e.enabled = !1, l()), !0), r = () => {
|
|
30
|
-
f(), e.container.remove();
|
|
31
|
-
}, l = () => {
|
|
32
|
-
var n;
|
|
33
|
-
if (!!e.wrapper) {
|
|
34
|
-
if (!e.enabled || !e.fiveModeEnabled) {
|
|
35
|
-
(n = e.app) == null || n.$destroy(), e.app = void 0;
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
e.app ? e.app.$set({
|
|
39
|
-
five: t,
|
|
40
|
-
itemLabels: e.itemLabels
|
|
41
|
-
}) : e.app = new L({
|
|
42
|
-
target: e.container,
|
|
43
|
-
props: {
|
|
44
|
-
five: t,
|
|
45
|
-
modelOcclusionEnable: e.modelOcclusionEnable,
|
|
46
|
-
itemLabels: e.itemLabels,
|
|
47
|
-
wrapper: e.wrapper,
|
|
48
|
-
hooks: e.hooks,
|
|
49
|
-
displayStrategyType: e.displayStrategyType
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}, m = () => {
|
|
54
|
-
t.on("modeChange", i), t.once("dispose", r);
|
|
55
|
-
}, f = () => {
|
|
56
|
-
t.off("modeChange", i);
|
|
57
|
-
}, i = (n) => {
|
|
58
|
-
if (!!e.enabled) {
|
|
59
|
-
if (n !== s.Mode.Floorplan) {
|
|
60
|
-
e.fiveModeEnabled = !1, l();
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
t.once("initAnimationEnded", () => {
|
|
64
|
-
e.fiveModeEnabled = t.currentMode === s.Mode.Floorplan, l();
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
return m(), {
|
|
69
|
-
appendTo: p,
|
|
70
|
-
load: c,
|
|
71
|
-
enable: u,
|
|
72
|
-
disable: b,
|
|
73
|
-
dispose: r,
|
|
74
|
-
hooks: e.hooks
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
T as ModelItemLabelPlugin,
|
|
79
|
-
T as default
|
|
80
|
-
};
|
|
8
|
+
`,e.container.style.pointerEvents="none";const u=n=>(e.wrapper=n,n.appendChild(e.container),l(),!0),p=n=>{e.itemLabels=M.parseModelItemLabelPluginData(n),l()},c=()=>(e.enabled||(e.enabled=!0,l()),!0),b=()=>(e.enabled&&(e.enabled=!1,l()),!0),a=()=>{L(),e.container.remove()},l=()=>{var n;if(!!e.wrapper){if(!e.enabled||!e.fiveModeEnabled){(n=e.app)==null||n.$destroy(),e.app=void 0;return}e.app?e.app.$set({five:t,itemLabels:e.itemLabels}):e.app=new g.ItemLabelComponent({target:e.container,props:{five:t,modelOcclusionEnable:e.modelOcclusionEnable,itemLabels:e.itemLabels,wrapper:e.wrapper,hooks:e.hooks,displayStrategyType:e.displayStrategyType}})}},m=()=>{t.on("modeChange",r),t.once("dispose",a)},L=()=>{t.off("modeChange",r)},r=n=>{if(!!e.enabled){if(n!==i.Five.Mode.Floorplan){e.fiveModeEnabled=!1,l();return}t.once("initAnimationEnded",()=>{e.fiveModeEnabled=t.currentMode===i.Five.Mode.Floorplan,l()})}};return m(),{appendTo:u,load:p,enable:c,disable:b,dispose:a,hooks:e.hooks}};exports.ModelItemLabelPlugin=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "svelte/internal";
|
|
3
|
-
import "svelte";
|
|
4
|
-
import "three";
|
|
5
|
-
import "classnames";
|
|
6
|
-
const i = {
|
|
7
|
-
name: "ModelItemLabelPlugin",
|
|
8
|
-
version: 0
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
i as modelItemLabelPluginServerParams
|
|
12
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModelItemLabelPlugin.js"),l=require("./typings.js");require("@realsee/five");require("./ItemLabelComponent.js");require("svelte/internal");require("svelte");require("three");require("./ItemLabelItem.js");require("classnames");require("../shared-utils/debounce.js");require("./utils/parseData.js");const r={name:"ModelItemLabelPlugin",version:0};exports.ModelItemLabelPlugin=e.ModelItemLabelPlugin;exports.default=e.ModelItemLabelPlugin;exports.DISPLAY_STRATEGY_TYPE=l.DISPLAY_STRATEGY_TYPE;exports.modelItemLabelPluginServerParams=r;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
var e
|
|
2
|
-
export {
|
|
3
|
-
e as DISPLAY_STRATEGY_TYPE
|
|
4
|
-
};
|
|
1
|
+
"use strict";var e=(r=>(r.SMALL="small",r.MIDLLE="middle",r.LARGE="large",r.EXTRA_LARGE="x-large",r))(e||{});exports.DISPLAY_STRATEGY_TYPE=e;
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = Object.getOwnPropertySymbols;
|
|
3
|
-
var m = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var e = (t, o, i) => o in t ? p(t, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[o] = i, s = (t, o) => {
|
|
5
|
-
for (var i in o || (o = {}))
|
|
6
|
-
m.call(o, i) && e(t, i, o[i]);
|
|
7
|
-
if (n)
|
|
8
|
-
for (var i of n(o))
|
|
9
|
-
r.call(o, i) && e(t, i, o[i]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
function u(t) {
|
|
13
|
-
return t.model_item_labels.map((o) => s({
|
|
14
|
-
modelPosition: [o.position[0], o.position[1] + o.size[1], o.position[2]]
|
|
15
|
-
}, o));
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
u as parseModelItemLabelPluginData
|
|
19
|
-
};
|
|
1
|
+
"use strict";var a=Object.defineProperty;var e=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var s=(t,i,o)=>i in t?a(t,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[i]=o,n=(t,i)=>{for(var o in i||(i={}))m.call(i,o)&&s(t,o,i[o]);if(e)for(var o of e(i))p.call(i,o)&&s(t,o,i[o]);return t};function r(t){return t.model_item_labels.map(i=>n({modelPosition:[i.position[0],i.position[1]+i.size[1],i.position[2]]},i))}exports.parseModelItemLabelPluginData=r;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const A
|
|
2
|
-
export {
|
|
3
|
-
A as ROOM_LABEL_BG
|
|
4
|
-
};
|
|
1
|
+
"use strict";const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm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9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";exports.ROOM_LABEL_BG=A;
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
var s
|
|
2
|
-
var n = (t, e, o) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var i = (t, e, o) => (n(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
-
import r from "./RoomLabelItems.js";
|
|
5
|
-
import { parseModelRoomLabelPluginData as a } from "./utils/parseData.js";
|
|
6
|
-
class p {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
i(this, "five");
|
|
9
|
-
i(this, "enabled", !0);
|
|
10
|
-
i(this, "fiveModeEnabled");
|
|
11
|
-
i(this, "app");
|
|
12
|
-
i(this, "wrapper");
|
|
13
|
-
i(this, "roomLabels", []);
|
|
14
|
-
i(this, "container", document.createElement("div"));
|
|
15
|
-
i(this, "onFiveModeChange", (e) => {
|
|
16
|
-
if (e !== "Floorplan") {
|
|
17
|
-
this.fiveModeEnabled = !1, this.render();
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
this.five.once("initAnimationEnded", () => {
|
|
21
|
-
this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.render();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
this.five = e, this.fiveModeEnabled = this.five.currentMode === "Floorplan", this.container.classList.add("model-room-label-plugin-container"), this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.position = "absolute", this.container.style.pointerEvents = "none", this.container.style.left = "0", this.container.style.top = "0", this.container.style.zIndex = "5", this.five.once("dispose", () => this.dispose()), this.five.on("modeChange", this.onFiveModeChange), this.render();
|
|
25
|
-
}
|
|
26
|
-
dispose() {
|
|
27
|
-
this.five.off("modeChange", this.onFiveModeChange), this.container.remove();
|
|
28
|
-
}
|
|
29
|
-
load(e) {
|
|
30
|
-
this.roomLabels = a(e), this.render();
|
|
31
|
-
}
|
|
32
|
-
appendTo(e) {
|
|
33
|
-
return this.wrapper = e, e.appendChild(this.container), this.render(), this;
|
|
34
|
-
}
|
|
35
|
-
disable() {
|
|
36
|
-
return this.enabled = !1, this.render(), this;
|
|
37
|
-
}
|
|
38
|
-
enable() {
|
|
39
|
-
return this.enabled = !0, this.render(), this;
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
var e;
|
|
43
|
-
if (!!this.wrapper) {
|
|
44
|
-
if (!this.enabled || !this.fiveModeEnabled) {
|
|
45
|
-
(e = this.app) == null || e.$destroy(), this.app = void 0;
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
this.app ? this.app.$set({ five: this.five, roomLabels: this.roomLabels }) : this.app = new r({
|
|
49
|
-
target: this.container,
|
|
50
|
-
props: {
|
|
51
|
-
five: this.five,
|
|
52
|
-
roomLabels: this.roomLabels
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
p as ModelRoomLabelController
|
|
60
|
-
};
|
|
1
|
+
"use strict";var s=Object.defineProperty;var n=(t,e,o)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var i=(t,e,o)=>(n(t,typeof e!="symbol"?e+"":e,o),o);const r=require("./RoomLabelItems.js"),a=require("./utils/parseData.js");class l{constructor(e){i(this,"five");i(this,"enabled",!0);i(this,"fiveModeEnabled");i(this,"app");i(this,"wrapper");i(this,"roomLabels",[]);i(this,"container",document.createElement("div"));i(this,"onFiveModeChange",e=>{if(e!=="Floorplan"){this.fiveModeEnabled=!1,this.render();return}this.five.once("initAnimationEnded",()=>{this.fiveModeEnabled=this.five.currentMode==="Floorplan",this.render()})});this.five=e,this.fiveModeEnabled=this.five.currentMode==="Floorplan",this.container.classList.add("model-room-label-plugin-container"),this.container.style.width="100%",this.container.style.height="100%",this.container.style.position="absolute",this.container.style.pointerEvents="none",this.container.style.left="0",this.container.style.top="0",this.container.style.zIndex="5",this.five.once("dispose",()=>this.dispose()),this.five.on("modeChange",this.onFiveModeChange),this.render()}dispose(){this.five.off("modeChange",this.onFiveModeChange),this.container.remove()}load(e){this.roomLabels=a.parseModelRoomLabelPluginData(e),this.render()}appendTo(e){return this.wrapper=e,e.appendChild(this.container),this.render(),this}disable(){return this.enabled=!1,this.render(),this}enable(){return this.enabled=!0,this.render(),this}render(){var e;if(!!this.wrapper){if(!this.enabled||!this.fiveModeEnabled){(e=this.app)==null||e.$destroy(),this.app=void 0;return}this.app?this.app.$set({five:this.five,roomLabels:this.roomLabels}):this.app=new r.RoomLabelItems({target:this.container,props:{five:this.five,roomLabels:this.roomLabels}})}}}exports.ModelRoomLabelController=l;
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
|
|
3
|
-
function C(t) {
|
|
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
|
-
}
|
|
6
|
-
function O(t) {
|
|
7
|
-
let e, n, a = t[0].name + "", l, m, i, f, c;
|
|
8
|
-
return {
|
|
9
|
-
c() {
|
|
10
|
-
e = u("div"), n = u("span"), l = w(a), m = k(), i = u("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(i, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex, !1), r(e, "transform", t[0].transform, !1), r(e, "opacity", t[0].visible ? 1 : 0, !1);
|
|
11
|
-
},
|
|
12
|
-
m(o, s) {
|
|
13
|
-
L(o, e, s), d(e, n), d(n, l), d(e, m), d(e, i), f || (c = I(n, "click", t[1]), f = !0);
|
|
14
|
-
},
|
|
15
|
-
p(o, [s]) {
|
|
16
|
-
s & 1 && a !== (a = o[0].name + "") && x(l, a), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex, !1), s & 1 && r(e, "transform", o[0].transform, !1), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0, !1);
|
|
17
|
-
},
|
|
18
|
-
i: v,
|
|
19
|
-
o: v,
|
|
20
|
-
d(o) {
|
|
21
|
-
o && y(e), f = !1, c();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function R(t, e, n) {
|
|
26
|
-
let { five: a } = e, { roomLabel: l } = e;
|
|
27
|
-
function m() {
|
|
28
|
-
a.setState({
|
|
29
|
-
panoIndex: l.panoIndex,
|
|
30
|
-
mode: "Panorama",
|
|
31
|
-
longitude: l.longitude
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return t.$$set = (i) => {
|
|
35
|
-
"five" in i && n(2, a = i.five), "roomLabel" in i && n(0, l = i.roomLabel);
|
|
36
|
-
}, [l, m, a];
|
|
37
|
-
}
|
|
38
|
-
class q extends g {
|
|
39
|
-
constructor(e) {
|
|
40
|
-
super(), h(this, e, R, O, _, { five: 2, roomLabel: 0 }, C);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
q as default
|
|
45
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal"),f=require("./Assets/roomLabelBg.js");function b(n){e.append_styles(n,"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}")}function c(n){let t,s,o=n[0].name+"",a,m,i,d,u;return{c(){t=e.element("div"),s=e.element("span"),a=e.text(o),m=e.space(),i=e.element("div"),e.attr(s,"class","room-label-item__text svelte-1d7uzh5"),e.set_style(s,"background-image","url("+f.ROOM_LABEL_BG+")"),e.toggle_class(s,"wide",n[0].name.length>3),e.attr(i,"class","room-label-item__bar svelte-1d7uzh5"),e.attr(t,"class","room-label-item svelte-1d7uzh5"),e.set_style(t,"z-index",n[0].zIndex,!1),e.set_style(t,"transform",n[0].transform,!1),e.set_style(t,"opacity",n[0].visible?1:0,!1)},m(l,r){e.insert(l,t,r),e.append(t,s),e.append(s,a),e.append(t,m),e.append(t,i),d||(u=e.listen(s,"click",n[1]),d=!0)},p(l,[r]){r&1&&o!==(o=l[0].name+"")&&e.set_data(a,o),r&1&&e.toggle_class(s,"wide",l[0].name.length>3),r&1&&e.set_style(t,"z-index",l[0].zIndex,!1),r&1&&e.set_style(t,"transform",l[0].transform,!1),r&1&&e.set_style(t,"opacity",l[0].visible?1:0,!1)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),d=!1,u()}}}function p(n,t,s){let{five:o}=t,{roomLabel:a}=t;function m(){o.setState({panoIndex:a.panoIndex,mode:"Panorama",longitude:a.longitude})}return n.$$set=i=>{"five"in i&&s(2,o=i.five),"roomLabel"in i&&s(0,a=i.roomLabel)},[a,m,o]}class _ extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,c,e.safe_not_equal,{five:2,roomLabel:0},b)}}exports.RoomLabelItem=_;
|