@univerjs/engine-render 0.1.3 → 0.1.4

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.
Files changed (64) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +10832 -10790
  3. package/lib/types/basics/document-node-tools.d.ts +8 -8
  4. package/lib/types/basics/i-document-skeleton-cached.d.ts +13 -7
  5. package/lib/types/basics/interfaces.d.ts +3 -3
  6. package/lib/types/basics/tools.d.ts +4 -0
  7. package/lib/types/{components/docs/block/index.d.ts → basics/viewport-subtract.d.ts} +2 -3
  8. package/lib/types/components/docs/doc-component.d.ts +4 -4
  9. package/lib/types/components/docs/doc-extension.d.ts +2 -2
  10. package/lib/types/components/docs/document.d.ts +2 -1
  11. package/lib/types/components/docs/extensions/background.d.ts +2 -2
  12. package/lib/types/components/docs/extensions/border.d.ts +2 -2
  13. package/lib/types/components/docs/extensions/font-and-base-line.d.ts +2 -2
  14. package/lib/types/components/docs/extensions/line.d.ts +2 -2
  15. package/lib/types/components/docs/{block → layout/block}/paragraph/bullet.d.ts +1 -1
  16. package/lib/types/components/docs/{block → layout/block}/paragraph/inline-drawing.d.ts +2 -2
  17. package/lib/types/components/docs/{block → layout/block}/paragraph/language-ruler.d.ts +7 -7
  18. package/lib/types/components/docs/{block → layout/block}/paragraph/layout-ruler.d.ts +3 -3
  19. package/lib/types/components/docs/{block/paragraph/paragraph.d.ts → layout/block/paragraph/layout.d.ts} +4 -4
  20. package/lib/types/components/docs/{block/paragraph/index.d.ts → layout/block/paragraph/line-adjustment.d.ts} +3 -6
  21. package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +21 -0
  22. package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +25 -0
  23. package/lib/types/components/docs/{block → layout/block}/section.d.ts +5 -5
  24. package/lib/types/components/docs/{doc-skeleton.d.ts → layout/doc-skeleton.d.ts} +9 -9
  25. package/lib/types/components/docs/layout/model/__test__/glyph.spec.d.ts +16 -0
  26. package/lib/types/components/docs/{common → layout/model}/column.d.ts +1 -1
  27. package/lib/types/components/docs/layout/model/glyph.d.ts +31 -0
  28. package/lib/types/components/docs/{common → layout/model}/line.d.ts +1 -1
  29. package/lib/types/components/docs/{common → layout/model}/page.d.ts +3 -3
  30. package/lib/types/components/docs/{common → layout/model}/section.d.ts +1 -1
  31. package/lib/types/components/docs/{common → layout}/tools.d.ts +4 -4
  32. package/lib/types/components/docs/{common/liquid.d.ts → liquid.d.ts} +4 -4
  33. package/lib/types/components/docs/{common → text-selection}/convert-cursor.d.ts +4 -4
  34. package/lib/types/components/docs/{common → text-selection}/text-range.d.ts +1 -1
  35. package/lib/types/components/docs/{text-selection-render-manager.d.ts → text-selection/text-selection-render-manager.d.ts} +11 -9
  36. package/lib/types/components/index.d.ts +0 -1
  37. package/lib/types/components/sheets/interfaces.d.ts +1 -1
  38. package/lib/types/components/sheets/sheet-skeleton.d.ts +1 -1
  39. package/lib/types/context.d.ts +4 -0
  40. package/lib/types/engine.d.ts +2 -0
  41. package/lib/types/index.d.ts +9 -1
  42. package/lib/types/layer.d.ts +1 -0
  43. package/lib/types/render-manager.service.d.ts +1 -0
  44. package/lib/types/thin-scene.d.ts +4 -1
  45. package/lib/types/viewport.d.ts +0 -3
  46. package/lib/umd/index.js +2 -2
  47. package/package.json +8 -7
  48. package/lib/types/components/docs/common/index.d.ts +0 -24
  49. package/lib/types/components/docs/common/span.d.ts +0 -28
  50. package/lib/types/components/docs/index.d.ts +0 -22
  51. /package/lib/types/components/docs/{block → layout/block}/block-error.d.ts +0 -0
  52. /package/lib/types/components/docs/{block → layout/block}/paragraph/bullet-ruler.d.ts +0 -0
  53. /package/lib/types/components/docs/{linebreak → layout/linebreak}/__tests__/linebreak.spec.d.ts +0 -0
  54. /package/lib/types/components/docs/{linebreak → layout/linebreak}/break.d.ts +0 -0
  55. /package/lib/types/components/docs/{linebreak → layout/linebreak}/classes.d.ts +0 -0
  56. /package/lib/types/components/docs/{linebreak → layout/linebreak}/extensions/tab-linebreak-extension.d.ts +0 -0
  57. /package/lib/types/components/docs/{linebreak → layout/linebreak}/index.d.ts +0 -0
  58. /package/lib/types/components/docs/{linebreak → layout/linebreak}/linebreaker.d.ts +0 -0
  59. /package/lib/types/components/docs/{linebreak → layout/linebreak}/pairs.d.ts +0 -0
  60. /package/lib/types/components/docs/{linebreak → layout/linebreak}/rule.d.ts +0 -0
  61. /package/lib/types/components/docs/{linebreak → layout/linebreak}/swap.d.ts +0 -0
  62. /package/lib/types/components/docs/{linebreak → layout/linebreak}/tiny-inflate.d.ts +0 -0
  63. /package/lib/types/components/docs/{linebreak → layout/linebreak}/trie-data.d.ts +0 -0
  64. /package/lib/types/components/docs/{linebreak → layout/linebreak}/unicode-trie.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-render",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-render",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -17,7 +17,9 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/dream-num/univer/issues"
