@realsee/dnalogel 3.29.7 → 3.30.0
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/CHANGELOG.md +9 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +5 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +102 -84
- package/dist/index.umd.js +13 -13
- package/dist/shared-utils/three/getIntersect.d.ts +2 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +13 -13
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +5 -5
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +11 -11
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/CurrentPanoImagePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +3 -3
- 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/ModelMakerPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/MovePlugin.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/PanoVideoPlugin.html +4 -4
- package/docs/functions/PipelinePlugin.html +4 -4
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.reblink.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -5
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -5
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/ModelMakerPlugin/Controller.js +17 -17
- package/libs/ModelMakerPlugin/item/baseItem.js +16 -16
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -4
- package/libs/PanoCompassPlugin/Controller.js +3 -3
- package/libs/Sculpt/Meshes/Prism.d.ts +5 -0
- package/libs/Sculpt/Meshes/Prism.js +17 -8
- package/libs/Sculpt/Objects/Base/index.js +24 -20
- package/libs/Sculpt/Objects/Box/Editor.js +1 -1
- package/libs/Sculpt/Objects/Prism/Editor.js +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +17 -16
- package/libs/shared-utils/three/Magnifier.js +17 -15
- package/libs/shared-utils/three/getIntersect.d.ts +2 -0
- package/package.json +2 -2
|
@@ -142,10 +142,10 @@ class pe extends A {
|
|
|
142
142
|
r(this, "onFivePanoArrived", (e) => {
|
|
143
143
|
var o, s, i, l, p, c, y, I;
|
|
144
144
|
const t = (i = (s = (o = this.five.work) == null ? void 0 : o.observers) == null ? void 0 : s[e]) == null ? void 0 : i.standingPosition;
|
|
145
|
-
if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((l = this.compassMeshTween) == null || l.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
145
|
+
if (this.compassMesh && t && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((l = this.compassMeshTween) == null || l.dispose(), this.compassMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
146
146
|
var m;
|
|
147
147
|
(m = this.compassMesh) == null || m.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
148
|
-
}).play())), this.logoMesh && (this.logoMesh.position.copy(t.clone().setY(t.y + 0.011)), this.logoMesh.material.opacity === 0 && ((p = this.logoMeshTween) == null || p.dispose(), this.logoMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
148
|
+
}).play())), this.logoMesh && t && (this.logoMesh.position.copy(t.clone().setY(t.y + 0.011)), this.logoMesh.material.opacity === 0 && ((p = this.logoMeshTween) == null || p.dispose(), this.logoMeshTween = D(1e3).onUpdate(({ progress: v }) => {
|
|
149
149
|
var m;
|
|
150
150
|
(m = this.logoMesh) == null || m.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
151
151
|
}).play())), this.entryDoorMesh) {
|
|
@@ -156,7 +156,7 @@ class pe extends A {
|
|
|
156
156
|
).clone().setY(t.y).sub(t).normalize(), w = t.clone().add(m.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
|
|
157
157
|
this.entryDoorMesh.rotation.z = new a.Vector3(0, 0, -1).angleTo(m), this.entryDoorMesh.position.copy(w), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (y = this.entryDoorMesh) == null || y.material.setValues({ opacity: 1 }) : (I = this.entryDoorMesh) == null || I.material.setValues({ opacity: 0 });
|
|
158
158
|
}
|
|
159
|
-
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
159
|
+
this.roomInfoInstance && this.roomInfoWrapperInstance && t && (this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
160
160
|
});
|
|
161
161
|
r(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: t }) => {
|
|
162
162
|
var o, s;
|
|
@@ -17,7 +17,12 @@ export declare class PrismMesh extends IObject3D {
|
|
|
17
17
|
heightPoint: THREE.Vector3;
|
|
18
18
|
bottomPolygon: PolygonWithEdgeMesh;
|
|
19
19
|
topPolygon: PolygonWithEdgeMesh;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated notice: please use specified center instead, such as `localCenter` or `worldCenter`
|
|
22
|
+
*/
|
|
20
23
|
get center(): THREE.Vector3;
|
|
24
|
+
get localCenter(): THREE.Vector3;
|
|
25
|
+
get worldCenter(): THREE.Vector3;
|
|
21
26
|
get color(): THREE.Color;
|
|
22
27
|
get lineWidth(): number;
|
|
23
28
|
get lineColor(): THREE.Color;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var h = (n, e, t) => (
|
|
4
|
-
import { IObject3D as
|
|
5
|
-
import { anyPositionToVector3 as
|
|
2
|
+
var a = (n, e, t) => e in n ? d(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var h = (n, e, t) => (a(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { IObject3D as r } from "../../shared-utils/three/IObject3D.js";
|
|
5
|
+
import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import * as m from "three";
|
|
8
8
|
import "@realsee/five";
|
|
@@ -14,22 +14,31 @@ import { notNil as c } from "../../shared-utils/isNil.js";
|
|
|
14
14
|
import { PolygonMesh as p } from "./Polygon.js";
|
|
15
15
|
import { LineMesh as y } from "./Line.js";
|
|
16
16
|
import { PolygonWithEdgeMesh as f } from "./PolygonWithEdge.js";
|
|
17
|
-
class B extends
|
|
17
|
+
class B extends r {
|
|
18
18
|
constructor(t) {
|
|
19
19
|
super();
|
|
20
20
|
h(this, "name", "PrismMesh");
|
|
21
21
|
h(this, "heightPoint");
|
|
22
22
|
h(this, "bottomPolygon", new f());
|
|
23
23
|
h(this, "topPolygon", new f());
|
|
24
|
-
h(this, "edgePlanes", new
|
|
24
|
+
h(this, "edgePlanes", new r());
|
|
25
25
|
this.topPolygon.name = "TopPolygon", this.bottomPolygon.name = "BottomPolygon", this.edgePlanes.name = "EdgePlanes", this.addIfNotExists(this.bottomPolygon), t && this.setPoints(t), t && this.setStyle(t);
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated notice: please use specified center instead, such as `localCenter` or `worldCenter`
|
|
29
|
+
*/
|
|
27
30
|
get center() {
|
|
31
|
+
return this.localCenter;
|
|
32
|
+
}
|
|
33
|
+
get localCenter() {
|
|
28
34
|
var s, i;
|
|
29
35
|
const t = (s = this.topPolygon) == null ? void 0 : s.center, o = (i = this.bottomPolygon) == null ? void 0 : i.center;
|
|
30
36
|
if (t && o)
|
|
31
37
|
return new m.Vector3().lerpVectors(t, o, 0.5);
|
|
32
38
|
}
|
|
39
|
+
get worldCenter() {
|
|
40
|
+
return this.updateMatrixWorld(), this.localToWorld(this.localCenter);
|
|
41
|
+
}
|
|
33
42
|
get color() {
|
|
34
43
|
return this.bottomPolygon.color;
|
|
35
44
|
}
|
|
@@ -45,7 +54,7 @@ class B extends P {
|
|
|
45
54
|
});
|
|
46
55
|
}
|
|
47
56
|
setPoints(t) {
|
|
48
|
-
c(t.points) && this.setBottomPoints(t.points), c(t.heightPoint) && this.setTopHeightPoint(
|
|
57
|
+
c(t.points) && this.setBottomPoints(t.points), c(t.heightPoint) && this.setTopHeightPoint(P(t.heightPoint));
|
|
49
58
|
}
|
|
50
59
|
highlight() {
|
|
51
60
|
this.bottomPolygon.highlight(), this.topPolygon.highlight(), this.edgePlanes.children.forEach((t) => {
|
|
@@ -58,7 +67,7 @@ class B extends P {
|
|
|
58
67
|
});
|
|
59
68
|
}
|
|
60
69
|
setBottomPoints(t) {
|
|
61
|
-
this.bottomPolygon.setPoints(t.map(
|
|
70
|
+
this.bottomPolygon.setPoints(t.map(P)), this.heightPoint && this.setTopHeightPoint(this.heightPoint);
|
|
62
71
|
}
|
|
63
72
|
setTopHeightPoint(t) {
|
|
64
73
|
this.heightPoint = t, this.addIfNotExists(this.topPolygon);
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var u = Object.getOwnPropertySymbols;
|
|
3
3
|
var b = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var c = (s, t, e) => t in s ? f(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, d = (s, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
b.call(t, e) &&
|
|
6
|
+
b.call(t, e) && c(s, e, t[e]);
|
|
7
7
|
if (u)
|
|
8
8
|
for (var e of u(t))
|
|
9
|
-
g.call(t, e) &&
|
|
9
|
+
g.call(t, e) && c(s, e, t[e]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var r = (s, t, e) => (
|
|
13
|
-
import { hotkeys as
|
|
14
|
-
import { Sculpt as
|
|
12
|
+
var r = (s, t, e) => (c(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
|
+
import { hotkeys as p } from "../../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
14
|
+
import { Sculpt as n } from "../../index.js";
|
|
15
15
|
import { IObject3D as m } from "../../../shared-utils/three/IObject3D.js";
|
|
16
|
+
import { toArray as y } from "../../../shared-utils/util.js";
|
|
16
17
|
const a = /* @__PURE__ */ new Map();
|
|
17
|
-
class
|
|
18
|
-
constructor(e,
|
|
18
|
+
class A extends m {
|
|
19
|
+
constructor(e, o) {
|
|
19
20
|
super();
|
|
20
21
|
r(this, "name", "Sculpt");
|
|
21
22
|
r(this, "isSculptObject", !0);
|
|
@@ -29,17 +30,17 @@ class x extends m {
|
|
|
29
30
|
*/
|
|
30
31
|
r(this, "config");
|
|
31
32
|
r(this, "editor");
|
|
32
|
-
r(this, "on", (e,
|
|
33
|
-
r(this, "off", (...e) =>
|
|
34
|
-
e != null && e.id && (this.uuid = e.id), this.config =
|
|
33
|
+
r(this, "on", (e, o, i) => n.modules.fiveDomEvents.addEventListener(this, e, o, i));
|
|
34
|
+
r(this, "off", (...e) => n.modules.fiveDomEvents.removeEventListener(this, ...e));
|
|
35
|
+
e != null && e.id && (this.uuid = e.id), this.config = d({ canEdit: !0, occlusionVisibility: !0 }, o), e != null && e.style && (e.style.occlusionVisibility = this.config.occlusionVisibility), this.config.canEdit && (p("backspace, delete", () => {
|
|
35
36
|
this.selected && this.delete();
|
|
36
37
|
}), this.on("click", () => {
|
|
37
|
-
var
|
|
38
|
+
var l, h;
|
|
38
39
|
if (this.pointSelector.enabled)
|
|
39
40
|
return;
|
|
40
41
|
let i = a.get(this.parent.uuid);
|
|
41
|
-
i && (i.selected = !1, i.unhighlight(), (
|
|
42
|
-
}),
|
|
42
|
+
i && (i.selected = !1, i.unhighlight(), (l = i.editor) == null || l.disable()), a.set(this.parent.uuid, this), this.selected = !0, this.highlight(), (h = this.editor) == null || h.enable();
|
|
43
|
+
}), p("esc", () => {
|
|
43
44
|
var i;
|
|
44
45
|
this.selected = !1, this.unhighlight(), !this.pointSelector.enabled && ((i = this.editor) == null || i.disable());
|
|
45
46
|
}));
|
|
@@ -51,13 +52,13 @@ class x extends m {
|
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
get pointSelector() {
|
|
54
|
-
return
|
|
55
|
+
return n.modules.pointSelector;
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* @description 停止创建当前物体,等同于`esc`
|
|
58
59
|
*/
|
|
59
60
|
stopCreating() {
|
|
60
|
-
|
|
61
|
+
n.modules.pointSelector.disable();
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* @description 从场景中删除当前物体
|
|
@@ -77,13 +78,16 @@ class x extends m {
|
|
|
77
78
|
unhighlight() {
|
|
78
79
|
}
|
|
79
80
|
applyObjectMatrixWorld(e) {
|
|
80
|
-
|
|
81
|
+
const o = y(e);
|
|
82
|
+
this.updateMatrixWorld();
|
|
83
|
+
const i = o.map((l) => this.localToWorld(l.clone()));
|
|
84
|
+
return Array.isArray(e) ? i : i[0];
|
|
81
85
|
}
|
|
82
86
|
applyObjectQuaternion(e) {
|
|
83
|
-
const
|
|
84
|
-
return Array.isArray(e) ? e.map((i) => i.clone().applyQuaternion(
|
|
87
|
+
const o = this.quaternion.clone();
|
|
88
|
+
return Array.isArray(e) ? e.map((i) => i.clone().applyQuaternion(o)) : e.clone().applyQuaternion(o);
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
91
|
export {
|
|
88
|
-
|
|
92
|
+
A as BaseObject
|
|
89
93
|
};
|
|
@@ -5,7 +5,7 @@ class m extends a {
|
|
|
5
5
|
super(e, () => {
|
|
6
6
|
const i = () => {
|
|
7
7
|
var s, t;
|
|
8
|
-
const o = (s = e.boxMesh.topPlane
|
|
8
|
+
const o = (s = e.boxMesh.topPlane) == null ? void 0 : s.center, n = (t = e.boxMesh.bottomPlane) == null ? void 0 : t.center, r = new c.Vector3().lerpVectors(o, n, 0.5);
|
|
9
9
|
return { topCenter: o, bottomCenter: n, boxCenter: r };
|
|
10
10
|
};
|
|
11
11
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseEditorWithObjectHelper as l } from "../Base/Editor.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as a from "three";
|
|
3
3
|
class P extends l {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
super(t, () => {
|
|
6
6
|
const i = () => {
|
|
7
7
|
var n, e;
|
|
8
|
-
const o = (n = t.prismMesh.topPolygon
|
|
8
|
+
const o = (n = t.prismMesh.topPolygon) == null ? void 0 : n.center, s = (e = t.prismMesh.bottomPolygon) == null ? void 0 : e.center, r = new a.Vector3().lerpVectors(o, s, 0.5);
|
|
9
9
|
return { topCenter: o, bottomCenter: s, boxCenter: r };
|
|
10
10
|
};
|
|
11
11
|
return {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.30.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (o, t, e) => (
|
|
4
|
-
import { anyPositionToVector3 as
|
|
5
|
-
import * as
|
|
6
|
-
import { vector3ToScreen as
|
|
7
|
-
const
|
|
8
|
-
class
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var c = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var n = (o, t, e) => (c(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { anyPositionToVector3 as l } from "./positionToVector3.js";
|
|
5
|
+
import * as d from "three";
|
|
6
|
+
import { vector3ToScreen as p } from "./five/vector3ToScreen.js";
|
|
7
|
+
const r = "LightTagContainer_shgjakdhwakjdhsja";
|
|
8
|
+
class f {
|
|
9
9
|
constructor(t, e) {
|
|
10
10
|
n(this, "container");
|
|
11
11
|
n(this, "visible", !1);
|
|
@@ -17,19 +17,19 @@ class p {
|
|
|
17
17
|
n(this, "onCameraUpdate", () => {
|
|
18
18
|
if (this.visible === !1)
|
|
19
19
|
return;
|
|
20
|
-
const t =
|
|
20
|
+
const t = p(this.five.camera, this.position);
|
|
21
21
|
t ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
22
22
|
});
|
|
23
23
|
n(this, "onFiveEveryReady", () => {
|
|
24
24
|
var t;
|
|
25
25
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
26
|
-
const e = new
|
|
26
|
+
const e = new d.Raycaster();
|
|
27
27
|
e.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
|
|
28
28
|
const i = (t = this.five.model.intersectRaycaster(e)) == null ? void 0 : t[0];
|
|
29
29
|
(i == null ? void 0 : i.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
this.five = t, this.position =
|
|
32
|
+
this.five = t, this.position = l(e).clone(), this.container = (() => {
|
|
33
33
|
const i = document.createElement("div");
|
|
34
34
|
return i.style.width = "0", i.style.height = "0", i.style.position = "absolute", i;
|
|
35
35
|
})(), this.enable(), this.show();
|
|
@@ -44,9 +44,10 @@ class p {
|
|
|
44
44
|
var i;
|
|
45
45
|
if (this.enabled)
|
|
46
46
|
return;
|
|
47
|
-
this.enabled = !0, this.wrapper = (i = document.getElementById(
|
|
47
|
+
this.enabled = !0, this.wrapper = (i = document.getElementById(r)) != null ? i : (() => {
|
|
48
|
+
var a;
|
|
48
49
|
const s = document.createElement("div");
|
|
49
|
-
return s.id =
|
|
50
|
+
return s.id = r, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", (a = this.five.getElement()) == null || a.parentElement.appendChild(s), s;
|
|
50
51
|
})(), this.wrapper.appendChild(this.container);
|
|
51
52
|
let t = !1;
|
|
52
53
|
const e = () => {
|
|
@@ -63,9 +64,9 @@ class p {
|
|
|
63
64
|
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
return new
|
|
67
|
+
function u(o, t) {
|
|
68
|
+
return new f(o, t);
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
|
-
|
|
71
|
+
u as tag
|
|
71
72
|
};
|
|
@@ -3,13 +3,13 @@ var b = (r, t, e) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var n = (r, t, e) => (b(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import C from "hammerjs";
|
|
5
5
|
import * as l from "three";
|
|
6
|
-
import { Subscribe as
|
|
6
|
+
import { Subscribe as R } from "@realsee/five";
|
|
7
7
|
class Y {
|
|
8
8
|
constructor(t, e) {
|
|
9
9
|
n(this, "width");
|
|
10
10
|
n(this, "height");
|
|
11
11
|
n(this, "containerDom");
|
|
12
|
-
n(this, "hooks", new
|
|
12
|
+
n(this, "hooks", new R());
|
|
13
13
|
n(this, "canvas", document.createElement("canvas"));
|
|
14
14
|
n(this, "config");
|
|
15
15
|
n(this, "state", { enabled: !1 });
|
|
@@ -37,8 +37,10 @@ class Y {
|
|
|
37
37
|
this.canvas.style.transform = `translate3d(${e}px, ${i}px, 100px)`, this.offset = { x: e, y: i };
|
|
38
38
|
});
|
|
39
39
|
var s, h, o, a;
|
|
40
|
-
if (!t.renderer)
|
|
41
|
-
|
|
40
|
+
if (!t.renderer) {
|
|
41
|
+
console.error("Five Render 未初始化");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
42
44
|
this.five = t, this.scale = (s = e == null ? void 0 : e.scale) != null ? s : 2, this.width = (h = e == null ? void 0 : e.width) != null ? h : 190, this.height = (a = (o = e == null ? void 0 : e.height) != null ? o : e == null ? void 0 : e.width) != null ? a : 190, this.config = {
|
|
43
45
|
dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
|
|
44
46
|
autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
|
|
@@ -98,12 +100,12 @@ class Y {
|
|
|
98
100
|
return;
|
|
99
101
|
const { width: t, height: e } = this, { clientWidth: i, clientHeight: s } = this.containerDom, [h, o, a] = (() => {
|
|
100
102
|
if (this.renderCenter instanceof l.Vector3) {
|
|
101
|
-
const
|
|
103
|
+
const c = this.renderCenter.clone().project(this.five.camera);
|
|
102
104
|
return [
|
|
103
105
|
//
|
|
104
|
-
(
|
|
105
|
-
-(
|
|
106
|
-
-(
|
|
106
|
+
(c.x + 1) / 2 * i,
|
|
107
|
+
-(c.x - 1) / 2 * i,
|
|
108
|
+
-(c.y - 1) / 2 * s
|
|
107
109
|
];
|
|
108
110
|
} else
|
|
109
111
|
return [this.renderCenter.x, i - this.renderCenter.x, this.renderCenter.y];
|
|
@@ -119,8 +121,8 @@ class Y {
|
|
|
119
121
|
return [(y.x + 1) / 2 * h.x, (y.y + 1) / 2 * h.y];
|
|
120
122
|
} else
|
|
121
123
|
return [this.renderCenter.x, h.y - this.renderCenter.y];
|
|
122
|
-
})(),
|
|
123
|
-
|
|
124
|
+
})(), c = 1, f = i / t, x = s / t, P = c * t, g = this.five.getPixels(o - f / 2, a - f / 2, f, x, P), m = Math.floor(i * c), u = Math.floor(s * c);
|
|
125
|
+
w(g, m, u);
|
|
124
126
|
const v = new ImageData(m, u);
|
|
125
127
|
v.data.set(g), e.putImageData(v, 0, 0), this.canvas.style.visibility = "visible";
|
|
126
128
|
}
|
|
@@ -134,21 +136,21 @@ class Y {
|
|
|
134
136
|
const {
|
|
135
137
|
min: { x: i, y: s },
|
|
136
138
|
max: { x: h, y: o }
|
|
137
|
-
} = e, a = this.offset.x + t.deltaX,
|
|
138
|
-
return { translateX:
|
|
139
|
+
} = e, a = this.offset.x + t.deltaX, c = this.offset.y + t.deltaY, f = Math.min(Math.max(a, i), h), x = Math.min(Math.max(c, s), o);
|
|
140
|
+
return { translateX: f, translateY: x };
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
function d(r, t, e) {
|
|
142
144
|
const i = r[t], s = r[e];
|
|
143
145
|
i === void 0 || s === void 0 || (r[t] = s, r[e] = i);
|
|
144
146
|
}
|
|
145
|
-
function
|
|
147
|
+
function w(r, t, e) {
|
|
146
148
|
const i = e / 2;
|
|
147
149
|
for (let s = 1; s <= i; s++) {
|
|
148
150
|
const h = e - (s - 1);
|
|
149
151
|
for (let o = 1; o <= t; o++) {
|
|
150
|
-
const a = (s - 1) * t + o - 1,
|
|
151
|
-
d(r, a * 4 + 0,
|
|
152
|
+
const a = (s - 1) * t + o - 1, c = (h - 1) * t + o - 1;
|
|
153
|
+
d(r, a * 4 + 0, c * 4 + 0), d(r, a * 4 + 1, c * 4 + 1), d(r, a * 4 + 2, c * 4 + 2), d(r, a * 4 + 3, c * 4 + 3);
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
}
|
|
@@ -7,6 +7,8 @@ export declare function getIntersectFromRelativePosition(five: Five, position: {
|
|
|
7
7
|
raycaster: THREE.Raycaster;
|
|
8
8
|
isVirtual: boolean;
|
|
9
9
|
floor: number;
|
|
10
|
+
model?: import("@realsee/five").Model;
|
|
11
|
+
viewLayer?: import("@realsee/five").ModelViewLayer;
|
|
10
12
|
distance: number;
|
|
11
13
|
distanceToRay?: number;
|
|
12
14
|
point: THREE.Vector3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/core": "^7.22.9",
|
|
43
|
-
"@realsee/five": "6.0.0-alpha.
|
|
43
|
+
"@realsee/five": "6.0.0-alpha.98",
|
|
44
44
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
45
45
|
"@tsconfig/svelte": "^4.0.1",
|
|
46
46
|
"@tweenjs/tween.js": "^23.1.1",
|