@realsee/dnalogel 2.1.1 → 2.1.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -12
- package/components/index.js +242 -569
- package/dist/index.cjs.js +58 -73
- package/dist/index.es.js +7842 -12958
- package/dist/index.js +7842 -12958
- package/dist/index.umd.js +46 -61
- package/docs/assets/highlight.css +3 -3
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +462 -619
- package/docs/classes/CruisePluginController.html +397 -23
- package/docs/classes/Magnifier.html +187 -9
- package/docs/classes/ModelRoomLabelController.html +149 -11
- package/docs/classes/Object3DHelperController.html +356 -0
- package/docs/classes/PaintBrush.html +260 -0
- package/docs/classes/PanoTagPluginController.html +940 -0
- package/docs/classes/Util.BetterTween.html +134 -0
- package/docs/classes/Util.FivePointSelector.html +144 -0
- package/docs/classes/Util.Interval.html +158 -0
- package/docs/classes/Util.Magnifier.html +196 -0
- package/docs/classes/Util.PointDomHelper.html +135 -0
- package/docs/classes/Util.PointHelper.html +127 -0
- package/docs/classes/Util.Rectangle.html +181 -0
- package/docs/enums/CameraMovementEffect.html +70 -3
- package/docs/enums/ContentType.html +116 -0
- package/docs/enums/DIRECTION.html +81 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/DimensionType.html +67 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +74 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/LinkType.html +67 -0
- package/docs/enums/PaintBrushTypeEnum.html +74 -0
- package/docs/enums/PointType.html +67 -0
- package/docs/enums/Rotation.html +77 -3
- package/docs/functions/CSS3DRenderPlugin.html +233 -0
- package/docs/functions/CameraMovementPlugin.html +237 -0
- package/docs/functions/CruisePlugin.html +233 -0
- package/docs/functions/GuideLinePlugin.html +235 -0
- package/docs/functions/ItemLabelPlugin.html +235 -0
- package/docs/functions/MapviewFloorplanPlugin.html +235 -0
- package/docs/functions/ModelChassisCompassPlugin.html +237 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +237 -0
- package/docs/functions/ModelFloorplanPlugin.html +235 -0
- package/docs/functions/ModelItemLabelPlugin.html +235 -0
- package/docs/functions/ModelRoomLabelPlugin.html +233 -0
- package/docs/functions/ModelTVVideoPlugin.html +235 -0
- package/docs/functions/ModelViewPlugin.html +237 -0
- package/docs/functions/Object3DHelperPlugin.html +233 -0
- package/docs/functions/PanoCompassPlugin.html +235 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +238 -0
- package/docs/functions/PanoDoorLabelPlugin.html +235 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +235 -0
- package/docs/functions/PanoMeasurePlugin.html +235 -0
- package/docs/functions/PanoRulerPlugin.html +237 -0
- package/docs/functions/PanoRulerProPlugin.html +237 -0
- package/docs/functions/PanoSpatialTagPlugin.html +237 -0
- package/docs/functions/PanoTagPlugin.html +249 -0
- package/docs/functions/TopviewFloorplanPlugin.html +235 -0
- package/docs/functions/Util.getCoordsFromClient.html +78 -0
- package/docs/functions/Util.getCoordsFromElement.html +78 -0
- package/docs/functions/Util.getFrameTime.html +70 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +78 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +78 -0
- package/docs/functions/Util.isNil.html +79 -0
- package/docs/functions/Util.nextFrame.html +73 -0
- package/docs/functions/Util.notNil.html +78 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +98 -0
- package/docs/functions/Util.tweenProgress.html +84 -0
- package/docs/functions/pluginFlag.html +233 -0
- package/docs/index.html +222 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +205 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +85 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +111 -17
- package/docs/interfaces/ContentTypeMap.html +212 -0
- package/docs/interfaces/FloorplanBounding.html +89 -10
- package/docs/interfaces/FloorplanData.html +95 -3
- package/docs/interfaces/FloorplanEntrance.html +114 -15
- package/docs/interfaces/FloorplanExtraObject.html +108 -7
- package/docs/interfaces/FloorplanExtraObject3D.html +99 -3
- package/docs/interfaces/FloorplanFloorData.html +88 -3
- package/docs/interfaces/FloorplanImagePosition.html +74 -3
- package/docs/interfaces/FloorplanObserver.html +92 -5
- package/docs/interfaces/FloorplanOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanPosition.html +74 -3
- package/docs/interfaces/FloorplanRoomItem.html +134 -17
- package/docs/interfaces/FloorplanRoomLabelItem.html +78 -7
- package/docs/interfaces/FloorplanServerBounding.html +89 -10
- package/docs/interfaces/FloorplanServerComputedData.html +92 -1
- package/docs/interfaces/FloorplanServerData.html +74 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +92 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +78 -1
- package/docs/interfaces/FloorplanServerEntrance.html +114 -15
- package/docs/interfaces/FloorplanServerFloorData.html +88 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +74 -3
- package/docs/interfaces/FloorplanServerObserver.html +92 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanServerPosition.html +74 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +145 -20
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +78 -7
- package/docs/interfaces/ItemLabelPluginData.html +64 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +85 -1
- package/docs/interfaces/LineJson.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +107 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +71 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +78 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +115 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +64 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +71 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +64 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +85 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +109 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +64 -1
- package/docs/interfaces/ModelViewPluginExportType.html +129 -1
- package/docs/interfaces/Object3DHelperState.html +78 -0
- package/docs/interfaces/OpenParameter.html +74 -3
- package/docs/interfaces/PaintBrushAction.html +118 -0
- package/docs/interfaces/PaintBrushConfigs.html +122 -0
- package/docs/interfaces/PaintBrushState.html +99 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +186 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +227 -1
- package/docs/interfaces/PanoMeasureParameterType.html +128 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +138 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +87 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +78 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +114 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +84 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +71 -1
- package/docs/interfaces/PanoRulerProPluginState.html +78 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +241 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +230 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +114 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +96 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +192 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +92 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +113 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +99 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +92 -1
- package/docs/interfaces/Point.html +78 -1
- package/docs/interfaces/PointJson.html +78 -1
- package/docs/interfaces/Room.html +85 -1
- package/docs/interfaces/RoomInfo.html +71 -1
- package/docs/interfaces/RoomLabel.html +141 -13
- package/docs/interfaces/RoomRules.html +230 -1
- package/docs/interfaces/Rooms.html +230 -1
- package/docs/interfaces/Scissor.html +100 -0
- package/docs/interfaces/TagConfig.html +120 -0
- package/docs/interfaces/Tags.html +89 -0
- package/docs/interfaces/Util.MagnifierParameter.html +116 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +79 -0
- package/docs/modules/Util.html +91 -0
- package/docs/modules.html +425 -36
- package/docs/types/ArrayPosition.html +224 -0
- package/docs/types/CSS3DRenderExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +224 -0
- package/docs/types/Color.html +224 -0
- package/docs/types/ContentTypeConfigKey.html +224 -0
- package/docs/types/ContentTypeConfigKeyArray.html +224 -0
- package/docs/types/Create3DDomContainerReturnType.html +224 -0
- package/docs/types/Create3DElementReturnType.html +224 -0
- package/docs/types/CruisePluginExportType.html +224 -0
- package/docs/types/Direction-1.html +224 -0
- package/docs/types/Direction4.html +224 -0
- package/docs/types/FloorplanRuleLabels.html +226 -0
- package/docs/types/FloorplanServerRuleLabels.html +224 -0
- package/docs/types/GuideLinePluginExportType.html +224 -0
- package/docs/types/HelperEventMap.html +314 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +224 -0
- package/docs/types/MediaData.html +224 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +224 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +224 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +224 -0
- package/docs/types/MoveArgs.html +226 -0
- package/docs/types/MoveOpts.html +226 -0
- package/docs/types/Object3DHelperEventMap.html +317 -0
- package/docs/types/ObjectFit.html +224 -0
- package/docs/types/PaintBrushEventMap.html +255 -0
- package/docs/types/PanoCompassPluginData.html +224 -0
- package/docs/types/PanoCompassPluginExportType.html +224 -0
- package/docs/types/PanoCompassPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +224 -0
- package/docs/types/PanoMeasurePluginEvent.html +224 -0
- package/docs/types/PanoMeasureReturnType.html +224 -0
- package/docs/types/PanoSpatialTagPluginId.html +224 -0
- package/docs/types/PanoTagPluginExportInterface.html +224 -0
- package/docs/types/PanoTagPluginParamsInterface.html +224 -0
- package/docs/types/PlaneTag.html +233 -0
- package/docs/types/PointTag.html +235 -0
- package/docs/types/Position.html +224 -0
- package/docs/types/RotateArgs.html +226 -0
- package/docs/types/RotateOpts.html +226 -0
- package/docs/types/RuleLabelsKey.html +224 -0
- package/docs/types/RuleLabelsValue.html +224 -0
- package/docs/types/Tag.html +235 -0
- package/docs/types/Tag2D.html +233 -0
- package/docs/types/Tag3D.html +233 -0
- package/docs/types/TagId.html +224 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +224 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +226 -0
- package/docs/variables/PLUGIN.html +224 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +226 -0
- package/docs/variables/ROOM_TYPE_MAP.html +226 -0
- package/docs/variables/VERSION.html +224 -0
- package/docs/variables/itemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +231 -0
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -300
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -3
- package/libs/CSS3DRenderPlugin/Controller.js +1 -81
- package/libs/CSS3DRenderPlugin/index.js +1 -14
- package/libs/CSS3DRenderPlugin/typing.js +1 -1
- 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 -13
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -71
- package/libs/CameraMovementPlugin/index.js +1 -15
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -440
- package/libs/CruisePlugin/index.js +1 -27
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -9
- 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 -12
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -112
- package/libs/GuideLinePlugin/index.js +1 -15
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -118
- package/libs/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -254
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -85
- package/libs/ItemLabelPlugin/index.js +1 -25
- 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 -10
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -11
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -55
- package/libs/ModelChassisCompassPlugin/index.js +1 -10
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -66
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -11
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -196
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -79
- package/libs/ModelItemLabelPlugin/events.type.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +1 -21
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -9
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -64
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -151
- package/libs/ModelRoomLabelPlugin/index.js +1 -16
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -157
- package/libs/ModelTVVideoPlugin/index.js +1 -19
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -96
- package/libs/ModelViewPlugin/index.js +1 -8
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -137
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -35
- package/libs/Object3DHelperPlugin/index.js +1 -42
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -205
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -24
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -60
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -50
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -215
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.d.ts +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -15
- package/libs/PanoDoorLabelPlugin/utils.d.ts +2 -2
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -63
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -114
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -138
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -101
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -169
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -167
- package/libs/PanoMeasurePlugin/Model/index.d.ts +4 -4
- package/libs/PanoMeasurePlugin/Model/index.js +1 -99
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -60
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -2
- 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 -70
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -123
- package/libs/PanoMeasurePlugin/index.js +1 -60
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -23
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -16
- 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 +3 -241
- package/libs/PanoRulerPlugin/index.js +1 -11
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -74
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -118
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -181
- package/libs/PanoRulerProPlugin/index.js +1 -17
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -82
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -258
- package/libs/PanoSpatialTagPlugin/index.js +1 -24
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -1
- package/libs/PanoSpatialTagPlugin/store.js +1 -6
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -1
- 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 -163
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -91
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -3438
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -181
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -125
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -984
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -140
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -72
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -202
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -128
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -231
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -95
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -308
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -187
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -183
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -32
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -15
- package/libs/PanoTagPlugin/controller/index.js +1 -386
- package/libs/PanoTagPlugin/index.js +1 -71
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +1 -7
- 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.d.ts +1 -1
- 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 -36
- 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 -33
- 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 -7
- package/libs/components/PaintBrush/Controller.d.ts +2 -2
- package/libs/components/PaintBrush/Controller.js +1 -309
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -52
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -15
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.d.ts +1 -1
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -13
- package/libs/env.d.ts +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 -104
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -255
- package/libs/floorplan/Components/Main.js +1 -282
- 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 -122
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -152
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -184
- 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.d.ts +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -322
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -318
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -133
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -191
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -146
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -26
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -265
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -46
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -67
- package/libs/floorplan/typings/floorplanData.js +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -8
- package/libs/floorplan/utils/correctFiveState.js +1 -36
- package/libs/floorplan/utils/formatData.js +1 -82
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -330
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -155
- 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 -29
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -74
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -117
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -142
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -81
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -103
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -143
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -30
- package/libs/shared-utils/Object3DHelper/index.js +1 -140
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -30
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -29
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -13
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -5
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -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 -6
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -12
- package/libs/shared-utils/animationFrame/formatRad.js +1 -13
- package/libs/shared-utils/animationFrame/index.js +1 -51
- 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 -30
- package/libs/shared-utils/five/changeMode.js +1 -21
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -45
- 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 -6
- package/libs/shared-utils/math/planimetry.d.ts +5 -5
- package/libs/shared-utils/math/planimetry.js +1 -135
- 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.d.ts +1 -1
- 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 -5
- package/libs/shared-utils/three/FivePointSelector.d.ts +1 -1
- package/libs/shared-utils/three/FivePointSelector.js +1 -63
- package/libs/shared-utils/three/Magnifier.d.ts +2 -2
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -68
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.d.ts +1 -1
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.d.ts +1 -1
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -33
- package/libs/shared-utils/three/loadTexture.js +1 -10
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -13
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -11
- 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 +218 -31
- package/dist/style.css +0 -1
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
- package/libs/CruisePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
- package/libs/GuideLinePlugin/utils/polyline-normals.d.js +0 -1
- package/libs/ItemLabelPlugin/events.type.js +0 -1
- package/libs/ModelRoomLabelPlugin/typings.js +0 -1
- package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
- package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
- package/libs/Object3DHelperPlugin/typings.js +0 -1
- package/libs/PanoCompassPlugin/typings.js +0 -1
- package/libs/PanoDoorLabelPlugin/typings.js +0 -1
- package/libs/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/PanoMeasurePlugin/typings/index.js +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
- package/libs/PanoRulerPlugin/typings.js +0 -1
- package/libs/PanoRulerProPlugin/typings.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
- package/libs/TagComputer.2bc444dc.js +0 -315
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -11
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/typings/index.js +0 -1
- package/libs/floorplan/typings/utility.js +0 -1
- package/libs/hammer.b5b6115e.js +0 -882
- package/libs/index.164f1850.js +0 -641
- package/libs/index.5d5d1089.js +0 -34
- package/libs/index.6a0eead1.js +0 -12
- package/libs/index.ad783a2f.js +0 -31
- package/libs/index.dca207cb.js +0 -37
- package/libs/index.f2f85d71.js +0 -40
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -6
- package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
- package/libs/shared-utils/Object3DHelper/utils/negateScale.js +0 -7
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.js +0 -4
- package/libs/shared-utils/Preloader.d.ts +0 -6
- package/libs/shared-utils/Preloader.js +0 -18
- package/libs/shared-utils/formatRad.d.ts +0 -7
- package/libs/shared-utils/formatRad.js +0 -7
- package/libs/shared-utils/getRandomColor.d.ts +0 -1
- package/libs/shared-utils/getRandomColor.js +0 -6
- package/libs/shared-utils/logger.d.ts +0 -16
- package/libs/shared-utils/logger.js +0 -27
- package/libs/shared-utils/math/evenNumber.d.ts +0 -3
- package/libs/shared-utils/math/evenNumber.js +0 -7
- package/libs/shared-utils/px2rem.d.ts +0 -1
- package/libs/shared-utils/px2rem.js +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/shared-utils/three/getNormal.d.ts +0 -2
- package/libs/shared-utils/three/getNormal.js +0 -7
- package/libs/shared-utils/three/getTextureLoader.d.ts +0 -6
- package/libs/shared-utils/three/getTextureLoader.js +0 -16
- package/libs/shared-utils/three/loadFbxObj.d.ts +0 -2
- package/libs/shared-utils/three/loadFbxObj.js +0 -16
- package/libs/shared-utils/vectorTocoordinates.d.ts +0 -7
- package/libs/shared-utils/vectorTocoordinates.js +0 -10
- package/libs/style.css +0 -1
- package/libs/tween.esm.bad2b2b4.js +0 -340
- package/libs/typings/math.type.js +0 -1
- package/libs/typings/utils.type.d.ts +0 -2
- package/libs/typings/utils.type.js +0 -1
|
@@ -1,386 +1 @@
|
|
|
1
|
-
var T = Object.defineProperty;
|
|
2
|
-
var C = (l, h, e) => h in l ? T(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e;
|
|
3
|
-
var a = (l, h, e) => (C(l, typeof h != "symbol" ? h + "" : h, e), e);
|
|
4
|
-
import { Subscribe as D } from "@realsee/five";
|
|
5
|
-
import { Quaternion as y } from "three";
|
|
6
|
-
import { T as S, o as c } from "../../TagComputer.2bc444dc.js";
|
|
7
|
-
import { w as A } from "../../index.ad783a2f.js";
|
|
8
|
-
import P from "../Components/TagContainer.js";
|
|
9
|
-
import R from "../Components/Tag/index.js";
|
|
10
|
-
import { arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
11
|
-
import { addDebugPoints as w } from "../utils/addDebugPoints.js";
|
|
12
|
-
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
13
|
-
import { actionAfterFiveModelLoad as U } from "../utils/actionAfterFiveModelLoad.js";
|
|
14
|
-
import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
|
|
15
|
-
import { debounce as m } from "../utils/debounce.js";
|
|
16
|
-
import { throttle as F } from "../utils/throttle.js";
|
|
17
|
-
import { resizeObserver as u } from "../utils/resizeObserver.js";
|
|
18
|
-
import { CSS3DRenderPlugin as L } from "../../CSS3DRenderPlugin/index.js";
|
|
19
|
-
import { PointType as f, DimensionType as v } from "../typings/tag.js";
|
|
20
|
-
import "../tag.config.js";
|
|
21
|
-
import "../utils/tagPosition.js";
|
|
22
|
-
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
23
|
-
import "../utils/checkRange.js";
|
|
24
|
-
import "./TagCacheController.js";
|
|
25
|
-
import "../../base/BasePlugin.js";
|
|
26
|
-
import "../../shared-utils/Subscribe.js";
|
|
27
|
-
import "../../index.164f1850.js";
|
|
28
|
-
import "../Components/TagWrapper.js";
|
|
29
|
-
import "../utils/noTypecheck.js";
|
|
30
|
-
import "../Components/Common/Point/PointSwitch.js";
|
|
31
|
-
import "../Components/Common/Point/CustomPoint.js";
|
|
32
|
-
import "../Components/Common/Shadow.js";
|
|
33
|
-
import "../../index.dca207cb.js";
|
|
34
|
-
import "../../index.6a0eead1.js";
|
|
35
|
-
import "../Components/Common/Point/DefaultPoint.js";
|
|
36
|
-
import "../Components/Tag/TextTag.js";
|
|
37
|
-
import "../Components/Common/Line/Straight.js";
|
|
38
|
-
import "../../shared-utils/uuid.js";
|
|
39
|
-
import "../Components/Common/MultiLineText.js";
|
|
40
|
-
import "../Components/Common/Text.js";
|
|
41
|
-
import "../../shared-utils/isNil.js";
|
|
42
|
-
import "../utils/search.js";
|
|
43
|
-
import "../utils/constants.js";
|
|
44
|
-
import "../Components/Common/Arrow.js";
|
|
45
|
-
import "../Assets/Icon.js";
|
|
46
|
-
import "../utils/doUtil.js";
|
|
47
|
-
import "../Components/Tag/ImageTextTag.js";
|
|
48
|
-
import "../Components/Common/Line/Polyline.js";
|
|
49
|
-
import "../Components/Common/Media.js";
|
|
50
|
-
import "../Components/Common/MediaItem.js";
|
|
51
|
-
import "../Components/Tag/MarketingTag.js";
|
|
52
|
-
import "../Components/Tag/AudioTag.js";
|
|
53
|
-
import "../Components/Common/Audio.js";
|
|
54
|
-
import "../Components/Tag/MediaPlane.js";
|
|
55
|
-
import "../Components/Tag/LinkTag.js";
|
|
56
|
-
import "../Components/Tag/CustomTag.js";
|
|
57
|
-
import "../../CSS3DRenderPlugin/Controller.js";
|
|
58
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
59
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
60
|
-
import "../../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
62
|
-
const b = "1.2.6", g = `DnalogelPlugin-PanoTagPlugin@${b}`, B = !1, $e = (l) => `${g}--${l}`;
|
|
63
|
-
class je extends S {
|
|
64
|
-
constructor(e, t) {
|
|
65
|
-
super(e);
|
|
66
|
-
a(this, "version", b);
|
|
67
|
-
a(this, "state", { enabled: !0, visible: !0 });
|
|
68
|
-
a(this, "params");
|
|
69
|
-
a(this, "debug");
|
|
70
|
-
a(this, "css3DRenderPlugin");
|
|
71
|
-
a(this, "TagContainerSvelte");
|
|
72
|
-
a(this, "temporaryState", { visible: !0 });
|
|
73
|
-
a(this, "mediaStore", A({
|
|
74
|
-
currentMediaUrl: ""
|
|
75
|
-
}));
|
|
76
|
-
a(this, "store", {
|
|
77
|
-
disposers: [],
|
|
78
|
-
disposed: !1,
|
|
79
|
-
resizeObserverDisposerAdding: !1,
|
|
80
|
-
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
81
|
-
});
|
|
82
|
-
a(this, "staticUrl");
|
|
83
|
-
a(this, "disposedErrorLog", () => {
|
|
84
|
-
console.error(`${g} is disposed`);
|
|
85
|
-
});
|
|
86
|
-
this.params = {
|
|
87
|
-
debug: !1,
|
|
88
|
-
mergePluginDefaultConfigToLoadDataConfig: !1,
|
|
89
|
-
config: this.config,
|
|
90
|
-
staticConfig: {
|
|
91
|
-
host: "vrlab-static.ljcdn.com"
|
|
92
|
-
},
|
|
93
|
-
...t
|
|
94
|
-
}, this.debug = this.params.debug, this.config = this.params.config, this.staticUrl = (() => {
|
|
95
|
-
var s;
|
|
96
|
-
const i = this.params.staticConfig;
|
|
97
|
-
if (typeof i == "string")
|
|
98
|
-
return i;
|
|
99
|
-
{
|
|
100
|
-
const o = i.protocol ? i.protocol + ":" : "", n = (s = i.host) != null ? s : "vrlab-static.ljcdn.com", r = i.port ? ":" + i.port : "";
|
|
101
|
-
return `${o}//${n}${r}`;
|
|
102
|
-
}
|
|
103
|
-
})(), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
104
|
-
}
|
|
105
|
-
load(e, t) {
|
|
106
|
-
var i, s;
|
|
107
|
-
this.clearTags(), console.log(g, "load:", { data: e }), this.params.mergePluginDefaultConfigToLoadDataConfig ? this.config = c.exports({}, this.config, {
|
|
108
|
-
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
109
|
-
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
110
|
-
}) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && w(this.five, this.tags);
|
|
111
|
-
}
|
|
112
|
-
addTag(e, t) {
|
|
113
|
-
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
114
|
-
const n = this.getTagConfig(o);
|
|
115
|
-
return {
|
|
116
|
-
...o,
|
|
117
|
-
state: { visible: void 0, unfolded: B, ...n.initialState },
|
|
118
|
-
hooks: new D(),
|
|
119
|
-
clickable: n.clickable
|
|
120
|
-
};
|
|
121
|
-
}).filter((o) => o.position);
|
|
122
|
-
this.tags.push(...s), U(this.five, () => {
|
|
123
|
-
var o, n, r;
|
|
124
|
-
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
clearTags() {
|
|
128
|
-
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
129
|
-
}
|
|
130
|
-
async show(e) {
|
|
131
|
-
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
132
|
-
if (this.store.disposed)
|
|
133
|
-
return this.disposedErrorLog();
|
|
134
|
-
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
|
|
135
|
-
}
|
|
136
|
-
async hide(e) {
|
|
137
|
-
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
138
|
-
if (this.store.disposed)
|
|
139
|
-
return this.disposedErrorLog();
|
|
140
|
-
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
|
|
141
|
-
}
|
|
142
|
-
enable(e) {
|
|
143
|
-
const { userAction: t = !0 } = e != null ? e : {};
|
|
144
|
-
if (this.store.disposed)
|
|
145
|
-
return this.disposedErrorLog();
|
|
146
|
-
this.setState({ enabled: !0 }, { userAction: t }), this.hooks.emit("enable", { userAction: t });
|
|
147
|
-
}
|
|
148
|
-
disable(e) {
|
|
149
|
-
const { userAction: t = !0 } = e != null ? e : {};
|
|
150
|
-
if (this.store.disposed)
|
|
151
|
-
return this.disposedErrorLog();
|
|
152
|
-
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
153
|
-
}
|
|
154
|
-
dispose() {
|
|
155
|
-
var e, t, i, s, o, n;
|
|
156
|
-
this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
|
|
157
|
-
var d;
|
|
158
|
-
return (d = r.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
159
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
|
|
160
|
-
}
|
|
161
|
-
setState(e, t) {
|
|
162
|
-
if (this.store.disposed)
|
|
163
|
-
return this.disposedErrorLog();
|
|
164
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = { ...this.state };
|
|
165
|
-
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
166
|
-
}
|
|
167
|
-
changeTagNormalById(e, t) {
|
|
168
|
-
const i = this.getTagById(e);
|
|
169
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = p(t), this.updateRenderPlaneTag());
|
|
170
|
-
}
|
|
171
|
-
changeDataById(e, t, i = !0) {
|
|
172
|
-
const s = this.getTagById(e);
|
|
173
|
-
!s || (i ? s.data = c.exports({}, s.data, t) : Object.assign(s.data, t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
174
|
-
}
|
|
175
|
-
changeTagById(e, t, i = !0) {
|
|
176
|
-
const s = this.getTagById(e);
|
|
177
|
-
!t || (i ? c.exports(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = p(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
178
|
-
}
|
|
179
|
-
destroyTagById(e) {
|
|
180
|
-
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
181
|
-
const s = this.tags.findIndex((o) => o.id === i);
|
|
182
|
-
s !== -1 && this.tags.splice(s, 1);
|
|
183
|
-
}), this.updateRenderAllTags();
|
|
184
|
-
}
|
|
185
|
-
pauseCurrentMedia() {
|
|
186
|
-
this.mediaStore.set({ currentMediaUrl: "" });
|
|
187
|
-
}
|
|
188
|
-
async setVisibleAndUnfolded({ withAnimation: e } = { withAnimation: !1 }) {
|
|
189
|
-
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
190
|
-
setTimeout(() => {
|
|
191
|
-
this.setUnfoldedByPanoIndex(), t();
|
|
192
|
-
}, 10);
|
|
193
|
-
}) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
|
|
194
|
-
}
|
|
195
|
-
handleShow() {
|
|
196
|
-
this.state.visible = !0, this.updateTagContainerVisible();
|
|
197
|
-
}
|
|
198
|
-
handleHide() {
|
|
199
|
-
this.state.visible = !1, this.updateTagContainerVisible();
|
|
200
|
-
}
|
|
201
|
-
handleEnable() {
|
|
202
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
203
|
-
}
|
|
204
|
-
handleDisable() {
|
|
205
|
-
var e, t, i;
|
|
206
|
-
this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag().forEach((s) => {
|
|
207
|
-
var o;
|
|
208
|
-
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
addEventListener() {
|
|
212
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.clickhandler.bind(this);
|
|
213
|
-
return e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), t.on("click", d), () => {
|
|
214
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), t.off("click", d), this.store.eventListenerDisposer = void 0;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
addResizeListener() {
|
|
218
|
-
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
219
|
-
const e = this.addResizeObserver();
|
|
220
|
-
this.store.resizeObserverDisposerAdding = !0, setTimeout(() => {
|
|
221
|
-
this.store.resizeObserverDisposer = e, this.store.resizeObserverDisposerAdding = !1;
|
|
222
|
-
}, 200);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
addResizeObserver() {
|
|
226
|
-
if (!this.store.disposed)
|
|
227
|
-
return;
|
|
228
|
-
const e = this.five.getElement(), t = () => {
|
|
229
|
-
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
230
|
-
}, i = () => {
|
|
231
|
-
!this.state.enabled || this.hide();
|
|
232
|
-
}, { observe: s, unobserve: o } = u(
|
|
233
|
-
F(() => {
|
|
234
|
-
!this.store.resizeObserverDisposer || i();
|
|
235
|
-
}, 500),
|
|
236
|
-
e
|
|
237
|
-
), { observe: n, unobserve: r } = u(
|
|
238
|
-
m(() => t(), 400),
|
|
239
|
-
e
|
|
240
|
-
);
|
|
241
|
-
return s(), n(), () => {
|
|
242
|
-
o(), r();
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
handleFiveModeChange(e) {
|
|
246
|
-
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow()) : this.temporaryHide();
|
|
247
|
-
}
|
|
248
|
-
handleFiveWantsMoveToPano() {
|
|
249
|
-
this.tags.forEach((e) => {
|
|
250
|
-
const t = this.getTagConfig(e);
|
|
251
|
-
typeof t.visibleConfig == "object" && t.visibleConfig.keep ? e.temporaryState = { ...e.temporaryState, visible: t.visibleConfig.keep === "visible" } : typeof t.visibleConfig == "object" && t.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = { ...e.temporaryState, visible: !0 } : e.temporaryState = { ...e.temporaryState, visible: !1 };
|
|
252
|
-
}), this.updateRenderAllTags();
|
|
253
|
-
}
|
|
254
|
-
temporaryShow() {
|
|
255
|
-
this.temporaryState.visible = !0;
|
|
256
|
-
}
|
|
257
|
-
temporaryHide() {
|
|
258
|
-
this.temporaryState.visible = !1;
|
|
259
|
-
}
|
|
260
|
-
clickhandler(e) {
|
|
261
|
-
if (e.target !== "TagPoint")
|
|
262
|
-
return;
|
|
263
|
-
if (!e.tag.state)
|
|
264
|
-
return console.warn("Clickhandler: params.tag.state is undefined");
|
|
265
|
-
const t = this.canBe("fold", e.tag), i = this.canBe("unfold", e.tag);
|
|
266
|
-
t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((s) => {
|
|
267
|
-
s.id !== e.tag.id && s.state && this.canBe("fold", s) && (s.state.unfolded = !1);
|
|
268
|
-
}), this.updateRenderAllTags());
|
|
269
|
-
}
|
|
270
|
-
updateRenderAllTags() {
|
|
271
|
-
this.updateRenderPointTag(), this.updateRenderPlaneTag();
|
|
272
|
-
}
|
|
273
|
-
updateTagContainerVisible() {
|
|
274
|
-
var e;
|
|
275
|
-
(e = this.TagContainerSvelte) == null || e.$set({
|
|
276
|
-
state: this.state,
|
|
277
|
-
temporaryState: this.temporaryState,
|
|
278
|
-
withAnimation: this.store.visibleWithAnimation
|
|
279
|
-
}), this.filter3DTag().forEach((t) => {
|
|
280
|
-
var i;
|
|
281
|
-
(i = t.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
282
|
-
state: this.state,
|
|
283
|
-
temporaryState: this.temporaryState,
|
|
284
|
-
withAnimation: this.store.visibleWithAnimation
|
|
285
|
-
});
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
handleFiveCameraUpdateDebounce() {
|
|
289
|
-
return m(() => {
|
|
290
|
-
this.setUnfoldedByCamera(), this.updateRenderAllTags();
|
|
291
|
-
}, 100);
|
|
292
|
-
}
|
|
293
|
-
handleFiveCameraUpdate() {
|
|
294
|
-
this.updateRenderPointTag();
|
|
295
|
-
}
|
|
296
|
-
async handleFivePanoArrived() {
|
|
297
|
-
await this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
298
|
-
e.temporaryState = { ...e.temporaryState, visible: !0 };
|
|
299
|
-
}), this.updateRenderAllTags();
|
|
300
|
-
}
|
|
301
|
-
setUnfoldedByCamera() {
|
|
302
|
-
let e = !1;
|
|
303
|
-
this.tags.forEach((t) => {
|
|
304
|
-
const i = this.getUnfoldedByCamera(t);
|
|
305
|
-
!t.state || i !== void 0 && (i === !0 && (e = !0), t.state.unfolded = i);
|
|
306
|
-
}), e && this.tags.forEach((t) => {
|
|
307
|
-
const i = this.getTagConfig(t).unfoldedConfig;
|
|
308
|
-
typeof i == "object" && (i.autoUnfold || i.disableFold || i.keep) || t.state && (t.state.unfolded = !1);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
updateRenderPointTag() {
|
|
312
|
-
var t;
|
|
313
|
-
const e = this.filterPointTag();
|
|
314
|
-
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
315
|
-
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
316
|
-
else {
|
|
317
|
-
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
318
|
-
if (!i)
|
|
319
|
-
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
320
|
-
this.TagContainerSvelte = new P({
|
|
321
|
-
target: i,
|
|
322
|
-
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
updateRenderPlaneTag() {
|
|
327
|
-
[...this.filterPlaneTag(), ...this.filter3DPointTag()].forEach((t) => {
|
|
328
|
-
var i;
|
|
329
|
-
if (t.tag3DContentSvelte) {
|
|
330
|
-
const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
|
|
331
|
-
if (s.$set({
|
|
332
|
-
tag: t,
|
|
333
|
-
hooks: this.hooks,
|
|
334
|
-
state: this.state,
|
|
335
|
-
temporaryState: this.temporaryState
|
|
336
|
-
}), !n.equals(r)) {
|
|
337
|
-
const d = new y().setFromUnitVectors(n, r);
|
|
338
|
-
o.css3DObject.setRotationFromQuaternion(d);
|
|
339
|
-
}
|
|
340
|
-
} else {
|
|
341
|
-
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
342
|
-
return;
|
|
343
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = L(this.five)), t.pointType === f.PointTag && !t.normal)
|
|
344
|
-
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
345
|
-
const s = t.pointType === f.PlaneTag ? t.position : k(this.five.camera.position, p(t.position), p(t.normal)), o = t.pointType === f.PlaneTag ? E(t.position) : p(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
|
|
346
|
-
if (!r)
|
|
347
|
-
return;
|
|
348
|
-
this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
349
|
-
svelteApp: new R({
|
|
350
|
-
target: r.container,
|
|
351
|
-
props: {
|
|
352
|
-
tag: t,
|
|
353
|
-
hooks: this.hooks,
|
|
354
|
-
state: this.state,
|
|
355
|
-
mediaStore: this.mediaStore,
|
|
356
|
-
temporaryState: this.temporaryState
|
|
357
|
-
}
|
|
358
|
-
}),
|
|
359
|
-
domContainer: r,
|
|
360
|
-
initialNormal: o,
|
|
361
|
-
currentNormal: o
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
}), this.checkPanelTag();
|
|
365
|
-
}
|
|
366
|
-
disposeAllCSS3DContainer() {
|
|
367
|
-
for (const [e, t] of this.store.css3DRenderDisposer)
|
|
368
|
-
t == null || t();
|
|
369
|
-
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
370
|
-
}
|
|
371
|
-
checkPanelTag() {
|
|
372
|
-
this.tags.forEach((e) => {
|
|
373
|
-
var t;
|
|
374
|
-
e.dimensionType === v.Two && e.pointType === f.PointTag && ((t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0);
|
|
375
|
-
});
|
|
376
|
-
for (const [e, t] of this.store.css3DRenderDisposer) {
|
|
377
|
-
const i = this.getTagById(e);
|
|
378
|
-
(!i || i.dimensionType !== v.Three) && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
export {
|
|
383
|
-
je as PanoTagPluginController,
|
|
384
|
-
je as default,
|
|
385
|
-
$e as pluginFlag
|
|
386
|
-
};
|
|
1
|
+
"use strict";var y=Object.defineProperty,S=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var v=(a,l,e)=>l in a?y(a,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[l]=e,c=(a,l)=>{for(var e in l||(l={}))R.call(l,e)&&v(a,e,l[e]);if(C)for(var e of C(l))_.call(l,e)&&v(a,e,l[e]);return a},g=(a,l)=>S(a,A(l));var d=(a,l,e)=>(v(a,typeof l!="symbol"?l+"":l,e),e);var f=(a,l,e)=>new Promise((t,s)=>{var i=n=>{try{r(e.next(n))}catch(h){s(h)}},o=n=>{try{r(e.throw(n))}catch(h){s(h)}},r=n=>n.done?t(n.value):Promise.resolve(n.value).then(i,o);r((e=e.apply(a,l)).next())});const E=require("@realsee/five"),w=require("three"),F=require("object-assign-deep"),U=require("svelte/store"),L=require("../Components/TagContainer.js"),k=require("../Components/Tag/index.js"),p=require("../../CSS3DRenderPlugin/utils/positionToVector3.js"),j=require("../utils/addDebugPoints.js"),O=require("../utils/planeNormal.js"),B=require("../utils/actionAfterFiveModelLoad.js"),q=require("../utils/normalPositionToPositions.js"),m=require("../utils/debounce.js"),z=require("../utils/throttle.js"),P=require("../utils/resizeObserver.js"),I=require("./TagComputer.js"),M=require("../../CSS3DRenderPlugin/index.js"),u=require("../typings/tag.js"),N=a=>a&&typeof a=="object"&&"default"in a?a:{default:a},T=N(F),D="1.2.6",b=`DnalogelPlugin-PanoTagPlugin@${D}`,V=!1,$=a=>`${b}--${a}`;class x extends I.TagComputer{constructor(e,t){super(e);d(this,"version",D);d(this,"state",{enabled:!0,visible:!0});d(this,"params");d(this,"debug");d(this,"css3DRenderPlugin");d(this,"TagContainerSvelte");d(this,"temporaryState",{visible:!0});d(this,"mediaStore",U.writable({currentMediaUrl:""}));d(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});d(this,"staticUrl");d(this,"disposedErrorLog",()=>{console.error(`${b} is disposed`)});this.params=c({debug:!1,mergePluginDefaultConfigToLoadDataConfig:!1,config:this.config,staticConfig:{host:"vrlab-static.ljcdn.com"}},t),this.debug=this.params.debug,this.config=this.params.config,this.staticUrl=(()=>{var i;const s=this.params.staticConfig;if(typeof s=="string")return s;{const o=s.protocol?s.protocol+":":"",r=(i=s.host)!=null?i:"vrlab-static.ljcdn.com",n=s.port?":"+s.port:"";return`${o}//${r}${n}`}})(),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,t){var s,i;this.clearTags(),console.log(b,"load:",{data:e}),this.params.mergePluginDefaultConfigToLoadDataConfig?this.config=T.default({},this.config,{globalConfig:(s=e.globalConfig)!=null?s:{},contentTypeConfig:(i=e.contentTypeConfig)!=null?i:{}}):(e.globalConfig&&(this.config.globalConfig=e.globalConfig),e.contentTypeConfig&&(this.config.contentTypeConfig=e.contentTypeConfig)),this.addTag(e.tagList,t),this.debug&&j.addDebugPoints(this.five,this.tags)}addTag(e,t){const i=(Array.isArray(e)?e:[e]).map(o=>{const r=this.getTagConfig(o);return g(c({},o),{state:c({visible:void 0,unfolded:V},r.initialState),hooks:new E.Subscribe,clickable:r.clickable})}).filter(o=>o.position);this.tags.push(...i),B.actionAfterFiveModelLoad(this.five,()=>{var o,r,n;this.store.eventListenerDisposer&&((r=(o=this.store).eventListenerDisposer)==null||r.call(o)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(n=t==null?void 0:t.withAnimation)!=null?n:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags()})}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return f(this,null,function*(){const{userAction:t=!0,withAnimation:s=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:t,visibleWithAnimation:s}),this.hooks.emit("show",{userAction:t,withAnimation:s})})}hide(e){return f(this,null,function*(){const{userAction:t=!0,withAnimation:s=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:t,visibleWithAnimation:s}),this.hooks.emit("hide",{userAction:t,withAnimation:s})})}enable(e){const{userAction:t=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:t}),this.hooks.emit("enable",{userAction:t})}disable(e){const{userAction:t=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:t}),this.hooks.emit("disable",{userAction:t})}dispose(){var e,t,s,i,o,r;this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(n=>{var h;return(h=n.tag3DContentSvelte)==null?void 0:h.svelteApp.$destroy()}),this.tags=[],(t=this.store.disposers)==null||t.forEach(n=>n==null?void 0:n()),this.store.disposers=[],this.store.disposed=!0,(i=(s=this.store).eventListenerDisposer)==null||i.call(s),this.store.eventListenerDisposer=void 0,(r=(o=this.store).resizeObserverDisposer)==null||r.call(o),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,t){if(this.store.disposed)return this.disposedErrorLog();const{userAction:s=!0,visibleWithAnimation:i=!1}=t,o=c({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=i,o.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),o.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:o,userAction:s})}changeTagNormalById(e,t){const s=this.getTagById(e);!s||!s.tag3DContentSvelte||(s.tag3DContentSvelte.currentNormal=p.arrayPositionToVector3(t),this.updateRenderPlaneTag())}changeDataById(e,t,s=!0){const i=this.getTagById(e);!i||(s?i.data=T.default({},i.data,t):Object.assign(i.data,t),this.checkPanelTag(),this.updateRenderAllTags())}changeTagById(e,t,s=!0){const i=this.getTagById(e);!t||(s?T.default(i,t):Object.assign(i,t),(i==null?void 0:i.tag3DContentSvelte)&&(t==null?void 0:t.normal)&&(i.tag3DContentSvelte.currentNormal=p.arrayPositionToVector3(t.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(s=>{const i=this.tags.findIndex(o=>o.id===s);i!==-1&&this.tags.splice(i,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaUrl:""})}setVisibleAndUnfolded(){return f(this,arguments,function*({withAnimation:e}={withAnimation:!1}){return this.setVisibleByPanoIndex(),e?new Promise((t,s)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),t()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,t,s;this.state.enabled=!1,(t=(e=this.store).eventListenerDisposer)==null||t.call(e),(s=this.TagContainerSvelte)==null||s.$set({tags:[]}),this.filter3DTag().forEach(i=>{var o;(o=i.tag3DContentSvelte)==null||o.svelteApp.$destroy(),i.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:t}=this,s=this.handleFiveWantsMoveToPano.bind(this),i=this.handleFiveModeChange.bind(this),o=this.handleFiveCameraUpdate.bind(this),r=this.handleFiveCameraUpdateDebounce(),n=this.handleFivePanoArrived.bind(this),h=this.clickhandler.bind(this);return e.on("wantsMoveToPano",s),e.on("modeChange",i),e.on("cameraUpdate",o),e.on("cameraUpdate",r),e.on("panoArrived",n),t.on("click",h),()=>{e.off("wantsMoveToPano",s),e.off("modeChange",i),e.off("cameraUpdate",o),e.off("cameraUpdate",r),e.off("panoArrived",n),t.off("click",h),this.store.eventListenerDisposer=void 0}}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),t=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},s=()=>{!this.state.enabled||this.hide()},{observe:i,unobserve:o}=P.resizeObserver(z.throttle(()=>{!this.store.resizeObserverDisposer||s()},500),e),{observe:r,unobserve:n}=P.resizeObserver(m.debounce(()=>t(),400),e);return i(),r(),()=>{o(),n()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow()):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const t=this.getTagConfig(e);typeof t.visibleConfig=="object"&&t.visibleConfig.keep?e.temporaryState=g(c({},e.temporaryState),{visible:t.visibleConfig.keep==="visible"}):typeof t.visibleConfig=="object"&&t.visibleConfig.alwaysShowWhenMovePano?e.temporaryState=g(c({},e.temporaryState),{visible:!0}):e.temporaryState=g(c({},e.temporaryState),{visible:!1})}),this.updateRenderAllTags()}temporaryShow(){this.temporaryState.visible=!0}temporaryHide(){this.temporaryState.visible=!1}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const t=this.canBe("fold",e.tag),s=this.canBe("unfold",e.tag);t&&s&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(i=>{i.id!==e.tag.id&&i.state&&this.canBe("fold",i)&&(i.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(t=>{var s;(s=t.tag3DContentSvelte)==null||s.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return m.debounce(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return f(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=g(c({},e.temporaryState),{visible:!0})}),this.updateRenderAllTags()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(t=>{const s=this.getUnfoldedByCamera(t);!t.state||s!==void 0&&(s===!0&&(e=!0),t.state.unfolded=s)}),e&&this.tags.forEach(t=>{const s=this.getTagConfig(t).unfoldedConfig;typeof s=="object"&&(s.autoUnfold||s.disableFold||s.keep)||t.state&&(t.state.unfolded=!1)})}updateRenderPointTag(){var t;const e=this.filterPointTag();if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const s=(t=this.five.getElement())==null?void 0:t.parentElement;if(!s)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new L.TagContainer({target:s,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){[...this.filterPlaneTag(),...this.filter3DPointTag()].forEach(t=>{var s;if(t.tag3DContentSvelte){const{svelteApp:i,domContainer:o,initialNormal:r,currentNormal:n}=t.tag3DContentSvelte;if(i.$set({tag:t,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!r.equals(n)){const h=new w.Quaternion().setFromUnitVectors(r,n);o.css3DObject.setRotationFromQuaternion(h)}}else{if(((s=t.state)==null?void 0:s.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=M.CSS3DRenderPlugin(this.five)),t.pointType===u.PointType.PointTag&&!t.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const i=t.pointType===u.PointType.PlaneTag?t.position:q.normalPositionToPositions(this.five.camera.position,p.arrayPositionToVector3(t.position),p.arrayPositionToVector3(t.normal)),o=t.pointType===u.PointType.PlaneTag?O.planeNormal(t.position):p.arrayPositionToVector3(t.normal),r=this.getTagConfig(t).tag3DConfig,n=this.css3DRenderPlugin.create3DDomContainer(i,r);if(!n)return;this.store.css3DRenderDisposer.set(t.id,n.dispose),t.tag3DContentSvelte={svelteApp:new k.Tag({target:n.container,props:{tag:t,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:n,initialNormal:o,currentNormal:o}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,t]of this.store.css3DRenderDisposer)t==null||t();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.tags.forEach(e=>{var t;e.dimensionType===u.DimensionType.Two&&e.pointType===u.PointType.PointTag&&((t=e.tag3DContentSvelte)==null||t.domContainer.dispose(),e.tag3DContentSvelte=void 0)});for(const[e,t]of this.store.css3DRenderDisposer){const s=this.getTagById(e);(!s||s.dimensionType!==u.DimensionType.Three)&&(t==null||t(),this.store.css3DRenderDisposer.delete(e))}}}exports.PanoTagPluginController=x;exports.pluginFlag=$;
|
|
@@ -1,71 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { default as go, pluginFlag as Po } from "./controller/index.js";
|
|
3
|
-
import { ContentType as uo, DimensionType as fo, LinkType as so, PointType as yo } from "./typings/tag.js";
|
|
4
|
-
import "@realsee/five";
|
|
5
|
-
import "three";
|
|
6
|
-
import "../TagComputer.2bc444dc.js";
|
|
7
|
-
import "./tag.config.js";
|
|
8
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
9
|
-
import "./utils/planeNormal.js";
|
|
10
|
-
import "./utils/tagPosition.js";
|
|
11
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
12
|
-
import "./utils/checkRange.js";
|
|
13
|
-
import "./controller/TagCacheController.js";
|
|
14
|
-
import "../base/BasePlugin.js";
|
|
15
|
-
import "../shared-utils/Subscribe.js";
|
|
16
|
-
import "../index.ad783a2f.js";
|
|
17
|
-
import "../index.164f1850.js";
|
|
18
|
-
import "./Components/TagContainer.js";
|
|
19
|
-
import "./Components/TagWrapper.js";
|
|
20
|
-
import "./utils/noTypecheck.js";
|
|
21
|
-
import "./Components/Tag/index.js";
|
|
22
|
-
import "./Components/Tag/TextTag.js";
|
|
23
|
-
import "./Components/Common/Line/Straight.js";
|
|
24
|
-
import "../index.dca207cb.js";
|
|
25
|
-
import "../index.6a0eead1.js";
|
|
26
|
-
import "../shared-utils/uuid.js";
|
|
27
|
-
import "./Components/Common/Shadow.js";
|
|
28
|
-
import "./Components/Common/MultiLineText.js";
|
|
29
|
-
import "./Components/Common/Text.js";
|
|
30
|
-
import "../shared-utils/isNil.js";
|
|
31
|
-
import "./utils/search.js";
|
|
32
|
-
import "./utils/constants.js";
|
|
33
|
-
import "./Components/Common/Arrow.js";
|
|
34
|
-
import "./Assets/Icon.js";
|
|
35
|
-
import "./utils/doUtil.js";
|
|
36
|
-
import "./Components/Tag/ImageTextTag.js";
|
|
37
|
-
import "./Components/Common/Line/Polyline.js";
|
|
38
|
-
import "./Components/Common/Media.js";
|
|
39
|
-
import "./Components/Common/MediaItem.js";
|
|
40
|
-
import "./Components/Tag/MarketingTag.js";
|
|
41
|
-
import "./Components/Tag/AudioTag.js";
|
|
42
|
-
import "./Components/Common/Audio.js";
|
|
43
|
-
import "./Components/Tag/MediaPlane.js";
|
|
44
|
-
import "./Components/Tag/LinkTag.js";
|
|
45
|
-
import "./Components/Tag/CustomTag.js";
|
|
46
|
-
import "./Components/Common/Point/PointSwitch.js";
|
|
47
|
-
import "./Components/Common/Point/CustomPoint.js";
|
|
48
|
-
import "./Components/Common/Point/DefaultPoint.js";
|
|
49
|
-
import "./utils/addDebugPoints.js";
|
|
50
|
-
import "./utils/actionAfterFiveModelLoad.js";
|
|
51
|
-
import "./utils/normalPositionToPositions.js";
|
|
52
|
-
import "./utils/debounce.js";
|
|
53
|
-
import "./utils/throttle.js";
|
|
54
|
-
import "./utils/resizeObserver.js";
|
|
55
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
56
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
57
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
58
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
59
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
60
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
61
|
-
const eo = (o, t) => new r(o, t);
|
|
62
|
-
export {
|
|
63
|
-
uo as ContentType,
|
|
64
|
-
fo as DimensionType,
|
|
65
|
-
so as LinkType,
|
|
66
|
-
eo as PanoTagPlugin,
|
|
67
|
-
go as PanoTagPluginController,
|
|
68
|
-
yo as PointType,
|
|
69
|
-
eo as default,
|
|
70
|
-
Po as pluginFlag
|
|
71
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./controller/index.js"),e=require("./typings/tag.js");require("@realsee/five");require("three");require("object-assign-deep");require("svelte/store");require("./Components/TagContainer.js");require("svelte/internal");require("./Components/TagWrapper.js");require("./utils/noTypecheck.js");require("./Components/Tag/index.js");require("./Components/Tag/TextTag.js");require("./Components/Common/Line/Straight.js");require("svelte/transition");require("../shared-utils/uuid.js");require("./Components/Common/Shadow.js");require("./Components/Common/MultiLineText.js");require("./Components/Common/Text.js");require("animejs");require("svelte");require("../shared-utils/isNil.js");require("./utils/search.js");require("./utils/constants.js");require("./Components/Common/Arrow.js");require("./Assets/Icon.js");require("svelte/easing");require("./utils/doUtil.js");require("./Components/Tag/ImageTextTag.js");require("./Components/Common/Line/Polyline.js");require("./Components/Common/Media.js");require("../vendor/swiper/svelte/swiper.js");require("swiper");require("../vendor/swiper/components-shared/get-params.js");require("../vendor/swiper/components-shared/utils.js");require("../vendor/swiper/components-shared/params-list.js");require("../vendor/swiper/components-shared/mount-swiper.js");require("../vendor/swiper/components-shared/get-changed-params.js");require("../vendor/swiper/components-shared/update-swiper.js");require("../vendor/swiper/svelte/swiper-slide.js");require("swiper/css");require("swiper/css/autoplay");require("./Components/Common/MediaItem.js");require("./Components/Tag/MarketingTag.js");require("./Components/Tag/AudioTag.js");require("./Components/Common/Audio.js");require("./Components/Tag/MediaPlane.js");require("./Components/Tag/LinkTag.js");require("./Components/Tag/CustomTag.js");require("./Components/Common/Point/PointSwitch.js");require("./Components/Common/Point/CustomPoint.js");require("./Components/Common/Point/DefaultPoint.js");require("../CSS3DRenderPlugin/utils/positionToVector3.js");require("./utils/addDebugPoints.js");require("./utils/planeNormal.js");require("./utils/actionAfterFiveModelLoad.js");require("./utils/normalPositionToPositions.js");require("./utils/debounce.js");require("./utils/throttle.js");require("./utils/resizeObserver.js");require("./controller/TagComputer.js");require("./tag.config.js");require("./utils/tagPosition.js");require("../CSS3DRenderPlugin/utils/centerPoint.js");require("./utils/checkRange.js");require("./controller/TagCacheController.js");require("../base/BasePlugin.js");require("../shared-utils/Subscribe.js");require("../CSS3DRenderPlugin/index.js");require("../CSS3DRenderPlugin/Controller.js");require("../CSS3DRenderPlugin/CSS3DRender.js");require("three/examples/jsm/renderers/CSS3DRenderer");require("../CSS3DRenderPlugin/utils/evenNumber.js");require("../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js");const i=(s,n)=>new r.PanoTagPluginController(s,n);exports.PanoTagPluginController=r.PanoTagPluginController;exports.pluginFlag=r.pluginFlag;exports.ContentType=e.ContentType;exports.DimensionType=e.DimensionType;exports.LinkType=e.LinkType;exports.PointType=e.PointType;exports.PanoTagPlugin=i;exports.default=i;
|
|
@@ -1,44 +1 @@
|
|
|
1
|
-
const n
|
|
2
|
-
globalConfig: {
|
|
3
|
-
initialState: {},
|
|
4
|
-
visibleConfig: {
|
|
5
|
-
visibleDistance: { max: 5 },
|
|
6
|
-
angleRange: { min: -45, max: 45 }
|
|
7
|
-
},
|
|
8
|
-
unfoldedConfig: {
|
|
9
|
-
autoUnfold: {
|
|
10
|
-
strategy: "MinimumDistance"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
tag3DConfig: {
|
|
14
|
-
ratio: 35e-4
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
contentTypeConfig: {
|
|
18
|
-
"Any-Link-Any": {
|
|
19
|
-
unfoldedConfig: {
|
|
20
|
-
keep: "unfolded"
|
|
21
|
-
},
|
|
22
|
-
initialState: {
|
|
23
|
-
unfolded: !0
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"Any-Marketing-Any": {
|
|
27
|
-
unfoldedConfig: void 0
|
|
28
|
-
},
|
|
29
|
-
"3D-MediaPlane-PlaneTag": {
|
|
30
|
-
unfoldedConfig: {
|
|
31
|
-
keep: "unfolded"
|
|
32
|
-
},
|
|
33
|
-
visibleConfig: {
|
|
34
|
-
alwaysShowWhenMovePano: !0,
|
|
35
|
-
angleRange: void 0,
|
|
36
|
-
visibleDistance: void 0
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
n as DefaultConfig,
|
|
43
|
-
n as default
|
|
44
|
-
};
|
|
1
|
+
"use strict";const n={globalConfig:{initialState:{},visibleConfig:{visibleDistance:{max:5},angleRange:{min:-45,max:45}},unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance"}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Link-Any":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},"Any-Marketing-Any":{unfoldedConfig:void 0},"3D-MediaPlane-PlaneTag":{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0,angleRange:void 0,visibleDistance:void 0}}}};exports.DefaultConfig=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
var r
|
|
2
|
-
export {
|
|
3
|
-
i as ContentType,
|
|
4
|
-
r as DimensionType,
|
|
5
|
-
u as LinkType,
|
|
6
|
-
g as PointType
|
|
7
|
-
};
|
|
1
|
+
"use strict";var r=(a=>(a.Two="2D",a.Three="3D",a))(r||{}),i=(a=>(a.PointTag="PointTag",a.PlaneTag="PlaneTag",a))(i||{}),e=(a=>(a.Audio="Audio",a.Text="Text",a.ImageText="ImageText",a.Link="Link",a.Marketing="Marketing",a.MediaPlane="MediaPlane",a.Custom="Custom",a))(e||{}),u=(a=>(a.VrLink="vr",a.NormalLink="normal",a))(u||{});exports.ContentType=e;exports.DimensionType=r;exports.LinkType=u;exports.PointType=i;
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { arrayPositionToVector3 as c } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
3
|
-
function M(h, p) {
|
|
4
|
-
p.forEach((t) => {
|
|
5
|
-
const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
|
|
6
|
-
new o.MeshBasicMaterial({ color: 16776960 }),
|
|
7
|
-
new o.MeshBasicMaterial({ color: 16711935 }),
|
|
8
|
-
new o.MeshBasicMaterial({ color: 16711680 }),
|
|
9
|
-
new o.MeshBasicMaterial({ color: 65535 })
|
|
10
|
-
];
|
|
11
|
-
if (t.position.length === 4)
|
|
12
|
-
t.position.forEach((e, s) => {
|
|
13
|
-
const l = a[s], n = new o.Mesh(r, l);
|
|
14
|
-
n.position.copy(c(e)), i.push(n);
|
|
15
|
-
});
|
|
16
|
-
else {
|
|
17
|
-
const e = a[0], s = new o.Mesh(r, e);
|
|
18
|
-
s.position.copy(c(t.position)), i.push(s);
|
|
19
|
-
}
|
|
20
|
-
i.forEach((e) => {
|
|
21
|
-
e.material.depthTest = !1, h.scene.add(e);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
M as addDebugPoints
|
|
27
|
-
};
|
|
1
|
+
"use strict";const h=require("three"),u=require("../../CSS3DRenderPlugin/utils/positionToVector3.js");function d(e){if(e&&e.__esModule)return e;const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const t=d(h);function f(e,s){s.forEach(o=>{const n=new t.SphereGeometry(.02,16,16),c=[],a=[new t.MeshBasicMaterial({color:16776960}),new t.MeshBasicMaterial({color:16711935}),new t.MeshBasicMaterial({color:16711680}),new t.MeshBasicMaterial({color:65535})];if(o.position.length===4)o.position.forEach((r,i)=>{const p=a[i],l=new t.Mesh(n,p);l.position.copy(u.arrayPositionToVector3(r)),c.push(l)});else{const r=a[0],i=new t.Mesh(n,r);i.position.copy(u.arrayPositionToVector3(o.position)),c.push(i)}c.forEach(r=>{r.material.depthTest=!1,e.scene.add(r)})})}exports.addDebugPoints=f;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (t === void 0)
|
|
3
|
-
return;
|
|
4
|
-
const { min: e, max: f } = r != null ? r : {};
|
|
5
|
-
if (!(e === void 0 && f === void 0))
|
|
6
|
-
return !(typeof f == "number" && f < t || typeof e == "number" && e > t);
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
i as checkRange
|
|
10
|
-
};
|
|
1
|
+
"use strict";function f(t,e){if(t===void 0)return;const{min:i,max:r}=e!=null?e:{};if(!(i===void 0&&r===void 0))return!(typeof r=="number"&&r<t||typeof i=="number"&&i>t)}exports.checkRange=f;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
let e = null;
|
|
3
|
-
const t = n;
|
|
4
|
-
return (...l) => {
|
|
5
|
-
e && clearTimeout(e), e = setTimeout(() => {
|
|
6
|
-
t == null || t(...l), e && clearTimeout(e), e = null;
|
|
7
|
-
}, o);
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
r as debounce
|
|
12
|
-
};
|
|
1
|
+
"use strict";const c=(n,o=16.666666666666668)=>{let e=null;const t=n;return(...u)=>{e&&clearTimeout(e),e=setTimeout(()=>{t==null||t(...u),e&&clearTimeout(e),e=null},o)}};exports.debounce=c;
|