@univerjs/engine-render 1.0.0-alpha.6 → 1.0.0-alpha.8
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/lib/af-DK_CjRn6.js +210 -0
- package/lib/as-BPtSu6VN.js +24 -0
- package/lib/be-CrQ0smca.js +24 -0
- package/lib/bg-CrQqGwni.js +24 -0
- package/lib/bn-NCLZcWHi.js +24 -0
- package/lib/ca-SUf6Y2Om.js +51 -0
- package/lib/cjs/index.js +1937 -1891
- package/lib/cop-C3sk0IUo.js +24 -0
- package/lib/cs-CmAteokq.js +30 -0
- package/lib/cu-CBUlrW6Y.js +45 -0
- package/lib/cy-BBPa6z2x.js +24 -0
- package/lib/da-CCDXfXtG.js +24 -0
- package/lib/de-1901-CWoAOigE.js +24 -0
- package/lib/de-1996-BL6awyxG.js +24 -0
- package/lib/de-ch-1901-hVThVHVb.js +24 -0
- package/lib/el-monoton-D3aKqTz2.js +24 -0
- package/lib/el-polyton-ogVWcTzh.js +24 -0
- package/lib/en-gb-B7Al27b_.js +34 -0
- package/lib/es/index.js +1932 -1891
- package/lib/es-DcaaHPU_.js +24 -0
- package/lib/et-B_spaleu.js +24 -0
- package/lib/eu-Ctv_kq9Z.js +24 -0
- package/lib/fi-RW5VB8Yp.js +24 -0
- package/lib/fr-BC2onEz9.js +24 -0
- package/lib/fur-AC12wySk.js +24 -0
- package/lib/ga-Cn6LkudM.js +71 -0
- package/lib/gl-DZGc-K_G.js +24 -0
- package/lib/grc-DOlGgO8T.js +24 -0
- package/lib/gu-Bjl0l-cf.js +24 -0
- package/lib/hi-DsAaTPCC.js +24 -0
- package/lib/hr-DT1SBBes.js +24 -0
- package/lib/hsb-DC_ITc1e.js +59 -0
- package/lib/hu-DVk7Y_ka.js +24 -0
- package/lib/hy-e995ysyO.js +24 -0
- package/lib/ia-Cr4TJH0c.js +35 -0
- package/lib/id-DifDyWg9.js +71 -0
- package/lib/index.js +32032 -0
- package/lib/is-BT8UVRze.js +24 -0
- package/lib/it-Bt_Meacx.js +24 -0
- package/lib/ka-jyoLzyDE.js +24 -0
- package/lib/kmr-Cfwhwuff.js +24 -0
- package/lib/kn-C6Lov-DP.js +24 -0
- package/lib/la-DuvHjUWw.js +24 -0
- package/lib/la-x-classic-yTyAOQEt.js +24 -0
- package/lib/la-x-liturgic-CXeQb4FY.js +24 -0
- package/lib/lt-BBe8DlDF.js +24 -0
- package/lib/lv-Q2BBHnzp.js +24 -0
- package/lib/ml-2xLVYkVY.js +24 -0
- package/lib/mn-cyrl-lHM4n0oC.js +24 -0
- package/lib/mn-cyrl-x-lmc-3aetruI8.js +24 -0
- package/lib/mr-CjWJPVmH.js +24 -0
- package/lib/mul-ethi-D_CMSMEq.js +24 -0
- package/lib/nb-DI8u59ch.js +135 -0
- package/lib/nl-BHQJ6Gvn.js +65 -0
- package/lib/nn-ntZvarUK.js +135 -0
- package/lib/no-B8ItS0F3.js +133 -0
- package/lib/oc-P_i3-xLA.js +24 -0
- package/lib/or-50rxpoq4.js +24 -0
- package/lib/pa-C54UG8eN.js +24 -0
- package/lib/pi-B9cgjyG1.js +24 -0
- package/lib/pl-9fg-ESVt.js +45 -0
- package/lib/pms-BRGfm5gS.js +24 -0
- package/lib/pt-Cum2_NUC.js +24 -0
- package/lib/rm-C0MIK9N4.js +24 -0
- package/lib/ro-0fmdH0HA.js +24 -0
- package/lib/ru-v4l-ayaq.js +209 -0
- package/lib/sa-CKY9c_Vq.js +24 -0
- package/lib/sh-cyrl-BpCRFOmq.js +141 -0
- package/lib/sh-latn-sRy4Tuaj.js +141 -0
- package/lib/sk-_iOeDNrQ.js +30 -0
- package/lib/sl-DpiklF-D.js +24 -0
- package/lib/sr-cyrl-Dpzrbd0W.js +155 -0
- package/lib/sv-CFm5y56M.js +24 -0
- package/lib/ta-BcghgTbD.js +24 -0
- package/lib/te-B5Spl2Jk.js +24 -0
- package/lib/th-DWX5iPSo.js +24 -0
- package/lib/tk-BMbKB10q.js +24 -0
- package/lib/tr-CIHIuzqc.js +24 -0
- package/lib/types/basics/document-node-tools.d.ts +1 -0
- package/lib/types/basics/drawing-effect.d.ts +34 -0
- package/lib/types/basics/i-events.d.ts +0 -6
- package/lib/types/basics/tools.d.ts +1 -22
- package/lib/types/components/docs/document.d.ts +4 -1
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +6 -2
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +1 -1
- package/lib/types/components/docs/layout/block/table.d.ts +3 -1
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +9 -0
- package/lib/types/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.d.ts +2 -2
- package/lib/types/components/docs/layout/line-breaker/enhancers/link-enhancer.d.ts +2 -2
- package/lib/types/components/docs/layout/line-breaker/enhancers/whole-entity-enhancer.d.ts +33 -0
- package/lib/types/components/docs/layout/line-breaker/line-breaker.d.ts +1 -0
- package/lib/types/components/docs/layout/model/glyph.d.ts +19 -3
- package/lib/types/components/docs/layout/model/line.d.ts +2 -2
- package/lib/types/components/docs/layout/shaping-engine/font-cache.d.ts +0 -13
- package/lib/types/components/docs/layout/tools.d.ts +38 -1
- package/lib/types/components/docs/table-render-viewport.d.ts +2 -0
- package/lib/types/components/sheets/sheet.render-skeleton.d.ts +1 -94
- package/lib/types/drawing-group.d.ts +3 -1
- package/lib/types/engine.d.ts +0 -7
- package/lib/types/index.d.ts +4 -2
- package/lib/types/plugin.d.ts +0 -7
- package/lib/types/render-manager/render-manager.service.d.ts +0 -21
- package/lib/types/scene.d.ts +1 -30
- package/lib/types/scene.input-manager.d.ts +1 -3
- package/lib/types/shape/index.d.ts +1 -0
- package/lib/types/shape/line.d.ts +50 -0
- package/lib/types/shape/shape.d.ts +7 -1
- package/lib/types/viewport.d.ts +1 -5
- package/lib/uk-Dir3oxLs.js +24 -0
- package/lib/umd/index.js +2 -3
- package/lib/zh-latn-pinyin-BdYb-Ey_.js +24 -0
- package/package.json +7 -9
- package/lib/types/components/docs/layout/shaping-engine/font-library.d.ts +0 -60
- package/lib/types/components/docs/layout/shaping-engine/text-shaping.d.ts +0 -34
- package/lib/types/services/render-config.service.d.ts +0 -28
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/docs/layout/hyphenation/patterns/zh-latn-pinyin.ts
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
const ZhLatnPinyin = [
|
|
18
|
+
"01,1",
|
|
19
|
+
"{\"a\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"e\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"p\":0,\"q\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"g\":[{\"a\":1,\"b\":0,\"c\":0,\"d\":0,\"e\":1,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"n\":0,\"o\":1,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"u\":1,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"i\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"n\":[{\"a\":1,\"b\":0,\"c\":0,\"d\":0,\"e\":1,\"f\":0,\"h\":0,\"i\":1,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"n\":0,\"o\":1,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"u\":1,\"ü\":1,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"o\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"r\":[{\"a\":1,\"b\":0,\"c\":0,\"d\":0,\"e\":1,\"f\":0,\"g\":0,\"h\":0,\"i\":1,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"n\":0,\"o\":1,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"u\":1,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"u\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"ü\":[{\"b\":0,\"c\":0,\"d\":0,\"f\":0,\"g\":0,\"h\":0,\"j\":0,\"k\":0,\"l\":0,\"m\":0,\"n\":0,\"p\":0,\"q\":0,\"r\":0,\"s\":0,\"t\":0,\"w\":0,\"x\":0,\"y\":0,\"z\":0}],\"'\":[{\"a\":0,\"e\":0,\"o\":0}]}",
|
|
20
|
+
[]
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ZhLatnPinyin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/engine-render",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Canvas rendering engine for Univer documents, sheets, and slides.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -52,21 +52,19 @@
|
|
|
52
52
|
"rxjs": ">=7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@floating-ui/dom": "^1.
|
|
56
|
-
"@floating-ui/utils": "^0.2.
|
|
55
|
+
"@floating-ui/dom": "^1.8.0",
|
|
56
|
+
"@floating-ui/utils": "^0.2.12",
|
|
57
57
|
"franc-min": "^6.2.0",
|
|
58
|
-
"
|
|
59
|
-
"@univerjs/core": "1.0.0-alpha.6"
|
|
58
|
+
"@univerjs/core": "1.0.0-alpha.8"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
|
-
"
|
|
63
|
-
"jest-canvas-mock": "^2.5.2",
|
|
61
|
+
"jest-canvas-mock": "^2.5.8",
|
|
64
62
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
65
63
|
"rxjs": "^7.8.2",
|
|
66
|
-
"tsdown": "^0.22.
|
|
64
|
+
"tsdown": "^0.22.14",
|
|
67
65
|
"typescript": "^6.0.3",
|
|
68
66
|
"vitest": "^4.1.10",
|
|
69
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
67
|
+
"@univerjs-infra/shared": "1.0.0-alpha.8"
|
|
70
68
|
},
|
|
71
69
|
"scripts": {
|
|
72
70
|
"test": "vitest run",
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IStyleBase, Nullable } from '@univerjs/core';
|
|
17
|
-
interface IFontData {
|
|
18
|
-
readonly family: string;
|
|
19
|
-
readonly fullName: string;
|
|
20
|
-
readonly postscriptName: string;
|
|
21
|
-
readonly style: string;
|
|
22
|
-
}
|
|
23
|
-
interface IFontWithBuffer {
|
|
24
|
-
readonly font: IFontData;
|
|
25
|
-
readonly buffer: ArrayBuffer;
|
|
26
|
-
}
|
|
27
|
-
declare enum FontStyle {
|
|
28
|
-
Normal = 0,
|
|
29
|
-
Italic = 1,
|
|
30
|
-
Oblique = 2
|
|
31
|
-
}
|
|
32
|
-
declare enum FontWeight {
|
|
33
|
-
THIN = 100,
|
|
34
|
-
EXTRALIGHT = 200,
|
|
35
|
-
LIGHT = 300,
|
|
36
|
-
REGULAR = 400,
|
|
37
|
-
MEDIUM = 500,
|
|
38
|
-
SEMIBOLD = 600,
|
|
39
|
-
BOLD = 700,
|
|
40
|
-
EXTRABOLD = 800,
|
|
41
|
-
BLACK = 900
|
|
42
|
-
}
|
|
43
|
-
interface IFontVariant {
|
|
44
|
-
style: FontStyle;
|
|
45
|
-
weight: FontWeight;
|
|
46
|
-
}
|
|
47
|
-
export interface IFontInfo {
|
|
48
|
-
family: string;
|
|
49
|
-
variant: IFontVariant;
|
|
50
|
-
}
|
|
51
|
-
declare class FontLibrary {
|
|
52
|
-
isReady: boolean;
|
|
53
|
-
private _fontBook;
|
|
54
|
-
constructor();
|
|
55
|
-
private _loadFontsToBook;
|
|
56
|
-
findBestMatchFontByStyle(style: IStyleBase): Nullable<IFontWithBuffer>;
|
|
57
|
-
getValidFontFamilies(families: string[]): string[];
|
|
58
|
-
}
|
|
59
|
-
export declare const fontLibrary: FontLibrary;
|
|
60
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { IDocumentBody, Nullable } from '@univerjs/core';
|
|
17
|
-
import type Opentype from 'opentype.js';
|
|
18
|
-
interface IBoundingBox {
|
|
19
|
-
x1: number;
|
|
20
|
-
y1: number;
|
|
21
|
-
x2: number;
|
|
22
|
-
y2: number;
|
|
23
|
-
}
|
|
24
|
-
export interface IOpenTypeGlyphInfo {
|
|
25
|
-
char: string;
|
|
26
|
-
start: number;
|
|
27
|
-
end: number;
|
|
28
|
-
glyph: Nullable<Opentype.Glyph>;
|
|
29
|
-
font: Nullable<Opentype.Font>;
|
|
30
|
-
kerning: number;
|
|
31
|
-
boundingBox: Nullable<IBoundingBox>;
|
|
32
|
-
}
|
|
33
|
-
export declare function textShape(body: IDocumentBody): IOpenTypeGlyphInfo[];
|
|
34
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* This service carries managers render config that would be passed
|
|
18
|
-
* to every widget, so some rendering could be optimized.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated Will be replaced by ICanvasColorService.
|
|
21
|
-
*/
|
|
22
|
-
export declare class UniverRenderConfigService {
|
|
23
|
-
private readonly _renderConfig;
|
|
24
|
-
private readonly _updateSignal$;
|
|
25
|
-
readonly updateSignal$: import("rxjs").Observable<void>;
|
|
26
|
-
setRenderConfig(key: string, value: any): void;
|
|
27
|
-
getRenderConfig(): Readonly<Record<string, any>>;
|
|
28
|
-
}
|