@univerjs/engine-render 0.1.0-alpha.1 → 0.1.0-alpha.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.
Files changed (227) hide show
  1. package/LICENSE.txt +178 -0
  2. package/lib/cjs/index.js +73 -23962
  3. package/lib/es/index.js +13690 -0
  4. package/lib/types/base-object.d.ts +15 -1
  5. package/lib/types/basics/cell-data.d.ts +15 -1
  6. package/lib/types/basics/const.d.ts +15 -1
  7. package/lib/types/basics/document-node-tools.d.ts +15 -1
  8. package/lib/types/basics/draw.d.ts +15 -1
  9. package/lib/types/basics/font-cache.d.ts +15 -1
  10. package/lib/types/basics/i-document-skeleton-cached.d.ts +17 -3
  11. package/lib/types/basics/i-events.d.ts +17 -6
  12. package/lib/types/basics/index.d.ts +15 -1
  13. package/lib/types/basics/interfaces.d.ts +15 -1
  14. package/lib/types/basics/path2.d.ts +15 -1
  15. package/lib/types/basics/performance-monitor.d.ts +15 -1
  16. package/lib/types/basics/position.d.ts +15 -1
  17. package/lib/types/basics/quick-event.d.ts +15 -1
  18. package/lib/types/basics/range.d.ts +15 -1
  19. package/lib/types/basics/scroll-xy.d.ts +15 -1
  20. package/lib/types/basics/tools.d.ts +18 -5
  21. package/lib/types/basics/transform.d.ts +15 -1
  22. package/lib/types/basics/unit-convert.d.ts +15 -1
  23. package/lib/types/basics/vector2.d.ts +15 -1
  24. package/lib/types/canvas.d.ts +15 -1
  25. package/lib/types/components/component.d.ts +15 -1
  26. package/lib/types/components/docs/block/block-error.d.ts +15 -1
  27. package/lib/types/components/docs/block/index.d.ts +15 -1
  28. package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +15 -1
  29. package/lib/types/components/docs/block/paragraph/bullet.d.ts +15 -1
  30. package/lib/types/components/docs/block/paragraph/index.d.ts +15 -1
  31. package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +15 -1
  32. package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +17 -3
  33. package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +15 -1
  34. package/lib/types/components/docs/block/paragraph/paragraph.d.ts +15 -1
  35. package/lib/types/components/docs/block/section.d.ts +15 -1
  36. package/lib/types/components/docs/common/column.d.ts +15 -1
  37. package/lib/types/components/docs/common/convert-cursor.d.ts +17 -3
  38. package/lib/types/components/docs/common/index.d.ts +15 -1
  39. package/lib/types/components/docs/common/line.d.ts +16 -2
  40. package/lib/types/components/docs/common/liquid.d.ts +15 -1
  41. package/lib/types/components/docs/common/page.d.ts +15 -1
  42. package/lib/types/components/docs/common/range.d.ts +15 -1
  43. package/lib/types/components/docs/common/section.d.ts +15 -1
  44. package/lib/types/components/docs/common/span.d.ts +17 -1
  45. package/lib/types/components/docs/common/tools.d.ts +15 -2
  46. package/lib/types/components/docs/doc-component.d.ts +15 -1
  47. package/lib/types/components/docs/doc-extension.d.ts +15 -1
  48. package/lib/types/components/docs/doc-skeleton.d.ts +16 -2
  49. package/lib/types/components/docs/document.d.ts +15 -3
  50. package/lib/types/components/docs/extensions/background.d.ts +15 -1
  51. package/lib/types/components/docs/extensions/border.d.ts +15 -1
  52. package/lib/types/components/docs/extensions/font-and-base-line.d.ts +16 -1
  53. package/lib/types/components/docs/extensions/index.d.ts +15 -1
  54. package/lib/types/components/docs/extensions/line.d.ts +16 -1
  55. package/lib/types/components/docs/horizon-bar.d.ts +15 -1
  56. package/lib/types/components/docs/index.d.ts +15 -1
  57. package/lib/types/components/docs/text-selection-render-manager.d.ts +15 -1
  58. package/lib/types/components/docs/vertical-bar.d.ts +15 -1
  59. package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +15 -1
  60. package/lib/types/components/docs/view-model/document-view-model.d.ts +15 -1
  61. package/lib/types/components/extension.d.ts +15 -1
  62. package/lib/types/components/index.d.ts +15 -1
  63. package/lib/types/components/sheets/column-header.d.ts +15 -1
  64. package/lib/types/components/sheets/extensions/background.d.ts +15 -1
  65. package/lib/types/components/sheets/extensions/border-auxiliary.d.ts +15 -1
  66. package/lib/types/components/sheets/extensions/border.d.ts +15 -1
  67. package/lib/types/components/sheets/extensions/column-header-layout.d.ts +15 -1
  68. package/lib/types/components/sheets/extensions/font.d.ts +15 -1
  69. package/lib/types/components/sheets/extensions/index.d.ts +15 -1
  70. package/lib/types/components/sheets/extensions/row-header-layout.d.ts +15 -1
  71. package/lib/types/components/sheets/extensions/sheet-extension.d.ts +15 -1
  72. package/lib/types/components/sheets/index.d.ts +15 -1
  73. package/lib/types/components/sheets/interfaces.d.ts +15 -1
  74. package/lib/types/components/sheets/row-header.d.ts +15 -1
  75. package/lib/types/components/sheets/sheet-component.d.ts +15 -1
  76. package/lib/types/components/sheets/sheet-skeleton.d.ts +15 -1
  77. package/lib/types/components/sheets/spreadsheet.d.ts +15 -1
  78. package/lib/types/components/skeleton.d.ts +15 -1
  79. package/lib/types/components/slides/index.d.ts +15 -1
  80. package/lib/types/components/slides/slide.d.ts +15 -1
  81. package/lib/types/custom/custom-object.d.ts +15 -1
  82. package/lib/types/custom/index.d.ts +15 -1
  83. package/lib/types/engine.d.ts +15 -1
  84. package/lib/types/group.d.ts +15 -1
  85. package/lib/types/index.d.ts +16 -2
  86. package/lib/types/layer.d.ts +15 -1
  87. package/lib/types/render-engine.d.ts +16 -2
  88. package/lib/types/render-manager.service.d.ts +15 -1
  89. package/lib/types/scene-viewer.d.ts +15 -1
  90. package/lib/types/scene.-transformer.d.ts +15 -1
  91. package/lib/types/scene.d.ts +15 -1
  92. package/lib/types/scene.input-manager.d.ts +19 -2
  93. package/lib/types/scroll-timer.d.ts +15 -1
  94. package/lib/types/services/object-transform-manager.service.d.ts +15 -1
  95. package/lib/types/shape/base-scroll-bar.d.ts +15 -1
  96. package/lib/types/shape/circle.d.ts +15 -1
  97. package/lib/types/shape/control.d.ts +15 -1
  98. package/lib/types/shape/drawing.d.ts +15 -1
  99. package/lib/types/shape/index.d.ts +15 -1
  100. package/lib/types/shape/path.d.ts +15 -1
  101. package/lib/types/shape/picture.d.ts +15 -1
  102. package/lib/types/shape/rect.d.ts +15 -1
  103. package/lib/types/shape/regular-polygon.d.ts +15 -1
  104. package/lib/types/shape/rich-text.d.ts +15 -1
  105. package/lib/types/shape/scroll-bar.d.ts +15 -1
  106. package/lib/types/shape/selection.d.ts +15 -1
  107. package/lib/types/shape/shape.d.ts +15 -1
  108. package/lib/types/thin-engine.d.ts +15 -1
  109. package/lib/types/thin-scene.d.ts +15 -1
  110. package/lib/types/viewport.d.ts +15 -1
  111. package/lib/umd/index.js +73 -0
  112. package/package.json +21 -14
  113. package/LICENSE +0 -21
  114. package/lib/esm/index.js +0 -23259
  115. package/lib/types/base-object.d.ts.map +0 -1
  116. package/lib/types/basics/cell-data.d.ts.map +0 -1
  117. package/lib/types/basics/const.d.ts.map +0 -1
  118. package/lib/types/basics/document-node-tools.d.ts.map +0 -1
  119. package/lib/types/basics/draw.d.ts.map +0 -1
  120. package/lib/types/basics/font-cache.d.ts.map +0 -1
  121. package/lib/types/basics/i-document-skeleton-cached.d.ts.map +0 -1
  122. package/lib/types/basics/i-events.d.ts.map +0 -1
  123. package/lib/types/basics/index.d.ts.map +0 -1
  124. package/lib/types/basics/interfaces.d.ts.map +0 -1
  125. package/lib/types/basics/path2.d.ts.map +0 -1
  126. package/lib/types/basics/performance-monitor.d.ts.map +0 -1
  127. package/lib/types/basics/position.d.ts.map +0 -1
  128. package/lib/types/basics/quick-event.d.ts.map +0 -1
  129. package/lib/types/basics/range.d.ts.map +0 -1
  130. package/lib/types/basics/scroll-xy.d.ts.map +0 -1
  131. package/lib/types/basics/tools.d.ts.map +0 -1
  132. package/lib/types/basics/transform.d.ts.map +0 -1
  133. package/lib/types/basics/unit-convert.d.ts.map +0 -1
  134. package/lib/types/basics/vector2.d.ts.map +0 -1
  135. package/lib/types/canvas.d.ts.map +0 -1
  136. package/lib/types/components/component.d.ts.map +0 -1
  137. package/lib/types/components/docs/block/block-error.d.ts.map +0 -1
  138. package/lib/types/components/docs/block/index.d.ts.map +0 -1
  139. package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts.map +0 -1
  140. package/lib/types/components/docs/block/paragraph/bullet.d.ts.map +0 -1
  141. package/lib/types/components/docs/block/paragraph/index.d.ts.map +0 -1
  142. package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts.map +0 -1
  143. package/lib/types/components/docs/block/paragraph/language-ruler.d.ts.map +0 -1
  144. package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts.map +0 -1
  145. package/lib/types/components/docs/block/paragraph/paragraph.d.ts.map +0 -1
  146. package/lib/types/components/docs/block/section.d.ts.map +0 -1
  147. package/lib/types/components/docs/block/table/table-cell.d.ts +0 -1
  148. package/lib/types/components/docs/block/table/table-cell.d.ts.map +0 -1
  149. package/lib/types/components/docs/block/table/table-row.d.ts +0 -1
  150. package/lib/types/components/docs/block/table/table-row.d.ts.map +0 -1
  151. package/lib/types/components/docs/block/table/table.d.ts +0 -1
  152. package/lib/types/components/docs/block/table/table.d.ts.map +0 -1
  153. package/lib/types/components/docs/common/column.d.ts.map +0 -1
  154. package/lib/types/components/docs/common/convert-cursor.d.ts.map +0 -1
  155. package/lib/types/components/docs/common/index.d.ts.map +0 -1
  156. package/lib/types/components/docs/common/line.d.ts.map +0 -1
  157. package/lib/types/components/docs/common/liquid.d.ts.map +0 -1
  158. package/lib/types/components/docs/common/page.d.ts.map +0 -1
  159. package/lib/types/components/docs/common/range.d.ts.map +0 -1
  160. package/lib/types/components/docs/common/section.d.ts.map +0 -1
  161. package/lib/types/components/docs/common/span.d.ts.map +0 -1
  162. package/lib/types/components/docs/common/tools.d.ts.map +0 -1
  163. package/lib/types/components/docs/doc-component.d.ts.map +0 -1
  164. package/lib/types/components/docs/doc-extension.d.ts.map +0 -1
  165. package/lib/types/components/docs/doc-skeleton.d.ts.map +0 -1
  166. package/lib/types/components/docs/document.d.ts.map +0 -1
  167. package/lib/types/components/docs/extensions/background.d.ts.map +0 -1
  168. package/lib/types/components/docs/extensions/border.d.ts.map +0 -1
  169. package/lib/types/components/docs/extensions/font-and-base-line.d.ts.map +0 -1
  170. package/lib/types/components/docs/extensions/index.d.ts.map +0 -1
  171. package/lib/types/components/docs/extensions/line.d.ts.map +0 -1
  172. package/lib/types/components/docs/horizon-bar.d.ts.map +0 -1
  173. package/lib/types/components/docs/index.d.ts.map +0 -1
  174. package/lib/types/components/docs/text-selection-render-manager.d.ts.map +0 -1
  175. package/lib/types/components/docs/vertical-bar.d.ts.map +0 -1
  176. package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts.map +0 -1
  177. package/lib/types/components/docs/view-model/document-view-model.d.ts.map +0 -1
  178. package/lib/types/components/extension.d.ts.map +0 -1
  179. package/lib/types/components/index.d.ts.map +0 -1
  180. package/lib/types/components/sheets/column-header.d.ts.map +0 -1
  181. package/lib/types/components/sheets/extensions/background.d.ts.map +0 -1
  182. package/lib/types/components/sheets/extensions/border-auxiliary.d.ts.map +0 -1
  183. package/lib/types/components/sheets/extensions/border.d.ts.map +0 -1
  184. package/lib/types/components/sheets/extensions/column-header-layout.d.ts.map +0 -1
  185. package/lib/types/components/sheets/extensions/font.d.ts.map +0 -1
  186. package/lib/types/components/sheets/extensions/index.d.ts.map +0 -1
  187. package/lib/types/components/sheets/extensions/row-header-layout.d.ts.map +0 -1
  188. package/lib/types/components/sheets/extensions/sheet-extension.d.ts.map +0 -1
  189. package/lib/types/components/sheets/index.d.ts.map +0 -1
  190. package/lib/types/components/sheets/interfaces.d.ts.map +0 -1
  191. package/lib/types/components/sheets/row-header.d.ts.map +0 -1
  192. package/lib/types/components/sheets/sheet-component.d.ts.map +0 -1
  193. package/lib/types/components/sheets/sheet-skeleton.d.ts.map +0 -1
  194. package/lib/types/components/sheets/spreadsheet.d.ts.map +0 -1
  195. package/lib/types/components/skeleton.d.ts.map +0 -1
  196. package/lib/types/components/slides/index.d.ts.map +0 -1
  197. package/lib/types/components/slides/slide.d.ts.map +0 -1
  198. package/lib/types/custom/custom-object.d.ts.map +0 -1
  199. package/lib/types/custom/index.d.ts.map +0 -1
  200. package/lib/types/engine.d.ts.map +0 -1
  201. package/lib/types/group.d.ts.map +0 -1
  202. package/lib/types/index.d.ts.map +0 -1
  203. package/lib/types/layer.d.ts.map +0 -1
  204. package/lib/types/render-engine.d.ts.map +0 -1
  205. package/lib/types/render-manager.service.d.ts.map +0 -1
  206. package/lib/types/scene-viewer.d.ts.map +0 -1
  207. package/lib/types/scene.-transformer.d.ts.map +0 -1
  208. package/lib/types/scene.d.ts.map +0 -1
  209. package/lib/types/scene.input-manager.d.ts.map +0 -1
  210. package/lib/types/scroll-timer.d.ts.map +0 -1
  211. package/lib/types/services/object-transform-manager.service.d.ts.map +0 -1
  212. package/lib/types/shape/base-scroll-bar.d.ts.map +0 -1
  213. package/lib/types/shape/circle.d.ts.map +0 -1
  214. package/lib/types/shape/control.d.ts.map +0 -1
  215. package/lib/types/shape/drawing.d.ts.map +0 -1
  216. package/lib/types/shape/index.d.ts.map +0 -1
  217. package/lib/types/shape/path.d.ts.map +0 -1
  218. package/lib/types/shape/picture.d.ts.map +0 -1
  219. package/lib/types/shape/rect.d.ts.map +0 -1
  220. package/lib/types/shape/regular-polygon.d.ts.map +0 -1
  221. package/lib/types/shape/rich-text.d.ts.map +0 -1
  222. package/lib/types/shape/scroll-bar.d.ts.map +0 -1
  223. package/lib/types/shape/selection.d.ts.map +0 -1
  224. package/lib/types/shape/shape.d.ts.map +0 -1
  225. package/lib/types/thin-engine.d.ts.map +0 -1
  226. package/lib/types/thin-scene.d.ts.map +0 -1
  227. package/lib/types/viewport.d.ts.map +0 -1
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { EventState, IKeyValue, Nullable, Observer } from '@univerjs/core';
2
17
  import { Observable } from '@univerjs/core';
