@univerjs/engine-render 0.1.0-alpha.1 → 0.1.0-alpha.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.
Files changed (228) hide show
  1. package/LICENSE.txt +178 -0
  2. package/README.md +1 -1
  3. package/lib/cjs/index.js +73 -23962
  4. package/lib/es/index.js +15060 -0
  5. package/lib/types/base-object.d.ts +21 -6
  6. package/lib/types/basics/cell-data.d.ts +15 -1
  7. package/lib/types/basics/const.d.ts +16 -154
  8. package/lib/types/basics/document-node-tools.d.ts +15 -1
  9. package/lib/types/basics/draw.d.ts +15 -1
  10. package/lib/types/basics/font-cache.d.ts +15 -1
  11. package/lib/types/basics/i-document-skeleton-cached.d.ts +17 -3
  12. package/lib/types/basics/i-events.d.ts +17 -6
  13. package/lib/types/basics/index.d.ts +15 -1
  14. package/lib/types/basics/interfaces.d.ts +15 -1
  15. package/lib/types/basics/path2.d.ts +15 -1
  16. package/lib/types/basics/performance-monitor.d.ts +15 -1
  17. package/lib/types/basics/position.d.ts +15 -1
  18. package/lib/types/basics/quick-event.d.ts +15 -1
  19. package/lib/types/basics/range.d.ts +20 -1
  20. package/lib/types/basics/scroll-xy.d.ts +15 -1
  21. package/lib/types/basics/tools.d.ts +22 -8
  22. package/lib/types/basics/transform.d.ts +15 -1
  23. package/lib/types/basics/unit-convert.d.ts +15 -1
  24. package/lib/types/basics/vector2.d.ts +23 -1
  25. package/lib/types/canvas.d.ts +15 -1
  26. package/lib/types/components/component.d.ts +22 -8
  27. package/lib/types/components/docs/block/block-error.d.ts +15 -1
  28. package/lib/types/components/docs/block/index.d.ts +15 -1
  29. package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +15 -1
  30. package/lib/types/components/docs/block/paragraph/bullet.d.ts +16 -2
  31. package/lib/types/components/docs/block/paragraph/index.d.ts +15 -1
  32. package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +15 -1
  33. package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +32 -9
  34. package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +15 -1
  35. package/lib/types/components/docs/block/paragraph/paragraph.d.ts +15 -1
  36. package/lib/types/components/docs/block/section.d.ts +15 -1
  37. package/lib/types/components/docs/common/column.d.ts +15 -1
  38. package/lib/types/components/docs/common/convert-cursor.d.ts +17 -3
  39. package/lib/types/components/docs/common/index.d.ts +15 -1
  40. package/lib/types/components/docs/common/line.d.ts +16 -2
  41. package/lib/types/components/docs/common/liquid.d.ts +15 -1
  42. package/lib/types/components/docs/common/page.d.ts +15 -1
  43. package/lib/types/components/docs/common/range.d.ts +17 -3
  44. package/lib/types/components/docs/common/section.d.ts +15 -1
  45. package/lib/types/components/docs/common/span.d.ts +17 -1
  46. package/lib/types/components/docs/common/tools.d.ts +15 -2
  47. package/lib/types/components/docs/doc-component.d.ts +21 -11
  48. package/lib/types/components/docs/doc-extension.d.ts +17 -2
  49. package/lib/types/components/docs/doc-skeleton.d.ts +18 -4
  50. package/lib/types/components/docs/document.d.ts +18 -7
  51. package/lib/types/components/docs/extensions/background.d.ts +15 -1
  52. package/lib/types/components/docs/extensions/border.d.ts +15 -1
  53. package/lib/types/components/docs/extensions/font-and-base-line.d.ts +16 -1
  54. package/lib/types/components/docs/extensions/index.d.ts +15 -1
  55. package/lib/types/components/docs/extensions/line.d.ts +16 -1
  56. package/lib/types/components/docs/horizon-bar.d.ts +15 -1
  57. package/lib/types/components/docs/index.d.ts +15 -1
  58. package/lib/types/components/docs/text-selection-render-manager.d.ts +41 -25
  59. package/lib/types/components/docs/vertical-bar.d.ts +15 -1
  60. package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +15 -1
  61. package/lib/types/components/docs/view-model/document-view-model.d.ts +15 -1
  62. package/lib/types/components/extension.d.ts +17 -3
  63. package/lib/types/components/index.d.ts +15 -1
  64. package/lib/types/components/sheets/column-header.d.ts +17 -3
  65. package/lib/types/components/sheets/extensions/background.d.ts +17 -3
  66. package/lib/types/components/sheets/extensions/border.d.ts +17 -3
  67. package/lib/types/components/sheets/extensions/column-header-layout.d.ts +15 -1
  68. package/lib/types/components/sheets/extensions/font.d.ts +17 -3
  69. package/lib/types/components/sheets/extensions/index.d.ts +15 -2
  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 +19 -2
  72. package/lib/types/components/sheets/index.d.ts +15 -1
  73. package/lib/types/components/sheets/interfaces.d.ts +17 -2
  74. package/lib/types/components/sheets/row-header.d.ts +17 -3
  75. package/lib/types/components/sheets/sheet-component.d.ts +23 -9
  76. package/lib/types/components/sheets/sheet-skeleton.d.ts +43 -11
  77. package/lib/types/components/sheets/spreadsheet.d.ts +33 -17
  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 +17 -3
  82. package/lib/types/custom/index.d.ts +15 -1
  83. package/lib/types/engine.d.ts +18 -4
  84. package/lib/types/group.d.ts +17 -3
  85. package/lib/types/index.d.ts +16 -2
  86. package/lib/types/layer.d.ts +29 -3
  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 +17 -3
  90. package/lib/types/scene.-transformer.d.ts +15 -1
  91. package/lib/types/scene.d.ts +18 -5
  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 +17 -6
  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 +17 -11
  108. package/lib/types/thin-engine.d.ts +15 -1
  109. package/lib/types/thin-scene.d.ts +18 -3
  110. package/lib/types/viewport.d.ts +26 -11
  111. package/lib/umd/index.js +73 -0
  112. package/package.json +22 -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 +0 -13
  183. package/lib/types/components/sheets/extensions/border-auxiliary.d.ts.map +0 -1
  184. package/lib/types/components/sheets/extensions/border.d.ts.map +0 -1
  185. package/lib/types/components/sheets/extensions/column-header-layout.d.ts.map +0 -1
  186. package/lib/types/components/sheets/extensions/font.d.ts.map +0 -1
  187. package/lib/types/components/sheets/extensions/index.d.ts.map +0 -1
  188. package/lib/types/components/sheets/extensions/row-header-layout.d.ts.map +0 -1
  189. package/lib/types/components/sheets/extensions/sheet-extension.d.ts.map +0 -1
  190. package/lib/types/components/sheets/index.d.ts.map +0 -1
  191. package/lib/types/components/sheets/interfaces.d.ts.map +0 -1
  192. package/lib/types/components/sheets/row-header.d.ts.map +0 -1
  193. package/lib/types/components/sheets/sheet-component.d.ts.map +0 -1
  194. package/lib/types/components/sheets/sheet-skeleton.d.ts.map +0 -1
  195. package/lib/types/components/sheets/spreadsheet.d.ts.map +0 -1
  196. package/lib/types/components/skeleton.d.ts.map +0 -1
  197. package/lib/types/components/slides/index.d.ts.map +0 -1
  198. package/lib/types/components/slides/slide.d.ts.map +0 -1
  199. package/lib/types/custom/custom-object.d.ts.map +0 -1
  200. package/lib/types/custom/index.d.ts.map +0 -1
  201. package/lib/types/engine.d.ts.map +0 -1
  202. package/lib/types/group.d.ts.map +0 -1
  203. package/lib/types/index.d.ts.map +0 -1
  204. package/lib/types/layer.d.ts.map +0 -1
  205. package/lib/types/render-engine.d.ts.map +0 -1
  206. package/lib/types/render-manager.service.d.ts.map +0 -1
  207. package/lib/types/scene-viewer.d.ts.map +0 -1
  208. package/lib/types/scene.-transformer.d.ts.map +0 -1
  209. package/lib/types/scene.d.ts.map +0 -1
  210. package/lib/types/scene.input-manager.d.ts.map +0 -1
  211. package/lib/types/scroll-timer.d.ts.map +0 -1
  212. package/lib/types/services/object-transform-manager.service.d.ts.map +0 -1
  213. package/lib/types/shape/base-scroll-bar.d.ts.map +0 -1
  214. package/lib/types/shape/circle.d.ts.map +0 -1
  215. package/lib/types/shape/control.d.ts.map +0 -1
  216. package/lib/types/shape/drawing.d.ts.map +0 -1
  217. package/lib/types/shape/index.d.ts.map +0 -1
  218. package/lib/types/shape/path.d.ts.map +0 -1
  219. package/lib/types/shape/picture.d.ts.map +0 -1
  220. package/lib/types/shape/rect.d.ts.map +0 -1
  221. package/lib/types/shape/regular-polygon.d.ts.map +0 -1
  222. package/lib/types/shape/rich-text.d.ts.map +0 -1
  223. package/lib/types/shape/scroll-bar.d.ts.map +0 -1
  224. package/lib/types/shape/selection.d.ts.map +0 -1
  225. package/lib/types/shape/shape.d.ts.map +0 -1
  226. package/lib/types/thin-engine.d.ts.map +0 -1
  227. package/lib/types/thin-scene.d.ts.map +0 -1
  228. 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 { IDocumentBody, ITextRun } from '@univerjs/core';
