@leafer/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.
Files changed (2) hide show
  1. package/package.json +13 -11
  2. package/src/Leaf.ts +21 -21
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@leafer/display",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
7
7
  "main": "src/index.ts",
8
- "files": ["src"],
8
+ "files": [
9
+ "src"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/leaferjs/leafer.git"
@@ -17,15 +19,15 @@
17
19
  "leaferjs"
18
20
  ],
19
21
  "dependencies": {
20
- "@leafer/math": "1.0.0-alpha.1",
21
- "@leafer/data": "1.0.0-alpha.1",
22
- "@leafer/layout": "1.0.0-alpha.1",
23
- "@leafer/module": "1.0.0-alpha.1",
24
- "@leafer/event": "1.0.0-alpha.1",
25
- "@leafer/decorator": "1.0.0-alpha.1",
26
- "@leafer/helper": "1.0.0-alpha.1"
22
+ "@leafer/math": "1.0.0-alpha.5",
23
+ "@leafer/data": "1.0.0-alpha.5",
24
+ "@leafer/layout": "1.0.0-alpha.5",
25
+ "@leafer/display-module": "1.0.0-alpha.5",
26
+ "@leafer/event": "1.0.0-alpha.5",
27
+ "@leafer/decorator": "1.0.0-alpha.5",
28
+ "@leafer/helper": "1.0.0-alpha.5"
27
29
  },
28
30
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-alpha.1"
31
+ "@leafer/interface": "1.0.0-alpha.5"
30
32
  }
31
- }
33
+ }
package/src/Leaf.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ILeafer, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IMatrixWithBoundsData, __Number, __Boolean, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerOptions, IEventListenerId, IEvent, IObject, IFunction, IBoundsData, IMatrixData, __String } from '@leafer/interface'
1
+ import { ILeafer, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IMatrixWithBoundsData, __Number, __Boolean, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerOptions, IEventListenerId, IEvent, IObject, IFunction, __String } from '@leafer/interface'
2
2
  import { IncrementId } from '@leafer/math'
3
3
  import { LeafData } from '@leafer/data'
4
4
  import { LeafLayout } from '@leafer/layout'
@@ -114,11 +114,11 @@ export class Leaf implements ILeaf {
114
114
 
115
115
  // LeafDataProxy rewrite
116
116
 
117
- public __set(attrName: string, newValue: unknown): void { }
117
+ public __set(_attrName: string, _newValue: unknown): void { }
118
118
 
119
- public __get(attrName: string): unknown { return undefined }
119
+ public __get(_attrName: string): unknown { return undefined }
120
120
 
121
- public __updateAttr(attrName: string): void { }
121
+ public __updateAttr(_attrName: string): void { }
122
122
 
123
123
  // ---
124
124
 
@@ -172,9 +172,9 @@ export class Leaf implements ILeaf {
172
172
 
173
173
  // LeafHit rewrite
174
174
 
175
- public __hitWorld(point: IRadiusPointData): boolean { return true }
175
+ public __hitWorld(_point: IRadiusPointData): boolean { return true }
176
176
 
177
- public __hit(local: IRadiusPointData): boolean { return true }
177
+ public __hit(_local: IRadiusPointData): boolean { return true }
178
178
 
179
179
  public __updateHitCanvas(): void { }
180
180
 
@@ -183,11 +183,11 @@ export class Leaf implements ILeaf {
183
183
 
184
184
  // LeafRender rewrite
185
185
 
186
- public __render(canvas: ILeaferCanvas, options: IRenderOptions): void { }
186
+ public __render(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
187
187
 
188
- public __drawFast(canvas: ILeaferCanvas, options: IRenderOptions): void { }
188
+ public __drawFast(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
189
189
 
190
- public __draw(canvas: ILeaferCanvas, options: IRenderOptions): void { }
190
+ public __draw(_canvas: ILeaferCanvas, _options: IRenderOptions): void { }
191
191
 
192
192
  public __updateChange(): void { }
193
193
 
@@ -196,9 +196,9 @@ export class Leaf implements ILeaf {
196
196
 
197
197
  // path
198
198
 
199
- public __drawPath(canvas: ILeaferCanvas): void { }
199
+ public __drawPath(_canvas: ILeaferCanvas): void { }
200
200
 
201
- public __drawRenderPath(canvas: ILeaferCanvas): void { }
201
+ public __drawRenderPath(_canvas: ILeaferCanvas): void { }
202
202
 
203
203
  public __updatePath(): void { }
204
204
 
@@ -209,30 +209,30 @@ export class Leaf implements ILeaf {
209
209
 
210
210
  public __updateSortChildren(): void { }
211
211
 
212
- public add(child: ILeaf, index?: number): void { }
212
+ public add(_child: ILeaf, _index?: number): void { }
213
213
 
214
- public remove(child?: ILeaf): void { }
214
+ public remove(_child?: ILeaf): void { }
215
215
 
216
216
  // ---
217
217
 
218
218
 
219
219
  // LeafEventer rewrite
220
220
 
221
- public on(type: string | string[], listener: IEventListener, options?: IEventListenerOptions | boolean): void { }
221
+ public on(_type: string | string[], _listener: IEventListener, _options?: IEventListenerOptions | boolean): void { }
222
222
 
223
- public off(type: string | string[], listener: IEventListener, options?: IEventListenerOptions | boolean): void { }
223
+ public off(_type: string | string[], _listener: IEventListener, _options?: IEventListenerOptions | boolean): void { }
224
224
 
225
- public on__(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventListenerOptions | boolean): IEventListenerId { return undefined }
225
+ public on__(_type: string | string[], _listener: IEventListener, _bind?: IObject, _options?: IEventListenerOptions | boolean): IEventListenerId { return undefined }
226
226
 
227
- public off__(id: IEventListenerId | IEventListenerId[]): void { }
227
+ public off__(_id: IEventListenerId | IEventListenerId[]): void { }
228
228
 
229
- public once(type: string | string[], listener: IEventListener, capture?: boolean): void { }
229
+ public once(_type: string | string[], _listener: IEventListener, _capture?: boolean): void { }
230
230
 
231
- public emit(type: string, event?: IEvent | IObject, capture?: boolean): void { }
231
+ public emit(_type: string, _event?: IEvent | IObject, _capture?: boolean): void { }
232
232
 
233
- public emitEvent(event?: IEvent, capture?: boolean): void { }
233
+ public emitEvent(_event?: IEvent, _capture?: boolean): void { }
234
234
 
235
- public hasEvent(type: string, capture?: boolean): boolean { return false }
235
+ public hasEvent(_type: string, _capture?: boolean): boolean { return false }
236
236
 
237
237
  // ---
238
238