@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,151 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Raycaster as ee, Vector3 as w } from "three";
|
|
3
|
-
import te from "./RoomLabelItem.js";
|
|
4
|
-
import "./Assets/roomLabelBg.js";
|
|
5
|
-
const { Map: oe } = J;
|
|
6
|
-
function ne(l) {
|
|
7
|
-
V(l, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
8
|
-
}
|
|
9
|
-
function M(l, s, e) {
|
|
10
|
-
const r = l.slice();
|
|
11
|
-
return r[13] = s[e], r;
|
|
12
|
-
}
|
|
13
|
-
function C(l, s) {
|
|
14
|
-
let e, r, f;
|
|
15
|
-
return r = new te({
|
|
16
|
-
props: {
|
|
17
|
-
roomLabel: s[13],
|
|
18
|
-
five: s[1]
|
|
19
|
-
}
|
|
20
|
-
}), {
|
|
21
|
-
key: l,
|
|
22
|
-
first: null,
|
|
23
|
-
c() {
|
|
24
|
-
e = K(), N(r.$$.fragment), this.first = e;
|
|
25
|
-
},
|
|
26
|
-
m(t, i) {
|
|
27
|
-
S(t, e, i), X(r, t, i), f = !0;
|
|
28
|
-
},
|
|
29
|
-
p(t, i) {
|
|
30
|
-
s = t;
|
|
31
|
-
const m = {};
|
|
32
|
-
i & 1 && (m.roomLabel = s[13]), i & 2 && (m.five = s[1]), r.$set(m);
|
|
33
|
-
},
|
|
34
|
-
i(t) {
|
|
35
|
-
f || (D(r.$$.fragment, t), f = !0);
|
|
36
|
-
},
|
|
37
|
-
o(t) {
|
|
38
|
-
R(r.$$.fragment, t), f = !1;
|
|
39
|
-
},
|
|
40
|
-
d(t) {
|
|
41
|
-
t && j(e), Y(r, t);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function se(l) {
|
|
46
|
-
let s, e = [], r = new oe(), f, t, i = l[0];
|
|
47
|
-
const m = (n) => n[13].id;
|
|
48
|
-
for (let n = 0; n < i.length; n += 1) {
|
|
49
|
-
let o = M(l, i, n), d = m(o);
|
|
50
|
-
r.set(d, e[n] = C(d, o));
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
c() {
|
|
54
|
-
s = W("div");
|
|
55
|
-
for (let n = 0; n < e.length; n += 1)
|
|
56
|
-
e[n].c();
|
|
57
|
-
q(s, "class", "room-labels-container svelte-9eg4zi"), A(() => l[6].call(s));
|
|
58
|
-
},
|
|
59
|
-
m(n, o) {
|
|
60
|
-
S(n, s, o);
|
|
61
|
-
for (let d = 0; d < e.length; d += 1)
|
|
62
|
-
e[d].m(s, null);
|
|
63
|
-
f = B(s, l[6].bind(s)), t = !0;
|
|
64
|
-
},
|
|
65
|
-
p(n, [o]) {
|
|
66
|
-
o & 3 && (i = n[0], Z(), e = Q(e, o, m, 1, n, i, r, s, $, C, null, M), E());
|
|
67
|
-
},
|
|
68
|
-
i(n) {
|
|
69
|
-
if (!t) {
|
|
70
|
-
for (let o = 0; o < i.length; o += 1)
|
|
71
|
-
D(e[o]);
|
|
72
|
-
t = !0;
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
o(n) {
|
|
76
|
-
for (let o = 0; o < e.length; o += 1)
|
|
77
|
-
R(e[o]);
|
|
78
|
-
t = !1;
|
|
79
|
-
},
|
|
80
|
-
d(n) {
|
|
81
|
-
n && j(s);
|
|
82
|
-
for (let o = 0; o < e.length; o += 1)
|
|
83
|
-
e[o].d();
|
|
84
|
-
f();
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function re(l, s, e) {
|
|
89
|
-
let r;
|
|
90
|
-
var f;
|
|
91
|
-
let { five: t } = s, { roomLabels: i } = s, m, n, o = (f = t.model.shownFloor) !== null && f !== void 0 ? f : null;
|
|
92
|
-
function d(a) {
|
|
93
|
-
if (!(o === null || a.floorIndex === o))
|
|
94
|
-
return !1;
|
|
95
|
-
const g = new ee(), u = t.camera.position.clone(), h = new w(a.position.x, a.position.y, a.position.z), b = h.distanceTo(u);
|
|
96
|
-
g.set(u.clone(), h.clone().sub(u).normalize());
|
|
97
|
-
const [c] = t.model.intersectRaycaster(g);
|
|
98
|
-
return !(c && c.distance + 1 < b);
|
|
99
|
-
}
|
|
100
|
-
function O(a, _) {
|
|
101
|
-
const u = new w(a.position.x, a.position.y, a.position.z).clone().project(t.camera), h = Math.ceil((u.x + 1) / 2 * _.x), b = Math.ceil((-u.y + 1) / 2 * _.y);
|
|
102
|
-
return `translate(${h}px, ${b}px)`;
|
|
103
|
-
}
|
|
104
|
-
function z(a) {
|
|
105
|
-
const { rendererSize: _, shownFloor: g } = a, u = /* @__PURE__ */ new Map();
|
|
106
|
-
function h(c) {
|
|
107
|
-
const p = u.get(c.id);
|
|
108
|
-
if (p)
|
|
109
|
-
return p;
|
|
110
|
-
const { x: v, y: L, z: I } = c.position, y = new w(v, L, I).clone().distanceTo(t.camera.position);
|
|
111
|
-
return u.set(c.id, y), y;
|
|
112
|
-
}
|
|
113
|
-
return i.map((c) => {
|
|
114
|
-
const p = d(c), v = p ? O(c, _) : c.transform, L = h(c), y = i.filter((x) => x.visible && h(x) < L).length * 10;
|
|
115
|
-
return Object.assign(Object.assign({}, c), { visible: p, transform: v, zIndex: y });
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function k() {
|
|
119
|
-
e(0, i = z({ rendererSize: r, shownFloor: o }));
|
|
120
|
-
}
|
|
121
|
-
function F(a) {
|
|
122
|
-
e(4, o = a);
|
|
123
|
-
}
|
|
124
|
-
t.on("cameraUpdate", k), t.on("modelShownFloorChange", F), G(() => {
|
|
125
|
-
t.off("cameraUpdate", k), t.off("modelShownFloorChange", F);
|
|
126
|
-
});
|
|
127
|
-
function T() {
|
|
128
|
-
m = this.clientWidth, n = this.clientHeight, e(2, m), e(3, n);
|
|
129
|
-
}
|
|
130
|
-
return l.$$set = (a) => {
|
|
131
|
-
"five" in a && e(1, t = a.five), "roomLabels" in a && e(0, i = a.roomLabels);
|
|
132
|
-
}, l.$$.update = () => {
|
|
133
|
-
l.$$.dirty & 12 && e(5, r = { x: m, y: n }), l.$$.dirty & 48 && e(0, i = z({ rendererSize: r, shownFloor: o }));
|
|
134
|
-
}, [
|
|
135
|
-
i,
|
|
136
|
-
t,
|
|
137
|
-
m,
|
|
138
|
-
n,
|
|
139
|
-
o,
|
|
140
|
-
r,
|
|
141
|
-
T
|
|
142
|
-
];
|
|
143
|
-
}
|
|
144
|
-
class fe extends U {
|
|
145
|
-
constructor(s) {
|
|
146
|
-
super(), H(this, s, re, se, P, { five: 1, roomLabels: 0 }, ne);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
export {
|
|
150
|
-
fe as default
|
|
151
|
-
};
|
|
1
|
+
"use strict";var U=Object.defineProperty,j=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?U(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,D=(o,t)=>{for(var e in t||(t={}))O.call(t,e)&&C(o,e,t[e]);if(q)for(var e of q(t))P.call(t,e)&&C(o,e,t[e]);return o},S=(o,t)=>j(o,E(t));const r=require("svelte/internal"),W=require("svelte"),v=require("three"),A=require("./RoomLabelItem.js"),{Map:B}=r.globals;function G(o){r.append_styles(o,"svelte-9eg4zi",".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}")}function T(o,t,e){const c=o.slice();return c[12]=t[e],c}function V(o,t){let e,c,l;return c=new A.RoomLabelItem({props:{roomLabel:t[12],five:t[1]}}),{key:o,first:null,c(){e=r.empty(),r.create_component(c.$$.fragment),this.first=e},m(i,f){r.insert(i,e,f),r.mount_component(c,i,f),l=!0},p(i,f){t=i;const m={};f&1&&(m.roomLabel=t[12]),f&2&&(m.five=t[1]),c.$set(m)},i(i){l||(r.transition_in(c.$$.fragment,i),l=!0)},o(i){r.transition_out(c.$$.fragment,i),l=!1},d(i){i&&r.detach(e),r.destroy_component(c,i)}}}function J(o){let t,e=[],c=new B,l,i,f=o[0];const m=n=>n[12].id;for(let n=0;n<f.length;n+=1){let s=T(o,f,n),h=m(s);c.set(h,e[n]=V(h,s))}return{c(){t=r.element("div");for(let n=0;n<e.length;n+=1)e[n].c();r.attr(t,"class","room-labels-container svelte-9eg4zi"),r.add_render_callback(()=>o[6].call(t))},m(n,s){r.insert(n,t,s);for(let h=0;h<e.length;h+=1)e[h].m(t,null);l=r.add_resize_listener(t,o[6].bind(t)),i=!0},p(n,[s]){s&3&&(f=n[0],r.group_outros(),e=r.update_keyed_each(e,s,m,1,n,f,c,t,r.outro_and_destroy_block,V,null,T),r.check_outros())},i(n){if(!i){for(let s=0;s<f.length;s+=1)r.transition_in(e[s]);i=!0}},o(n){for(let s=0;s<e.length;s+=1)r.transition_out(e[s]);i=!1},d(n){n&&r.detach(t);for(let s=0;s<e.length;s+=1)e[s].d();l()}}}function K(o,t,e){var R;let c,{five:l}=t,{roomLabels:i}=t,f,m,n=(R=l.model.shownFloor)!=null?R:null;function s(a){if(!(n===null||a.floorIndex===n))return!1;const g=new v.Raycaster,d=l.camera.position.clone(),_=new v.Vector3(a.position.x,a.position.y,a.position.z),y=_.distanceTo(d);g.set(d.clone(),_.clone().sub(d).normalize());const[u]=l.model.intersectRaycaster(g);return!(u&&u.distance+1<y)}function h(a,p){const d=new v.Vector3(a.position.x,a.position.y,a.position.z).clone().project(l.camera),_=Math.ceil((d.x+1)/2*p.x),y=Math.ceil((-d.y+1)/2*p.y);return`translate(${_}px, ${y}px)`}function z(a){const{rendererSize:p,shownFloor:g}=a,d=new Map;function _(u){const b=d.get(u.id);if(b)return b;const{x:w,y:I,z:M}=u.position,L=new v.Vector3(w,I,M).clone().distanceTo(l.camera.position);return d.set(u.id,L),L}return i.map(u=>{const b=s(u),w=b?h(u,p):u.transform,I=_(u),L=i.filter(x=>x.visible&&_(x)<I).length*10;return S(D({},u),{visible:b,transform:w,zIndex:L})})}function F(){e(0,i=z({rendererSize:c,shownFloor:n}))}function k(a){e(4,n=a)}l.on("cameraUpdate",F),l.on("modelShownFloorChange",k),W.onDestroy(()=>{l.off("cameraUpdate",F),l.off("modelShownFloorChange",k)});function H(){f=this.clientWidth,m=this.clientHeight,e(2,f),e(3,m)}return o.$$set=a=>{"five"in a&&e(1,l=a.five),"roomLabels"in a&&e(0,i=a.roomLabels)},o.$$.update=()=>{o.$$.dirty&12&&e(5,c={x:f,y:m}),o.$$.dirty&48&&e(0,i=z({rendererSize:c,shownFloor:n}))},[i,l,f,m,n,c,H]}class N extends r.SvelteComponent{constructor(t){super(),r.init(this,t,K,J,r.safe_not_equal,{five:1,roomLabels:0},G)}}exports.RoomLabelItems=N;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "./RoomLabelItems.js";
|
|
3
|
-
import "../index.164f1850.js";
|
|
4
|
-
import "three";
|
|
5
|
-
import "./RoomLabelItem.js";
|
|
6
|
-
import "./Assets/roomLabelBg.js";
|
|
7
|
-
import "./utils/parseData.js";
|
|
8
|
-
const p = (o) => new e(o), d = {
|
|
9
|
-
name: "ModelRoomLabelPlugin",
|
|
10
|
-
version: 0
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
p as ModelRoomLabelPlugin,
|
|
14
|
-
p as default,
|
|
15
|
-
d as modelRoomLabelPluginServerParams
|
|
16
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./Controller.js");require("./RoomLabelItems.js");require("svelte/internal");require("svelte");require("three");require("./RoomLabelItem.js");require("./Assets/roomLabelBg.js");require("./utils/parseData.js");const e=o=>new r.ModelRoomLabelController(o),l={name:"ModelRoomLabelPlugin",version:0};exports.ModelRoomLabelPlugin=e;exports.default=e;exports.modelRoomLabelPluginServerParams=l;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
function
|
|
2
|
-
return e.model_room_labels.map(({ id: o, pano_index: a, floor_index: l, name: n, position: r, longitude: d }) => ({
|
|
3
|
-
id: o,
|
|
4
|
-
name: n,
|
|
5
|
-
position: r,
|
|
6
|
-
longitude: d,
|
|
7
|
-
panoIndex: a,
|
|
8
|
-
floorIndex: l,
|
|
9
|
-
zIndex: 0,
|
|
10
|
-
visible: !1,
|
|
11
|
-
transform: ""
|
|
12
|
-
}));
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
m as parseModelRoomLabelPluginData
|
|
16
|
-
};
|
|
1
|
+
"use strict";function t(e){return e.model_room_labels.map(({id:o,pano_index:a,floor_index:l,name:n,position:r,longitude:s})=>({id:o,name:n,position:r,longitude:s,panoIndex:a,floorIndex:l,zIndex:0,visible:!1,transform:""}))}exports.parseModelRoomLabelPluginData=t;
|
|
@@ -1,157 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { parseModelTVVideoPoints as z } from "./utils/parseData.js";
|
|
3
|
-
import { CSS3DRenderPlugin as I } from "../CSS3DRenderPlugin/index.js";
|
|
4
|
-
import "./typings.js";
|
|
5
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
6
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
7
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
8
|
-
import "../shared-utils/Subscribe.js";
|
|
9
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
11
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
13
|
-
const q = (s, { videoElement: E }) => {
|
|
14
|
-
const t = {
|
|
15
|
-
videoMeshes: [],
|
|
16
|
-
videoTextureEnabled: !1,
|
|
17
|
-
videoSource: "",
|
|
18
|
-
rectPoints: [],
|
|
19
|
-
enabled: !1,
|
|
20
|
-
videoElement: E
|
|
21
|
-
}, f = I(s), y = /* @__PURE__ */ new Map(), M = (e) => {
|
|
22
|
-
t.videoTexture && (t.videoTexture.image.muted = e);
|
|
23
|
-
}, A = () => t.videoTexture ? t.videoTexture.image.muted : !0, T = () => {
|
|
24
|
-
if (t.enabled || !t.videoTexture)
|
|
25
|
-
return;
|
|
26
|
-
t.enabled = !0, t.videoMeshes = R(), t.videoMeshes.forEach((n) => s.scene.add(n));
|
|
27
|
-
const e = () => {
|
|
28
|
-
if (!t.videoTexture)
|
|
29
|
-
return;
|
|
30
|
-
const n = () => {
|
|
31
|
-
var i;
|
|
32
|
-
!t.videoTexture || ((i = t.videoTexture) == null || i.image.removeEventListener("timeupdate", n), t.videoTextureEnabled = !0, t.videoMeshes.forEach((o) => {
|
|
33
|
-
o.material.map !== t.videoTexture && (o.material.map = t.videoTexture);
|
|
34
|
-
}), s.needsRender = !0);
|
|
35
|
-
};
|
|
36
|
-
t.videoTexture.image.addEventListener("timeupdate", n), t.videoTexture && t.videoMeshes.length && (t.videoTexture.image.play(), t.videoTexture.image.onplay = () => {
|
|
37
|
-
f.hide();
|
|
38
|
-
}, t.videoTexture.image.onpause = () => {
|
|
39
|
-
f.show();
|
|
40
|
-
}, t.videoTexture.image.onclick = () => {
|
|
41
|
-
t.videoTexture.image.muted = !1, t.videoTexture.image.play();
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
if (s.model.loaded)
|
|
45
|
-
e();
|
|
46
|
-
else
|
|
47
|
-
return s.once("modelLoaded", () => e());
|
|
48
|
-
}, g = () => {
|
|
49
|
-
!t.enabled || (t.enabled = !1, t.videoMeshes.forEach((e) => {
|
|
50
|
-
e.geometry.dispose(), e.material.dispose(), s.scene.remove(e), t.videoTexture && t.videoTexture.image.pause();
|
|
51
|
-
}), t.videoMeshes = [], s.needsRender = !0);
|
|
52
|
-
}, R = () => t.rectPoints.map((e, n) => {
|
|
53
|
-
const i = new d.BufferGeometry(), o = 128, a = [];
|
|
54
|
-
a.push(...e[0].toArray());
|
|
55
|
-
for (let r = 1; r < o; r++)
|
|
56
|
-
a.push(
|
|
57
|
-
e[0].x + (e[1].x - e[0].x) * r / o,
|
|
58
|
-
e[0].y + (e[1].y - e[0].y) * r / o,
|
|
59
|
-
e[0].z + (e[1].z - e[0].z) * r / o
|
|
60
|
-
);
|
|
61
|
-
a.push(...e[1].toArray()), a.push(...e[2].toArray());
|
|
62
|
-
for (let r = 1; r < o; r++)
|
|
63
|
-
a.push(
|
|
64
|
-
e[2].x + (e[3].x - e[2].x) * r / o,
|
|
65
|
-
e[2].y + (e[3].y - e[2].y) * r / o,
|
|
66
|
-
e[2].z + (e[3].z - e[2].z) * r / o
|
|
67
|
-
);
|
|
68
|
-
a.push(...e[3].toArray());
|
|
69
|
-
const c = [];
|
|
70
|
-
c.push(0, 1);
|
|
71
|
-
for (let r = 1; r < o; r++)
|
|
72
|
-
c.push(0, 1 - r / o);
|
|
73
|
-
c.push(0, 0), c.push(1, 0);
|
|
74
|
-
for (let r = 1; r < o; r++)
|
|
75
|
-
c.push(1, r / o);
|
|
76
|
-
c.push(1, 1);
|
|
77
|
-
const u = [];
|
|
78
|
-
for (let r = 0; r < o; r++)
|
|
79
|
-
u.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
|
|
80
|
-
i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
81
|
-
const l = new d.AxesHelper(10);
|
|
82
|
-
s.scene.add(l);
|
|
83
|
-
const m = new d.MeshBasicMaterial({
|
|
84
|
-
map: t.videoTextureEnabled ? t.videoTexture : t.imageTexture,
|
|
85
|
-
side: d.DoubleSide
|
|
86
|
-
}), x = new d.Mesh(i, m);
|
|
87
|
-
x.renderOrder = 1, x.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
|
|
88
|
-
const S = [e[1], e[2], e[3], e[0]], p = f.create3DDomContainer(S);
|
|
89
|
-
if (p != null && p.container) {
|
|
90
|
-
const r = document.createElement("div");
|
|
91
|
-
r.classList.add("play-icon"), r.style.width = "100%", r.style.height = "100%", r.style.display = "flex", r.style.justifyContent = "center", r.style.alignItems = "center", r.style.pointerEvents = "none", p.container.appendChild(r);
|
|
92
|
-
const h = document.createElement("img");
|
|
93
|
-
h.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", h.style.width = "200px", h.style.pointerEvents = "auto", h.onclick = () => {
|
|
94
|
-
t.videoTexture.image.muted = !1, t.videoTexture.image.play();
|
|
95
|
-
}, r.appendChild(h), y.set(x, p);
|
|
96
|
-
}
|
|
97
|
-
return x;
|
|
98
|
-
}), F = (e) => {
|
|
99
|
-
const n = new d.TextureLoader().load(e);
|
|
100
|
-
return n.minFilter = d.LinearFilter, n.magFilter = d.LinearFilter, n.format = d.RGBFormat, n;
|
|
101
|
-
}, L = (e, n) => new Promise((i, o) => {
|
|
102
|
-
const a = new XMLHttpRequest();
|
|
103
|
-
a.onreadystatechange = () => {
|
|
104
|
-
if (a.readyState == 4)
|
|
105
|
-
if (a.status == 200) {
|
|
106
|
-
const c = window.URL || window.webkitURL;
|
|
107
|
-
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
|
|
108
|
-
const u = new d.VideoTexture(n);
|
|
109
|
-
u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.format = d.RGBFormat, i(Object.assign(u, { videoSource: e }));
|
|
110
|
-
} else
|
|
111
|
-
o(new Error("Video download Error: " + a.status));
|
|
112
|
-
}, a.onerror = (c) => o(c), a.open("GET", e), a.responseType = "blob", a.send();
|
|
113
|
-
}), P = async (e, n) => {
|
|
114
|
-
const { video_src: i, video_poster_src: o, points: a } = e;
|
|
115
|
-
t.videoSource = i, t.rectPoints = z(a).map((c) => c.map(({ x: u, y: l, z: m }) => new d.Vector3(u, l, m))), t.imageTexture = F(o), n && (t.videoElement = n), t.videoTexture = await L(t.videoSource, t.videoElement), t.enabled = !!e.enable, t.enabled && T();
|
|
116
|
-
}, v = (e) => {
|
|
117
|
-
if (!t.enabled)
|
|
118
|
-
return;
|
|
119
|
-
const n = t.videoMeshes;
|
|
120
|
-
if (!(!n || e.intersectObjects(n).length === 0))
|
|
121
|
-
return t.videoTexture && (t.videoTexture.image.paused || t.videoTexture.image.pause()), !1;
|
|
122
|
-
}, b = (e) => {
|
|
123
|
-
e === "Floorplan" ? f.hide() : f.show();
|
|
124
|
-
}, w = () => {
|
|
125
|
-
if (!t.enabled)
|
|
126
|
-
return;
|
|
127
|
-
const e = s.camera.position;
|
|
128
|
-
if (y.forEach((n, i) => {
|
|
129
|
-
const o = n.css3DObject.position.clone(), a = o.clone().sub(e).normalize(), c = new d.Raycaster(e, a), u = s.model.intersectRaycaster(c)[0], l = o.distanceTo(e), m = 0.01;
|
|
130
|
-
u && u.distance + m < l ? n.hide() : n.show();
|
|
131
|
-
}), !A()) {
|
|
132
|
-
const n = t.rectPoints.find((i) => {
|
|
133
|
-
const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
|
|
134
|
-
return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
|
|
135
|
-
const c = a.distanceTo(e), u = new d.Raycaster(e, a.clone().sub(e).normalize()), l = s.model.intersectRaycaster(u)[0], m = 0.01;
|
|
136
|
-
return !(l && l.distance + m < c);
|
|
137
|
-
}).length >= 2;
|
|
138
|
-
});
|
|
139
|
-
(!n || n.length === 0) && M(!0);
|
|
140
|
-
}
|
|
141
|
-
}, V = () => {
|
|
142
|
-
g(), t.videoTexture = void 0, s.off("modeChange", b), s.off("wantsTapGesture", v), s.off("panoArrived", w), s.off("renderFrame", () => {
|
|
143
|
-
t.videoMeshes.forEach((e) => {
|
|
144
|
-
e && (e.needsRender = !0);
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
return s.on("modeChange", b), s.on("wantsTapGesture", v), s.on("panoArrived", w), s.on("renderFrame", () => {
|
|
149
|
-
t.videoMeshes.forEach((e) => {
|
|
150
|
-
e && (e.needsRender = !0);
|
|
151
|
-
});
|
|
152
|
-
}), { enable: T, disable: g, load: P, dispose: V, state: t, css3DRenderPlugin: f };
|
|
153
|
-
};
|
|
154
|
-
export {
|
|
155
|
-
q as ModelTVVideoPlugin,
|
|
156
|
-
q as default
|
|
157
|
-
};
|
|
1
|
+
"use strict";var P=(o,g,e)=>new Promise((l,x)=>{var w=m=>{try{y(e.next(m))}catch(p){x(p)}},M=m=>{try{y(e.throw(m))}catch(p){x(p)}},y=m=>m.done?l(m.value):Promise.resolve(m.value).then(w,M);y((e=e.apply(o,g)).next())});const O=require("three"),_=require("./utils/parseData.js"),z=require("../CSS3DRenderPlugin/index.js");function D(o){if(o&&o.__esModule)return o;const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(g,e,l.get?l:{enumerable:!0,get:()=>o[e]})}}return g.default=o,Object.freeze(g)}const d=D(O),C=(o,{videoElement:g})=>{const e={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:g},l=z.CSS3DRenderPlugin(o),x=new Map,w=t=>{e.videoTexture&&(e.videoTexture.image.muted=t)},M=()=>e.videoTexture?e.videoTexture.image.muted:!0,y=()=>{if(e.enabled||!e.videoTexture)return;e.enabled=!0,e.videoMeshes=p(),e.videoMeshes.forEach(n=>o.scene.add(n));const t=()=>{if(!e.videoTexture)return;const n=()=>{var i;!e.videoTexture||((i=e.videoTexture)==null||i.image.removeEventListener("timeupdate",n),e.videoTextureEnabled=!0,e.videoMeshes.forEach(a=>{a.material.map!==e.videoTexture&&(a.material.map=e.videoTexture)}),o.needsRender=!0)};e.videoTexture.image.addEventListener("timeupdate",n),e.videoTexture&&e.videoMeshes.length&&(e.videoTexture.image.play(),e.videoTexture.image.onplay=()=>{l.hide()},e.videoTexture.image.onpause=()=>{l.show()},e.videoTexture.image.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()})};if(o.model.loaded)t();else return o.once("modelLoaded",()=>t())},m=()=>{!e.enabled||(e.enabled=!1,e.videoMeshes.forEach(t=>{t.geometry.dispose(),t.material.dispose(),o.scene.remove(t),e.videoTexture&&e.videoTexture.image.pause()}),e.videoMeshes=[],o.needsRender=!0)},p=()=>e.rectPoints.map((t,n)=>{const i=new d.BufferGeometry,a=128,s=[];s.push(...t[0].toArray());for(let r=1;r<a;r++)s.push(t[0].x+(t[1].x-t[0].x)*r/a,t[0].y+(t[1].y-t[0].y)*r/a,t[0].z+(t[1].z-t[0].z)*r/a);s.push(...t[1].toArray()),s.push(...t[2].toArray());for(let r=1;r<a;r++)s.push(t[2].x+(t[3].x-t[2].x)*r/a,t[2].y+(t[3].y-t[2].y)*r/a,t[2].z+(t[3].z-t[2].z)*r/a);s.push(...t[3].toArray());const c=[];c.push(0,1);for(let r=1;r<a;r++)c.push(0,1-r/a);c.push(0,0),c.push(1,0);for(let r=1;r<a;r++)c.push(1,r/a);c.push(1,1);const u=[];for(let r=0;r<a;r++)u.push(r,r+1,a*2-r,r,a*2-r,a*2+1-r);i.setAttribute("position",new d.BufferAttribute(new Float32Array(s),3)),i.setAttribute("uv",new d.BufferAttribute(new Float32Array(c),2)),i.setIndex(new d.BufferAttribute(new Uint32Array(u),1));const f=new d.AxesHelper(10);o.scene.add(f);const h=new d.MeshBasicMaterial({map:e.videoTextureEnabled?e.videoTexture:e.imageTexture,side:d.DoubleSide}),b=new d.Mesh(i,h);b.renderOrder=1,b.name=`ModelTVVideoPlugin-${n}-${performance.now()}`;const L=[t[1],t[2],t[3],t[0]],T=l.create3DDomContainer(L);if(T!=null&&T.container){const r=document.createElement("div");r.classList.add("play-icon"),r.style.width="100%",r.style.height="100%",r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.style.pointerEvents="none",T.container.appendChild(r);const v=document.createElement("img");v.src="//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png",v.style.width="200px",v.style.pointerEvents="auto",v.onclick=()=>{e.videoTexture.image.muted=!1,e.videoTexture.image.play()},r.appendChild(v),x.set(b,T)}return b}),F=t=>{const n=new d.TextureLoader().load(t);return n.minFilter=d.LinearFilter,n.magFilter=d.LinearFilter,n.format=d.RGBFormat,n},S=(t,n)=>new Promise((i,a)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(s.readyState==4)if(s.status==200){const c=window.URL||window.webkitURL;n=n||document.createElement("video"),n.crossOrigin="anonymous",n.muted=!0,n.loop=!0,n.playsInline=!0,n.src=c.createObjectURL(s.response);const u=new d.VideoTexture(n);u.minFilter=d.LinearFilter,u.magFilter=d.LinearFilter,u.format=d.RGBFormat,i(Object.assign(u,{videoSource:t}))}else a(new Error("Video download Error: "+s.status))},s.onerror=c=>a(c),s.open("GET",t),s.responseType="blob",s.send()}),V=(t,n)=>P(exports,null,function*(){const{video_src:i,video_poster_src:a,points:s}=t;e.videoSource=i,e.rectPoints=_.parseModelTVVideoPoints(s).map(c=>c.map(({x:u,y:f,z:h})=>new d.Vector3(u,f,h))),e.imageTexture=F(a),n&&(e.videoElement=n),e.videoTexture=yield S(e.videoSource,e.videoElement),e.enabled=!!t.enable,e.enabled&&y()}),E=t=>{if(!e.enabled)return;const n=e.videoMeshes;if(!(!n||t.intersectObjects(n).length===0))return e.videoTexture&&(e.videoTexture.image.paused||e.videoTexture.image.pause()),!1},R=t=>{t==="Floorplan"?l.hide():l.show()},A=()=>{if(!e.enabled)return;const t=o.camera.position;if(x.forEach((n,i)=>{const a=n.css3DObject.position.clone(),s=a.clone().sub(t).normalize(),c=new d.Raycaster(t,s),u=o.model.intersectRaycaster(c)[0],f=a.distanceTo(t),h=.01;u&&u.distance+h<f?n.hide():n.show()}),!M()){const n=e.rectPoints.find(i=>{const a=i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);return i.map(s=>s.clone().add(a).divideScalar(2)).filter(s=>{const c=s.distanceTo(t),u=new d.Raycaster(t,s.clone().sub(t).normalize()),f=o.model.intersectRaycaster(u)[0],h=.01;return!(f&&f.distance+h<c)}).length>=2});(!n||n.length===0)&&w(!0)}},j=()=>{m(),e.videoTexture=void 0,o.off("modeChange",R),o.off("wantsTapGesture",E),o.off("panoArrived",A),o.off("renderFrame",()=>{e.videoMeshes.forEach(t=>{t&&(t.needsRender=!0)})})};return o.on("modeChange",R),o.on("wantsTapGesture",E),o.on("panoArrived",A),o.on("renderFrame",()=>{e.videoMeshes.forEach(t=>{t&&(t.needsRender=!0)})}),{enable:y,disable:m,load:V,dispose:j,state:e,css3DRenderPlugin:l}};exports.ModelTVVideoPlugin=C;
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ModelTVVideoPlugin as M, ModelTVVideoPlugin as P } from "./Plugin.js";
|
|
3
|
-
import { DIRECTION as x } from "./typings.js";
|
|
4
|
-
import "three";
|
|
5
|
-
import "./utils/parseData.js";
|
|
6
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
7
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
8
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
9
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
-
import "../shared-utils/Subscribe.js";
|
|
11
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
13
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
15
|
-
export {
|
|
16
|
-
x as DIRECTION,
|
|
17
|
-
M as ModelTVVideoPlugin,
|
|
18
|
-
P as default
|
|
19
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Plugin.js"),r=require("./typings.js");require("three");require("./utils/parseData.js");require("../CSS3DRenderPlugin/index.js");require("../CSS3DRenderPlugin/Controller.js");require("../CSS3DRenderPlugin/CSS3DRender.js");require("three/examples/jsm/renderers/CSS3DRenderer");require("../shared-utils/Subscribe.js");require("../CSS3DRenderPlugin/utils/evenNumber.js");require("../CSS3DRenderPlugin/utils/positionToVector3.js");require("../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js");require("../CSS3DRenderPlugin/utils/centerPoint.js");exports.ModelTVVideoPlugin=e.ModelTVVideoPlugin;exports.default=e.ModelTVVideoPlugin;exports.DIRECTION=r.DIRECTION;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
export {
|
|
3
|
-
o as DIRECTION
|
|
4
|
-
};
|
|
1
|
+
"use strict";var T=(t=>(t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t))(T||{});exports.DIRECTION=T;
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function f(r) {
|
|
3
|
-
if (r.length === 0)
|
|
4
|
-
return [];
|
|
5
|
-
if (Array.isArray(r[0]))
|
|
6
|
-
return r;
|
|
7
|
-
let O = [];
|
|
8
|
-
return r.forEach((T) => {
|
|
9
|
-
const n = [
|
|
10
|
-
T[e.TOP_LEFT],
|
|
11
|
-
T[e.BOTTOM_LEFT],
|
|
12
|
-
T[e.BOTTOM_RIGHT],
|
|
13
|
-
T[e.TOP_RIGHT]
|
|
14
|
-
];
|
|
15
|
-
O.push(n);
|
|
16
|
-
}), O;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
f as parseModelTVVideoPoints
|
|
20
|
-
};
|
|
1
|
+
"use strict";const r=require("../typings.js");function i(e){if(e.length===0)return[];if(Array.isArray(e[0]))return e;let n=[];return e.forEach(T=>{const s=[T[r.DIRECTION.TOP_LEFT],T[r.DIRECTION.BOTTOM_LEFT],T[r.DIRECTION.BOTTOM_RIGHT],T[r.DIRECTION.TOP_RIGHT]];n.push(s)}),n}exports.parseModelTVVideoPoints=i;
|
|
@@ -1,96 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as r from "three";
|
|
3
|
-
const A = (a, p) => {
|
|
4
|
-
let g = !0, o = null;
|
|
5
|
-
const l = { ...{
|
|
6
|
-
lookAtCurrentCamera: !1,
|
|
7
|
-
lockedPanoIndex: null,
|
|
8
|
-
lockedLatitude: null,
|
|
9
|
-
lockedLongitude: null
|
|
10
|
-
}, ...p == null ? void 0 : p.config }, d = new r.Scene(), c = new D(60);
|
|
11
|
-
let u = new r.Object3D(), h, w;
|
|
12
|
-
{
|
|
13
|
-
const e = new r.DirectionalLight(16777215, 0.5);
|
|
14
|
-
e.position.copy(new r.Vector3(1, 1, 1)), d.add(e);
|
|
15
|
-
}
|
|
16
|
-
{
|
|
17
|
-
const e = new r.DirectionalLight(16777215, 0.3);
|
|
18
|
-
d.add(e);
|
|
19
|
-
}
|
|
20
|
-
{
|
|
21
|
-
const e = new r.AmbientLight(16777215, 0.3);
|
|
22
|
-
d.add(e);
|
|
23
|
-
}
|
|
24
|
-
d.add(u);
|
|
25
|
-
const b = () => {
|
|
26
|
-
if (!!a.renderer)
|
|
27
|
-
return o || (o = new r.WebGLRenderer({ antialias: !1, alpha: !0 }), o.setPixelRatio(a.renderer.getPixelRatio()), o.outputEncoding = r.sRGBEncoding, o.setClearColor(1579548, 0), o.autoClear = !0), o;
|
|
28
|
-
}, y = () => {
|
|
29
|
-
u.traverse((e) => {
|
|
30
|
-
e instanceof r.Mesh && [].concat(e.material).forEach((n) => n.dispose());
|
|
31
|
-
}), d.remove(u), u = new r.Object3D(), d.add(u), f();
|
|
32
|
-
}, x = () => {
|
|
33
|
-
h = L(a.model, c.fov, c.aspect), w = a.model.bounding.getCenter(new r.Vector3());
|
|
34
|
-
function e(n) {
|
|
35
|
-
const t = n.clone();
|
|
36
|
-
return t.uniforms.modelAlpha.value = 1, t.uniforms.map.value && (t.uniforms.map.value.needsUpdate = !0), t;
|
|
37
|
-
}
|
|
38
|
-
function s(n) {
|
|
39
|
-
if (n instanceof r.Mesh) {
|
|
40
|
-
const t = n.geometry, i = Array.isArray(n.material) ? n.material.map(e) : e(n.material);
|
|
41
|
-
return new r.Mesh(t, i);
|
|
42
|
-
} else if (n instanceof r.Group) {
|
|
43
|
-
const t = new r.Group();
|
|
44
|
-
return n.children.forEach((i) => t.add(s(i))), t;
|
|
45
|
-
} else {
|
|
46
|
-
const t = new r.Object3D();
|
|
47
|
-
return n.children.forEach((i) => t.add(s(i))), t;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
d.remove(u), u = s(a.model), d.add(u), f();
|
|
51
|
-
}, C = (e, s = {}) => {
|
|
52
|
-
const n = b();
|
|
53
|
-
if (!n)
|
|
54
|
-
return;
|
|
55
|
-
e.appendChild(n.domElement), M(s);
|
|
56
|
-
const t = window.getComputedStyle(e).position;
|
|
57
|
-
t !== "relative" && t !== "absolute" && t !== "fixed" && t !== "sticky" && (e.style.position = "relative");
|
|
58
|
-
}, M = (e = {}) => {
|
|
59
|
-
if (!o)
|
|
60
|
-
return;
|
|
61
|
-
const n = o.domElement.parentNode;
|
|
62
|
-
if (n != null && n.nodeName) {
|
|
63
|
-
const { width: t = n.offsetWidth, height: i = n.offsetHeight } = e;
|
|
64
|
-
o.setSize(t, i), c.aspect = t / i, c.updateProjectionMatrix();
|
|
65
|
-
}
|
|
66
|
-
f();
|
|
67
|
-
};
|
|
68
|
-
function L(e, s, n) {
|
|
69
|
-
const t = e.bounding, i = Math.pow(
|
|
70
|
-
Math.pow(t.max.x - t.min.x + 1, 2) + Math.pow(t.max.y - t.min.y + 1, 2) + Math.pow(t.max.z - t.min.z + 1, 2),
|
|
71
|
-
1 / 2
|
|
72
|
-
);
|
|
73
|
-
let m = i / 2 / Math.tan(Math.PI * s / 360);
|
|
74
|
-
return n < 1 && (m = m / n), isNaN(m) ? i : m;
|
|
75
|
-
}
|
|
76
|
-
function k(e) {
|
|
77
|
-
return a.work.observers[e].standingPosition.clone();
|
|
78
|
-
}
|
|
79
|
-
const f = () => {
|
|
80
|
-
if (!h || !w)
|
|
81
|
-
return;
|
|
82
|
-
const e = a.getPose();
|
|
83
|
-
e.fov = c.fov, e.offset = w, e.distance = h, typeof l.lockedLatitude == "number" && (e.latitude = l.lockedLatitude), typeof l.lockedLongitude == "number" && (e.longitude = l.lockedLongitude), typeof l.lockedPanoIndex == "number" && (e.offset = k(l.lockedPanoIndex)), l.lookAtCurrentCamera && (e.offset = a.camera.position.clone().setY(a.camera.position.y + 1)), c.setFromPose(e), g = !0;
|
|
84
|
-
}, P = () => {
|
|
85
|
-
g !== !0 || !o || !o.domElement.parentNode || o.domElement.parentNode.offsetWidth === 0 || (o.render(d, c), g = !1);
|
|
86
|
-
}, E = () => {
|
|
87
|
-
o && o.dispose(), o = null;
|
|
88
|
-
}, N = (e) => {
|
|
89
|
-
Object.assign(l, e), f();
|
|
90
|
-
};
|
|
91
|
-
return Object.assign(window, { camera: c }), a.on("modelLoaded", x), a.on("modelWillLoad", y), a.on("cameraDirectionUpdate", f), a.on("dispose", E), a.on("renderFrame", P), a.on("cameraPositionUpdate", f), { appendTo: C, refresh: M, changeConfigs: N };
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
A as ModelViewPlugin,
|
|
95
|
-
A as default
|
|
96
|
-
};
|
|
1
|
+
"use strict";var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var P=(t,a,i)=>a in t?R(t,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[a]=i,b=(t,a)=>{for(var i in a||(a={}))A.call(a,i)&&P(t,i,a[i]);if(y)for(var i of y(a))I.call(a,i)&&P(t,i,a[i]);return t};const S=require("@realsee/five"),T=require("three");function W(t){if(t&&t.__esModule)return t;const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(a,i,r.get?r:{enumerable:!0,get:()=>t[i]})}}return a.default=t,Object.freeze(a)}const s=W(T),_=(t,a)=>{let i=!0,r=null;const u=b(b({},{lookAtCurrentCamera:!1,lockedPanoIndex:null,lockedLatitude:null,lockedLongitude:null}),a==null?void 0:a.config),c=new s.Scene,f=new S.Camera(60);let m=new s.Object3D,h,w;{const e=new s.DirectionalLight(16777215,.5);e.position.copy(new s.Vector3(1,1,1)),c.add(e)}{const e=new s.DirectionalLight(16777215,.3);c.add(e)}{const e=new s.AmbientLight(16777215,.3);c.add(e)}c.add(m);const k=()=>{if(!!t.renderer)return r||(r=new s.WebGLRenderer({antialias:!1,alpha:!0}),r.setPixelRatio(t.renderer.getPixelRatio()),r.outputEncoding=s.sRGBEncoding,r.setClearColor(1579548,0),r.autoClear=!0),r},C=()=>{m.traverse(e=>{e instanceof s.Mesh&&[].concat(e.material).forEach(o=>o.dispose())}),c.remove(m),m=new s.Object3D,c.add(m),p()},L=()=>{h=E(t.model,f.fov,f.aspect),w=t.model.bounding.getCenter(new s.Vector3);function e(o){const n=o.clone();return n.uniforms.modelAlpha.value=1,n.uniforms.map.value&&(n.uniforms.map.value.needsUpdate=!0),n}function l(o){if(o instanceof s.Mesh){const n=o.geometry,d=Array.isArray(o.material)?o.material.map(e):e(o.material);return new s.Mesh(n,d)}else if(o instanceof s.Group){const n=new s.Group;return o.children.forEach(d=>n.add(l(d))),n}else{const n=new s.Object3D;return o.children.forEach(d=>n.add(l(d))),n}}c.remove(m),m=l(t.model),c.add(m),p()},x=(e,l={})=>{const o=k();if(!o)return;e.appendChild(o.domElement),M(l);const n=window.getComputedStyle(e).position;n!=="relative"&&n!=="absolute"&&n!=="fixed"&&n!=="sticky"&&(e.style.position="relative")},M=(e={})=>{if(!r)return;const o=r.domElement.parentNode;if(o!=null&&o.nodeName){const{width:n=o.offsetWidth,height:d=o.offsetHeight}=e;r.setSize(n,d),f.aspect=n/d,f.updateProjectionMatrix()}p()};function E(e,l,o){const n=e.bounding,d=Math.pow(Math.pow(n.max.x-n.min.x+1,2)+Math.pow(n.max.y-n.min.y+1,2)+Math.pow(n.max.z-n.min.z+1,2),1/2);let g=d/2/Math.tan(Math.PI*l/360);return o<1&&(g=g/o),isNaN(g)?d:g}function O(e){return t.work.observers[e].standingPosition.clone()}const p=()=>{if(!h||!w)return;const e=t.getPose();e.fov=f.fov,e.offset=w,e.distance=h,typeof u.lockedLatitude=="number"&&(e.latitude=u.lockedLatitude),typeof u.lockedLongitude=="number"&&(e.longitude=u.lockedLongitude),typeof u.lockedPanoIndex=="number"&&(e.offset=O(u.lockedPanoIndex)),u.lookAtCurrentCamera&&(e.offset=t.camera.position.clone().setY(t.camera.position.y+1)),f.setFromPose(e),i=!0},j=()=>{i!==!0||!r||!r.domElement.parentNode||r.domElement.parentNode.offsetWidth===0||(r.render(c,f),i=!1)},N=()=>{r&&r.dispose(),r=null},D=e=>{Object.assign(u,e),p()};return Object.assign(window,{camera:f}),t.on("modelLoaded",L),t.on("modelWillLoad",C),t.on("cameraDirectionUpdate",p),t.on("dispose",N),t.on("renderFrame",j),t.on("cameraPositionUpdate",p),{appendTo:x,refresh:M,changeConfigs:D}};exports.ModelViewPlugin=_;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ModelViewPlugin as t, ModelViewPlugin as d } from "./Plugin.js";
|
|
3
|
-
import "@realsee/five";
|
|
4
|
-
import "three";
|
|
5
|
-
export {
|
|
6
|
-
t as ModelViewPlugin,
|
|
7
|
-
d as default
|
|
8
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Plugin.js");require("@realsee/five");require("three");exports.ModelViewPlugin=e.ModelViewPlugin;exports.default=e.ModelViewPlugin;
|
|
@@ -43,7 +43,7 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
43
43
|
setState(state: Partial<Object3DHelperState>, options?: {
|
|
44
44
|
userAction?: boolean;
|
|
45
45
|
} & Record<string, any>): void;
|
|
46
|
-
getObject3DHelper(object3D: THREE.Object3D): Object3DHelper
|
|
46
|
+
getObject3DHelper(object3D: THREE.Object3D): Object3DHelper;
|
|
47
47
|
/**
|
|
48
48
|
* @description 添加 helper
|
|
49
49
|
* @param { THREE.Object3D } object3D 要添加helper的物体
|