@realsee/dnalogel 3.73.1 → 3.73.3-alpha.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/CHANGELOG.md +8 -0
- package/dist/MeasurePlugin/Controller.d.ts +3 -4
- package/dist/MeasurePlugin/index.d.ts +2 -1
- package/dist/Sculpt/utils/export.d.ts +1 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.js +4451 -4432
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +80 -79
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/MeasurePlugin/Controller.d.ts +3 -4
- package/libs/MeasurePlugin/Controller.js +29 -29
- package/libs/MeasurePlugin/index.d.ts +2 -1
- package/libs/MeasurePlugin/index.js +6 -5
- package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +1 -1
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +4 -3
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +18 -17
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +3 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +95 -94
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +22 -21
- package/libs/Sculpt/Meshes/Circle.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Base/index.js +1 -0
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +19 -18
- package/libs/Sculpt/utils/export.d.ts +1 -0
- package/libs/Sculpt/utils/export.js +23 -20
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +146 -145
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/exports.js +62 -55
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +3 -2
- package/libs/shared-utils/three/PointDomHelper.js +3 -2
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/geometryUtil.js +12 -8
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
|
@@ -12,97 +12,104 @@ import { PointHelper as A } from "./three/PointSelector/utils/PointHelper.js";
|
|
|
12
12
|
import { PointSelectorHelper as a } from "./three/PointSelector/utils/PointSelectorHelper.js";
|
|
13
13
|
import { Object3D as L } from "./three/core/Object3D.js";
|
|
14
14
|
import { LineSegments as T } from "./three/core/LineSegments.js";
|
|
15
|
-
import { bounding as
|
|
15
|
+
import { bounding as g, boundingBox as I, boundingSphere as F, boxVertex as P, boxVertexes as d, worldBounding as D, worldBoundingBox as O, worldBoundingSphere as S } from "./three/boundingBox.js";
|
|
16
16
|
import { ANIME_PRESETS as M, DEFAULT_ANIME_CONFIG as s, animeMap as N, blink as R, blinkWithPreset as U, cleanup as c, reblink as u } from "./three/blink.js";
|
|
17
17
|
import { getIntersectFromRelativePosition as G } from "./three/getIntersect.js";
|
|
18
18
|
import { getRaycasterFromFivePointer as b } from "./three/getRaycaster.js";
|
|
19
19
|
import { PointDomHelper as x } from "./three/PointDomHelper.js";
|
|
20
20
|
import { LegacyPointHelper as v } from "./three/LegacyPointHelper.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
21
|
+
import { getGeometryArea as C, getGeometryInfo as y, triangleArea as k, triangleCenter as w } from "./three/geometryUtil.js";
|
|
22
|
+
import { generatePolygonGeometry as B } from "./three/generatePolygonGeometry.js";
|
|
23
|
+
import { isNil as H, notNil as h } from "./isNil.js";
|
|
24
|
+
import { uuid as j } from "./uuid.js";
|
|
25
|
+
import { CURRENT_PANO_IMAGE_DEFAULT_IMAGE as W, DEFAULT_STATIC_PREFIX as X, DNALOGEL_DEFAULT_ASSETS as q, ENTRY_DOOR_DEFAULT_IMAGE as V, FLOORPLAN_DEFAULT_IMAGE as Y, GUIDELINE_DEFAULT_ARROW_TEXTURE as z, GUIDELINE_WHITE_ARROW_TEXTURE as K, MODEL_CHASSIS_COMPASS_DEFAULT_MODEL as J, MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL as Q, PANO_COMPASS_DEFAULT_IMAGE as Z, PANO_SPATIAL_TAG_BLUR_IMAGE as $, PANO_TAG_DEFAULT_LINK_ICON as oo } from "./url/defaultUrls.js";
|
|
26
|
+
import { replaceStaticPrefix as ro } from "./url/replace-static-prefix.js";
|
|
27
|
+
import { awaitNextFrame as eo, getFrameTime as to, nextFrame as io, requestAnimationFrameInterval as mo } from "./animationFrame/index.js";
|
|
28
|
+
import { equal as no } from "./equal.js";
|
|
29
|
+
import { FivePuppet as po } from "./five/FivePuppet.js";
|
|
30
|
+
import { isModelLike as _o, isPanoramaLike as Eo } from "./five/mode.js";
|
|
31
|
+
import { lookObject as fo } from "./five/lookObject.js";
|
|
32
|
+
import { lookPoint as lo } from "./five/lookPoint.js";
|
|
33
|
+
import { fiveModelIsLoaded as Ao, waitFiveModelLoaded as ao } from "./five/fiveModelLoad.js";
|
|
34
|
+
import { FiveDomEvents as Lo } from "./five/FiveDomEvents.js";
|
|
35
|
+
import { initialCSS3DRender as To } from "./CSS3DRender/index.js";
|
|
36
|
+
import { BetterTween as go, tweenProgress as Io } from "./animationFrame/BetterTween.js";
|
|
37
|
+
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
36
38
|
__proto__: null,
|
|
37
39
|
ANIME_PRESETS: M,
|
|
38
|
-
BetterTween:
|
|
39
|
-
CURRENT_PANO_IMAGE_DEFAULT_IMAGE:
|
|
40
|
+
BetterTween: go,
|
|
41
|
+
CURRENT_PANO_IMAGE_DEFAULT_IMAGE: W,
|
|
40
42
|
DEFAULT_ANIME_CONFIG: s,
|
|
41
|
-
DEFAULT_STATIC_PREFIX:
|
|
42
|
-
DNALOGEL_DEFAULT_ASSETS:
|
|
43
|
-
ENTRY_DOOR_DEFAULT_IMAGE:
|
|
44
|
-
FLOORPLAN_DEFAULT_IMAGE:
|
|
45
|
-
FiveDomEvents:
|
|
46
|
-
FivePuppet:
|
|
47
|
-
GUIDELINE_DEFAULT_ARROW_TEXTURE:
|
|
48
|
-
GUIDELINE_WHITE_ARROW_TEXTURE:
|
|
43
|
+
DEFAULT_STATIC_PREFIX: X,
|
|
44
|
+
DNALOGEL_DEFAULT_ASSETS: q,
|
|
45
|
+
ENTRY_DOOR_DEFAULT_IMAGE: V,
|
|
46
|
+
FLOORPLAN_DEFAULT_IMAGE: Y,
|
|
47
|
+
FiveDomEvents: Lo,
|
|
48
|
+
FivePuppet: po,
|
|
49
|
+
GUIDELINE_DEFAULT_ARROW_TEXTURE: z,
|
|
50
|
+
GUIDELINE_WHITE_ARROW_TEXTURE: K,
|
|
49
51
|
Interval: e,
|
|
50
52
|
LegacyPointHelper: v,
|
|
51
53
|
LightTag: m,
|
|
52
54
|
LineSegments: T,
|
|
53
|
-
MODEL_CHASSIS_COMPASS_DEFAULT_MODEL:
|
|
54
|
-
MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL:
|
|
55
|
+
MODEL_CHASSIS_COMPASS_DEFAULT_MODEL: J,
|
|
56
|
+
MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL: Q,
|
|
55
57
|
Magnifier: _,
|
|
56
58
|
Object3D: L,
|
|
57
|
-
PANO_COMPASS_DEFAULT_IMAGE:
|
|
58
|
-
PANO_SPATIAL_TAG_BLUR_IMAGE:
|
|
59
|
-
PANO_TAG_DEFAULT_LINK_ICON:
|
|
59
|
+
PANO_COMPASS_DEFAULT_IMAGE: Z,
|
|
60
|
+
PANO_SPATIAL_TAG_BLUR_IMAGE: $,
|
|
61
|
+
PANO_TAG_DEFAULT_LINK_ICON: oo,
|
|
60
62
|
PointDomHelper: x,
|
|
61
63
|
PointHelper: A,
|
|
62
64
|
PointSelector: l,
|
|
63
65
|
PointSelectorHelper: a,
|
|
64
66
|
Rectangle: t,
|
|
65
67
|
animeMap: N,
|
|
66
|
-
awaitNextFrame:
|
|
68
|
+
awaitNextFrame: eo,
|
|
67
69
|
blink: R,
|
|
68
70
|
blinkWithPreset: U,
|
|
69
|
-
bounding:
|
|
71
|
+
bounding: g,
|
|
70
72
|
boundingBox: I,
|
|
71
|
-
boundingSphere:
|
|
73
|
+
boundingSphere: F,
|
|
72
74
|
boxVertex: P,
|
|
73
|
-
boxVertexes:
|
|
75
|
+
boxVertexes: d,
|
|
74
76
|
checkFiveModelLoaded: p,
|
|
75
77
|
cleanup: c,
|
|
76
78
|
convexHull: i,
|
|
77
|
-
equal:
|
|
78
|
-
fiveModelIsLoaded:
|
|
79
|
+
equal: no,
|
|
80
|
+
fiveModelIsLoaded: Ao,
|
|
81
|
+
generatePolygonGeometry: B,
|
|
79
82
|
getCoordsFromClient: E,
|
|
80
83
|
getCoordsFromElement: f,
|
|
81
|
-
getFrameTime:
|
|
84
|
+
getFrameTime: to,
|
|
85
|
+
getGeometryArea: C,
|
|
86
|
+
getGeometryInfo: y,
|
|
82
87
|
getIntersectFromRelativePosition: G,
|
|
83
88
|
getRaycasterFromFivePointer: b,
|
|
84
|
-
initialCSS3DRender:
|
|
89
|
+
initialCSS3DRender: To,
|
|
85
90
|
inside: o,
|
|
86
|
-
isModelLike:
|
|
87
|
-
isNil:
|
|
88
|
-
isPanoramaLike:
|
|
89
|
-
lookObject:
|
|
90
|
-
lookPoint:
|
|
91
|
-
nextFrame:
|
|
92
|
-
notNil:
|
|
91
|
+
isModelLike: _o,
|
|
92
|
+
isNil: H,
|
|
93
|
+
isPanoramaLike: Eo,
|
|
94
|
+
lookObject: fo,
|
|
95
|
+
lookPoint: lo,
|
|
96
|
+
nextFrame: io,
|
|
97
|
+
notNil: h,
|
|
93
98
|
pointInPolygon: o,
|
|
94
99
|
reblink: u,
|
|
95
|
-
replaceStaticPrefix:
|
|
96
|
-
requestAnimationFrameInterval:
|
|
100
|
+
replaceStaticPrefix: ro,
|
|
101
|
+
requestAnimationFrameInterval: mo,
|
|
97
102
|
sculpt: r,
|
|
98
103
|
tag: n,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
triangleArea: k,
|
|
105
|
+
triangleCenter: w,
|
|
106
|
+
tweenProgress: Io,
|
|
107
|
+
uuid: j,
|
|
108
|
+
waitFiveModelLoaded: ao,
|
|
109
|
+
worldBounding: D,
|
|
110
|
+
worldBoundingBox: O,
|
|
111
|
+
worldBoundingSphere: S
|
|
105
112
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
106
113
|
export {
|
|
107
|
-
|
|
114
|
+
rr as exports
|
|
108
115
|
};
|
|
@@ -11,9 +11,10 @@ import "../three/core/Five_LineMaterial2.js";
|
|
|
11
11
|
import "../three/core/Sphere.js";
|
|
12
12
|
import "../three/blink.js";
|
|
13
13
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
15
|
+
function k(r) {
|
|
16
|
+
return r.model ? r.work ? r.model.loaded ? r.model.name !== r.work.getURL(r.work.model.file) ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
16
17
|
}
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
k as checkFiveModelLoaded
|
|
19
20
|
};
|
|
@@ -41,7 +41,8 @@ import "../three/core/Five_LineMaterial2.js";
|
|
|
41
41
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
42
42
|
import "../three/blink.js";
|
|
43
43
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
|
-
|
|
44
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
45
|
+
function it(e, a, t) {
|
|
45
46
|
return L(this, null, function* () {
|
|
46
47
|
var D, P, V;
|
|
47
48
|
if (!a)
|
|
@@ -93,5 +94,5 @@ function rt(e, a, t) {
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
it as lookObject
|
|
97
98
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.73.1",
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.73.3-alpha.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",
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -36,6 +36,7 @@ import "./three/core/Sphere.js";
|
|
|
36
36
|
import "./three/blink.js";
|
|
37
37
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
39
|
+
import "../vendor/earcut/src/earcut.js";
|
|
39
40
|
import "./five/FivePuppet.js";
|
|
40
41
|
const M = new E();
|
|
41
42
|
class R {
|
|
@@ -245,10 +246,10 @@ class R {
|
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
+
function X(...p) {
|
|
249
250
|
return new R(...p);
|
|
250
251
|
}
|
|
251
252
|
export {
|
|
252
253
|
R as LightTag,
|
|
253
|
-
|
|
254
|
+
X as tag
|
|
254
255
|
};
|
|
@@ -14,9 +14,10 @@ import "./core/Sphere.js";
|
|
|
14
14
|
import "./blink.js";
|
|
15
15
|
import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
|
|
16
16
|
import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
|
|
17
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
17
18
|
import { BetterTween as u } from "../animationFrame/BetterTween.js";
|
|
18
19
|
import "../five/FivePuppet.js";
|
|
19
|
-
class
|
|
20
|
+
class H {
|
|
20
21
|
constructor(t) {
|
|
21
22
|
n(this, "five");
|
|
22
23
|
n(this, "contentElement", document.createElement("div"));
|
|
@@ -65,5 +66,5 @@ class V {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
H as PointDomHelper
|
|
69
70
|
};
|
|
@@ -25,7 +25,8 @@ import "../../CSS3DRenderer/index.js";
|
|
|
25
25
|
import "../../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
26
26
|
import "../../../five/FivePuppet.js";
|
|
27
27
|
import "../../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
28
|
-
|
|
28
|
+
import "../../../../vendor/earcut/src/earcut.js";
|
|
29
|
+
class B {
|
|
29
30
|
constructor(i, e) {
|
|
30
31
|
r(this, "five");
|
|
31
32
|
r(this, "hooks", new E());
|
|
@@ -73,5 +74,5 @@ class A {
|
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
+
B as PointSelectorHelper
|
|
77
78
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { Vector3 as l } from "three";
|
|
2
2
|
import { centerPoint as p } from "./centerPoint.js";
|
|
3
3
|
function b(n) {
|
|
4
|
-
|
|
4
|
+
return a(n).reduce((e, [r, i, o]) => e + u(r, i, o), 0);
|
|
5
|
+
}
|
|
6
|
+
function h(n) {
|
|
7
|
+
const t = a(n);
|
|
5
8
|
if (t.length === 0) {
|
|
6
9
|
console.warn("No geometry triangles found"), console.debug({ geometry: n, triangles: t });
|
|
7
10
|
return;
|
|
8
11
|
}
|
|
9
12
|
let e = 0, r = new l();
|
|
10
13
|
for (const [i, o, c] of t) {
|
|
11
|
-
const s = u(i, o, c), g =
|
|
14
|
+
const s = u(i, o, c), g = A(i, o, c, s);
|
|
12
15
|
e += s, r.add(g);
|
|
13
16
|
}
|
|
14
17
|
return r = r.divideScalar(e), { center: r, area: e };
|
|
@@ -16,24 +19,25 @@ function b(n) {
|
|
|
16
19
|
function u(n, t, e) {
|
|
17
20
|
return t.clone().sub(n).cross(e.clone().sub(n)).length() / 2;
|
|
18
21
|
}
|
|
19
|
-
function
|
|
22
|
+
function A(n, t, e, r) {
|
|
20
23
|
const i = r != null ? r : u(n, t, e);
|
|
21
24
|
return p(n, t, e).multiplyScalar(i);
|
|
22
25
|
}
|
|
23
|
-
function
|
|
26
|
+
function a(n) {
|
|
24
27
|
var i;
|
|
25
28
|
const t = n.getAttribute("position"), e = (i = n.getIndex()) == null ? void 0 : i.array;
|
|
26
29
|
if (!t || !e)
|
|
27
30
|
return [];
|
|
28
31
|
let r = [];
|
|
29
32
|
for (let o = 0; o < e.length; o += 3) {
|
|
30
|
-
const c = e[o], s = e[o + 1], g = e[o + 2], f = new l().fromArray([t.getX(c), t.getY(c), t.getZ(c)]),
|
|
31
|
-
r.push([f,
|
|
33
|
+
const c = e[o], s = e[o + 1], g = e[o + 2], f = new l().fromArray([t.getX(c), t.getY(c), t.getZ(c)]), m = new l().fromArray([t.getX(s), t.getY(s), t.getZ(s)]), d = new l().fromArray([t.getX(g), t.getY(g), t.getZ(g)]);
|
|
34
|
+
r.push([f, m, d]);
|
|
32
35
|
}
|
|
33
36
|
return r;
|
|
34
37
|
}
|
|
35
38
|
export {
|
|
36
|
-
b as
|
|
39
|
+
b as getGeometryArea,
|
|
40
|
+
h as getGeometryInfo,
|
|
37
41
|
u as triangleArea,
|
|
38
|
-
|
|
42
|
+
A as triangleCenter
|
|
39
43
|
};
|