@bitbybit-dev/base 1.6.2 → 1.8.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/NOTICE +24 -0
- package/README.md +3 -1
- package/lib/api/GlobalCDNProvider.js +1 -1
- package/lib/api/inputs/base-inputs.d.ts +40 -7
- package/lib/api/inputs/base-inputs.js +32 -0
- package/lib/api/inputs/io-inputs.d.ts +927 -59
- package/lib/api/inputs/io-inputs.js +769 -40
- package/lib/api/inputs/line-inputs.d.ts +17 -0
- package/lib/api/inputs/line-inputs.js +15 -0
- package/lib/api/inputs/mesh-inputs.d.ts +20 -1
- package/lib/api/inputs/mesh-inputs.js +23 -0
- package/lib/api/inputs/recipes-inputs.d.ts +13 -5
- package/lib/api/inputs/recipes-inputs.js +10 -5
- package/lib/api/kernel-calls/index.d.ts +2 -0
- package/lib/api/kernel-calls/index.js +2 -0
- package/lib/api/kernel-calls/resolve-dto.d.ts +3 -1
- package/lib/api/kernel-calls/resolve-dto.js +7 -2
- package/lib/api/kernel-calls/settings.d.ts +101 -0
- package/lib/api/kernel-calls/settings.js +123 -0
- package/lib/api/kernel-calls/up-axis-aliases.d.ts +25 -0
- package/lib/api/kernel-calls/up-axis-aliases.js +70 -0
- package/lib/api/models/simplex.d.ts +2 -0
- package/lib/api/models/simplex.js +10 -1
- package/lib/api/recipes/surface-mesh.d.ts +2 -1
- package/lib/api/recipes/surface-mesh.js +5 -3
- package/lib/api/resolved-inputs/index.d.ts +32 -3
- package/lib/api/services/base-bitbybit.d.ts +12 -0
- package/lib/api/services/base-bitbybit.js +19 -3
- package/lib/api/services/color.js +2 -3
- package/lib/api/services/helpers/color/color-forms.constants.d.ts +3 -0
- package/lib/api/services/helpers/color/color-forms.constants.js +3 -0
- package/lib/api/services/helpers/color/color-forms.d.ts +1 -0
- package/lib/api/services/helpers/color/color-forms.js +4 -1
- package/lib/api/services/helpers/color/css-colors.constants.d.ts +9 -0
- package/lib/api/services/helpers/color/css-colors.constants.js +158 -0
- package/lib/api/services/helpers/color/css-colors.d.ts +1 -0
- package/lib/api/services/helpers/color/css-colors.js +61 -0
- package/lib/api/services/helpers/curves/bezier-pieces.constants.d.ts +5 -0
- package/lib/api/services/helpers/curves/bezier-pieces.constants.js +5 -0
- package/lib/api/services/helpers/curves/bezier-pieces.d.ts +24 -0
- package/lib/api/services/helpers/curves/bezier-pieces.js +149 -0
- package/lib/api/services/helpers/curves/conic-arcs.constants.d.ts +5 -0
- package/lib/api/services/helpers/curves/conic-arcs.constants.js +5 -0
- package/lib/api/services/helpers/curves/conic-arcs.d.ts +26 -0
- package/lib/api/services/helpers/curves/conic-arcs.js +87 -0
- package/lib/api/services/helpers/curves/nurbs-forms.d.ts +20 -0
- package/lib/api/services/helpers/curves/nurbs-forms.js +112 -0
- package/lib/api/services/helpers/curves/nurbs.d.ts +4 -0
- package/lib/api/services/helpers/curves/nurbs.js +10 -9
- package/lib/api/services/helpers/files/drawing/drawing-budget.d.ts +3 -0
- package/lib/api/services/helpers/files/drawing/drawing-budget.js +34 -0
- package/lib/api/services/helpers/files/drawing/drawing-dimension.constants.d.ts +14 -0
- package/lib/api/services/helpers/files/drawing/drawing-dimension.constants.js +14 -0
- package/lib/api/services/helpers/files/drawing/drawing-dimension.d.ts +4 -0
- package/lib/api/services/helpers/files/drawing/drawing-dimension.js +271 -0
- package/lib/api/services/helpers/files/drawing/drawing-geometry.d.ts +21 -0
- package/lib/api/services/helpers/files/drawing/drawing-geometry.js +101 -0
- package/lib/api/services/helpers/files/drawing/drawing-hatch.d.ts +10 -0
- package/lib/api/services/helpers/files/drawing/drawing-hatch.js +123 -0
- package/lib/api/services/helpers/files/drawing/drawing-loops.d.ts +3 -0
- package/lib/api/services/helpers/files/drawing/drawing-loops.js +91 -0
- package/lib/api/services/helpers/files/drawing/drawing-model.d.ts +10 -0
- package/lib/api/services/helpers/files/drawing/drawing-model.js +336 -0
- package/lib/api/services/helpers/files/drawing/drawing-scale.d.ts +2 -0
- package/lib/api/services/helpers/files/drawing/drawing-scale.js +47 -0
- package/lib/api/services/helpers/files/drawing/drawing-text.d.ts +9 -0
- package/lib/api/services/helpers/files/drawing/drawing-text.js +25 -0
- package/lib/api/services/helpers/files/drawing/drawing-types.d.ts +117 -0
- package/lib/api/services/helpers/files/drawing/drawing-types.js +1 -0
- package/lib/api/services/helpers/files/drawing/drawing.constants.d.ts +41 -0
- package/lib/api/services/helpers/files/drawing/drawing.constants.js +46 -0
- package/lib/api/services/helpers/files/dxf/dxf-annotations.d.ts +5 -0
- package/lib/api/services/helpers/files/dxf/dxf-annotations.js +96 -0
- package/lib/api/services/helpers/files/dxf/dxf-colors.d.ts +5 -0
- package/lib/api/services/helpers/files/dxf/dxf-colors.js +45 -0
- package/lib/api/services/helpers/files/dxf/dxf-entities.d.ts +21 -0
- package/lib/api/services/helpers/files/dxf/dxf-entities.js +196 -0
- package/lib/api/services/helpers/files/dxf/dxf-file-text.d.ts +1 -0
- package/lib/api/services/helpers/files/dxf/dxf-file-text.js +50 -0
- package/lib/api/services/helpers/files/dxf/dxf-generator.d.ts +2 -36
- package/lib/api/services/helpers/files/dxf/dxf-generator.js +97 -523
- package/lib/api/services/helpers/files/dxf/dxf-reader-annotations.d.ts +9 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-annotations.js +312 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-dtos.d.ts +6 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-dtos.js +115 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-geometry.d.ts +21 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-geometry.js +67 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-segments.d.ts +9 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-segments.js +151 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-types.d.ts +96 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader-types.js +1 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader.constants.d.ts +134 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader.constants.js +95 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader.d.ts +2 -0
- package/lib/api/services/helpers/files/dxf/dxf-reader.js +446 -0
- package/lib/api/services/helpers/files/dxf/dxf-tables.d.ts +29 -0
- package/lib/api/services/helpers/files/dxf/dxf-tables.js +248 -0
- package/lib/api/services/helpers/files/dxf/dxf-text.d.ts +26 -0
- package/lib/api/services/helpers/files/dxf/dxf-text.js +97 -0
- package/lib/api/services/helpers/files/dxf/dxf-tokens.d.ts +11 -0
- package/lib/api/services/helpers/files/dxf/dxf-tokens.js +89 -0
- package/lib/api/services/helpers/files/dxf/dxf.constants.d.ts +43 -1
- package/lib/api/services/helpers/files/dxf/dxf.constants.js +47 -1
- package/lib/api/services/helpers/files/file-bytes.d.ts +1 -0
- package/lib/api/services/helpers/files/file-bytes.js +15 -0
- package/lib/api/services/helpers/files/ground-axes.d.ts +2 -0
- package/lib/api/services/helpers/files/ground-axes.js +4 -0
- package/lib/api/services/helpers/files/mesh-file-axes.d.ts +7 -0
- package/lib/api/services/helpers/files/mesh-file-axes.js +17 -0
- package/lib/api/services/helpers/files/stl-axes.d.ts +4 -0
- package/lib/api/services/helpers/files/stl-axes.js +22 -0
- package/lib/api/services/helpers/files/stl-types.d.ts +7 -0
- package/lib/api/services/helpers/files/stl-types.js +1 -0
- package/lib/api/services/helpers/files/stl.constants.d.ts +11 -0
- package/lib/api/services/helpers/files/stl.constants.js +11 -0
- package/lib/api/services/helpers/files/stl.d.ts +3 -0
- package/lib/api/services/helpers/files/stl.js +93 -0
- package/lib/api/services/helpers/files/svg/svg-css.d.ts +48 -0
- package/lib/api/services/helpers/files/svg/svg-css.js +444 -0
- package/lib/api/services/helpers/files/svg/svg-dash-patterns.d.ts +2 -0
- package/lib/api/services/helpers/files/svg/svg-dash-patterns.js +35 -0
- package/lib/api/services/helpers/files/svg/svg-document.d.ts +26 -0
- package/lib/api/services/helpers/files/svg/svg-document.js +89 -0
- package/lib/api/services/helpers/files/svg/svg-memo.d.ts +1 -0
- package/lib/api/services/helpers/files/svg/svg-memo.js +8 -0
- package/lib/api/services/helpers/files/svg/svg-normalizer.d.ts +6 -0
- package/lib/api/services/helpers/files/svg/svg-normalizer.js +433 -0
- package/lib/api/services/helpers/files/svg/svg-numbers.d.ts +15 -0
- package/lib/api/services/helpers/files/svg/svg-numbers.js +61 -0
- package/lib/api/services/helpers/files/svg/svg-path-data.constants.d.ts +8 -0
- package/lib/api/services/helpers/files/svg/svg-path-data.constants.js +10 -0
- package/lib/api/services/helpers/files/svg/svg-path-data.d.ts +9 -0
- package/lib/api/services/helpers/files/svg/svg-path-data.js +203 -0
- package/lib/api/services/helpers/files/svg/svg-path-types.d.ts +33 -0
- package/lib/api/services/helpers/files/svg/svg-path-types.js +1 -0
- package/lib/api/services/helpers/files/svg/svg-reader.constants.d.ts +35 -0
- package/lib/api/services/helpers/files/svg/svg-reader.constants.js +35 -0
- package/lib/api/services/helpers/files/svg/svg-reading.constants.d.ts +9 -0
- package/lib/api/services/helpers/files/svg/svg-reading.constants.js +9 -0
- package/lib/api/services/helpers/files/svg/svg-reading.d.ts +6 -0
- package/lib/api/services/helpers/files/svg/svg-reading.js +233 -0
- package/lib/api/services/helpers/files/svg/svg-scene-types.d.ts +54 -0
- package/lib/api/services/helpers/files/svg/svg-scene-types.js +1 -0
- package/lib/api/services/helpers/files/svg/svg-shapes.d.ts +6 -0
- package/lib/api/services/helpers/files/svg/svg-shapes.js +102 -0
- package/lib/api/services/helpers/files/svg/svg-strokes.d.ts +38 -0
- package/lib/api/services/helpers/files/svg/svg-strokes.js +132 -0
- package/lib/api/services/helpers/files/svg/svg-style.d.ts +26 -0
- package/lib/api/services/helpers/files/svg/svg-style.js +211 -0
- package/lib/api/services/helpers/files/svg/svg-transform.d.ts +10 -0
- package/lib/api/services/helpers/files/svg/svg-transform.js +76 -0
- package/lib/api/services/helpers/files/svg/svg-writer.d.ts +18 -0
- package/lib/api/services/helpers/files/svg/svg-writer.js +230 -0
- package/lib/api/services/helpers/files/svg/svg-xml.d.ts +11 -0
- package/lib/api/services/helpers/files/svg/svg-xml.js +322 -0
- package/lib/api/services/helpers/files/svg/svg.constants.d.ts +14 -0
- package/lib/api/services/helpers/files/svg/svg.constants.js +14 -0
- package/lib/api/services/helpers/files/work-budget.d.ts +11 -0
- package/lib/api/services/helpers/files/work-budget.js +26 -0
- package/lib/api/services/helpers/geometry/affine2.d.ts +8 -0
- package/lib/api/services/helpers/geometry/affine2.js +18 -0
- package/lib/api/services/helpers/geometry/ellipse-arcs.d.ts +14 -0
- package/lib/api/services/helpers/geometry/ellipse-arcs.js +96 -0
- package/lib/api/services/helpers/geometry/frame-axes.d.ts +3 -1
- package/lib/api/services/helpers/geometry/loop-fill.d.ts +2 -0
- package/lib/api/services/helpers/geometry/loop-fill.js +37 -0
- package/lib/api/services/helpers/geometry/polygon-nesting.constants.d.ts +6 -0
- package/lib/api/services/helpers/geometry/polygon-nesting.constants.js +6 -0
- package/lib/api/services/helpers/geometry/polygon-nesting.d.ts +31 -0
- package/lib/api/services/helpers/geometry/polygon-nesting.js +251 -0
- package/lib/api/services/helpers/geometry/vectors.d.ts +1 -0
- package/lib/api/services/helpers/geometry/vectors.js +6 -0
- package/lib/api/services/helpers/helper-types.d.ts +33 -0
- package/lib/api/services/helpers/text/stroke-font.d.ts +6 -0
- package/lib/api/services/helpers/text/stroke-font.js +177 -0
- package/lib/api/services/helpers/text/stroke-letters.constants.d.ts +2 -0
- package/lib/api/services/helpers/text/stroke-letters.constants.js +18 -0
- package/lib/api/services/helpers/text/stroke-marks.constants.d.ts +14 -0
- package/lib/api/services/helpers/text/stroke-marks.constants.js +34 -0
- package/lib/api/services/io/drawing.d.ts +368 -0
- package/lib/api/services/io/drawing.js +454 -0
- package/lib/api/services/io/dxf.d.ts +134 -0
- package/lib/api/services/io/dxf.js +167 -0
- package/lib/api/services/io/index.d.ts +4 -0
- package/lib/api/services/io/index.js +4 -0
- package/lib/api/services/io/io.d.ts +14 -0
- package/lib/api/services/io/io.js +15 -0
- package/lib/api/services/io/svg.d.ts +66 -0
- package/lib/api/services/io/svg.js +105 -0
- package/lib/api/services/line.d.ts +17 -0
- package/lib/api/services/line.js +20 -1
- package/lib/api/services/mesh.d.ts +19 -0
- package/lib/api/services/mesh.js +40 -0
- package/lib/api/services/point.d.ts +4 -1
- package/lib/api/services/point.js +9 -4
- package/lib/api/services/recipes.d.ts +3 -0
- package/lib/api/services/recipes.js +6 -2
- package/lib/api/services/text.d.ts +7 -4
- package/lib/api/services/text.js +14 -27
- package/package.json +1 -1
- package/lib/api/services/helpers/files/dxf/dxf.d.ts +0 -87
- package/lib/api/services/helpers/files/dxf/dxf.js +0 -111
- package/lib/api/services/io.d.ts +0 -9
- package/lib/api/services/io.js +0 -10
package/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
NOTICE - third-party material in @bitbybit-dev/base
|
|
2
|
+
===================================================
|
|
3
|
+
|
|
4
|
+
The TypeScript and JavaScript in this package are MIT-licensed (see LICENSE). It carries the font
|
|
5
|
+
data below, which keeps its own terms.
|
|
6
|
+
|
|
7
|
+
1. Hershey fonts
|
|
8
|
+
Terms: the Hershey Fonts may be used by anyone for any purpose, commercial or otherwise,
|
|
9
|
+
provided that the acknowledgements below are distributed with the font data, and
|
|
10
|
+
that the data is not converted into the format distributed by the U.S. NTIS. These
|
|
11
|
+
are the terms in full; there is no separate license text.
|
|
12
|
+
Acknowledgements:
|
|
13
|
+
- The Hershey Fonts were originally created by Dr. A. V. Hershey while working at the
|
|
14
|
+
U. S. National Bureau of Standards.
|
|
15
|
+
- The format of the Font data in this distribution was originally created by James
|
|
16
|
+
Hurt, Cognition, Inc., 900 Technology Park Drive, Billerica, MA 01821
|
|
17
|
+
(mit-eddie!ci-dandelion!hurt).
|
|
18
|
+
Source: http://paulbourke.net/dataformats/hershey/, by way of the OpenJSCAD project
|
|
19
|
+
(https://github.com/jscad/OpenJSCAD.org), which publishes the data under the MIT
|
|
20
|
+
License.
|
|
21
|
+
Usage: the strokes and advance widths of the simplex font (lib/api/models/simplex.js), which
|
|
22
|
+
the text services draw and measure single-line text with.
|
|
23
|
+
|
|
24
|
+
For questions about licensing, contact info@bitbybit.dev.
|
package/README.md
CHANGED
|
@@ -116,4 +116,6 @@ This package is part of the open-source Bitbybit ecosystem. Your subscription he
|
|
|
116
116
|
|
|
117
117
|
## License
|
|
118
118
|
|
|
119
|
-
MIT © [Bit By Bit Developers](https://bitbybit.dev)
|
|
119
|
+
MIT © [Bit By Bit Developers](https://bitbybit.dev)
|
|
120
|
+
|
|
121
|
+
The simplex stroke font the text services draw with is Hershey font data; `NOTICE` carries its terms and acknowledgements.
|
|
@@ -336,8 +336,9 @@ export declare namespace Base {
|
|
|
336
336
|
of: number;
|
|
337
337
|
/**
|
|
338
338
|
* The indices of what is cut away, all at once. A solid tool that ends within the recipe's
|
|
339
|
-
* `tolerance` of a
|
|
340
|
-
* solid,
|
|
339
|
+
* `tolerance` of a face of the solid, as the half-spaces before it leave the solid, passes
|
|
340
|
+
* through that face: a side of the solid's bounding box, or a face inside it that the tool's end
|
|
341
|
+
* lies wholly on.
|
|
341
342
|
*/
|
|
342
343
|
tools: number[];
|
|
343
344
|
}
|
|
@@ -363,8 +364,9 @@ export declare namespace Base {
|
|
|
363
364
|
/**
|
|
364
365
|
* A host solid with openings cut through it, such as a wall with its doors' and windows' holes.
|
|
365
366
|
* The same as a difference, kept apart so an executor can cut openings through flat hosts in 2D.
|
|
366
|
-
* An opening that ends within the recipe's `tolerance` of a
|
|
367
|
-
*
|
|
367
|
+
* An opening that ends within the recipe's `tolerance` of a face of the host passes through that
|
|
368
|
+
* face, a side of the host's bounding box or a face inside it that the opening's end lies wholly on,
|
|
369
|
+
* so an opening as deep as its wall cuts through it however its placement rounds.
|
|
368
370
|
* @beta
|
|
369
371
|
*/
|
|
370
372
|
interface RecipeVoidsNode {
|
|
@@ -991,9 +993,11 @@ export declare namespace Base {
|
|
|
991
993
|
/**
|
|
992
994
|
* The distance below which two positions count as the same, in the recipe's units, as the
|
|
993
995
|
* recipe's source measured it. Every executor applies it to cuts: an opening of a `voids` step,
|
|
994
|
-
* or a solid tool of a `difference`, that ends within it of a
|
|
995
|
-
*
|
|
996
|
-
*
|
|
996
|
+
* or a solid tool of a `difference`, that ends within it of a face of what it cuts passes through
|
|
997
|
+
* that face, whether a side of the bounding box of what it cuts or a face inside it that the cut's
|
|
998
|
+
* end lies wholly on. An executor that cannot move such an end out without moving more of the
|
|
999
|
+
* cut, as beside a shallow chamfer of it, or with a part of what it cuts just beyond the end,
|
|
1000
|
+
* leaves it as drawn. Elsewhere an executor may use it where it compares positions, or not.
|
|
997
1001
|
*/
|
|
998
1002
|
tolerance: number;
|
|
999
1003
|
/**
|
|
@@ -1065,4 +1069,33 @@ export declare namespace Base {
|
|
|
1065
1069
|
metre = "m",
|
|
1066
1070
|
inch = "in"
|
|
1067
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* The coordinate system the numbers of a model are in: left-handed, as a default Babylon.js
|
|
1074
|
+
* scene is, or right-handed, as three.js, PlayCanvas and CAD files are. Y is up in both. It
|
|
1075
|
+
* decides how a file, a drawing or a shape that names a hand maps to those numbers.
|
|
1076
|
+
*/
|
|
1077
|
+
enum coordinateSystemEnum {
|
|
1078
|
+
leftHanded = "leftHanded",
|
|
1079
|
+
rightHanded = "rightHanded"
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* How a result is turned between the two up axes geometry comes in: `keep` leaves it as it is,
|
|
1083
|
+
* `zUpToYUp` turns a Z-up file or recipe into this library's Y-up, and `yUpToZUp` turns a Y-up
|
|
1084
|
+
* model into Z-up for a tool that treats Z as up. Each method says which of them it takes.
|
|
1085
|
+
*/
|
|
1086
|
+
enum upAxisConversionEnum {
|
|
1087
|
+
keep = "keep",
|
|
1088
|
+
zUpToYUp = "zUpToYUp",
|
|
1089
|
+
yUpToZUp = "yUpToZUp"
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* How closed loops decide what lies inside them. Under `evenOdd` a point is inside when a ray
|
|
1093
|
+
* from it crosses the loops an odd number of times, whichever way each loop runs, so the loop
|
|
1094
|
+
* inside an `O` leaves its middle open; under `nonZero` the loops' directions count, and a loop
|
|
1095
|
+
* inside another running the same way fills it.
|
|
1096
|
+
*/
|
|
1097
|
+
enum loopFillRuleEnum {
|
|
1098
|
+
evenOdd = "evenOdd",
|
|
1099
|
+
nonZero = "nonZero"
|
|
1100
|
+
}
|
|
1068
1101
|
}
|
|
@@ -61,4 +61,36 @@ export var Base;
|
|
|
61
61
|
unitOfLengthEnum["metre"] = "m";
|
|
62
62
|
unitOfLengthEnum["inch"] = "in";
|
|
63
63
|
})(unitOfLengthEnum = Base.unitOfLengthEnum || (Base.unitOfLengthEnum = {}));
|
|
64
|
+
/**
|
|
65
|
+
* The coordinate system the numbers of a model are in: left-handed, as a default Babylon.js
|
|
66
|
+
* scene is, or right-handed, as three.js, PlayCanvas and CAD files are. Y is up in both. It
|
|
67
|
+
* decides how a file, a drawing or a shape that names a hand maps to those numbers.
|
|
68
|
+
*/
|
|
69
|
+
let coordinateSystemEnum;
|
|
70
|
+
(function (coordinateSystemEnum) {
|
|
71
|
+
coordinateSystemEnum["leftHanded"] = "leftHanded";
|
|
72
|
+
coordinateSystemEnum["rightHanded"] = "rightHanded";
|
|
73
|
+
})(coordinateSystemEnum = Base.coordinateSystemEnum || (Base.coordinateSystemEnum = {}));
|
|
74
|
+
/**
|
|
75
|
+
* How a result is turned between the two up axes geometry comes in: `keep` leaves it as it is,
|
|
76
|
+
* `zUpToYUp` turns a Z-up file or recipe into this library's Y-up, and `yUpToZUp` turns a Y-up
|
|
77
|
+
* model into Z-up for a tool that treats Z as up. Each method says which of them it takes.
|
|
78
|
+
*/
|
|
79
|
+
let upAxisConversionEnum;
|
|
80
|
+
(function (upAxisConversionEnum) {
|
|
81
|
+
upAxisConversionEnum["keep"] = "keep";
|
|
82
|
+
upAxisConversionEnum["zUpToYUp"] = "zUpToYUp";
|
|
83
|
+
upAxisConversionEnum["yUpToZUp"] = "yUpToZUp";
|
|
84
|
+
})(upAxisConversionEnum = Base.upAxisConversionEnum || (Base.upAxisConversionEnum = {}));
|
|
85
|
+
/**
|
|
86
|
+
* How closed loops decide what lies inside them. Under `evenOdd` a point is inside when a ray
|
|
87
|
+
* from it crosses the loops an odd number of times, whichever way each loop runs, so the loop
|
|
88
|
+
* inside an `O` leaves its middle open; under `nonZero` the loops' directions count, and a loop
|
|
89
|
+
* inside another running the same way fills it.
|
|
90
|
+
*/
|
|
91
|
+
let loopFillRuleEnum;
|
|
92
|
+
(function (loopFillRuleEnum) {
|
|
93
|
+
loopFillRuleEnum["evenOdd"] = "evenOdd";
|
|
94
|
+
loopFillRuleEnum["nonZero"] = "nonZero";
|
|
95
|
+
})(loopFillRuleEnum = Base.loopFillRuleEnum || (Base.loopFillRuleEnum = {}));
|
|
64
96
|
})(Base || (Base = {}));
|