@realsee/dnalogel 2.16.2-alpha.0 → 2.17.0-aplha.1
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/dist/PanoTagPlugin/Archive/deprecated.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +6 -7
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/dist/index.cjs.js +42 -42
- package/dist/index.js +1899 -1855
- package/dist/index.umd.js +42 -42
- package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/dist/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/dist/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/dist/typings/utils.type.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +81 -369
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/PanoVideoPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +19 -19
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +19 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +214 -13
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +275 -0
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +15 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +14 -10
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +173 -171
- package/libs/PanoTagPlugin/controller/TagRender.js +51 -44
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +21 -16
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +45 -41
- package/libs/PanoTagPlugin/index.js +12 -10
- package/libs/PanoTagPlugin/tag.config.js +7 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +6 -7
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +130 -158
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +104 -102
- package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/libs/shared-utils/five/FiveDomEvents.js +48 -38
- package/libs/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/libs/shared-utils/five/getFloorIndex.js +16 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/libs/shared-utils/three/FragmentTransparencyMaterial.js +36 -0
- package/libs/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/libs/shared-utils/three/loadVideoTexture.js +8 -10
- package/libs/typings/utils.type.d.ts +2 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +2 -2
- package/libs/PanoTagPlugin/Archive/index.d.ts +0 -1
- package/libs/PanoTagPlugin/Archive/index.js +0 -4
package/libs/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { index as
|
|
35
|
-
import { CSS3DRender as
|
|
36
|
-
import { Model as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { Polyline as
|
|
40
|
-
import { default as
|
|
41
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
42
|
-
import { ModelItemLabelPlugin as
|
|
43
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
44
|
-
import { Plugin as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { ContentType as
|
|
48
|
-
import { DimensionType as
|
|
49
|
-
import { Object3DHelperController as
|
|
50
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as Ji } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Qi } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Xi } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as $i } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as rp } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as mp, modelRoomLabelPluginServerParams as ip } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as ep } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as np } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as Pp } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as up } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as gp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as dp, ROOM_FETILE_TYPE_MAP as Mp, ROOM_TYPE_MAP as Tp } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as Cp } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Ep } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as Op } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as Ap, Rotation as Dp } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as bp } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as Fp } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as vp } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as Gp } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as Np } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as wp } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as Hp } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as jp } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as qp } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as Jp } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as Qp } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as Xp } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as $p } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as re } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as me } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { index as pe } from "./shared-utils/index.js";
|
|
35
|
+
import { CSS3DRender as le } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
+
import { Model as ae } from "./PanoMeasurePlugin/Model/index.js";
|
|
37
|
+
import { default as fe } from "./PanoMeasurePlugin/Model/point.js";
|
|
38
|
+
import { default as xe } from "./PanoMeasurePlugin/Model/line.js";
|
|
39
|
+
import { Polyline as se } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
40
|
+
import { default as Me } from "./PanoMeasurePlugin/Modules/Magnifier.js";
|
|
41
|
+
import { DISPLAY_STRATEGY_TYPE as Le } from "./ModelItemLabelPlugin/typings.js";
|
|
42
|
+
import { ModelItemLabelPlugin as _e } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
43
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Re } from "./ItemLabelPlugin/typings.js";
|
|
44
|
+
import { Plugin as Se } from "./ItemLabelPlugin/Plugin.js";
|
|
45
|
+
import { default as De } from "./CruisePlugin/Controller.js";
|
|
46
|
+
import { default as be, pluginFlag as ye } from "./PanoTagPlugin/controller/index.js";
|
|
47
|
+
import { ContentType as Ye } from "./PanoTagPlugin/typings/tag/TagData.js";
|
|
48
|
+
import { DimensionType as ce } from "./PanoTagPlugin/typings/tag/Utils.js";
|
|
49
|
+
import { Object3DHelperController as Ve, PLUGIN as Ne } from "./Object3DHelperPlugin/Controller.js";
|
|
50
|
+
import { typings as we } from "./PanoVideoPlugin/typings/index.js";
|
|
51
51
|
import "./components/PaintBrush/Controller.js";
|
|
52
52
|
import "./components/PaintBrush/utils.js";
|
|
53
53
|
import "./components/PaintBrush/tween.js";
|
|
@@ -255,7 +255,9 @@ import "./shared-utils/math/pointIsRectangle.js";
|
|
|
255
255
|
import "./shared-utils/three/loadVideoTexture.js";
|
|
256
256
|
import "./PanoTagPlugin/Assets/Icon.js";
|
|
257
257
|
import "./shared-utils/three/getPositionsByObjectFit.js";
|
|
258
|
+
import "./shared-utils/three/FragmentTransparencyMaterial.js";
|
|
258
259
|
import "./shared-utils/five/FiveDomEvents.js";
|
|
260
|
+
import "./shared-utils/five/getFloorIndex.js";
|
|
259
261
|
import "./PanoTagPlugin/Components/TagContainer.js";
|
|
260
262
|
import "./PanoTagPlugin/Components/TagItem.js";
|
|
261
263
|
import "./PanoTagPlugin/Components/Tag/index.js";
|
|
@@ -359,58 +361,58 @@ import "./shared-utils/three/FivePointSelector.js";
|
|
|
359
361
|
r();
|
|
360
362
|
o();
|
|
361
363
|
export {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
364
|
+
le as CSS3DRender,
|
|
365
|
+
$i as CSS3DRenderPlugin,
|
|
366
|
+
Ap as CameraMovementEffect,
|
|
367
|
+
Op as CameraMovementPlugin,
|
|
368
|
+
Ye as ContentType,
|
|
369
|
+
Xp as CruisePlugin,
|
|
370
|
+
De as CruisePluginController,
|
|
371
|
+
jp as DIRECTION,
|
|
372
|
+
Le as DISPLAY_STRATEGY_TYPE,
|
|
373
|
+
ce as DimensionType,
|
|
374
|
+
ep as FLOOR_PLAN_ATTACHED_TO,
|
|
375
|
+
dp as FLOOR_TYPE_MAP,
|
|
376
|
+
Qp as GuideLinePlugin,
|
|
377
|
+
Re as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
378
|
+
Se as ItemLabelPlugin,
|
|
379
|
+
Me as Magnifier,
|
|
380
|
+
Pp as MapviewFloorplanPlugin,
|
|
381
|
+
Cp as ModelChassisCompassPlugin,
|
|
382
|
+
Ep as ModelEntryDoorGuidePlugin,
|
|
383
|
+
np as ModelFloorplanPlugin,
|
|
384
|
+
_e as ModelItemLabelPlugin,
|
|
385
|
+
mp as ModelRoomLabelPlugin,
|
|
386
|
+
Hp as ModelTVVideoPlugin,
|
|
387
|
+
Xi as ModelViewPlugin,
|
|
388
|
+
Ve as Object3DHelperController,
|
|
389
|
+
re as Object3DHelperPlugin,
|
|
390
|
+
Ne as PLUGIN,
|
|
391
|
+
Ji as PaintBrush,
|
|
392
|
+
Qi as PaintBrushTypeEnum,
|
|
393
|
+
vp as PanoCompassPlugin,
|
|
394
|
+
rp as PanoCursorRaycasterPlugin,
|
|
395
|
+
Jp as PanoDoorLabelPlugin,
|
|
396
|
+
gp as PanoFloorplanRadarPlugin,
|
|
397
|
+
Gp as PanoMeasurePlugin,
|
|
398
|
+
xe as PanoMeasurePluginLine,
|
|
399
|
+
ae as PanoMeasurePluginModel,
|
|
400
|
+
fe as PanoMeasurePluginPoint,
|
|
401
|
+
se as PanoMeasurePluginPolyline,
|
|
402
|
+
bp as PanoRulerPlugin,
|
|
403
|
+
Fp as PanoRulerProPlugin,
|
|
404
|
+
Np as PanoSpatialTagPlugin,
|
|
405
|
+
$p as PanoTagPlugin,
|
|
406
|
+
be as PanoTagPluginController,
|
|
407
|
+
me as PanoVideoPlugin,
|
|
408
|
+
we as PanoVideoPluginType,
|
|
409
|
+
Mp as ROOM_FETILE_TYPE_MAP,
|
|
410
|
+
Tp as ROOM_TYPE_MAP,
|
|
411
|
+
Dp as Rotation,
|
|
412
|
+
up as TopviewFloorplanPlugin,
|
|
413
|
+
pe as Util,
|
|
414
|
+
qp as itemLabelPluginServerParams,
|
|
415
|
+
wp as modelItemLabelPluginServerParams,
|
|
416
|
+
ip as modelRoomLabelPluginServerParams,
|
|
417
|
+
ye as pluginFlag
|
|
416
418
|
};
|
|
@@ -5,6 +5,12 @@ export declare class FiveDomEvents extends DomEvents {
|
|
|
5
5
|
private mouseInfo?;
|
|
6
6
|
private clickHandlerMap;
|
|
7
7
|
constructor(five: Five);
|
|
8
|
+
/**
|
|
9
|
+
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
10
|
+
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
11
|
+
* @todo: added 和 removed 还是不太智能
|
|
12
|
+
*/
|
|
13
|
+
addAutoBindEventListener(...params: Parameters<InstanceType<typeof FiveDomEvents>['addEventListener']>): void;
|
|
8
14
|
addEventListener<T extends 'click' | 'dblclick' | 'mouseover' | 'mouseout' | 'mousemove' | 'mousedown' | 'mouseup' | 'contextmenu' | 'touchstart' | 'touchend', K extends THREE.Object3D>(object: K, eventName: T, callback: (params: DomEventInterface<T, K>) => void, useCapture?: boolean): void;
|
|
9
15
|
removeEventListener(object: THREE.Object3D, eventName: 'click' | 'dblclick' | 'mouseover' | 'mouseout' | 'mousemove' | 'mousedown' | 'mouseup' | 'contextmenu' | 'touchstart' | 'touchend', callback: (params: any) => void, useCapture?: boolean): void;
|
|
10
16
|
private preventWhenMouseDown;
|
|
@@ -1,70 +1,80 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
|
-
var c = (s,
|
|
3
|
-
var
|
|
2
|
+
var c = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
|
+
var h = (s, i, e) => (c(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import "@realsee/five";
|
|
5
|
-
import { DomEvents as
|
|
5
|
+
import { DomEvents as E } from "../threex/domevents/index.js";
|
|
6
6
|
import "three";
|
|
7
|
-
class
|
|
7
|
+
class L extends E {
|
|
8
8
|
constructor(e) {
|
|
9
9
|
super(e.camera, e.getElement());
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
e.on("wantsMoveToPano",
|
|
10
|
+
h(this, "mouseInfo");
|
|
11
|
+
h(this, "clickHandlerMap", /* @__PURE__ */ new Map());
|
|
12
|
+
const o = () => this.preventWhenMouseDown();
|
|
13
|
+
e.on("wantsMoveToPano", o), e.on("wantsTapGesture", o);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
addAutoBindEventListener(...e) {
|
|
16
|
+
const o = e[0];
|
|
17
|
+
o.addEventListener("added", () => {
|
|
18
|
+
this.addEventListener(...e);
|
|
19
|
+
}), o.addEventListener("removed", () => {
|
|
20
|
+
this.removeEventListener(...e);
|
|
21
|
+
}), o.addEventListener("dispose", () => {
|
|
22
|
+
this.removeEventListener(...e);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
addEventListener(e, o, r, t) {
|
|
16
26
|
const u = (m) => {
|
|
17
|
-
if (
|
|
27
|
+
if (d(e) === !1) {
|
|
18
28
|
this.mouseInfo = void 0;
|
|
19
29
|
return;
|
|
20
30
|
}
|
|
21
|
-
const
|
|
31
|
+
const n = m.origDomEvent;
|
|
22
32
|
this.mouseInfo = {
|
|
23
|
-
x:
|
|
24
|
-
y:
|
|
33
|
+
x: n.clientX,
|
|
34
|
+
y: n.clientY,
|
|
25
35
|
isDown: !0,
|
|
26
36
|
mouseDownTimestamp: Date.now()
|
|
27
37
|
};
|
|
28
|
-
},
|
|
29
|
-
if (
|
|
38
|
+
}, f = (m) => {
|
|
39
|
+
if (d(e) === !1) {
|
|
30
40
|
this.mouseInfo = void 0;
|
|
31
41
|
return;
|
|
32
42
|
}
|
|
33
|
-
const
|
|
34
|
-
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x ===
|
|
35
|
-
},
|
|
36
|
-
if (
|
|
43
|
+
const n = m.origDomEvent;
|
|
44
|
+
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === n.clientX && this.mouseInfo.y === n.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && r(n), this.mouseInfo = void 0);
|
|
45
|
+
}, v = (m) => {
|
|
46
|
+
if (d(e) === !1) {
|
|
37
47
|
this.mouseInfo = void 0;
|
|
38
48
|
return;
|
|
39
49
|
}
|
|
40
|
-
const
|
|
50
|
+
const n = m.origDomEvent;
|
|
41
51
|
this.mouseInfo = {
|
|
42
|
-
x: Math.floor(
|
|
43
|
-
y: Math.floor(
|
|
52
|
+
x: Math.floor(n.touches[0].clientX),
|
|
53
|
+
y: Math.floor(n.touches[0].clientY),
|
|
44
54
|
isDown: !0,
|
|
45
55
|
mouseDownTimestamp: Date.now()
|
|
46
56
|
};
|
|
47
|
-
},
|
|
48
|
-
if (
|
|
57
|
+
}, a = (m) => {
|
|
58
|
+
if (d(e) === !1) {
|
|
49
59
|
this.mouseInfo = void 0;
|
|
50
60
|
return;
|
|
51
61
|
}
|
|
52
|
-
const
|
|
53
|
-
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(
|
|
62
|
+
const n = m.origDomEvent;
|
|
63
|
+
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && r(n), this.mouseInfo = void 0);
|
|
54
64
|
};
|
|
55
|
-
|
|
65
|
+
o === "click" ? (super.addEventListener(e, "mousedown", u, t), super.addEventListener(e, "mouseup", f, t), super.addEventListener(e, "touchstart", v, t), super.addEventListener(e, "touchend", a, t), this.clickHandlerMap.set(r, {
|
|
56
66
|
mousedown: u,
|
|
57
|
-
mouseup:
|
|
58
|
-
touchstart:
|
|
59
|
-
touchend:
|
|
60
|
-
})) : super.addEventListener(e,
|
|
67
|
+
mouseup: f,
|
|
68
|
+
touchstart: v,
|
|
69
|
+
touchend: a
|
|
70
|
+
})) : super.addEventListener(e, o, r, t);
|
|
61
71
|
}
|
|
62
|
-
removeEventListener(e,
|
|
63
|
-
if (
|
|
72
|
+
removeEventListener(e, o, r, t) {
|
|
73
|
+
if (o === "click") {
|
|
64
74
|
const u = this.clickHandlerMap.get(r);
|
|
65
|
-
u && (super.removeEventListener(e, "mousedown", u.mousedown,
|
|
75
|
+
u && (super.removeEventListener(e, "mousedown", u.mousedown, t), super.removeEventListener(e, "mouseup", u.mouseup, t), super.removeEventListener(e, "touchstart", u.touchstart, t), super.removeEventListener(e, "touchend", u.touchend, t), this.clickHandlerMap.delete(r));
|
|
66
76
|
} else
|
|
67
|
-
super.removeEventListener(e,
|
|
77
|
+
super.removeEventListener(e, o, r, t);
|
|
68
78
|
}
|
|
69
79
|
preventWhenMouseDown() {
|
|
70
80
|
var e;
|
|
@@ -72,9 +82,9 @@ class g extends p {
|
|
|
72
82
|
return !1;
|
|
73
83
|
}
|
|
74
84
|
}
|
|
75
|
-
function
|
|
76
|
-
return s ? s.visible === !1 ? !1 :
|
|
85
|
+
function d(s) {
|
|
86
|
+
return s ? s.visible === !1 ? !1 : d(s.parent) : !0;
|
|
77
87
|
}
|
|
78
88
|
export {
|
|
79
|
-
|
|
89
|
+
L as FiveDomEvents
|
|
80
90
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function d(e, n) {
|
|
2
|
+
if (!n || !e)
|
|
3
|
+
return console.error("getFloorIndex: invalid arguments: ", { point: n, observer: e }), 0;
|
|
4
|
+
const r = [];
|
|
5
|
+
e.forEach((o) => {
|
|
6
|
+
r[o.floorIndex] || (r[o.floorIndex] = []), r[o.floorIndex].push(o.position.y);
|
|
7
|
+
});
|
|
8
|
+
const l = r.map((o) => o.reduce((t, f) => t + f, 0) / o.length);
|
|
9
|
+
for (let o = l.length - 1; o > 0; o--)
|
|
10
|
+
if (n.y >= l[o])
|
|
11
|
+
return o;
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
d as getFloorIndex
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.info(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.17.0-aplha.1",
|
|
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",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare class FragmentTransparencyMaterial extends THREE.ShaderMaterial {
|
|
3
|
+
uniforms: {
|
|
4
|
+
map: {
|
|
5
|
+
value: THREE.Texture;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
transparent: boolean;
|
|
9
|
+
blending: THREE.Blending;
|
|
10
|
+
blendSrc: THREE.BlendingDstFactor;
|
|
11
|
+
blendDst: THREE.BlendingDstFactor;
|
|
12
|
+
blendSrcAlpha: THREE.BlendingDstFactor;
|
|
13
|
+
blendDstAlpha: THREE.BlendingDstFactor;
|
|
14
|
+
vertexShader: string;
|
|
15
|
+
fragmentShader: string;
|
|
16
|
+
constructor(texture: THREE.Texture);
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var o = (n, a, e) => a in n ? i(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e;
|
|
3
|
+
var r = (n, a, e) => (o(n, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
import * as t from "three";
|
|
5
|
+
class s extends t.ShaderMaterial {
|
|
6
|
+
constructor(e) {
|
|
7
|
+
super();
|
|
8
|
+
r(this, "transparent", !1);
|
|
9
|
+
r(this, "blending", t.CustomBlending);
|
|
10
|
+
r(this, "blendSrc", t.SrcAlphaFactor);
|
|
11
|
+
r(this, "blendDst", t.OneMinusSrcAlphaFactor);
|
|
12
|
+
r(this, "blendSrcAlpha", t.OneFactor);
|
|
13
|
+
r(this, "blendDstAlpha", t.OneMinusSrcAlphaFactor);
|
|
14
|
+
r(this, "vertexShader", `
|
|
15
|
+
varying vec2 vUv;
|
|
16
|
+
void main() {
|
|
17
|
+
vUv = uv;
|
|
18
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
19
|
+
}
|
|
20
|
+
`);
|
|
21
|
+
r(this, "fragmentShader", `
|
|
22
|
+
uniform sampler2D map;
|
|
23
|
+
// \u7EB9\u7406\u5750\u6807
|
|
24
|
+
varying vec2 vUv;
|
|
25
|
+
void main() {
|
|
26
|
+
gl_FragColor = texture2D(map, vUv);
|
|
27
|
+
}
|
|
28
|
+
`);
|
|
29
|
+
this.uniforms = {
|
|
30
|
+
map: { value: e }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
s as FragmentTransparencyMaterial
|
|
36
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
|
|
2
|
+
import { Overwrite } from '../../typings/utils.type';
|
|
3
|
+
export default function loadVideoTexture(src: string, videoElement?: HTMLVideoElement): Promise<Overwrite<THREE.VideoTexture, {
|
|
3
4
|
image: HTMLVideoElement;
|
|
5
|
+
}>>;
|
|
6
|
+
export declare function getVideoTexture(src: string, videoElement?: HTMLVideoElement, metadataLoadedCallback?: (texture: THREE.VideoTexture) => void): Overwrite<THREE.VideoTexture, {
|
|
7
|
+
image: HTMLVideoElement;
|
|
8
|
+
metadataLoaded: boolean;
|
|
4
9
|
}>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as t from "three";
|
|
2
|
-
function u(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
});
|
|
2
|
+
function u(i, n, o) {
|
|
3
|
+
const e = n != null ? n : document.createElement("video");
|
|
4
|
+
e.preload = "metadata", e.crossOrigin = "anonymous", e.muted = !0, e.loop = !0, e.playsInline = !0, e.autoplay = !0;
|
|
5
|
+
const r = new t.VideoTexture(e);
|
|
6
|
+
return r.minFilter = t.LinearFilter, r.magFilter = t.LinearFilter, r.encoding = t.sRGBEncoding, r.metadataLoaded = !1, e.onloadedmetadata = () => {
|
|
7
|
+
o == null || o(r), r.dispatchEvent({ type: "videoLoaded" }), r.metadataLoaded = !0;
|
|
8
|
+
}, e.src = i, r;
|
|
11
9
|
}
|
|
12
10
|
export {
|
|
13
|
-
u as
|
|
11
|
+
u as getVideoTexture
|
|
14
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.17.0-aplha.1",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.20.2",
|
|
39
|
-
"@realsee/five": "^5.0.0-alpha.
|
|
39
|
+
"@realsee/five": "^5.0.0-alpha.198",
|
|
40
40
|
"@sveltejs/vite-plugin-svelte": "^1.3.1",
|
|
41
41
|
"@tsconfig/svelte": "^3.0.0",
|
|
42
42
|
"@types/animejs": "^3.1.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './deprecated';
|