@leafer-ui/display 1.0.0-alpha.1 → 1.0.0-alpha.5
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/package.json +10 -8
- package/src/Frame.ts +3 -3
- package/src/Group.ts +2 -2
- package/src/Rect.ts +1 -1
- package/src/Text.ts +1 -1
- package/src/UI.ts +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"description": "@leafer-ui/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.ts",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
11
13
|
"url": "https://github.com/leaferjs/ui.git"
|
|
@@ -18,13 +20,13 @@
|
|
|
18
20
|
"leaferjs"
|
|
19
21
|
],
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@leafer/core": "1.0.0-alpha.
|
|
22
|
-
"@leafer-ui/data": "1.0.0-alpha.
|
|
23
|
-
"@leafer-ui/module": "1.0.0-alpha.
|
|
24
|
-
"@leafer-ui/decorator": "1.0.0-alpha.
|
|
23
|
+
"@leafer/core": "1.0.0-alpha.5",
|
|
24
|
+
"@leafer-ui/data": "1.0.0-alpha.5",
|
|
25
|
+
"@leafer-ui/display-module": "1.0.0-alpha.5",
|
|
26
|
+
"@leafer-ui/decorator": "1.0.0-alpha.5"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
"@leafer/interface": "1.0.0-alpha.5",
|
|
30
|
+
"@leafer-ui/interface": "1.0.0-alpha.5"
|
|
29
31
|
}
|
|
30
32
|
}
|
package/src/Frame.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Frame extends Group implements IFrame {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@rewrite(rect.__drawPathByData)
|
|
36
|
-
public __drawPathByData(
|
|
36
|
+
public __drawPathByData(_drawer: ICanvasDrawPath, _data: IPathCommandData): void { }
|
|
37
37
|
|
|
38
38
|
public __updateBoxBounds(): void {
|
|
39
39
|
this.__updateRectBoxBounds()
|
|
@@ -76,9 +76,9 @@ export class Frame extends Group implements IFrame {
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
@rewrite(rect.__render)
|
|
79
|
-
public __renderRect(
|
|
79
|
+
public __renderRect(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
|
|
80
80
|
|
|
81
81
|
@rewrite(group.__render)
|
|
82
|
-
public __renderGroup(
|
|
82
|
+
public __renderGroup(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
|
|
83
83
|
|
|
84
84
|
}
|
package/src/Group.ts
CHANGED
|
@@ -25,7 +25,7 @@ export class Group extends UI implements IGroup {
|
|
|
25
25
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
public add(
|
|
28
|
+
public add(_child: IUI, _index?: number): void { } // Branch rewrite
|
|
29
29
|
|
|
30
30
|
public addAt(child: IUI, index: number): void {
|
|
31
31
|
this.add(child, index)
|
|
@@ -39,6 +39,6 @@ export class Group extends UI implements IGroup {
|
|
|
39
39
|
this.add(child, this.children.indexOf(before))
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
public remove(
|
|
42
|
+
public remove(_child?: IUI): void { } // Branch rewrite
|
|
43
43
|
|
|
44
44
|
}
|
package/src/Rect.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class Rect extends UI implements IRect {
|
|
|
21
21
|
|
|
22
22
|
public __updatePath(): void { }
|
|
23
23
|
|
|
24
|
-
public __drawPathByData(drawer: ICanvasDrawPath,
|
|
24
|
+
public __drawPathByData(drawer: ICanvasDrawPath, _data: IPathCommandData): void {
|
|
25
25
|
const { width, height, borderRadius } = this.__
|
|
26
26
|
if (borderRadius) {
|
|
27
27
|
drawer.roundRect(0, 0, width, height, borderRadius)
|
package/src/Text.ts
CHANGED
|
@@ -56,7 +56,7 @@ export class Text extends UI implements IText {
|
|
|
56
56
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
public __drawPathByData(drawer: ICanvasDrawPath,
|
|
59
|
+
public __drawPathByData(drawer: ICanvasDrawPath, _data: IPathCommandData): void {
|
|
60
60
|
const { width, height } = this.__
|
|
61
61
|
drawer.rect(0, 0, width, height)
|
|
62
62
|
}
|
package/src/UI.ts
CHANGED
|
@@ -192,6 +192,6 @@ export class UI extends Leaf implements IUI {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
@rewrite(PathHelper.drawData)
|
|
195
|
-
public __drawPathByData(
|
|
195
|
+
public __drawPathByData(_drawer: ICanvasDrawPath, _data: IPathCommandData): void { }
|
|
196
196
|
|
|
197
197
|
}
|