2
17
  import { DocumentDataModel } from '@univerjs/core';
3
18
  import type { IDisposable } from '@wendellhu/redi';
@@ -48,4 +63,3 @@ export declare class DocumentViewModel implements IDisposable {
48
63
  private _getNextNode;
49
64
  private _insertParagraph;
50
65
  }
51
- //# sourceMappingURL=document-view-model.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 { IDocumentRenderConfig, IScale, Nullable } from '@univerjs/core';
2
17
  import { Registry } from '@univerjs/core';
3
18
  import type { BaseObject } from '../base-object';
@@ -10,7 +25,7 @@ export interface IExtensionConfig {
10
25
  alignOffset?: Vector2;
11
26
  renderConfig?: IDocumentRenderConfig;
12
27
  }
13
- export declare class ComponentExtension<T, U> {
28
+ export declare class ComponentExtension<T, U, V> {
14
29
  uKey: string;
15
30
  type: U;
16
31
  zIndex: number;
@@ -18,7 +33,7 @@ export declare class ComponentExtension<T, U> {
18
33
  translateX: number;
19
34
  translateY: number;
20
35
  extensionOffset: IExtensionConfig;
21
- draw(ctx: CanvasRenderingContext2D, parentScale: IScale, skeleton: T): void;
36
+ draw(ctx: CanvasRenderingContext2D, parentScale: IScale, skeleton: T, diffBounds?: V): void;
22
37
  clearCache(): void;
23
38
  protected _getScale(parentScale: IScale): number;
24
39
  }
@@ -26,4 +41,3 @@ export declare const SpreadsheetExtensionRegistry: Registry;
26
41
  export declare const SheetRowHeaderExtensionRegistry: Registry;
27
42
  export declare const SheetColumnHeaderExtensionRegistry: Registry;
28
43
  export declare const DocumentsSpanAndLineExtensionRegistry: Registry;
29
- //# sourceMappingURL=extension.d.ts.map
@@ -1,7 +1,21 @@
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 './component';
2
17
  export * from './docs';
3
18
  export * from './extension';
4
19
  export * from './sheets';
5
20
  export * from './skeleton';
6
21
  export * from './slides';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,19 @@
1
- import type { IBoundRect, Vector2 } from '../../basics/vector2';
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 { IViewportBound, Vector2 } from '../../basics/vector2';
2
17
  import type { ColumnHeaderLayout } from './extensions/column-header-layout';
3
18
  import { SpreadsheetHeader } from './sheet-component';
4
19
  import type { SpreadsheetSkeleton } from './sheet-skeleton';
@@ -6,8 +21,7 @@ export declare class SpreadsheetColumnHeader extends SpreadsheetHeader {
6
21
  private _columnHeaderLayoutExtension;
7
22
  constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
8
23
  get columnHeaderLayoutExtension(): ColumnHeaderLayout;
9
- draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
24
+ draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
10
25
  isHit(coord: Vector2): boolean;
11
26
  private _initialDefaultExtension;
12
27
  }
13
- //# sourceMappingURL=column-header.d.ts.map
@@ -1,9 +1,23 @@
1
- import type { IScale } from '@univerjs/core';
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 { IRange, IScale } from '@univerjs/core';
2
17
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
3
18
  import { SheetExtension } from './sheet-extension';
4
19
  export declare class Background extends SheetExtension {
5
20
  uKey: string;
6
21
  zIndex: number;
7
- draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton): void;
22
+ draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges?: IRange[]): void;
8
23
  }
