@realsee/dnalogel 3.52.3 → 3.53.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 (109) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.cjs.js +40 -40
  3. package/dist/index.d.ts +1 -79
  4. package/dist/index.js +1605 -1567
  5. package/dist/index.umd.js +34 -34
  6. package/dist/shared-utils/exports.d.ts +2 -0
  7. package/dist/shared-utils/five/FivePuppet.d.ts +64 -0
  8. package/dist/shared-utils/index.d.ts +1 -0
  9. package/dist/shared-utils/math/planimetry.d.ts +1 -1
  10. package/libs/AreaMakerPlugin/Controller.js +14 -12
  11. package/libs/AreaMakerPlugin/index.js +4 -2
  12. package/libs/AreaMakerPlugin/utils/Item.js +4 -2
  13. package/libs/CSS3DRenderPlugin/Controller.js +4 -2
  14. package/libs/CSS3DRenderPlugin/index.js +7 -5
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
  17. package/libs/CruisePlugin/BaseController.js +6 -4
  18. package/libs/CruisePlugin/Move.js +4 -3
  19. package/libs/CruisePlugin/Work.js +3 -2
  20. package/libs/CruisePlugin/index.js +8 -7
  21. package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
  22. package/libs/CurrentPanoImagePlugin/index.js +5 -3
  23. package/libs/GuideLinePlugin/Controller.js +6 -5
  24. package/libs/GuideLinePlugin/GuideLineItem.js +4 -3
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -3
  27. package/libs/GuideLinePlugin/index.js +8 -7
  28. package/libs/ModelMakerPlugin/Controller.js +4 -2
  29. package/libs/ModelMakerPlugin/index.js +4 -2
  30. package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
  31. package/libs/ModelTVVideoPlugin/index.js +4 -2
  32. package/libs/Object3DHelperPlugin/Controller.js +4 -2
  33. package/libs/Object3DHelperPlugin/index.js +7 -5
  34. package/libs/PanoCompassPlugin/Controller.js +3 -2
  35. package/libs/PanoCompassPlugin/index.js +4 -3
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +3 -2
  37. package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
  38. package/libs/PanoDoorLabelPlugin/index.js +4 -3
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
  41. package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
  42. package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
  43. package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
  44. package/libs/PanoMeasurePlugin/Model/area.js +3 -2
  45. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
  46. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
  47. package/libs/PanoMeasurePlugin/index.js +14 -13
  48. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
  49. package/libs/PanoRulerProPlugin/Controller.js +11 -10
  50. package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
  51. package/libs/PanoRulerProPlugin/index.js +4 -3
  52. package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
  53. package/libs/PanoSpatialTagPlugin/index.js +1 -0
  54. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  55. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
  56. package/libs/PanoTagPlugin/Components/Tag/index.js +4 -3
  57. package/libs/PanoTagPlugin/Components/TagContainer.js +43 -42
  58. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  59. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
  60. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  61. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  62. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
  63. package/libs/PanoTagPlugin/controller/TagRender.js +4 -3
  64. package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
  65. package/libs/PanoTagPlugin/controller/index.js +7 -6
  66. package/libs/PanoTagPlugin/index.js +13 -12
  67. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
  68. package/libs/PanoVideoPlugin/Controller.js +4 -2
  69. package/libs/PanoVideoPlugin/VideoMeshController.js +52 -50
  70. package/libs/PanoVideoPlugin/index.js +7 -5
  71. package/libs/PipelinePlugin/Controller.js +4 -2
  72. package/libs/PipelinePlugin/index.js +5 -3
  73. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
  74. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
  75. package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -18
  76. package/libs/Sculpt/Meshes/Cylinder.js +6 -5
  77. package/libs/Sculpt/Meshes/Line.js +3 -2
  78. package/libs/Sculpt/Meshes/LineWithDots.js +3 -2
  79. package/libs/Sculpt/Meshes/Point.js +6 -5
  80. package/libs/Sculpt/Meshes/Polygon.js +11 -10
  81. package/libs/Sculpt/Meshes/Rectangle.js +4 -3
  82. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  83. package/libs/Sculpt/index.js +18 -17
  84. package/libs/Sculpt/utils/export.js +5 -5
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
  86. package/libs/base/BasePlugin.js +4 -3
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +19 -17
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
  95. package/libs/floorplan/index.js +1 -0
  96. package/libs/index.d.ts +1 -79
  97. package/libs/index.js +156 -170
  98. package/libs/shared-utils/exports.d.ts +2 -0
  99. package/libs/shared-utils/exports.js +82 -0
  100. package/libs/shared-utils/five/FivePuppet.d.ts +64 -0
  101. package/libs/shared-utils/five/FivePuppet.js +47 -0
  102. package/libs/shared-utils/five/index.js +3 -2
  103. package/libs/shared-utils/five/lookObject.js +3 -2
  104. package/libs/shared-utils/index.d.ts +1 -0
  105. package/libs/shared-utils/index.js +10 -78
  106. package/libs/shared-utils/logger.js +1 -1
  107. package/libs/shared-utils/math/planimetry.d.ts +1 -1
  108. package/libs/shared-utils/three/index.js +1 -0
  109. package/package.json +2 -2
