@realsee/dnalogel 3.47.8 → 3.47.9
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 +3 -0
- package/dist/Sculpt/Meshes/Rectangle.d.ts +0 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +6 -2
- package/dist/Sculpt/typings/style.d.ts +8 -1
- package/dist/index.cjs.js +32 -32
- package/dist/index.js +1453 -1436
- package/dist/index.umd.js +33 -33
- package/dist/shared-utils/tag.d.ts +5 -0
- package/libs/AreaMakerPlugin/Controller.js +1 -1
- package/libs/AreaMakerPlugin/index.js +1 -1
- package/libs/AreaMakerPlugin/utils/Item.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -1
- package/libs/CruisePlugin/BaseController.js +1 -1
- 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 +1 -1
- package/libs/CurrentPanoImagePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/Controller.js +1 -1
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +1 -1
- package/libs/ModelMakerPlugin/item/boxItem.js +1 -1
- package/libs/ModelMakerPlugin/item/polygonItem.js +1 -1
- package/libs/ModelMakerPlugin/item/prismItem.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +1 -1
- 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/Model/area.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/PipelinePlugin/Controller.js +1 -1
- package/libs/PipelinePlugin/index.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +1 -1
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -1
- package/libs/Sculpt/Meshes/Box.js +10 -10
- package/libs/Sculpt/Meshes/Line.js +18 -15
- package/libs/Sculpt/Meshes/Rectangle.d.ts +0 -1
- package/libs/Sculpt/Meshes/Rectangle.js +14 -17
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +9 -0
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +29 -19
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +6 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +77 -67
- package/libs/Sculpt/typings/style.d.ts +8 -1
- package/libs/Sculpt/utils/Meshes/getLengthHTML.js +2 -2
- package/libs/Sculpt/utils/three/RectangleGeometry.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/vector3ToScreen.js +5 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +5 -0
- package/libs/shared-utils/tag.js +31 -26
- package/package.json +1 -1
- /package/dist/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
- /package/libs/shared-utils/three/{raycaster.d.ts → temp.d.ts} +0 -0
- /package/libs/shared-utils/three/{raycaster.js → temp.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -18,7 +18,6 @@ export declare class RectangleMesh extends PolygonMesh {
|
|
|
18
18
|
* @description: 构造矩形所需的三个点
|
|
19
19
|
*/
|
|
20
20
|
get builtPoints(): THREE.Vector3[];
|
|
21
|
-
get sortedPoint(): THREE.Vector3[];
|
|
22
21
|
constructor(params?: Partial<RectangleStyle & RectangleData>);
|
|
23
22
|
setPoints(points: AnyPositions): void;
|
|
24
23
|
}
|
|
@@ -8,6 +8,15 @@ export type RectangleWithEdgeMeshStyle = RectangleStyle & LineStyle;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class RectangleWithEdgeMesh extends RectangleMesh {
|
|
10
10
|
name: string;
|
|
11
|
+
get style(): {
|
|
12
|
+
lineColor: import("three").Color;
|
|
13
|
+
lineWidth: number;
|
|
14
|
+
dashed: boolean;
|
|
15
|
+
occlusionVisibility: boolean;
|
|
16
|
+
occlusionMode: "translucence" | "depthTest";
|
|
17
|
+
color: import("three").Color;
|
|
18
|
+
opacity: number;
|
|
19
|
+
};
|
|
11
20
|
get lineWidth(): number;
|
|
12
21
|
get lineColor(): import("three").Color;
|
|
13
22
|
line: PolylineMesh;
|
|
@@ -2,7 +2,7 @@ import { LineMesh, type LineData, type LineMeshStyle } from '../../Meshes/Line';
|
|
|
2
2
|
import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base';
|
|
3
3
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
4
4
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateLimitConfig } from '../../typings/style';
|
|
6
6
|
import { LineWithDotsMesh } from '../../Meshes/LineWithDots';
|
|
7
7
|
export interface LineImportData extends BaseImportData, LineData {
|
|
8
8
|
type: LiteralString<'Line'>;
|
|
@@ -24,10 +24,10 @@ export declare class Line extends BaseObject<LineImportData> {
|
|
|
24
24
|
constructor(data?: LineImportData, config?: Partial<BaseObjectConfig>);
|
|
25
25
|
highlight(): void;
|
|
26
26
|
unhighlight(): void;
|
|
27
|
-
create(params?: Partial<LineMeshStyle &
|
|
27
|
+
create(params?: Partial<LineMeshStyle & CreateLimitConfig>): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* @description 绘制线段
|
|
31
31
|
* @param config.limit 限制折线绘制的平面; `xoz` 限制在水平面; `y` 限制垂直面; `none` 不限制;默认 `none`
|
|
32
32
|
*/
|
|
33
|
-
export declare function createLine(lineMesh: LineMesh, pointSelector: PointSelector, config?: Partial<
|
|
33
|
+
export declare function createLine(lineMesh: LineMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig>): Promise<void>;
|
|
@@ -3,7 +3,7 @@ import { AreaMesh, type AreaStyle } from '../../Meshes/Area';
|
|
|
3
3
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
4
4
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
5
5
|
import type { PolygonData, PolygonStyle } from '../../Meshes/Polygon';
|
|
6
|
-
import type {
|
|
6
|
+
import type { CreateLimitConfig } from '../../typings/style';
|
|
7
7
|
export interface PolygonImportData extends BaseImportData, PolygonData {
|
|
8
8
|
type: LiteralString<'Polygon'>;
|
|
9
9
|
style?: Partial<AreaStyle>;
|
|
@@ -24,6 +24,6 @@ export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
|
24
24
|
constructor(data?: PolygonImportData, config?: Partial<BaseObjectConfig>);
|
|
25
25
|
highlight(): void;
|
|
26
26
|
unhighlight(): void;
|
|
27
|
-
create(params?: Partial<PolygonStyle &
|
|
27
|
+
create(params?: Partial<PolygonStyle & CreateLimitConfig>): Promise<void>;
|
|
28
28
|
}
|
|
29
|
-
export declare function createPolygon(areaMesh: AreaMesh, pointSelector: PointSelector, config?: Partial<
|
|
29
|
+
export declare function createPolygon(areaMesh: AreaMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig>): Promise<void>;
|
|
@@ -2,7 +2,7 @@ import { PolylineMesh, PolylineWithDotsMesh, type PolylineData, type PolylineSty
|
|
|
2
2
|
import { BaseObject, type BaseImportData, type BaseObjectConfig } from '../Base';
|
|
3
3
|
import type { PointSelector } from '../../../shared-utils/three/PointSelector';
|
|
4
4
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CreateLimitConfig } from '../../typings/style';
|
|
6
6
|
export interface PolylineImportData extends BaseImportData, PolylineData {
|
|
7
7
|
type: LiteralString<'Polyline'>;
|
|
8
8
|
style?: Partial<PolylineStyle>;
|
|
@@ -23,10 +23,10 @@ export declare class Polyline extends BaseObject<PolylineImportData> {
|
|
|
23
23
|
constructor(data?: PolylineImportData, config?: Partial<BaseObjectConfig>);
|
|
24
24
|
highlight(): void;
|
|
25
25
|
unhighlight(): void;
|
|
26
|
-
create(params?: Partial<PolylineStyle &
|
|
26
|
+
create(params?: Partial<PolylineStyle & CreateLimitConfig>): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* @description 绘制折线
|
|
30
30
|
* @param config.limit 限制折线绘制的平面; `xoz` 限制在水平面; `y` 限制垂直面; `none` 不限制;默认 `none`
|
|
31
31
|
*/
|
|
32
|
-
export declare function createPolyline(polyLineMesh: PolylineMesh, pointSelector: PointSelector, config?: Partial<
|
|
32
|
+
export declare function createPolyline(polyLineMesh: PolylineMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig>): Promise<void>;
|
|
@@ -4,6 +4,7 @@ import type { ArrayPosition } from '../../../PanoTagPlugin';
|
|
|
4
4
|
import type { RectangleData, RectangleMesh } from '../../Meshes/Rectangle';
|
|
5
5
|
import { RectangleWithEdgeMesh, type RectangleWithEdgeMeshStyle } from '../../Meshes/RectangleWithEdge';
|
|
6
6
|
import type { LiteralString } from '../../../typings/utils.type';
|
|
7
|
+
import type { DrawMethodConfig, CreateLimitConfig } from '../../typings/style';
|
|
7
8
|
export interface RectangleImportData extends BaseImportData, RectangleData {
|
|
8
9
|
type: LiteralString<'Rectangle'>;
|
|
9
10
|
style?: Partial<RectangleWithEdgeMeshStyle>;
|
|
@@ -24,6 +25,9 @@ export declare class Rectangle extends BaseObject<RectangleImportData> {
|
|
|
24
25
|
constructor(data?: RectangleImportData, config?: Partial<BaseObjectConfig>);
|
|
25
26
|
highlight(): void;
|
|
26
27
|
unhighlight(): void;
|
|
27
|
-
create(
|
|
28
|
+
create(config?: Partial<RectangleWithEdgeMeshStyle & CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @description 创建矩形
|
|
32
|
+
*/
|
|
33
|
+
export declare function createRectangle(rectangleMesh: RectangleMesh, pointSelector: PointSelector, config?: Partial<CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|
|
@@ -31,13 +31,20 @@ export type LineWidthStyle = {
|
|
|
31
31
|
*/
|
|
32
32
|
lineWidth?: number;
|
|
33
33
|
};
|
|
34
|
-
export type
|
|
34
|
+
export type CreateLimitConfig = {
|
|
35
35
|
/**
|
|
36
36
|
* @description 限制折线绘制的平面; `xoz` 限制在水平面; `y` 限制垂直面; `none` 不限制
|
|
37
37
|
* @default `none`
|
|
38
38
|
*/
|
|
39
39
|
limit: 'xoz' | 'y' | 'none';
|
|
40
40
|
};
|
|
41
|
+
export type DrawMethodConfig = {
|
|
42
|
+
/**
|
|
43
|
+
* @description 矩形绘制方式; `vertex` 按顺序绘制三个点; `diagonal` 先绘制对角线;
|
|
44
|
+
* @default `diagonal`
|
|
45
|
+
*/
|
|
46
|
+
drawMethod: 'vertex' | 'diagonal';
|
|
47
|
+
};
|
|
41
48
|
export type OcclusionStyle = {
|
|
42
49
|
/**
|
|
43
50
|
* @description 是否以一种半透明的方式显示遮挡的部分
|