@realsee/dnalogel 3.41.1-alpha.0 → 3.41.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 +7 -0
- package/dist/CruisePlugin/BaseController.d.ts +2 -0
- package/dist/CurrentPanoImagePlugin/Controller.d.ts +0 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -3
- package/dist/base/BasePlugin.d.ts +0 -2
- package/dist/index.cjs.js +55 -55
- package/dist/index.js +4382 -4401
- package/dist/index.umd.js +52 -52
- package/dist/shared-utils/Utils/FiveUtil.d.ts +0 -1
- package/dist/shared-utils/five/FiveDomEvents.d.ts +0 -1
- package/dist/shared-utils/three/blink.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +4 -6
- package/libs/AreaMakerPlugin/index.js +3 -5
- package/libs/AreaMakerPlugin/utils/Item.js +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +2 -3
- package/libs/CSS3DRenderPlugin/index.js +5 -6
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CruisePlugin/BaseController.d.ts +2 -0
- package/libs/CruisePlugin/BaseController.js +36 -36
- package/libs/CruisePlugin/Move.js +5 -6
- package/libs/CruisePlugin/Work.js +6 -7
- package/libs/CruisePlugin/index.js +9 -10
- package/libs/CurrentPanoImagePlugin/Controller.d.ts +0 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +11 -13
- package/libs/CurrentPanoImagePlugin/index.js +4 -6
- package/libs/GuideLinePlugin/Controller.js +8 -9
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -6
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +71 -76
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -7
- package/libs/GuideLinePlugin/index.js +9 -10
- package/libs/ModelMakerPlugin/Controller.js +3 -5
- package/libs/ModelMakerPlugin/index.js +3 -5
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -3
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +6 -7
- package/libs/ModelTVVideoPlugin/Plugin.js +3 -4
- package/libs/ModelTVVideoPlugin/index.js +2 -3
- package/libs/Object3DHelperPlugin/Controller.js +14 -16
- package/libs/Object3DHelperPlugin/index.js +6 -8
- package/libs/PanoCompassPlugin/Controller.js +3 -5
- package/libs/PanoCompassPlugin/index.js +4 -6
- package/libs/PanoDoorLabelPlugin/BaseController.js +7 -9
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -5
- package/libs/PanoDoorLabelPlugin/index.js +4 -6
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -4
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +34 -35
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +49 -50
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -5
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +2 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +3 -4
- package/libs/PanoMeasurePlugin/index.js +14 -16
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -4
- package/libs/PanoSpatialTagPlugin/index.js +0 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +9 -11
- package/libs/PanoTagPlugin/controller/TagComputer.js +10 -12
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -5
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -5
- package/libs/PanoTagPlugin/controller/index.js +6 -8
- package/libs/PanoTagPlugin/index.js +12 -14
- package/libs/PanoVideoPlugin/Controller.js +3 -5
- package/libs/PanoVideoPlugin/index.js +6 -8
- package/libs/PipelinePlugin/Controller.js +23 -25
- package/libs/PipelinePlugin/index.js +4 -6
- package/libs/base/BasePlugin.d.ts +0 -2
- package/libs/base/BasePlugin.js +13 -14
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +11 -14
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -5
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -6
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -5
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -6
- package/libs/index.js +128 -129
- package/libs/shared-utils/Utils/FiveUtil.d.ts +0 -1
- package/libs/shared-utils/Utils/FiveUtil.js +7 -11
- package/libs/shared-utils/five/FiveDomEvents.d.ts +0 -1
- package/libs/shared-utils/five/FiveDomEvents.js +42 -46
- package/libs/shared-utils/five/fiveModelLoad.js +17 -26
- package/libs/shared-utils/five/getPosition.js +23 -24
- package/libs/shared-utils/log.js +3 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +9 -10
- package/libs/shared-utils/three/blink.d.ts +1 -1
- package/libs/shared-utils/three/blink.js +77 -70
- package/libs/shared-utils/three/getIntersect.js +18 -19
- package/package.json +1 -1
- package/README.md +0 -116
- package/dist/shared-utils/five/getFiveModel.d.ts +0 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/main.js +0 -58
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1367
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -731
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -694
- package/docs/classes/CSS3DRender.html +0 -778
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -481
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -894
- package/docs/classes/Magnifier.html +0 -485
- package/docs/classes/ModelRoomLabelController.html +0 -403
- package/docs/classes/MoveController.html +0 -681
- package/docs/classes/Object3DHelperController.html +0 -645
- package/docs/classes/PaintBrush.html +0 -507
- package/docs/classes/PanoMeasurePluginLine.html +0 -527
- package/docs/classes/PanoMeasurePluginModel.html +0 -576
- package/docs/classes/PanoMeasurePluginPoint.html +0 -367
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -572
- package/docs/classes/PanoTagPluginController.html +0 -1132
- package/docs/classes/Util.BetterTween.html +0 -421
- package/docs/classes/Util.Interval.html +0 -437
- package/docs/classes/Util.LineSegments.html +0 -389
- package/docs/classes/Util.Magnifier.html +0 -508
- package/docs/classes/Util.Object3D.html +0 -411
- package/docs/classes/Util.PointDomHelper.html +0 -412
- package/docs/classes/Util.PointHelper.html +0 -403
- package/docs/classes/Util.PointSelectorHelper.html +0 -459
- package/docs/classes/Util.Rectangle.html +0 -460
- package/docs/classes/WalkController.html +0 -700
- package/docs/enums/CameraMovementEffect.html +0 -315
- package/docs/enums/ContentType.html +0 -461
- package/docs/enums/DIRECTION.html +0 -325
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/DimensionType.html +0 -315
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -318
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -325
- package/docs/enums/PaintBrushTypeEnum.html +0 -318
- package/docs/enums/PointType.html +0 -315
- package/docs/enums/Rotation.html +0 -322
- package/docs/functions/AreaMakerPlugin.html +0 -295
- package/docs/functions/CSS3DRenderPlugin.html +0 -293
- package/docs/functions/CameraMovementPlugin.html +0 -298
- package/docs/functions/CruisePlugin.html +0 -295
- package/docs/functions/CurrentPanoImagePlugin.html +0 -295
- package/docs/functions/GuideLinePlugin.html +0 -295
- package/docs/functions/ItemLabelPlugin.html +0 -295
- package/docs/functions/MapviewFloorplanPlugin.html +0 -295
- package/docs/functions/ModelChassisCompassPlugin.html +0 -298
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -298
- package/docs/functions/ModelFloorplanPlugin.html +0 -295
- package/docs/functions/ModelItemLabelPlugin.html +0 -295
- package/docs/functions/ModelRoomLabelPlugin.html +0 -293
- package/docs/functions/ModelTVVideoPlugin.html +0 -295
- package/docs/functions/ModelViewPlugin.html +0 -298
- package/docs/functions/MovePlugin.html +0 -295
- package/docs/functions/Object3DHelperPlugin.html +0 -293
- package/docs/functions/PanoCompassPlugin.html +0 -295
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -299
- package/docs/functions/PanoDoorLabelPlugin.html +0 -295
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -295
- package/docs/functions/PanoMeasurePlugin.html +0 -295
- package/docs/functions/PanoRulerPlugin.html +0 -298
- package/docs/functions/PanoRulerProPlugin.html +0 -298
- package/docs/functions/PanoSpatialTagPlugin.html +0 -298
- package/docs/functions/PanoTagPlugin.html +0 -300
- package/docs/functions/PanoVideoPlugin.html +0 -304
- package/docs/functions/PipelinePlugin.html +0 -293
- package/docs/functions/TopviewFloorplanPlugin.html +0 -295
- package/docs/functions/Util.absoluteUrl.html +0 -331
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -334
- package/docs/functions/Util.equal.html +0 -343
- package/docs/functions/Util.getCoordsFromClient.html +0 -333
- package/docs/functions/Util.getCoordsFromElement.html +0 -333
- package/docs/functions/Util.getFrameTime.html +0 -325
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -333
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -333
- package/docs/functions/Util.isAbsoluteURL.html +0 -326
- package/docs/functions/Util.isModelLike.html +0 -326
- package/docs/functions/Util.isNil.html +0 -334
- package/docs/functions/Util.isPanoramaLike.html +0 -326
- package/docs/functions/Util.nextFrame.html +0 -339
- package/docs/functions/Util.notNil.html +0 -334
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -355
- package/docs/functions/Util.tweenProgress.html +0 -328
- package/docs/functions/Util.uuid.html +0 -324
- package/docs/functions/pluginFlag.html +0 -293
- package/docs/index.html +0 -358
- package/docs/interfaces/AddTagConfig.html +0 -308
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -335
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -340
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -626
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -397
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -382
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -339
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -332
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -331
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -360
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -454
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -330
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -363
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -364
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -366
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -724
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -390
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -426
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -416
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -356
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -324
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -392
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -387
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -526
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -328
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -320
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -342
- package/docs/interfaces/EventMap.html +0 -547
- package/docs/interfaces/FloorplanBounding.html +0 -337
- package/docs/interfaces/FloorplanData.html +0 -340
- package/docs/interfaces/FloorplanEntrance.html +0 -365
- package/docs/interfaces/FloorplanExtraObject.html +0 -355
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -344
- package/docs/interfaces/FloorplanFloorData.html +0 -333
- package/docs/interfaces/FloorplanImagePosition.html +0 -319
- package/docs/interfaces/FloorplanObserver.html +0 -337
- package/docs/interfaces/FloorplanOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanPosition.html +0 -319
- package/docs/interfaces/FloorplanRoomItem.html +0 -407
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -325
- package/docs/interfaces/FloorplanServerBounding.html +0 -337
- package/docs/interfaces/FloorplanServerComputedData.html +0 -336
- package/docs/interfaces/FloorplanServerData.html +0 -319
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -336
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -322
- package/docs/interfaces/FloorplanServerEntrance.html +0 -365
- package/docs/interfaces/FloorplanServerFloorData.html +0 -333
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -319
- package/docs/interfaces/FloorplanServerObserver.html +0 -337
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -333
- package/docs/interfaces/FloorplanServerPosition.html +0 -319
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -419
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -325
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -328
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -367
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -531
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -362
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -353
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -452
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -342
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -352
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -522
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -349
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -532
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -314
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -335
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -360
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -376
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -358
- package/docs/interfaces/HelperOffset.html +0 -337
- package/docs/interfaces/ImagePlaneGroup.html +0 -311
- package/docs/interfaces/ItemLabelPluginData.html +0 -308
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -329
- package/docs/interfaces/MinMax.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -315
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -351
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -315
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -322
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -359
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -308
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -393
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -315
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -308
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -329
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -353
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -308
- package/docs/interfaces/ModelViewPluginExportType.html +0 -421
- package/docs/interfaces/Object3DHelperState.html +0 -322
- package/docs/interfaces/ObjectHelperControllers.html +0 -329
- package/docs/interfaces/PaintBrushAction.html +0 -368
- package/docs/interfaces/PaintBrushConfigs.html +0 -366
- package/docs/interfaces/PaintBrushState.html +0 -350
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -430
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -287
- package/docs/interfaces/PanoMeasureParameterType.html +0 -454
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -322
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -319
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -315
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -325
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -382
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -331
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -322
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -358
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -328
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -315
- package/docs/interfaces/PanoRulerProPluginState.html +0 -322
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -301
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -290
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -358
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -340
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -436
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -336
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -357
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -343
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -336
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -328
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -346
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -425
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -319
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -354
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -373
- package/docs/interfaces/Point.html +0 -322
- package/docs/interfaces/Room.html +0 -329
- package/docs/interfaces/RoomInfo.html +0 -315
- package/docs/interfaces/RoomLabel.html +0 -391
- package/docs/interfaces/RoomRules.html +0 -290
- package/docs/interfaces/Rooms.html +0 -290
- package/docs/interfaces/Scissor.html +0 -349
- package/docs/interfaces/State.html +0 -336
- package/docs/interfaces/TagCacheInterface.html +0 -367
- package/docs/interfaces/TagConfig.html +0 -570
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -311
- package/docs/interfaces/TagIconUrl.html +0 -368
- package/docs/interfaces/TagObjectGroup.html +0 -311
- package/docs/interfaces/TagStyle.html +0 -321
- package/docs/interfaces/Tags.html +0 -2825
- package/docs/interfaces/TemporaryState.html +0 -308
- package/docs/interfaces/Util.MagnifierParameter.html +0 -396
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -355
- package/docs/interfaces/Util.PointIntersection.html +0 -370
- package/docs/modules/AreaMakerPluginType.html +0 -330
- package/docs/modules/CruisePluginTypes.html +0 -333
- package/docs/modules/CurrentPanoImagePluginType.html +0 -302
- package/docs/modules/GuideLineItem.html +0 -294
- package/docs/modules/GuideLineModeItem.html +0 -299
- package/docs/modules/GuideLinePluginType.html +0 -355
- package/docs/modules/PanoVideoPluginType.html +0 -306
- package/docs/modules/Util.html +0 -356
- package/docs/modules.html +0 -564
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -359
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -325
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -307
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -307
- package/docs/types/ArrayPosition.html +0 -284
- package/docs/types/AudioAppearance.html +0 -284
- package/docs/types/AudioTagTypeConfigKey.html +0 -284
- package/docs/types/CSS3DRenderExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginExportType.html +0 -284
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -284
- package/docs/types/ClassFunctionParameters.html +0 -291
- package/docs/types/Color.html +0 -284
- package/docs/types/ContentTypeConfigKey.html +0 -284
- package/docs/types/ContentTypeConfigKeySplit.html +0 -284
- package/docs/types/ContentTypeMap.html +0 -284
- package/docs/types/Create3DDomContainerReturnType.html +0 -284
- package/docs/types/Create3DElementReturnType.html +0 -284
- package/docs/types/CruisePluginExportType.html +0 -284
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -323
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -300
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -284
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -296
- package/docs/types/DeprecatedTagProperty.html +0 -299
- package/docs/types/Direction-1.html +0 -284
- package/docs/types/Direction4.html +0 -284
- package/docs/types/ElementRenderer.html +0 -308
- package/docs/types/FloorplanRuleLabels.html +0 -287
- package/docs/types/FloorplanServerRuleLabels.html +0 -284
- package/docs/types/GuideLinePluginExportType.html +0 -284
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -357
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -378
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -311
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -314
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -314
- package/docs/types/GuideLinePluginType.PathItem.html +0 -314
- package/docs/types/GuideLinePluginType.PluginData.html +0 -323
- package/docs/types/HelperEventMap.html +0 -429
- package/docs/types/InternalHelperEventMap.html +0 -380
- package/docs/types/LoadTagConfig.html +0 -284
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/MediaData.html +0 -305
- package/docs/types/MediaStore.html +0 -289
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -291
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -284
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -284
- package/docs/types/ModelId.html +0 -284
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -284
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -284
- package/docs/types/MoveArgs.html +0 -294
- package/docs/types/MoveOpts.html +0 -292
- package/docs/types/Object3DHelperEventMap.html +0 -377
- package/docs/types/ObjectFit.html +0 -284
- package/docs/types/PaintBrushEventMap.html +0 -315
- package/docs/types/PanoCompassPluginData.html +0 -284
- package/docs/types/PanoCompassPluginExportType.html +0 -284
- package/docs/types/PanoCompassPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -284
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -284
- package/docs/types/PanoIndex.html +0 -284
- package/docs/types/PanoMeasurePluginEvent.html +0 -284
- package/docs/types/PanoMeasureReturnType.html +0 -284
- package/docs/types/PanoSpatialTagPluginId.html +0 -284
- package/docs/types/PanoTagPluginExportInterface.html +0 -284
- package/docs/types/PanoTagPluginParamsInterface.html +0 -284
- package/docs/types/PanoVideoPluginParameterType.html +0 -284
- package/docs/types/PanoVideoPluginReturnType.html +0 -284
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -292
- package/docs/types/PipelinePluginParameterType.html +0 -284
- package/docs/types/PipelinePluginReturnType.html +0 -284
- package/docs/types/PlaneTag.html +0 -292
- package/docs/types/Point2DTag.html +0 -292
- package/docs/types/Point3DTag.html +0 -292
- package/docs/types/PointTag.html +0 -289
- package/docs/types/PointTagInstance.html +0 -289
- package/docs/types/Position.html +0 -284
- package/docs/types/RotateArgs.html +0 -296
- package/docs/types/RotateOpts.html +0 -292
- package/docs/types/RuleLabelsKey.html +0 -284
- package/docs/types/RuleLabelsValue.html +0 -284
- package/docs/types/StickType.html +0 -284
- package/docs/types/Tag.html +0 -350
- package/docs/types/Tag2D.html +0 -292
- package/docs/types/Tag3D.html +0 -292
- package/docs/types/TagConfigByKey.html +0 -289
- package/docs/types/TagContentType.html +0 -284
- package/docs/types/TagContentTypeMapping.html +0 -284
- package/docs/types/TagDimensionType.html +0 -286
- package/docs/types/TagElement.html +0 -294
- package/docs/types/TagEvents.html +0 -337
- package/docs/types/TagGLTFObject.html +0 -307
- package/docs/types/TagHooks.html +0 -284
- package/docs/types/TagId.html +0 -284
- package/docs/types/TagInstance.html +0 -362
- package/docs/types/TagPointType.html +0 -287
- package/docs/types/TagRendererMap.html +0 -291
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -284
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -284
- package/docs/types/WorkCode.html +0 -284
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -294
- package/docs/variables/PLUGIN.html +0 -284
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -287
- package/docs/variables/ROOM_TYPE_MAP.html +0 -294
- package/docs/variables/defaultGlobalConfig.html +0 -284
- package/docs/variables/itemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -291
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -291
- package/libs/shared-utils/five/getFiveModel.d.ts +0 -2
- package/libs/shared-utils/five/getFiveModel.js +0 -7
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var l = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var d = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var i = Object.getOwnPropertySymbols;
|
|
4
4
|
var y = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var o = (t, e, n) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, s = (t, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
|
-
y.call(e, n) &&
|
|
7
|
+
y.call(e, n) && o(t, n, e[n]);
|
|
8
8
|
if (i)
|
|
9
9
|
for (var n of i(e))
|
|
10
|
-
f.call(e, n) &&
|
|
10
|
+
f.call(e, n) && o(t, n, e[n]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
import * as
|
|
14
|
-
import { getRaycasterByNdcPosition as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return R(t, n);
|
|
12
|
+
}, a = (t, e) => u(t, d(e));
|
|
13
|
+
import * as r from "three";
|
|
14
|
+
import { getRaycasterByNdcPosition as m } from "./getRaycasterByNdcPosition.js";
|
|
15
|
+
function w(t, e) {
|
|
16
|
+
const n = m(t, e);
|
|
17
|
+
return g(t, n);
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function g(t, e) {
|
|
21
20
|
var n;
|
|
22
|
-
return (n =
|
|
21
|
+
return (n = p(t, e)) != null ? n : R(e);
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
const n = new
|
|
23
|
+
function R(t) {
|
|
24
|
+
const n = new r.Vector3().addVectors(
|
|
26
25
|
t.ray.origin,
|
|
27
26
|
t.ray.direction.clone().normalize().multiplyScalar(3)
|
|
28
|
-
),
|
|
27
|
+
), c = t.ray.direction.clone().negate();
|
|
29
28
|
return {
|
|
30
29
|
distance: 3,
|
|
31
30
|
point: n,
|
|
32
|
-
object: new
|
|
33
|
-
face: new
|
|
31
|
+
object: new r.Object3D(),
|
|
32
|
+
face: new r.Face3(0, 0, 0, c),
|
|
34
33
|
raycaster: t,
|
|
35
34
|
isVirtual: !0
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
|
-
function
|
|
39
|
-
const c =
|
|
37
|
+
function p(t, e) {
|
|
38
|
+
const c = t.model.intersectRaycaster(e)[0];
|
|
40
39
|
if (c)
|
|
41
|
-
return
|
|
40
|
+
return a(s({}, c), { raycaster: e, isVirtual: !1 });
|
|
42
41
|
}
|
|
43
42
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
w as getIntersectByNdcPosition,
|
|
44
|
+
g as getIntersectByRaycaster
|
|
46
45
|
};
|
package/libs/shared-utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.41.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.41.2",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -4,9 +4,8 @@ var i = (s, t, e) => (p(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
4
4
|
import { anyPositionToVector3 as f } from "./positionToVector3.js";
|
|
5
5
|
import * as d from "three";
|
|
6
6
|
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
|
-
import { getFiveModel as m } from "./five/getFiveModel.js";
|
|
8
7
|
const l = "LightTagContainer_shgjakdhwakjdhsja";
|
|
9
|
-
class
|
|
8
|
+
class m {
|
|
10
9
|
constructor(t, e, n) {
|
|
11
10
|
i(this, "container");
|
|
12
11
|
i(this, "visible", !1);
|
|
@@ -28,7 +27,7 @@ class v {
|
|
|
28
27
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
29
28
|
const e = new d.Raycaster();
|
|
30
29
|
e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
31
|
-
const n = (t =
|
|
30
|
+
const n = (t = this.five.model.intersectRaycaster(e)) == null ? void 0 : t[0];
|
|
32
31
|
(n == null ? void 0 : n.distance) > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
33
32
|
}
|
|
34
33
|
});
|
|
@@ -44,13 +43,13 @@ class v {
|
|
|
44
43
|
this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
45
44
|
}
|
|
46
45
|
enable() {
|
|
47
|
-
var n, o,
|
|
46
|
+
var n, o, r, h;
|
|
48
47
|
if (this.enabled)
|
|
49
48
|
return;
|
|
50
49
|
this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(l)) != null ? o : (() => {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
})(), (
|
|
50
|
+
const a = document.createElement("div");
|
|
51
|
+
return a.id = l, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
|
|
52
|
+
})(), (r = this.five.getElement()) != null && r.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
|
|
54
53
|
let t = !1;
|
|
55
54
|
const e = () => {
|
|
56
55
|
t || (t = !0, this.five.ready().then(() => {
|
|
@@ -69,9 +68,9 @@ class v {
|
|
|
69
68
|
this.transformedPosition = this.originPosition.clone().applyMatrix4(t), this.onCameraUpdate();
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
function
|
|
73
|
-
return new
|
|
71
|
+
function w(s, t, e) {
|
|
72
|
+
return new m(s, t, e);
|
|
74
73
|
}
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
w as tag
|
|
77
76
|
};
|
|
@@ -1,99 +1,106 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var T = Object.getOwnPropertySymbols;
|
|
3
3
|
var L = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
L.call(
|
|
4
|
+
var o = (l, r, a) => r in l ? R(l, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[r] = a, M = (l, r) => {
|
|
5
|
+
for (var a in r || (r = {}))
|
|
6
|
+
L.call(r, a) && o(l, a, r[a]);
|
|
7
7
|
if (T)
|
|
8
|
-
for (var
|
|
9
|
-
x.call(
|
|
10
|
-
return
|
|
8
|
+
for (var a of T(r))
|
|
9
|
+
x.call(r, a) && o(l, a, r[a]);
|
|
10
|
+
return l;
|
|
11
11
|
};
|
|
12
12
|
import D from "animejs";
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
import * as d from "three";
|
|
14
|
+
import { toArray as h } from "../util.js";
|
|
15
|
+
const f = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
16
|
+
function k(l) {
|
|
17
|
+
h(l).forEach((a) => {
|
|
18
|
+
var e, y, t;
|
|
19
|
+
f.has(a) || (a instanceof HTMLElement ? f.set(a, {
|
|
20
|
+
opacity: a.style.opacity === "" ? void 0 : a.style.opacity,
|
|
20
21
|
visible: {
|
|
21
|
-
display:
|
|
22
|
-
visibility:
|
|
22
|
+
display: a.style.display,
|
|
23
|
+
visibility: a.style.visibility
|
|
23
24
|
}
|
|
24
|
-
}) :
|
|
25
|
-
opacity: (
|
|
26
|
-
transparent:
|
|
27
|
-
visible:
|
|
28
|
-
})
|
|
25
|
+
}) : a.isObject3D && (a.material ? a.material instanceof d.ShaderMaterial ? f.set(a, {
|
|
26
|
+
opacity: (e = a.material.uniforms.opacity) == null ? void 0 : e.value,
|
|
27
|
+
transparent: a.material.transparent,
|
|
28
|
+
visible: a.visible
|
|
29
|
+
}) : f.set(a, {
|
|
30
|
+
opacity: (y = a.material) == null ? void 0 : y.opacity,
|
|
31
|
+
transparent: (t = a.material) == null ? void 0 : t.transparent,
|
|
32
|
+
visible: a.visible
|
|
33
|
+
}) : f.set(a, {
|
|
34
|
+
visible: a.visible
|
|
35
|
+
})));
|
|
29
36
|
});
|
|
30
37
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
38
|
+
function H(l) {
|
|
39
|
+
h(l).forEach((a) => {
|
|
40
|
+
const e = f.get(a);
|
|
41
|
+
e && (a instanceof HTMLElement && (a.style.opacity = e.opacity === void 0 ? "" : e.opacity, a.style.display = e.visible.display, a.style.visibility = e.visible.visibility), a.isObject3D && (a.visible = e.visible, a.material && (a.material instanceof d.ShaderMaterial ? (a.material.uniforms.opacity && (a.material.uniforms.opacity.value = e.opacity), a.material.transparent = e.transparent) : (a.material.opacity = e.opacity, a.material.transparent = e.transparent))), f.delete(a));
|
|
35
42
|
});
|
|
36
43
|
}
|
|
37
|
-
function
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
let
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
c &&
|
|
45
|
-
})) :
|
|
46
|
-
}),
|
|
47
|
-
const
|
|
48
|
-
targets:
|
|
44
|
+
function m(l, r) {
|
|
45
|
+
var E;
|
|
46
|
+
const a = (E = r == null ? void 0 : r.traverseTHREEObject) != null ? E : !0;
|
|
47
|
+
let e = h(l);
|
|
48
|
+
const y = [];
|
|
49
|
+
e.forEach((i) => {
|
|
50
|
+
i instanceof HTMLElement ? y.push(i) : i.isObject3D && (a ? (y.push(i), i.traverse((c) => {
|
|
51
|
+
c && y.push(c);
|
|
52
|
+
})) : y.push(i));
|
|
53
|
+
}), e = [...new Set(y.filter(Boolean))], k(e);
|
|
54
|
+
const t = D(M({
|
|
55
|
+
targets: e,
|
|
49
56
|
duration: 300,
|
|
50
57
|
easing: "linear",
|
|
51
58
|
direction: "alternate",
|
|
52
59
|
loop: 4,
|
|
53
60
|
autoplay: !1,
|
|
54
|
-
update: (
|
|
61
|
+
update: (i) => {
|
|
55
62
|
var c;
|
|
56
|
-
|
|
57
|
-
var
|
|
58
|
-
const
|
|
59
|
-
if (!
|
|
63
|
+
i.animatables.forEach((p) => {
|
|
64
|
+
var S;
|
|
65
|
+
const s = p.target;
|
|
66
|
+
if (!f.has(s))
|
|
60
67
|
return;
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
}), (c =
|
|
68
|
+
const g = Number((S = f.get(s).opacity) != null ? S : 1) * (100 - i.progress) / 100;
|
|
69
|
+
s instanceof HTMLElement ? s.style.opacity = String(g) : s.material && (s.material instanceof d.ShaderMaterial ? (s.material.uniforms.opacity && (s.material.uniforms.opacity.value = g), s.material.transparent = !0) : (s.material.opacity = g, s.material.transparent = !0));
|
|
70
|
+
}), (c = r == null ? void 0 : r.updateRender) == null || c.call(r);
|
|
64
71
|
}
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
return (
|
|
72
|
+
}, r));
|
|
73
|
+
t.preComplete = () => {
|
|
74
|
+
t != null && t.completed || (t == null || t.pause(), H(e), setTimeout(() => {
|
|
75
|
+
var i;
|
|
76
|
+
return (i = r == null ? void 0 : r.updateRender) == null ? void 0 : i.call(r);
|
|
70
77
|
}));
|
|
71
78
|
};
|
|
72
|
-
const
|
|
73
|
-
return
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
v.get(
|
|
77
|
-
}, 1e3), (
|
|
78
|
-
}),
|
|
79
|
+
const u = v.get(l);
|
|
80
|
+
return u == null || u.pause(), u == null || u.seek(0), v.set(l, t), t.play(), t.finished.then(() => {
|
|
81
|
+
var i;
|
|
82
|
+
H(e), setTimeout(() => {
|
|
83
|
+
v.get(l) === t && v.delete(l);
|
|
84
|
+
}, 1e3), (i = r == null ? void 0 : r.updateRender) == null || i.call(r);
|
|
85
|
+
}), t;
|
|
79
86
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
82
|
-
update: (
|
|
83
|
-
var
|
|
84
|
-
|
|
85
|
-
var c,
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
87
|
+
function q(l, r) {
|
|
88
|
+
return m(l, M({
|
|
89
|
+
update: (a) => {
|
|
90
|
+
var e;
|
|
91
|
+
a.animatables.forEach((y) => {
|
|
92
|
+
var c, p;
|
|
93
|
+
const t = y.target;
|
|
94
|
+
if (!f.has(t))
|
|
88
95
|
return;
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
}), (
|
|
96
|
+
const u = f.get(t), i = ((p = (c = u == null ? void 0 : u.opacity) != null ? c : r == null ? void 0 : r.maxOpacity) != null ? p : 1) * (a.progress / 100);
|
|
97
|
+
t instanceof HTMLElement ? (t.style.opacity = String(i), t.style.visibility = "visible") : t.isObject3D && (h(l).includes(t) && (t.visible = !0), t.material && (t.material instanceof d.ShaderMaterial ? (t.material.uniforms.opacity && (t.material.uniforms.opacity.value = i), t.material.transparent = !0) : (t.material.opacity = i, t.material.transparent = !0)));
|
|
98
|
+
}), (e = r == null ? void 0 : r.updateRender) == null || e.call(r);
|
|
92
99
|
}
|
|
93
|
-
},
|
|
100
|
+
}, r));
|
|
94
101
|
}
|
|
95
102
|
export {
|
|
96
103
|
v as animeMap,
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
m as blink,
|
|
105
|
+
q as reblink
|
|
99
106
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var f = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var n = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var o = (e, t, s) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, a = (e, t) => {
|
|
6
6
|
for (var s in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
u.call(t, s) && o(e, s, t[s]);
|
|
8
|
+
if (n)
|
|
9
|
+
for (var s of n(t))
|
|
10
|
+
x.call(t, s) && o(e, s, t[s]);
|
|
11
11
|
return e;
|
|
12
|
-
}, i = (e, t) => R(e,
|
|
13
|
-
import * as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return i(a({}, o), { raycaster: r, isVirtual: !1 });
|
|
12
|
+
}, i = (e, t) => R(e, p(t));
|
|
13
|
+
import * as E from "three";
|
|
14
|
+
function g(e, t) {
|
|
15
|
+
const { x: s, y: m } = t, l = s * 2 - 1, y = m * 2 - 1, r = new E.Raycaster();
|
|
16
|
+
r.setFromCamera({ x: l, y }, e.camera);
|
|
17
|
+
const c = e.model.intersectRaycaster(r)[0];
|
|
18
|
+
if (c)
|
|
19
|
+
return i(a({}, c), { raycaster: r, isVirtual: !1 });
|
|
21
20
|
}
|
|
22
21
|
export {
|
|
23
|
-
|
|
22
|
+
g as getIntersectFromRelativePosition
|
|
24
23
|
};
|
package/package.json
CHANGED
package/README.md
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://realsee.js.org/"><img src="https://vrlab-public.ljcdn.com/common/file/web/ea031fa5-ad82-46b3-86c8-7b20ec1e635a.jpg" width="60" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<p align="center">
|
|
7
|
-
<a href="https://www.npmjs.com/package/@realsee/dnalogel">
|
|
8
|
-
<img src="https://img.shields.io/npm/v/@realsee/dnalogel.svg" alt="npm version" >
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://packagephobia.now.sh/result?p=@realsee/dnalogel">
|
|
11
|
-
<img src="https://packagephobia.now.sh/badge?p=@realsee/dnalogel" alt="install size" >
|
|
12
|
-
</a>
|
|
13
|
-
<a href="https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt">
|
|
14
|
-
<img src="https://img.shields.io/npm/l/@realsee/dnalogel.svg" alt="license">
|
|
15
|
-
</a>
|
|
16
|
-
</p>
|
|
17
|
-
|
|
18
|
-
<h1 align="center">@realsee/dnalogel</h1>
|
|
19
|
-
|
|
20
|
-
# 👀 Overview
|
|
21
|
-
|
|
22
|
-
@realsee/dnalogel 将 [如视(realsee.com)](https://realsee.com) **VR 空间交互** 常用能力沉淀,并以 `Five Plugins` 形式进行抽象。
|
|
23
|
-
结合[如视三维空间重建渲染引擎 Five](https://open-platform.realsee.com/developer/docs/five/intro/)
|
|
24
|
-
与 [如视开放 API](https://open-platform.realsee.com/developer/openapi/?id=1001) ,可以制作出丰富多彩的三维空间应用。不论是经过线上环境千锤百炼的刚需功能,还是灵感一现的炫酷尝试,所有已经落地的功能我们均毫无保留的开源至github [realsee-developer/dnalogel](https://github.com/realsee-developer/dnalogel) 。
|
|
25
|
-
|
|
26
|
-
# 🔨 Usage
|
|
27
|
-
|
|
28
|
-
**1、安装**
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install @realsee/dnalogel
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
yarn add @realsee/dnalogel
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**2、插件注册**
|
|
39
|
-
|
|
40
|
-
```js
|
|
41
|
-
import { Five } from '@realsee/five'
|
|
42
|
-
import { Plugin } from '@realsee/dnalogel'
|
|
43
|
-
const five = new Five({
|
|
44
|
-
plugins: [[Plugin, 'PluginName', initOptions]],
|
|
45
|
-
})
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**3、插件方法使用**
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
// 不同插件提供的方法可能存在差异,请参考各插件 API 文档
|
|
52
|
-
five.plugins.PluginName.load(data)
|
|
53
|
-
five.plugins.PluginName.enable()
|
|
54
|
-
five.plugins.PluginName.disable()
|
|
55
|
-
five.plugins.PluginName.dispose()
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
**4、插件依赖数据获取**
|
|
59
|
-
|
|
60
|
-
您可以通过 [open API](https://open-platform.realsee.com/developer/open/api#/) 查看数据获取方式及相关 open API 。
|
|
61
|
-
|
|
62
|
-
# 📖 Documents
|
|
63
|
-
|
|
64
|
-
- [说明文档](https://open-platform.realsee.com/developer/docs/dnalogel/intro/)
|
|
65
|
-
- [API 文档](https://open-platform.realsee.com/developer/openapi/?id=1001)
|
|
66
|
-
- [demo 源码](https://github.com/realsee-developer/dnalogel)
|
|
67
|
-
- [数据依赖来源:open API](https://open-platform.realsee.com/developer/openapi/?id=1001)
|
|
68
|
-
|
|
69
|
-
# 💡 Preview
|
|
70
|
-
|
|
71
|
-
我们为每个插件书写了简单的效果示例,您可点击预览:
|
|
72
|
-
[@realsee/dnalogel showcase](https://realsee-developer.github.io/dnalogel/)
|
|
73
|
-
|
|
74
|
-
# 🧾 Lists
|
|
75
|
-
|
|
76
|
-
- 🔌 ModelViewPlugin:模型小窗插件
|
|
77
|
-
- 🔌 PanoFloorplanRadarPlugin:全景户型雷达图插件
|
|
78
|
-
- 🔌 ModelRoomLabelPlugin:模型态房屋标签插件
|
|
79
|
-
- 🔌 TopviewFloorplanPlugin:俯视模型户型图插件
|
|
80
|
-
- 🔌 ModelChassisCompassPlugin:模型底盘指南针插件
|
|
81
|
-
- 🔌 ModelEntryDoorGuidePlugin:模型入户门引导插件
|
|
82
|
-
- 🔌 CSS3DRenderPlugin:CSS3D渲染插件
|
|
83
|
-
- 🔌 CameraMovementPlugin:相机运镜插件
|
|
84
|
-
- 🔌 ModelFloorplanPlugin:模型户型图插件
|
|
85
|
-
- 🔌 PanoRulerPlugin:全景标尺插件
|
|
86
|
-
- 🔌 PanoCompassPlugin:全景指南针插件
|
|
87
|
-
- 其他插件持续更新中...
|
|
88
|
-
|
|
89
|
-
# 可能遇到的问题
|
|
90
|
-
|
|
91
|
-
1. webpack打包出现以下错误
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
Module not found: Error: Can't resolve '@realsee/five/line' in 'xxx/node_modules/@realsee/dnalogel/libs'
|
|
95
|
-
Did you mean 'index.js'?
|
|
96
|
-
BREAKING CHANGE: The request '@realsee/five/line' failed to resolve only because it was resolved as fully specified
|
|
97
|
-
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
|
|
98
|
-
The extension in the request is mandatory for it to be fully specified.
|
|
99
|
-
Add the extension to the request.
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
解决方案:在webpack配置里加以下rule
|
|
103
|
-
参考:[resolvefullyspecified](https://webpack.js.org/configuration/module/#resolvefullyspecified)
|
|
104
|
-
|
|
105
|
-
```js
|
|
106
|
-
{
|
|
107
|
-
test: /\.m?js$/,
|
|
108
|
-
resolve: {
|
|
109
|
-
fullySpecified: false, // disable the behaviour
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
# License
|
|
115
|
-
|
|
116
|
-
[TERMS](https://github.com/realsee-developer/dnalogel/blob/main/TERMS.txt)
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/custom.css
DELETED
|
File without changes
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #795E26;
|
|
3
|
-
--dark-hl-0: #DCDCAA;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #A31515;
|
|
7
|
-
--dark-hl-2: #CE9178;
|
|
8
|
-
--light-hl-3: #AF00DB;
|
|
9
|
-
--dark-hl-3: #C586C0;
|
|
10
|
-
--light-hl-4: #001080;
|
|
11
|
-
--dark-hl-4: #9CDCFE;
|
|
12
|
-
--light-hl-5: #0000FF;
|
|
13
|
-
--dark-hl-5: #569CD6;
|
|
14
|
-
--light-hl-6: #0070C1;
|
|
15
|
-
--dark-hl-6: #4FC1FF;
|
|
16
|
-
--light-hl-7: #008000;
|
|
17
|
-
--dark-hl-7: #6A9955;
|
|
18
|
-
--light-hl-8: #000000;
|
|
19
|
-
--dark-hl-8: #C8C8C8;
|
|
20
|
-
--light-hl-9: #811F3F;
|
|
21
|
-
--dark-hl-9: #D16969;
|
|
22
|
-
--light-hl-10: #EE0000;
|
|
23
|
-
--dark-hl-10: #D7BA7D;
|
|
24
|
-
--light-hl-11: #000000;
|
|
25
|
-
--dark-hl-11: #D7BA7D;
|
|
26
|
-
--light-hl-12: #EE0000;
|
|
27
|
-
--dark-hl-12: #DCDCAA;
|
|
28
|
-
--light-hl-13: #098658;
|
|
29
|
-
--dark-hl-13: #B5CEA8;
|
|
30
|
-
--light-hl-14: #267F99;
|
|
31
|
-
--dark-hl-14: #4EC9B0;
|
|
32
|
-
--light-code-background: #FFFFFF;
|
|
33
|
-
--dark-code-background: #1E1E1E;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (prefers-color-scheme: light) { :root {
|
|
37
|
-
--hl-0: var(--light-hl-0);
|
|
38
|
-
--hl-1: var(--light-hl-1);
|
|
39
|
-
--hl-2: var(--light-hl-2);
|
|
40
|
-
--hl-3: var(--light-hl-3);
|
|
41
|
-
--hl-4: var(--light-hl-4);
|
|
42
|
-
--hl-5: var(--light-hl-5);
|
|
43
|
-
--hl-6: var(--light-hl-6);
|
|
44
|
-
--hl-7: var(--light-hl-7);
|
|
45
|
-
--hl-8: var(--light-hl-8);
|
|
46
|
-
--hl-9: var(--light-hl-9);
|
|
47
|
-
--hl-10: var(--light-hl-10);
|
|
48
|
-
--hl-11: var(--light-hl-11);
|
|
49
|
-
--hl-12: var(--light-hl-12);
|
|
50
|
-
--hl-13: var(--light-hl-13);
|
|
51
|
-
--hl-14: var(--light-hl-14);
|
|
52
|
-
--code-background: var(--light-code-background);
|
|
53
|
-
} }
|
|
54
|
-
|
|
55
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
56
|
-
--hl-0: var(--dark-hl-0);
|
|
57
|
-
--hl-1: var(--dark-hl-1);
|
|
58
|
-
--hl-2: var(--dark-hl-2);
|
|
59
|
-
--hl-3: var(--dark-hl-3);
|
|
60
|
-
--hl-4: var(--dark-hl-4);
|
|
61
|
-
--hl-5: var(--dark-hl-5);
|
|
62
|
-
--hl-6: var(--dark-hl-6);
|
|
63
|
-
--hl-7: var(--dark-hl-7);
|
|
64
|
-
--hl-8: var(--dark-hl-8);
|
|
65
|
-
--hl-9: var(--dark-hl-9);
|
|
66
|
-
--hl-10: var(--dark-hl-10);
|
|
67
|
-
--hl-11: var(--dark-hl-11);
|
|
68
|
-
--hl-12: var(--dark-hl-12);
|
|
69
|
-
--hl-13: var(--dark-hl-13);
|
|
70
|
-
--hl-14: var(--dark-hl-14);
|
|
71
|
-
--code-background: var(--dark-code-background);
|
|
72
|
-
} }
|
|
73
|
-
|
|
74
|
-
:root[data-theme='light'] {
|
|
75
|
-
--hl-0: var(--light-hl-0);
|
|
76
|
-
--hl-1: var(--light-hl-1);
|
|
77
|
-
--hl-2: var(--light-hl-2);
|
|
78
|
-
--hl-3: var(--light-hl-3);
|
|
79
|
-
--hl-4: var(--light-hl-4);
|
|
80
|
-
--hl-5: var(--light-hl-5);
|
|
81
|
-
--hl-6: var(--light-hl-6);
|
|
82
|
-
--hl-7: var(--light-hl-7);
|
|
83
|
-
--hl-8: var(--light-hl-8);
|
|
84
|
-
--hl-9: var(--light-hl-9);
|
|
85
|
-
--hl-10: var(--light-hl-10);
|
|
86
|
-
--hl-11: var(--light-hl-11);
|
|
87
|
-
--hl-12: var(--light-hl-12);
|
|
88
|
-
--hl-13: var(--light-hl-13);
|
|
89
|
-
--hl-14: var(--light-hl-14);
|
|
90
|
-
--code-background: var(--light-code-background);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:root[data-theme='dark'] {
|
|
94
|
-
--hl-0: var(--dark-hl-0);
|
|
95
|
-
--hl-1: var(--dark-hl-1);
|
|
96
|
-
--hl-2: var(--dark-hl-2);
|
|
97
|
-
--hl-3: var(--dark-hl-3);
|
|
98
|
-
--hl-4: var(--dark-hl-4);
|
|
99
|
-
--hl-5: var(--dark-hl-5);
|
|
100
|
-
--hl-6: var(--dark-hl-6);
|
|
101
|
-
--hl-7: var(--dark-hl-7);
|
|
102
|
-
--hl-8: var(--dark-hl-8);
|
|
103
|
-
--hl-9: var(--dark-hl-9);
|
|
104
|
-
--hl-10: var(--dark-hl-10);
|
|
105
|
-
--hl-11: var(--dark-hl-11);
|
|
106
|
-
--hl-12: var(--dark-hl-12);
|
|
107
|
-
--hl-13: var(--dark-hl-13);
|
|
108
|
-
--hl-14: var(--dark-hl-14);
|
|
109
|
-
--code-background: var(--dark-code-background);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.hl-0 { color: var(--hl-0); }
|
|
113
|
-
.hl-1 { color: var(--hl-1); }
|
|
114
|
-
.hl-2 { color: var(--hl-2); }
|
|
115
|
-
.hl-3 { color: var(--hl-3); }
|
|
116
|
-
.hl-4 { color: var(--hl-4); }
|
|
117
|
-
.hl-5 { color: var(--hl-5); }
|
|
118
|
-
.hl-6 { color: var(--hl-6); }
|
|
119
|
-
.hl-7 { color: var(--hl-7); }
|
|
120
|
-
.hl-8 { color: var(--hl-8); }
|
|
121
|
-
.hl-9 { color: var(--hl-9); }
|
|
122
|
-
.hl-10 { color: var(--hl-10); }
|
|
123
|
-
.hl-11 { color: var(--hl-11); }
|
|
124
|
-
.hl-12 { color: var(--hl-12); }
|
|
125
|
-
.hl-13 { color: var(--hl-13); }
|
|
126
|
-
.hl-14 { color: var(--hl-14); }
|
|
127
|
-
pre, code { background: var(--code-background); }
|