@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.
Files changed (127) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/MeasurePlugin/Controller.d.ts +3 -4
  3. package/dist/MeasurePlugin/index.d.ts +2 -1
  4. package/dist/Sculpt/utils/export.d.ts +1 -0
  5. package/dist/index.cjs.js +70 -70
  6. package/dist/index.js +4451 -4432
  7. package/dist/index.umd.js +63 -63
  8. package/dist/shared-utils/three/index.d.ts +2 -0
  9. package/libs/AreaMakerPlugin/Controller.js +3 -2
  10. package/libs/AreaMakerPlugin/index.js +3 -2
  11. package/libs/AreaMakerPlugin/utils/Item.js +80 -79
  12. package/libs/CSS3DRenderPlugin/Controller.js +3 -2
  13. package/libs/CSS3DRenderPlugin/index.js +6 -5
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
  16. package/libs/CruisePlugin/BaseController.js +5 -4
  17. package/libs/CruisePlugin/Move.js +1 -1
  18. package/libs/CruisePlugin/Work.js +1 -1
  19. package/libs/CruisePlugin/index.js +1 -1
  20. package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
  21. package/libs/CurrentPanoImagePlugin/index.js +4 -3
  22. package/libs/GuideLinePlugin/Controller.js +1 -1
  23. package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
  24. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  25. package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
  26. package/libs/GuideLinePlugin/index.js +1 -1
  27. package/libs/MeasurePlugin/Controller.d.ts +3 -4
  28. package/libs/MeasurePlugin/Controller.js +29 -29
  29. package/libs/MeasurePlugin/index.d.ts +2 -1
  30. package/libs/MeasurePlugin/index.js +6 -5
  31. package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
  32. package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
  33. package/libs/ModelChassisCompassPlugin/index.js +1 -0
  34. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
  35. package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
  36. package/libs/ModelMakerPlugin/Controller.js +1 -1
  37. package/libs/ModelMakerPlugin/index.js +1 -1
  38. package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
  39. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  40. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  41. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  42. package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
  43. package/libs/ModelTVVideoPlugin/index.js +3 -2
  44. package/libs/ModelViewPlugin/Plugin.js +4 -3
  45. package/libs/ModelViewPlugin/index.js +1 -0
  46. package/libs/Object3DHelperPlugin/Controller.js +18 -17
  47. package/libs/Object3DHelperPlugin/index.js +6 -5
  48. package/libs/PanoCompassPlugin/Controller.js +3 -2
  49. package/libs/PanoCompassPlugin/index.js +4 -3
  50. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  51. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  52. package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
  53. package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
  54. package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
  55. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
  56. package/libs/PanoMeasurePlugin/index.js +1 -1
  57. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
  58. package/libs/PanoRulerProPlugin/Controller.js +3 -2
  59. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  60. package/libs/PanoRulerProPlugin/index.js +4 -3
  61. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  62. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  63. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  64. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
  65. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
  66. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
  67. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
  68. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  69. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  70. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  71. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  72. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
  73. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
  74. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  75. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  76. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  77. package/libs/PanoTagPlugin/controller/index.js +1 -1
  78. package/libs/PanoTagPlugin/index.js +1 -1
  79. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  80. package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
  81. package/libs/PanoVideoPlugin/Controller.js +3 -2
  82. package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
  83. package/libs/PanoVideoPlugin/index.js +6 -5
  84. package/libs/PipelinePlugin/Controller.js +95 -94
  85. package/libs/PipelinePlugin/index.js +4 -3
  86. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
  87. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
  88. package/libs/PipelinePlugin/utils/Objects/Pipe.js +22 -21
  89. package/libs/Sculpt/Meshes/Circle.js +3 -2
  90. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  91. package/libs/Sculpt/Meshes/Line.js +3 -2
  92. package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
  93. package/libs/Sculpt/Meshes/Point.js +3 -2
  94. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  95. package/libs/Sculpt/Objects/Base/index.js +1 -0
  96. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  97. package/libs/Sculpt/index.js +19 -18
  98. package/libs/Sculpt/utils/export.d.ts +1 -0
  99. package/libs/Sculpt/utils/export.js +23 -20
  100. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  101. package/libs/base/BasePlugin.js +4 -3
  102. package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
  103. package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
  104. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
  105. package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
  106. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
  107. package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
  108. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
  109. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
  110. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
  111. package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
  112. package/libs/floorplan/index.js +1 -0
  113. package/libs/index.js +146 -145
  114. package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
  115. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
  116. package/libs/shared-utils/exports.js +62 -55
  117. package/libs/shared-utils/five/index.js +4 -3
  118. package/libs/shared-utils/five/lookObject.js +3 -2
  119. package/libs/shared-utils/index.js +1 -0
  120. package/libs/shared-utils/logger.js +1 -1
  121. package/libs/shared-utils/tag.js +3 -2
  122. package/libs/shared-utils/three/PointDomHelper.js +3 -2
  123. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  124. package/libs/shared-utils/three/geometryUtil.js +12 -8
  125. package/libs/shared-utils/three/index.d.ts +2 -0
  126. package/libs/shared-utils/three/index.js +1 -0
  127. 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 F, boundingBox as I, boundingSphere as d, boxVertex as P, boxVertexes as D, worldBounding as O, worldBoundingBox as S, worldBoundingSphere as g } from "./three/boundingBox.js";
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 { isNil as C, notNil as k } from "./isNil.js";
22
- import { uuid as w } from "./uuid.js";
23
- import { CURRENT_PANO_IMAGE_DEFAULT_IMAGE as B, DEFAULT_STATIC_PREFIX as H, DNALOGEL_DEFAULT_ASSETS as h, ENTRY_DOOR_DEFAULT_IMAGE as y, FLOORPLAN_DEFAULT_IMAGE as j, GUIDELINE_DEFAULT_ARROW_TEXTURE as W, GUIDELINE_WHITE_ARROW_TEXTURE as X, MODEL_CHASSIS_COMPASS_DEFAULT_MODEL as q, MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL as V, PANO_COMPASS_DEFAULT_IMAGE as Y, PANO_SPATIAL_TAG_BLUR_IMAGE as z, PANO_TAG_DEFAULT_LINK_ICON as K } from "./url/defaultUrls.js";
24
- import { replaceStaticPrefix as J } from "./url/replace-static-prefix.js";
25
- import { awaitNextFrame as Q, getFrameTime as Z, nextFrame as $, requestAnimationFrameInterval as oo } from "./animationFrame/index.js";
26
- import { equal as ro } from "./equal.js";
27
- import { FivePuppet as eo } from "./five/FivePuppet.js";
28
- import { isModelLike as to, isPanoramaLike as io } from "./five/mode.js";
29
- import { lookObject as mo } from "./five/lookObject.js";
30
- import { lookPoint as no } from "./five/lookPoint.js";
31
- import { fiveModelIsLoaded as po, waitFiveModelLoaded as _o } from "./five/fiveModelLoad.js";
32
- import { FiveDomEvents as Eo } from "./five/FiveDomEvents.js";
33
- import { initialCSS3DRender as fo } from "./CSS3DRender/index.js";
34
- import { BetterTween as lo, tweenProgress as Ao } from "./animationFrame/BetterTween.js";
35
- const zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: lo,
39
- CURRENT_PANO_IMAGE_DEFAULT_IMAGE: B,
40
+ BetterTween: go,
41
+ CURRENT_PANO_IMAGE_DEFAULT_IMAGE: W,
40
42
  DEFAULT_ANIME_CONFIG: s,
