@realsee/dnalogel 3.71.8-dev.1 → 3.72.0-alpha.2
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 +0 -3
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +7 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +11 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +9 -2
- package/dist/Sculpt/index.d.ts +8 -3
- package/dist/index.cjs.js +42 -42
- package/dist/index.js +864 -875
- package/dist/index.umd.js +47 -47
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- 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/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- 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 +18 -18
- 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.LegacyPointHelper.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.PointDomHelper.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/FloorplanGuidePlugin.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/MeasurePlugin.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/SculptPluginForFive.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.blinkWithPreset.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.cleanup.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.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.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.replaceStaticPrefix.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/BoxAnimationConfig.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.ExtraRouteData.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/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.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.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/ModelMakerPluginType.TrianglesItemObjectData.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/SculptConfig.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconAnimationConfig.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.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.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.ObjectInitialState.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/SculptType.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/FloorplanGuidePluginParameterType.html +1 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
- 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/GuideLinePluginType.RouteConfig.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/MeasureEndReason.html +1 -1
- package/docs/types/MeasurePluginConfig.html +2 -2
- 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 +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- 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/SculptType.Theme.html +2 -2
- 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/TagPlacement.html +2 -2
- 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.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/Util.SupportedTarget.html +2 -2
- package/docs/types/Util.Target.html +2 -2
- package/docs/types/Util.ThreeObject.html +2 -2
- 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.ANIME_PRESETS.html +2 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
- 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/DigitalPerformancePlugin/controller/index.js +2 -3
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +0 -1
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +39 -47
- package/libs/DigitalPerformancePlugin/index.js +9 -10
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +43 -43
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +48 -52
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +7 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +26 -10
- package/libs/Sculpt/Objects/Polygon/index.d.ts +11 -0
- package/libs/Sculpt/Objects/Polygon/index.js +177 -142
- package/libs/Sculpt/Objects/Prism/index.d.ts +9 -2
- package/libs/Sculpt/Objects/Prism/index.js +49 -49
- package/libs/Sculpt/index.d.ts +8 -3
- package/libs/Sculpt/index.js +74 -62
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.js +169 -239
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (
|
|
4
|
-
var d = (
|
|
1
|
+
var j = Object.defineProperty;
|
|
2
|
+
var V = (l, v, e) => v in l ? j(l, v, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[v] = e;
|
|
3
|
+
var r = (l, v, e) => (V(l, typeof v != "symbol" ? v + "" : v, e), e);
|
|
4
|
+
var d = (l, v, e) => new Promise((t, s) => {
|
|
5
5
|
var i = (o) => {
|
|
6
6
|
try {
|
|
7
7
|
n(e.next(o));
|
|
@@ -15,19 +15,19 @@ var d = (M, v, e) => new Promise((t, s) => {
|
|
|
15
15
|
s(a);
|
|
16
16
|
}
|
|
17
17
|
}, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(i, h);
|
|
18
|
-
n((e = e.apply(
|
|
18
|
+
n((e = e.apply(l, v)).next());
|
|
19
19
|
});
|
|
20
20
|
import * as y from "three";
|
|
21
|
-
import { Vector3 as
|
|
22
|
-
import { centerPoint as
|
|
21
|
+
import { Vector3 as b } from "three";
|
|
22
|
+
import { centerPoint as P } from "../../../shared-utils/three/centerPoint.js";
|
|
23
23
|
import { loadPicture as E } from "../../../shared-utils/three/loadTexture.js";
|
|
24
|
-
import { QuadrangleGeometry as
|
|
25
|
-
import { getVideoTexture as
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
27
|
-
import { getPositionsByObjectFit as
|
|
28
|
-
import { FragmentTransparencyMaterial as
|
|
29
|
-
import { getNormal as
|
|
30
|
-
import { CONST as
|
|
24
|
+
import { QuadrangleGeometry as I, QuadrangleMesh as F } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
+
import { getVideoTexture as _ } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as B, Image_Play_Icon as S } from "../../Assets/Icon.js";
|
|
27
|
+
import { getPositionsByObjectFit as M } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
+
import { FragmentTransparencyMaterial as G } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
|
+
import { getNormal as T } from "../../../shared-utils/three/getNormal.js";
|
|
30
|
+
import { CONST as x } from "../../../shared-utils/constants.js";
|
|
31
31
|
import "../../../shared-utils/math/pointsIsRectangle.js";
|
|
32
32
|
import "../../../shared-utils/device.js";
|
|
33
33
|
class H extends y.Mesh {
|
|
@@ -62,15 +62,15 @@ class z extends H {
|
|
|
62
62
|
const i = (n = s == null ? void 0 : s.resolveZFighting) != null ? n : !0;
|
|
63
63
|
let h = t;
|
|
64
64
|
if (i) {
|
|
65
|
-
const o =
|
|
65
|
+
const o = T(t).multiplyScalar(x.Z_FIGHTING_OFFSET);
|
|
66
66
|
h = t.map((a) => a.clone().add(o));
|
|
67
67
|
}
|
|
68
68
|
E(e).then(({ texture: o, transparent: a }) => {
|
|
69
|
-
var
|
|
70
|
-
const
|
|
71
|
-
this.originRatio = o.image.width / o.image.height, this.objectFit = (
|
|
72
|
-
const c =
|
|
73
|
-
this.position.copy(u), this.geometry = f, this.material =
|
|
69
|
+
var p;
|
|
70
|
+
const g = new y.MeshBasicMaterial({ map: o, transparent: a, side: y.DoubleSide });
|
|
71
|
+
this.originRatio = o.image.width / o.image.height, this.objectFit = (p = s == null ? void 0 : s.objectFit) != null ? p : "contain";
|
|
72
|
+
const c = M(this.objectFit, h, o.image.width / o.image.height), u = P(...c), m = c.map((w) => w.clone().sub(u)), f = new I(m);
|
|
73
|
+
this.position.copy(u), this.geometry = f, this.material = g;
|
|
74
74
|
}).catch((o) => {
|
|
75
75
|
console.error(`Imageplane error: ${o == null ? void 0 : o.message}`);
|
|
76
76
|
});
|
|
@@ -80,10 +80,10 @@ class z extends H {
|
|
|
80
80
|
let h = t;
|
|
81
81
|
const { resolveZFighting: n } = s != null ? s : {};
|
|
82
82
|
if (n) {
|
|
83
|
-
const u =
|
|
83
|
+
const u = T(t).multiplyScalar(x.Z_FIGHTING_OFFSET);
|
|
84
84
|
h = t.map((m) => m.clone().add(u));
|
|
85
85
|
}
|
|
86
|
-
const o =
|
|
86
|
+
const o = M(i != null ? i : "contain", h, this.originRatio), a = P(...o), g = o.map((u) => u.clone().sub(a)), c = new I(g);
|
|
87
87
|
this.objectFit = i != null ? i : "contain", this.position.copy(a), this.geometry = c;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -96,7 +96,7 @@ class J extends H {
|
|
|
96
96
|
playButton: n = "withText",
|
|
97
97
|
paused: o = !0,
|
|
98
98
|
videoTextureMap: a,
|
|
99
|
-
ImageTextureMap:
|
|
99
|
+
ImageTextureMap: g,
|
|
100
100
|
domEvents: c
|
|
101
101
|
} = s != null ? s : {};
|
|
102
102
|
super();
|
|
@@ -114,7 +114,7 @@ class J extends H {
|
|
|
114
114
|
r(this, "buttonMesh");
|
|
115
115
|
r(this, "videoTextureMap");
|
|
116
116
|
r(this, "ImageTextureMap");
|
|
117
|
-
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ?
|
|
117
|
+
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? B : n === "withoutText" ? S : typeof n == "string" ? n : S)(), this.videoCoverSrc = i, this.objectFit = h, this.videoTextureMap = a, this.ImageTextureMap = g, this.domEvents = c, this.position.copy(P(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
118
118
|
o ? this.addButtonMesh() : this.play(!0);
|
|
119
119
|
}), this.addEventListener("removed", () => {
|
|
120
120
|
this.remove(...this.children);
|
|
@@ -161,8 +161,8 @@ class J extends H {
|
|
|
161
161
|
return this.coverMesh;
|
|
162
162
|
if (!this.videoCoverSrc)
|
|
163
163
|
return;
|
|
164
|
-
const { texture: t, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), i = new y.MeshBasicMaterial({ transparent: !1, map: t, side: y.DoubleSide }), h =
|
|
165
|
-
return n.position.copy(new
|
|
164
|
+
const { texture: t, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), i = new y.MeshBasicMaterial({ transparent: !1, map: t, side: y.DoubleSide }), h = M(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new F(h, i);
|
|
165
|
+
return n.position.copy(new b(0, 0, 0)), n.name = "videoCoverMesh", n;
|
|
166
166
|
}))();
|
|
167
167
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
168
168
|
});
|
|
@@ -177,15 +177,13 @@ class J extends H {
|
|
|
177
177
|
return this.videoMesh;
|
|
178
178
|
if (!this.src)
|
|
179
179
|
return;
|
|
180
|
-
const i = this.getVideoTexture(this.src), h = new y.MeshBasicMaterial({ transparent: !1, map: i, side: y.DoubleSide }), n = yield new Promise((
|
|
181
|
-
i.metadataLoaded ?
|
|
180
|
+
const i = this.getVideoTexture(this.src), h = new y.MeshBasicMaterial({ transparent: !1, map: i, side: y.DoubleSide }), n = yield new Promise((a) => {
|
|
181
|
+
i.metadataLoaded ? a(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight)) : i.addEventListener(
|
|
182
182
|
"videoLoaded",
|
|
183
|
-
() =>
|
|
183
|
+
() => a(M(this.objectFit, this.cornerPoints, i.image.videoWidth / i.image.videoHeight))
|
|
184
184
|
);
|
|
185
|
-
}), o = new
|
|
186
|
-
o.name = "videoMesh", o.position.copy(new
|
|
187
|
-
const a = b(n).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
188
|
-
return o.position.add(a), o;
|
|
185
|
+
}), o = new F(n, h);
|
|
186
|
+
return o.name = "videoMesh", o.position.copy(new b(0, 0, 0)), o;
|
|
189
187
|
}))();
|
|
190
188
|
if (!e)
|
|
191
189
|
return;
|
|
@@ -211,11 +209,11 @@ class J extends H {
|
|
|
211
209
|
if (this.children.includes(this.buttonMesh))
|
|
212
210
|
return;
|
|
213
211
|
const e = yield (() => d(this, null, function* () {
|
|
214
|
-
var m, f,
|
|
212
|
+
var m, f, p, w;
|
|
215
213
|
if (this.buttonMesh)
|
|
216
214
|
return this.buttonMesh;
|
|
217
|
-
const t = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, s = (w = (
|
|
218
|
-
c.position.copy(new
|
|
215
|
+
const t = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, s = (w = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, i = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, i) / i * 0.3, { texture: o, transparent: a } = yield this.getImageTexture(this.buttonSrc), g = M("contain", this.cornerPoints, o.image.width / o.image.height), c = new F(g, new G(o));
|
|
216
|
+
c.position.copy(new b(0, 0, 0)), c.name = "buttonMesh", c.scale.set(n, n, n), c.material.side = y.DoubleSide, this.domEvents.addAutoBindEventListener(
|
|
219
217
|
c,
|
|
220
218
|
"click",
|
|
221
219
|
() => {
|
|
@@ -223,7 +221,7 @@ class J extends H {
|
|
|
223
221
|
},
|
|
224
222
|
{ noEmitWhenHide: !0 }
|
|
225
223
|
);
|
|
226
|
-
const u =
|
|
224
|
+
const u = T(g).multiplyScalar(x.Z_FIGHTING_OFFSET);
|
|
227
225
|
return c.position.add(u), c;
|
|
228
226
|
}))();
|
|
229
227
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
@@ -242,13 +240,13 @@ class J extends H {
|
|
|
242
240
|
var s, i;
|
|
243
241
|
if ((s = this.videoTextureMap) != null && s.has(e))
|
|
244
242
|
return this.videoTextureMap.get(e);
|
|
245
|
-
const t =
|
|
243
|
+
const t = _(e);
|
|
246
244
|
return (i = this.videoTextureMap) == null || i.set(e, t), t;
|
|
247
245
|
}
|
|
248
246
|
changePointsOrParams(e) {
|
|
249
247
|
return d(this, null, function* () {
|
|
250
248
|
const { cornerPoints: t, params: s } = e;
|
|
251
|
-
t && (this.cornerPoints = t, this.position.copy(
|
|
249
|
+
t && (this.cornerPoints = t, this.position.copy(P(...t))), s != null && s.objectFit && (this.objectFit = s.objectFit), yield this.updateAllMeshes();
|
|
252
250
|
});
|
|
253
251
|
}
|
|
254
252
|
updateAllMeshes() {
|
|
@@ -260,33 +258,31 @@ class J extends H {
|
|
|
260
258
|
return d(this, null, function* () {
|
|
261
259
|
if (!this.videoMesh || !this.src)
|
|
262
260
|
return;
|
|
263
|
-
const e = this.getVideoTexture(this.src), t = yield new Promise((
|
|
264
|
-
e.metadataLoaded ?
|
|
261
|
+
const e = this.getVideoTexture(this.src), t = yield new Promise((n) => {
|
|
262
|
+
e.metadataLoaded ? n(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight)) : e.addEventListener(
|
|
265
263
|
"videoLoaded",
|
|
266
|
-
() =>
|
|
264
|
+
() => n(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
|
|
267
265
|
);
|
|
268
|
-
}), s =
|
|
269
|
-
this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new
|
|
270
|
-
const n = b(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
271
|
-
this.videoMesh.position.add(n);
|
|
266
|
+
}), s = P(...t), i = t.map((n) => n.clone().sub(s)), h = new I(i);
|
|
267
|
+
this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new b(0, 0, 0));
|
|
272
268
|
});
|
|
273
269
|
}
|
|
274
270
|
updateCoverMesh() {
|
|
275
271
|
return d(this, null, function* () {
|
|
276
272
|
if (!this.coverMesh || !this.videoCoverSrc)
|
|
277
273
|
return;
|
|
278
|
-
const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t =
|
|
279
|
-
this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new
|
|
274
|
+
const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = M(this.objectFit, this.cornerPoints, e.image.width / e.image.height), s = P(...t), i = t.map((n) => n.clone().sub(s)), h = new I(i);
|
|
275
|
+
this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new b(0, 0, 0));
|
|
280
276
|
});
|
|
281
277
|
}
|
|
282
278
|
updateButtonMesh() {
|
|
283
279
|
return d(this, null, function* () {
|
|
284
|
-
var m, f,
|
|
280
|
+
var m, f, p, w;
|
|
285
281
|
if (!this.buttonMesh)
|
|
286
282
|
return;
|
|
287
|
-
const { texture: e } = yield this.getImageTexture(this.buttonSrc), t =
|
|
288
|
-
this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new
|
|
289
|
-
const u =
|
|
283
|
+
const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = M("contain", this.cornerPoints, e.image.width / e.image.height), s = P(...t), i = t.map((C) => C.clone().sub(s)), h = new I(i), n = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, o = (w = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, a = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, a) / a * 0.3;
|
|
284
|
+
this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new b(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
|
|
285
|
+
const u = T(t).multiplyScalar(x.Z_FIGHTING_OFFSET);
|
|
290
286
|
this.buttonMesh.position.add(u);
|
|
291
287
|
});
|
|
292
288
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { Polygon } from '.';
|
|
2
2
|
import type { FiveDomEvent } from '../../../shared-utils/five/FiveDomEvents';
|
|
3
|
-
import * as THREE from 'three';
|
|
4
3
|
import { LineEditorAbstract } from '../Line/Editor';
|
|
5
4
|
export declare class PolygonEditor extends LineEditorAbstract<Polygon> {
|
|
6
|
-
get points():
|
|
5
|
+
get points(): import("three").Vector3[];
|
|
7
6
|
constructor(originObject: Polygon);
|
|
7
|
+
/**
|
|
8
|
+
* 更新所有 PointMesh 的位置
|
|
9
|
+
*/
|
|
10
|
+
updatePointMeshes(): void;
|
|
11
|
+
protected onDragstart: (event: FiveDomEvent) => void;
|
|
8
12
|
protected onDrag: (event: FiveDomEvent) => void;
|
|
13
|
+
protected onDragend: (event: FiveDomEvent) => void;
|
|
9
14
|
}
|
|
@@ -1,23 +1,39 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Sculpt as
|
|
5
|
-
import { getIntersectByRaycaster as
|
|
6
|
-
import { LineEditorAbstract as
|
|
7
|
-
class
|
|
2
|
+
var g = (s, i, t) => i in s ? a(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t;
|
|
3
|
+
var n = (s, i, t) => (g(s, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
+
import { Sculpt as h } from "../../index.js";
|
|
5
|
+
import { getIntersectByRaycaster as c } from "../../../shared-utils/five/getPosition.js";
|
|
6
|
+
import { LineEditorAbstract as p } from "../Line/Editor.js";
|
|
7
|
+
class m extends p {
|
|
8
8
|
constructor(t) {
|
|
9
9
|
super(t);
|
|
10
|
-
|
|
10
|
+
n(this, "onDragstart", (t) => {
|
|
11
|
+
const e = t.target;
|
|
12
|
+
this.draggingPoints = this.pointMeshes.filter((o) => o.position.equals(e.position));
|
|
13
|
+
});
|
|
14
|
+
n(this, "onDrag", (t) => {
|
|
11
15
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
12
16
|
return;
|
|
13
|
-
const e =
|
|
14
|
-
this.draggingPoints.forEach((
|
|
17
|
+
const e = c(h.modules.five, t.raycaster), o = this.originObject.areaMesh.projectPoint(e.point);
|
|
18
|
+
this.draggingPoints.forEach((r) => r.position.copy(o)), this.originObject.areaMesh.setPoints(this.pointMeshes.map((r) => r.position));
|
|
19
|
+
});
|
|
20
|
+
n(this, "onDragend", (t) => {
|
|
21
|
+
this.draggingPoints = [], this.originObject.recordHistory();
|
|
15
22
|
});
|
|
16
23
|
}
|
|
17
24
|
get points() {
|
|
18
25
|
return this.originObject.areaMesh.points;
|
|
19
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* 更新所有 PointMesh 的位置
|
|
29
|
+
*/
|
|
30
|
+
updatePointMeshes() {
|
|
31
|
+
const t = this.originObject.areaMesh.points;
|
|
32
|
+
this.pointMeshes.forEach((e, o) => {
|
|
33
|
+
t[o] && e.position.copy(t[o]);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
20
36
|
}
|
|
21
37
|
export {
|
|
22
|
-
|
|
38
|
+
m as PolygonEditor
|
|
23
39
|
};
|
|
@@ -18,6 +18,9 @@ export type PolygonCreateConfig = Partial<PolygonStyle & CreateLimitConfig & Pol
|
|
|
18
18
|
export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
19
19
|
readonly type = "Polygon";
|
|
20
20
|
areaMesh: AreaMesh;
|
|
21
|
+
private historyStack;
|
|
22
|
+
private currentHistoryIndex;
|
|
23
|
+
private maxHistorySize;
|
|
21
24
|
get editor(): PolygonEditor;
|
|
22
25
|
_editor: PolygonEditor;
|
|
23
26
|
private creatingObject?;
|
|
@@ -39,6 +42,14 @@ export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
|
39
42
|
canRedo(): boolean;
|
|
40
43
|
undo(): void;
|
|
41
44
|
redo(): void;
|
|
45
|
+
/**
|
|
46
|
+
* 记录当前状态到历史记录
|
|
47
|
+
*/
|
|
48
|
+
recordHistory(): void;
|
|
49
|
+
/**
|
|
50
|
+
* 恢复快照
|
|
51
|
+
*/
|
|
52
|
+
private restoreSnapshot;
|
|
42
53
|
create(params?: PolygonCreateConfig): Promise<void>;
|
|
43
54
|
}
|
|
44
55
|
export declare function createPolygon(areaMesh: AreaMesh, pointSelector: PointSelector, config?: PolygonCreateConfig): {
|