@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 { BaseObject } from '../base-object';
2
17
  import type { IBoundRect, Vector2 } from '../basics/vector2';
3
18
  export declare class CustomObject extends BaseObject {
@@ -10,4 +25,3 @@ export declare class CustomObject extends BaseObject {
10
25
  render(mainCtx: CanvasRenderingContext2D, bounds?: IBoundRect): this;
11
26
  isHit(coord: Vector2): boolean;
12
27
  }
13
- //# sourceMappingURL=custom-object.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 * from './custom-object';
2
- //# 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 { Observable } from '@univerjs/core';
2
17
  import type { CURSOR_TYPE } from './basics/const';
3
18
  import { Canvas } from './canvas';
@@ -93,4 +108,3 @@ export declare class Engine extends ThinEngine<Scene> {
93
108
  private _getPassive;
94
109
  private __getPointerType;
95
110
  }
96
- //# sourceMappingURL=engine.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 { CURSOR_TYPE } from './basics/const';
3
18
  import { RENDER_CLASS_TYPE } from './basics/const';
@@ -22,4 +37,3 @@ export declare class Group extends BaseObject {
22
37
  dispose(): void;
23
38
  private _transformBounds;
24
39
  }
25
- //# sourceMappingURL=group.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 './base-object';
2
17
  export * from './basics';
3
18
  export * from './canvas';
@@ -7,11 +22,10 @@ export * from './custom';
7
22
  export * from './engine';
8
23
  export * from './group';
9
24
  export * from './layer';
10
- export { IRenderingEngine, RenderEngine } from './render-engine';
25
+ export { IRenderingEngine, UniverRenderEnginePlugin } from './render-engine';
11
26
  export * from './render-manager.service';
12
27
  export * from './scene';
13
28
  export * from './scene-viewer';
14
29
  export * from './scroll-timer';
15
30
  export * from './shape';
16
31
  export * from './viewport';
17
- //# 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 { BaseObject } from './base-object';
2
17
  import type { ThinScene } from './thin-scene';
3
18
  export declare class Layer {
@@ -18,4 +33,3 @@ export declare class Layer {
18
33
  clear(): void;
19
34
  dispose(): void;
20
35
  }
21
- //# sourceMappingURL=layer.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 { Plugin, PluginType } from '@univerjs/core';
2
17
  import { Injector } from '@wendellhu/redi';
3
18
  import { Engine } from './engine';
@@ -5,9 +20,8 @@ import { Engine } from './engine';
5
20
  * The global rendering engine.
6
21
  */
7
22
  export declare const IRenderingEngine: import("@wendellhu/redi").IdentifierDecorator<Engine>;
8
- export declare class RenderEngine extends Plugin {
23
+ export declare class UniverRenderEnginePlugin extends Plugin {
9
24
  readonly _injector: Injector;
10
25
  static type: PluginType;
11
26
  constructor(_config: undefined, _injector: Injector);
12
27
  }
13
- //# sourceMappingURL=render-engine.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 { Observable } from 'rxjs';
3
18
  import type { BaseObject } from './base-object';
@@ -48,4 +63,3 @@ export declare class RenderManagerService implements IRenderManagerService {
48
63
  private _disposeItem;
49
64
  }
50
65
  export declare const IRenderManagerService: import("@wendellhu/redi").IdentifierDecorator<RenderManagerService>;
51
- //# sourceMappingURL=render-manager.service.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 { BaseObject } from './base-object';
3
18
  import { RENDER_CLASS_TYPE } from './basics/const';
@@ -24,4 +39,3 @@ export declare class SceneViewer extends BaseObject {
24
39
  dispose(): void;
25
40
  private _initialProps;
26
41
  }
27
- //# sourceMappingURL=scene-viewer.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 { Observable } from '@univerjs/core';
3
18
  import type { BaseObject } from './base-object';
@@ -126,4 +141,3 @@ export declare class Transformer implements ITransformerConfig {
126
141
  private _addCancelObserver;
127
142
  }
128
143
  export {};
129
- //# sourceMappingURL=scene.-transformer.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 { BaseObject } from './base-object';
3
18
  import { CURSOR_TYPE } from './basics/const';
@@ -121,4 +136,3 @@ export declare class Scene extends ThinScene {
121
136
  private _setTransForm;
122
137
  private _getGroupCumLeftRight;
123
138
  }
124
- //# sourceMappingURL=scene.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 { IMouseEvent } from './basics/i-events';
2
17
  import type { ThinScene } from './thin-scene';
3
18
  export declare class InputManager {
@@ -6,7 +21,8 @@ export declare class InputManager {
6
21
  /** Time in milliseconds to wait to raise long press events if button is still pressed */
7
22
  static LongPressDelay: number;
8
23
  /** Time in milliseconds with two consecutive clicks will be considered as a double or triple click */
9
- static DoubleOrTripleClickDelay: number;
24
+ static DoubleClickDelay: number;
25
+ static TripleClickDelay: number;
10
26
  /** If you need to check double click without raising a single click at first click, enable this flag */
11
27
  static ExclusiveDoubleClickMode: boolean;
12
28
  /** This is a defensive check to not allow control attachment prior to an already active one. If already attached, previous control is unattached before attaching the new one. */
@@ -24,7 +40,9 @@ export declare class InputManager {
24
40
  private _currentMouseEnterPicked;
25
41
  private _startingPosition;
26
42
  private _delayedTimeout;
43
+ private _delayedTripeTimeout;
27
44
  private _doubleClickOccurred;
45
+ private _tripleClickState;
28
46
  private _currentObject;
29
47
  constructor(scene: ThinScene);
30
48
  mouseLeaveEnterHandler(evt: IMouseEvent): void;
@@ -43,4 +61,3 @@ export declare class InputManager {
43
61
  private _prePointerDoubleOrTripleClick;
44
62
  private _resetDoubleClickParam;
45
63
  }
46
- //# sourceMappingURL=scene.input-manager.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 { IPaddingData } from '@univerjs/core';
2
17
  export declare enum ScrollTimerType {
3
18
  ALL = 0,
@@ -32,4 +47,3 @@ export declare class ScrollTimer {
32
47
  private _runRenderLoop;
33
48
  private _findAncestorScene;
34
49
  }
35
- //# sourceMappingURL=scroll-timer.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 { IDisposable } from '@wendellhu/redi';
3
18
  export interface ITransformObject {
@@ -38,4 +53,3 @@ export declare class ObjectTransformManagerService implements IDisposable {
38
53
  setObject(insertParam: IObjectTransformManagerInsert): ITransformObject;
39
54
  getObjectBySearch(searchParam: IObjectTransformManagerSearch): Nullable<ITransformObject>;
40
55
  }
41
- //# sourceMappingURL=object-transform-manager.service.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 { Vector2 } from '../basics/vector2';
3
18
  import type { ThinScene } from '../thin-scene';
@@ -44,4 +59,3 @@ export declare class BaseScrollBar {
44
59
  makeDirty(state: boolean): void;
45
60
  render(ctx: CanvasRenderingContext2D, left?: number, top?: number): void;
46
61
  }
47
- //# sourceMappingURL=base-scroll-bar.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 { IShapeProps } from './shape';
2
17
  import { Shape } from './shape';
3
18
  export interface ICircleProps extends IShapeProps {
@@ -15,4 +30,3 @@ export declare class Circle extends Shape<ICircleProps> {
15
30
  protected _draw(ctx: CanvasRenderingContext2D): void;
16
31
  private _setFixBoundingBox;
17
32
  }
18
- //# sourceMappingURL=circle.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
  export declare class Control {
2
17
  }
3
- //# sourceMappingURL=control.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
  export declare class Drawing {
2
17
  }
3
- //# sourceMappingURL=drawing.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 './circle';
2
17
  export * from './control';
3
18
  export * from './drawing';
@@ -9,4 +24,3 @@ export * from './rich-text';
9
24
  export * from './scroll-bar';
10
25
  export * from './selection';
11
26
  export * from './shape';
12
- //# 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 { IShapeProps } from './shape';
2
17
  import { Shape } from './shape';
3
18
  interface IPathDataArray {
@@ -89,4 +104,3 @@ export declare class Path extends Shape<IPathProps> {
89
104
  private _getSelfRect;
90
105
  }
91
106
  export {};
92
- //# sourceMappingURL=path.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 { IShapeProps } from './shape';
3
18
  import { Shape } from './shape';
@@ -21,4 +36,3 @@ export declare class Picture extends Shape<IPictureProps> {
21
36
  protected _draw(ctx: CanvasRenderingContext2D): void;
22
37
  protected _init(): void;
23
38
  }
24
- //# sourceMappingURL=picture.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 { IShapeProps } from './shape';
2
17
  import { Shape } from './shape';
3
18
  export interface IRectProps extends IShapeProps {
@@ -14,4 +29,3 @@ export declare class Rect<T extends IRectProps = IRectProps> extends Shape<T> {
14
29
  };
15
30
  protected _draw(ctx: CanvasRenderingContext2D): void;
16
31
  }
17
- //# sourceMappingURL=rect.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 { IObjectFullState } from '../basics/interfaces';
2
17
  import type { IPoint } from '../basics/vector2';
3
18
  import type { IShapeProps } from './shape';
@@ -39,4 +54,3 @@ export declare class RegularPolygon extends Shape<IRegularPolygonProps> {
39
54
  private _setFixBoundingBox;
40
55
  private _getSelfRect;
41
56
  }
42
- //# sourceMappingURL=regular-polygon.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 { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core';
2
17
  import { BaseObject } from '../base-object';
3
18
  import type { IBoundRect } from '../basics/vector2';
@@ -42,4 +57,3 @@ export declare class RichText extends BaseObject {
42
57
  private _initialProps;
43
58
  private _applyCache;
44
59
  }
45
- //# sourceMappingURL=rich-text.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 { Vector2 } from '../basics/vector2';
2
17
  import type { Viewport } from '../viewport';
3
18
  import type { IScrollBarProps } from './base-scroll-bar';
@@ -42,4 +57,3 @@ export declare class ScrollBar extends BaseScrollBar {
42
57
  private _hoverFunc;
43
58
  private _initialHorizontalEvent;
44
59
  }
45
- //# sourceMappingURL=scroll-bar.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
  export declare class Selection {
2
17
  }
3
- //# sourceMappingURL=selection.d.ts.map