@leafer/interface 1.0.0-beta.5 → 1.0.0-beta.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/interface",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -5,4 +5,5 @@ import { ILeaf } from './ILeaf'
5
5
  export interface IBranch extends ILeaf {
6
6
  children: ILeaf[]
7
7
  __renderBranch?(canvas: ILeaferCanvas, options: IRenderOptions): void
8
+ removeAll(): void
8
9
  }
@@ -4,11 +4,13 @@ import { ILeaf } from '../display/ILeaf'
4
4
  import { IExportFileType, IExportImageType } from '../file/IFileType'
5
5
 
6
6
  export interface IPlatform {
7
+ name?: 'web' | 'node' | 'miniapp'
8
+ os?: 'Mac' | 'Windows' | 'Linux'
7
9
  requestRender?(render: IFunction): void
8
10
  canvas?: ILeaferCanvas
9
11
  isWorker?: boolean
10
12
  devicePixelRatio?: number
11
- intWheelDeltaY?: boolean // firxfox need
13
+ intWheelDeltaY?: boolean // firxfox / Windows need
12
14
  conicGradientSupport?: boolean
13
15
  conicGradientRotate90?: boolean // fixfox need rotate
14
16
  fullImageShadow?: boolean // safari need
@@ -4,5 +4,5 @@ export interface IPlugin extends IObject {
4
4
  name?: string
5
5
  importVersion: string
6
6
  import: string[]
7
- run(LeaferUI: IObject): void
7
+ run(LeaferUI: IObject, config: IObject): void
8
8
  }
@@ -12,16 +12,18 @@ export interface IWatcherConfig {
12
12
 
13
13
  export interface IWatcher extends IControl {
14
14
  target: ILeaf
15
- updatedList: ILeafList
16
15
 
17
16
  totalTimes: number
18
17
 
19
18
  disabled: boolean
20
19
  running: boolean
21
20
  changed: boolean
21
+ hasRemoved: boolean
22
22
 
23
23
  config: IWatcherConfig
24
24
 
25
+ updatedList: ILeafList
26
+
25
27
  disable(): void
26
28
 
27
29
  update(): void