xl-public-utils 1.0.15 → 1.0.16
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/index.d.ts +19 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import vtkRenderer from "@kitware/vtk.js/Rendering/Core/Renderer";
|
|
|
3
3
|
import { mat3, mat4, vec3 } from "gl-matrix";
|
|
4
4
|
import vtkInteractorStyleManipulator from "@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.js"
|
|
5
5
|
import vtkRenderWindowInteractor from "@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.js";
|
|
6
|
+
import { TypedArray } from "@kitware/vtk.js/types";
|
|
6
7
|
|
|
7
8
|
declare module "xl-public-utils" {
|
|
8
9
|
|
|
@@ -538,6 +539,19 @@ declare module "xl-public-utils" {
|
|
|
538
539
|
*/
|
|
539
540
|
normal: vec3;
|
|
540
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* 复制一个polydata,只复制点和面的数据
|
|
544
|
+
* @param {vtkPolyData} originalPolyData 原始的polydata
|
|
545
|
+
* @returns {vtkPolyData} 新的polydata
|
|
546
|
+
*/
|
|
547
|
+
export function clonePolyData(originalPolyData: vtkPolyData): vtkPolyData;
|
|
548
|
+
/**
|
|
549
|
+
* 根据点和面创建一个vtkPolydata
|
|
550
|
+
* @param {number[] | TypedArray} verts
|
|
551
|
+
* @param {number[] | TypedArray} faces
|
|
552
|
+
* @returns { vtkPolyData } 生成出来的vtkPolydata
|
|
553
|
+
*/
|
|
554
|
+
export function createPolyData(verts: number[] | TypedArray, faces: number[] | TypedArray): vtkPolyData
|
|
541
555
|
}
|
|
542
556
|
export namespace drcUtils {
|
|
543
557
|
export type AttrOption = {
|
|
@@ -702,10 +716,10 @@ declare module "xl-public-utils" {
|
|
|
702
716
|
radius: number,
|
|
703
717
|
wall: number,
|
|
704
718
|
height: number,
|
|
705
|
-
center: vec3
|
|
706
|
-
axisX: vec3
|
|
707
|
-
axisY: vec3
|
|
708
|
-
axisZ: vec3
|
|
719
|
+
center: vec3,
|
|
720
|
+
axisX: vec3,
|
|
721
|
+
axisY: vec3,
|
|
722
|
+
axisZ: vec3
|
|
709
723
|
): vtkPolyData
|
|
710
724
|
}
|
|
711
725
|
|
|
@@ -1014,7 +1028,7 @@ declare module "xl-public-utils" {
|
|
|
1014
1028
|
bevelSize: number;
|
|
1015
1029
|
bevelEnabled: boolean;
|
|
1016
1030
|
}
|
|
1017
|
-
export interface IndexData { zeroIndexs: number[], oneIndexs: number[] }
|
|
1031
|
+
export interface IndexData { zeroIndexs: number[], oneIndexs: number[] }
|
|
1018
1032
|
export class FontManager {
|
|
1019
1033
|
private constructor(); // 使用单例模式
|
|
1020
1034
|
static Mgr(): FontManager;
|