@deepseek-ai/libreoffice-kit 0.0.2-rc9 → 0.0.3
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 +0 -240
- package/README.md +53 -43
- package/README.zh.md +58 -35
- package/lib/cli.js +725 -132
- package/lib/index.js +757 -133
- package/lib/types/engine.d.ts +5 -5
- package/lib/types/font-loader.d.ts +18 -16
- package/lib/types/fonts.d.ts +38 -21
- package/lib/types/image-operations.d.ts +1 -1
- package/lib/types/index.d.ts +13 -7
- package/lib/types/native-image-renderer.d.ts +19 -0
- package/lib/types/native.d.ts +1 -1
- package/lib/types/options.d.ts +3 -1
- package/lib/types/wasm.d.ts +4 -1
- package/lib/types/worker.d.ts +2 -0
- package/lib/worker.js +420 -942
- package/package.json +13 -55
- package/assets/font-subset.json +0 -70
- package/assets/font-subset.wasm +0 -0
- package/lib/browser/assets.json +0 -10
- package/lib/browser/index.js +0 -626
- package/lib/browser/types/connection.d.ts +0 -42
- package/lib/browser/types/engine-rendering.d.ts +0 -3
- package/lib/browser/types/engine-types.d.ts +0 -17
- package/lib/browser/types/font-channel.d.ts +0 -36
- package/lib/browser/types/index.d.ts +0 -14
- package/lib/browser/types/office-engine.d.ts +0 -56
- package/lib/browser/types/office-types.d.ts +0 -166
- package/lib/browser/types/office.d.ts +0 -19
- package/lib/browser/types/preparation.d.ts +0 -13
- package/lib/browser/types/protocol.d.ts +0 -137
- package/lib/browser/types/rendering.d.ts +0 -4
- package/lib/browser/types/types.d.ts +0 -115
- package/lib/browser/types/worker.d.ts +0 -2
- package/lib/browser/worker.js +0 -3796
- package/lib/browser-assets.js +0 -119
- package/lib/document.js +0 -178
- package/lib/engine-rendering.js +0 -120
- package/lib/font-config.js +0 -46
- package/lib/font-source.js +0 -395
- package/lib/font-worker.js +0 -1481
- package/lib/rendering.js +0 -99
- package/lib/sheet-geometry.js +0 -111
- package/lib/types/browser-assets.d.ts +0 -15
- package/lib/types/default-fonts.d.ts +0 -3
- package/lib/types/font-config.d.ts +0 -24
- package/lib/types/font-preferences-data.d.ts +0 -16
- package/lib/types/font-preferences.d.ts +0 -29
- package/lib/types/font-request.d.ts +0 -12
- package/lib/types/font-source-types.d.ts +0 -95
- package/lib/types/font-source.d.ts +0 -10
- package/lib/types/font-subsets.d.ts +0 -39
- package/lib/types/font-worker.d.ts +0 -2
- package/lib/types/harfbuzz-subset.d.ts +0 -11
- package/lib/types/unicode-scripts.d.ts +0 -18
- package/licenses/font-subset/harfbuzz-COPYING +0 -42
- package/licenses/font-subset/harfbuzzjs-LICENSE +0 -19
- package/licenses/javascript/fflate-LICENSE +0 -21
- package/licenses/javascript/saxes-LICENSE +0 -64
- package/licenses/javascript/xmlchars-LICENSE +0 -18
- package/sources/browser/packages/browser/package.json +0 -22
- package/sources/browser/packages/browser/src/connection.ts +0 -237
- package/sources/browser/packages/browser/src/engine-rendering.ts +0 -2
- package/sources/browser/packages/browser/src/engine-types.ts +0 -14
- package/sources/browser/packages/browser/src/font-channel.ts +0 -169
- package/sources/browser/packages/browser/src/index.ts +0 -40
- package/sources/browser/packages/browser/src/office-engine.ts +0 -397
- package/sources/browser/packages/browser/src/office-types.ts +0 -128
- package/sources/browser/packages/browser/src/office.ts +0 -128
- package/sources/browser/packages/browser/src/preparation.ts +0 -41
- package/sources/browser/packages/browser/src/protocol.ts +0 -55
- package/sources/browser/packages/browser/src/rendering.ts +0 -3
- package/sources/browser/packages/browser/src/types.ts +0 -118
- package/sources/browser/packages/browser/src/worker.ts +0 -260
- package/sources/browser/packages/browser/tsconfig.json +0 -5
- package/sources/browser/packages/browser/tsdown.config.ts +0 -7
- package/sources/browser/scripts/build-browser.mjs +0 -86
- package/sources/font-subset/engine/font-subset/README.md +0 -23
- package/sources/font-subset/engine/font-subset/README.zh.md +0 -23
- package/sources/font-subset/engine/font-subset/source.json +0 -16
- package/sources/font-subset/harfbuzzjs/config-override-subset.h +0 -7
- package/sources/font-subset/harfbuzzjs/harfbuzz-subset.symbols +0 -34
- package/sources/font-subset/scripts/build-font-subset.mjs +0 -64
- package/sources/font-subset/scripts/pack-utils.mjs +0 -69
- package/sources/font-subset/scripts/platform-matrix.mjs +0 -100
- package/sources/font-subset/scripts/verify-artifacts.mjs +0 -260
package/lib/rendering.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
//#region lib/types/rendering.js
|
|
2
|
-
const TWIPS_PER_CSS_PIXEL = 15;
|
|
3
|
-
const MAX_TILE_PIXELS = 16777216;
|
|
4
|
-
/** Split a region on its output-pixel grid, bounding the plan before allocating it. */
|
|
5
|
-
function splitRasterRectangle(rectangle, scale, limits) {
|
|
6
|
-
const { x, y, width, height } = rectangle;
|
|
7
|
-
const { maxPixels, maxDimension, maxTiles } = limits;
|
|
8
|
-
if (![
|
|
9
|
-
x,
|
|
10
|
-
y,
|
|
11
|
-
width,
|
|
12
|
-
height,
|
|
13
|
-
scale
|
|
14
|
-
].every(Number.isFinite) || x < 0 || y < 0 || width <= 0 || height <= 0 || scale <= 0 || !Number.isSafeInteger(maxPixels) || maxPixels < 1 || maxPixels > 16777216 || !Number.isSafeInteger(maxDimension) || maxDimension < 1 || maxDimension > 16777216 || !Number.isSafeInteger(maxTiles) || maxTiles < 0) throw new TypeError("Invalid raster splitting limits or rectangle.");
|
|
15
|
-
const pixelWidth = Math.ceil(width * scale - 1e-9), pixelHeight = Math.ceil(height * scale - 1e-9);
|
|
16
|
-
if (![pixelWidth, pixelHeight].every((value) => Number.isSafeInteger(value) && value > 0)) throw new RangeError("Raster dimensions exceed the coordinate range.");
|
|
17
|
-
let tileWidth = Math.min(pixelWidth, maxDimension), tileHeight = Math.min(pixelHeight, maxDimension);
|
|
18
|
-
if (tileWidth * tileHeight > maxPixels) {
|
|
19
|
-
const side = Math.floor(Math.sqrt(maxPixels));
|
|
20
|
-
if (tileWidth <= side) tileHeight = Math.floor(maxPixels / tileWidth);
|
|
21
|
-
else if (tileHeight <= side) tileWidth = Math.floor(maxPixels / tileHeight);
|
|
22
|
-
else {
|
|
23
|
-
tileWidth = side;
|
|
24
|
-
tileHeight = Math.min(tileHeight, Math.floor(maxPixels / tileWidth));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const columns = Math.ceil(pixelWidth / tileWidth), rows = Math.ceil(pixelHeight / tileHeight);
|
|
28
|
-
if (columns * rows > maxTiles) throw new RangeError("Raster batch exceeds maxPages after worksheet splitting.");
|
|
29
|
-
const result = [];
|
|
30
|
-
for (let row = 0; row < rows; row++) for (let column = 0; column < columns; column++) {
|
|
31
|
-
const left = column * tileWidth / scale, top = row * tileHeight / scale;
|
|
32
|
-
result.push({
|
|
33
|
-
x: x + left,
|
|
34
|
-
y: y + top,
|
|
35
|
-
width: Math.min(tileWidth / scale, width - left),
|
|
36
|
-
height: Math.min(tileHeight / scale, height - top)
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
/** Writer's zero-area parity placeholders have no visible page. Offsets stay in twips. */
|
|
42
|
-
function writerPages(rectangles) {
|
|
43
|
-
const pages = rectangles.split(";").filter((value) => value.trim()).flatMap((rectangle) => {
|
|
44
|
-
const fields = rectangle.split(",").map((value) => Number(value.trim()));
|
|
45
|
-
const [x, y, width, height] = fields;
|
|
46
|
-
if (fields.length !== 4 || x === void 0 || y === void 0 || width === void 0 || height === void 0 || fields.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || width === 0 !== (height === 0) || x + width > 2147483647 || y + height > 2147483647) throw new Error("LibreOffice returned invalid page rectangles.");
|
|
47
|
-
return width === 0 ? [] : [{
|
|
48
|
-
x,
|
|
49
|
-
y,
|
|
50
|
-
width: width / 15,
|
|
51
|
-
height: height / 15,
|
|
52
|
-
part: -1
|
|
53
|
-
}];
|
|
54
|
-
});
|
|
55
|
-
if (pages.length === 0) throw new Error("LibreOffice returned no document pages.");
|
|
56
|
-
return pages;
|
|
57
|
-
}
|
|
58
|
-
/** Validate coordinates before allocation or wasm32 integer conversion. */
|
|
59
|
-
function tileDimensions(request, pages) {
|
|
60
|
-
const page = pages[request.pageIndex];
|
|
61
|
-
if (!Number.isSafeInteger(request.pageIndex) || !page || ![
|
|
62
|
-
request.x,
|
|
63
|
-
request.y,
|
|
64
|
-
request.width,
|
|
65
|
-
request.height,
|
|
66
|
-
request.scale
|
|
67
|
-
].every(Number.isFinite) || request.x < 0 || request.y < 0 || request.width <= 0 || request.height <= 0 || request.scale <= 0 || request.x + request.width > page.width + .001 || request.y + request.height > page.height + .001) throw new Error("Tile rectangle lies outside its page.");
|
|
68
|
-
const width = Math.ceil(request.width * request.scale - 1e-9);
|
|
69
|
-
const height = Math.ceil(request.height * request.scale - 1e-9);
|
|
70
|
-
if (width <= 0 || height <= 0 || !Number.isSafeInteger(width * height) || width * height > 16777216) throw new Error("Tile exceeds the 16 megapixel allocation limit.");
|
|
71
|
-
const twips = [
|
|
72
|
-
page.x + Math.round(request.x * 15),
|
|
73
|
-
page.y + Math.round(request.y * 15),
|
|
74
|
-
Math.round(request.width * 15),
|
|
75
|
-
Math.round(request.height * 15)
|
|
76
|
-
];
|
|
77
|
-
if (twips.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || twips[0] + twips[2] > 2147483647 || twips[1] + twips[3] > 2147483647) throw new Error("Tile coordinates exceed the wasm32 range.");
|
|
78
|
-
return {
|
|
79
|
-
page,
|
|
80
|
-
width,
|
|
81
|
-
height
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
/** Cairo/LO channels are premultiplied; PNG and ImageData require straight RGBA. */
|
|
85
|
-
function rgbaPixels(source, tileMode) {
|
|
86
|
-
if (tileMode !== 0 && tileMode !== 1 || source.length % 4 !== 0) throw new Error("LibreOffice returned an unsupported tile pixel format.");
|
|
87
|
-
const result = new Uint8ClampedArray(source.length);
|
|
88
|
-
for (let index = 0; index < source.length; index += 4) {
|
|
89
|
-
const alpha = source[index + 3];
|
|
90
|
-
const multiplier = alpha === 0 ? 0 : 255 / alpha;
|
|
91
|
-
result[index] = source[index + (tileMode === 1 ? 2 : 0)] * multiplier;
|
|
92
|
-
result[index + 1] = source[index + 1] * multiplier;
|
|
93
|
-
result[index + 2] = source[index + (tileMode === 1 ? 0 : 2)] * multiplier;
|
|
94
|
-
result[index + 3] = alpha;
|
|
95
|
-
}
|
|
96
|
-
return result;
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { MAX_TILE_PIXELS, TWIPS_PER_CSS_PIXEL, rgbaPixels, splitRasterRectangle, tileDimensions, writerPages };
|
package/lib/sheet-geometry.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
//#region lib/types/sheet-geometry.js
|
|
2
|
-
const MAX_COLUMN = 16383;
|
|
3
|
-
const MAX_ROW = 1048575;
|
|
4
|
-
function column(index) {
|
|
5
|
-
let name = "";
|
|
6
|
-
for (let value = index + 1; value > 0; value = Math.floor((value - 1) / 26)) name = String.fromCharCode(65 + (value - 1) % 26) + name;
|
|
7
|
-
return name;
|
|
8
|
-
}
|
|
9
|
-
function rangeName(range) {
|
|
10
|
-
return `${column(range.firstColumn)}${range.firstRow + 1}:${column(range.lastColumn)}${range.lastRow + 1}`;
|
|
11
|
-
}
|
|
12
|
-
function parseCellRange(value) {
|
|
13
|
-
const match = /^\$?([A-Z]{1,3})\$?([1-9]\d{0,6})(?::\$?([A-Z]{1,3})\$?([1-9]\d{0,6}))?$/i.exec(value);
|
|
14
|
-
if (!match) throw new TypeError("range must be an A1 cell or rectangle without a sheet prefix.");
|
|
15
|
-
const col = (name) => [...name.toUpperCase()].reduce((sum, c) => sum * 26 + c.charCodeAt(0) - 64, 0) - 1;
|
|
16
|
-
const firstColumn = col(match[1]);
|
|
17
|
-
const firstRow = Number(match[2]) - 1;
|
|
18
|
-
const lastColumn = col(match[3] ?? match[1]);
|
|
19
|
-
const lastRow = Number(match[4] ?? match[2]) - 1;
|
|
20
|
-
if (lastColumn < firstColumn || lastRow < firstRow || lastColumn > MAX_COLUMN || lastRow > MAX_ROW) throw new TypeError("range exceeds Calc worksheet bounds or has reversed endpoints.");
|
|
21
|
-
return {
|
|
22
|
-
firstColumn,
|
|
23
|
-
firstRow,
|
|
24
|
-
lastColumn,
|
|
25
|
-
lastRow
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function sheetPartInfo(value) {
|
|
29
|
-
const info = JSON.parse(value);
|
|
30
|
-
if (!info || typeof info.name !== "string" || ![0, 1].includes(info.visible) || ![0, 1].includes(info.rtllayout) || !Number.isInteger(info.lastcolumn) || !Number.isInteger(info.lastrow) || info.lastcolumn < 0 || info.lastrow < 0 || info.lastcolumn > MAX_COLUMN || info.lastrow > MAX_ROW) throw new Error("LibreOffice returned invalid worksheet data-area metadata.");
|
|
31
|
-
return info;
|
|
32
|
-
}
|
|
33
|
-
/** Formatting-only cells and standalone drawings do not enlarge LibreOffice's data area. */
|
|
34
|
-
function dataArea(info) {
|
|
35
|
-
return {
|
|
36
|
-
firstColumn: 0,
|
|
37
|
-
firstRow: 0,
|
|
38
|
-
lastColumn: info.lastcolumn,
|
|
39
|
-
lastRow: info.lastrow
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function spans(encoded, flags, maximum) {
|
|
43
|
-
if (typeof encoded !== "string" || encoded.length > 33554432) throw new Error("Invalid worksheet geometry span encoding.");
|
|
44
|
-
const tokens = encoded.trim().split(/\s+/);
|
|
45
|
-
let previous = -1;
|
|
46
|
-
let flag = 0;
|
|
47
|
-
const result = tokens.map((token, i) => {
|
|
48
|
-
const fields = token.split(":");
|
|
49
|
-
let value;
|
|
50
|
-
let end;
|
|
51
|
-
if (flags && i > 0) {
|
|
52
|
-
value = flag = 1 - flag;
|
|
53
|
-
end = Number(fields[0]);
|
|
54
|
-
if (fields.length !== 1) throw new Error("Invalid worksheet flag span.");
|
|
55
|
-
} else {
|
|
56
|
-
value = Number(fields[0]);
|
|
57
|
-
end = Number(fields[1]);
|
|
58
|
-
flag = value;
|
|
59
|
-
if (fields.length !== 2) throw new Error("Invalid worksheet size span.");
|
|
60
|
-
}
|
|
61
|
-
if (!Number.isSafeInteger(value) || value < 0 || (flags ? value > 1 : value > 65535) || !Number.isSafeInteger(end) || end <= previous || end > maximum) throw new Error("Invalid worksheet geometry span.");
|
|
62
|
-
previous = end;
|
|
63
|
-
return {
|
|
64
|
-
end,
|
|
65
|
-
value
|
|
66
|
-
};
|
|
67
|
-
});
|
|
68
|
-
if (previous !== maximum) throw new Error("Worksheet geometry does not cover the complete dimension.");
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
function dimension(data, first, last, maximum, scale) {
|
|
72
|
-
const sizes = spans(data?.sizes, false, maximum);
|
|
73
|
-
const hidden = spans(data?.hidden, true, maximum);
|
|
74
|
-
const filtered = spans(data?.filtered, true, maximum);
|
|
75
|
-
let position = 0, start = 0, index = 0, si = 0, hi = 0, fi = 0;
|
|
76
|
-
while (index <= last) {
|
|
77
|
-
const size = sizes[si], hide = hidden[hi], filter = filtered[fi];
|
|
78
|
-
const end = Math.min(size.end, hide.end, filter.end, last, index < first ? first - 1 : last);
|
|
79
|
-
const pixels = hide.value || filter.value || size.value === 0 ? 0 : Math.max(1, Math.floor(size.value * scale / 15));
|
|
80
|
-
if (index === first) start = position;
|
|
81
|
-
position += (end - index + 1) * pixels;
|
|
82
|
-
index = end + 1;
|
|
83
|
-
if (index > size.end) si++;
|
|
84
|
-
if (index > hide.end) hi++;
|
|
85
|
-
if (index > filter.end) fi++;
|
|
86
|
-
}
|
|
87
|
-
return [start / scale, (position - start) / scale];
|
|
88
|
-
}
|
|
89
|
-
/** Logical columns advance from A; LOK itself mirrors RTL sheet painting. No manual x inversion. */
|
|
90
|
-
function sheetRangeRectangle(geometry, range, scale) {
|
|
91
|
-
if (!Number.isFinite(scale) || scale <= 0 || scale > 16) throw new TypeError("Invalid worksheet raster scale.");
|
|
92
|
-
const [x, width] = dimension(geometry.columns, range.firstColumn, range.lastColumn, MAX_COLUMN, scale);
|
|
93
|
-
const [y, height] = dimension(geometry.rows, range.firstRow, range.lastRow, MAX_ROW, scale);
|
|
94
|
-
if (width <= 0 || height <= 0) throw new Error("The selected worksheet range is entirely hidden or filtered.");
|
|
95
|
-
if ([
|
|
96
|
-
x,
|
|
97
|
-
y,
|
|
98
|
-
width,
|
|
99
|
-
height,
|
|
100
|
-
x + width,
|
|
101
|
-
y + height
|
|
102
|
-
].some((value) => !Number.isFinite(value) || value * 15 > 2147483647)) throw new Error("The selected worksheet range exceeds the supported coordinate range.");
|
|
103
|
-
return {
|
|
104
|
-
x,
|
|
105
|
-
y,
|
|
106
|
-
width,
|
|
107
|
-
height
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
export { dataArea, parseCellRange, rangeName, sheetPartInfo, sheetRangeRectangle };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** A validated local resource. Servers should expose opaque URLs, not these filesystem paths. */
|
|
2
|
-
export interface BrowserAsset {
|
|
3
|
-
readonly path: string;
|
|
4
|
-
readonly bytes: number;
|
|
5
|
-
readonly sha256: string;
|
|
6
|
-
}
|
|
7
|
-
/** Exactly the resources consumed by the browser transport. */
|
|
8
|
-
export interface BrowserAssets {
|
|
9
|
-
readonly schemaVersion: 1;
|
|
10
|
-
readonly programDirectory: string;
|
|
11
|
-
readonly files: Readonly<Record<'worker' | 'loader' | 'wasm' | 'data' | 'metadata', BrowserAsset>>;
|
|
12
|
-
}
|
|
13
|
-
/** Validate package identity, resource paths, sizes, and hashes once for this immutable installation. */
|
|
14
|
-
export declare function resolveBrowserAssets(): Promise<BrowserAssets>;
|
|
15
|
-
//# sourceMappingURL=browser-assets.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Browser-safe family ordering and Fontconfig XML shared by both WASM adapters. */
|
|
2
|
-
/**
|
|
3
|
-
* Case- and separator-insensitive family key used to compare names across sources.
|
|
4
|
-
* @param value - Family, style, or postscript name as recorded by a document or font.
|
|
5
|
-
* @returns The normalized key.
|
|
6
|
-
*/
|
|
7
|
-
export declare function normalize(value: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Order named substitutions and their generic text family without excluding unlisted fonts.
|
|
10
|
-
* @param requested - Original family names, in document order.
|
|
11
|
-
* @param groups - Ordered family groups shared with Fontconfig aliases.
|
|
12
|
-
* @param pitch - VCL pitch; one requests a monospaced fallback.
|
|
13
|
-
* @param symbols - Whether symbol alternatives precede the generic fallback.
|
|
14
|
-
* @returns distinct family names, with original requests first.
|
|
15
|
-
*/
|
|
16
|
-
export declare function fontFamilyPriority(requested: readonly string[], groups: readonly (readonly string[])[], pitch?: number, symbols?: boolean): string[];
|
|
17
|
-
/**
|
|
18
|
-
* Fontconfig XML restricts WASM discovery to imported originals in MEMFS.
|
|
19
|
-
* @param families - Ordered family groups; the first name of each group is its canonical spelling.
|
|
20
|
-
* @param requested - Additional family names the document declared.
|
|
21
|
-
* @returns the fontconfig document written into the module's memory filesystem.
|
|
22
|
-
*/
|
|
23
|
-
export declare function memoryFontConfig(families: readonly (readonly string[])[], requested?: Iterable<string>): string;
|
|
24
|
-
//# sourceMappingURL=font-config.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Generated by scripts/generate-font-preferences.mjs; do not edit.
|
|
2
|
-
+ * Chromium: https://raw.githubusercontent.com/chromium/chromium/ffaf825e8c2e27fccc089b425f9f114d275804ae/third_party/blink/renderer/platform/fonts/win/font_fallback_win.cc
|
|
3
|
-
+ * Fontconfig: https://raw.githubusercontent.com/fontconfig/fontconfig/84ae86bc21c94d4aedbc02e32c9dc18b8750193c/conf.d/65-nonlatin.conf
|
|
4
|
-
+ * Unicode: @unicode/unicode-17.0.0 2.0.7. Licenses: packages/entry/NOTICE.
|
|
5
|
-
+ */
|
|
6
|
-
/** Pinned windows fonts. */
|
|
7
|
-
export declare const WINDOWS_FONTS: Readonly<Record<string, readonly string[]>>;
|
|
8
|
-
/** Pinned fontconfig fonts. */
|
|
9
|
-
export declare const FONTCONFIG_FONTS: Readonly<Record<string, readonly string[]>>;
|
|
10
|
-
/** Pinned script names. */
|
|
11
|
-
export declare const SCRIPT_NAMES: readonly string[];
|
|
12
|
-
/** Pinned script ranges. */
|
|
13
|
-
export declare const SCRIPT_RANGES: readonly (readonly [number, number, number])[];
|
|
14
|
-
/** Pinned script extensions. */
|
|
15
|
-
export declare const SCRIPT_EXTENSIONS: readonly (readonly [number, number, number])[];
|
|
16
|
-
//# sourceMappingURL=font-preferences-data.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { FontMatchRequest } from './font-request.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Partition missing scalars by Unicode 17; shared marks follow a compatible script when present.
|
|
4
|
-
* @param points - Missing scalars, in engine order.
|
|
5
|
-
* @returns stable script groups without splitting Script_Extensions marks from their base.
|
|
6
|
-
*/
|
|
7
|
-
export declare function fontScriptGroups(points: readonly number[]): Map<string, number[]>;
|
|
8
|
-
/**
|
|
9
|
-
* Recognize CJK regional font names, including platform families without a region suffix.
|
|
10
|
-
* @param family - Family or alias.
|
|
11
|
-
* @returns Noto region key, when the family identifies a regional design.
|
|
12
|
-
*/
|
|
13
|
-
export declare function fontRegion(family: string): string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Separate explicit aliases from generic fallback so script preferences cannot override user intent.
|
|
16
|
-
* @param request - VCL request.
|
|
17
|
-
* @param groups - Configured named and generic aliases.
|
|
18
|
-
* @param script - Current Unicode script.
|
|
19
|
-
* @param scripts - Other scripts in this same request.
|
|
20
|
-
* @param platform - Host OS owning the font catalog.
|
|
21
|
-
* @returns explicit names, ordered body candidates, regional preference and decorative policy.
|
|
22
|
-
*/
|
|
23
|
-
export declare function fontPreferences(request: FontMatchRequest, groups: readonly (readonly string[])[], script: string, scripts: Iterable<string>, platform?: string): {
|
|
24
|
-
explicit: string[];
|
|
25
|
-
candidates: string[];
|
|
26
|
-
region: string | undefined;
|
|
27
|
-
penalizeDecorative: boolean;
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=font-preferences.d.ts.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** VCL attributes LibreOffice requests one family for. */
|
|
2
|
-
export interface FontMatchRequest {
|
|
3
|
-
readonly family: string;
|
|
4
|
-
readonly style: string;
|
|
5
|
-
readonly weight: number;
|
|
6
|
-
readonly italic: number;
|
|
7
|
-
readonly width: number;
|
|
8
|
-
readonly pitch: number;
|
|
9
|
-
readonly language: string;
|
|
10
|
-
readonly codePoints: readonly number[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=font-request.d.ts.map
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/** Installed font files exposed without disclosing Host filesystem paths. */
|
|
2
|
-
import type { FontMatchRequest } from './font-request.ts';
|
|
3
|
-
export type { FontMatchRequest } from './font-request.ts';
|
|
4
|
-
/** Full mode preserves font names, encoding and all glyphs for PDFium. */
|
|
5
|
-
export interface FontResolveRequest extends FontMatchRequest {
|
|
6
|
-
readonly mode?: 'subset' | 'full';
|
|
7
|
-
}
|
|
8
|
-
/** Content identity of one deterministic physical-face Unicode-script subset. */
|
|
9
|
-
export type FontAssetId = string & {
|
|
10
|
-
readonly __fontAssetId: unique symbol;
|
|
11
|
-
};
|
|
12
|
-
/** A matched file available through the same font source lifetime. */
|
|
13
|
-
export interface FontAsset {
|
|
14
|
-
readonly id: FontAssetId;
|
|
15
|
-
readonly bytes: number;
|
|
16
|
-
readonly family: string;
|
|
17
|
-
/** Browser-only VCL identity distinguishing subsets with the same original family/style. */
|
|
18
|
-
readonly alias: string;
|
|
19
|
-
/** Full assets preserve original names; subset remains the default. */
|
|
20
|
-
readonly mode?: 'full';
|
|
21
|
-
readonly format?: 'ttf' | 'otf' | 'ttc';
|
|
22
|
-
}
|
|
23
|
-
/** Matched font subsets and an unavailable requested family, when applicable. */
|
|
24
|
-
export interface FontResolution {
|
|
25
|
-
readonly fonts: readonly FontAsset[];
|
|
26
|
-
readonly missingFamily?: string;
|
|
27
|
-
/** Scalars no installed font covers; distinct from a successfully substituted family. */
|
|
28
|
-
readonly unresolvedCodePoints?: readonly number[];
|
|
29
|
-
}
|
|
30
|
-
/** Font discovery limits; omitted values use the Node converter's font defaults. */
|
|
31
|
-
export interface FontSourceOptions {
|
|
32
|
-
readonly fontDirectories?: readonly string[];
|
|
33
|
-
readonly fontFallbacks?: readonly (readonly string[])[];
|
|
34
|
-
readonly maxFontFiles?: number;
|
|
35
|
-
readonly maxFontFileBytes?: number;
|
|
36
|
-
/** Retained subset bytes in the font Worker; defaults to 128 MiB. */
|
|
37
|
-
readonly maxCachedSubsetBytes?: number;
|
|
38
|
-
}
|
|
39
|
-
/** One lazily indexed Host font catalog with all CPU and file work in its Worker. */
|
|
40
|
-
export interface FontSource {
|
|
41
|
-
/** Resolved ordered font family preferences shared with browser Fontconfig. */
|
|
42
|
-
readonly fontFallbacks: readonly (readonly string[])[];
|
|
43
|
-
/**
|
|
44
|
-
* Start the lifetime font snapshot without matching a document request.
|
|
45
|
-
* @param signal - Checked before dispatch and after the shared preparation settles.
|
|
46
|
-
*/
|
|
47
|
-
prepare(signal?: AbortSignal): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Select deterministic Unicode-script subsets using LibreOffice's requested attributes.
|
|
50
|
-
* @param request - Family, style, language, and required Unicode scalars.
|
|
51
|
-
* @param signal - Checked before dispatch and before publishing the result.
|
|
52
|
-
* @returns subset content identities with no Host paths.
|
|
53
|
-
*/
|
|
54
|
-
resolve(request: FontResolveRequest, signal?: AbortSignal): Promise<FontResolution>;
|
|
55
|
-
/**
|
|
56
|
-
* Read or regenerate a selected subset while its original font remains unchanged.
|
|
57
|
-
* @param id - Identity returned by resolve in this source lifetime.
|
|
58
|
-
* @param signal - Checked before dispatch and before publishing the result.
|
|
59
|
-
* @returns caller-owned subset sfnt bytes; changed or unknown files reject.
|
|
60
|
-
*/
|
|
61
|
-
read(id: FontAssetId, signal?: AbortSignal): Promise<Uint8Array>;
|
|
62
|
-
/** Stop pending work, terminate the Worker, and await its exit. */
|
|
63
|
-
dispose(): Promise<void>;
|
|
64
|
-
}
|
|
65
|
-
/** Parent-to-worker operations; neither message contains a caller-selected file path. */
|
|
66
|
-
export type FontCommand = {
|
|
67
|
-
readonly id: number;
|
|
68
|
-
readonly kind: 'prepare';
|
|
69
|
-
} | {
|
|
70
|
-
readonly id: number;
|
|
71
|
-
readonly kind: 'resolve';
|
|
72
|
-
readonly request: FontResolveRequest;
|
|
73
|
-
} | {
|
|
74
|
-
readonly id: number;
|
|
75
|
-
readonly kind: 'read';
|
|
76
|
-
readonly asset: FontAssetId;
|
|
77
|
-
};
|
|
78
|
-
/** Worker replies retain their operation discriminator across structured cloning. */
|
|
79
|
-
export type FontReply = {
|
|
80
|
-
readonly id: number;
|
|
81
|
-
readonly kind: 'prepared';
|
|
82
|
-
} | {
|
|
83
|
-
readonly id: number;
|
|
84
|
-
readonly kind: 'resolved';
|
|
85
|
-
readonly value: FontResolution;
|
|
86
|
-
} | {
|
|
87
|
-
readonly id: number;
|
|
88
|
-
readonly kind: 'bytes';
|
|
89
|
-
readonly value: Uint8Array;
|
|
90
|
-
} | {
|
|
91
|
-
readonly id: number;
|
|
92
|
-
readonly kind: 'failed';
|
|
93
|
-
readonly message: string;
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=font-source-types.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FontSource, FontSourceOptions } from './font-source-types.ts';
|
|
2
|
-
export type { FontAsset, FontAssetId, FontMatchRequest, FontResolveRequest, FontResolution, FontSource, FontSourceOptions } from './font-source-types.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Create a font catalog without loading a LibreOffice engine or reading fonts yet.
|
|
5
|
-
* @param options - Font directories, fallback groups, and discovery limits.
|
|
6
|
-
* @returns a source whose first operation starts its private Worker. Cancellation
|
|
7
|
-
* discards a result after dispatched work settles; dispose terminates all work.
|
|
8
|
-
*/
|
|
9
|
-
export declare function createFontSource(options?: FontSourceOptions): FontSource;
|
|
10
|
-
//# sourceMappingURL=font-source.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SystemFontCatalog } from './fonts.ts';
|
|
2
|
-
import type { FontIndexOptions } from './fonts.ts';
|
|
3
|
-
import type { FontAssetId, FontResolution, FontResolveRequest } from './font-source-types.ts';
|
|
4
|
-
/** Source limits and resolved family preferences passed to the private font Worker. */
|
|
5
|
-
export interface FontSubsetOptions extends FontIndexOptions {
|
|
6
|
-
readonly fallbackFamilies: readonly (readonly string[])[];
|
|
7
|
-
readonly maxCachedSubsetBytes: number;
|
|
8
|
-
readonly includeOfficeFonts?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/** One Worker-owned font index and LRU whose byte budget excludes transient subsetting input/output. */
|
|
11
|
-
export declare class FontSubsetSource {
|
|
12
|
-
private readonly options;
|
|
13
|
-
private snapshot;
|
|
14
|
-
private catalog;
|
|
15
|
-
private readonly selected;
|
|
16
|
-
private readonly partitions;
|
|
17
|
-
private readonly cached;
|
|
18
|
-
private cachedBytes;
|
|
19
|
-
/** @param options - Resolved discovery, fallback, and retained subset limits. */
|
|
20
|
-
constructor(options: FontSubsetOptions);
|
|
21
|
-
/** Build the immutable lifetime catalog, adding only Office families absent from normal system roots. */
|
|
22
|
-
prepare(): SystemFontCatalog;
|
|
23
|
-
private retain;
|
|
24
|
-
private generate;
|
|
25
|
-
private describe;
|
|
26
|
-
/**
|
|
27
|
-
* Select whole Unicode-script subsets from the source lifetime's installed-font snapshot.
|
|
28
|
-
* @param request - Requested family/style attributes and Unicode scalars.
|
|
29
|
-
* @returns reusable subset identities; unavailable characters remain unresolved.
|
|
30
|
-
*/
|
|
31
|
-
resolve(request: FontResolveRequest): Promise<FontResolution>;
|
|
32
|
-
/**
|
|
33
|
-
* Return caller-owned bytes, regenerating an evicted subset from its unchanged original.
|
|
34
|
-
* @param id - Subset identity previously returned by this source.
|
|
35
|
-
* @returns sfnt bytes copied so a Worker transfer cannot detach the retained cache entry.
|
|
36
|
-
*/
|
|
37
|
-
read(id: FontAssetId): Promise<Uint8Array<ArrayBuffer>>;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=font-subsets.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Exact upstream subset source and heap-growth recipe, included in generated subset identities. */
|
|
2
|
-
export declare const FONT_SUBSET_VERSION = "harfbuzzjs-1.6.1-hb-36cb489-growth-v1";
|
|
3
|
-
/**
|
|
4
|
-
* Extract and subset one physical face without renaming it or instancing variable axes.
|
|
5
|
-
* @param original - TTF, OTF, or collection bytes.
|
|
6
|
-
* @param faceIndex - Collection face index; zero for a standalone face.
|
|
7
|
-
* @param points - Unicode scalars, including any required variation selectors.
|
|
8
|
-
* @returns caller-owned sfnt bytes; all layout scripts/features and glyph closure remain enabled.
|
|
9
|
-
*/
|
|
10
|
-
export declare function subsetFont(original: Uint8Array, faceIndex: number, points: readonly number[]): Promise<Uint8Array>;
|
|
11
|
-
//# sourceMappingURL=harfbuzz-subset.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Unicode data and partition generation participate in every subset request identity. */
|
|
2
|
-
export declare const FONT_PARTITION_VERSION = "unicode-17.0.0-data-2.0.7-script-v1";
|
|
3
|
-
/** A shared metadata/punctuation subset used before layout requests any script. */
|
|
4
|
-
export declare const FONT_BASE_SCRIPT = "Common";
|
|
5
|
-
/**
|
|
6
|
-
* Select stable whole-script partitions for a request; shared characters use the base partition.
|
|
7
|
-
* @param points - Unicode scalars requested by layout.
|
|
8
|
-
* @returns deterministic Unicode script names, including Unknown for private-use or unassigned characters.
|
|
9
|
-
*/
|
|
10
|
-
export declare function requestedFontScripts(points: readonly number[]): Promise<string[]>;
|
|
11
|
-
/**
|
|
12
|
-
* Retain source characters in a script's Script_Extensions, plus Common/Inherited and variation selectors.
|
|
13
|
-
* @param points - Character repertoire of one physical font face.
|
|
14
|
-
* @param script - Name returned by requestedFontScripts.
|
|
15
|
-
* @returns Unicode set for HarfBuzz's layout and composite-glyph closure.
|
|
16
|
-
*/
|
|
17
|
-
export declare function fontScriptCodePoints(points: readonly number[], script: string): Promise<number[]>;
|
|
18
|
-
//# sourceMappingURL=unicode-scripts.d.ts.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
|
|
2
|
-
For parts of HarfBuzz that are licensed under different licenses see individual
|
|
3
|
-
files names COPYING in subdirectories where applicable.
|
|
4
|
-
|
|
5
|
-
Copyright © 2010-2022 Google, Inc.
|
|
6
|
-
Copyright © 2015-2020 Ebrahim Byagowi
|
|
7
|
-
Copyright © 2019,2020 Facebook, Inc.
|
|
8
|
-
Copyright © 2012,2015 Mozilla Foundation
|
|
9
|
-
Copyright © 2011 Codethink Limited
|
|
10
|
-
Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies)
|
|
11
|
-
Copyright © 2009 Keith Stribley
|
|
12
|
-
Copyright © 2011 Martin Hosken and SIL International
|
|
13
|
-
Copyright © 2007 Chris Wilson
|
|
14
|
-
Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod
|
|
15
|
-
Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc.
|
|
16
|
-
Copyright © 1998-2005 David Turner and Werner Lemberg
|
|
17
|
-
Copyright © 2016 Igalia S.L.
|
|
18
|
-
Copyright © 2022 Matthias Clasen
|
|
19
|
-
Copyright © 2018,2021 Khaled Hosny
|
|
20
|
-
Copyright © 2018,2019,2020 Adobe, Inc
|
|
21
|
-
Copyright © 2013-2015 Alexei Podtelezhnikov
|
|
22
|
-
|
|
23
|
-
For full copyright notices consult the individual files in the package.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Permission is hereby granted, without written agreement and without
|
|
27
|
-
license or royalty fees, to use, copy, modify, and distribute this
|
|
28
|
-
software and its documentation for any purpose, provided that the
|
|
29
|
-
above copyright notice and the following two paragraphs appear in
|
|
30
|
-
all copies of this software.
|
|
31
|
-
|
|
32
|
-
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
33
|
-
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
34
|
-
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
35
|
-
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
36
|
-
DAMAGE.
|
|
37
|
-
|
|
38
|
-
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
39
|
-
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
40
|
-
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
41
|
-
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
42
|
-
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2019-2026 The harfbuzzjs project authors
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
in the Software without restriction, including without limitation the rights
|
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Arjun Barrett
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
|
|
17
|
-
====
|
|
18
|
-
|
|
19
|
-
The following license is the one that governed sax, from which saxes
|
|
20
|
-
was forked. Isaac Schlueter is not *directly* involved with saxes so
|
|
21
|
-
don't go bugging him for saxes issues.
|
|
22
|
-
|
|
23
|
-
The ISC License
|
|
24
|
-
|
|
25
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
26
|
-
|
|
27
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
28
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
29
|
-
copyright notice and this permission notice appear in all copies.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
32
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
33
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
34
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
35
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
36
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
37
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
|
|
39
|
-
====
|
|
40
|
-
|
|
41
|
-
`String.fromCodePoint` by Mathias Bynens is no longer used, but it can
|
|
42
|
-
still be found in old commits. It was once used according to terms of
|
|
43
|
-
MIT License, as follows:
|
|
44
|
-
|
|
45
|
-
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
46
|
-
|
|
47
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
-
a copy of this software and associated documentation files (the
|
|
49
|
-
"Software"), to deal in the Software without restriction, including
|
|
50
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
51
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
52
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
53
|
-
the following conditions:
|
|
54
|
-
|
|
55
|
-
The above copyright notice and this permission notice shall be
|
|
56
|
-
included in all copies or substantial portions of the Software.
|
|
57
|
-
|
|
58
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
59
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
60
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
61
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
62
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
63
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
64
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|