@univerjs/engine-render 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +23962 -0
- package/lib/esm/index.js +23259 -0
- package/lib/types/base-object.d.ts +155 -0
- package/lib/types/base-object.d.ts.map +1 -0
- package/lib/types/basics/cell-data.d.ts +6 -0
- package/lib/types/basics/cell-data.d.ts.map +1 -0
- package/lib/types/basics/const.d.ts +263 -0
- package/lib/types/basics/const.d.ts.map +1 -0
- package/lib/types/basics/document-node-tools.d.ts +10 -0
- package/lib/types/basics/document-node-tools.d.ts.map +1 -0
- package/lib/types/basics/draw.d.ts +39 -0
- package/lib/types/basics/draw.d.ts.map +1 -0
- package/lib/types/basics/font-cache.d.ts +37 -0
- package/lib/types/basics/font-cache.d.ts.map +1 -0
- package/lib/types/basics/i-document-skeleton-cached.d.ts +210 -0
- package/lib/types/basics/i-document-skeleton-cached.d.ts.map +1 -0
- package/lib/types/basics/i-events.d.ts +304 -0
- package/lib/types/basics/i-events.d.ts.map +1 -0
- package/lib/types/basics/index.d.ts +16 -0
- package/lib/types/basics/index.d.ts.map +1 -0
- package/lib/types/basics/interfaces.d.ts +102 -0
- package/lib/types/basics/interfaces.d.ts.map +1 -0
- package/lib/types/basics/path2.d.ts +10 -0
- package/lib/types/basics/path2.d.ts.map +1 -0
- package/lib/types/basics/performance-monitor.d.ts +111 -0
- package/lib/types/basics/performance-monitor.d.ts.map +1 -0
- package/lib/types/basics/position.d.ts +13 -0
- package/lib/types/basics/position.d.ts.map +1 -0
- package/lib/types/basics/quick-event.d.ts +4 -0
- package/lib/types/basics/quick-event.d.ts.map +1 -0
- package/lib/types/basics/range.d.ts +17 -0
- package/lib/types/basics/range.d.ts.map +1 -0
- package/lib/types/basics/scroll-xy.d.ts +5 -0
- package/lib/types/basics/scroll-xy.d.ts.map +1 -0
- package/lib/types/basics/tools.d.ts +109 -0
- package/lib/types/basics/tools.d.ts.map +1 -0
- package/lib/types/basics/transform.d.ts +143 -0
- package/lib/types/basics/transform.d.ts.map +1 -0
- package/lib/types/basics/unit-convert.d.ts +3 -0
- package/lib/types/basics/unit-convert.d.ts.map +1 -0
- package/lib/types/basics/vector2.d.ts +438 -0
- package/lib/types/basics/vector2.d.ts.map +1 -0
- package/lib/types/canvas.d.ts +55 -0
- package/lib/types/canvas.d.ts.map +1 -0
- package/lib/types/components/component.d.ts +13 -0
- package/lib/types/components/component.d.ts.map +1 -0
- package/lib/types/components/docs/block/block-error.d.ts +2 -0
- package/lib/types/components/docs/block/block-error.d.ts.map +1 -0
- package/lib/types/components/docs/block/index.d.ts +4 -0
- package/lib/types/components/docs/block/index.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts +3 -0
- package/lib/types/components/docs/block/paragraph/bullet-ruler.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/bullet.d.ts +5 -0
- package/lib/types/components/docs/block/paragraph/bullet.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/index.d.ts +7 -0
- package/lib/types/components/docs/block/paragraph/index.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts +5 -0
- package/lib/types/components/docs/block/paragraph/inline-drawing.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts +12 -0
- package/lib/types/components/docs/block/paragraph/language-ruler.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts +4 -0
- package/lib/types/components/docs/block/paragraph/layout-ruler.d.ts.map +1 -0
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts +6 -0
- package/lib/types/components/docs/block/paragraph/paragraph.d.ts.map +1 -0
- package/lib/types/components/docs/block/section.d.ts +10 -0
- package/lib/types/components/docs/block/section.d.ts.map +1 -0
- package/lib/types/components/docs/block/table/table-cell.d.ts +1 -0
- package/lib/types/components/docs/block/table/table-cell.d.ts.map +1 -0
- package/lib/types/components/docs/block/table/table-row.d.ts +1 -0
- package/lib/types/components/docs/block/table/table-row.d.ts.map +1 -0
- package/lib/types/components/docs/block/table/table.d.ts +1 -0
- package/lib/types/components/docs/block/table/table.d.ts.map +1 -0
- package/lib/types/components/docs/common/column.d.ts +5 -0
- package/lib/types/components/docs/common/column.d.ts.map +1 -0
- package/lib/types/components/docs/common/convert-cursor.d.ts +60 -0
- package/lib/types/components/docs/common/convert-cursor.d.ts.map +1 -0
- package/lib/types/components/docs/common/index.d.ts +10 -0
- package/lib/types/components/docs/common/index.d.ts.map +1 -0
- package/lib/types/components/docs/common/line.d.ts +20 -0
- package/lib/types/components/docs/common/line.d.ts.map +1 -0
- package/lib/types/components/docs/common/liquid.d.ts +41 -0
- package/lib/types/components/docs/common/liquid.d.ts.map +1 -0
- package/lib/types/components/docs/common/page.d.ts +5 -0
- package/lib/types/components/docs/common/page.d.ts.map +1 -0
- package/lib/types/components/docs/common/range.d.ts +45 -0
- package/lib/types/components/docs/common/range.d.ts.map +1 -0
- package/lib/types/components/docs/common/section.d.ts +6 -0
- package/lib/types/components/docs/common/section.d.ts.map +1 -0
- package/lib/types/components/docs/common/span.d.ts +12 -0
- package/lib/types/components/docs/common/span.d.ts.map +1 -0
- package/lib/types/components/docs/common/tools.d.ts +73 -0
- package/lib/types/components/docs/common/tools.d.ts.map +1 -0
- package/lib/types/components/docs/doc-component.d.ts +34 -0
- package/lib/types/components/docs/doc-component.d.ts.map +1 -0
- package/lib/types/components/docs/doc-extension.d.ts +12 -0
- package/lib/types/components/docs/doc-extension.d.ts.map +1 -0
- package/lib/types/components/docs/doc-skeleton.d.ts +71 -0
- package/lib/types/components/docs/doc-skeleton.d.ts.map +1 -0
- package/lib/types/components/docs/document.d.ts +54 -0
- package/lib/types/components/docs/document.d.ts.map +1 -0
- package/lib/types/components/docs/extensions/background.d.ts +11 -0
- package/lib/types/components/docs/extensions/background.d.ts.map +1 -0
- package/lib/types/components/docs/extensions/border.d.ts +13 -0
- package/lib/types/components/docs/extensions/border.d.ts.map +1 -0
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +12 -0
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts.map +1 -0
- package/lib/types/components/docs/extensions/index.d.ts +5 -0
- package/lib/types/components/docs/extensions/index.d.ts.map +1 -0
- package/lib/types/components/docs/extensions/line.d.ts +13 -0
- package/lib/types/components/docs/extensions/line.d.ts.map +1 -0
- package/lib/types/components/docs/horizon-bar.d.ts +3 -0
- package/lib/types/components/docs/horizon-bar.d.ts.map +1 -0
- package/lib/types/components/docs/index.d.ts +8 -0
- package/lib/types/components/docs/index.d.ts.map +1 -0
- package/lib/types/components/docs/text-selection-render-manager.d.ts +156 -0
- package/lib/types/components/docs/text-selection-render-manager.d.ts.map +1 -0
- package/lib/types/components/docs/vertical-bar.d.ts +3 -0
- package/lib/types/components/docs/vertical-bar.d.ts.map +1 -0
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts +39 -0
- package/lib/types/components/docs/view-model/data-stream-tree-node.d.ts.map +1 -0
- package/lib/types/components/docs/view-model/document-view-model.d.ts +51 -0
- package/lib/types/components/docs/view-model/document-view-model.d.ts.map +1 -0
- package/lib/types/components/extension.d.ts +29 -0
- package/lib/types/components/extension.d.ts.map +1 -0
- package/lib/types/components/index.d.ts +7 -0
- package/lib/types/components/index.d.ts.map +1 -0
- package/lib/types/components/sheets/column-header.d.ts +13 -0
- package/lib/types/components/sheets/column-header.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/background.d.ts +9 -0
- package/lib/types/components/sheets/extensions/background.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts +13 -0
- package/lib/types/components/sheets/extensions/border-auxiliary.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/border.d.ts +10 -0
- package/lib/types/components/sheets/extensions/border.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +9 -0
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/font.d.ts +15 -0
- package/lib/types/components/sheets/extensions/font.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/index.d.ts +8 -0
- package/lib/types/components/sheets/extensions/index.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +9 -0
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts.map +1 -0
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +11 -0
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts.map +1 -0
- package/lib/types/components/sheets/index.d.ts +8 -0
- package/lib/types/components/sheets/index.d.ts.map +1 -0
- package/lib/types/components/sheets/interfaces.d.ts +35 -0
- package/lib/types/components/sheets/interfaces.d.ts.map +1 -0
- package/lib/types/components/sheets/row-header.d.ts +13 -0
- package/lib/types/components/sheets/row-header.d.ts.map +1 -0
- package/lib/types/components/sheets/sheet-component.d.ts +38 -0
- package/lib/types/components/sheets/sheet-component.d.ts.map +1 -0
- package/lib/types/components/sheets/sheet-skeleton.d.ts +275 -0
- package/lib/types/components/sheets/sheet-skeleton.d.ts.map +1 -0
- package/lib/types/components/sheets/spreadsheet.d.ts +70 -0
- package/lib/types/components/sheets/spreadsheet.d.ts.map +1 -0
- package/lib/types/components/skeleton.d.ts +13 -0
- package/lib/types/components/skeleton.d.ts.map +1 -0
- package/lib/types/components/slides/index.d.ts +2 -0
- package/lib/types/components/slides/index.d.ts.map +1 -0
- package/lib/types/components/slides/slide.d.ts +27 -0
- package/lib/types/components/slides/slide.d.ts.map +1 -0
- package/lib/types/custom/custom-object.d.ts +13 -0
- package/lib/types/custom/custom-object.d.ts.map +1 -0
- package/lib/types/custom/index.d.ts +2 -0
- package/lib/types/custom/index.d.ts.map +1 -0
- package/lib/types/engine.d.ts +96 -0
- package/lib/types/engine.d.ts.map +1 -0
- package/lib/types/group.d.ts +25 -0
- package/lib/types/group.d.ts.map +1 -0
- package/lib/types/index.d.ts +17 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/layer.d.ts +21 -0
- package/lib/types/layer.d.ts.map +1 -0
- package/lib/types/render-engine.d.ts +13 -0
- package/lib/types/render-engine.d.ts.map +1 -0
- package/lib/types/render-manager.service.d.ts +51 -0
- package/lib/types/render-manager.service.d.ts.map +1 -0
- package/lib/types/scene-viewer.d.ts +27 -0
- package/lib/types/scene-viewer.d.ts.map +1 -0
- package/lib/types/scene.-transformer.d.ts +129 -0
- package/lib/types/scene.-transformer.d.ts.map +1 -0
- package/lib/types/scene.d.ts +124 -0
- package/lib/types/scene.d.ts.map +1 -0
- package/lib/types/scene.input-manager.d.ts +46 -0
- package/lib/types/scene.input-manager.d.ts.map +1 -0
- package/lib/types/scroll-timer.d.ts +35 -0
- package/lib/types/scroll-timer.d.ts.map +1 -0
- package/lib/types/services/object-transform-manager.service.d.ts +41 -0
- package/lib/types/services/object-transform-manager.service.d.ts.map +1 -0
- package/lib/types/shape/base-scroll-bar.d.ts +47 -0
- package/lib/types/shape/base-scroll-bar.d.ts.map +1 -0
- package/lib/types/shape/circle.d.ts +18 -0
- package/lib/types/shape/circle.d.ts.map +1 -0
- package/lib/types/shape/control.d.ts +3 -0
- package/lib/types/shape/control.d.ts.map +1 -0
- package/lib/types/shape/drawing.d.ts +3 -0
- package/lib/types/shape/drawing.d.ts.map +1 -0
- package/lib/types/shape/index.d.ts +12 -0
- package/lib/types/shape/index.d.ts.map +1 -0
- package/lib/types/shape/path.d.ts +92 -0
- package/lib/types/shape/path.d.ts.map +1 -0
- package/lib/types/shape/picture.d.ts +24 -0
- package/lib/types/shape/picture.d.ts.map +1 -0
- package/lib/types/shape/rect.d.ts +17 -0
- package/lib/types/shape/rect.d.ts.map +1 -0
- package/lib/types/shape/regular-polygon.d.ts +42 -0
- package/lib/types/shape/regular-polygon.d.ts.map +1 -0
- package/lib/types/shape/rich-text.d.ts +45 -0
- package/lib/types/shape/rich-text.d.ts.map +1 -0
- package/lib/types/shape/scroll-bar.d.ts +45 -0
- package/lib/types/shape/scroll-bar.d.ts.map +1 -0
- package/lib/types/shape/selection.d.ts +3 -0
- package/lib/types/shape/selection.d.ts.map +1 -0
- package/lib/types/shape/shape.d.ts +120 -0
- package/lib/types/shape/shape.d.ts.map +1 -0
- package/lib/types/thin-engine.d.ts +33 -0
- package/lib/types/thin-engine.d.ts.map +1 -0
- package/lib/types/thin-scene.d.ts +76 -0
- package/lib/types/thin-scene.d.ts.map +1 -0
- package/lib/types/viewport.d.ts +193 -0
- package/lib/types/viewport.d.ts.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import type { DeepImmutable, FloatArray } from './i-events';
|
|
2
|
+
export interface IPoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class Vector2 implements IPoint {
|
|
7
|
+
/** defines the first coordinate */
|
|
8
|
+
x: number;
|
|
9
|
+
/** defines the second coordinate */
|
|
10
|
+
y: number;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Vector2 from the given x and y coordinates
|
|
13
|
+
* @param x defines the first coordinate
|
|
14
|
+
* @param y defines the second coordinate
|
|
15
|
+
*/
|
|
16
|
+
constructor(
|
|
17
|
+
/** defines the first coordinate */
|
|
18
|
+
x?: number,
|
|
19
|
+
/** defines the second coordinate */
|
|
20
|
+
y?: number);
|
|
21
|
+
/**
|
|
22
|
+
* Gets a new Vector2(0, 0)
|
|
23
|
+
* @returns a new Vector2
|
|
24
|
+
*/
|
|
25
|
+
static Zero(): Vector2;
|
|
26
|
+
/**
|
|
27
|
+
* Gets a new Vector2(1, 1)
|
|
28
|
+
* @returns a new Vector2
|
|
29
|
+
*/
|
|
30
|
+
static One(): Vector2;
|
|
31
|
+
/**
|
|
32
|
+
* Gets a new Vector2 set from the given index element of the given array
|
|
33
|
+
* @param array defines the data source
|
|
34
|
+
* @param offset defines the offset in the data source
|
|
35
|
+
* @returns a new Vector2
|
|
36
|
+
*/
|
|
37
|
+
static FromArray(array: DeepImmutable<ArrayLike<number>>, offset?: number): Vector2;
|
|
38
|
+
/**
|
|
39
|
+
* Sets "result" from the given index element of the given array
|
|
40
|
+
* @param array defines the data source
|
|
41
|
+
* @param offset defines the offset in the data source
|
|
42
|
+
* @param result defines the target vector
|
|
43
|
+
*/
|
|
44
|
+
static FromArrayToRef(array: ArrayLike<number>, offset: number, result: Vector2): void;
|
|
45
|
+
/**
|
|
46
|
+
* Gets a new Vector2 located for "amount" (float) on the CatmullRom spline defined by the given four Vector2
|
|
47
|
+
* @param value1 defines 1st point of control
|
|
48
|
+
* @param value2 defines 2nd point of control
|
|
49
|
+
* @param value3 defines 3rd point of control
|
|
50
|
+
* @param value4 defines 4th point of control
|
|
51
|
+
* @param amount defines the interpolation factor
|
|
52
|
+
* @returns a new Vector2
|
|
53
|
+
*/
|
|
54
|
+
static CatmullRom(value1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>, value3: DeepImmutable<Vector2>, value4: DeepImmutable<Vector2>, amount: number): Vector2;
|
|
55
|
+
/**
|
|
56
|
+
* Returns a new Vector2 set with same the coordinates than "value" ones if the vector "value" is in the square defined by "min" and "max".
|
|
57
|
+
* If a coordinate of "value" is lower than "min" coordinates, the returned Vector2 is given this "min" coordinate.
|
|
58
|
+
* If a coordinate of "value" is greater than "max" coordinates, the returned Vector2 is given this "max" coordinate
|
|
59
|
+
* @param value defines the value to clamp
|
|
60
|
+
* @param min defines the lower limit
|
|
61
|
+
* @param max defines the upper limit
|
|
62
|
+
* @returns a new Vector2
|
|
63
|
+
*/
|
|
64
|
+
static Clamp(value: DeepImmutable<Vector2>, min: DeepImmutable<Vector2>, max: DeepImmutable<Vector2>): Vector2;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a new Vector2 located for "amount" (float) on the Hermite spline defined by the vectors "value1", "value2", "tangent1", "tangent2"
|
|
67
|
+
* @param value1 defines the 1st control point
|
|
68
|
+
* @param tangent1 defines the outgoing tangent
|
|
69
|
+
* @param value2 defines the 2nd control point
|
|
70
|
+
* @param tangent2 defines the incoming tangent
|
|
71
|
+
* @param amount defines the interpolation factor
|
|
72
|
+
* @returns a new Vector2
|
|
73
|
+
*/
|
|
74
|
+
static Hermite(value1: DeepImmutable<Vector2>, tangent1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>, tangent2: DeepImmutable<Vector2>, amount: number): Vector2;
|
|
75
|
+
/**
|
|
76
|
+
* Returns a new Vector2 which is the 1st derivative of the Hermite spline defined by the vectors "value1", "value2", "tangent1", "tangent2".
|
|
77
|
+
* @param value1 defines the first control point
|
|
78
|
+
* @param tangent1 defines the first tangent
|
|
79
|
+
* @param value2 defines the second control point
|
|
80
|
+
* @param tangent2 defines the second tangent
|
|
81
|
+
* @param time define where the derivative must be done
|
|
82
|
+
* @returns 1st derivative
|
|
83
|
+
*/
|
|
84
|
+
static Hermite1stDerivative(value1: DeepImmutable<Vector2>, tangent1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>, tangent2: DeepImmutable<Vector2>, time: number): Vector2;
|
|
85
|
+
/**
|
|
86
|
+
* Returns a new Vector2 which is the 1st derivative of the Hermite spline defined by the vectors "value1", "value2", "tangent1", "tangent2".
|
|
87
|
+
* @param value1 defines the first control point
|
|
88
|
+
* @param tangent1 defines the first tangent
|
|
89
|
+
* @param value2 defines the second control point
|
|
90
|
+
* @param tangent2 defines the second tangent
|
|
91
|
+
* @param time define where the derivative must be done
|
|
92
|
+
* @param result define where the derivative will be stored
|
|
93
|
+
*/
|
|
94
|
+
static Hermite1stDerivativeToRef(value1: DeepImmutable<Vector2>, tangent1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>, tangent2: DeepImmutable<Vector2>, time: number, result: Vector2): void;
|
|
95
|
+
/**
|
|
96
|
+
* Returns a new Vector2 located for "amount" (float) on the linear interpolation between the vector "start" adn the vector "end".
|
|
97
|
+
* @param start defines the start vector
|
|
98
|
+
* @param end defines the end vector
|
|
99
|
+
* @param amount defines the interpolation factor
|
|
100
|
+
* @returns a new Vector2
|
|
101
|
+
*/
|
|
102
|
+
static Lerp(start: DeepImmutable<Vector2>, end: DeepImmutable<Vector2>, amount: number): Vector2;
|
|
103
|
+
/**
|
|
104
|
+
* Gets the dot product of the vector "left" and the vector "right"
|
|
105
|
+
* @param left defines first vector
|
|
106
|
+
* @param right defines second vector
|
|
107
|
+
* @returns the dot product (float)
|
|
108
|
+
*/
|
|
109
|
+
static Dot(left: DeepImmutable<Vector2>, right: DeepImmutable<Vector2>): number;
|
|
110
|
+
/**
|
|
111
|
+
* Returns a new Vector2 equal to the normalized given vector
|
|
112
|
+
* @param vector defines the vector to normalize
|
|
113
|
+
* @returns a new Vector2
|
|
114
|
+
*/
|
|
115
|
+
static Normalize(vector: DeepImmutable<Vector2>): Vector2;
|
|
116
|
+
/**
|
|
117
|
+
* Normalize a given vector into a second one
|
|
118
|
+
* @param vector defines the vector to normalize
|
|
119
|
+
* @param result defines the vector where to store the result
|
|
120
|
+
*/
|
|
121
|
+
static NormalizeToRef(vector: DeepImmutable<Vector2>, result: Vector2): void;
|
|
122
|
+
/**
|
|
123
|
+
* Gets a new Vector2 set with the minimal coordinate values from the "left" and "right" vectors
|
|
124
|
+
* @param left defines 1st vector
|
|
125
|
+
* @param right defines 2nd vector
|
|
126
|
+
* @returns a new Vector2
|
|
127
|
+
*/
|
|
128
|
+
static Minimize(left: DeepImmutable<Vector2>, right: DeepImmutable<Vector2>): Vector2;
|
|
129
|
+
/**
|
|
130
|
+
* Gets a new Vector2 set with the maximal coordinate values from the "left" and "right" vectors
|
|
131
|
+
* @param left defines 1st vector
|
|
132
|
+
* @param right defines 2nd vector
|
|
133
|
+
* @returns a new Vector2
|
|
134
|
+
*/
|
|
135
|
+
static Maximize(left: DeepImmutable<Vector2>, right: DeepImmutable<Vector2>): Vector2;
|
|
136
|
+
/**
|
|
137
|
+
* Determines if a given vector is included in a triangle
|
|
138
|
+
* @param p defines the vector to test
|
|
139
|
+
* @param p0 defines 1st triangle point
|
|
140
|
+
* @param p1 defines 2nd triangle point
|
|
141
|
+
* @param p2 defines 3rd triangle point
|
|
142
|
+
* @returns true if the point "p" is in the triangle defined by the vectors "p0", "p1", "p2"
|
|
143
|
+
*/
|
|
144
|
+
static PointInTriangle(p: DeepImmutable<Vector2>, p0: DeepImmutable<Vector2>, p1: DeepImmutable<Vector2>, p2: DeepImmutable<Vector2>): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Gets the distance between the vectors "value1" and "value2"
|
|
147
|
+
* @param value1 defines first vector
|
|
148
|
+
* @param value2 defines second vector
|
|
149
|
+
* @returns the distance between vectors
|
|
150
|
+
*/
|
|
151
|
+
static Distance(value1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>): number;
|
|
152
|
+
/**
|
|
153
|
+
* Returns the squared distance between the vectors "value1" and "value2"
|
|
154
|
+
* @param value1 defines first vector
|
|
155
|
+
* @param value2 defines second vector
|
|
156
|
+
* @returns the squared distance between vectors
|
|
157
|
+
*/
|
|
158
|
+
static DistanceSquared(value1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>): number;
|
|
159
|
+
/**
|
|
160
|
+
* Gets a new Vector2 located at the center of the vectors "value1" and "value2"
|
|
161
|
+
* @param value1 defines first vector
|
|
162
|
+
* @param value2 defines second vector
|
|
163
|
+
* @returns a new Vector2
|
|
164
|
+
*/
|
|
165
|
+
static Center(value1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>): Vector2;
|
|
166
|
+
/**
|
|
167
|
+
* Gets the center of the vectors "value1" and "value2" and stores the result in the vector "ref"
|
|
168
|
+
* @param value1 defines first vector
|
|
169
|
+
* @param value2 defines second vector
|
|
170
|
+
* @param ref defines third vector
|
|
171
|
+
* @returns ref
|
|
172
|
+
*/
|
|
173
|
+
static CenterToRef(value1: DeepImmutable<Vector2>, value2: DeepImmutable<Vector2>, ref: DeepImmutable<Vector2>): Vector2;
|
|
174
|
+
/**
|
|
175
|
+
* Gets the shortest distance (float) between the point "p" and the segment defined by the two points "segA" and "segB".
|
|
176
|
+
* @param p defines the middle point
|
|
177
|
+
* @param segA defines one point of the segment
|
|
178
|
+
* @param segB defines the other point of the segment
|
|
179
|
+
* @returns the shortest distance
|
|
180
|
+
*/
|
|
181
|
+
static DistanceOfPointFromSegment(p: DeepImmutable<Vector2>, segA: DeepImmutable<Vector2>, segB: DeepImmutable<Vector2>): number;
|
|
182
|
+
static create(x: number, y: number): Vector2;
|
|
183
|
+
/**
|
|
184
|
+
* Gets a string with the Vector2 coordinates
|
|
185
|
+
* @returns a string with the Vector2 coordinates
|
|
186
|
+
*/
|
|
187
|
+
toString(): string;
|
|
188
|
+
/**
|
|
189
|
+
* Gets class name
|
|
190
|
+
* @returns the string "Vector2"
|
|
191
|
+
*/
|
|
192
|
+
getClassName(): string;
|
|
193
|
+
/**
|
|
194
|
+
* Gets current vector hash code
|
|
195
|
+
* @returns the Vector2 hash code as a number
|
|
196
|
+
*/
|
|
197
|
+
getHashCode(): number;
|
|
198
|
+
/**
|
|
199
|
+
* Sets the Vector2 coordinates in the given array or Float32Array from the given index.
|
|
200
|
+
* @param array defines the source array
|
|
201
|
+
* @param index defines the offset in source array
|
|
202
|
+
* @returns the current Vector2
|
|
203
|
+
*/
|
|
204
|
+
toArray(array: FloatArray, index?: number): Vector2;
|
|
205
|
+
/**
|
|
206
|
+
* Update the current vector from an array
|
|
207
|
+
* @param array defines the destination array
|
|
208
|
+
* @param index defines the offset in the destination array
|
|
209
|
+
* @returns the current Vector3
|
|
210
|
+
*/
|
|
211
|
+
fromArray(array: FloatArray, index?: number): Vector2;
|
|
212
|
+
/**
|
|
213
|
+
* Copy the current vector to an array
|
|
214
|
+
* @returns a new array with 2 elements: the Vector2 coordinates.
|
|
215
|
+
*/
|
|
216
|
+
asArray(): number[];
|
|
217
|
+
/**
|
|
218
|
+
* Sets the Vector2 coordinates with the given Vector2 coordinates
|
|
219
|
+
* @param source defines the source Vector2
|
|
220
|
+
* @returns the current updated Vector2
|
|
221
|
+
*/
|
|
222
|
+
copyFrom(source: DeepImmutable<Vector2>): Vector2;
|
|
223
|
+
/**
|
|
224
|
+
* Sets the Vector2 coordinates with the given floats
|
|
225
|
+
* @param x defines the first coordinate
|
|
226
|
+
* @param y defines the second coordinate
|
|
227
|
+
* @returns the current updated Vector2
|
|
228
|
+
*/
|
|
229
|
+
copyFromFloats(x: number, y: number): Vector2;
|
|
230
|
+
/**
|
|
231
|
+
* Sets the Vector2 coordinates with the given floats
|
|
232
|
+
* @param x defines the first coordinate
|
|
233
|
+
* @param y defines the second coordinate
|
|
234
|
+
* @returns the current updated Vector2
|
|
235
|
+
*/
|
|
236
|
+
set(x: number, y: number): Vector2;
|
|
237
|
+
/**
|
|
238
|
+
* Add another vector with the current one
|
|
239
|
+
* @param otherVector defines the other vector
|
|
240
|
+
* @returns a new Vector2 set with the addition of the current Vector2 and the given one coordinates
|
|
241
|
+
*/
|
|
242
|
+
add(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
243
|
+
/**
|
|
244
|
+
* Sets the "result" coordinates with the addition of the current Vector2 and the given one coordinates
|
|
245
|
+
* @param otherVector defines the other vector
|
|
246
|
+
* @param result defines the target vector
|
|
247
|
+
* @returns the unmodified current Vector2
|
|
248
|
+
*/
|
|
249
|
+
addToRef(otherVector: DeepImmutable<Vector2>, result: Vector2): Vector2;
|
|
250
|
+
addByPoint(x: number, y: number): Vector2;
|
|
251
|
+
/**
|
|
252
|
+
* Set the Vector2 coordinates by adding the given Vector2 coordinates
|
|
253
|
+
* @param otherVector defines the other vector
|
|
254
|
+
* @returns the current updated Vector2
|
|
255
|
+
*/
|
|
256
|
+
addInPlace(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
257
|
+
/**
|
|
258
|
+
* Gets a new Vector2 set with the subtracted coordinates of the given one from the current Vector2
|
|
259
|
+
* @param otherVector defines the other vector
|
|
260
|
+
* @returns a new Vector2
|
|
261
|
+
*/
|
|
262
|
+
subtract(otherVector: Vector2): Vector2;
|
|
263
|
+
subtractByPoint(x: number, y: number): Vector2;
|
|
264
|
+
/**
|
|
265
|
+
* Sets the "result" coordinates with the subtraction of the given one from the current Vector2 coordinates.
|
|
266
|
+
* @param otherVector defines the other vector
|
|
267
|
+
* @param result defines the target vector
|
|
268
|
+
* @returns the unmodified current Vector2
|
|
269
|
+
*/
|
|
270
|
+
subtractToRef(otherVector: DeepImmutable<Vector2>, result: Vector2): Vector2;
|
|
271
|
+
/**
|
|
272
|
+
* Sets the current Vector2 coordinates by subtracting from it the given one coordinates
|
|
273
|
+
* @param otherVector defines the other vector
|
|
274
|
+
* @returns the current updated Vector2
|
|
275
|
+
*/
|
|
276
|
+
subtractInPlace(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
277
|
+
/**
|
|
278
|
+
* Multiplies in place the current Vector2 coordinates by the given ones
|
|
279
|
+
* @param otherVector defines the other vector
|
|
280
|
+
* @returns the current updated Vector2
|
|
281
|
+
*/
|
|
282
|
+
multiplyInPlace(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
283
|
+
/**
|
|
284
|
+
* Returns a new Vector2 set with the multiplication of the current Vector2 and the given one coordinates
|
|
285
|
+
* @param otherVector defines the other vector
|
|
286
|
+
* @returns a new Vector2
|
|
287
|
+
*/
|
|
288
|
+
multiply(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
289
|
+
/**
|
|
290
|
+
* Sets "result" coordinates with the multiplication of the current Vector2 and the given one coordinates
|
|
291
|
+
* @param otherVector defines the other vector
|
|
292
|
+
* @param result defines the target vector
|
|
293
|
+
* @returns the unmodified current Vector2
|
|
294
|
+
*/
|
|
295
|
+
multiplyToRef(otherVector: DeepImmutable<Vector2>, result: Vector2): Vector2;
|
|
296
|
+
/**
|
|
297
|
+
* Gets a new Vector2 set with the Vector2 coordinates multiplied by the given floats
|
|
298
|
+
* @param x defines the first coordinate
|
|
299
|
+
* @param y defines the second coordinate
|
|
300
|
+
* @returns a new Vector2
|
|
301
|
+
*/
|
|
302
|
+
multiplyByFloats(x: number, y: number): Vector2;
|
|
303
|
+
/**
|
|
304
|
+
* Returns a new Vector2 set with the Vector2 coordinates divided by the given one coordinates
|
|
305
|
+
* @param otherVector defines the other vector
|
|
306
|
+
* @returns a new Vector2
|
|
307
|
+
*/
|
|
308
|
+
divide(otherVector: Vector2): Vector2;
|
|
309
|
+
/**
|
|
310
|
+
* Sets the "result" coordinates with the Vector2 divided by the given one coordinates
|
|
311
|
+
* @param otherVector defines the other vector
|
|
312
|
+
* @param result defines the target vector
|
|
313
|
+
* @returns the unmodified current Vector2
|
|
314
|
+
*/
|
|
315
|
+
divideToRef(otherVector: DeepImmutable<Vector2>, result: Vector2): Vector2;
|
|
316
|
+
/**
|
|
317
|
+
* Divides the current Vector2 coordinates by the given ones
|
|
318
|
+
* @param otherVector defines the other vector
|
|
319
|
+
* @returns the current updated Vector2
|
|
320
|
+
*/
|
|
321
|
+
divideInPlace(otherVector: DeepImmutable<Vector2>): Vector2;
|
|
322
|
+
/**
|
|
323
|
+
* Gets a new Vector2 with current Vector2 negated coordinates
|
|
324
|
+
* @returns a new Vector2
|
|
325
|
+
*/
|
|
326
|
+
negate(): Vector2;
|
|
327
|
+
/**
|
|
328
|
+
* Negate this vector in place
|
|
329
|
+
* @returns this
|
|
330
|
+
*/
|
|
331
|
+
negateInPlace(): Vector2;
|
|
332
|
+
/**
|
|
333
|
+
* Negate the current Vector2 and stores the result in the given vector "result" coordinates
|
|
334
|
+
* @param result defines the Vector3 object where to store the result
|
|
335
|
+
* @returns the current Vector2
|
|
336
|
+
*/
|
|
337
|
+
negateToRef(result: Vector2): Vector2;
|
|
338
|
+
/**
|
|
339
|
+
* Multiply the Vector2 coordinates by scale
|
|
340
|
+
* @param scale defines the scaling factor
|
|
341
|
+
* @returns the current updated Vector2
|
|
342
|
+
*/
|
|
343
|
+
scaleInPlace(scale: number): Vector2;
|
|
344
|
+
/**
|
|
345
|
+
* Returns a new Vector2 scaled by "scale" from the current Vector2
|
|
346
|
+
* @param scale defines the scaling factor
|
|
347
|
+
* @returns a new Vector2
|
|
348
|
+
*/
|
|
349
|
+
scale(scale: number): Vector2;
|
|
350
|
+
/**
|
|
351
|
+
* Scale the current Vector2 values by a factor to a given Vector2
|
|
352
|
+
* @param scale defines the scale factor
|
|
353
|
+
* @param result defines the Vector2 object where to store the result
|
|
354
|
+
* @returns the unmodified current Vector2
|
|
355
|
+
*/
|
|
356
|
+
scaleToRef(scale: number, result: Vector2): Vector2;
|
|
357
|
+
/**
|
|
358
|
+
* Scale the current Vector2 values by a factor and add the result to a given Vector2
|
|
359
|
+
* @param scale defines the scale factor
|
|
360
|
+
* @param result defines the Vector2 object where to store the result
|
|
361
|
+
* @returns the unmodified current Vector2
|
|
362
|
+
*/
|
|
363
|
+
scaleAndAddToRef(scale: number, result: Vector2): Vector2;
|
|
364
|
+
/**
|
|
365
|
+
* Gets a boolean if two vectors are equals
|
|
366
|
+
* @param otherVector defines the other vector
|
|
367
|
+
* @returns true if the given vector coordinates strictly equal the current Vector2 ones
|
|
368
|
+
*/
|
|
369
|
+
equals(otherVector: DeepImmutable<Vector2>): boolean;
|
|
370
|
+
/**
|
|
371
|
+
* Gets a new Vector2 from current Vector2 floored values
|
|
372
|
+
* eg (1.2, 2.31) returns (1, 2)
|
|
373
|
+
* @returns a new Vector2
|
|
374
|
+
*/
|
|
375
|
+
floor(): Vector2;
|
|
376
|
+
/**
|
|
377
|
+
* Gets a new Vector2 from current Vector2 fractional values
|
|
378
|
+
* eg (1.2, 2.31) returns (0.2, 0.31)
|
|
379
|
+
* @returns a new Vector2
|
|
380
|
+
*/
|
|
381
|
+
fract(): Vector2;
|
|
382
|
+
/**
|
|
383
|
+
* Rotate the current vector into a given result vector
|
|
384
|
+
* @param angle defines the rotation angle
|
|
385
|
+
* @returns the current vector
|
|
386
|
+
*/
|
|
387
|
+
rotate(angle: number): this;
|
|
388
|
+
/**
|
|
389
|
+
* Rotate the current vector into a given result vector
|
|
390
|
+
* @param angle defines the rotation angle
|
|
391
|
+
* @param result defines the result vector where to store the rotated vector
|
|
392
|
+
* @returns the current vector
|
|
393
|
+
*/
|
|
394
|
+
rotateToRef(angle: number, result: Vector2): this;
|
|
395
|
+
rotateByPoint(angle: number, originPoint?: Vector2): this;
|
|
396
|
+
transformCoordinateOnRotate(angle: number): this;
|
|
397
|
+
/**
|
|
398
|
+
* Gets the length of the vector
|
|
399
|
+
* @returns the vector length (float)
|
|
400
|
+
*/
|
|
401
|
+
length(): number;
|
|
402
|
+
/**
|
|
403
|
+
* Gets the vector squared length
|
|
404
|
+
* @returns the vector squared length (float)
|
|
405
|
+
*/
|
|
406
|
+
lengthSquared(): number;
|
|
407
|
+
/**
|
|
408
|
+
* Normalize the vector
|
|
409
|
+
* @returns the current updated Vector2
|
|
410
|
+
*/
|
|
411
|
+
normalize(): Vector2;
|
|
412
|
+
/**
|
|
413
|
+
* Gets a new Vector2 copied from the Vector2
|
|
414
|
+
* @returns a new Vector2
|
|
415
|
+
*/
|
|
416
|
+
clone(): Vector2;
|
|
417
|
+
}
|
|
418
|
+
export interface IBounds {
|
|
419
|
+
x: number;
|
|
420
|
+
y: number;
|
|
421
|
+
width: number;
|
|
422
|
+
height: number;
|
|
423
|
+
}
|
|
424
|
+
export interface IBoundRect {
|
|
425
|
+
tl: Vector2;
|
|
426
|
+
tr: Vector2;
|
|
427
|
+
bl: Vector2;
|
|
428
|
+
br: Vector2;
|
|
429
|
+
dx: number;
|
|
430
|
+
dy: number;
|
|
431
|
+
}
|
|
432
|
+
export interface IBoundRectNoAngle {
|
|
433
|
+
left: number;
|
|
434
|
+
top: number;
|
|
435
|
+
right: number;
|
|
436
|
+
bottom: number;
|
|
437
|
+
}
|
|
438
|
+
//# sourceMappingURL=vector2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector2.d.ts","sourceRoot":"","sources":["../../../src/basics/vector2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE5D,M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;;;OAIG;IACH,KAAK,IAAI,OAAO;IAIhB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IAUpB;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO;IAS1C,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,OAA8B;IAUxE,2BAA2B,CAAC,KAAK,EAAE,MAAM;IAWzC;;;OAGG;IACH,MAAM,IAAI,MAAM;IAIhB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAMvB;;;OAGG;IACH,SAAS,IAAI,OAAO;IAKpB;;;OAGG;IACH,KAAK,IAAI,OAAO;CAGnB;AAED,MAAM,WAAW,OAAO;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,OAAO,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface ICanvasProps {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
pixelRatio?: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* View Renderer constructor. It is a wrapper around native canvas element.
|
|
8
|
+
* Usually you don't need to use it manually.
|
|
9
|
+
* @constructor
|
|
10
|
+
* @abstract
|
|
11
|
+
* @param {Object} props
|
|
12
|
+
* @param {Number} props.width
|
|
13
|
+
* @param {Number} props.height
|
|
14
|
+
* @param {Number} props.pixelRatio
|
|
15
|
+
*/
|
|
16
|
+
export declare class Canvas {
|
|
17
|
+
isCache: boolean;
|
|
18
|
+
private _pixelRatio;
|
|
19
|
+
private _canvasEle;
|
|
20
|
+
private _context;
|
|
21
|
+
private _width;
|
|
22
|
+
private _height;
|
|
23
|
+
constructor(props?: ICanvasProps);
|
|
24
|
+
getCanvasEle(): HTMLCanvasElement;
|
|
25
|
+
/**
|
|
26
|
+
* get canvas context
|
|
27
|
+
* @method
|
|
28
|
+
* @returns {CanvasContext} context
|
|
29
|
+
*/
|
|
30
|
+
getContext(): CanvasRenderingContext2D;
|
|
31
|
+
getPixelRatio(): number;
|
|
32
|
+
getWidth(): number;
|
|
33
|
+
getHeight(): number;
|
|
34
|
+
setSize(width?: number, height?: number, pixelRatioParam?: number): void;
|
|
35
|
+
setPixelRatio(pixelRatio: number): void;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
clear(): void;
|
|
38
|
+
/**
|
|
39
|
+
* to data url
|
|
40
|
+
* @method
|
|
41
|
+
* @param {String} mimeType
|
|
42
|
+
* @param {Number} quality between 0 and 1 for jpg mime types
|
|
43
|
+
* @returns {String} data url string
|
|
44
|
+
*/
|
|
45
|
+
toDataURL(mimeType: string, quality: number): string;
|
|
46
|
+
}
|
|
47
|
+
export declare class SceneCanvas extends Canvas {
|
|
48
|
+
constructor(props?: ICanvasProps);
|
|
49
|
+
}
|
|
50
|
+
export declare class HitCanvas extends Canvas {
|
|
51
|
+
hitCanvas: boolean;
|
|
52
|
+
constructor(props?: ICanvasProps);
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=canvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../src/canvas.ts"],"names":[],"mappings":"AAGA,UAAU,YAAY;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,qBAAa,MAAM;IACf,OAAO,UAAS;IAEhB,OAAO,CAAC,WAAW,CAAK;IAExB,OAAO,CAAC,UAAU,CAAoB;IAEtC,OAAO,CAAC,QAAQ,CAA2B;IAE3C,OAAO,CAAC,MAAM,CAAK;IAEnB,OAAO,CAAC,OAAO,CAAK;gBAER,KAAK,CAAC,EAAE,YAAY;IAuBhC,YAAY;IAIZ;;;;OAIG;IACH,UAAU;IAIV,aAAa;IAIb,QAAQ;IAIR,SAAS;IAIT,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM;IAoBjE,aAAa,CAAC,UAAU,EAAE,MAAM;IAUhC,OAAO;IAKP,KAAK;IAKL;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAiB9C;AAED,qBAAa,WAAY,SAAQ,MAAM;gBACvB,KAAK,GAAE,YAAsC;CAI5D;AAED,qBAAa,SAAU,SAAQ,MAAM;IACjC,SAAS,UAAQ;gBAEL,KAAK,GAAE,YAAsC;CAI5D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseObject } from '../base-object';
|
|
2
|
+
import type { IBoundRect } from '../basics/vector2';
|
|
3
|
+
import type { ComponentExtension } from './extension';
|
|
4
|
+
export declare class RenderComponent<T, U> extends BaseObject {
|
|
5
|
+
private _extensions;
|
|
6
|
+
get extensions(): Map<string, ComponentExtension<T, U>>;
|
|
7
|
+
register(...extensions: Array<ComponentExtension<T, U>>): void;
|
|
8
|
+
unRegister(...uKeys: string[]): void;
|
|
9
|
+
getExtensionsByOrder(): ComponentExtension<T, U>[];
|
|
10
|
+
getExtensionByKey(uKey: string): ComponentExtension<T, U> | undefined;
|
|
11
|
+
draw(ctx: CanvasRenderingContext2D, bounds?: IBoundRect): void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/components/component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,qBAAa,eAAe,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,UAAU;IACjD,OAAO,CAAC,WAAW,CAA+C;IAElE,IAAI,UAAU,0CAEb;IAED,QAAQ,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAOvD,UAAU,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE;IAM7B,oBAAoB;IAOpB,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAI9B,IAAI,CAAC,GAAG,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,UAAU;CAG1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-error.d.ts","sourceRoot":"","sources":["../../../../../src/components/docs/block/block-error.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,YAEjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/docs/block/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bullet-ruler.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/bullet-ruler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AAE5D,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM,UAM5G"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { IDocumentSkeletonBullet } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
+
export declare function dealWidthBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
|
|
4
|
+
export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
|
|
5
|
+
//# sourceMappingURL=bullet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bullet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/bullet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAA6B,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAI7F,wBAAgB,eAAe,CAC3B,MAAM,CAAC,EAAE,OAAO,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,EAC7D,aAAa,CAAC,EAAE,aAAa,GAC9B,uBAAuB,GAAG,SAAS,CA4BrC;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,GAAE,MAAU,GAAG,uBAAuB,CA0BnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDrawing, LocaleService } from '@univerjs/core';
|
|
2
|
+
import type { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
|
+
export declare function dealWidthInlineDrawing(drawing: IDrawing, sectionBreakConfig: ISectionBreakConfig, allPages?: IDocumentSkeletonPage[], paragraphConfig?: IParagraphConfig, localeService?: LocaleService): never[];
|
|
5
|
+
//# sourceMappingURL=inline-drawing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-drawing.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/inline-drawing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,QAAQ,EACjB,kBAAkB,EAAE,mBAAmB,EACvC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,EAClC,eAAe,CAAC,EAAE,gBAAgB,EAClC,aAAa,CAAC,EAAE,aAAa,WAGhC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IParagraphStyle, Nullable } from '@univerjs/core';
|
|
2
|
+
import type { IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import type { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
|
+
import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
5
|
+
import type { DocumentViewModel } from '../../view-model/document-view-model';
|
|
6
|
+
interface LanguageResult {
|
|
7
|
+
charIndex: number;
|
|
8
|
+
spanGroup: IDocumentSkeletonSpan[];
|
|
9
|
+
}
|
|
10
|
+
export declare function composeCharForLanguage(char: string, index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): Nullable<LanguageResult>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=language-ruler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-ruler.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/language-ruler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAIzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,UAAU,cAAc;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACtC;AAED,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,kBAAkB,EACjC,kBAAkB,EAAE,mBAAmB,EACvC,cAAc,EAAE,eAAe,GAChC,QAAQ,CAAC,cAAc,CAAC,CAa1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IDocumentSkeletonPage, IDocumentSkeletonSpan } from '../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
3
|
+
export declare function calculateParagraphLayout(spanGroup: IDocumentSkeletonSpan[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[];
|
|
4
|
+
//# sourceMappingURL=layout-ruler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-ruler.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/layout-ruler.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAKR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AA8B3F,wBAAgB,wBAAwB,CACpC,SAAS,EAAE,qBAAqB,EAAE,EAClC,KAAK,EAAE,qBAAqB,EAAE,EAC9B,kBAAkB,EAAE,mBAAmB,EACvC,eAAe,EAAE,gBAAgB,EACjC,cAAc,GAAE,OAAe,2BAyBlC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import type { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
3
|
+
import type { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
4
|
+
import type { DocumentViewModel } from '../../view-model/document-view-model';
|
|
5
|
+
export declare function dealWidthParagraph(bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference): IDocumentSkeletonPage[];
|
|
6
|
+
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../../src/components/docs/block/paragraph/paragraph.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAIR,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EAAoB,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAa3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAO9E,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,iBAAiB,EAC5B,aAAa,EAAE,kBAAkB,EACjC,OAAO,EAAE,qBAAqB,EAC9B,kBAAkB,EAAE,mBAAmB,EACvC,yBAAyB,EAAE,0BAA0B,GACtD,qBAAqB,EAAE,CAyLzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import type { ISectionBreakConfig } from '../../../basics/interfaces';
|
|
3
|
+
import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
|
|
4
|
+
import type { DocumentViewModel } from '../view-model/document-view-model';
|
|
5
|
+
export declare function dealWithSections(bodyModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, preRenderedBlockIdMap?: Map<string, boolean>): {
|
|
6
|
+
pages: IDocumentSkeletonPage[];
|
|
7
|
+
renderedBlockIdMap: Map<string, boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare function dealWidthBlocksByMultiColumnAndContinuous(): void;
|
|
10
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../../../src/components/docs/block/section.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACpH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAK3E,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,kBAAkB,EAC/B,OAAO,EAAE,qBAAqB,EAC9B,kBAAkB,EAAE,mBAAmB,EACvC,yBAAyB,EAAE,0BAA0B,EACrD,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;;;EAwC/C;AAeD,wBAAgB,yCAAyC,SAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=table-cell.d.ts.map
|