@realsee/dnalogel 2.1.2-alpha.2 → 2.1.2-alpha.4
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/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/LinkType.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/ContentTypeMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/LineJson.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/OpenParameter.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/PointJson.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeyArray.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/esm/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
- package/esm/CSS3DRenderPlugin/CSS3DRender.js +327 -0
- package/esm/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/esm/CSS3DRenderPlugin/Controller.js +83 -0
- package/esm/CSS3DRenderPlugin/index.d.ts +5 -0
- package/esm/CSS3DRenderPlugin/index.js +14 -0
- package/esm/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/esm/CSS3DRenderPlugin/typing.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.js +10 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
- package/esm/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/esm/CSS3DRenderPlugin/utils/index.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.js +6 -0
- package/esm/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/esm/CSS3DRenderPlugin/utils/random.js +1 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.js +87 -0
- package/esm/CameraMovementPlugin/index.d.ts +5 -0
- package/esm/CameraMovementPlugin/index.js +16 -0
- package/esm/CameraMovementPlugin/typing.d.ts +68 -0
- package/esm/CameraMovementPlugin/typing.js +5 -0
- package/esm/CruisePlugin/Controller.d.ts +172 -0
- package/esm/CruisePlugin/Controller.js +484 -0
- package/esm/CruisePlugin/index.d.ts +6 -0
- package/esm/CruisePlugin/index.js +28 -0
- package/esm/CruisePlugin/typing.d.ts +134 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.js +8 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.js +12 -0
- package/esm/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/esm/CruisePlugin/utils/formatRad.js +7 -0
- package/esm/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/esm/CruisePlugin/utils/linerValue.js +7 -0
- package/esm/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/esm/CruisePlugin/utils/safeCall.js +28 -0
- package/esm/CruisePlugin/utils/sleep.d.ts +1 -0
- package/esm/CruisePlugin/utils/sleep.js +10 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.js +10 -0
- package/esm/GuideLinePlugin/Controller.d.ts +51 -0
- package/esm/GuideLinePlugin/Controller.js +143 -0
- package/esm/GuideLinePlugin/index.d.ts +5 -0
- package/esm/GuideLinePlugin/index.js +16 -0
- package/esm/GuideLinePlugin/typing.d.ts +34 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.js +13 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/esm/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/esm/ItemLabelPlugin/ItemLabelComponent.js +271 -0
- package/esm/ItemLabelPlugin/ItemLabelItem.js +134 -0
- package/esm/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/esm/ItemLabelPlugin/Plugin.js +81 -0
- package/esm/ItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.js +26 -0
- package/esm/ItemLabelPlugin/typings.d.ts +65 -0
- package/esm/ItemLabelPlugin/typings.js +4 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.js +4 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.js +10 -0
- package/esm/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/parseData.js +21 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.js +21 -0
- package/esm/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/esm/ModelChassisCompassPlugin/Plugin.js +70 -0
- package/esm/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/esm/ModelChassisCompassPlugin/index.js +10 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.js +77 -0
- package/esm/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/esm/ModelEntryDoorGuidePlugin/index.js +11 -0
- package/esm/ModelItemLabelPlugin/ItemLabelComponent.js +212 -0
- package/esm/ModelItemLabelPlugin/ItemLabelItem.js +43 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.js +79 -0
- package/esm/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/events.type.js +1 -0
- package/esm/ModelItemLabelPlugin/index.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/index.js +22 -0
- package/esm/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/esm/ModelItemLabelPlugin/typings.js +4 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.js +19 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -0
- package/esm/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/esm/ModelRoomLabelPlugin/Controller.js +60 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItem.js +45 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItems.js +162 -0
- package/esm/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/esm/ModelRoomLabelPlugin/index.js +17 -0
- package/esm/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.js +16 -0
- package/esm/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/esm/ModelTVVideoPlugin/Plugin.js +163 -0
- package/esm/ModelTVVideoPlugin/index.d.ts +5 -0
- package/esm/ModelTVVideoPlugin/index.js +19 -0
- package/esm/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/esm/ModelTVVideoPlugin/typings.js +4 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.js +20 -0
- package/esm/ModelViewPlugin/Plugin.d.ts +28 -0
- package/esm/ModelViewPlugin/Plugin.js +106 -0
- package/esm/ModelViewPlugin/index.d.ts +4 -0
- package/esm/ModelViewPlugin/index.js +8 -0
- package/esm/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/esm/Object3DHelperPlugin/Controller.js +145 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.js +31 -0
- package/esm/Object3DHelperPlugin/index.d.ts +6 -0
- package/esm/Object3DHelperPlugin/index.js +42 -0
- package/esm/Object3DHelperPlugin/typings.d.ts +24 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -0
- package/esm/PanoCompassPlugin/Controller.d.ts +84 -0
- package/esm/PanoCompassPlugin/Controller.js +224 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.js +24 -0
- package/esm/PanoCompassPlugin/index.d.ts +7 -0
- package/esm/PanoCompassPlugin/index.js +25 -0
- package/esm/PanoCompassPlugin/typings.d.ts +57 -0
- package/esm/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/esm/PanoCursorRaycasterPlugin/index.js +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.js +59 -0
- package/esm/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/esm/PanoDoorLabelPlugin/Controller.js +219 -0
- package/esm/PanoDoorLabelPlugin/DoorLabelItem.js +65 -0
- package/esm/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/esm/PanoDoorLabelPlugin/index.js +15 -0
- package/esm/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/esm/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/esm/PanoDoorLabelPlugin/utils.js +23 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.js +53 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.js +102 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.js +125 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.js +90 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.js +154 -0
- package/esm/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/esm/PanoMeasurePlugin/Controller/index.js +140 -0
- package/esm/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/esm/PanoMeasurePlugin/Model/index.js +92 -0
- package/esm/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/esm/PanoMeasurePlugin/Model/line.js +56 -0
- package/esm/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/point.js +30 -0
- package/esm/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/polyline.js +47 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +14 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.js +68 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.js +28 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.js +41 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.js +129 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.js +48 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +82 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.js +62 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.js +66 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -0
- package/esm/PanoMeasurePlugin/index.d.ts +10 -0
- package/esm/PanoMeasurePlugin/index.js +61 -0
- package/esm/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -0
- package/esm/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/constants.js +36 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.js +62 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.js +15 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.js +4 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -0
- package/esm/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/line.js +17 -0
- package/esm/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/math.js +12 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.js +46 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.js +8 -0
- package/esm/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/esm/PanoRulerPlugin/Plugin.js +268 -0
- package/esm/PanoRulerPlugin/index.d.ts +5 -0
- package/esm/PanoRulerPlugin/index.js +11 -0
- package/esm/PanoRulerPlugin/style.d.ts +2 -0
- package/esm/PanoRulerPlugin/style.js +90 -0
- package/esm/PanoRulerPlugin/typings.d.ts +21 -0
- package/esm/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/esm/PanoRulerProPlugin/Controller.js +93 -0
- package/esm/PanoRulerProPlugin/RulerItem.js +128 -0
- package/esm/PanoRulerProPlugin/RulerItems.js +180 -0
- package/esm/PanoRulerProPlugin/index.d.ts +8 -0
- package/esm/PanoRulerProPlugin/index.js +19 -0
- package/esm/PanoRulerProPlugin/typings.d.ts +46 -0
- package/esm/PanoSpatialTagPlugin/Components/origins.js +81 -0
- package/esm/PanoSpatialTagPlugin/Components/tag.js +124 -0
- package/esm/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/esm/PanoSpatialTagPlugin/Plugin.js +246 -0
- package/esm/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/esm/PanoSpatialTagPlugin/index.js +25 -0
- package/esm/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/store.js +5 -0
- package/esm/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/style.js +11 -0
- package/esm/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/esm/PanoSpatialTagPlugin/typings.js +1 -0
- package/esm/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/esm/PanoTagPlugin/Assets/Icon.js +6 -0
- package/esm/PanoTagPlugin/Components/Common/Arrow.js +103 -0
- package/esm/PanoTagPlugin/Components/Common/Audio.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Straight.js +90 -0
- package/esm/PanoTagPlugin/Components/Common/Media.js +393 -0
- package/esm/PanoTagPlugin/Components/Common/MediaItem.js +139 -0
- package/esm/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
- package/esm/PanoTagPlugin/Components/Common/Point/CustomPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Shadow.js +124 -0
- package/esm/PanoTagPlugin/Components/Common/Text.js +131 -0
- package/esm/PanoTagPlugin/Components/Tag/AudioTag.js +134 -0
- package/esm/PanoTagPlugin/Components/Tag/CustomTag.js +73 -0
- package/esm/PanoTagPlugin/Components/Tag/ImageTextTag.js +192 -0
- package/esm/PanoTagPlugin/Components/Tag/LinkTag.js +126 -0
- package/esm/PanoTagPlugin/Components/Tag/MarketingTag.js +258 -0
- package/esm/PanoTagPlugin/Components/Tag/MediaPlane.js +87 -0
- package/esm/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
- package/esm/PanoTagPlugin/Components/Tag/index.js +290 -0
- package/esm/PanoTagPlugin/Components/TagContainer.js +156 -0
- package/esm/PanoTagPlugin/Components/TagWrapper.js +153 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.js +31 -0
- package/esm/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/esm/PanoTagPlugin/controller/TagComputer.js +264 -0
- package/esm/PanoTagPlugin/controller/index.d.ts +144 -0
- package/esm/PanoTagPlugin/controller/index.js +376 -0
- package/esm/PanoTagPlugin/index.d.ts +8 -0
- package/esm/PanoTagPlugin/index.js +85 -0
- package/esm/PanoTagPlugin/tag.config.d.ts +7 -0
- package/esm/PanoTagPlugin/tag.config.js +43 -0
- package/esm/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/esm/PanoTagPlugin/typings/controller.js +1 -0
- package/esm/PanoTagPlugin/typings/index.d.ts +2 -0
- package/esm/PanoTagPlugin/typings/index.js +1 -0
- package/esm/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/esm/PanoTagPlugin/typings/tag.js +7 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.js +27 -0
- package/esm/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/checkRange.js +10 -0
- package/esm/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/constants.js +7 -0
- package/esm/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/debounce.js +12 -0
- package/esm/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/doUtil.js +12 -0
- package/esm/PanoTagPlugin/utils/index.d.ts +12 -0
- package/esm/PanoTagPlugin/utils/index.js +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.js +4 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.js +13 -0
- package/esm/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/planeNormal.js +11 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.js +17 -0
- package/esm/PanoTagPlugin/utils/search.d.ts +11 -0
- package/esm/PanoTagPlugin/utils/search.js +15 -0
- package/esm/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/tagPosition.js +13 -0
- package/esm/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/throttle.js +11 -0
- package/esm/base/BasePlugin.d.ts +106 -0
- package/esm/base/BasePlugin.js +18 -0
- package/esm/base/BasePluginWithData.d.ts +34 -0
- package/esm/base/BasePluginWithData.js +6 -0
- package/esm/components/PaintBrush/Controller.d.ts +43 -0
- package/esm/components/PaintBrush/Controller.js +308 -0
- package/esm/components/PaintBrush/Subscribe.d.ts +76 -0
- package/esm/components/PaintBrush/Subscribe.js +47 -0
- package/esm/components/PaintBrush/index.d.ts +27 -0
- package/esm/components/PaintBrush/index.js +52 -0
- package/esm/components/PaintBrush/style.d.ts +2 -0
- package/esm/components/PaintBrush/style.js +104 -0
- package/esm/components/PaintBrush/tween.d.ts +7 -0
- package/esm/components/PaintBrush/tween.js +11 -0
- package/esm/components/PaintBrush/typings.d.ts +58 -0
- package/esm/components/PaintBrush/typings.js +4 -0
- package/esm/components/PaintBrush/utils.d.ts +26 -0
- package/esm/components/PaintBrush/utils.js +45 -0
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.js +13 -0
- package/esm/env.d.ts +1 -0
- package/esm/floorplan/Assets/camera.d.ts +1 -0
- package/esm/floorplan/Assets/camera.js +4 -0
- package/esm/floorplan/Assets/compass.d.ts +1 -0
- package/esm/floorplan/Assets/compass.js +4 -0
- package/esm/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/esm/floorplan/Assets/floorplanExtraObject.js +4 -0
- package/esm/floorplan/Components/BaseImage.js +103 -0
- package/esm/floorplan/Components/Camera.js +62 -0
- package/esm/floorplan/Components/Compass.js +60 -0
- package/esm/floorplan/Components/CurrentFloor.js +246 -0
- package/esm/floorplan/Components/Main.js +264 -0
- package/esm/floorplan/Components/Normalmage.js +37 -0
- package/esm/floorplan/Components/RoomHighlight/Room.js +61 -0
- package/esm/floorplan/Components/RoomHighlight/RoomHighlight.js +121 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabel.js +153 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabels.js +174 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -0
- package/esm/floorplan/Components/RuleLabels/RuleItem.js +134 -0
- package/esm/floorplan/Components/RuleLabels/RuleLabels.js +139 -0
- package/esm/floorplan/Components/SvgImage.js +47 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.js +321 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.js +316 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +129 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +183 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.js +27 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.js +273 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.js +47 -0
- package/esm/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/esm/floorplan/constant.d.ts +5 -0
- package/esm/floorplan/constant.js +4 -0
- package/esm/floorplan/index.d.ts +7 -0
- package/esm/floorplan/index.js +6 -0
- package/esm/floorplan/typings/floorplanData.d.ts +137 -0
- package/esm/floorplan/typings/floorplanData.js +1 -0
- package/esm/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/esm/floorplan/typings/floorplanServerData.js +101 -0
- package/esm/floorplan/typings/index.d.ts +117 -0
- package/esm/floorplan/typings/utility.d.ts +2 -0
- package/esm/floorplan/utils/constant.d.ts +22 -0
- package/esm/floorplan/utils/constant.js +7 -0
- package/esm/floorplan/utils/correctFiveState.d.ts +15 -0
- package/esm/floorplan/utils/correctFiveState.js +54 -0
- package/esm/floorplan/utils/formatData.d.ts +5 -0
- package/esm/floorplan/utils/formatData.js +104 -0
- package/esm/floorplan/utils/formatPosition.d.ts +36 -0
- package/esm/floorplan/utils/formatPosition.js +35 -0
- package/esm/index.d.ts +23 -0
- package/esm/index.js +346 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.js +151 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.js +20 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.js +66 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.js +134 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/esm/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/esm/shared-utils/Object3DHelper/index.js +169 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.js +22 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/esm/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -0
- package/esm/shared-utils/Subscribe.d.ts +60 -0
- package/esm/shared-utils/Subscribe.js +50 -0
- package/esm/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/esm/shared-utils/animationFrame/BetterTween.js +26 -0
- package/esm/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/esm/shared-utils/animationFrame/calculateProgress.js +6 -0
- package/esm/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/esm/shared-utils/animationFrame/formatRad.js +11 -0
- package/esm/shared-utils/animationFrame/index.d.ts +16 -0
- package/esm/shared-utils/animationFrame/index.js +28 -0
- package/esm/shared-utils/animationFrame/tween.d.ts +75 -0
- package/esm/shared-utils/animationFrame/tween.js +28 -0
- package/esm/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/esm/shared-utils/changeModelCanvasOpacity.js +12 -0
- package/esm/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/esm/shared-utils/createCanvasTextTexture.js +11 -0
- package/esm/shared-utils/createLine/index.d.ts +3 -0
- package/esm/shared-utils/createLine/index.js +9 -0
- package/esm/shared-utils/debounce.d.ts +6 -0
- package/esm/shared-utils/debounce.js +11 -0
- package/esm/shared-utils/equal.d.ts +11 -0
- package/esm/shared-utils/equal.js +54 -0
- package/esm/shared-utils/filter.d.ts +27 -0
- package/esm/shared-utils/filter.js +10 -0
- package/esm/shared-utils/five/changeMode.d.ts +5 -0
- package/esm/shared-utils/five/changeMode.js +39 -0
- package/esm/shared-utils/getPxmm.d.ts +19 -0
- package/esm/shared-utils/getPxmm.js +20 -0
- package/esm/shared-utils/index.d.ts +4 -0
- package/esm/shared-utils/index.js +35 -0
- package/esm/shared-utils/isNil.d.ts +10 -0
- package/esm/shared-utils/isNil.js +10 -0
- package/esm/shared-utils/isTruelyObject.d.ts +18 -0
- package/esm/shared-utils/isTruelyObject.js +6 -0
- package/esm/shared-utils/math/Interval.d.ts +13 -0
- package/esm/shared-utils/math/Interval.js +23 -0
- package/esm/shared-utils/math/Rectangle.d.ts +27 -0
- package/esm/shared-utils/math/Rectangle.js +23 -0
- package/esm/shared-utils/math/index.d.ts +2 -0
- package/esm/shared-utils/math/index.js +1 -0
- package/esm/shared-utils/math/planimetry.d.ts +116 -0
- package/esm/shared-utils/math/planimetry.js +43 -0
- package/esm/shared-utils/math/rad2Deg.d.ts +1 -0
- package/esm/shared-utils/math/rad2Deg.js +6 -0
- package/esm/shared-utils/nearlyEqual.d.ts +7 -0
- package/esm/shared-utils/nearlyEqual.js +6 -0
- package/esm/shared-utils/nextFrame.d.ts +1 -0
- package/esm/shared-utils/nextFrame.js +6 -0
- package/esm/shared-utils/noop.d.ts +5 -0
- package/esm/shared-utils/noop.js +5 -0
- package/esm/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/esm/shared-utils/object3d2LocalMatrix.js +18 -0
- package/esm/shared-utils/removeArrayItem.d.ts +7 -0
- package/esm/shared-utils/removeArrayItem.js +8 -0
- package/esm/shared-utils/tap.d.ts +8 -0
- package/esm/shared-utils/tap.js +6 -0
- package/esm/shared-utils/three/Assets/index.d.ts +3 -0
- package/esm/shared-utils/three/Assets/index.js +4 -0
- package/esm/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/esm/shared-utils/three/FivePointSelector.js +49 -0
- package/esm/shared-utils/three/Magnifier.d.ts +53 -0
- package/esm/shared-utils/three/Magnifier.js +104 -0
- package/esm/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/esm/shared-utils/three/PointDomHelper.js +60 -0
- package/esm/shared-utils/three/PointHelper.d.ts +21 -0
- package/esm/shared-utils/three/PointHelper.js +73 -0
- package/esm/shared-utils/three/getCoords.d.ts +9 -0
- package/esm/shared-utils/three/getCoords.js +13 -0
- package/esm/shared-utils/three/getIntersect.d.ts +6 -0
- package/esm/shared-utils/three/getIntersect.js +8 -0
- package/esm/shared-utils/three/getRaycaster.d.ts +6 -0
- package/esm/shared-utils/three/getRaycaster.js +12 -0
- package/esm/shared-utils/three/index.d.ts +7 -0
- package/esm/shared-utils/three/index.js +6 -0
- package/esm/shared-utils/three/loadTexture.d.ts +2 -0
- package/esm/shared-utils/three/loadTexture.js +28 -0
- package/esm/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/esm/shared-utils/three/transformPositionToVector3.js +5 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.js +24 -0
- package/esm/shared-utils/throttle.d.ts +7 -0
- package/esm/shared-utils/throttle.js +11 -0
- package/esm/shared-utils/tinyEJSrender.d.ts +5 -0
- package/esm/shared-utils/tinyEJSrender.js +140 -0
- package/esm/shared-utils/to.d.ts +8 -0
- package/esm/shared-utils/to.js +28 -0
- package/esm/shared-utils/uuid.d.ts +5 -0
- package/esm/shared-utils/uuid.js +9 -0
- package/esm/typings/math.type.d.ts +44 -0
- package/esm/vendor/swiper/components-shared/get-changed-params.js +29 -0
- package/esm/vendor/swiper/components-shared/get-params.js +23 -0
- package/esm/vendor/swiper/components-shared/mount-swiper.js +14 -0
- package/esm/vendor/swiper/components-shared/params-list.js +120 -0
- package/esm/vendor/swiper/components-shared/update-swiper.js +36 -0
- package/esm/vendor/swiper/components-shared/utils.js +32 -0
- package/esm/vendor/swiper/svelte/swiper-slide.js +182 -0
- package/esm/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/esm/vendor/swiper/svelte/swiper.js +254 -0
- package/package.json +4 -3
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var v = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (n, e, s) => e in n ? S(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, p = (n, e) => {
|
|
5
|
+
for (var s in e || (e = {}))
|
|
6
|
+
u.call(e, s) && c(n, s, e[s]);
|
|
7
|
+
if (v)
|
|
8
|
+
for (var s of v(e))
|
|
9
|
+
k.call(e, s) && c(n, s, e[s]);
|
|
10
|
+
return n;
|
|
11
|
+
};
|
|
12
|
+
var d = (n, e, s) => (c(n, typeof e != "symbol" ? e + "" : e, s), s);
|
|
13
|
+
var f = (n, e, s) => new Promise((t, o) => {
|
|
14
|
+
var i = (r) => {
|
|
15
|
+
try {
|
|
16
|
+
h(s.next(r));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
o(a);
|
|
19
|
+
}
|
|
20
|
+
}, l = (r) => {
|
|
21
|
+
try {
|
|
22
|
+
h(s.throw(r));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
o(a);
|
|
25
|
+
}
|
|
26
|
+
}, h = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(i, l);
|
|
27
|
+
h((s = s.apply(n, e)).next());
|
|
28
|
+
});
|
|
29
|
+
import { S as C } from "../Subscribe.js";
|
|
30
|
+
const E = "v1.0.1", y = "Object3DHelper", b = `${y}@${E}`, m = () => {
|
|
31
|
+
console.error(`${b} is disposed`);
|
|
32
|
+
}, O = () => {
|
|
33
|
+
console.warn(`${b} is disabled`);
|
|
34
|
+
}, H = () => {
|
|
35
|
+
console.error(`${b} is disabled`);
|
|
36
|
+
};
|
|
37
|
+
class x {
|
|
38
|
+
constructor(e, s) {
|
|
39
|
+
d(this, "controllers", {});
|
|
40
|
+
d(this, "state", {
|
|
41
|
+
visible: !0,
|
|
42
|
+
enabled: !0,
|
|
43
|
+
disposed: !1
|
|
44
|
+
});
|
|
45
|
+
d(this, "hooks", new C());
|
|
46
|
+
d(this, "helpers");
|
|
47
|
+
d(this, "eventListener", {});
|
|
48
|
+
d(this, "handlePositionUpdate", (e, ...s) => {
|
|
49
|
+
var i, l, h, r;
|
|
50
|
+
const [t] = s, o = t == null ? void 0 : t.matrix4;
|
|
51
|
+
o && (e !== this.controllers.moveController && ((i = this.controllers.moveController) == null || i.applyHelperMatrix4(o)), e !== this.controllers.rotateController && ((l = this.controllers.rotateController) == null || l.applyHelperMatrix4(o)), e !== this.controllers.scaleController && ((h = this.controllers.scaleController) == null || h.applyHelperMatrix4(o)), (r = this.helpers.outlineHelper) == null || r.applyMatrix4(o));
|
|
52
|
+
});
|
|
53
|
+
d(this, "handleScaleUpdate", (e, ...s) => {
|
|
54
|
+
var i, l;
|
|
55
|
+
const [t] = s, o = t == null ? void 0 : t.matrix4;
|
|
56
|
+
o && ((i = this.controllers.scaleController) == null || i.applyHelperScaleMatrix4(o, t), (l = this.helpers.outlineHelper) == null || l.scale.applyMatrix4(o));
|
|
57
|
+
});
|
|
58
|
+
d(this, "handleRotateUpdate", (e, ...s) => {
|
|
59
|
+
var o, i, l, h;
|
|
60
|
+
const [t] = s;
|
|
61
|
+
if (t) {
|
|
62
|
+
const { quaternion: r, origin: a } = t;
|
|
63
|
+
r && (e !== this.controllers.moveController && ((o = this.controllers.moveController) == null || o.applyHelperQuaternion(r, a)), e !== this.controllers.rotateController && ((i = this.controllers.rotateController) == null || i.applyHelperQuaternion(r, a)), e !== this.controllers.scaleController && ((l = this.controllers.scaleController) == null || l.applyHelperQuaternion(r, a)), (h = this.helpers.outlineHelper) == null || h.applyQuaternion(r));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
e && this.addControllers(e), this.helpers = s != null ? s : {}, this.setState(this.state);
|
|
67
|
+
}
|
|
68
|
+
show(e) {
|
|
69
|
+
return f(this, null, function* () {
|
|
70
|
+
this.setState({ visible: !0 }, e);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
hide(e) {
|
|
74
|
+
return f(this, null, function* () {
|
|
75
|
+
this.setState({ visible: !1 }, e);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
enable(e) {
|
|
79
|
+
this.setState({ enabled: !0 }, e);
|
|
80
|
+
}
|
|
81
|
+
disable(e) {
|
|
82
|
+
this.setState({ enabled: !1 }, e);
|
|
83
|
+
}
|
|
84
|
+
dispose() {
|
|
85
|
+
this.setState({ disposed: !0 });
|
|
86
|
+
}
|
|
87
|
+
setState(e, s) {
|
|
88
|
+
if (this.state.disposed)
|
|
89
|
+
return m();
|
|
90
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
91
|
+
return H();
|
|
92
|
+
const t = p({}, this.state);
|
|
93
|
+
this.state = p(p({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && this.handleVisible(e.visible), e.enabled !== void 0 && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
94
|
+
}
|
|
95
|
+
addControllers(e) {
|
|
96
|
+
this.controllers = p(p({}, this.controllers), e), this.addEventListener(), this.setState(this.state);
|
|
97
|
+
}
|
|
98
|
+
addHelpers(e) {
|
|
99
|
+
this.helpers = p(p({}, this.helpers), e);
|
|
100
|
+
}
|
|
101
|
+
getCurrentState() {
|
|
102
|
+
return this.state;
|
|
103
|
+
}
|
|
104
|
+
addEventListener() {
|
|
105
|
+
for (const e in this.controllers) {
|
|
106
|
+
if (!e)
|
|
107
|
+
continue;
|
|
108
|
+
const s = e;
|
|
109
|
+
this.eventListener[s] || (this.eventListener[s] = (() => {
|
|
110
|
+
const t = this.controllers[s];
|
|
111
|
+
if (!t)
|
|
112
|
+
return;
|
|
113
|
+
const o = () => this.handleStart(t), i = () => this.handleEnd(t), l = (...a) => this.handlePositionUpdate(t, ...a), h = (...a) => this.handleRotateUpdate(t, ...a), r = (...a) => this.handleScaleUpdate(t, ...a);
|
|
114
|
+
return t.hooks.on("moveStart", o), t.hooks.on("rotateStart", o), t.hooks.on("scaleStart", o), t.hooks.on("positionUpdate", l), t.hooks.on("rotateUpdate", h), t.hooks.on("scaleUpdate", r), t.hooks.on("moveEnd", i), t.hooks.on("rotateEnd", i), t.hooks.on("scaleEnd", i), () => {
|
|
115
|
+
t.hooks.off("moveStart", o), t.hooks.off("rotateStart", o), t.hooks.off("scaleStart", o), t.hooks.off("positionUpdate", l), t.hooks.off("rotateUpdate", h), t.hooks.off("scaleUpdate", r), t.hooks.off("moveEnd", i), t.hooks.off("rotateEnd", i), t.hooks.off("scaleEnd", i);
|
|
116
|
+
};
|
|
117
|
+
})());
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
handleEnd(e) {
|
|
121
|
+
e && this.setOtherHelpersVisible(!0, e);
|
|
122
|
+
}
|
|
123
|
+
handleStart(e) {
|
|
124
|
+
e && this.setOtherHelpersVisible(!1, e);
|
|
125
|
+
}
|
|
126
|
+
setOtherHelpersVisible(e, s) {
|
|
127
|
+
var t, o, i, l;
|
|
128
|
+
e ? ((i = this.controllers.moveController) == null || i.helperObject3D.show(), (l = this.controllers.rotateController) == null || l.helperObject3D.show()) : (s !== this.controllers.moveController && ((t = this.controllers.moveController) == null || t.helperObject3D.hide()), s !== this.controllers.rotateController && ((o = this.controllers.rotateController) == null || o.helperObject3D.hide()));
|
|
129
|
+
}
|
|
130
|
+
handleEnable(e, s = !0) {
|
|
131
|
+
e ? (this.everyControllerDo((t) => {
|
|
132
|
+
t.enable();
|
|
133
|
+
}), this.hooks.emit("enable", { userAction: s })) : (this.everyControllerDo((t) => {
|
|
134
|
+
t.disable(), t.restoreOpacity();
|
|
135
|
+
}), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
|
|
136
|
+
}
|
|
137
|
+
handleVisible(e, s = !0) {
|
|
138
|
+
e ? (this.everyControllerDo((t) => {
|
|
139
|
+
t.show();
|
|
140
|
+
}), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyControllerDo((t) => {
|
|
141
|
+
t.hide(), t.restoreOpacity();
|
|
142
|
+
}), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
|
|
143
|
+
}
|
|
144
|
+
everyControllerDo(e) {
|
|
145
|
+
Object.values(this.controllers).forEach((s) => {
|
|
146
|
+
s && e(s);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
handleDispose() {
|
|
150
|
+
var e, s;
|
|
151
|
+
Object.values(this.controllers).forEach((t) => {
|
|
152
|
+
t == null || t.dispose(), t == null || t.restoreOpacity();
|
|
153
|
+
});
|
|
154
|
+
for (const t in this.controllers) {
|
|
155
|
+
if (!t)
|
|
156
|
+
continue;
|
|
157
|
+
const o = t;
|
|
158
|
+
(s = (e = this.eventListener)[o]) == null || s.call(e);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
actionIfStateIsEnabled(e, s) {
|
|
162
|
+
if (this.state.enabled)
|
|
163
|
+
return e();
|
|
164
|
+
s != null && s.warnLog && O();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
export {
|
|
168
|
+
x as O
|
|
169
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
export declare type HelperEventMap = {
|
|
3
|
+
moveStart: () => void;
|
|
4
|
+
rotateStart: () => void;
|
|
5
|
+
scaleStart: () => void;
|
|
6
|
+
positionUpdate: (position: {
|
|
7
|
+
matrix4?: THREE.Matrix4;
|
|
8
|
+
} | undefined) => void;
|
|
9
|
+
rotateUpdate: (rotate: {
|
|
10
|
+
quaternion?: THREE.Quaternion;
|
|
11
|
+
origin: THREE.Vector3;
|
|
12
|
+
} | undefined) => void;
|
|
13
|
+
scaleUpdate: (scale: {
|
|
14
|
+
matrix4?: THREE.Matrix4;
|
|
15
|
+
origin?: THREE.Vector3;
|
|
16
|
+
helperOrigin: THREE.Vector3;
|
|
17
|
+
} | undefined) => void;
|
|
18
|
+
moveEnd: () => void;
|
|
19
|
+
rotateEnd: () => void;
|
|
20
|
+
scaleEnd: () => void;
|
|
21
|
+
};
|
|
22
|
+
export interface Object3DHelperState {
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
visible: boolean;
|
|
25
|
+
disposed: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type Object3DHelperEventMap = {
|
|
28
|
+
show: (options?: {
|
|
29
|
+
userAction?: boolean;
|
|
30
|
+
}) => void;
|
|
31
|
+
hide: (options?: {
|
|
32
|
+
userAction?: boolean;
|
|
33
|
+
}) => void;
|
|
34
|
+
enable: (options?: {
|
|
35
|
+
userAction?: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
disable: (options?: {
|
|
38
|
+
userAction?: boolean;
|
|
39
|
+
}) => void;
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
stateChange: (params: {
|
|
42
|
+
state: Object3DHelperState;
|
|
43
|
+
prevState?: Object3DHelperState;
|
|
44
|
+
}) => void;
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 显示区域裁剪参数
|
|
3
|
+
* @description
|
|
4
|
+
* 可通过初始化,或者 setScissor 方式设置
|
|
5
|
+
* `scissor` 是将屏幕中的内容渲染到 `renderer` 的指定区域。
|
|
6
|
+
* 页面整体长宽均为 `1`。通过类似 css 的 `left` `bottom` `width` `height` 来确定区域。
|
|
7
|
+
*/
|
|
8
|
+
export interface Scissor {
|
|
9
|
+
/** 距离左侧 */
|
|
10
|
+
left: number;
|
|
11
|
+
/** 距离下侧 */
|
|
12
|
+
bottom: number;
|
|
13
|
+
/** 宽度 */
|
|
14
|
+
width: number;
|
|
15
|
+
/** 高度 */
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 计算 three 中的 mouse 的值
|
|
4
|
+
* @param mouseXY - 鼠标相对屏幕位置
|
|
5
|
+
* @param element - canvas元素(three的展示元素)
|
|
6
|
+
* @param scissor - 屏幕剪裁
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateThreeMouse(originMouse: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}, element: HTMLElement): THREE.Vector2 & {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as f from "three";
|
|
2
|
+
function i(t, e) {
|
|
3
|
+
const { offsetWidth: o, offsetHeight: c } = e, { top: n, left: s } = e.getBoundingClientRect();
|
|
4
|
+
return Object.assign(new f.Vector2(), {
|
|
5
|
+
x: (t.x - s) / o * 2 - 1,
|
|
6
|
+
y: -(t.y - n) / c * 2 + 1
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
i as c
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Direction } from '../typings';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
export declare class DirectionGroup extends THREE.Group {
|
|
4
|
+
direction: Direction;
|
|
5
|
+
constructor(direction?: Direction);
|
|
6
|
+
}
|
|
7
|
+
export declare class DirectionLine<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Line<T, K> {
|
|
8
|
+
direction: Direction;
|
|
9
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
10
|
+
}
|
|
11
|
+
export declare class DirectionMesh<T extends THREE.Geometry, K extends THREE.Material> extends THREE.Mesh<T, K> {
|
|
12
|
+
direction: Direction;
|
|
13
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var a = (t, r, s) => r in t ? n(t, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[r] = s;
|
|
3
|
+
var e = (t, r, s) => (a(t, typeof r != "symbol" ? r + "" : r, s), s);
|
|
4
|
+
import * as i from "three";
|
|
5
|
+
class p extends i.Group {
|
|
6
|
+
constructor(s) {
|
|
7
|
+
super();
|
|
8
|
+
e(this, "direction");
|
|
9
|
+
this.direction = s || "x";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
class u extends i.Mesh {
|
|
13
|
+
constructor(s, o, c) {
|
|
14
|
+
super(s, o);
|
|
15
|
+
e(this, "direction");
|
|
16
|
+
this.direction = c || "x";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
p as D,
|
|
21
|
+
u as a
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "three";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as o from "three";
|
|
2
|
+
import { c } from "./calculateThreeMouse.js";
|
|
3
|
+
function u(t, a, e) {
|
|
4
|
+
if (!a || !e || !t)
|
|
5
|
+
return;
|
|
6
|
+
const r = c(a, e);
|
|
7
|
+
if (Math.abs(r.x) === 1 || Math.abs(r.y) === 1)
|
|
8
|
+
return;
|
|
9
|
+
const s = new o.Raycaster();
|
|
10
|
+
return s.setFromCamera(r, t), s;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
u as g
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "three";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '../../../CSS3DRenderPlugin/utils';
|
|
2
|
+
export * from './direction';
|
|
3
|
+
export * from './calculateThreeMouse';
|
|
4
|
+
export * from './normalPositionToPositions';
|
|
5
|
+
export * from './object3DBoundingPosition';
|
|
6
|
+
export * from './getMouseRaycaster';
|
|
7
|
+
export * from './filterNotColinearPoints';
|
|
8
|
+
export * from './vectorIsEqual';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "three";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "three";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function object3DBoundingPosition(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as THREE from 'three'
|
|
2
|
+
|
|
3
|
+
type EventName =
|
|
4
|
+
| 'click'
|
|
5
|
+
| 'dblclick'
|
|
6
|
+
| 'mouseover'
|
|
7
|
+
| 'mouseout'
|
|
8
|
+
| 'mousemove'
|
|
9
|
+
| 'mousedown'
|
|
10
|
+
| 'mouseup'
|
|
11
|
+
| 'contextmenu'
|
|
12
|
+
| 'touchstart'
|
|
13
|
+
| 'touchend'
|
|
14
|
+
|
|
15
|
+
declare class DomEvents {
|
|
16
|
+
public constructor(camera: THREE.Camera, domElement: HTMLElement)
|
|
17
|
+
|
|
18
|
+
public addEventListener<T extends EventName, K extends THREE.Object3D>(
|
|
19
|
+
object: K,
|
|
20
|
+
eventName: T,
|
|
21
|
+
callback: (params: {
|
|
22
|
+
type: T
|
|
23
|
+
target: K
|
|
24
|
+
origDomEvent: Event
|
|
25
|
+
intersect: THREE.Intersection & { object: K }
|
|
26
|
+
stopPropagation: () => void
|
|
27
|
+
}) => void,
|
|
28
|
+
useCapture?: boolean,
|
|
29
|
+
): void
|
|
30
|
+
|
|
31
|
+
public removeEventListener(object: THREE.Object3D, eventName: EventName, callback: (params: any) => void, useCapture?: boolean): void
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default DomEvents
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as f from "three";
|
|
2
|
+
function n(t, e) {
|
|
3
|
+
this._camera = t || null, this._domElement = e || document, this._raycaster = new f.Raycaster(), this._selected = null, this._boundObjs = {};
|
|
4
|
+
var o = this;
|
|
5
|
+
this._$onClick = function() {
|
|
6
|
+
o._onClick.apply(o, arguments);
|
|
7
|
+
}, this._$onDblClick = function() {
|
|
8
|
+
o._onDblClick.apply(o, arguments);
|
|
9
|
+
}, this._$onMouseMove = function() {
|
|
10
|
+
o._onMouseMove.apply(o, arguments);
|
|
11
|
+
}, this._$onMouseDown = function() {
|
|
12
|
+
o._onMouseDown.apply(o, arguments);
|
|
13
|
+
}, this._$onMouseUp = function() {
|
|
14
|
+
o._onMouseUp.apply(o, arguments);
|
|
15
|
+
}, this._$onTouchMove = function() {
|
|
16
|
+
o._onTouchMove.apply(o, arguments);
|
|
17
|
+
}, this._$onTouchStart = function() {
|
|
18
|
+
o._onTouchStart.apply(o, arguments);
|
|
19
|
+
}, this._$onTouchEnd = function() {
|
|
20
|
+
o._onTouchEnd.apply(o, arguments);
|
|
21
|
+
}, this._$onContextmenu = function() {
|
|
22
|
+
o._onContextmenu.apply(o, arguments);
|
|
23
|
+
}, this._domElement.addEventListener("click", this._$onClick, !1), this._domElement.addEventListener("dblclick", this._$onDblClick, !1), this._domElement.addEventListener("mousemove", this._$onMouseMove, !1), this._domElement.addEventListener("mousedown", this._$onMouseDown, !1), this._domElement.addEventListener("mouseup", this._$onMouseUp, !1), this._domElement.addEventListener("touchmove", this._$onTouchMove, !1), this._domElement.addEventListener("touchstart", this._$onTouchStart, !1), this._domElement.addEventListener("touchend", this._$onTouchEnd, !1), this._domElement.addEventListener("contextmenu", this._$onContextmenu, !1);
|
|
24
|
+
}
|
|
25
|
+
n.prototype.destroy = function() {
|
|
26
|
+
this._domElement.removeEventListener("click", this._$onClick, !1), this._domElement.removeEventListener("dblclick", this._$onDblClick, !1), this._domElement.removeEventListener("mousemove", this._$onMouseMove, !1), this._domElement.removeEventListener("mousedown", this._$onMouseDown, !1), this._domElement.removeEventListener("mouseup", this._$onMouseUp, !1), this._domElement.removeEventListener("touchmove", this._$onTouchMove, !1), this._domElement.removeEventListener("touchstart", this._$onTouchStart, !1), this._domElement.removeEventListener("touchend", this._$onTouchEnd, !1), this._domElement.removeEventListener("contextmenu", this._$onContextmenu, !1);
|
|
27
|
+
};
|
|
28
|
+
n.eventNames = [
|
|
29
|
+
"click",
|
|
30
|
+
"dblclick",
|
|
31
|
+
"mouseover",
|
|
32
|
+
"mouseout",
|
|
33
|
+
"mousemove",
|
|
34
|
+
"mousedown",
|
|
35
|
+
"mouseup",
|
|
36
|
+
"contextmenu",
|
|
37
|
+
"touchstart",
|
|
38
|
+
"touchend"
|
|
39
|
+
];
|
|
40
|
+
n.prototype._getRelativeMouseXY = function(t) {
|
|
41
|
+
var e = t.target || t.srcElement;
|
|
42
|
+
e.nodeType === 3 && (e = e.parentNode);
|
|
43
|
+
var o = { x: 0, y: 0 }, i = e, s = getComputedStyle(i, null);
|
|
44
|
+
o.y += parseInt(s.getPropertyValue("padding-top"), 10), o.x += parseInt(s.getPropertyValue("padding-left"), 10);
|
|
45
|
+
do
|
|
46
|
+
o.x += i.offsetLeft, o.y += i.offsetTop, s = getComputedStyle(i, null), o.x += parseInt(s.getPropertyValue("border-left-width"), 10), o.y += parseInt(s.getPropertyValue("border-top-width"), 10);
|
|
47
|
+
while (i = i.offsetParent);
|
|
48
|
+
var r = {
|
|
49
|
+
width: e === window ? window.innerWidth : e.offsetWidth,
|
|
50
|
+
height: e === window ? window.innerHeight : e.offsetHeight
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
x: Number((t.pageX - o.x) / r.width) * 2 - 1,
|
|
54
|
+
y: -((t.pageY - o.y) / r.height) * 2 + 1
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
n.prototype._objectCtxInit = function(t) {
|
|
58
|
+
t._3xDomEvent = {};
|
|
59
|
+
};
|
|
60
|
+
n.prototype._objectCtxDeinit = function(t) {
|
|
61
|
+
delete t._3xDomEvent;
|
|
62
|
+
};
|
|
63
|
+
n.prototype._objectCtxIsInit = function(t) {
|
|
64
|
+
return !!t._3xDomEvent;
|
|
65
|
+
};
|
|
66
|
+
n.prototype._objectCtxGet = function(t) {
|
|
67
|
+
return t._3xDomEvent;
|
|
68
|
+
};
|
|
69
|
+
n.prototype.camera = function(t) {
|
|
70
|
+
return t && (this._camera = t), this._camera;
|
|
71
|
+
};
|
|
72
|
+
n.prototype.bind = function(t, e, o, i) {
|
|
73
|
+
console.assert(n.eventNames.indexOf(e) !== -1, "not available events:" + e), this._objectCtxIsInit(t) || this._objectCtxInit(t);
|
|
74
|
+
var s = this._objectCtxGet(t);
|
|
75
|
+
s[e + "Handlers"] || (s[e + "Handlers"] = []), s[e + "Handlers"].push({
|
|
76
|
+
callback: o,
|
|
77
|
+
useCapture: i
|
|
78
|
+
}), this._boundObjs[e] === void 0 && (this._boundObjs[e] = []), this._boundObjs[e].push(t);
|
|
79
|
+
};
|
|
80
|
+
n.prototype.addEventListener = n.prototype.bind;
|
|
81
|
+
n.prototype.unbind = function(t, e, o, i) {
|
|
82
|
+
console.assert(n.eventNames.indexOf(e) !== -1, "not available events:" + e), this._objectCtxIsInit(t) || this._objectCtxInit(t);
|
|
83
|
+
var s = this._objectCtxGet(t);
|
|
84
|
+
s[e + "Handlers"] || (s[e + "Handlers"] = []);
|
|
85
|
+
for (var r = s[e + "Handlers"], a = 0; a < r.length; a++) {
|
|
86
|
+
var u = r[a];
|
|
87
|
+
if (o == u.callback && i == u.useCapture) {
|
|
88
|
+
r.splice(a, 1);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
var h = this._boundObjs[e].indexOf(t);
|
|
93
|
+
console.assert(h !== -1), this._boundObjs[e].splice(h, 1);
|
|
94
|
+
};
|
|
95
|
+
n.prototype.removeEventListener = n.prototype.unbind;
|
|
96
|
+
n.prototype._bound = function(t, e) {
|
|
97
|
+
var o = this._objectCtxGet(e);
|
|
98
|
+
return o ? !!o[t + "Handlers"] : !1;
|
|
99
|
+
};
|
|
100
|
+
n.prototype._onMove = function(t, e, o, i) {
|
|
101
|
+
var s = this._boundObjs[t];
|
|
102
|
+
if (!(s === void 0 || s.length === 0)) {
|
|
103
|
+
var r = new f.Vector2();
|
|
104
|
+
r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
|
|
105
|
+
var a = this._raycaster.intersectObjects(s), u = this._selected;
|
|
106
|
+
if (a.length > 0) {
|
|
107
|
+
var h, l, c, p = a[0], _ = p.object;
|
|
108
|
+
this._selected = _, c = this._bound("mousemove", _), u != _ && (h = this._bound("mouseover", _), l = u && this._bound("mouseout", u));
|
|
109
|
+
} else
|
|
110
|
+
l = u && this._bound("mouseout", u), this._selected = null;
|
|
111
|
+
c && this._notify("mousemove", _, i, p), h && this._notify("mouseover", _, i, p), l && this._notify("mouseout", u, i, p);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
n.prototype._onEvent = function(t, e, o, i) {
|
|
115
|
+
var s = this._boundObjs[t];
|
|
116
|
+
if (!(s === void 0 || s.length === 0)) {
|
|
117
|
+
var r = new f.Vector2();
|
|
118
|
+
r.set(e, o), this._raycaster.setFromCamera(r, this._camera);
|
|
119
|
+
var a = this._raycaster.intersectObjects(s, !0);
|
|
120
|
+
if (a.length !== 0) {
|
|
121
|
+
for (var u = a[0], h = u.object, l = this._objectCtxGet(h), c = h.parent; typeof l == "undefined" && c; )
|
|
122
|
+
l = this._objectCtxGet(c), c = c.parent;
|
|
123
|
+
!l || this._notify(t, h, i, u);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
n.prototype._notify = function(t, e, o, i) {
|
|
128
|
+
var s = this._objectCtxGet(e), r = s ? s[t + "Handlers"] : null;
|
|
129
|
+
if (console.assert(arguments.length === 4), !s || !r || r.length === 0) {
|
|
130
|
+
e.parent && this._notify(t, e.parent, o, i);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
for (var r = s[t + "Handlers"], a = 0; a < r.length; a++) {
|
|
134
|
+
var u = r[a], h = !0;
|
|
135
|
+
u.callback({
|
|
136
|
+
type: t,
|
|
137
|
+
target: e,
|
|
138
|
+
origDomEvent: o,
|
|
139
|
+
intersect: i,
|
|
140
|
+
stopPropagation: function() {
|
|
141
|
+
h = !1;
|
|
142
|
+
}
|
|
143
|
+
}), !!h && u.useCapture === !1 && e.parent && this._notify(t, e.parent, o, i);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
n.prototype._onMouseDown = function(t) {
|
|
147
|
+
return this._onMouseEvent("mousedown", t);
|
|
148
|
+
};
|
|
149
|
+
n.prototype._onMouseUp = function(t) {
|
|
150
|
+
return this._onMouseEvent("mouseup", t);
|
|
151
|
+
};
|
|
152
|
+
n.prototype._onMouseEvent = function(t, e) {
|
|
153
|
+
var o = this._getRelativeMouseXY(e);
|
|
154
|
+
this._onEvent(t, o.x, o.y, e);
|
|
155
|
+
};
|
|
156
|
+
n.prototype._onMouseMove = function(t) {
|
|
157
|
+
var e = this._getRelativeMouseXY(t);
|
|
158
|
+
this._onMove("mousemove", e.x, e.y, t), this._onMove("mouseover", e.x, e.y, t), this._onMove("mouseout", e.x, e.y, t);
|
|
159
|
+
};
|
|
160
|
+
n.prototype._onClick = function(t) {
|
|
161
|
+
this._onMouseEvent("click", t);
|
|
162
|
+
};
|
|
163
|
+
n.prototype._onDblClick = function(t) {
|
|
164
|
+
this._onMouseEvent("dblclick", t);
|
|
165
|
+
};
|
|
166
|
+
n.prototype._onContextmenu = function(t) {
|
|
167
|
+
this._onMouseEvent("contextmenu", t);
|
|
168
|
+
};
|
|
169
|
+
n.prototype._onTouchStart = function(t) {
|
|
170
|
+
return this._onTouchEvent("touchstart", t);
|
|
171
|
+
};
|
|
172
|
+
n.prototype._onTouchEnd = function(t) {
|
|
173
|
+
return this._onTouchEvent("touchend", t);
|
|
174
|
+
};
|
|
175
|
+
n.prototype._onTouchMove = function(t) {
|
|
176
|
+
if (t.touches.length == 1) {
|
|
177
|
+
t.preventDefault();
|
|
178
|
+
var e = Number(t.touches[0].pageX / window.innerWidth) * 2 - 1, o = -(t.touches[0].pageY / window.innerHeight) * 2 + 1;
|
|
179
|
+
this._onMove("mousemove", e, o, t), this._onMove("mouseover", e, o, t), this._onMove("mouseout", e, o, t);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
n.prototype._onTouchEvent = function(t, e) {
|
|
183
|
+
if (e.touches.length == 1) {
|
|
184
|
+
e.preventDefault();
|
|
185
|
+
var o = Number(e.touches[0].pageX / window.innerWidth) * 2 - 1, i = -(e.touches[0].pageY / window.innerHeight) * 2 + 1;
|
|
186
|
+
this._onEvent(t, o, i, e);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
export {
|
|
190
|
+
n as D
|
|
191
|
+
};
|