three-text 0.5.2 → 0.6.0
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/LICENSE_THIRD_PARTY +15 -0
- package/README.md +73 -42
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/three/react.d.ts +2 -0
- package/dist/types/core/types.d.ts +2 -33
- package/dist/types/vector/{core.d.ts → core/index.d.ts} +8 -7
- package/dist/types/vector/index.d.ts +22 -25
- package/dist/types/vector/react.d.ts +4 -3
- package/dist/types/vector/slug/SlugPacker.d.ts +2 -0
- package/dist/types/vector/slug/curveUtils.d.ts +6 -0
- package/dist/types/vector/slug/index.d.ts +8 -0
- package/dist/types/vector/slug/shaderStrings.d.ts +4 -0
- package/dist/types/vector/slug/slugGLSL.d.ts +21 -0
- package/dist/types/vector/slug/slugTSL.d.ts +13 -0
- package/dist/types/vector/slug/types.d.ts +30 -0
- package/dist/types/vector/slug/unpackVertices.d.ts +11 -0
- package/dist/types/vector/webgl/index.d.ts +7 -3
- package/dist/types/vector/webgpu/index.d.ts +4 -4
- package/dist/vector/core/index.cjs +856 -0
- package/dist/vector/core/index.d.ts +63 -0
- package/dist/vector/core/index.js +854 -0
- package/dist/vector/core.cjs +4419 -240
- package/dist/vector/core.d.ts +361 -71
- package/dist/vector/core.js +4406 -226
- package/dist/vector/index.cjs +5 -229
- package/dist/vector/index.d.ts +45 -396
- package/dist/vector/index.js +3 -223
- package/dist/vector/index2.cjs +287 -0
- package/dist/vector/index2.js +264 -0
- package/dist/vector/react.cjs +37 -8
- package/dist/vector/react.d.ts +6 -3
- package/dist/vector/react.js +18 -8
- package/dist/vector/slugTSL.cjs +252 -0
- package/dist/vector/slugTSL.js +231 -0
- package/dist/vector/webgl/index.cjs +131 -201
- package/dist/vector/webgl/index.d.ts +19 -44
- package/dist/vector/webgl/index.js +131 -201
- package/dist/vector/webgpu/index.cjs +100 -283
- package/dist/vector/webgpu/index.d.ts +16 -45
- package/dist/vector/webgpu/index.js +100 -283
- package/package.json +6 -1
- package/dist/types/vector/GlyphVectorGeometryBuilder.d.ts +0 -26
- package/dist/types/vector/LoopBlinnGeometry.d.ts +0 -68
- package/dist/types/vector/loopBlinnTSL.d.ts +0 -22
- package/dist/vector/loopBlinnTSL.cjs +0 -229
- package/dist/vector/loopBlinnTSL.js +0 -207
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SlugGPUData } from '../slug/types';
|
|
2
2
|
export interface WebGLVectorRenderer {
|
|
3
|
-
setGeometry(data:
|
|
3
|
+
setGeometry(data: SlugGPUData): void;
|
|
4
4
|
render(mvp: Float32Array, color: Float32Array): void;
|
|
5
5
|
dispose(): void;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export interface WebGLVectorRendererOptions {
|
|
8
|
+
adaptiveSupersampling?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function createWebGLVectorRenderer(gl: WebGL2RenderingContext, options?: WebGLVectorRendererOptions): WebGLVectorRenderer;
|
|
11
|
+
export type { SlugGPUData };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SlugGPUData } from '../slug/types';
|
|
2
2
|
export interface WebGPUVectorRenderer {
|
|
3
|
-
setGeometry(data:
|
|
4
|
-
render(passEncoder: GPURenderPassEncoder, mvp: Float32Array, color: Float32Array): void;
|
|
3
|
+
setGeometry(data: SlugGPUData): void;
|
|
4
|
+
render(passEncoder: GPURenderPassEncoder, mvp: Float32Array, color: Float32Array, viewportWidth?: number, viewportHeight?: number): void;
|
|
5
5
|
dispose(): void;
|
|
6
6
|
}
|
|
7
7
|
export interface WebGPUVectorRendererOptions {
|
|
8
|
-
depthStencilFormat?: GPUTextureFormat;
|
|
9
8
|
sampleCount?: number;
|
|
10
9
|
}
|
|
11
10
|
export declare function createWebGPUVectorRenderer(device: GPUDevice, format: GPUTextureFormat, options?: WebGPUVectorRendererOptions): WebGPUVectorRenderer;
|
|
11
|
+
export type { SlugGPUData };
|