@ym-print/renderer-pdf 0.0.0-stage → 0.1.0-rc.2
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/LICENSE +8 -0
- package/README.md +37 -2
- package/THIRD_PARTY_NOTICES.md +14 -0
- package/dependency-licenses.json +77 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +40 -0
- package/dist/vector.d.ts +2 -0
- package/dist/vector.js +115 -0
- package/package.json +53 -4
- package/third-party-licenses/@pdf-lib__standard-fonts@1.0.0/LICENSE.md +21 -0
- package/third-party-licenses/@pdf-lib__upng@1.0.1/LICENSE +21 -0
- package/third-party-licenses/pako@1.0.11/LICENSE +21 -0
- package/third-party-licenses/pdf-lib@1.17.1/LICENSE.md +21 -0
- package/third-party-licenses/tslib@1.14.1/LICENSE.txt +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
UNLICENSED
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 YmPrintUnit contributors. All rights reserved.
|
|
4
|
+
|
|
5
|
+
No open-source license is granted for the original YmPrintUnit code.
|
|
6
|
+
|
|
7
|
+
Third-party components retain their own licenses. See THIRD_PARTY_NOTICES.md
|
|
8
|
+
and dependency-licenses.json; this notice does not change those licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ym-print/renderer-pdf
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
将 YmPrintUnit 的排版页面转换为图片型 PDF,保持模板的物理纸张尺寸。支持整页 PNG 和按像素位置拼接的图片分条。
|
|
4
|
+
|
|
5
|
+
## npm 安装
|
|
6
|
+
|
|
7
|
+
首次 npm 发布完成后安装预发布版:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @ym-print/renderer-pdf@next
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
正式版发布后将 `@next` 改为 `@latest`。原始代码保持 `UNLICENSED`,详见随包附带的 `LICENSE`;第三方许可见 `THIRD_PARTY_NOTICES.md`。
|
|
14
|
+
|
|
15
|
+
## 使用方法
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import {exportRasterPdf} from '@ym-print/renderer-pdf';
|
|
19
|
+
import {exportPagePng} from '@ym-print/renderer-dom';
|
|
20
|
+
import type {LayoutDocument} from '@ym-print/core';
|
|
21
|
+
|
|
22
|
+
export async function createPdf(layout: LayoutDocument) {
|
|
23
|
+
return exportRasterPdf(layout, async page => {
|
|
24
|
+
const blob = await exportPagePng(page, undefined, 144);
|
|
25
|
+
return new Uint8Array(await blob.arrayBuffer());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
返回值为 `Uint8Array`,可保存为 `.pdf` 文件,或创建 `application/pdf` Blob 用于下载和预览。
|
|
31
|
+
|
|
32
|
+
## 图片分条
|
|
33
|
+
|
|
34
|
+
`exportRasterPdf()` 的第二个参数也可返回 `AsyncIterable<RasterPdfRegion>`。每个分条提供 PNG 字节、像素位置、分条尺寸和整页像素尺寸,输出模块会按比例放置到对应 PDF 页面。
|
|
35
|
+
|
|
36
|
+
## 从模板直接导出
|
|
37
|
+
|
|
38
|
+
使用设计模板和业务数据时,可调用更高层的 `@ym-print/designer-vue/printing` 中的 `exportTemplatePdf()`,由 SDK 完成排版、图片生成和 PDF 输出。
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
@ym-print/renderer-pdf 0.1.0-rc.2 — original code: UNLICENSED.
|
|
4
|
+
|
|
5
|
+
Bundled code and external packages keep their original licenses. Optional peers are loaded through their documented opt-in entry.
|
|
6
|
+
|
|
7
|
+
| Package | License | Delivery | Notices |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| @pdf-lib/fontkit@1.1.1 | MIT | optional-peer | License declared upstream; not bundled here |
|
|
10
|
+
| @pdf-lib/standard-fonts@1.0.0 | MIT | external | [LICENSE.md](third-party-licenses/@pdf-lib__standard-fonts@1.0.0/LICENSE.md) |
|
|
11
|
+
| @pdf-lib/upng@1.0.1 | MIT | external | [LICENSE](third-party-licenses/@pdf-lib__upng@1.0.1/LICENSE) |
|
|
12
|
+
| pako@1.0.11 | (MIT AND Zlib) | external | [LICENSE](third-party-licenses/pako@1.0.11/LICENSE) |
|
|
13
|
+
| pdf-lib@1.17.1 | MIT | external | [LICENSE.md](third-party-licenses/pdf-lib@1.17.1/LICENSE.md) |
|
|
14
|
+
| tslib@1.14.1 | 0BSD | external | [LICENSE.txt](third-party-licenses/tslib@1.14.1/LICENSE.txt) |
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package": "@ym-print/renderer-pdf",
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
|
+
"licenseScope": "original YmPrintUnit code only",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
{
|
|
8
|
+
"name": "@pdf-lib/fontkit",
|
|
9
|
+
"version": "1.1.1",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"kind": "optional-peer",
|
|
12
|
+
"notices": [],
|
|
13
|
+
"noticeStatus": "upstream declares license but ships no license-named file; external code is not copied"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "@pdf-lib/standard-fonts",
|
|
17
|
+
"version": "1.0.0",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"kind": "external",
|
|
20
|
+
"notices": [
|
|
21
|
+
{
|
|
22
|
+
"path": "third-party-licenses/@pdf-lib__standard-fonts@1.0.0/LICENSE.md",
|
|
23
|
+
"sha256": "45cc2bb9957ed43f5c7f5eb1912f9f670730394d614079510477cae626194649"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "@pdf-lib/upng",
|
|
29
|
+
"version": "1.0.1",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"kind": "external",
|
|
32
|
+
"notices": [
|
|
33
|
+
{
|
|
34
|
+
"path": "third-party-licenses/@pdf-lib__upng@1.0.1/LICENSE",
|
|
35
|
+
"sha256": "c1fb8861eca211bf5aea574358aba7039396c0c1824c2a1477cc126d398efd89"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "pako",
|
|
41
|
+
"version": "1.0.11",
|
|
42
|
+
"license": "(MIT AND Zlib)",
|
|
43
|
+
"kind": "external",
|
|
44
|
+
"notices": [
|
|
45
|
+
{
|
|
46
|
+
"path": "third-party-licenses/pako@1.0.11/LICENSE",
|
|
47
|
+
"sha256": "a04665b3b2de56c66730c1f720f528175739e4104f79073614aa611da1e85539"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "pdf-lib",
|
|
53
|
+
"version": "1.17.1",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"kind": "external",
|
|
56
|
+
"notices": [
|
|
57
|
+
{
|
|
58
|
+
"path": "third-party-licenses/pdf-lib@1.17.1/LICENSE.md",
|
|
59
|
+
"sha256": "f2c9fc00fdb66eb99ac156ba52d734af66d8d309f65753ae809ad34ee2883bcb"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "tslib",
|
|
65
|
+
"version": "1.14.1",
|
|
66
|
+
"license": "0BSD",
|
|
67
|
+
"kind": "external",
|
|
68
|
+
"notices": [
|
|
69
|
+
{
|
|
70
|
+
"path": "third-party-licenses/tslib@1.14.1/LICENSE.txt",
|
|
71
|
+
"sha256": "210b19e543130388c68654b7497e967119ce17145f66ab7d85688fbd70f08751"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"resourceLicenses": []
|
|
77
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LayoutDocument, LayoutPage } from '@ym-print/core';
|
|
2
|
+
export interface RasterPdfRegion {
|
|
3
|
+
bytes: Uint8Array;
|
|
4
|
+
xPx: number;
|
|
5
|
+
yPx: number;
|
|
6
|
+
widthPx: number;
|
|
7
|
+
heightPx: number;
|
|
8
|
+
pageWidthPx: number;
|
|
9
|
+
pageHeightPx: number;
|
|
10
|
+
}
|
|
11
|
+
/** Web output: one lossless page image per PDF page, with no font-file dependency. */
|
|
12
|
+
export declare function exportRasterPdf(layout: LayoutDocument, rasterize: (page: LayoutPage) => Promise<Uint8Array> | AsyncIterable<RasterPdfRegion>): Promise<Uint8Array>;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PDFDocument as e } from "pdf-lib";
|
|
2
|
+
import { PrintError as t, printLayout as n, umToPt as r } from "@ym-print/core";
|
|
3
|
+
// src/index.ts
|
|
4
|
+
async function i(i, a) {
|
|
5
|
+
let o = n(i), s = await e.create();
|
|
6
|
+
s.setTitle(i.name), s.setProducer("YmPrintUnit Web · raster pages");
|
|
7
|
+
for (let e of o.pages) {
|
|
8
|
+
let n = r(e.widthUm), i = r(e.heightUm), o = s.addPage([n, i]), c = a(e);
|
|
9
|
+
if (Symbol.asyncIterator in c) for await (let e of c) {
|
|
10
|
+
let { xPx: r, yPx: a, widthPx: c, heightPx: l, pageWidthPx: u, pageHeightPx: d } = e;
|
|
11
|
+
if (![
|
|
12
|
+
r,
|
|
13
|
+
a,
|
|
14
|
+
c,
|
|
15
|
+
l,
|
|
16
|
+
u,
|
|
17
|
+
d
|
|
18
|
+
].every(Number.isSafeInteger) || r < 0 || a < 0 || c < 1 || l < 1 || u < 1 || d < 1 || r + c > u || a + l > d) throw new t("PDF_REGION_INVALID", "PDF 图片分条位置无效");
|
|
19
|
+
let f = await s.embedPng(e.bytes);
|
|
20
|
+
if (f.width !== c || f.height !== l) throw new t("PDF_REGION_INVALID", "PDF 分条像素尺寸不匹配");
|
|
21
|
+
o.drawImage(f, {
|
|
22
|
+
x: r / u * n,
|
|
23
|
+
y: (d - a - l) / d * i,
|
|
24
|
+
width: c / u * n,
|
|
25
|
+
height: l / d * i
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
let e = await s.embedPng(await c);
|
|
30
|
+
o.drawImage(e, {
|
|
31
|
+
x: 0,
|
|
32
|
+
y: 0,
|
|
33
|
+
width: n,
|
|
34
|
+
height: i
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return s.save();
|
|
39
|
+
}
|
|
40
|
+
export { i as exportRasterPdf };
|
package/dist/vector.d.ts
ADDED
package/dist/vector.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { LineCapStyle as e, PDFDocument as t, PDFName as n, PDFRawStream as r, TextRenderingMode as i, clip as a, concatTransformationMatrix as o, endPath as s, popGraphicsState as c, pushGraphicsState as l, rectangle as u, rgb as d, setLineWidth as f, setStrokingRgbColor as p, setTextRenderingMode as m } from "pdf-lib";
|
|
2
|
+
import { PrintError as h, decodeDataUrl as g, printLayout as _, umToPt as v } from "@ym-print/core";
|
|
3
|
+
import y from "@pdf-lib/fontkit";
|
|
4
|
+
// src/vector.ts
|
|
5
|
+
function b(e) {
|
|
6
|
+
if (!/^#[0-9A-Fa-f]{6}$/.test(e)) throw new h("COLOR_INVALID", `颜色无效:${e}`);
|
|
7
|
+
return d(parseInt(e.slice(1, 3), 16) / 255, parseInt(e.slice(3, 5), 16) / 255, parseInt(e.slice(5, 7), 16) / 255);
|
|
8
|
+
}
|
|
9
|
+
async function x(d, x) {
|
|
10
|
+
d = _(d);
|
|
11
|
+
let S = await t.create(), C = String.fromCharCode(...x.subarray(0, 4)) === "OTTO";
|
|
12
|
+
S.registerFontkit({ create: (e) => {
|
|
13
|
+
let t = y.create(e);
|
|
14
|
+
return C && Object.defineProperty(t, "cff", { value: !0 }), t;
|
|
15
|
+
} });
|
|
16
|
+
let w = await S.embedFont(x, { subset: !1 });
|
|
17
|
+
S.setTitle(d.name), S.setProducer(`YmPrintUnit ${d.implementation === "w2-beta" ? "W2" : "W0"} · vector IR renderer`), S.setSubject(`Experimental layout; font SHA-256 ${d.font.sha256}`);
|
|
18
|
+
let T = /* @__PURE__ */ new Map();
|
|
19
|
+
for (let t of d.pages) {
|
|
20
|
+
let n = v(t.heightUm), r = S.addPage([v(t.widthUm), n]);
|
|
21
|
+
for (let d of t.commands) if (d.type !== "rect" && d.type !== "ellipse" || d.fill || d.stroke && d.strokeWidthUm !== 0) {
|
|
22
|
+
if (d.transform) {
|
|
23
|
+
let e = d.transform.rotationMdeg / 1e3 * Math.PI / 180, t = Math.cos(e), i = Math.sin(e), a = v(d.transform.cxUm), s = n - v(d.transform.cyUm);
|
|
24
|
+
r.pushOperators(l(), o(t, -i, i, t, a - t * a - i * s, s + i * a - t * s));
|
|
25
|
+
}
|
|
26
|
+
if (d.type === "path") throw new h("PDF_UNSUPPORTED", "高级路径请使用 Web 图片 PDF 导出");
|
|
27
|
+
if (d.type === "text") {
|
|
28
|
+
if (d.textRotationMdeg) throw new h("PDF_UNSUPPORTED", "印章弧形文字请使用 Web 图片 PDF 导出");
|
|
29
|
+
if (d.fontWeight === 700) {
|
|
30
|
+
let e = b(d.color);
|
|
31
|
+
r.pushOperators(l(), f(d.sizeMpt / 1e3 * .025), p(e.red, e.green, e.blue), m(i.FillAndOutline));
|
|
32
|
+
}
|
|
33
|
+
for (let e of d.glyphs) r.drawText(e.text, {
|
|
34
|
+
x: v(e.xUm),
|
|
35
|
+
y: n - v(d.baselineUm),
|
|
36
|
+
font: w,
|
|
37
|
+
size: d.sizeMpt / 1e3,
|
|
38
|
+
color: b(d.color),
|
|
39
|
+
opacity: d.opacity
|
|
40
|
+
});
|
|
41
|
+
d.fontWeight === 700 && r.pushOperators(c());
|
|
42
|
+
} else if (d.type === "line") r.drawLine({
|
|
43
|
+
start: {
|
|
44
|
+
x: v(d.x1Um),
|
|
45
|
+
y: n - v(d.y1Um)
|
|
46
|
+
},
|
|
47
|
+
end: {
|
|
48
|
+
x: v(d.x2Um),
|
|
49
|
+
y: n - v(d.y2Um)
|
|
50
|
+
},
|
|
51
|
+
thickness: v(d.widthUm),
|
|
52
|
+
color: b(d.color),
|
|
53
|
+
dashArray: d.dash?.map(v),
|
|
54
|
+
lineCap: d.lineCap === "round" ? e.Round : e.Butt,
|
|
55
|
+
opacity: d.opacity
|
|
56
|
+
});
|
|
57
|
+
else if (d.type === "image") {
|
|
58
|
+
let e = T.get(d.dataUrl);
|
|
59
|
+
if (!e) {
|
|
60
|
+
let t = g(d.dataUrl, "image");
|
|
61
|
+
e = d.dataUrl.startsWith("data:image/png;") ? await S.embedPng(t) : await S.embedJpg(t), T.set(d.dataUrl, e);
|
|
62
|
+
}
|
|
63
|
+
if (d.clip) {
|
|
64
|
+
let e = d.clip;
|
|
65
|
+
r.pushOperators(l(), u(v(e.xUm), n - v(e.yUm + e.heightUm), v(e.widthUm), v(e.heightUm)), a(), s());
|
|
66
|
+
}
|
|
67
|
+
r.drawImage(e, {
|
|
68
|
+
x: v(d.xUm),
|
|
69
|
+
y: n - v(d.yUm + d.heightUm),
|
|
70
|
+
width: v(d.widthUm),
|
|
71
|
+
height: v(d.heightUm),
|
|
72
|
+
opacity: d.opacity
|
|
73
|
+
}), d.clip && r.pushOperators(c());
|
|
74
|
+
} else {
|
|
75
|
+
let e = {
|
|
76
|
+
color: d.fill ? b(d.fill) : void 0,
|
|
77
|
+
borderColor: d.stroke ? b(d.stroke) : void 0,
|
|
78
|
+
borderWidth: v(d.strokeWidthUm),
|
|
79
|
+
opacity: d.opacity,
|
|
80
|
+
borderOpacity: d.opacity
|
|
81
|
+
};
|
|
82
|
+
d.type === "rect" ? r.drawRectangle({
|
|
83
|
+
x: v(d.xUm),
|
|
84
|
+
y: n - v(d.yUm + d.heightUm),
|
|
85
|
+
width: v(d.widthUm),
|
|
86
|
+
height: v(d.heightUm),
|
|
87
|
+
...e
|
|
88
|
+
}) : r.drawEllipse({
|
|
89
|
+
x: v(d.xUm + d.widthUm / 2),
|
|
90
|
+
y: n - v(d.yUm + d.heightUm / 2),
|
|
91
|
+
xScale: v(d.widthUm / 2),
|
|
92
|
+
yScale: v(d.heightUm / 2),
|
|
93
|
+
...e
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
d.transform && r.pushOperators(c());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (await S.flush(), C) {
|
|
100
|
+
let e = new DataView(x.buffer, x.byteOffset, x.byteLength), t;
|
|
101
|
+
for (let n = 0; n < e.getUint16(4); n++) {
|
|
102
|
+
let r = 12 + n * 16;
|
|
103
|
+
if (String.fromCharCode(...x.subarray(r, r + 4)) === "CFF ") {
|
|
104
|
+
let n = e.getUint32(r + 8), i = e.getUint32(r + 12);
|
|
105
|
+
if (n + i > x.length) throw new h("FONT_INVALID", "CFF 表范围无效");
|
|
106
|
+
t = x.subarray(n, n + i);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
if (!t) throw new h("FONT_INVALID", "W0 OTF 输出需要 CFF1 字体");
|
|
111
|
+
for (let [e, i] of S.context.enumerateIndirectObjects()) i instanceof r && i.dict.get(n.of("Subtype"))?.toString() === "/CIDFontType0C" && S.context.assign(e, S.context.flateStream(t, { Subtype: "CIDFontType0C" }));
|
|
112
|
+
}
|
|
113
|
+
return S.save();
|
|
114
|
+
}
|
|
115
|
+
export { x as exportPdf };
|
package/package.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ym-print/renderer-pdf",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./vector": {
|
|
12
|
+
"types": "./dist/vector.d.ts",
|
|
13
|
+
"import": "./dist/vector.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"THIRD_PARTY_NOTICES.md",
|
|
21
|
+
"third-party-licenses",
|
|
22
|
+
"dependency-licenses.json"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@ym-print/core": "0.1.0-rc.2",
|
|
26
|
+
"pdf-lib": "1.17.1"
|
|
27
|
+
},
|
|
28
|
+
"license": "UNLICENSED",
|
|
29
|
+
"description": "Raster PDF output for YmPrintUnit layouts",
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"module": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@pdf-lib/fontkit": "1.1.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"@pdf-lib/fontkit": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public",
|
|
44
|
+
"registry": "https://registry.npmjs.org/"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/ZengKeven/YmPrint.git",
|
|
49
|
+
"directory": "packages/renderer-pdf"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/ZengKeven/YmPrint#readme",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/ZengKeven/YmPrint/issues"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Andrew Dillon
|
|
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.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Photopea
|
|
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.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Andrew Dillon
|
|
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.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted.
|
|
5
|
+
|
|
6
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
8
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
10
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
11
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
12
|
+
PERFORMANCE OF THIS SOFTWARE.
|