@realsee/dnalogel 2.2.5-alpha.0 → 2.2.6
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/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +1 -2
- package/dist/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +0 -2
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4897 -5028
- package/dist/index.umd.js +38 -38
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/assets/highlight.css +0 -7
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- 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 +12 -12
- 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/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -6
- package/docs/functions/CameraMovementPlugin.html +5 -6
- package/docs/functions/CruisePlugin.html +5 -6
- package/docs/functions/GuideLinePlugin.html +6 -7
- package/docs/functions/ItemLabelPlugin.html +5 -6
- package/docs/functions/MapviewFloorplanPlugin.html +5 -6
- package/docs/functions/ModelChassisCompassPlugin.html +5 -6
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -6
- package/docs/functions/ModelFloorplanPlugin.html +5 -6
- package/docs/functions/ModelItemLabelPlugin.html +5 -6
- package/docs/functions/ModelRoomLabelPlugin.html +5 -6
- package/docs/functions/ModelTVVideoPlugin.html +5 -6
- package/docs/functions/ModelViewPlugin.html +5 -6
- package/docs/functions/Object3DHelperPlugin.html +5 -6
- package/docs/functions/PanoCompassPlugin.html +5 -6
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -6
- package/docs/functions/PanoDoorLabelPlugin.html +5 -6
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -6
- package/docs/functions/PanoMeasurePlugin.html +5 -6
- package/docs/functions/PanoRulerPlugin.html +5 -6
- package/docs/functions/PanoRulerProPlugin.html +5 -6
- package/docs/functions/PanoSpatialTagPlugin.html +5 -6
- package/docs/functions/PanoTagPlugin.html +5 -6
- package/docs/functions/TopviewFloorplanPlugin.html +5 -6
- 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 -7
- package/docs/index.html +5 -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/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 -7
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- 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 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -7
- 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/Point.html +8 -8
- package/docs/interfaces/PointJson.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 -7
- package/docs/interfaces/Rooms.html +6 -7
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +5 -7
- package/docs/types/ArrayPosition.html +6 -7
- package/docs/types/CSS3DRenderExportType.html +7 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -7
- package/docs/types/Color.html +6 -7
- package/docs/types/ContentTypeConfigKey.html +6 -7
- package/docs/types/ContentTypeConfigKeyArray.html +6 -7
- package/docs/types/Create3DDomContainerReturnType.html +6 -7
- package/docs/types/Create3DElementReturnType.html +7 -8
- package/docs/types/CruisePluginExportType.html +6 -7
- package/docs/types/Direction-1.html +6 -7
- package/docs/types/Direction4.html +6 -7
- package/docs/types/FloorplanRuleLabels.html +6 -7
- package/docs/types/FloorplanServerRuleLabels.html +6 -7
- package/docs/types/GuideLinePluginExportType.html +6 -7
- package/docs/types/HelperEventMap.html +6 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -7
- package/docs/types/MediaData.html +6 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -7
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -7
- package/docs/types/MoveArgs.html +6 -7
- package/docs/types/MoveOpts.html +6 -7
- package/docs/types/Object3DHelperEventMap.html +6 -7
- package/docs/types/ObjectFit.html +6 -7
- package/docs/types/PaintBrushEventMap.html +6 -7
- package/docs/types/PanoCompassPluginData.html +6 -7
- package/docs/types/PanoCompassPluginExportType.html +6 -7
- package/docs/types/PanoCompassPluginParameterType.html +6 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -7
- package/docs/types/PanoMeasurePluginEvent.html +6 -7
- package/docs/types/PanoMeasureReturnType.html +6 -7
- package/docs/types/PanoSpatialTagPluginId.html +6 -7
- package/docs/types/PanoTagPluginExportInterface.html +6 -7
- package/docs/types/PanoTagPluginParamsInterface.html +6 -7
- package/docs/types/PlaneTag.html +6 -7
- package/docs/types/PointTag.html +6 -7
- package/docs/types/Position.html +6 -7
- package/docs/types/RotateArgs.html +6 -7
- package/docs/types/RotateOpts.html +6 -7
- package/docs/types/RuleLabelsKey.html +6 -7
- package/docs/types/RuleLabelsValue.html +6 -7
- package/docs/types/Tag.html +6 -7
- package/docs/types/Tag2D.html +6 -7
- package/docs/types/Tag3D.html +6 -7
- package/docs/types/TagId.html +6 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -7
- package/docs/variables/PLUGIN.html +6 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -7
- package/docs/variables/ROOM_TYPE_MAP.html +6 -7
- package/docs/variables/VERSION.html +6 -7
- package/docs/variables/itemLabelPluginServerParams.html +6 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -7
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +251 -187
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +57 -48
- package/libs/CSS3DRenderPlugin/index.d.ts +1 -2
- package/libs/CSS3DRenderPlugin/index.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +42 -39
- package/libs/ModelTVVideoPlugin/index.js +1 -2
- package/libs/Object3DHelperPlugin/Controller.d.ts +0 -2
- package/libs/Object3DHelperPlugin/Controller.js +74 -89
- package/libs/PanoSpatialTagPlugin/index.js +1 -2
- package/libs/index.js +98 -107
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -8
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -1
- package/libs/shared-utils/three/index.js +1 -2
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/package.json +14 -15
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +0 -9
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/docs/classes/CSS3DRender.html +0 -533
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -22
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +0 -9
- package/libs/CSS3DRenderPlugin/utils/even.js +0 -7
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +0 -29
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +0 -9
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +0 -39
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +0 -93
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +0 -46
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +0 -39
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +0 -18
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { even as o } from "./even.js";
|
|
2
|
-
function u(e, i, n = !0) {
|
|
3
|
-
if (!e)
|
|
4
|
-
return console.error("createResizeObserver: element is undefined"), { observe: () => {
|
|
5
|
-
}, unobserve: () => {
|
|
6
|
-
} };
|
|
7
|
-
const r = () => {
|
|
8
|
-
const t = o(e.clientWidth, { floor: !0 }), v = o(e.clientHeight, { floor: !0 });
|
|
9
|
-
i(t, v);
|
|
10
|
-
};
|
|
11
|
-
if (typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
12
|
-
return console.warn("createResizeObserver: ResizeObserver is undefined"), { observe: () => r(), unobserve: () => {
|
|
13
|
-
} };
|
|
14
|
-
const s = new ResizeObserver(r);
|
|
15
|
-
return n && r(), {
|
|
16
|
-
observe: () => s.observe(e),
|
|
17
|
-
unobserve: () => s.unobserve(e)
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
u as createResizeObserver
|
|
22
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const n = document.createElement("div");
|
|
2
|
-
n.style.position = "absolute";
|
|
3
|
-
n.style.top = "0";
|
|
4
|
-
n.style.left = "0";
|
|
5
|
-
n.style.width = "100%";
|
|
6
|
-
n.style.height = "100%";
|
|
7
|
-
function s(t) {
|
|
8
|
-
var o, r;
|
|
9
|
-
const e = (r = l(t.getElement())) != null ? r : l((o = t.getElement()) == null ? void 0 : o.parentElement);
|
|
10
|
-
if (e != null && e.parentElement)
|
|
11
|
-
return e.parentElement.insertBefore(n, e), n;
|
|
12
|
-
console.error(
|
|
13
|
-
"Can not find a valid element to insert behindFiveElement. How to fix it: https://github.com/realsee-developer/dnalogel/blob/main/plugins/src/PanoTagPlugin/README.md"
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
function l(t) {
|
|
17
|
-
var i;
|
|
18
|
-
if (!t)
|
|
19
|
-
return;
|
|
20
|
-
const e = (i = t.style.position) != null ? i : getComputedStyle(t).position;
|
|
21
|
-
if (e !== "fixed" && e !== "absolute" && e !== "relative")
|
|
22
|
-
return;
|
|
23
|
-
const o = getComputedStyle(t).backgroundColor;
|
|
24
|
-
if (!(o !== "transparent" && o !== "rgba(0, 0, 0, 0)"))
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
s as generateBehindFiveElement
|
|
29
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import type { Object3D } from 'three';
|
|
3
|
-
export declare class CSS3DFrontGroup extends THREE.Group {
|
|
4
|
-
constructor();
|
|
5
|
-
add(...objects: Object3D[]): this;
|
|
6
|
-
}
|
|
7
|
-
export declare class CSS3DBehindGroup extends THREE.Group {
|
|
8
|
-
private scene;
|
|
9
|
-
constructor(scene: THREE.Scene);
|
|
10
|
-
add(...objects: Object3D[]): this;
|
|
11
|
-
remove(...objects: Object3D[]): this;
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var a = Object.defineProperty;
|
|
2
|
-
var h = (o, e, r) => e in o ? a(o, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[e] = r;
|
|
3
|
-
var n = (o, e, r) => (h(o, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import * as i from "three";
|
|
5
|
-
import { getAllCSS3DObject as s } from "../getAllCSS3DObject.js";
|
|
6
|
-
class c extends i.Group {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
}
|
|
10
|
-
add(...e) {
|
|
11
|
-
return super.add(...e), s(...e).forEach((r) => {
|
|
12
|
-
r.mode = "front";
|
|
13
|
-
}), this;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
class m extends i.Group {
|
|
17
|
-
constructor(r) {
|
|
18
|
-
super();
|
|
19
|
-
n(this, "scene");
|
|
20
|
-
if (!r)
|
|
21
|
-
throw new Error("CSS3DBehindScene: scene is required");
|
|
22
|
-
this.scene = r;
|
|
23
|
-
}
|
|
24
|
-
add(...r) {
|
|
25
|
-
return super.add(...r), s(...r).forEach((t) => {
|
|
26
|
-
t.mode = "behind", this.scene.add(t.getOpacityMesh());
|
|
27
|
-
}), this;
|
|
28
|
-
}
|
|
29
|
-
remove(...r) {
|
|
30
|
-
return s(...r).forEach((t) => {
|
|
31
|
-
var d;
|
|
32
|
-
(d = t.opacityMesh) == null || d.removeFromParent();
|
|
33
|
-
}), super.remove(...r), this;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
m as CSS3DBehindGroup,
|
|
38
|
-
c as CSS3DFrontGroup
|
|
39
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var H = Object.defineProperty;
|
|
2
|
-
var C = (h, r, t) => r in h ? H(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t;
|
|
3
|
-
var o = (h, r, t) => (C(h, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
|
-
import { CSS3DObject as F } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
-
import { Vector3 as l } from "three";
|
|
6
|
-
import { even as b } from "../even.js";
|
|
7
|
-
import { centerPoint as A } from "../centerPoint.js";
|
|
8
|
-
import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
|
|
9
|
-
import { OpecityMesh as R } from "./OpacityMesh.js";
|
|
10
|
-
const V = 1, D = `CSS3DObjectPlus@${V}`, N = 216e-5, T = 3e-3;
|
|
11
|
-
class q extends F {
|
|
12
|
-
constructor(t) {
|
|
13
|
-
var v, f, w;
|
|
14
|
-
const e = t.container, i = t.cornerPoints, s = (v = t.ratio) != null ? v : T, M = (f = t.dpr) != null ? f : 1, O = (w = t.pointerEvents) != null ? w : "auto", c = Math.max(N, s), y = i[0].distanceTo(i[1]), d = i[1].distanceTo(i[2]), a = b(y / s * M), p = b(d / s * M), m = A(...i);
|
|
15
|
-
let u;
|
|
16
|
-
if (c === s)
|
|
17
|
-
e.style.width = `${a}px`, e.style.height = `${p}px`, u = e;
|
|
18
|
-
else {
|
|
19
|
-
const n = document.createElement("div");
|
|
20
|
-
n.style.width = `${a}px`, n.style.height = `${p}px`, n.style.pointerEvents = "none";
|
|
21
|
-
const S = s / c;
|
|
22
|
-
e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${S * a}px`, e.style.height = `${S * p}px`, n.appendChild(e), u = n;
|
|
23
|
-
}
|
|
24
|
-
super(u);
|
|
25
|
-
o(this, "version", V);
|
|
26
|
-
o(this, "isCSS3DObjectPlus", !0);
|
|
27
|
-
o(this, "container");
|
|
28
|
-
o(this, "width");
|
|
29
|
-
o(this, "height");
|
|
30
|
-
o(this, "domWidthPx");
|
|
31
|
-
o(this, "domHeightPx");
|
|
32
|
-
o(this, "cornerPoints");
|
|
33
|
-
o(this, "centerPosition");
|
|
34
|
-
o(this, "ratio");
|
|
35
|
-
o(this, "mode", "front");
|
|
36
|
-
o(this, "hooks", new Q());
|
|
37
|
-
o(this, "opacityMesh");
|
|
38
|
-
o(this, "createOpacityMesh", (t) => {
|
|
39
|
-
const { domWidthPx: e, domHeightPx: i } = t, s = new R(e, i);
|
|
40
|
-
return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
|
|
41
|
-
});
|
|
42
|
-
if (e.style.pointerEvents = O, this.scale.set(c, c, c), this.cornerPoints = i, this.ratio = s, this.container = e, t.mode && (this.mode = t.mode), c === s)
|
|
43
|
-
this.width = y, this.height = d, this.domWidthPx = a, this.domHeightPx = p, this.centerPosition = m;
|
|
44
|
-
else {
|
|
45
|
-
const n = s / c;
|
|
46
|
-
this.width = n * y, this.height = n * d, this.domWidthPx = n * a, this.domHeightPx = n * p, this.centerPosition = new l().subVectors(m, i[0]).multiplyScalar(n).add(i[0]);
|
|
47
|
-
}
|
|
48
|
-
e.classList.add(`${D}__container`);
|
|
49
|
-
const E = new l().subVectors(i[1], i[0]), P = new l().subVectors(i[3], i[0]), $ = new l().crossVectors(E, P).normalize();
|
|
50
|
-
this.lookAt($);
|
|
51
|
-
const x = this.up.clone().applyQuaternion(this.quaternion), g = P.clone(), W = new l().crossVectors(x, g).normalize();
|
|
52
|
-
this.rotateOnWorldAxis(W, x.angleTo(g)), this.position.copy(m);
|
|
53
|
-
}
|
|
54
|
-
setVisible(t) {
|
|
55
|
-
this.visible = t, this.opacityMesh && (this.opacityMesh.visible = t);
|
|
56
|
-
}
|
|
57
|
-
removeFromParent() {
|
|
58
|
-
var e;
|
|
59
|
-
const t = this.parent;
|
|
60
|
-
return t !== null && t.remove(this), (e = this.opacityMesh) == null || e.removeFromParent(), this;
|
|
61
|
-
}
|
|
62
|
-
removeOpacityMesh() {
|
|
63
|
-
var t;
|
|
64
|
-
return (t = this.opacityMesh) == null || t.removeFromParent(), this.opacityMesh = void 0, this;
|
|
65
|
-
}
|
|
66
|
-
dispose() {
|
|
67
|
-
var t;
|
|
68
|
-
this.container.remove(), this.removeFromParent(), (t = this.opacityMesh) == null || t.removeFromParent();
|
|
69
|
-
}
|
|
70
|
-
getOpacityMesh() {
|
|
71
|
-
if (this.opacityMesh)
|
|
72
|
-
return this.opacityMesh;
|
|
73
|
-
{
|
|
74
|
-
const t = this.createOpacityMesh(this);
|
|
75
|
-
return this.opacityMesh = t, t;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
applyMatrix4(t) {
|
|
79
|
-
var e;
|
|
80
|
-
super.applyMatrix4(t), (e = this.opacityMesh) == null || e.applyMatrix4(t);
|
|
81
|
-
}
|
|
82
|
-
applyQuaternion(t) {
|
|
83
|
-
var e;
|
|
84
|
-
return super.applyQuaternion(t), (e = this.opacityMesh) == null || e.applyQuaternion(t), this;
|
|
85
|
-
}
|
|
86
|
-
applyScaleMatrix4(t) {
|
|
87
|
-
var e;
|
|
88
|
-
this.scale.applyMatrix4(t), (e = this.opacityMesh) == null || e.scale.applyMatrix4(t);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
q as CSS3DObjectPlus
|
|
93
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
2
|
-
import type * as THREE from 'three';
|
|
3
|
-
export default class ICSS3DRenderer extends CSS3DRenderer {
|
|
4
|
-
wrapper?: HTMLElement;
|
|
5
|
-
private requestAnimationFrameId?;
|
|
6
|
-
private resizeDisoper?;
|
|
7
|
-
constructor();
|
|
8
|
-
setWrapper(wrapper: HTMLElement): this;
|
|
9
|
-
appendToElement(wrapper: HTMLElement): void;
|
|
10
|
-
renderEveryFrame(scene: THREE.Scene, camera: THREE.Camera): void;
|
|
11
|
-
stopRender(): void;
|
|
12
|
-
dispose(): void;
|
|
13
|
-
}
|
|
14
|
-
export { ICSS3DRenderer };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var d = Object.defineProperty;
|
|
2
|
-
var l = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
-
var s = (r, t, e) => (l(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { CSS3DRenderer as p } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
5
|
-
import { getAllCSS3DObject as h } from "../getAllCSS3DObject.js";
|
|
6
|
-
import { createResizeObserver as u } from "../createResizeObserver.js";
|
|
7
|
-
class v extends p {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
s(this, "wrapper");
|
|
11
|
-
s(this, "requestAnimationFrameId");
|
|
12
|
-
s(this, "resizeDisoper");
|
|
13
|
-
this.domElement.style.position = "absolute", this.domElement.style.top = "0", this.domElement.style.left = "0", this.domElement.style.userSelect = "none", this.domElement.style.pointerEvents = "none";
|
|
14
|
-
}
|
|
15
|
-
setWrapper(e) {
|
|
16
|
-
if (!e)
|
|
17
|
-
throw new Error("CSS3DRenderer: wrapper is required");
|
|
18
|
-
if (e.contains(this.domElement))
|
|
19
|
-
return;
|
|
20
|
-
const i = this.wrapper;
|
|
21
|
-
return i && i.contains(this.domElement) && this.domElement.remove(), this.appendToElement(e), this.wrapper = e, this;
|
|
22
|
-
}
|
|
23
|
-
appendToElement(e) {
|
|
24
|
-
e.appendChild(this.domElement);
|
|
25
|
-
const i = (m, a) => this.setSize(m, a), { observe: n, unobserve: o } = u(e, i, !0);
|
|
26
|
-
n(), this.resizeDisoper = o, this.wrapper = e;
|
|
27
|
-
}
|
|
28
|
-
renderEveryFrame(e, i) {
|
|
29
|
-
if (this.wrapper || console.warn("wrapper is not find, creating a html element and call setWrapper(wrapper)", this, e), this.requestAnimationFrameId)
|
|
30
|
-
return console.warn("CSS3DRenderer: render is running");
|
|
31
|
-
const n = () => {
|
|
32
|
-
this.requestAnimationFrameId = requestAnimationFrame(n), !!e.visible && h(e).length !== 0 && this.render(e, i);
|
|
33
|
-
};
|
|
34
|
-
n();
|
|
35
|
-
}
|
|
36
|
-
stopRender() {
|
|
37
|
-
this.requestAnimationFrameId && cancelAnimationFrame(this.requestAnimationFrameId);
|
|
38
|
-
}
|
|
39
|
-
dispose() {
|
|
40
|
-
var e;
|
|
41
|
-
this.stopRender(), (e = this.resizeDisoper) == null || e.call(this), this.domElement.remove();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
v as ICSS3DRenderer
|
|
46
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Object3D } from 'three';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
export declare class CSS3DFrontScene extends THREE.Scene {
|
|
4
|
-
constructor();
|
|
5
|
-
add(...objects: Object3D[]): this;
|
|
6
|
-
}
|
|
7
|
-
export declare class CSS3DBehindScene extends THREE.Scene {
|
|
8
|
-
private scene;
|
|
9
|
-
constructor(scene: THREE.Scene);
|
|
10
|
-
add(...objects: Object3D[]): this;
|
|
11
|
-
remove(...objects: Object3D[]): this;
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var i = Object.defineProperty;
|
|
2
|
-
var a = (n, r, e) => r in n ? i(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
-
var d = (n, r, e) => (a(n, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
-
import * as c from "three";
|
|
5
|
-
import { getAllCSS3DObject as o } from "../getAllCSS3DObject.js";
|
|
6
|
-
class m extends c.Scene {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
}
|
|
10
|
-
add(...r) {
|
|
11
|
-
return super.add(...r), o(...r).forEach((e) => {
|
|
12
|
-
e.mode = "front";
|
|
13
|
-
}), this;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
class p extends c.Scene {
|
|
17
|
-
constructor(e) {
|
|
18
|
-
super();
|
|
19
|
-
d(this, "scene");
|
|
20
|
-
if (!e)
|
|
21
|
-
throw new Error("CSS3DBehindScene: scene is required");
|
|
22
|
-
this.scene = e;
|
|
23
|
-
}
|
|
24
|
-
add(...e) {
|
|
25
|
-
return super.add(...e), o(...e).forEach((t) => {
|
|
26
|
-
t.mode = "behind", this.scene.add(t.getOpacityMesh());
|
|
27
|
-
}), this;
|
|
28
|
-
}
|
|
29
|
-
remove(...e) {
|
|
30
|
-
return o(...e).forEach((t) => {
|
|
31
|
-
var s;
|
|
32
|
-
(s = t.opacityMesh) == null || s.removeFromParent();
|
|
33
|
-
}), super.remove(...e), this;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
p as CSS3DBehindScene,
|
|
38
|
-
m as CSS3DFrontScene
|
|
39
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var m = (r, t, e) => t in r ? c(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
-
var o = (r, t, e) => (m(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import * as s from "three";
|
|
5
|
-
class p extends s.Mesh {
|
|
6
|
-
constructor(e, a) {
|
|
7
|
-
const n = new s.MeshBasicMaterial({ opacity: 0, color: 0, transparent: !1, side: s.DoubleSide }), i = new s.PlaneGeometry(e, a);
|
|
8
|
-
super(i, n);
|
|
9
|
-
o(this, "name", "opacity-mesh");
|
|
10
|
-
}
|
|
11
|
-
removeFromParent() {
|
|
12
|
-
const e = this.parent;
|
|
13
|
-
return e !== null && e.remove(this), this;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
p as OpecityMesh
|
|
18
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var t = (o, n, e) => new Promise((c, l) => {
|
|
2
|
-
var i = (d) => {
|
|
3
|
-
try {
|
|
4
|
-
r(e.next(d));
|
|
5
|
-
} catch (a) {
|
|
6
|
-
l(a);
|
|
7
|
-
}
|
|
8
|
-
}, m = (d) => {
|
|
9
|
-
try {
|
|
10
|
-
r(e.throw(d));
|
|
11
|
-
} catch (a) {
|
|
12
|
-
l(a);
|
|
13
|
-
}
|
|
14
|
-
}, r = (d) => d.done ? c(d.value) : Promise.resolve(d.value).then(i, m);
|
|
15
|
-
r((e = e.apply(o, n)).next());
|
|
16
|
-
});
|
|
17
|
-
function f(o) {
|
|
18
|
-
return t(this, null, function* () {
|
|
19
|
-
return new Promise((n) => {
|
|
20
|
-
var e;
|
|
21
|
-
if ((e = o.model) != null && e.loaded) {
|
|
22
|
-
n();
|
|
23
|
-
return;
|
|
24
|
-
} else
|
|
25
|
-
o.once("modelLoaded", () => n());
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
f as fiveModelLoaded
|
|
31
|
-
};
|