three-text 0.4.3 → 0.4.5

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.
@@ -1,4 +1,4 @@
1
- import { Vec2 } from '../vectors';
1
+ import { Vec2 } from '../../utils/vectors';
2
2
  import { GlyphContours } from '../types';
3
3
  import { OptimizationStats } from '../geometry/PathOptimizer';
4
4
  import { CurveFidelityConfig, GeometryOptimizationOptions } from '../types';
@@ -1,4 +1,4 @@
1
- import { Vec3 } from '../vectors';
1
+ import { Vec3 } from '../../utils/vectors';
2
2
  import type { GlyphContours } from '../types';
3
3
  export declare class BoundaryClusterer {
4
4
  constructor();
@@ -35,7 +35,7 @@
35
35
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36
36
  * POSSIBILITY OF SUCH DAMAGE.
37
37
  */
38
- import { Vec2 } from '../vectors';
38
+ import { Vec2 } from '../../utils/vectors';
39
39
  import { CurveFidelityConfig } from '../types';
40
40
  export declare const DEFAULT_CURVE_FIDELITY: CurveFidelityConfig;
41
41
  export declare const COLLINEARITY_EPSILON = 0.000001;
@@ -1,6 +1,6 @@
1
1
  import type { HyphenationTrieNode } from '../hyphenation';
2
2
  import type { CacheStats } from '../utils/Cache';
3
- import type { Vec2, Vec3, BoundingBox } from './vectors';
3
+ import type { Vec2, Vec3, BoundingBox } from '../utils/vectors';
4
4
  export type { HyphenationTrieNode };
5
5
  export interface Path {
6
6
  points: Vec2[];
@@ -163,6 +163,7 @@ export interface Triangles {
163
163
  export interface ProcessedGeometry {
164
164
  triangles: Triangles;
165
165
  contours: number[][];
166
+ contoursAreBoundary?: boolean;
166
167
  }
167
168
  export interface GlyphData {
168
169
  geometry: ProcessedGeometry;
@@ -0,0 +1 @@
1
+ export declare function loadBinary(filePath: string): Promise<ArrayBuffer>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-text",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "3D mesh font geometry and text layout engine for the web",
5
5
  "main": "dist/three/index.cjs",
6
6
  "module": "dist/three/index.js",
File without changes