Comparing version 0.0.2 to 0.0.4-alpha.3
@@ -1,25 +0,29 @@ | ||
import { TypeBrushOptions } from '@idraw/types'; | ||
import { TypeData } from '@idraw/types'; | ||
import { TypeIDraw } from '@idraw/types'; | ||
import Core from '@idraw/core'; | ||
import { TypeConfig } from '@idraw/types'; | ||
import { TypeCoreOptions } from '@idraw/types'; | ||
declare class IDraw implements TypeIDraw { | ||
private _canvas; | ||
private _context; | ||
private _watcher; | ||
private _brush; | ||
private _isStart; | ||
private _data; | ||
private _patternMap; | ||
private _currentSize; | ||
constructor(canvas: HTMLCanvasElement); | ||
start(): void; | ||
loadBrush(opts: TypeBrushOptions): Promise<void>; | ||
setBrushSize(size: number): void; | ||
draw(data: TypeData): Promise<void>; | ||
play(data: TypeData): Promise<void>; | ||
useBrush(name: string): void; | ||
getData(): TypeData; | ||
declare const _hasInited: unique symbol; | ||
declare class IDraw extends Core { | ||
private [_opts]; | ||
private [_records]; | ||
private [_hasInited]; | ||
constructor(mount: HTMLDivElement, opts: Options, config: TypeConfig); | ||
undo(): void; | ||
private [_initEvent]; | ||
private _pushRecord; | ||
private _createOpts; | ||
} | ||
export default IDraw; | ||
declare const _initEvent: unique symbol; | ||
declare type Options = { | ||
maxRecords?: number; | ||
} & TypeCoreOptions; | ||
declare const _opts: unique symbol; | ||
declare const _records: unique symbol; | ||
export { } |
{ | ||
"name": "idraw", | ||
"version": "0.0.2", | ||
"description": "a draw lib", | ||
"main": "dist/index.js", | ||
"version": "0.0.4-alpha.3", | ||
"description": "", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.es.js", | ||
"unpkg": "dist/index.global.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"dev": "rollup -w -c ./scripts/rollup.config.dev.js", | ||
"build": "rollup -c ./scripts/rollup.config.prod.js" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/chenshenhai/idraw.git" | ||
"url": "git+https://github.com/idrawjs/idraw.git" | ||
}, | ||
"keywords": [ | ||
"draw", | ||
"canvas" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/idrawjs/idraw/issues" | ||
}, | ||
"homepage": "https://github.com/idrawjs/idraw#readme", | ||
"author": "chenshenhai", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/chenshenhai/idraw/issues" | ||
"devDependencies": { | ||
"@idraw/types": "^0.0.4-alpha.3" | ||
}, | ||
"homepage": "https://github.com/chenshenhai/idraw#readme", | ||
"files": [ | ||
"dist", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"@idraw/types": "^0.0.2" | ||
"@idraw/core": "^0.0.4-alpha.3" | ||
}, | ||
"gitHead": "7fae64ae318bb3aec85fe1f4adf7c75552a9ba7e" | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "a2b87617565e1b11616dc9b8c996781ec8e62082" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
252861
7
6432
1
3
1
2
1
+ Added@idraw/core@^0.0.4-alpha.3
+ Added@idraw/board@0.0.4-alpha.16(transitive)
+ Added@idraw/core@0.0.4-alpha.16(transitive)
+ Added@idraw/util@0.0.4-alpha.16(transitive)
- Removed@idraw/types@^0.0.2
- Removed@idraw/types@0.0.2(transitive)