@ot-builder/ot-encoding
Advanced tools
+17
-2
@@ -5,3 +5,18 @@ { | ||
| { | ||
| "date": "Sun, 29 Mar 2020 00:10:39 GMT", | ||
| "date": "Sun, 05 Apr 2020 00:09:32 GMT", | ||
| "tag": "@ot-builder/ot-encoding_v0.7.0", | ||
| "version": "0.7.0", | ||
| "comments": { | ||
| "minor": [ | ||
| { | ||
| "comment": "Change the way to export CMAP mapping objects", | ||
| "author": "belleve@typeof.net", | ||
| "commit": "d7e6db36e4fae5c3ed2a643ea8b35bc986674a95", | ||
| "package": "@ot-builder/ot-encoding" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "date": "Sun, 29 Mar 2020 00:13:11 GMT", | ||
| "tag": "@ot-builder/ot-encoding_v0.6.0", | ||
@@ -58,2 +73,2 @@ "version": "0.6.0", | ||
| ] | ||
| } | ||
| } |
+13
-3
| # Change Log - @ot-builder/ot-encoding | ||
| This log was last generated on Sun, 29 Mar 2020 00:10:39 GMT and should not be manually modified. | ||
| This log was last generated on Sun, 05 Apr 2020 00:09:32 GMT and should not be manually modified. | ||
| <!-- Start content --> | ||
| ## 0.7.0 | ||
| Sun, 05 Apr 2020 00:09:32 GMT | ||
| ### Minor changes | ||
| - Change the way to export CMAP mapping objects (belleve@typeof.net) | ||
| ## 0.6.0 | ||
| Sun, 29 Mar 2020 00:10:39 GMT | ||
| Sun, 29 Mar 2020 00:13:11 GMT | ||
@@ -22,2 +32,2 @@ ### Patches | ||
| - Fix all CRLF (belleve@typeof.net) | ||
| - Move tslint -> eslint (belleve@typeof.net) | ||
| - Move tslint -> eslint (belleve@typeof.net) |
@@ -1,3 +0,2 @@ | ||
| import { EncodingMapT } from "./general"; | ||
| export declare class EncodingMapImplT<G> implements EncodingMapT<G> { | ||
| export declare class EncodingMapT<G> { | ||
| private mapping; | ||
@@ -9,4 +8,5 @@ constructor(init?: Iterable<[number, G]>); | ||
| delete(code: number): void; | ||
| clear(): void; | ||
| entries(): IterableIterator<[number, G]>; | ||
| } | ||
| //# sourceMappingURL=encoding-map-impl.d.ts.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| class EncodingMapImplT { | ||
| class EncodingMapT { | ||
| constructor(init) { | ||
@@ -24,2 +24,5 @@ this.mapping = new Map(); | ||
| } | ||
| clear() { | ||
| this.mapping = new Map(); | ||
| } | ||
| *entries() { | ||
@@ -29,3 +32,3 @@ yield* this.mapping.entries(); | ||
| } | ||
| exports.EncodingMapImplT = EncodingMapImplT; | ||
| exports.EncodingMapT = EncodingMapT; | ||
| //# sourceMappingURL=encoding-map-impl.js.map |
+10
-8
| import { OtGlyph } from "@ot-builder/ot-glyphs"; | ||
| import { Data } from "@ot-builder/prelude"; | ||
| import { CharacterMapT, EncodingMapT, VsEncodingMapT } from "./general"; | ||
| import { EncodingMapT } from "./encoding-map-impl"; | ||
| import { VsEncodingMapT } from "./vs-encoding-map-impl"; | ||
| export { VsEncodingMapT as CmapGeneralVsEncodingMapT } from "./vs-encoding-map-impl"; | ||
| export declare namespace Cmap { | ||
| const Tag = "cmap"; | ||
| type EncodingMap = EncodingMapT<OtGlyph>; | ||
| type VsEncodingMap = VsEncodingMapT<OtGlyph>; | ||
| type GeneralVsEncodingMapT<T> = VsEncodingMapT<T>; | ||
| class Table extends CharacterMapT<OtGlyph> { | ||
| class EncodingMap extends EncodingMapT<OtGlyph> { | ||
| } | ||
| function createMapping(init?: Iterable<[number, OtGlyph]>): EncodingMap; | ||
| function createVsMapping(init?: Iterable<[number, number, OtGlyph]>): VsEncodingMap; | ||
| function createVsMappingT<T>(init?: Iterable<[number, number, T]>): VsEncodingMapT<T>; | ||
| class VsEncodingMap extends VsEncodingMapT<OtGlyph> { | ||
| } | ||
| class Table { | ||
| unicode: EncodingMap; | ||
| vs: VsEncodingMap; | ||
| } | ||
| } | ||
@@ -15,0 +17,0 @@ export interface OtEncoding { |
+12
-13
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const encoding_map_impl_1 = require("./encoding-map-impl"); | ||
| const general_1 = require("./general"); | ||
| const vs_encoding_map_impl_1 = require("./vs-encoding-map-impl"); | ||
| var vs_encoding_map_impl_2 = require("./vs-encoding-map-impl"); | ||
| exports.CmapGeneralVsEncodingMapT = vs_encoding_map_impl_2.VsEncodingMapT; | ||
| var Cmap; | ||
| (function (Cmap) { | ||
| Cmap.Tag = "cmap"; | ||
| class Table extends general_1.CharacterMapT { | ||
| class EncodingMap extends encoding_map_impl_1.EncodingMapT { | ||
| } | ||
| Cmap.Table = Table; | ||
| function createMapping(init) { | ||
| return new encoding_map_impl_1.EncodingMapImplT(init); | ||
| Cmap.EncodingMap = EncodingMap; | ||
| class VsEncodingMap extends vs_encoding_map_impl_1.VsEncodingMapT { | ||
| } | ||
| Cmap.createMapping = createMapping; | ||
| function createVsMapping(init) { | ||
| return new vs_encoding_map_impl_1.VsEncodingMapImplT(init); | ||
| Cmap.VsEncodingMap = VsEncodingMap; | ||
| class Table { | ||
| constructor() { | ||
| this.unicode = new EncodingMap(); | ||
| this.vs = new VsEncodingMap(); | ||
| } | ||
| } | ||
| Cmap.createVsMapping = createVsMapping; | ||
| function createVsMappingT(init) { | ||
| return new vs_encoding_map_impl_1.VsEncodingMapImplT(init); | ||
| } | ||
| Cmap.createVsMappingT = createVsMappingT; | ||
| Cmap.Table = Table; | ||
| })(Cmap = exports.Cmap || (exports.Cmap = {})); | ||
| //# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
| import { VsEncodingMapT } from "./general"; | ||
| export declare class VsEncodingMapImplT<G> implements VsEncodingMapT<G> { | ||
| export declare class VsEncodingMapT<G> { | ||
| private sizeCache; | ||
@@ -10,4 +9,5 @@ private mapping; | ||
| delete(code: number, vs: number): void; | ||
| clear(): void; | ||
| entries(): IterableIterator<[number, number, G]>; | ||
| } | ||
| //# sourceMappingURL=vs-encoding-map-impl.d.ts.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| class VsEncodingMapImplT { | ||
| class VsEncodingMapT { | ||
| constructor(init) { | ||
@@ -46,2 +46,5 @@ this.sizeCache = undefined; | ||
| } | ||
| clear() { | ||
| this.mapping = new Map(); | ||
| } | ||
| *entries() { | ||
@@ -55,3 +58,3 @@ for (const [vs, blossom] of this.mapping) { | ||
| } | ||
| exports.VsEncodingMapImplT = VsEncodingMapImplT; | ||
| exports.VsEncodingMapT = VsEncodingMapT; | ||
| //# sourceMappingURL=vs-encoding-map-impl.js.map |
+3
-3
@@ -10,3 +10,3 @@ { | ||
| }, | ||
| "version": "0.6.0", | ||
| "version": "0.7.0", | ||
| "main": "./lib/index.js", | ||
@@ -23,4 +23,4 @@ "types": "./lib/index.d.ts", | ||
| "dependencies": { | ||
| "@ot-builder/ot-glyphs": "0.6.0", | ||
| "@ot-builder/prelude": "0.6.0", | ||
| "@ot-builder/ot-glyphs": "0.7.0", | ||
| "@ot-builder/prelude": "0.7.0", | ||
| "tslib": "^1.9.3" | ||
@@ -27,0 +27,0 @@ }, |
| import { Data } from "@ot-builder/prelude"; | ||
| export interface EncodingMapT<G> { | ||
| readonly size: number; | ||
| get(code: number): Data.Maybe<G>; | ||
| set(code: number, glyph: G): void; | ||
| delete(code: number): void; | ||
| entries(): Iterable<[number, G]>; | ||
| } | ||
| export interface VsEncodingMapT<G> { | ||
| readonly size: number; | ||
| get(code: number, vs: number): Data.Maybe<G>; | ||
| set(code: number, vs: number, glyph: G): void; | ||
| delete(code: number, vs: number): void; | ||
| entries(): Iterable<[number, number, G]>; | ||
| } | ||
| export declare class CharacterMapT<G> { | ||
| unicode: EncodingMapT<G>; | ||
| vs: VsEncodingMapT<G>; | ||
| } | ||
| //# sourceMappingURL=general.d.ts.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const encoding_map_impl_1 = require("./encoding-map-impl"); | ||
| const vs_encoding_map_impl_1 = require("./vs-encoding-map-impl"); | ||
| class CharacterMapT { | ||
| constructor() { | ||
| this.unicode = new encoding_map_impl_1.EncodingMapImplT(); | ||
| this.vs = new vs_encoding_map_impl_1.VsEncodingMapImplT(); | ||
| } | ||
| } | ||
| exports.CharacterMapT = CharacterMapT; | ||
| //# sourceMappingURL=general.js.map |
8144
-8.06%9
-18.18%223
-3.04%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated