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.
- package/README.md +6 -0
- package/dist/index.cjs +71 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +71 -23
- package/dist/index.min.cjs +665 -655
- package/dist/index.min.js +664 -654
- package/dist/index.umd.js +71 -23
- package/dist/index.umd.min.js +602 -592
- package/dist/types/core/cache/GlyphContourCollector.d.ts +1 -1
- package/dist/types/core/geometry/BoundaryClusterer.d.ts +1 -1
- package/dist/types/core/geometry/Polygonizer.d.ts +1 -1
- package/dist/types/core/types.d.ts +2 -1
- package/dist/types/utils/loadBinary.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/types/{core → utils}/vectors.d.ts +0 -0
|
@@ -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 '
|
|
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 '
|
|
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
|
File without changes
|