9
- //# sourceMappingURL=background.d.ts.map
@@ -1,10 +1,24 @@
1
- import type { IScale } from '@univerjs/core';
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 { IRange, IScale } from '@univerjs/core';
2
17
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
3
18
  import { SheetExtension } from './sheet-extension';
4
19
  export declare class Border extends SheetExtension {
5
20
  uKey: string;
6
21
  zIndex: number;
7
- draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton): void;
22
+ draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges?: IRange[]): void;
8
23
  private _getOverflowExclusion;
9
24
  }
10
- //# sourceMappingURL=border.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 { IScale } from '@univerjs/core';
2
17
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
3
18
  import { SheetExtension } from './sheet-extension';
@@ -6,4 +21,3 @@ export declare class ColumnHeaderLayout extends SheetExtension {
6
21
  zIndex: number;
7
22
  draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton): void;
8
23
  }
9
- //# sourceMappingURL=column-header-layout.d.ts.map
@@ -1,4 +1,19 @@
1
- import type { IColorStyle, IScale } from '@univerjs/core';
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 { IColorStyle, IRange, IScale } from '@univerjs/core';
2
17
  import { ObjectMatrix } from '@univerjs/core';
3
18
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
4
19
  import { SheetExtension } from './sheet-extension';