41
- DEFAULT_STATIC_PREFIX: H,
42
- DNALOGEL_DEFAULT_ASSETS: h,
43
- ENTRY_DOOR_DEFAULT_IMAGE: y,
44
- FLOORPLAN_DEFAULT_IMAGE: j,
45
- FiveDomEvents: Eo,
46
- FivePuppet: eo,
47
- GUIDELINE_DEFAULT_ARROW_TEXTURE: W,
48
- GUIDELINE_WHITE_ARROW_TEXTURE: X,
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: q,
54
- MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL: V,
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: Y,
58
- PANO_SPATIAL_TAG_BLUR_IMAGE: z,
59
- PANO_TAG_DEFAULT_LINK_ICON: K,
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: Q,
68
+ awaitNextFrame: eo,
67
69
  blink: R,
68
70
  blinkWithPreset: U,
69
- bounding: F,
71
+ bounding: g,
70
72
  boundingBox: I,
71
- boundingSphere: d,
73
+ boundingSphere: F,
72
74
  boxVertex: P,
73
- boxVertexes: D,
75
+ boxVertexes: d,
74
76
  checkFiveModelLoaded: p,
75
77
  cleanup: c,
76
78
  convexHull: i,
77
- equal: ro,
78
- fiveModelIsLoaded: po,
79
+ equal: no,
80
+ fiveModelIsLoaded: Ao,
81
+ generatePolygonGeometry: B,
79
82
  getCoordsFromClient: E,
