@realsee/dnalogel 3.49.9 → 3.49.11

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 CHANGED
@@ -1,4 +1,10 @@
1
1
  # CHANGELOG
2
+ ## 3.49.11
3
+ - fix(Sculpt): 绘制点时,实时预览点的位置;点和线 支持设置 tip。
4
+
5
+ ## 3.49.10
6
+ - fix(Sculpt): 优化触摸屏绘制。
7
+
2
8
  ## 3.49.9
3
9
  - fix(ModelMakerPlugin): 修复页面resize后,标签没有更新位置的问题。
4
10
 
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { type Color, type OcclusionStyle, type LineStyle } from '../typings/style';
2
+ import { type Color, type OcclusionStyle, type LineStyle, type lengthConfig, type DisplayInfoConfig } from '../typings/style';
3
3
  import { LineMaterial, THREE_Line2 } from '../../shared-utils/five/FiveLine';
4
4
  import { LineGeometry } from 'three/examples/jsm/lines/LineGeometry';
5
5
  import { type AnyPositions } from '../../shared-utils/positionToVector3';
@@ -9,9 +9,7 @@ import type { PointsData } from '../utils/data';
9
9
  import { LightTag } from '../../shared-utils/tag';
10
10
  export type LineMeshStyle = LineStyle & {
11
11
  dashed?: boolean;
12
- } & OcclusionStyle & {
13
- lengthEnable?: boolean;
14
- };
12
+ } & OcclusionStyle & Partial<lengthConfig> & Partial<DisplayInfoConfig>;
15
13
  export type LineData = PointsData;
16
14
  export declare class LineMaterial2 extends LineMaterial {
17
15
  get three_color(): Color;
@@ -32,7 +30,7 @@ export declare class THREE_Line3 extends THREE_Line2 {
32
30
  export declare class LineMesh extends IObject3D {
33
31
  name: string;
34
32
  points: THREE.Vector3[];
35
- lengthDoms: LightTag[];
33
+ doms: LightTag[];
36
34
  get style(): LineMeshStyle;
37
35
  get opacity(): number;
38
36
  get lineWidth(): number;
@@ -46,7 +44,7 @@ export declare class LineMesh extends IObject3D {
46
44
  private backLine;
47
45
  private opacityBeforeHighlight;
48
46
  private paramsStyle;
49
- private lastRenderLengthItem;
47
+ private lastRenderDomItem;
50
48
  constructor(params?: Partial<LineMeshStyle & LineData>);
51
49
  updateMatrixWorld(force?: boolean): void;
52
50
  setPoints(points: AnyPositions): void;
@@ -54,5 +52,5 @@ export declare class LineMesh extends IObject3D {
54
52
  setStyle(params: Partial<LineMeshStyle>): void;
55
53
  highlight(): void;
56
54
  unhighlight(): void;
57
- private updateLengthItems;
55
+ private updateDomItems;
58
56
  }
@@ -1,12 +1,12 @@
1
1
  import * as THREE from 'three';
2
- import { type ColorStyle, type OcclusionStyle } from '../typings/style';
2
+ import { type ColorStyle, type DisplayInfoConfig, type OcclusionStyle } from '../typings/style';
3
3
  import { IObject3D } from '../../shared-utils/three/IObject3D';
4
4
  import type { PointData } from '../utils/data';
5
5
  export type { PointData } from '../utils/data';
6
6
  export declare const circleImageURL: string;
7
7
  export type PointStyle = ColorStyle & {
8
8
  size: number;
9
- } & OcclusionStyle;
9
+ } & OcclusionStyle & Partial<DisplayInfoConfig>;
10
10
  export declare class PointMesh extends IObject3D {
11
11
  name: string;
12
12
  get color(): THREE.Color;
@@ -15,8 +15,14 @@ export declare class PointMesh extends IObject3D {
15
15
  private highlighted;
16
16
  private fontMesh;
17
17
  private backgroundMesh;
18
+ private lastRenderDomItem;
19
+ private paramsStyle;
20
+ private dom;
21
+ private get five();
18
22
  constructor(params?: Partial<PointStyle & PointData>);
19
23
  setStyle(params: Partial<PointStyle>): void;
20
24
  highlight(): void;
21
25
  unhighlight(): void;
26
+ updateMatrixWorld(force?: boolean): void;
27
+ private updateDom;
22
28
  }
@@ -51,6 +51,7 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
51
51
  */
52
52
  config: Config;
53
53
  editor: BaseEditor;
54
+ get editing(): boolean;
54
55
  abstract type: string;
55
56
  /**
56
57
  * @description 物体导出数据
@@ -57,4 +57,10 @@ export type OcclusionStyle = {
57
57
  */
58
58
  occlusionMode: 'translucence' | 'depthTest';
59
59
  };
60
+ export type lengthConfig = {
61
+ lengthEnable: boolean;
62
+ };
63
+ export type DisplayInfoConfig = {
64
+ tip: string;
65
+ };
60
66
  export type LineStyle = LineColorStyle & LineWidthStyle & OpacityStyle;