3
18
  import type { EVENT_TYPE } from './basics/const';
@@ -152,4 +167,3 @@ export declare abstract class BaseObject {
152
167
  protected _setTransForm(): void;
153
168
  private _makeDirtyMix;
154
169
  }
155
- //# sourceMappingURL=base-object.d.ts.map
@@ -1,6 +1,20 @@
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
+ */
1
16
  import type { ICellData, IStyleData } from '@univerjs/core';
2
17
  export interface ITempCellData extends ICellData {
3
18
  style: IStyleData;
4
19
  prefix: string[];
5
20
  }
6
- //# sourceMappingURL=cell-data.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  export declare const RGB_PAREN = "rgb(";
2
17
  export declare const RGBA_PAREN = "rgba(";
3
18
  export declare const COLORS: {
@@ -260,4 +275,3 @@ export declare enum RENDER_CLASS_TYPE {
260
275
  }
261
276
  export declare const DEFAULT_SELECTION_LAYER_INDEX = 1000;
262
277
  export declare const MAXIMUM_ROW_HEIGHT = 2000;
263
- //# sourceMappingURL=const.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { IDocumentBody, Nullable } from '@univerjs/core';
2
17
  import type { IDocumentSkeletonSpan } from './i-document-skeleton-cached';
3
18
  export declare function hasListSpan(span: Nullable<IDocumentSkeletonSpan>): boolean;
@@ -7,4 +22,3 @@ export declare function isFirstSpan(span: Nullable<IDocumentSkeletonSpan>): bool
7
22
  export declare function getParagraphBySpan(span: Nullable<IDocumentSkeletonSpan>, body?: IDocumentBody): import("@univerjs/core").IParagraph | undefined;
8
23
  export declare function isPlaceholderOrSpace(span: Nullable<IDocumentSkeletonSpan>): boolean;
9
24
  export declare function isSameLine(span1: Nullable<IDocumentSkeletonSpan>, span2: Nullable<IDocumentSkeletonSpan>): boolean;
10
- //# sourceMappingURL=document-node-tools.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { IPosition } from '@univerjs/core';
2
17
  import { BorderStyleTypes } from '@univerjs/core';
3
18
  import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
@@ -36,4 +51,3 @@ export declare function getTranslateInSpreadContextWithPixelRatio(): {
36
51
  left: number;
37
52
  top: number;
38
53
  };
39
- //# sourceMappingURL=draw.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { Nullable } from '@univerjs/core';
2
17
  import type { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
3
18
  import type { IMeasureTextCache } from './interfaces';
@@ -34,4 +49,3 @@ export declare class FontCache {
34
49
  private static _getBoundingBoxByFont;
35
50
  private static _calculateBoundingBoxByMeasureText;
36
51
  }
37
- //# sourceMappingURL=font-cache.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core';
2
17
  export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
3
18
  pages: IDocumentSkeletonPage[];
@@ -117,8 +132,8 @@ export interface IDocumentSkeletonSpan {
117
132
  bBox: IDocumentSkeletonBoundingBox;
118
133
  paddingLeft: number;
119
134
  left: number;
120
- count?: number;
121
- content?: string;
135
+ count: number;
136
+ content: string;
122
137
  ts?: ITextStyle;
123
138
  fontStyle?: IDocumentSkeletonFontStyle;
124
139
  parent?: IDocumentSkeletonDivide;
@@ -207,4 +222,3 @@ export declare enum PageLayoutType {
207
222
  HORIZONTAL = 1,
208
223
  AUTO = 2
209
224
  }
210
- //# sourceMappingURL=i-document-skeleton-cached.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { Nullable } from '@univerjs/core';
2
17
  /**
3
18
  * Alias type for number that are floats
@@ -31,7 +46,7 @@ export type Immutable<T> = T extends Primitive ? T : T extends Array<infer U> ?
31
46
  /**
32
47
  * Type modifier to make all the properties of an object Readonly recursively
33
48
  */
34
- export type DeepImmutable<T> = T extends Primitive ? T : T extends Array<infer U> ? DeepImmutableArray<U> : DeepImmutableObject<T>;
49
+ export type DeepImmutable<T> = T extends Primitive ? T : T extends Array<infer U> ? IDeepImmutableArray<U> : DeepImmutableObject<T>;
35
50
  /**
36
51
  * Type modifier to make object properties readonly.
37
52
  */
@@ -39,12 +54,9 @@ export type DeepImmutableObject<T> = {
39
54
  readonly [K in keyof T]: DeepImmutable<T[K]>;
40
55
  };
41
56
  /** @hidden */
42
- interface DeepImmutableArray<T> extends ReadonlyArray<DeepImmutable<T>> {
57
+ interface IDeepImmutableArray<T> extends ReadonlyArray<DeepImmutable<T>> {
43
58
  }
44
59
  /** @hidden */
45
- export interface Class<T> {
46
- new (...param: any): T;
47
- }
48
60
  /**
49
61
  * Event Types
50
62
  */
@@ -301,4 +313,3 @@ export declare enum PointerInput {
301
313
  FakeMove = 12
302
314
  }
303
315
  export {};
304
- //# sourceMappingURL=i-events.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  export * from './cell-data';
2
17
  export * from './const';
3
18
  export * from './document-node-tools';
@@ -13,4 +28,3 @@ export * from './scroll-xy';
13
28
  export * from './tools';
14
29
  export * from './transform';
15
30
  export * from './vector2';
16
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
2
17
  import type { DocumentViewModel } from '../components/docs/view-model/document-view-model';
3
18
  import type { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonHeader, IDocumentSkeletonSpan } from './i-document-skeleton-cached';
@@ -99,4 +114,3 @@ export interface INodeSearch {
99
114
  export interface INodePosition extends INodeSearch {
100
115
  isBack: boolean;
101
116
  }
102
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { Nullable } from '@univerjs/core';
2
17
  import { Vector2 } from './vector2';
3
18
  export declare const INITIAL_Path2: Vector2[];
@@ -7,4 +22,3 @@ export declare class Path2 {
7
22
  intersection(lines: Vector2[]): Nullable<Vector2[]>;
8
23
  private _intersection;
9
24
  }
10
- //# sourceMappingURL=path2.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  /**
2
17
  * Performance monitor tracks rolling average frame-time and frame-time variance over a user defined sliding-window
3
18
  */
@@ -108,4 +123,3 @@ export declare class RollingAverage {
108
123
  */
109
124
  protected _wrapPosition(i: number): number;
110
125
  }
111
- //# sourceMappingURL=performance-monitor.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { BaseObject } from '../base-object';
2
17
  import type { IBoundRect } from './vector2';
3
18
  export declare function getOffsetRectForDom(ele: HTMLElement): {
@@ -10,4 +25,3 @@ export declare function transformBoundingCoord(object: BaseObject, bounds: IBoun
10
25
  minY: number;
11
26
  maxY: number;
12
27
  };
13
- //# sourceMappingURL=position.d.ts.map
@@ -1,4 +1,18 @@
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
+ */
1
16
  import type { BaseObject } from '../base-object';
2
17
  import type { IMouseEvent, IPointerEvent } from './i-events';
3
18
  export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void;
4
- //# sourceMappingURL=quick-event.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { ITextRangeParam } from '@univerjs/core';
2
17
  export interface ITextSelectionStyle {
3
18
  strokeWidth: number;
@@ -14,4 +29,3 @@ export declare enum RANGE_DIRECTION {
14
29
  BACKWARD = "backward",
15
30
  FORWARD = "forward"
16
31
  }
17
- //# sourceMappingURL=range.d.ts.map
@@ -1,5 +1,19 @@
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
+ */
1
16
  export declare function getCurrentScrollXY(scrollTimer: any): {
2
17
  scrollX: any;
3
18
  scrollY: any;
4
19
  };
5
- //# sourceMappingURL=scroll-xy.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core';
2
17
  import type { IBoundRectNoAngle } from './vector2';
3
18
  export declare const getColor: (RgbArray: number[], opacity?: number) => string;
@@ -47,16 +62,15 @@ export declare function getFontStyleString(textStyle?: IStyleBase, localeService
47
62
  fontFamily: string;
48
63
  };
49
64
  export declare function isSupportBoundingBox(ctx: CanvasRenderingContext2D): boolean;
50
- export declare function hasChineseText(text: string): boolean;
51
- export declare function hasJapaneseText(text: string): boolean;
52
- export declare function hasKoreanText(text: string): boolean;
65
+ export declare function hasCJKText(text: string): boolean;
53
66
  export declare function hasCJK(text: string): boolean;
54
- export declare function hasWrappableText(text: string): boolean;
55
67
  export declare function hasAllLatin(text: string): boolean;
56
68
  export declare function hasBasicLatin(text: string): boolean;
57
69
  export declare function hasLatinOneSupplement(text: string): boolean;
58
70
  export declare function hasLatinExtendedA(text: string): boolean;
59
71
  export declare function hasLatinExtendedB(text: string): boolean;
72
+ export declare const EMOJI_REG: RegExp;
73
+ export declare function startWithEmoji(text: string): boolean;
60
74
  export declare function hasArabic(text: string): boolean;
61
75
  export declare function hasTibetan(text: string): boolean;
62
76
  export declare function hasSpaceAndTab(text: string): boolean;
@@ -106,4 +120,3 @@ export declare function getSizeForDom(dom: HTMLElement): {
106
120
  width: number;
107
121
  height: number;
108
122
  };
109
- //# sourceMappingURL=tools.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { ITransformState } from '@univerjs/core';
2
17
  import type { IRect } from './interfaces';
3
18
  import { Vector2 } from './vector2';
@@ -140,4 +155,3 @@ export declare class Transform {
140
155
  */
141
156
  private _calcDimensionsMatrix;
142
157
  }
143
- //# sourceMappingURL=transform.d.ts.map
@@ -1,3 +1,17 @@
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
+ */
1
16
  declare const whiteListKeyForPt: Set<string>;
2
17
  declare function isNotEmpty(value: unknown): boolean;
3
- //# sourceMappingURL=unit-convert.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import type { DeepImmutable, FloatArray } from './i-events';
2
17
  export interface IPoint {
3
18
  x: number;
@@ -435,4 +450,3 @@ export interface IBoundRectNoAngle {
435
450
  right: number;
436
451
  bottom: number;
437
452
  }
438
- //# sourceMappingURL=vector2.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  interface ICanvasProps {
2
17
  width?: number;
3
18
  height?: number;
@@ -52,4 +67,3 @@ export declare class HitCanvas extends Canvas {
52
67
  constructor(props?: ICanvasProps);
53
68
  }
54
69
  export {};
55
- //# sourceMappingURL=canvas.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import { BaseObject } from '../base-object';
2
17
  import type { IBoundRect } from '../basics/vector2';
3
18
  import type { ComponentExtension } from './extension';
@@ -10,4 +25,3 @@ export declare class RenderComponent<T, U> extends BaseObject {
10
25
  getExtensionByKey(uKey: string): ComponentExtension<T, U> | undefined;
11
26
  draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
12
27
  }
13
- //# sourceMappingURL=component.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export declare function dealWithBlockError(): never[];
2
- //# sourceMappingURL=block-error.d.ts.map
@@ -1,4 +1,18 @@
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
+ */
1
16
  export * from './block-error';
2
17
  export * from './paragraph';
3
18
  export * from './section';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,17 @@
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
+ */
1
16
  import { GlyphType } from '@univerjs/core';
2
17
  export declare function getBulletOrderedSymbol(startIndex: number, startNumber: number, glyphType: GlyphType | string): string;
3
- //# sourceMappingURL=bullet-ruler.d.ts.map
@@ -1,5 +1,19 @@
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
+ */
1
16
  import type { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
2
17
  import type { IDocumentSkeletonBullet } from '../../../../basics/i-document-skeleton-cached';
3
18
  export declare function dealWidthBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
4
19
  export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
5
- //# sourceMappingURL=bullet.d.ts.map