80
83
  getCoordsFromElement: f,
81
- getFrameTime: Z,
84
+ getFrameTime: to,
85
+ getGeometryArea: C,
86
+ getGeometryInfo: y,
82
87
  getIntersectFromRelativePosition: G,
83
88
  getRaycasterFromFivePointer: b,
84
- initialCSS3DRender: fo,
89
+ initialCSS3DRender: To,
85
90
  inside: o,
86
- isModelLike: to,
87
- isNil: C,
88
- isPanoramaLike: io,
89
- lookObject: mo,
90
- lookPoint: no,
91
- nextFrame: $,
92
- notNil: k,
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: J,
96
- requestAnimationFrameInterval: oo,
100
+ replaceStaticPrefix: ro,
101
+ requestAnimationFrameInterval: mo,
97
102
  sculpt: r,
98
103
  tag: n,
99
- tweenProgress: Ao,
100
- uuid: w,
101
- waitFiveModelLoaded: _o,
102
- worldBounding: O,
103
- worldBoundingBox: S,
104
- worldBoundingSphere: g
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
- zo as exports
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
- function g(e) {
15
- return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.getURL(e.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 不存在" };
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
- g as checkFiveModelLoaded
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
- function rt(e, a, t) {
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
- rt as lookObject
97
+ it as lookObject
97
98
  };
@@ -11,3 +11,4 @@ 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
+ import "../vendor/earcut/src/earcut.js";
@@ -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",
@@ -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 Q(...p) {
249
+ function X(...p) {
249
250
  return new R(...p);
250
251
  }
251
252
  export {
252
253
  R as LightTag,
253
- Q as tag
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 V {
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
- V as PointDomHelper
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
- class A {
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
- A as PointSelectorHelper
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
- const t = A(n);
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 = d(i, o, c, s);
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 d(n, t, e, r) {
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 A(n) {
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)]), a = new l().fromArray([t.getX(s), t.getY(s), t.getZ(s)]), m = new l().fromArray([t.getX(g), t.getY(g), t.getZ(g)]);
31
- r.push([f, a, m]);
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 getGeometryInfo,
39
+ b as getGeometryArea,
40
+ h as getGeometryInfo,
37
41
  u as triangleArea,
38
- d as triangleCenter
42
+ A as triangleCenter
39
43
  };
@@ -11,3 +11,5 @@ export * from './getIntersect';
11
11
  export * from './getRaycaster';
12
12
  export * from './PointDomHelper';
13
13
  export * from './LegacyPointHelper';
14
+ export * from './geometryUtil';
15
+ export { default as generatePolygonGeometry } from './generatePolygonGeometry';
@@ -10,4 +10,5 @@ import "./core/Sphere.js";
10
10
  import "./blink.js";
11
11
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
12
12
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
13
+ import "../../vendor/earcut/src/earcut.js";
13
14
  import "../five/FivePuppet.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.73.1",
3
+ "version": "3.73.3-alpha.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",