@realsee/dnalogel 3.53.3 → 3.53.5-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 +4 -0
- package/README.md +116 -0
- package/dist/CruisePlugin/typing.d.ts +6 -2
- package/dist/Sculpt/Meshes/Circle.d.ts +3 -1
- package/dist/Sculpt/Meshes/Cylinder.d.ts +4 -2
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +1 -0
- package/dist/index.cjs.js +25 -25
- package/dist/index.js +257 -217
- package/dist/index.umd.js +28 -28
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +61 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +71 -0
- package/docs/classes/ModelMakerPluginInstance.html +57 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +47 -0
- package/docs/classes/Object3DHelperController.html +47 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasurePluginLine.html +24 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +104 -0
- package/docs/classes/Sculpt.html +70 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +12 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +22 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +50 -0
- package/docs/classes/Util.PointSelectorHelper.html +14 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +16 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +34 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.LineMesh.html +29 -0
- package/docs/classes/Util.sculpt.PointMesh.html +20 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +34 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +34 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +35 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +38 -0
- package/docs/classes/WalkController.html +44 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +34 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.absoluteUrl.html +2 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isAbsoluteURL.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +5 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +4 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +70 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ContentTypeMapInterface.html +73 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +7 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +6 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +8 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +23 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +4 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +6 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +8 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +26 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +6 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +5 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +12 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +14 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
- package/docs/interfaces/ModelViewPluginExportType.html +7 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +20 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PluginEventMap.html +15 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +111 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconUrl.html +14 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagStyle.html +5 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/Util.AnimeInstance.html +3 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +7 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +16 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.MagnifierParameter.html +11 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.PointIntersection.html +9 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +5 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +8 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +24 -0
- package/docs/modules/ModelMakerPluginType.html +11 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/Util.html +61 -0
- package/docs/modules/Util.sculpt.html +25 -0
- package/docs/modules.html +266 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +10 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +16 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.animeMap.html +1 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/CruisePlugin/typing.d.ts +6 -2
- package/libs/Sculpt/Meshes/Circle.d.ts +3 -1
- package/libs/Sculpt/Meshes/Circle.js +23 -17
- package/libs/Sculpt/Meshes/CircleWithEdge.js +30 -22
- package/libs/Sculpt/Meshes/Cylinder.d.ts +4 -2
- package/libs/Sculpt/Meshes/Cylinder.js +31 -35
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +14 -14
- package/libs/Sculpt/Meshes/Prism.js +49 -48
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +19 -18
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Box/index.js +45 -42
- package/libs/Sculpt/Objects/Circle/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Circle/index.js +50 -47
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +32 -29
- package/libs/Sculpt/Objects/Line/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Line/index.js +11 -8
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Point/index.js +32 -28
- package/libs/Sculpt/Objects/Polygon/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Polygon/index.js +24 -21
- package/libs/Sculpt/Objects/Polyline/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Polyline/index.js +37 -34
- package/libs/Sculpt/Objects/Prism/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Prism/index.js +47 -44
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +86 -83
- package/libs/Sculpt/utils/three/ColoredMesh.js +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +3 -3
|
@@ -28,9 +28,9 @@ var _ = (s, t, e) => new Promise((c, d) => {
|
|
|
28
28
|
f((e = e.apply(s, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as q } from "../Base/index.js";
|
|
31
|
-
import * as
|
|
31
|
+
import * as P from "three";
|
|
32
32
|
import { PolylineMesh as A } from "../../Meshes/Polyline.js";
|
|
33
|
-
import { AreaMesh as
|
|
33
|
+
import { AreaMesh as D } from "../../Meshes/Area.js";
|
|
34
34
|
import { PolygonEditor as G } from "./Editor.js";
|
|
35
35
|
import { vector3ToArray as J } from "../../../shared-utils/three/vector3ToArray.js";
|
|
36
36
|
import { withResolvers as K } from "../../../shared-utils/promise/withResolvers.js";
|
|
@@ -41,7 +41,7 @@ class se extends q {
|
|
|
41
41
|
u(this, "areaMesh");
|
|
42
42
|
u(this, "_editor");
|
|
43
43
|
u(this, "creatingObject");
|
|
44
|
-
e && (this.areaMesh = new
|
|
44
|
+
e && (this.areaMesh = new D(p(p({}, e.style), e)), this.add(this.areaMesh));
|
|
45
45
|
}
|
|
46
46
|
get editor() {
|
|
47
47
|
return this._editor || (this._editor = new G(this)), this._editor;
|
|
@@ -56,6 +56,9 @@ class se extends q {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
setData(e) {
|
|
60
|
+
e.points && this.areaMesh.setPoints(e.points), this.areaMesh.setStyle(e.style);
|
|
61
|
+
}
|
|
59
62
|
highlight() {
|
|
60
63
|
var e;
|
|
61
64
|
(e = this.areaMesh) == null || e.highlight();
|
|
@@ -85,56 +88,56 @@ class se extends q {
|
|
|
85
88
|
this.children.forEach((d) => {
|
|
86
89
|
d.parent === this && this.remove(d);
|
|
87
90
|
}), this.children.length = 0;
|
|
88
|
-
const c = new
|
|
91
|
+
const c = new D(e);
|
|
89
92
|
this.areaMesh = c, this.add(this.areaMesh), this.creatingObject = Q(this.areaMesh, this.pointSelector, e), yield this.creatingObject.finished, this.config.canEdit && this.editor.enable();
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
function Q(s, t, e) {
|
|
94
|
-
var
|
|
97
|
+
var H;
|
|
95
98
|
const { promise: c, resolve: d, reject: m } = K(), r = s.parent;
|
|
96
99
|
if (!r) {
|
|
97
100
|
m(new Error("No container"));
|
|
98
101
|
return;
|
|
99
102
|
}
|
|
100
|
-
const f = (
|
|
103
|
+
const f = (H = e == null ? void 0 : e.limit) != null ? H : "none", i = new A(v(p({}, s.style), { opacity: 1 }));
|
|
101
104
|
r == null || r.add(i);
|
|
102
105
|
const l = new A(v(p({}, s.style), { dashed: !0, lengthEnable: !1 }));
|
|
103
106
|
r == null || r.add(l), t.enable();
|
|
104
107
|
const o = [];
|
|
105
108
|
let n, a, C = !1, E;
|
|
106
|
-
const y = [], x = () => o.length > 0,
|
|
109
|
+
const y = [], x = () => o.length > 0, M = () => y.length > 0, k = () => {
|
|
107
110
|
x() && (y.push(o.pop()), w(E), t.pointSelectorHelper.magnifier.render());
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
+
}, B = () => {
|
|
112
|
+
M() && (o.push(y.pop()), w(E), t.pointSelectorHelper.magnifier.render());
|
|
113
|
+
}, R = (h) => {
|
|
111
114
|
y.length = 0;
|
|
112
115
|
const b = o.length === 0 ? h.point : n.clone();
|
|
113
|
-
o.push(b), s.setPoints(o, { closed: !1 }), C && (
|
|
116
|
+
o.push(b), s.setPoints(o, { closed: !1 }), C && (U(), d());
|
|
114
117
|
}, w = (h) => {
|
|
115
118
|
const b = () => {
|
|
116
119
|
i.setPoints([]), l.setPoints([]), s.setPoints(o), t.pointSelectorHelper.magnifier.render();
|
|
117
120
|
};
|
|
118
121
|
if (!h || (E = h, !(o != null && o.length)))
|
|
119
122
|
return b();
|
|
120
|
-
const
|
|
121
|
-
if (o.length < 3 && (f === "none" ? (n = h.point, i.setPoints([
|
|
123
|
+
const g = o.at(-1).clone();
|
|
124
|
+
if (o.length < 3 && (f === "none" ? (n = h.point, i.setPoints([g, n]), l.setPoints([])) : f === "xoz" ? (a = a != null ? a : new P.Plane().setFromNormalAndCoplanarPoint(new P.Vector3(0, 1, 0), o[0]), t.plane = a, n = a.projectPoint(h.point, new P.Vector3()), i.setPoints([g, n]), l.setPoints([n, h.point])) : f === "y" && (o.length === 1 ? (n = h.point, i.setPoints([g, n]), l.setPoints([])) : (a = a != null ? a : new P.Plane().setFromCoplanarPoints(o[0], o[1], new P.Vector3(0, 1, 0).add(o[0])), t.plane = a, n = a.projectPoint(h.point, new P.Vector3()), i.setPoints([g, n]), l.setPoints([n, h.point])))), o.length >= 3) {
|
|
122
125
|
n = s.projectPoint(h.point);
|
|
123
126
|
const j = o[0], T = 0.2;
|
|
124
|
-
j.distanceTo(n) < T || j.distanceTo(h.point) < T ? (n = j, h.point.copy(j), t.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 }), C = !0) : C = !1, i.setPoints([
|
|
127
|
+
j.distanceTo(n) < T || j.distanceTo(h.point) < T ? (n = j, h.point.copy(j), t.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 }), C = !0) : C = !1, i.setPoints([g, n]), l.setPoints([n, h.point]);
|
|
125
128
|
}
|
|
126
129
|
o.length >= 2 ? (s.setPoints([...o, n], { closed: !1 }), s.line.setPoints(s.points.slice(0, -1)), s.isBlank ? (t.cursorError = !0, i.setStyle({ lineColor: 16734553 }), l.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, i.setStyle({ lineColor: s.lineColor }), l.setStyle({ lineColor: s.lineColor }))) : s.setPoints([]);
|
|
130
|
+
}, U = () => {
|
|
131
|
+
t.off("select", R), t.off("intersectionUpdate", w), t.off("disable", W), t.plane = null, t.disable(), r == null || r.remove(i, l);
|
|
127
132
|
}, W = () => {
|
|
128
|
-
|
|
129
|
-
}, H = () => {
|
|
130
|
-
W(), r == null || r.remove(s, l, i), m(new Error("Cancelled"));
|
|
133
|
+
U(), r == null || r.remove(s, l, i), m(new Error("Cancelled"));
|
|
131
134
|
};
|
|
132
|
-
return t.on("select",
|
|
135
|
+
return t.on("select", R), t.on("intersectionUpdate", w), t.on("disable", W), {
|
|
133
136
|
finished: c,
|
|
134
137
|
canUndo: x,
|
|
135
|
-
canRedo:
|
|
136
|
-
undo:
|
|
137
|
-
redo:
|
|
138
|
+
canRedo: M,
|
|
139
|
+
undo: k,
|
|
140
|
+
redo: B
|
|
138
141
|
};
|
|
139
142
|
}
|
|
140
143
|
export {
|
|
@@ -25,6 +25,7 @@ export declare class Polyline extends BaseObject<PolylineImportData> {
|
|
|
25
25
|
type: string;
|
|
26
26
|
};
|
|
27
27
|
constructor(data?: PolylineImportData, config?: Partial<BaseObjectConfig>);
|
|
28
|
+
setData(data: Partial<PolylineImportData>): void;
|
|
28
29
|
highlight(): void;
|
|
29
30
|
unhighlight(): void;
|
|
30
31
|
canUndo(): void;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = Object.defineProperty, A = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var x = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var v = (n, t, e) => t in n ?
|
|
5
|
+
var v = (n, t, e) => t in n ? D(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, p = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
T.call(t, e) && v(n, e, t[e]);
|
|
8
8
|
if (x)
|
|
9
9
|
for (var e of x(t))
|
|
10
10
|
k.call(t, e) && v(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
}, M = (n, t) =>
|
|
12
|
+
}, M = (n, t) => A(n, F(t));
|
|
13
13
|
var P = (n, t, e) => (v(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var R = (n, t, e) => new Promise((
|
|
15
|
-
var w = (
|
|
14
|
+
var R = (n, t, e) => new Promise((o, f) => {
|
|
15
|
+
var w = (s) => {
|
|
16
16
|
try {
|
|
17
|
-
c(e.next(
|
|
17
|
+
c(e.next(s));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
f(a);
|
|
20
20
|
}
|
|
21
|
-
}, b = (
|
|
21
|
+
}, b = (s) => {
|
|
22
22
|
try {
|
|
23
|
-
c(e.throw(
|
|
23
|
+
c(e.throw(s));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
f(a);
|
|
26
26
|
}
|
|
27
|
-
}, c = (
|
|
27
|
+
}, c = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(w, b);
|
|
28
28
|
c((e = e.apply(n, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { PolylineMesh as U, PolylineWithDotsMesh as V } from "../../Meshes/Polyline.js";
|
|
@@ -34,8 +34,8 @@ import { PolylineEditor as B } from "./Editor.js";
|
|
|
34
34
|
import { vector3ToArray as H } from "../../../shared-utils/three/vector3ToArray.js";
|
|
35
35
|
import { withResolvers as I } from "../../../shared-utils/promise/withResolvers.js";
|
|
36
36
|
class Y extends z {
|
|
37
|
-
constructor(e,
|
|
38
|
-
super(e,
|
|
37
|
+
constructor(e, o) {
|
|
38
|
+
super(e, o);
|
|
39
39
|
P(this, "type", "Polyline");
|
|
40
40
|
P(this, "polyLineMesh");
|
|
41
41
|
P(this, "_editor");
|
|
@@ -55,6 +55,9 @@ class Y extends z {
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
+
setData(e) {
|
|
59
|
+
e.points && this.polyLineMesh.setPoints(e.points), this.polyLineMesh.setStyle(e.style);
|
|
60
|
+
}
|
|
58
61
|
highlight() {
|
|
59
62
|
var e;
|
|
60
63
|
(e = this.polyLineMesh) == null || e.highlight();
|
|
@@ -82,47 +85,47 @@ class Y extends z {
|
|
|
82
85
|
create(e) {
|
|
83
86
|
return R(this, null, function* () {
|
|
84
87
|
this.removeChildren();
|
|
85
|
-
const
|
|
86
|
-
this.polyLineMesh =
|
|
88
|
+
const o = new V(e);
|
|
89
|
+
this.polyLineMesh = o, this.add(this.polyLineMesh), this.creatingObject = N(o, this.pointSelector, e), yield this.creatingObject.finished, this.config.canEdit && this.editor.enable();
|
|
87
90
|
});
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
93
|
function N(n, t, e) {
|
|
91
94
|
var E;
|
|
92
|
-
const
|
|
93
|
-
if (!
|
|
95
|
+
const o = n.parent;
|
|
96
|
+
if (!o)
|
|
94
97
|
return;
|
|
95
|
-
const { promise: f, resolve: w, reject: b } = I(), c = (E = e == null ? void 0 : e.limit) != null ? E : "none",
|
|
96
|
-
|
|
98
|
+
const { promise: f, resolve: w, reject: b } = I(), c = (E = e == null ? void 0 : e.limit) != null ? E : "none", s = new U(n.style);
|
|
99
|
+
o.add(s);
|
|
97
100
|
const a = new U(M(p({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
98
|
-
|
|
101
|
+
o.add(a), t.enable();
|
|
99
102
|
const i = [];
|
|
100
103
|
let r, l, j;
|
|
101
|
-
const g = [],
|
|
102
|
-
|
|
104
|
+
const g = [], L = () => i.length > 0, O = () => g.length > 0, W = () => {
|
|
105
|
+
L() && (g.push(i.pop()), n.setPoints(i), y(j), t.pointSelectorHelper.magnifier.render());
|
|
103
106
|
}, _ = () => {
|
|
104
|
-
|
|
107
|
+
O() && (i.push(g.pop()), n.setPoints(i), y(j), t.pointSelectorHelper.magnifier.render());
|
|
105
108
|
}, C = (h) => {
|
|
106
109
|
g.length = 0;
|
|
107
|
-
const
|
|
108
|
-
i.push(
|
|
109
|
-
},
|
|
110
|
-
const
|
|
111
|
-
|
|
110
|
+
const u = i.length === 0 ? h.point : r.clone();
|
|
111
|
+
i.push(u), n.setPoints(i);
|
|
112
|
+
}, y = (h) => {
|
|
113
|
+
const u = () => {
|
|
114
|
+
s.setPoints([]), a.setPoints([]), r = null;
|
|
112
115
|
};
|
|
113
116
|
if (!h || (j = h, !(i != null && i.length)))
|
|
114
|
-
return
|
|
115
|
-
const
|
|
116
|
-
c === "none" ? (r = h.point,
|
|
117
|
+
return u();
|
|
118
|
+
const m = i.at(-1).clone();
|
|
119
|
+
c === "none" ? (r = h.point, s.setPoints([m, r])) : c === "xoz" ? (l = l != null ? l : new d.Plane().setFromNormalAndCoplanarPoint(new d.Vector3(0, 1, 0), i[0]), t.plane = l, r = l.projectPoint(h.point, new d.Vector3()), s.setPoints([m, r]), a.setPoints([r, h.point])) : c === "y" && (i.length === 1 ? (r = h.point, s.setPoints([m, r])) : (l = l != null ? l : new d.Plane().setFromCoplanarPoints(i[0], i[1], new d.Vector3(0, 1, 0).add(i[0])), t.plane = l, r = l.projectPoint(h.point, new d.Vector3()), s.setPoints([m, r]), a.setPoints([r, h.point])));
|
|
117
120
|
};
|
|
118
|
-
return t.on("select", C), t.on("intersectionUpdate",
|
|
119
|
-
if (t.off("select", C), t.off("intersectionUpdate",
|
|
120
|
-
return
|
|
121
|
+
return t.on("select", C), t.on("intersectionUpdate", y), t.on("disable", () => {
|
|
122
|
+
if (t.off("select", C), t.off("intersectionUpdate", y), t.plane = null, o.remove(s), o.remove(a), i.length < 2)
|
|
123
|
+
return o.remove(n), b(new Error("Cancelled"));
|
|
121
124
|
w();
|
|
122
125
|
}), {
|
|
123
126
|
finished: f,
|
|
124
|
-
canUndo:
|
|
125
|
-
canRedo:
|
|
127
|
+
canUndo: L,
|
|
128
|
+
canRedo: O,
|
|
126
129
|
undo: W,
|
|
127
130
|
redo: _
|
|
128
131
|
};
|
|
@@ -24,6 +24,7 @@ export declare class Prism extends BaseObject<PrismImportData> {
|
|
|
24
24
|
readonly type: string;
|
|
25
25
|
};
|
|
26
26
|
constructor(data?: PrismImportData, config?: Partial<BaseObjectConfig>);
|
|
27
|
+
setData(data: Partial<PrismImportData>): void;
|
|
27
28
|
highlight(): void;
|
|
28
29
|
unhighlight(): void;
|
|
29
30
|
create(params?: Partial<PrismStyle>): Promise<void>;
|
|
@@ -2,54 +2,54 @@ var v = Object.defineProperty, L = Object.defineProperties;
|
|
|
2
2
|
var O = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var u = Object.getOwnPropertySymbols;
|
|
4
4
|
var W = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var d = (
|
|
6
|
-
for (var t in
|
|
7
|
-
W.call(
|
|
5
|
+
var d = (i, s, t) => s in i ? v(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t, p = (i, s) => {
|
|
6
|
+
for (var t in s || (s = {}))
|
|
7
|
+
W.call(s, t) && d(i, t, s[t]);
|
|
8
8
|
if (u)
|
|
9
|
-
for (var t of u(
|
|
10
|
-
_.call(
|
|
11
|
-
return
|
|
12
|
-
}, w = (
|
|
13
|
-
var
|
|
14
|
-
var f = (
|
|
15
|
-
var m = (
|
|
9
|
+
for (var t of u(s))
|
|
10
|
+
_.call(s, t) && d(i, t, s[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, w = (i, s) => L(i, O(s));
|
|
13
|
+
var c = (i, s, t) => (d(i, typeof s != "symbol" ? s + "" : s, t), t);
|
|
14
|
+
var f = (i, s, t) => new Promise((e, o) => {
|
|
15
|
+
var m = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
n(t.next(
|
|
17
|
+
n(t.next(r));
|
|
18
18
|
} catch (h) {
|
|
19
|
-
|
|
19
|
+
o(h);
|
|
20
20
|
}
|
|
21
|
-
}, l = (
|
|
21
|
+
}, l = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
n(t.throw(
|
|
23
|
+
n(t.throw(r));
|
|
24
24
|
} catch (h) {
|
|
25
|
-
|
|
25
|
+
o(h);
|
|
26
26
|
}
|
|
27
|
-
}, n = (
|
|
28
|
-
n((t = t.apply(
|
|
27
|
+
}, n = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(m, l);
|
|
28
|
+
n((t = t.apply(i, s)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as j } from "../Base/index.js";
|
|
31
31
|
import * as C from "three";
|
|
32
32
|
import { createPolygon as A } from "../Polygon/index.js";
|
|
33
33
|
import { PrismMesh as x } from "../../Meshes/Prism.js";
|
|
34
|
-
import { LineMesh as
|
|
35
|
-
import { PrismMeshEditor as
|
|
36
|
-
import { rayOnLine as
|
|
37
|
-
import { getNormal as
|
|
34
|
+
import { LineMesh as D } from "../../Meshes/Line.js";
|
|
35
|
+
import { PrismMeshEditor as T } from "../../Editors/PrismMeshEditor.js";
|
|
36
|
+
import { rayOnLine as U } from "../../utils/three/rayOnLine.js";
|
|
37
|
+
import { getNormal as B } from "../../../shared-utils/three/getNormal.js";
|
|
38
38
|
import { vector3ToArray as E } from "../../../shared-utils/three/vector3ToArray.js";
|
|
39
39
|
import { AreaMesh as N } from "../../Meshes/Area.js";
|
|
40
40
|
class X extends j {
|
|
41
41
|
constructor(t, e) {
|
|
42
42
|
super(t, e);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
t && (this.prismMesh = new x(
|
|
43
|
+
c(this, "type", "Prism");
|
|
44
|
+
c(this, "prismMesh");
|
|
45
|
+
c(this, "_editor");
|
|
46
|
+
t && (this.prismMesh = new x(p(p({}, t.style), t)), this.add(this.prismMesh));
|
|
47
47
|
}
|
|
48
48
|
get editor() {
|
|
49
|
-
return this._editor || (this._editor = new
|
|
49
|
+
return this._editor || (this._editor = new T(this.prismMesh)), this._editor;
|
|
50
50
|
}
|
|
51
51
|
get data() {
|
|
52
|
-
return w(
|
|
52
|
+
return w(p({}, this.baseData), {
|
|
53
53
|
points: E(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
54
54
|
heightPoint: E(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
55
55
|
style: {
|
|
@@ -59,6 +59,9 @@ class X extends j {
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
+
setData(t) {
|
|
63
|
+
this.prismMesh.setPoints(t), this.prismMesh.setStyle(t.style);
|
|
64
|
+
}
|
|
62
65
|
highlight() {
|
|
63
66
|
var t;
|
|
64
67
|
(t = this.prismMesh) == null || t.highlight();
|
|
@@ -73,30 +76,30 @@ class X extends j {
|
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
|
-
function R(
|
|
79
|
+
function R(i, s) {
|
|
77
80
|
return f(this, null, function* () {
|
|
78
|
-
const t =
|
|
79
|
-
t.add(e), yield A(e,
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const m = e.points.at(-1), l =
|
|
83
|
-
return
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
},
|
|
81
|
+
const t = i.parent, e = new N(i.style);
|
|
82
|
+
t.add(e), yield A(e, s).finished, t.remove(e), i.setPoints({ points: e.points });
|
|
83
|
+
const o = new D();
|
|
84
|
+
o.name = "LineHelper", t.add(o);
|
|
85
|
+
const m = e.points.at(-1), l = B(e.points), n = m.clone().add(l.clone().multiplyScalar(10)), r = m.clone().sub(l.clone().multiplyScalar(10));
|
|
86
|
+
return o.setPoints([n, r]), s.enable(), new Promise((h, H) => {
|
|
87
|
+
const M = (a) => {
|
|
88
|
+
y(), h();
|
|
89
|
+
}, P = (a) => {
|
|
87
90
|
if (!(a != null && a.raycaster))
|
|
88
91
|
return;
|
|
89
|
-
const b =
|
|
92
|
+
const b = U({
|
|
90
93
|
raycaster: a.raycaster,
|
|
91
|
-
line: new C.Line3(n,
|
|
94
|
+
line: new C.Line3(n, r)
|
|
92
95
|
});
|
|
93
|
-
b &&
|
|
94
|
-
}, M = () => {
|
|
95
|
-
i.off("select", P), i.off("intersectionUpdate", g), i.off("disable", y), t.remove(r), i.disable();
|
|
96
|
+
b && i.setPoints({ heightPoint: b });
|
|
96
97
|
}, y = () => {
|
|
97
|
-
M(), t.remove(
|
|
98
|
+
s.off("select", M), s.off("intersectionUpdate", P), s.off("disable", g), t.remove(o), s.disable();
|
|
99
|
+
}, g = () => {
|
|
100
|
+
y(), t.remove(i), H(new Error("Cancelled"));
|
|
98
101
|
};
|
|
99
|
-
|
|
102
|
+
s.on("select", M), s.on("intersectionUpdate", P), s.on("disable", g);
|
|
100
103
|
});
|
|
101
104
|
});
|
|
102
105
|
}
|
|
@@ -26,6 +26,7 @@ export declare class Rectangle extends BaseObject<RectangleImportData> {
|
|
|
26
26
|
type: string;
|
|
27
27
|
};
|
|
28
28
|
constructor(data?: RectangleImportData, config?: Partial<BaseObjectConfig>);
|
|
29
|
+
setData(data: Partial<RectangleImportData>): void;
|
|
29
30
|
highlight(): void;
|
|
30
31
|
unhighlight(): void;
|
|
31
32
|
create(config?: Partial<RectangleWithEdgeMeshStyle & CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|