@realsee/dnalogel 2.23.1-dev.0 → 2.24.0-dev.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/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -6
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +935 -925
- package/dist/index.umd.js +29 -29
- package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -2
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +18 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagRender.js +120 -105
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -6
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +85 -90
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -2
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,89 +1,106 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var i = (
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var V = (c, a, e) => a in c ? E(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
|
|
3
|
+
var n = (c, a, e) => (V(c, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
var v = (c, a, e) => new Promise((t, s) => {
|
|
5
|
+
var i = (o) => {
|
|
6
6
|
try {
|
|
7
|
-
r(e.next(
|
|
7
|
+
r(e.next(o));
|
|
8
8
|
} catch (h) {
|
|
9
9
|
s(h);
|
|
10
10
|
}
|
|
11
|
-
}, d = (
|
|
11
|
+
}, d = (o) => {
|
|
12
12
|
try {
|
|
13
|
-
r(e.throw(
|
|
13
|
+
r(e.throw(o));
|
|
14
14
|
} catch (h) {
|
|
15
15
|
s(h);
|
|
16
16
|
}
|
|
17
|
-
}, r = (
|
|
17
|
+
}, r = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(i, d);
|
|
18
18
|
r((e = e.apply(c, a)).next());
|
|
19
19
|
});
|
|
20
|
-
import * as
|
|
20
|
+
import * as M from "three";
|
|
21
21
|
import { Vector3 as g } from "three";
|
|
22
|
-
import { centerPoint as
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
import { QuadrangleGeometry as
|
|
22
|
+
import { centerPoint as b } from "../../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import { loadTexture as x } from "../../../shared-utils/three/loadTexture.js";
|
|
24
|
+
import { QuadrangleGeometry as C, QuadrangleMesh as y } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
25
|
import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
27
|
-
import { getPositionsByObjectFit as
|
|
28
|
-
import { FragmentTransparencyMaterial as
|
|
26
|
+
import { Image_Play_Icon_With_Text as F, Image_Play_Icon as P } from "../../Assets/Icon.js";
|
|
27
|
+
import { getPositionsByObjectFit as f } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
+
import { FragmentTransparencyMaterial as L } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
29
|
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
30
30
|
import "../../../shared-utils/device.js";
|
|
31
|
-
class
|
|
31
|
+
class T extends M.Mesh {
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments);
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
n(this, "name", "MediaPlane");
|
|
35
|
+
n(this, "src");
|
|
36
36
|
}
|
|
37
37
|
removeFromParent() {
|
|
38
38
|
const e = this.parent;
|
|
39
39
|
return e !== null && e.remove(this), this;
|
|
40
40
|
}
|
|
41
|
+
dispose() {
|
|
42
|
+
this.traverse((e) => {
|
|
43
|
+
if (e.isMesh) {
|
|
44
|
+
const t = e;
|
|
45
|
+
t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((i) => {
|
|
46
|
+
i.dispose();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
|
-
class
|
|
52
|
+
class G extends T {
|
|
43
53
|
constructor(e, t, s) {
|
|
44
54
|
super();
|
|
45
|
-
|
|
46
|
-
this.src = e,
|
|
55
|
+
n(this, "name", "PanoTagPluginImagePlane");
|
|
56
|
+
this.src = e, x(e).then((i) => {
|
|
47
57
|
var m;
|
|
48
|
-
const d = new URL(e, location.href).pathname.endsWith(".png"), r = new
|
|
49
|
-
this.position.copy(h), this.geometry =
|
|
58
|
+
const d = new URL(e, location.href).pathname.endsWith(".png"), r = new M.MeshBasicMaterial({ map: i, transparent: d }), o = f((m = s == null ? void 0 : s.objectFit) != null ? m : "contain", t, i.image.width / i.image.height), h = b(...o), u = o.map((l) => l.clone().sub(h)), p = new C(u);
|
|
59
|
+
this.position.copy(h), this.geometry = p, this.material = r;
|
|
50
60
|
}).catch((i) => {
|
|
51
61
|
console.error(`Imageplane error ${i}`);
|
|
52
62
|
});
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
class
|
|
65
|
+
class O extends T {
|
|
56
66
|
// eslint-disable-next-line max-params
|
|
57
67
|
constructor(e, t, s) {
|
|
58
|
-
const {
|
|
68
|
+
const {
|
|
69
|
+
videoCoverSrc: i,
|
|
70
|
+
objectFit: d = "contain",
|
|
71
|
+
playButton: r = "withText",
|
|
72
|
+
paused: o = !0,
|
|
73
|
+
videoTextureMap: h,
|
|
74
|
+
ImageTextureMap: u,
|
|
75
|
+
domEvents: p
|
|
76
|
+
} = s != null ? s : {};
|
|
59
77
|
super();
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
n ? this.addButtonMesh() : this.play(!0);
|
|
78
|
+
n(this, "isVideoPlane", !0);
|
|
79
|
+
n(this, "name", "PanoTagPluginImagePlane");
|
|
80
|
+
n(this, "videoInstance");
|
|
81
|
+
n(this, "onVideoReady");
|
|
82
|
+
n(this, "objectFit");
|
|
83
|
+
n(this, "buttonSrc");
|
|
84
|
+
n(this, "videoCoverSrc");
|
|
85
|
+
n(this, "domEvents");
|
|
86
|
+
n(this, "disposers", []);
|
|
87
|
+
n(this, "cornerPoints");
|
|
88
|
+
n(this, "videoMesh");
|
|
89
|
+
n(this, "coverMesh");
|
|
90
|
+
n(this, "buttonMesh");
|
|
91
|
+
n(this, "videoTextureMap");
|
|
92
|
+
n(this, "ImageTextureMap");
|
|
93
|
+
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => r === "withText" ? F : r === "withoutText" ? P : typeof r == "string" ? r : P)(), this.videoCoverSrc = i, this.objectFit = d, this.videoTextureMap = h, this.ImageTextureMap = u, this.domEvents = p, this.position.copy(b(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
94
|
+
o ? this.addButtonMesh() : this.play(!0);
|
|
78
95
|
}), this.addEventListener("removed", () => {
|
|
79
96
|
this.remove(...this.children);
|
|
80
97
|
}), this.addEventListener("dispose", () => {
|
|
81
|
-
var
|
|
82
|
-
|
|
98
|
+
var m;
|
|
99
|
+
(m = this.disposers) == null || m.forEach((l) => l == null ? void 0 : l());
|
|
83
100
|
});
|
|
84
101
|
}
|
|
85
102
|
play(e = !1) {
|
|
86
|
-
return
|
|
103
|
+
return v(this, null, function* () {
|
|
87
104
|
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((t) => {
|
|
88
105
|
this.pause(), console.error("play error", t);
|
|
89
106
|
}), this.videoInstance.muted = e, this.render();
|
|
@@ -92,9 +109,6 @@ class G extends P {
|
|
|
92
109
|
pause() {
|
|
93
110
|
this.videoInstance && (this.videoInstance.pause(), this.showPauseUI().then(() => this.render()));
|
|
94
111
|
}
|
|
95
|
-
initialDomEvents(e) {
|
|
96
|
-
this.domEvents || (this.domEvents = e, this.domEventsListenerTemporaryList.forEach((t) => this.addDomEventListener(...t)), this.domEventsListenerTemporaryList = []);
|
|
97
|
-
}
|
|
98
112
|
initialRenderHooks(e) {
|
|
99
113
|
const s = e(() => {
|
|
100
114
|
var i;
|
|
@@ -106,7 +120,7 @@ class G extends P {
|
|
|
106
120
|
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
107
121
|
}
|
|
108
122
|
showPauseUI() {
|
|
109
|
-
return
|
|
123
|
+
return v(this, null, function* () {
|
|
110
124
|
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
111
125
|
});
|
|
112
126
|
}
|
|
@@ -114,30 +128,11 @@ class G extends P {
|
|
|
114
128
|
var e;
|
|
115
129
|
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
116
130
|
}
|
|
117
|
-
addAutoBindEventListener(...e) {
|
|
118
|
-
const t = e[0];
|
|
119
|
-
t.addEventListener("added", () => {
|
|
120
|
-
this.addDomEventListener(...e);
|
|
121
|
-
}), t.addEventListener("removed", () => {
|
|
122
|
-
this.removeDomEventListener(...e);
|
|
123
|
-
}), t.addEventListener("dispose", () => {
|
|
124
|
-
this.removeDomEventListener(...e);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
addDomEventListener(...e) {
|
|
128
|
-
this.domEvents ? (this.domEvents.addEventListener(...e), this.disposers.push(() => {
|
|
129
|
-
var t;
|
|
130
|
-
return (t = this.domEvents) == null ? void 0 : t.removeEventListener(...e);
|
|
131
|
-
})) : this.domEventsListenerTemporaryList.push(e);
|
|
132
|
-
}
|
|
133
|
-
removeDomEventListener(...e) {
|
|
134
|
-
this.domEvents ? this.domEvents.removeEventListener(...e) : this.domEventsListenerTemporaryList = this.domEventsListenerTemporaryList.filter((t) => t !== e);
|
|
135
|
-
}
|
|
136
131
|
addCoverMesh() {
|
|
137
|
-
return
|
|
132
|
+
return v(this, null, function* () {
|
|
138
133
|
if (this.children.includes(this.coverMesh))
|
|
139
134
|
return;
|
|
140
|
-
const e = yield (() =>
|
|
135
|
+
const e = yield (() => v(this, null, function* () {
|
|
141
136
|
if (this.coverMesh)
|
|
142
137
|
return this.coverMesh;
|
|
143
138
|
if (!this.videoCoverSrc)
|
|
@@ -145,32 +140,32 @@ class G extends P {
|
|
|
145
140
|
const t = yield this.getImageTexture(this.videoCoverSrc);
|
|
146
141
|
if (!t)
|
|
147
142
|
return;
|
|
148
|
-
const s = new
|
|
143
|
+
const s = new M.MeshBasicMaterial({ transparent: !1, map: t }), i = f(this.objectFit, this.cornerPoints, t.image.width / t.image.height), d = new y(i, s);
|
|
149
144
|
return d.position.copy(new g(0, 0, 0)), d.name = "videoCoverMesh", d;
|
|
150
145
|
}))();
|
|
151
146
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
152
147
|
});
|
|
153
148
|
}
|
|
154
149
|
addVideoMesh() {
|
|
155
|
-
return
|
|
150
|
+
return v(this, null, function* () {
|
|
156
151
|
if (this.children.includes(this.videoMesh))
|
|
157
152
|
return;
|
|
158
|
-
const e = yield (() =>
|
|
153
|
+
const e = yield (() => v(this, null, function* () {
|
|
159
154
|
if (this.videoMesh)
|
|
160
155
|
return this.videoMesh;
|
|
161
156
|
if (!this.src)
|
|
162
157
|
return;
|
|
163
|
-
const s = this.getVideoTexture(this.src), i = new
|
|
164
|
-
s.metadataLoaded ?
|
|
158
|
+
const s = this.getVideoTexture(this.src), i = new M.MeshBasicMaterial({ transparent: !1, map: s }), d = yield new Promise((o) => {
|
|
159
|
+
s.metadataLoaded ? o(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
|
|
165
160
|
"videoLoaded",
|
|
166
|
-
() =>
|
|
161
|
+
() => o(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
167
162
|
);
|
|
168
163
|
}), r = new y(d, i);
|
|
169
164
|
return r.name = "videoMesh", r.position.copy(new g(0, 0, 0)), r;
|
|
170
165
|
}))();
|
|
171
166
|
if (!e)
|
|
172
167
|
return;
|
|
173
|
-
this.addAutoBindEventListener(e, "click", () => {
|
|
168
|
+
this.domEvents.addAutoBindEventListener(e, "click", () => {
|
|
174
169
|
!this.videoInstance.paused && this.videoInstance.muted ? this.videoInstance.muted = !1 : this.pause();
|
|
175
170
|
});
|
|
176
171
|
const t = e.material.map.image;
|
|
@@ -182,27 +177,27 @@ class G extends P {
|
|
|
182
177
|
});
|
|
183
178
|
}
|
|
184
179
|
addButtonMesh() {
|
|
185
|
-
return
|
|
180
|
+
return v(this, null, function* () {
|
|
186
181
|
if (this.children.includes(this.buttonMesh))
|
|
187
182
|
return;
|
|
188
|
-
const e = yield (() =>
|
|
189
|
-
var m,
|
|
183
|
+
const e = yield (() => v(this, null, function* () {
|
|
184
|
+
var m, l, w, I;
|
|
190
185
|
if (this.buttonMesh)
|
|
191
186
|
return this.buttonMesh;
|
|
192
|
-
const t = (
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
return
|
|
187
|
+
const t = (l = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? l : 1 / 0, s = (I = (w = this.coverMesh) == null ? void 0 : w.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? I : 1 / 0, i = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(t, s, i) / i * 0.3, o = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, o.image.width / o.image.height), u = new y(h, new L(o));
|
|
188
|
+
u.position.copy(new g(0, 0, 0)), u.name = "buttonMesh", u.scale.set(r, r, r), this.domEvents.addAutoBindEventListener(u, "click", () => this.play());
|
|
189
|
+
const p = new M.Vector3().crossVectors(new M.Vector3().subVectors(h[0], h[1]), new M.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
|
|
190
|
+
return u.position.add(p), u;
|
|
196
191
|
}))();
|
|
197
192
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
198
193
|
});
|
|
199
194
|
}
|
|
200
195
|
getImageTexture(e) {
|
|
201
|
-
return
|
|
196
|
+
return v(this, null, function* () {
|
|
202
197
|
var s, i;
|
|
203
198
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
204
199
|
return this.ImageTextureMap.get(e);
|
|
205
|
-
const t = yield
|
|
200
|
+
const t = yield x(e);
|
|
206
201
|
return (i = this.ImageTextureMap) == null || i.set(e, t), t;
|
|
207
202
|
});
|
|
208
203
|
}
|
|
@@ -215,6 +210,6 @@ class G extends P {
|
|
|
215
210
|
}
|
|
216
211
|
}
|
|
217
212
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
213
|
+
G as ImagePlane,
|
|
214
|
+
O as VideoPlane
|
|
220
215
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Five } from '@realsee/five';
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
2
|
import DomEvents, { type DomEventInterface } from '../threex/domevents';
|
|
3
|
-
import * as THREE from 'three';
|
|
3
|
+
import type * as THREE from 'three';
|
|
4
4
|
export declare class FiveDomEvents extends DomEvents {
|
|
5
5
|
private mouseInfo?;
|
|
6
6
|
private clickHandlerMap;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.24.0-dev.0",
|
|
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/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.24.0-dev.0",
|
|
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*",
|