@ot-builder/cli-proc 1.3.3 → 1.5.1

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/CHANGELOG.json CHANGED
@@ -2,7 +2,172 @@
2
2
  "name": "@ot-builder/cli-proc",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 18 Dec 2021 01:17:28 GMT",
5
+ "date": "Sat, 02 Apr 2022 01:38:49 GMT",
6
+ "tag": "@ot-builder/cli-proc_v1.5.1",
7
+ "version": "1.5.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@ot-builder/cli-proc",
13
+ "comment": "Bump @ot-builder/io-bin-font to v1.5.1",
14
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@ot-builder/cli-proc",
19
+ "comment": "Bump @ot-builder/primitive to v1.5.1",
20
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@ot-builder/cli-proc",
25
+ "comment": "Bump @ot-builder/common-impl to v1.5.1",
26
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@ot-builder/cli-proc",
31
+ "comment": "Bump @ot-builder/rectify to v1.5.1",
32
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@ot-builder/cli-proc",
37
+ "comment": "Bump @ot-builder/trace to v1.5.1",
38
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@ot-builder/cli-proc",
43
+ "comment": "Bump @ot-builder/prelude to v1.5.1",
44
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@ot-builder/cli-proc",
49
+ "comment": "Bump @ot-builder/ot to v1.5.1",
50
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Sat, 26 Mar 2022 01:37:00 GMT",
57
+ "tag": "@ot-builder/cli-proc_v1.5.0",
58
+ "version": "1.5.0",
59
+ "comments": {
60
+ "minor": [
61
+ {
62
+ "author": "beachball",
63
+ "package": "@ot-builder/cli-proc",
64
+ "comment": "Bump @ot-builder/io-bin-font to v1.5.0",
65
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@ot-builder/cli-proc",
70
+ "comment": "Bump @ot-builder/primitive to v1.5.0",
71
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@ot-builder/cli-proc",
76
+ "comment": "Bump @ot-builder/common-impl to v1.5.0",
77
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@ot-builder/cli-proc",
82
+ "comment": "Bump @ot-builder/rectify to v1.5.0",
83
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@ot-builder/cli-proc",
88
+ "comment": "Bump @ot-builder/trace to v1.5.0",
89
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@ot-builder/cli-proc",
94
+ "comment": "Bump @ot-builder/prelude to v1.5.0",
95
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@ot-builder/cli-proc",
100
+ "comment": "Bump @ot-builder/ot to v1.5.0",
101
+ "commit": "0d6eb83609255ffdfd147ed0610aab1aa424b357"
102
+ }
103
+ ]
104
+ }
105
+ },
106
+ {
107
+ "date": "Sat, 26 Feb 2022 01:27:19 GMT",
108
+ "tag": "@ot-builder/cli-proc_v1.4.0",
109
+ "version": "1.4.0",
110
+ "comments": {
111
+ "minor": [
112
+ {
113
+ "author": "otbbuilder-dev@users.noreply.github.com",
114
+ "package": "@ot-builder/cli-proc",
115
+ "commit": "d5ef5ade3424ec81b7545c9967badddeb9cc8f1b",
116
+ "comment": "Enhance OTBCLI with better subset, drop and transform-glyphs"
117
+ },
118
+ {
119
+ "author": "otbbuilder-dev@users.noreply.github.com",
120
+ "package": "@ot-builder/cli-proc",
121
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59",
122
+ "comment": "Export Ot.GeometryUtil"
123
+ },
124
+ {
125
+ "author": "beachball",
126
+ "package": "@ot-builder/cli-proc",
127
+ "comment": "Bump @ot-builder/io-bin-font to v1.4.0",
128
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
129
+ },
130
+ {
131
+ "author": "beachball",
132
+ "package": "@ot-builder/cli-proc",
133
+ "comment": "Bump @ot-builder/primitive to v1.4.0",
134
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
135
+ },
136
+ {
137
+ "author": "beachball",
138
+ "package": "@ot-builder/cli-proc",
139
+ "comment": "Bump @ot-builder/common-impl to v1.4.0",
140
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
141
+ },
142
+ {
143
+ "author": "beachball",
144
+ "package": "@ot-builder/cli-proc",
145
+ "comment": "Bump @ot-builder/rectify to v1.4.0",
146
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
147
+ },
148
+ {
149
+ "author": "beachball",
150
+ "package": "@ot-builder/cli-proc",
151
+ "comment": "Bump @ot-builder/trace to v1.4.0",
152
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
153
+ },
154
+ {
155
+ "author": "beachball",
156
+ "package": "@ot-builder/cli-proc",
157
+ "comment": "Bump @ot-builder/prelude to v1.4.0",
158
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
159
+ },
160
+ {
161
+ "author": "beachball",
162
+ "package": "@ot-builder/cli-proc",
163
+ "comment": "Bump @ot-builder/ot to v1.4.0",
164
+ "commit": "f1c3eedd84cadff44ee97d878a245b451ce7bd59"
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ {
170
+ "date": "Sat, 18 Dec 2021 01:19:54 GMT",
6
171
  "tag": "@ot-builder/cli-proc_v1.3.3",
7
172
  "version": "1.3.3",
8
173
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,56 @@
1
1
  # Change Log - @ot-builder/cli-proc
2
2
 
3
- This log was last generated on Sat, 18 Dec 2021 01:17:28 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 02 Apr 2022 01:38:49 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.5.1
8
+
9
+ Sat, 02 Apr 2022 01:38:49 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @ot-builder/io-bin-font to v1.5.1
14
+ - Bump @ot-builder/primitive to v1.5.1
15
+ - Bump @ot-builder/common-impl to v1.5.1
16
+ - Bump @ot-builder/rectify to v1.5.1
17
+ - Bump @ot-builder/trace to v1.5.1
18
+ - Bump @ot-builder/prelude to v1.5.1
19
+ - Bump @ot-builder/ot to v1.5.1
20
+
21
+ ## 1.5.0
22
+
23
+ Sat, 26 Mar 2022 01:37:00 GMT
24
+
25
+ ### Minor changes
26
+
27
+ - Bump @ot-builder/io-bin-font to v1.5.0
28
+ - Bump @ot-builder/primitive to v1.5.0
29
+ - Bump @ot-builder/common-impl to v1.5.0
30
+ - Bump @ot-builder/rectify to v1.5.0
31
+ - Bump @ot-builder/trace to v1.5.0
32
+ - Bump @ot-builder/prelude to v1.5.0
33
+ - Bump @ot-builder/ot to v1.5.0
34
+
35
+ ## 1.4.0
36
+
37
+ Sat, 26 Feb 2022 01:27:19 GMT
38
+
39
+ ### Minor changes
40
+
41
+ - Enhance OTBCLI with better subset, drop and transform-glyphs (otbbuilder-dev@users.noreply.github.com)
42
+ - Export Ot.GeometryUtil (otbbuilder-dev@users.noreply.github.com)
43
+ - Bump @ot-builder/io-bin-font to v1.4.0
44
+ - Bump @ot-builder/primitive to v1.4.0
45
+ - Bump @ot-builder/common-impl to v1.4.0
46
+ - Bump @ot-builder/rectify to v1.4.0
47
+ - Bump @ot-builder/trace to v1.4.0
48
+ - Bump @ot-builder/prelude to v1.4.0
49
+ - Bump @ot-builder/ot to v1.4.0
50
+
7
51
  ## 1.3.3
8
52
 
9
- Sat, 18 Dec 2021 01:17:28 GMT
53
+ Sat, 18 Dec 2021 01:19:54 GMT
10
54
 
11
55
  ### Patches
12
56
 
package/lib/index.d.ts CHANGED
@@ -3,5 +3,6 @@ export { mergeFonts, MergeOptions, consolidateFont } from "./procs/merge-consoli
3
3
  export { rebaseFont } from "./procs/rebase";
4
4
  export { subsetFont } from "./procs/subset";
5
5
  export { shareGlyphSet, GlyphSharer, ShareGlyphSetOptions, GlyphUnificationResults } from "./procs/share-glyph-set";
6
+ export { inPlaceTransformFontGlyph } from "./procs/transform-glyphs";
6
7
  export { unifyDesignSpaces } from "./support/design-unifier/index";
7
8
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unifyDesignSpaces = exports.GlyphSharer = exports.shareGlyphSet = exports.subsetFont = exports.rebaseFont = exports.consolidateFont = exports.mergeFonts = exports.gcFont = void 0;
3
+ exports.unifyDesignSpaces = exports.inPlaceTransformFontGlyph = exports.GlyphSharer = exports.shareGlyphSet = exports.subsetFont = exports.rebaseFont = exports.consolidateFont = exports.mergeFonts = exports.gcFont = void 0;
4
4
  var gc_1 = require("./procs/gc");
5
5
  Object.defineProperty(exports, "gcFont", { enumerable: true, get: function () { return gc_1.gcFont; } });
6
6
  var merge_consolidate_1 = require("./procs/merge-consolidate");
@@ -13,6 +13,8 @@ Object.defineProperty(exports, "subsetFont", { enumerable: true, get: function (
13
13
  var share_glyph_set_1 = require("./procs/share-glyph-set");
14
14
  Object.defineProperty(exports, "shareGlyphSet", { enumerable: true, get: function () { return share_glyph_set_1.shareGlyphSet; } });
15
15
  Object.defineProperty(exports, "GlyphSharer", { enumerable: true, get: function () { return share_glyph_set_1.GlyphSharer; } });
16
+ var transform_glyphs_1 = require("./procs/transform-glyphs");
17
+ Object.defineProperty(exports, "inPlaceTransformFontGlyph", { enumerable: true, get: function () { return transform_glyphs_1.inPlaceTransformFontGlyph; } });
16
18
  var index_1 = require("./support/design-unifier/index");
17
19
  Object.defineProperty(exports, "unifyDesignSpaces", { enumerable: true, get: function () { return index_1.unifyDesignSpaces; } });
18
20
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ import * as Ot from "@ot-builder/ot";
2
+ export declare function inPlaceTransformFontGlyph<GS extends Ot.GlyphStore>(font: Ot.Font<GS>, transform: Ot.Glyph.Transform2X3): void;
3
+ export declare function inPlaceTransformFontGlyphDependent<GS extends Ot.GlyphStore>(font: Ot.Font<GS>, transformF: (glyph: Ot.Glyph) => Ot.Glyph.Transform2X3): void;
4
+ //# sourceMappingURL=transform-glyphs.d.ts.map
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inPlaceTransformFontGlyphDependent = exports.inPlaceTransformFontGlyph = void 0;
4
+ const Ot = require("@ot-builder/ot");
5
+ function inPlaceTransformFontGlyph(font, transform) {
6
+ inPlaceTransformFontGlyphDependent(font, () => transform);
7
+ }
8
+ exports.inPlaceTransformFontGlyph = inPlaceTransformFontGlyph;
9
+ function inPlaceTransformFontGlyphDependent(font, transformF) {
10
+ for (const g of font.glyphs.decideOrder()) {
11
+ const flattened = Ot.GeometryUtil.apply(Ot.GeometryUtil.Flattener, g.geometry);
12
+ g.geometry = new Ot.Glyph.ContourSet(flattened);
13
+ }
14
+ for (const g of font.glyphs.decideOrder()) {
15
+ if (!g.geometry || g.geometry.type !== Ot.Glyph.GeometryType.ContourSet)
16
+ continue;
17
+ const tfm = transformF(g);
18
+ for (const c of g.geometry.contours) {
19
+ for (let iz = 0; iz < c.length; iz++) {
20
+ c[iz] = Ot.Glyph.PointOps.applyTransform(c[iz], tfm);
21
+ }
22
+ }
23
+ }
24
+ }
25
+ exports.inPlaceTransformFontGlyphDependent = inPlaceTransformFontGlyphDependent;
26
+ //# sourceMappingURL=transform-glyphs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ot-builder/cli-proc",
3
- "version": "1.3.3",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,16 +24,16 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "tslib": "^2.0.0",
27
- "@ot-builder/io-bin-font": "1.3.3",
28
- "@ot-builder/primitive": "1.3.3",
29
- "@ot-builder/common-impl": "1.3.3",
30
- "@ot-builder/rectify": "1.3.3",
31
- "@ot-builder/trace": "1.3.3",
32
- "@ot-builder/prelude": "1.3.3",
33
- "@ot-builder/ot": "1.3.3"
27
+ "@ot-builder/io-bin-font": "1.5.1",
28
+ "@ot-builder/primitive": "1.5.1",
29
+ "@ot-builder/common-impl": "1.5.1",
30
+ "@ot-builder/rectify": "1.5.1",
31
+ "@ot-builder/trace": "1.5.1",
32
+ "@ot-builder/prelude": "1.5.1",
33
+ "@ot-builder/ot": "1.5.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/jest": "^26.0.23",
37
- "jest": "^27.0.6"
37
+ "jest": "^27.5.1"
38
38
  }
39
39
  }