@ot-builder/io-bin-layout 1.7.3 → 1.7.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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decideIgnoreFlags = void 0;
3
+ exports.decideIgnoreFlags = decideIgnoreFlags;
4
4
  const ot_layout_1 = require("@ot-builder/ot-layout");
5
5
  function decideIgnoreFlags(gs, gdef) {
6
6
  if (!gdef || !gs || !gs.size)
@@ -17,7 +17,6 @@ function decideIgnoreFlags(gs, gdef) {
17
17
  ...igfMark
18
18
  };
19
19
  }
20
- exports.decideIgnoreFlags = decideIgnoreFlags;
21
20
  /// Split non-mark and mark glyphs
22
21
  function gsSplitMarks(ignoredGlyphs, glyphClassDef) {
23
22
  if (!glyphClassDef)
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setLookupTricks = void 0;
3
+ exports.setLookupTricks = setLookupTricks;
4
4
  function setLookupTricks(table, cfg) {
5
5
  const tricks = new Map();
6
6
  if (cfg.layout.lookupWriteTricks) {
@@ -12,5 +12,4 @@ function setLookupTricks(table, cfg) {
12
12
  }
13
13
  return tricks;
14
14
  }
15
- exports.setLookupTricks = setLookupTricks;
16
15
  //# sourceMappingURL=trick.js.map
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.analyzeOutlier = exports.shareColumns = exports.OutlierTree = void 0;
3
+ exports.OutlierTree = void 0;
4
+ exports.shareColumns = shareColumns;
5
+ exports.analyzeOutlier = analyzeOutlier;
4
6
  const errors_1 = require("@ot-builder/errors");
5
7
  const primitive_1 = require("@ot-builder/primitive");
6
8
  const coverage_1 = require("../../shared/coverage");
@@ -67,14 +69,12 @@ function shareColumns(cm) {
67
69
  if (outliers.size)
68
70
  throw errors_1.Errors.Unreachable();
69
71
  }
70
- exports.shareColumns = shareColumns;
71
72
  function analyzeOutlier(cm) {
72
73
  const outliers = new OutlierTree();
73
74
  OutlierAnalyzerImpl.analyzeOutlierImpl(cm, outliers);
74
75
  cm.eliminateZeroClasses();
75
76
  return outliers;
76
77
  }
77
- exports.analyzeOutlier = analyzeOutlier;
78
78
  var OutlierAnalyzerImpl;
79
79
  (function (OutlierAnalyzerImpl) {
80
80
  // Outlier analyzers are really "symmetric": we find that one "row" (or "column") that is
package/lib/main/read.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readOtl = void 0;
3
+ exports.readOtl = readOtl;
4
4
  const bin_util_1 = require("@ot-builder/bin-util");
5
5
  const ot_layout_1 = require("@ot-builder/ot-layout");
6
6
  const base_1 = require("../base");
@@ -33,5 +33,4 @@ function readOtl(sfnt, cfg, gOrd, md) {
33
33
  const math = bMath ? new bin_util_1.BinaryView(bMath).next(math_1.MathTableIo, gOrd) : null;
34
34
  return { gdef, gsub, gpos, base, math };
35
35
  }
36
- exports.readOtl = readOtl;
37
36
  //# sourceMappingURL=read.js.map
package/lib/main/write.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writeOtl = void 0;
3
+ exports.writeOtl = writeOtl;
4
4
  const bin_util_1 = require("@ot-builder/bin-util");
5
5
  const ot_layout_1 = require("@ot-builder/ot-layout");
6
6
  const var_store_1 = require("@ot-builder/var-store");
@@ -38,5 +38,4 @@ otl, cfg, gOrd, md) {
38
38
  if (otl.math)
39
39
  outSink.add(ot_layout_1.Math.Tag, bin_util_1.Frag.packFrom(math_1.MathTableIo, otl.math, gOrd));
40
40
  }
41
- exports.writeOtl = writeOtl;
42
41
  //# sourceMappingURL=write.js.map
package/lib/math/kern.js CHANGED
@@ -15,8 +15,10 @@ const MathKern = {
15
15
  write(fr, x) {
16
16
  const correctionHeight = [];
17
17
  const kernValues = [];
18
- for (const [h, v] of x.corrections)
19
- correctionHeight.push(h), kernValues.push(v);
18
+ for (const [h, v] of x.corrections) {
19
+ correctionHeight.push(h);
20
+ kernValues.push(v);
21
+ }
20
22
  kernValues.push(x.kernValue);
21
23
  fr.uint16(correctionHeight.length);
22
24
  fr.arrayN(math_value_record_1.MathValueRecord, correctionHeight.length, correctionHeight);
@@ -17,7 +17,7 @@ export declare const ClassDef: {
17
17
  export declare const Ptr16ClassDef: Read<LayoutCommon.ClassDef.T<OtGlyph>, [gOrd: Data.Order<OtGlyph>]> & Write<Iterable<[OtGlyph, number]>, [gOrd: Data.Order<OtGlyph>, trick?: number | undefined]>;
18
18
  export declare const NullablePtr16ClassDef: Read<LayoutCommon.ClassDef.T<OtGlyph> | null | undefined, [gOrd: Data.Order<OtGlyph>]> & Write<Iterable<[OtGlyph, number]> | null | undefined, [gOrd: Data.Order<OtGlyph>, trick?: number | undefined]>;
19
19
  export declare const EmptyAsNullPtr16ClassDef: {
20
- read(view: BinaryView, gOrd: Data.Order<OtGlyph>): Map<OtGlyph, number>;
20
+ read(view: BinaryView, gOrd: Data.Order<OtGlyph>): LayoutCommon.ClassDef.T<OtGlyph>;
21
21
  write(frag: Frag, cd: Map<OtGlyph, number>, gOrd: Data.Order<OtGlyph>, trick?: number): void;
22
22
  };
23
23
  export declare const GidClassDef: {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hashVarVal = exports.GposAdjustment = exports.GposAdjustmentFormat = void 0;
3
+ exports.GposAdjustment = exports.GposAdjustmentFormat = void 0;
4
+ exports.hashVarVal = hashVarVal;
4
5
  const Crypto = require("crypto");
5
6
  const ImpLib = require("@ot-builder/common-impl");
6
7
  const primitive_1 = require("@ot-builder/primitive");
@@ -209,5 +210,4 @@ function hashVarVal(h, ivs, x, device) {
209
210
  if (device)
210
211
  h.number(2).numbers(device);
211
212
  }
212
- exports.hashVarVal = hashVarVal;
213
213
  //# sourceMappingURL=gpos-adjust.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ot-builder/io-bin-layout",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,28 +23,28 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@ot-builder/bin-composite-types": "1.7.3",
27
- "@ot-builder/bin-util": "1.7.3",
28
- "@ot-builder/errors": "1.7.3",
29
- "@ot-builder/ot-glyphs": "1.7.3",
30
- "@ot-builder/ot-layout": "1.7.3",
31
- "@ot-builder/ot-metadata": "1.7.3",
32
- "@ot-builder/prelude": "1.7.3",
33
- "@ot-builder/primitive": "1.7.3",
34
- "@ot-builder/var-store": "1.7.3",
35
- "@ot-builder/variance": "1.7.3",
36
- "@ot-builder/common-impl": "1.7.3",
37
- "@ot-builder/ot-sfnt": "1.7.3",
38
- "@ot-builder/io-bin-sfnt": "1.7.3",
39
- "tslib": "^2.0.0"
26
+ "@ot-builder/bin-composite-types": "1.7.5",
27
+ "@ot-builder/bin-util": "1.7.5",
28
+ "@ot-builder/errors": "1.7.5",
29
+ "@ot-builder/ot-glyphs": "1.7.5",
30
+ "@ot-builder/ot-layout": "1.7.5",
31
+ "@ot-builder/ot-metadata": "1.7.5",
32
+ "@ot-builder/prelude": "1.7.5",
33
+ "@ot-builder/primitive": "1.7.5",
34
+ "@ot-builder/var-store": "1.7.5",
35
+ "@ot-builder/variance": "1.7.5",
36
+ "@ot-builder/common-impl": "1.7.5",
37
+ "@ot-builder/ot-sfnt": "1.7.5",
38
+ "@ot-builder/io-bin-sfnt": "1.7.5",
39
+ "tslib": "^2.8.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@ot-builder/io-bin-glyph-store": "1.7.3",
43
- "@ot-builder/io-bin-metadata": "1.7.3",
44
- "@ot-builder/ot-encoding": "1.7.3",
45
- "@ot-builder/io-bin-encoding": "1.7.3",
46
- "@ot-builder/test-util": "1.7.3",
47
- "@types/jest": "^29.5.5",
48
- "jest": "^29.6.2"
42
+ "@ot-builder/io-bin-glyph-store": "1.7.5",
43
+ "@ot-builder/io-bin-metadata": "1.7.5",
44
+ "@ot-builder/ot-encoding": "1.7.5",
45
+ "@ot-builder/io-bin-encoding": "1.7.5",
46
+ "@ot-builder/test-util": "1.7.5",
47
+ "@types/jest": "^29.5.14",
48
+ "jest": "^29.7.0"
49
49
  }
50
50
  }