@leafer/display 1.0.0-rc.19 → 1.0.0-rc.20
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 -10
- package/src/Branch.ts +1 -1
- package/src/Leaf.ts +8 -13
- package/types/index.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.20",
|
|
4
4
|
"description": "@leafer/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/math": "1.0.0-rc.
|
|
26
|
-
"@leafer/data": "1.0.0-rc.
|
|
27
|
-
"@leafer/layout": "1.0.0-rc.
|
|
28
|
-
"@leafer/display-module": "1.0.0-rc.
|
|
29
|
-
"@leafer/event": "1.0.0-rc.
|
|
30
|
-
"@leafer/decorator": "1.0.0-rc.
|
|
31
|
-
"@leafer/helper": "1.0.0-rc.
|
|
32
|
-
"@leafer/platform": "1.0.0-rc.
|
|
25
|
+
"@leafer/math": "1.0.0-rc.20",
|
|
26
|
+
"@leafer/data": "1.0.0-rc.20",
|
|
27
|
+
"@leafer/layout": "1.0.0-rc.20",
|
|
28
|
+
"@leafer/display-module": "1.0.0-rc.20",
|
|
29
|
+
"@leafer/event": "1.0.0-rc.20",
|
|
30
|
+
"@leafer/decorator": "1.0.0-rc.20",
|
|
31
|
+
"@leafer/helper": "1.0.0-rc.20",
|
|
32
|
+
"@leafer/platform": "1.0.0-rc.20"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@leafer/interface": "1.0.0-rc.
|
|
35
|
+
"@leafer/interface": "1.0.0-rc.20"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/Branch.ts
CHANGED
package/src/Leaf.ts
CHANGED
|
@@ -81,7 +81,6 @@ export class Leaf implements ILeaf {
|
|
|
81
81
|
public get __ignoreHitWorld(): boolean { return (this.__hasMask || this.__hasEraser) && this.__.hitChildren }
|
|
82
82
|
|
|
83
83
|
public get pathInputed(): boolean { return !!this.__.__pathInputed }
|
|
84
|
-
public pathClosed: boolean
|
|
85
84
|
|
|
86
85
|
// event
|
|
87
86
|
public __captureMap?: IEventListenerMap
|
|
@@ -184,7 +183,7 @@ export class Leaf implements ILeaf {
|
|
|
184
183
|
|
|
185
184
|
// LeafDataProxy rewrite
|
|
186
185
|
|
|
187
|
-
public __setAttr(_attrName: string, _newValue: IValue):
|
|
186
|
+
public __setAttr(_attrName: string, _newValue: IValue): boolean { return true }
|
|
188
187
|
|
|
189
188
|
public __getAttr(_attrName: string): IValue { return undefined }
|
|
190
189
|
|
|
@@ -462,23 +461,19 @@ export class Leaf implements ILeaf {
|
|
|
462
461
|
|
|
463
462
|
public __scaleResize(_scaleX: number, _scaleY: number): void { }
|
|
464
463
|
|
|
465
|
-
// LeafHit rewrite
|
|
464
|
+
// @leafer-ui/hit LeafHit rewrite
|
|
466
465
|
|
|
467
466
|
public __hitWorld(_point: IRadiusPointData): boolean { return true }
|
|
468
467
|
|
|
469
468
|
public __hit(_local: IRadiusPointData): boolean { return true }
|
|
470
469
|
|
|
471
|
-
public __hitFill(
|
|
472
|
-
return this.__hitCanvas?.hitFill(inner, windingRule)
|
|
473
|
-
}
|
|
470
|
+
public __hitFill(_inner: IRadiusPointData): boolean { return true }
|
|
474
471
|
|
|
475
|
-
public __hitStroke(
|
|
476
|
-
return this.__hitCanvas?.hitStroke(inner, strokeWidth)
|
|
477
|
-
}
|
|
472
|
+
public __hitStroke(_inner: IRadiusPointData, _strokeWidth: number): boolean { return true }
|
|
478
473
|
|
|
479
|
-
public
|
|
480
|
-
|
|
481
|
-
}
|
|
474
|
+
public __hitPixel(_inner: IRadiusPointData): boolean { return true }
|
|
475
|
+
|
|
476
|
+
public __drawHitPath(_canvas: ILeaferCanvas): void { }
|
|
482
477
|
|
|
483
478
|
public __updateHitCanvas(): void { }
|
|
484
479
|
|
|
@@ -496,7 +491,7 @@ export class Leaf implements ILeaf {
|
|
|
496
491
|
|
|
497
492
|
public __clip(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
|
|
498
493
|
|
|
499
|
-
public __renderShape(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
|
|
494
|
+
public __renderShape(_canvas: ILeaferCanvas, _options: IRenderOptions, _ignoreFill?: boolean, _ignoreStroke?: boolean): void { }
|
|
500
495
|
|
|
501
496
|
|
|
502
497
|
public __updateWorldOpacity(): void { }
|
package/types/index.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ declare class Leaf implements ILeaf {
|
|
|
42
42
|
get __onlyHitMask(): boolean;
|
|
43
43
|
get __ignoreHitWorld(): boolean;
|
|
44
44
|
get pathInputed(): boolean;
|
|
45
|
-
pathClosed: boolean;
|
|
46
45
|
__captureMap?: IEventListenerMap;
|
|
47
46
|
__bubbleMap?: IEventListenerMap;
|
|
48
47
|
__parentWait?: IFunction[];
|
|
@@ -62,7 +61,7 @@ declare class Leaf implements ILeaf {
|
|
|
62
61
|
get(_name?: string): ILeafInputData | IValue;
|
|
63
62
|
toJSON(): IObject;
|
|
64
63
|
toString(): string;
|
|
65
|
-
__setAttr(_attrName: string, _newValue: IValue):
|
|
64
|
+
__setAttr(_attrName: string, _newValue: IValue): boolean;
|
|
66
65
|
__getAttr(_attrName: string): IValue;
|
|
67
66
|
setProxyAttr(_attrName: string, _newValue: IValue): void;
|
|
68
67
|
getProxyAttr(_attrName: string): IValue;
|
|
@@ -123,15 +122,16 @@ declare class Leaf implements ILeaf {
|
|
|
123
122
|
__scaleResize(_scaleX: number, _scaleY: number): void;
|
|
124
123
|
__hitWorld(_point: IRadiusPointData): boolean;
|
|
125
124
|
__hit(_local: IRadiusPointData): boolean;
|
|
126
|
-
__hitFill(
|
|
127
|
-
__hitStroke(
|
|
128
|
-
|
|
125
|
+
__hitFill(_inner: IRadiusPointData): boolean;
|
|
126
|
+
__hitStroke(_inner: IRadiusPointData, _strokeWidth: number): boolean;
|
|
127
|
+
__hitPixel(_inner: IRadiusPointData): boolean;
|
|
128
|
+
__drawHitPath(_canvas: ILeaferCanvas): void;
|
|
129
129
|
__updateHitCanvas(): void;
|
|
130
130
|
__render(_canvas: ILeaferCanvas, _options: IRenderOptions): void;
|
|
131
131
|
__drawFast(_canvas: ILeaferCanvas, _options: IRenderOptions): void;
|
|
132
132
|
__draw(_canvas: ILeaferCanvas, _options: IRenderOptions): void;
|
|
133
133
|
__clip(_canvas: ILeaferCanvas, _options: IRenderOptions): void;
|
|
134
|
-
__renderShape(_canvas: ILeaferCanvas, _options: IRenderOptions): void;
|
|
134
|
+
__renderShape(_canvas: ILeaferCanvas, _options: IRenderOptions, _ignoreFill?: boolean, _ignoreStroke?: boolean): void;
|
|
135
135
|
__updateWorldOpacity(): void;
|
|
136
136
|
__updateChange(): void;
|
|
137
137
|
__drawPath(_canvas: ILeaferCanvas): void;
|