19
19
  },
20
- "keywords": [],
20
+ "keywords": [
21
+ "univer"
22
+ ],
21
23
  "exports": {
22
24
  ".": {
23
25
  "import": "./lib/es/index.js",
@@ -50,7 +52,7 @@
50
52
  "peerDependencies": {
51
53
  "@wendellhu/redi": "0.13.0",
52
54
  "rxjs": ">=7.0.0",
53
- "@univerjs/core": "0.1.3"
55
+ "@univerjs/core": "0.1.4"
54
56
  },
55
57
  "dependencies": {
56
58
  "cjk-regex": "^3.1.0",
@@ -58,13 +60,12 @@
58
60
  },
59
61
  "devDependencies": {
60
62
  "@wendellhu/redi": "^0.13.0",
61
- "less": "^4.2.0",
62
63
  "rxjs": "^7.8.1",
63
64
  "typescript": "^5.4.2",
64
65
  "vite": "^5.1.6",
65
- "vitest": "^1.3.1",
66
- "@univerjs/shared": "0.1.3",
67
- "@univerjs/core": "0.1.3"
66
+ "vitest": "^1.4.0",
67
+ "@univerjs/core": "0.1.4",
68
+ "@univerjs/shared": "0.1.4"
68
69
  },
69
70
  "scripts": {
70
71
  "test": "vitest run",
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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
- export * from './column';
17
- export * from './convert-cursor';
18
- export * from './line';
19
- export * from './liquid';
20
- export * from './page';
21
- export * from './section';
22
- export * from './span';
23
- export * from './text-range';
24
- export * from './tools';
@@ -1,28 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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 { Nullable } from '@univerjs/core';
17
- import type { IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonSpan } from '../../../basics/i-document-skeleton-cached';
18
- import { SpanType } from '../../../basics/i-document-skeleton-cached';
19
- import type { IFontCreateConfig } from '../../../basics/interfaces';
20
- export declare function createSkeletonWordSpan(content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
21
- export declare function createSkeletonLetterSpan(content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
22
- export declare function createSkeletonTabSpan(config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
23
- export declare function _createSkeletonWordOrLetter(spanType: SpanType, content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan;
24
- export declare function createSkeletonBulletSpan(span: IDocumentSkeletonSpan, bulletSkeleton: IDocumentSkeletonBullet, charSpaceApply: number): IDocumentSkeletonSpan;
25
- export declare function setSpanGroupLeft(spanGroup: IDocumentSkeletonSpan[], left?: number): void;
26
- export declare function setSpanLeft(span: IDocumentSkeletonSpan, left?: number): void;
27
- export declare function addSpanToDivide(divide: IDocumentSkeletonDivide, spanGroup: IDocumentSkeletonSpan[], offsetLeft?: number): void;
28
- export declare function hasMixedTextLayout(preSpan: Nullable<IDocumentSkeletonSpan>, span: IDocumentSkeletonSpan): boolean;
@@ -1,22 +0,0 @@
1
- /**
2
- * Copyright 2023-present DreamNum Inc.
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
- export * from './block';
17
- export * from './common';
18
- export * from './doc-skeleton';
19
- export * from './document';
20
- export * from './horizon-bar';
21
- export * from './text-selection-render-manager';
22
- export * from './vertical-bar';