@@ -8,8 +23,7 @@ export declare class Font extends SheetExtension {
8
23
  changeFontColor: ObjectMatrix<IColorStyle>;
9
24
  getDocuments(): any;
10
25
  setChangeFontColor(r: number, c: number, color: IColorStyle): void;
11
- draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton): void;
26
+ draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges?: IRange[]): void;
12
27
  private _renderDocuments;
13
28
  private _clipRectangle;
14
29
  }
15
- //# sourceMappingURL=font.d.ts.map
@@ -1,8 +1,21 @@
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 './background';
2
17
  export * from './border';
3
- export * from './border-auxiliary';
4
18
  export * from './column-header-layout';
5
19
  export * from './font';
6
20
  export * from './row-header-layout';
7
21
  export * from './sheet-extension';
8
- //# 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 { IScale } from '@univerjs/core';
2
17
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
3
18
  import { SheetExtension } from './sheet-extension';
@@ -6,4 +21,3 @@ export declare class RowHeaderLayout extends SheetExtension {
6
21
  zIndex: number;
7
22
  draw(ctx: CanvasRenderingContext2D, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton): void;
8
23
  }
9
- //# sourceMappingURL=row-header-layout.d.ts.map
@@ -1,11 +1,28 @@
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 } from '@univerjs/core';
2
17
  import { ComponentExtension } from '../../extension';
3
18
  import type { SpreadsheetSkeleton } from '../sheet-skeleton';
4
19
  export declare enum SHEET_EXTENSION_TYPE {
5
20
  GRID = 0
6
21
  }
