@realsee/dnalogel 3.60.0-alpha.0 → 3.60.1-alpha.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 +13 -0
- package/components/index.js +112 -109
- package/dist/ItemLabelPlugin/typings.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -0
- package/dist/components/PaintBrush/Controller.d.ts +1 -1
- package/dist/index.cjs.js +62 -64
- package/dist/index.js +5980 -6063
- package/dist/index.umd.js +62 -64
- package/dist/shared-utils/CSS3DRender/CSS3DObject.d.ts +0 -7
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +10 -10
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +98 -100
- package/libs/ItemLabelPlugin/Plugin.js +15 -14
- package/libs/ItemLabelPlugin/index.js +5 -4
- package/libs/ItemLabelPlugin/typings.d.ts +2 -2
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +25 -24
- package/libs/ModelItemLabelPlugin/index.js +5 -4
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -2
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +54 -49
- package/libs/PanoSpatialTagPlugin/Plugin.js +14 -14
- package/libs/PanoTagPlugin/Components/Tag/index.js +56 -56
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +34 -34
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +54 -58
- package/libs/base/BasePlugin.js +1 -1
- package/libs/components/PaintBrush/Controller.d.ts +1 -1
- package/libs/components/PaintBrush/Controller.js +6 -6
- package/libs/index.js +144 -145
- package/libs/shared-utils/CSS3DRender/CSS3DObject.d.ts +0 -7
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +18 -19
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +7 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/FBXLoader/index.js +100 -100
- package/package.json +1 -1
- package/dist/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/components/PaintBrush/Subscribe.d.ts +0 -76
- package/libs/components/PaintBrush/Subscribe.js +0 -84
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var k = Object.defineProperty, O = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var w = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var f = (e, o, t) => o in e ? k(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, b = (e, o) => {
|
|
6
6
|
for (var t in o || (o = {}))
|
|
7
7
|
w.call(o, t) && f(e, t, o[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (C)
|
|
9
|
+
for (var t of C(o))
|
|
10
10
|
x.call(o, t) && f(e, t, o[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var y = (e, o, t) => new Promise((
|
|
12
|
+
}, P = (e, o) => O(e, F(o));
|
|
13
|
+
var v = (e, o, t) => (f(e, typeof o != "symbol" ? o + "" : o, t), t);
|
|
14
|
+
var y = (e, o, t) => new Promise((m, p) => {
|
|
15
15
|
var n = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
a(t.next(r));
|
|
18
18
|
} catch (i) {
|
|
19
|
-
|
|
19
|
+
p(i);
|
|
20
20
|
}
|
|
21
21
|
}, d = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
a(t.throw(r));
|
|
24
24
|
} catch (i) {
|
|
25
|
-
|
|
25
|
+
p(i);
|
|
26
26
|
}
|
|
27
|
-
}, a = (r) => r.done ?
|
|
27
|
+
}, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(n, d);
|
|
28
28
|
a((t = t.apply(e, o)).next());
|
|
29
29
|
});
|
|
30
30
|
import { initialCSS3DRender as L } from "../../../shared-utils/CSS3DRender/index.js";
|
|
@@ -193,39 +193,39 @@ import "../../../shared-utils/safeObj.js";
|
|
|
193
193
|
import "../../utils/Cache.js";
|
|
194
194
|
import "../../../shared-utils/promise/withResolvers.js";
|
|
195
195
|
class Uo extends R {
|
|
196
|
-
constructor(t,
|
|
197
|
-
super(t,
|
|
198
|
-
|
|
196
|
+
constructor(t, m) {
|
|
197
|
+
super(t, m);
|
|
198
|
+
v(this, "loading", !1);
|
|
199
199
|
/** 加载外部模型 */
|
|
200
|
-
|
|
200
|
+
v(this, "loadModel", () => y(this, null, function* () {
|
|
201
201
|
var d, a;
|
|
202
202
|
const t = this.data.modelUrl;
|
|
203
203
|
if (!t || (this.loading = !0, yield H(this.five), !this.plugin.tags.includes(this)))
|
|
204
204
|
return;
|
|
205
|
-
const
|
|
205
|
+
const m = A(t).then((r) => y(this, null, function* () {
|
|
206
206
|
var l;
|
|
207
207
|
const i = Object.assign(r.scene, {
|
|
208
208
|
customID: this.id,
|
|
209
209
|
isTagModel: !0,
|
|
210
210
|
removeEventListener: this.getConfig().clickable === !1 ? () => {
|
|
211
|
-
} : this.addObjectClickHandler(this, r.scene, (
|
|
212
|
-
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event:
|
|
211
|
+
} : this.addObjectClickHandler(this, r.scene, (g) => {
|
|
212
|
+
this.plugin.hooks.emit("click", { target: "TagModel", tag: this, event: g });
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
return new T.Matrix4().fromArray(this.matrix).decompose(i.position, i.quaternion, i.scale), i.updateWorldMatrix(!0, !0), i.visible = this.visible, (l = this.getConfig().modelConfig) != null && l.autoLookAtEnabled && i.lookAt(this.five.camera.position.clone().setY(i.position.y)), i;
|
|
216
216
|
}));
|
|
217
|
-
this.model = { promise:
|
|
218
|
-
const
|
|
219
|
-
if (this.loading = !1, ((d = this.model) == null ? void 0 : d.promise) !==
|
|
217
|
+
this.model = { promise: m };
|
|
218
|
+
const p = yield m;
|
|
219
|
+
if (this.loading = !1, ((d = this.model) == null ? void 0 : d.promise) !== m || !this.plugin.tags.includes(this))
|
|
220
220
|
return;
|
|
221
|
-
this.model.object =
|
|
221
|
+
this.model.object = p;
|
|
222
222
|
const n = this.plugin.gltfObjectGroup.children.find((r) => r.customID === this.id);
|
|
223
223
|
if (n && (this.plugin.gltfObjectGroup.remove(n), n.removeEventListener()), G(this)) {
|
|
224
224
|
const r = this.data.mediaPosition.map(S);
|
|
225
225
|
if (this.computeRenderType() === "Mesh" && !this.mediaPlane) {
|
|
226
226
|
this.mediaPlane = new D(this.data.mediaData[0].url, r, { objectFit: this.data.objectFit });
|
|
227
227
|
const i = new T.Vector3().addVectors(r[0], r[2]).divideScalar(2);
|
|
228
|
-
this.mediaPlane.position.copy(i),
|
|
228
|
+
this.mediaPlane.position.copy(i), p.add(this.mediaPlane);
|
|
229
229
|
}
|
|
230
230
|
if (this.computeRenderType() !== "Mesh") {
|
|
231
231
|
(a = this.tag3DContentSvelte) == null || a.dispose();
|
|
@@ -233,13 +233,13 @@ class Uo extends R {
|
|
|
233
233
|
i.classList.add("tag-media-container");
|
|
234
234
|
const c = "black";
|
|
235
235
|
i.style.backgroundColor = c, i.style.border = `3px solid ${c}`;
|
|
236
|
-
const l =
|
|
237
|
-
s.position.add(
|
|
236
|
+
const l = b({ mode: "behind", cornerPoints: r, container: i }, this.config.tag3DConfig), g = this.computeRenderType() === "BehindDom" || l.mode === "behind" ? "behind" : "front", s = new N(P(b({}, l), { mode: g })), u = this.computeNormal();
|
|
237
|
+
s.position.add(u.clone().setLength(V.Z_FIGHTING_OFFSET)), p.add(s);
|
|
238
238
|
let h;
|
|
239
239
|
s.mode === "behind" && this.config.clickable !== !1 && (h = this.addObjectClickHandler(this, s, (M) => {
|
|
240
240
|
this.plugin.hooks.emit("click", { event: M, target: "TagContent", tag: this });
|
|
241
241
|
}));
|
|
242
|
-
const
|
|
242
|
+
const j = new I({
|
|
243
243
|
target: i,
|
|
244
244
|
props: {
|
|
245
245
|
tag: this,
|
|
@@ -251,35 +251,35 @@ class Uo extends R {
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
this.tag3DContentSvelte = {
|
|
254
|
-
svelteApp:
|
|
254
|
+
svelteApp: j,
|
|
255
255
|
domContainer: {
|
|
256
256
|
css3DObject: s
|
|
257
257
|
},
|
|
258
258
|
css3DInstance: s,
|
|
259
|
-
initialNormal:
|
|
260
|
-
currentNormal:
|
|
259
|
+
initialNormal: u,
|
|
260
|
+
currentNormal: u,
|
|
261
261
|
dispose: () => {
|
|
262
|
-
|
|
262
|
+
j.$destroy(), s.dispose(), h == null || h();
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return this.plugin.gltfObjectGroup.add(
|
|
267
|
+
return this.plugin.gltfObjectGroup.add(p), p;
|
|
268
268
|
}));
|
|
269
269
|
this.state.unfolded = !0, L(this.five), this.loadModel().then(() => this.updateVisible());
|
|
270
270
|
}
|
|
271
271
|
applyVisible() {
|
|
272
|
-
var t,
|
|
273
|
-
(t = this.
|
|
272
|
+
var t, m;
|
|
273
|
+
(t = this.tag3DContentSvelte) == null || t.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (m = this.model) != null && m.object && (this.model.object.visible = this.visible);
|
|
274
274
|
}
|
|
275
275
|
set(...t) {
|
|
276
276
|
super.set(...t), this.loadModel();
|
|
277
277
|
}
|
|
278
278
|
setData(...t) {
|
|
279
|
-
var
|
|
279
|
+
var p;
|
|
280
280
|
super.setData(...t);
|
|
281
|
-
const
|
|
282
|
-
this.computeRenderType() === "Mesh" ? this.mediaPlane && this.mediaPlane.src !== this.data.mediaData[0].url && (this.mediaPlane.removeFromParent(), this.mediaPlane = new D(this.data.mediaData[0].url,
|
|
281
|
+
const m = this.data.mediaPosition.map(S);
|
|
282
|
+
this.computeRenderType() === "Mesh" ? this.mediaPlane && this.mediaPlane.src !== this.data.mediaData[0].url && (this.mediaPlane.removeFromParent(), this.mediaPlane = new D(this.data.mediaData[0].url, m, { objectFit: this.data.objectFit })) : (p = this.tag3DContentSvelte) == null || p.svelteApp.$set({ tag: this });
|
|
283
283
|
}
|
|
284
284
|
computeNormal() {
|
|
285
285
|
return E(this.data.mediaPosition);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var b = Object.defineProperty, I = Object.defineProperties;
|
|
2
|
+
var R = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var V = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (n, i, t) => i in n ? b(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t, f = (n, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
V.call(i, t) && P(n, t, i[t]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var t of v(i))
|
|
10
|
+
F.call(i, t) && P(n, t, i[t]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
13
|
-
var D = (n, i, t) => new Promise((
|
|
12
|
+
}, y = (n, i) => I(n, R(i));
|
|
13
|
+
var D = (n, i, t) => new Promise((m, o) => {
|
|
14
14
|
var p = (s) => {
|
|
15
15
|
try {
|
|
16
16
|
e(t.next(s));
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
17
|
+
} catch (a) {
|
|
18
|
+
o(a);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, r = (s) => {
|
|
21
21
|
try {
|
|
22
22
|
e(t.throw(s));
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
23
|
+
} catch (a) {
|
|
24
|
+
o(a);
|
|
25
25
|
}
|
|
26
|
-
}, e = (s) => s.done ?
|
|
26
|
+
}, e = (s) => s.done ? m(s.value) : Promise.resolve(s.value).then(p, r);
|
|
27
27
|
e((t = t.apply(n, i)).next());
|
|
28
28
|
});
|
|
29
|
-
import { CONST as
|
|
30
|
-
import { CSS3DObjectPlus as
|
|
31
|
-
import { anyPositionToVector3 as
|
|
29
|
+
import { CONST as M } from "../../../shared-utils/constants.js";
|
|
30
|
+
import { CSS3DObjectPlus as k } from "../../../shared-utils/CSS3DRender/CSS3DObject.js";
|
|
31
|
+
import { anyPositionToVector3 as E, arrayPositionToVector3 as S } from "../../../shared-utils/positionToVector3.js";
|
|
32
32
|
import "three";
|
|
33
|
-
import { planeNormal as
|
|
33
|
+
import { planeNormal as w } from "../../utils/planeNormal.js";
|
|
34
34
|
import { VideoPlane as j, ImagePlane as N } from "../../utils/model/mediaPlane.js";
|
|
35
|
-
import
|
|
35
|
+
import G from "../../Components/Tag/index.js";
|
|
36
36
|
import { BaseTag as A } from "./BaseTag.js";
|
|
37
37
|
import "../../../shared-utils/tag.js";
|
|
38
38
|
import "../../../vendor/hammerjs/hammer.js";
|
|
@@ -45,7 +45,7 @@ import "../../../vendor/animejs/lib/anime.es.js";
|
|
|
45
45
|
import { waitFiveModelLoaded as C } from "../../../shared-utils/five/fiveModelLoad.js";
|
|
46
46
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
47
47
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
48
|
-
import { initialCSS3DRender as
|
|
48
|
+
import { initialCSS3DRender as L } from "../../../shared-utils/CSS3DRender/index.js";
|
|
49
49
|
import "../../../shared-utils/even.js";
|
|
50
50
|
import "../../../shared-utils/CSS3DRender/OpacityMesh.js";
|
|
51
51
|
import "../../../shared-utils/three/centerPoint.js";
|
|
@@ -191,14 +191,14 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
191
191
|
import "../../../shared-utils/safeObj.js";
|
|
192
192
|
import "../../utils/Cache.js";
|
|
193
193
|
import "../../../shared-utils/promise/withResolvers.js";
|
|
194
|
-
const
|
|
195
|
-
class
|
|
194
|
+
const O = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
195
|
+
class Ue extends A {
|
|
196
196
|
constructor(i, t) {
|
|
197
197
|
super(i, t), this.state.unfolded = !0, this.loadModel();
|
|
198
198
|
}
|
|
199
199
|
applyVisible() {
|
|
200
|
-
var t,
|
|
201
|
-
this.computeRenderType() === "Mesh" ? ((
|
|
200
|
+
var t, m, o, p, r, e;
|
|
201
|
+
this.computeRenderType() === "Mesh" ? ((m = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : m.type) === "Video" ? this.renderVideoPlane() : ((p = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : p.type) === "Image" && this.renderImagePlane() : ((r = this.tag3DContentSvelte) == null || r.svelteApp.$set({ tag: this, state: this.plugin.state, temporaryState: this.plugin.temporaryState }), (e = this.tag3DContentSvelte) != null && e.css3DInstance && (this.tag3DContentSvelte.css3DInstance.visible = this.visible, this.five.needsRender = !0));
|
|
202
202
|
}
|
|
203
203
|
set(i, t = !0) {
|
|
204
204
|
super.set(i, t), C(this.five).then(() => {
|
|
@@ -206,32 +206,28 @@ class We extends A {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
setData(...i) {
|
|
209
|
-
var
|
|
210
|
-
super.setData(...i), this.computeRenderType() === "Mesh" ? ((
|
|
209
|
+
var m, o, p, r, e;
|
|
210
|
+
super.setData(...i), this.computeRenderType() === "Mesh" ? ((o = (m = this.data.mediaData) == null ? void 0 : m[0]) == null ? void 0 : o.type) === "Video" ? this.renderVideoPlane() : ((r = (p = this.data.mediaData) == null ? void 0 : p[0]) == null ? void 0 : r.type) === "Image" && this.renderImagePlane() : (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({ tag: this });
|
|
211
211
|
}
|
|
212
212
|
loadModel() {
|
|
213
213
|
return D(this, null, function* () {
|
|
214
|
-
var t,
|
|
214
|
+
var t, m, o, p, r, e;
|
|
215
215
|
if (yield C(this.five), this.computeRenderType() === "Mesh")
|
|
216
|
-
((
|
|
216
|
+
((m = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : m.type) === "Video" ? this.renderVideoPlane() : ((p = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : p.type) === "Image" && this.renderImagePlane();
|
|
217
217
|
else {
|
|
218
|
-
|
|
219
|
-
const s = this.position.map(
|
|
220
|
-
(e = (
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
const h = "
|
|
224
|
-
|
|
225
|
-
const l = g(f({}, this.config.tag3DConfig), { mode: "behind", cornerPoints: s, container: m }), S = this.computeRenderType() === "BehindDom" || l.mode === "behind" ? "behind" : "front", d = new E(g(f({}, l), { mode: S }));
|
|
226
|
-
d.__DEBUG_TAG__ = this;
|
|
227
|
-
const u = this.computeNormal();
|
|
228
|
-
d.position.add(u.clone().setLength(k.Z_FIGHTING_OFFSET)), this.plugin.group.add(d);
|
|
218
|
+
L(this.five);
|
|
219
|
+
const s = this.position.map(E);
|
|
220
|
+
(e = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || e.call(r);
|
|
221
|
+
const a = document.createElement("div");
|
|
222
|
+
a.classList.add("tag-media-container");
|
|
223
|
+
const h = f({ mode: "front", cornerPoints: s, container: a }, this.config.tag3DConfig), l = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", d = new k(y(f({}, h), { mode: l })), u = this.computeNormal();
|
|
224
|
+
d.position.add(u.clone().setLength(M.Z_FIGHTING_OFFSET)), this.plugin.group.add(d);
|
|
229
225
|
let c;
|
|
230
226
|
d.mode === "behind" && this.config.clickable !== !1 && (c = this.addObjectClickHandler(this, d, (T) => {
|
|
231
227
|
this.plugin.hooks.emit("click", { event: T, target: "TagContent", tag: this });
|
|
232
228
|
}));
|
|
233
|
-
const
|
|
234
|
-
target:
|
|
229
|
+
const g = new G({
|
|
230
|
+
target: a,
|
|
235
231
|
props: {
|
|
236
232
|
tag: this,
|
|
237
233
|
hooks: this.plugin.hooks,
|
|
@@ -242,7 +238,7 @@ class We extends A {
|
|
|
242
238
|
}
|
|
243
239
|
});
|
|
244
240
|
this.tag3DContentSvelte = {
|
|
245
|
-
svelteApp:
|
|
241
|
+
svelteApp: g,
|
|
246
242
|
domContainer: {
|
|
247
243
|
css3DObject: d
|
|
248
244
|
},
|
|
@@ -250,7 +246,7 @@ class We extends A {
|
|
|
250
246
|
initialNormal: u,
|
|
251
247
|
currentNormal: u,
|
|
252
248
|
dispose: () => {
|
|
253
|
-
|
|
249
|
+
g.$destroy(), d.dispose(), c == null || c();
|
|
254
250
|
}
|
|
255
251
|
}, this.five.needsRender = !0;
|
|
256
252
|
}
|
|
@@ -264,22 +260,22 @@ class We extends A {
|
|
|
264
260
|
const { url: t } = i;
|
|
265
261
|
if (!t)
|
|
266
262
|
return;
|
|
267
|
-
const
|
|
268
|
-
if ((
|
|
269
|
-
const s = this.position.map(
|
|
263
|
+
const m = this.currentVisible, o = (() => !!(this.mediaPlane && !m))(), p = (() => !!(!this.mediaPlane && m))(), r = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
264
|
+
if ((o || r) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), p || r) {
|
|
265
|
+
const s = this.position.map(S), a = new j(t, s, {
|
|
270
266
|
videoCoverSrc: i.videoCoverUrl,
|
|
271
267
|
playButton: this.data.playIcon,
|
|
272
268
|
paused: !((e = this.data.autoplayConfig) != null && e.autoplayVideo),
|
|
273
269
|
objectFit: this.data.objectFit,
|
|
274
|
-
videoTextureMap:
|
|
275
|
-
ImageTextureMap:
|
|
270
|
+
videoTextureMap: O,
|
|
271
|
+
ImageTextureMap: x,
|
|
276
272
|
domEvents: this.plugin.domEvents
|
|
277
273
|
});
|
|
278
|
-
|
|
279
|
-
l.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement:
|
|
274
|
+
a.onVideoReady = (l) => {
|
|
275
|
+
l.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: a.videoInstance }));
|
|
280
276
|
};
|
|
281
277
|
const h = (l) => (this.five.on("renderFrame", l), () => this.five.off("renderFrame", l));
|
|
282
|
-
|
|
278
|
+
a.initialRenderHooks(h), this.mediaPlane = a, this.play = () => a.play(), this.pause = () => a.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
|
|
283
279
|
}
|
|
284
280
|
this.five.needsRender = !0;
|
|
285
281
|
}
|
|
@@ -290,8 +286,8 @@ class We extends A {
|
|
|
290
286
|
const { url: t } = i;
|
|
291
287
|
if (!t)
|
|
292
288
|
return;
|
|
293
|
-
const
|
|
294
|
-
(p || e) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (
|
|
289
|
+
const m = this.position.map(S), o = this.currentVisible, p = (() => !!(this.mediaPlane && !o))(), r = (() => !!(!this.mediaPlane && o))(), e = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
|
|
290
|
+
(p || e) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (r || e) && (this.mediaPlane = new N(t, m, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
|
|
295
291
|
this.mediaPlane,
|
|
296
292
|
"click",
|
|
297
293
|
(s) => {
|
|
@@ -301,9 +297,9 @@ class We extends A {
|
|
|
301
297
|
), this.plugin.imagePlaneGroup.add(this.mediaPlane)), this.five.needsRender = !0;
|
|
302
298
|
}
|
|
303
299
|
computeNormal() {
|
|
304
|
-
return
|
|
300
|
+
return w(this.position);
|
|
305
301
|
}
|
|
306
302
|
}
|
|
307
303
|
export {
|
|
308
|
-
|
|
304
|
+
Ue as PlaneTag
|
|
309
305
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { noop } from './utils';
|
|
2
2
|
import { type PaintBrushAction, type PaintBrushConfigs, type PaintBrushEventMap, type PaintBrushState } from './typings';
|
|
3
|
-
import { Subscribe } from '
|
|
3
|
+
import { Subscribe } from '../../shared-utils/Subscribe';
|
|
4
4
|
export declare class Controller extends Subscribe<PaintBrushEventMap> {
|
|
5
5
|
configs: PaintBrushConfigs;
|
|
6
6
|
private clientWidth;
|
|
@@ -4,17 +4,17 @@ var f = (v, p, t) => (T(v, typeof p != "symbol" ? p + "" : p, t), t);
|
|
|
4
4
|
import { transformCoords as x, getQuadraticCurvePoint as w, nextFrame as D, execInterval as L, queue as S, noop as W, unTransformCoords as E } from "./utils.js";
|
|
5
5
|
import { tween as _ } from "./tween.js";
|
|
6
6
|
import { PaintBrushTypeEnum as g } from "./typings.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
class X extends
|
|
7
|
+
import { uuid as k } from "../../shared-utils/uuid.js";
|
|
8
|
+
import { PaintBrushStyle as M } from "./style.js";
|
|
9
|
+
import { Subscribe as O } from "../../shared-utils/Subscribe.js";
|
|
10
|
+
class X extends O {
|
|
11
11
|
constructor(t) {
|
|
12
12
|
super();
|
|
13
13
|
f(this, "configs");
|
|
14
14
|
f(this, "clientWidth");
|
|
15
15
|
f(this, "clientHeight");
|
|
16
16
|
f(this, "ready", !1);
|
|
17
|
-
f(this, "uuid",
|
|
17
|
+
f(this, "uuid", k());
|
|
18
18
|
f(this, "tween");
|
|
19
19
|
f(this, "tweening", !1);
|
|
20
20
|
f(this, "container");
|
|
@@ -43,7 +43,7 @@ class X extends k {
|
|
|
43
43
|
const t = document.createElement("div");
|
|
44
44
|
t.id = "_gl_paintBrush", document.body.appendChild(t), this.container = t;
|
|
45
45
|
}
|
|
46
|
-
return this.container.innerHTML =
|
|
46
|
+
return this.container.innerHTML = M, this.container;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|