@@ -0,0 +1,47 @@
1
+ var p = Object.defineProperty;
2
+ var m = (t, e, a) => e in t ? p(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var r = (t, e, a) => (m(t, typeof e != "symbol" ? e + "" : e, a), a);
4
+ import { InternalWebGLRenderer as d } from "@realsee/five";
5
+ import * as i from "three";
6
+ const l = new i.Vector2();
7
+ class u {
8
+ constructor(e, a) {
9
+ r(this, "scene", new i.Scene());
10
+ r(this, "five");
11
+ r(this, "renderer");
12
+ r(this, "cancelRequestAnimationFrameId");
13
+ r(this, "camera", new i.Camera());
14
+ r(this, "domInited", !1);
15
+ r(this, "canvasWrapper");
16
+ r(this, "params");
17
+ r(this, "_rendererCache");
18
+ r(this, "_cameraCache");
19
+ r(this, "animate", () => {
20
+ var s, c, o;
21
+ this.cancelRequestAnimationFrameId = requestAnimationFrame(this.animate);
22
+ const e = this.five.renderer.getSize(l), a = e.toArray().join(",");
23
+ a !== this._rendererCache && (this._rendererCache = a, this.renderer.setSize(e.x, e.y));
24
+ const n = this.five.camera.projectionMatrix.toArray().join(",") + this.five.camera.matrixWorld.toArray().join(",");
25
+ if (n !== this._cameraCache && (this._cameraCache = n, this.camera.copy(this.five.camera)), this.renderer.render(this.scene, this.camera), !this.domInited) {
26
+ const h = (s = this.five.getElement()) == null ? void 0 : s.parentElement;
27
+ h && (this.canvasWrapper = document.createElement("div"), this.canvasWrapper.classList.add("five-puppet"), this.canvasWrapper.style.position = "absolute", this.canvasWrapper.style.pointerEvents = "none", this.canvasWrapper.style.left = "0", this.canvasWrapper.style.top = "0", this.canvasWrapper.style.zIndex = `${(o = (c = this.params) == null ? void 0 : c.zIndex) != null ? o : 1}`, this.canvasWrapper.appendChild(this.renderer.domElement), h.appendChild(this.canvasWrapper), this.domInited = !0);
28
+ }
29
+ });
30
+ r(this, "stopAnimate", () => {
31
+ this.cancelRequestAnimationFrameId && cancelAnimationFrame(this.cancelRequestAnimationFrameId);
32
+ });
33
+ r(this, "destory", () => {
34
+ var e;
35
+ this.stopAnimate(), this.renderer.dispose(), this.renderer.domElement.remove(), (e = this.canvasWrapper) == null || e.remove();
36
+ });
37
+ this.five = e, this.params = a, this.renderer = new d({
38
+ webgl2: !0,
39
+ pixelRatio: window.devicePixelRatio,
40
+ backgroundAlpha: 0,
41
+ backgroundColor: 0
42
+ }), this.renderer.setSize(1, 1), window.__FIVEPUPPET_DEBUG__ = this, this.animate();
43
+ }
44
+ }
45
+ export {
46
+ u as FivePuppet
47
+ };
@@ -4,12 +4,13 @@ import "../three/PointSelector/index.js";
4
4
  import "three/examples/jsm/renderers/CSS3DRenderer";
5
5
  import "../tag.js";
6
6
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
+ import "./FivePuppet.js";
7
8
  import "@realsee/five/line";
8
9
  import "../three/core/Sphere.js";
9
10
  import "animejs";
10
- function u(e) {
11
+ function p(e) {
11
12
  return e.model ? e.work ? e.model.loaded ? e.model.name !== 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 不存在" };
12
13
  }
13
14
  export {
14
- u as checkFiveModelLoaded
15
+ p as checkFiveModelLoaded
15
16
  };
@@ -34,10 +34,11 @@ import { vectorToCoordinates as N } from "../vectorToCoordinate.js";
34
34
  import { FiveUtil as O } from "../Utils/FiveUtil.js";
35
35
  import { notNil as Y } from "../isNil.js";
36
36
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
37
+ import "./FivePuppet.js";
37
38
  import "@realsee/five/line";
38
39
  import { worldBoundingSphere as j } from "../three/boundingBox.js";
39
40
  import "animejs";
40
- function ot(o, e, t) {
41
+ function et(o, e, t) {
41
42
  return g(this, null, function* () {
42
43
  var P, x, z;
43
44
  if (!e)
@@ -80,5 +81,5 @@ function ot(o, e, t) {
80
81
  });
81
82
  }
82
83
  export {
83
- ot as lookObject
84
+ et as lookObject
84
85
  };
@@ -7,3 +7,4 @@ export * from './uuid';
7
7
  export * from './url/absoluteUrl';
8
8
  export * from './animationFrame';
9
9
  export * from './equal';
10
+ export * from './five/FivePuppet';
@@ -1,78 +1,10 @@
1
- import { Interval as r } from "./math/Interval.js";
2
- import { Rectangle as e } from "./math/Rectangle.js";
3
- import { convexHull as t } from "./math/convexHull.js";
4
- import { inside as o } from "./math/inside.js";
5
- import { LightTag as i, tag as m } from "./tag.js";
6
- import { checkFiveModelLoaded as n } from "./five/index.js";
7
- import { Magnifier as l } from "./three/Magnifier.js";
8
- import { getCoordsFromClient as p, getCoordsFromElement as f } from "./three/getCoords.js";
9
- import { PointSelector as a } from "./three/PointSelector/index.js";
10
- import { PointHelper as d } from "./three/PointSelector/utils/PointHelper.js";
11
- import { PointSelectorHelper as g } from "./three/PointSelector/utils/PointSelectorHelper.js";
12
- import { Object3D as s } from "./three/core/Object3D.js";
13
- import { LineSegments as u } from "./three/core/LineSegments.js";
14
- import { bounding as b, boundingBox as c, boundingSphere as x, boxVertex as v, boxVertexes as F, worldBounding as L, worldBoundingBox as P, worldBoundingSphere as k } from "./three/boundingBox.js";
15
- import { animeMap as w, blink as M, reblink as S } from "./three/blink.js";
16
- import { isNil as B, notNil as _ } from "./isNil.js";
17
- import { uuid as h } from "./uuid.js";
18
- import { absoluteUrl as j, isAbsoluteURL as I } from "./url/absoluteUrl.js";
19
- import { awaitNextFrame as O, getFrameTime as T, nextFrame as y, requestAnimationFrameInterval as C } from "./animationFrame/index.js";
20
- import { equal as H } from "./equal.js";
21
- import { isModelLike as N, isPanoramaLike as U } from "./five/mode.js";
22
- import { lookObject as q } from "./five/lookObject.js";
23
- import { lookPoint as A } from "./five/lookPoint.js";
24
- import { fiveModelIsLoaded as D, waitFiveModelLoaded as E } from "./five/fiveModelLoad.js";
25
- import { FiveDomEvents as R } from "./five/FiveDomEvents.js";
26
- import { BetterTween as V, tweenProgress as z } from "./animationFrame/BetterTween.js";
27
- const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
- __proto__: null,
29
- BetterTween: V,
30
- FiveDomEvents: R,
31
- Interval: r,
32
- LightTag: i,
33
- LineSegments: u,
34
- Magnifier: l,
35
- Object3D: s,
36
- PointHelper: d,
37
- PointSelector: a,
38
- PointSelectorHelper: g,
39
- Rectangle: e,
40
- absoluteUrl: j,
41
- animeMap: w,
42
- awaitNextFrame: O,
43
- blink: M,
44
- bounding: b,
45
- boundingBox: c,
46
- boundingSphere: x,
47
- boxVertex: v,
48
- boxVertexes: F,
49
- checkFiveModelLoaded: n,
50
- convexHull: t,
51
- equal: H,
52
- fiveModelIsLoaded: D,
53
- getCoordsFromClient: p,
54
- getCoordsFromElement: f,
55
- getFrameTime: T,
56
- inside: o,
57
- isAbsoluteURL: I,
58
- isModelLike: N,
59
- isNil: B,
60
- isPanoramaLike: U,
61
- lookObject: q,
62
- lookPoint: A,
63
- nextFrame: y,
64
- notNil: _,
65
- pointInPolygon: o,
66
- reblink: S,
67
- requestAnimationFrameInterval: C,
68
- tag: m,
69
- tweenProgress: z,
70
- uuid: h,
71
- waitFiveModelLoaded: E,
72
- worldBounding: L,
73
- worldBoundingBox: P,
74
- worldBoundingSphere: k
75
- }, Symbol.toStringTag, { value: "Module" }));
76
- export {
77
- vo as _Util
78
- };
1
+ import "./tag.js";
2
+ import "three";
3
+ import "hammerjs";
4
+ import "./three/PointSelector/index.js";
5
+ import "three/examples/jsm/renderers/CSS3DRenderer";
6
+ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
7
+ import "./five/FivePuppet.js";
8
+ import "@realsee/five/line";
9
+ import "./three/core/Sphere.js";
10
+ import "animejs";
@@ -1,6 +1,6 @@
1
1
  function A() {
2
2
  console.debug(
3
- "%c %c@realsee/dnalogel %cv3.52.3",
3
+ "%c %c@realsee/dnalogel %cv3.53.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",
@@ -111,6 +111,6 @@ export declare function getCenterPointOfPoints(points: Point[]): {
111
111
  x: number;
112
112
  y: number;
113
113
  };
114
- export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 0 | 1;
114
+ export declare function isIntersect(linePoints1: Point[], linePoints2: Point[]): 1 | 0;
115
115
  export declare function getAreaSize(points: Point[]): number;
116
116
  export declare function getAreaSizeWithoutLine(points: Point[]): number;
@@ -7,3 +7,4 @@ import "@realsee/five/line";
7
7
  import "./core/Sphere.js";
8
8
  import "animejs";
9
9
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
10
+ import "../five/FivePuppet.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/dnalogel",
3
- "version": "3.52.3",
3
+ "version": "3.53.1",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./libs/index.js",
6
6
  "types": "./libs/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@babel/core": "^7.22.9",
45
- "@realsee/five": "6.1.3",
45
+ "@realsee/five": "6.2.0",
46
46
  "@sveltejs/vite-plugin-svelte": "^2.4.2",
47
47
  "@tsconfig/svelte": "^4.0.1",
48
48
  "@tweenjs/tween.js": "^23.1.1",