7
- export declare class SheetExtension extends ComponentExtension<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE> {
22
+ export declare class SheetExtension extends ComponentExtension<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> {
8
23
  type: SHEET_EXTENSION_TYPE;
9
24
  getCellIndex(rowIndex: number, columnIndex: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[], dataMergeCache: IRange[]): import("@univerjs/core").ISelectionCellWithCoord;
25
+ isRenderDiffRangesByCell(row: number, column: number, diffRanges?: IRange[]): boolean;
26
+ isRenderDiffRangesByColumn(column: number, diffRanges?: IRange[]): boolean;
27
+ isRenderDiffRangesByRow(row: number, diffRanges?: IRange[]): boolean;
10
28
  }
11
- //# sourceMappingURL=sheet-extension.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 './column-header';
2
17
  export * from './extensions';
3
18
  export * from './interfaces';
@@ -5,4 +20,3 @@ export * from './row-header';
5
20
  export * from './sheet-component';
6
21
  export * from './sheet-skeleton';
7
22
  export * from './spreadsheet';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,19 @@
1
- import type { BorderStyleTypes, HorizontalAlign, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
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 { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
2
17
  import type { BORDER_TYPE } from '../../basics/const';
3
18
  import type { DocumentSkeleton } from '../docs/doc-skeleton';
4
19
  export interface BorderCache {
@@ -24,6 +39,7 @@ interface fontCache {
24
39
  }
25
40
  export interface IStylesCache {
26
41
  background?: backgroundCache;
42
+ backgroundPositions?: ObjectMatrix<ISelectionCellWithCoord>;
27
43
  font?: fontCache;
28
44
  border?: ObjectMatrix<BorderCache>;
29
45
  }
@@ -32,4 +48,3 @@ export declare enum ShowGridlinesState {
32
48
  ON = 1
33
49
  }
34
50
  export {};
35
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1,4 +1,19 @@
1
- import type { IBoundRect, Vector2 } from '../../basics/vector2';
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 { IViewportBound, Vector2 } from '../../basics/vector2';
2
17
  import type { RowHeaderLayout } from './extensions/row-header-layout';
3
18
  import { SpreadsheetHeader } from './sheet-component';
4
19
  import type { SpreadsheetSkeleton } from './sheet-skeleton';
@@ -6,8 +21,7 @@ export declare class SpreadsheetRowHeader extends SpreadsheetHeader {
6
21
  private _rowHeaderLayoutExtension;
7
22
  constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
8
23
  get rowHeaderLayoutExtension(): RowHeaderLayout;
9
- draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
24
+ draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
10
25
  isHit(coord: Vector2): boolean;
11
26
  private _initialDefaultExtension;
12
27
  }
13
- //# sourceMappingURL=row-header.d.ts.map
@@ -1,17 +1,32 @@
1
- import type { Nullable } from '@univerjs/core';
2
- import type { IBoundRect, Vector2 } from '../../basics/vector2';
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 { IRange, Nullable } from '@univerjs/core';
17
+ import type { IViewportBound, Vector2 } from '../../basics/vector2';
3
18
  import { RenderComponent } from '../component';
4
19
  import type { SHEET_EXTENSION_TYPE } from './extensions/sheet-extension';
5
20
  import type { SpreadsheetSkeleton } from './sheet-skeleton';
6
- export declare class SheetComponent extends RenderComponent<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE> {
21
+ export declare class SheetComponent extends RenderComponent<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> {
7
22
  private _skeleton?;
8
23
  constructor(oKey: string, _skeleton?: SpreadsheetSkeleton | undefined);
9
24
  getSkeleton(): SpreadsheetSkeleton | undefined;
10
25
  updateSkeleton(spreadsheetSkeleton: SpreadsheetSkeleton): void;
11
- render(mainCtx: CanvasRenderingContext2D, bounds?: IBoundRect): this | undefined;
26
+ render(mainCtx: CanvasRenderingContext2D, bounds?: IViewportBound): this | undefined;
12
27
  getParentScale(): {
13
- scaleX: any;
14
- scaleY: any;
28
+ scaleX: number;
29
+ scaleY: number;
15
30
  };
16
31
  getDocuments(): any;
17
32
  getNoMergeCellPositionByIndex(rowIndex: number, columnIndex: number): Nullable<{
@@ -30,9 +45,8 @@ export declare class SheetComponent extends RenderComponent<SpreadsheetSkeleton,
30
45
  endRow: number;
31
46
  endColumn: number;
32
47
  }>;
33
- protected _draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
48
+ protected _draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
34
49
  }
35
50
  export declare class SpreadsheetHeader extends SheetComponent {
36
- protected _draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
51
+ protected _draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
37
52
  }
38
- //# sourceMappingURL=sheet-component.d.ts.map
@@ -1,6 +1,21 @@
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, IPaddingData, IRange, ISelectionCellWithCoord, ITextRotation, IWorksheetData, LocaleService, Nullable, Styles, Worksheet } from '@univerjs/core';
2
17
  import { BooleanNumber, DocumentDataModel, HorizontalAlign, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
3
- import type { IBoundRect } from '../../basics/vector2';
18
+ import type { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
4
19
  import { DocumentSkeleton } from '../docs/doc-skeleton';
5
20
  import { Skeleton } from '../skeleton';
6
21
  import type { IStylesCache } from './interfaces';
@@ -53,7 +68,7 @@ export declare class SpreadsheetSkeleton extends Skeleton {
53
68
  private _showGridlines;
54
69
  private _marginTop;
55
70
  private _marginLeft;
56
- constructor(_worksheet: Worksheet | undefined, _config: IWorksheetData, _cellData: ObjectMatrix<ICellData>, _styles: Styles, _localeService: LocaleService);
71
+ constructor(_worksheet: Worksheet | undefined, _config: IWorksheetData, _cellData: ObjectMatrix<Nullable<ICellData>>, _styles: Styles, _localeService: LocaleService);
57
72
  get rowHeightAccumulation(): number[];
58
73
  get rowTotalHeight(): number;
59
74
  get columnWidthAccumulation(): number[];
@@ -76,7 +91,7 @@ export declare class SpreadsheetSkeleton extends Skeleton {
76
91
  * @param LocaleService
77
92
  * @returns
78
93
  */
79
- static create(worksheet: Worksheet | undefined, config: IWorksheetData, cellData: ObjectMatrix<ICellData>, styles: Styles, LocaleService: LocaleService): SpreadsheetSkeleton;
94
+ static create(worksheet: Worksheet | undefined, config: IWorksheetData, cellData: ObjectMatrix<Nullable<ICellData>>, styles: Styles, LocaleService: LocaleService): SpreadsheetSkeleton;
80
95
  /**
81
96
  * @deprecated should never expose a property that is provided by another module!
82
97
  * @returns
@@ -86,7 +101,7 @@ export declare class SpreadsheetSkeleton extends Skeleton {
86
101
  * @deprecated should never expose a property that is provided by another module!
87
102
  * @returns
88
103
  */
89
- getCellData(): ObjectMatrix<ICellData>;
104
+ getCellData(): ObjectMatrix<Nullable<ICellData>>;
90
105
  /**
91
106
  * @deprecated should never expose a property that is provided by another module!
92
107
  * @returns
@@ -95,13 +110,19 @@ export declare class SpreadsheetSkeleton extends Skeleton {
95
110
  setOverflowCache(value: ObjectMatrix<IRange>): void;
96
111
  setMarginLeft(left: number): void;
97
112
  setMarginTop(top: number): void;
98
- calculateSegment(bounds?: IBoundRect): true | undefined;
99
- calculateWithoutClearingCache(bounds?: IBoundRect): this | undefined;
100
- calculate(bounds?: IBoundRect): this;
113
+ calculateSegment(bounds?: IViewportBound): true | undefined;
114
+ calculateWithoutClearingCache(bounds?: IViewportBound): this | undefined;
115
+ calculate(bounds?: IViewportBound): this;
101
116
  calculateAutoHeightInRange(ranges: Nullable<IRange[]>): IRowAutoHeightInfo[];
102
117
  private _calculateRowAutoHeight;
103
118
  updateLayout(): this | undefined;
104
- getRowColumnSegment(bounds?: IBoundRect): {
119
+ getRowColumnSegment(bounds?: IViewportBound): {
120
+ startRow: number;
121
+ endRow: number;
122
+ startColumn: number;
123
+ endColumn: number;
124
+ };
125
+ getRowColumnSegmentByViewBound(bound?: IBoundRectNoAngle): {
105
126
  startRow: number;
106
127
  endRow: number;
107
128
  startColumn: number;
@@ -213,7 +234,19 @@ export declare class SpreadsheetSkeleton extends Skeleton {
213
234
  endX: number;
214
235
  isMerged: boolean;
215
236
  isMergedMainCell: boolean;
216
- mergeInfo: import("@univerjs/core").IRangeWithCoord;
237
+ mergeInfo: {
238
+ startX: number;
239
+ startY: number;
240
+ endX: number;
241
+ endY: number;
242
+ startColumn: number;
243
+ endColumn: number;
244
+ rangeType?: import("@univerjs/core").RANGE_TYPE | undefined;
245
+ startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
246
+ endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
247
+ startRow: number;
248
+ endRow: number;
249
+ };
217
250
  };
218
251
  convertTransformToOffsetX(offsetX: number, scaleX: number, scrollXY: {
219
252
  x: number;
@@ -245,7 +278,7 @@ export declare class SpreadsheetSkeleton extends Skeleton {
245
278
  * @param bounds The range of the visible area of the canvas
246
279
  * @returns The range cell index of the canvas visible area
247
280
  */
248
- protected _getBounding(rowHeightAccumulation: number[], columnWidthAccumulation: number[], bounds?: IBoundRect): {
281
+ protected _getBounding(rowHeightAccumulation: number[], columnWidthAccumulation: number[], viewBound?: IBoundRectNoAngle): {
249
282
  startRow: number;
250
283
  endRow: number;
251
284
  startColumn: number;
@@ -272,4 +305,3 @@ export declare class SpreadsheetSkeleton extends Skeleton {
272
305
  private _getMergeCells;
273
306
  }
274
307
  export {};
275
- //# sourceMappingURL=sheet-skeleton.d.ts.map
@@ -1,31 +1,44 @@
1
- import type { IBoundRect } from '../../basics/vector2';
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 { IViewportBound } from '../../basics/vector2';
2
17
  import { Vector2 } from '../../basics/vector2';
3
18
  import { Documents } from '../docs/document';
4
19
  import type { Background } from './extensions/background';
5
20
  import type { Border } from './extensions/border';
6
- import type { BorderAuxiliary } from './extensions/border-auxiliary';
7
21
  import type { Font } from './extensions/font';
8
22
  import { SheetComponent } from './sheet-component';
9
23
  import type { SpreadsheetSkeleton } from './sheet-skeleton';
10
24
  export declare class Spreadsheet extends SheetComponent {
11
25
  private _allowCache;
12
- private _borderAuxiliaryExtension;
13
26
  private _backgroundExtension;
14
27
  private _borderExtension;
15
28
  private _fontExtension;
16
29
  private _cacheCanvas;
17
- private _boundsCache;
18
- private _cacheOffsetX;
19
- private _cacheOffsetY;
20
- private _hasSelection;
30
+ private _refreshIncrementalState;
31
+ private _forceDirty;
32
+ private _overflowCacheRuntime;
33
+ private _overflowCacheRuntimeRange;
34
+ private _overflowCacheRuntimeTimeout;
21
35
  private _documents;
22
36
  constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton, _allowCache?: boolean);
23
- get borderAuxiliaryExtension(): BorderAuxiliary;
24
37
  get backgroundExtension(): Background;
25
38
  get borderExtension(): Border;
26
39
  get fontExtension(): Font;
27
40
  getDocuments(): Documents;
28
- draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
41
+ draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
29
42
  isHit(coord: Vector2): boolean;
30
43
  getNoMergeCellPositionByIndex(rowIndex: number, columnIndex: number): {
31
44
  startY: number;
@@ -37,6 +50,7 @@ export declare class Spreadsheet extends SheetComponent {
37
50
  x: number;
38
51
  y: number;
39
52
  };
53
+ makeForceDirty(state?: boolean): void;
40
54
  getAncestorScrollXY(offsetX: number, offsetY: number): {
41
55
  x: number;
42
56
  y: number;
@@ -47,11 +61,10 @@ export declare class Spreadsheet extends SheetComponent {
47
61
  endRow: number;
48
62
  endColumn: number;
49
63
  } | undefined;
50
- render(mainCtx: CanvasRenderingContext2D, bounds?: IBoundRect): this;
51
- resizeCacheCanvas(): void;
52
- private _checkNewBounds;
53
- protected _applyCache(ctx?: CanvasRenderingContext2D): void;
54
- protected _draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
64
+ render(mainCtx: CanvasRenderingContext2D, bounds?: IViewportBound): this | undefined;
65
+ private _resizeCacheCanvas;
66
+ protected _applyCache(ctx?: CanvasRenderingContext2D, sx?: number, sy?: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void;
67
+ protected _draw(ctx: CanvasRenderingContext2D, bounds?: IViewportBound): void;
55
68
  private _getAncestorSize;
56
69
  private _getAncestorParent;
57
70
  private _initialDefaultExtension;
@@ -64,7 +77,10 @@ export declare class Spreadsheet extends SheetComponent {
64
77
  * Overflow on the left or right is aligned according to the text's horizontal alignment.
65
78
  */
66
79
  private _calculateOverflow;
67
- private _differentBounds;
68
- private _checkSheetDifferentBounds;
80
+ private _drawAuxiliary;
81
+ /**
82
+ * Clear the guide lines within a range in the table, to make room for merged cells and overflow.
83
+ */
84
+ private _clearRectangle;
85
+ private _clearBackground;
69
86
  }
70
- //# sourceMappingURL=spreadsheet.d.ts.map