@idraw/core
Advanced tools
Comparing version 0.0.4-alpha.11 to 0.0.4-alpha.12
@@ -24,2 +24,3 @@ import { TypeBoardSizeOptions } from '@idraw/types'; | ||
private [_helper]; | ||
private [_mapper]; | ||
private [_hasInited]; | ||
@@ -32,4 +33,5 @@ private [_hasInitedData]; | ||
private [_selectedDotDirection]; | ||
static is: any; | ||
static check: any; | ||
private [_onlyRender]; | ||
static is: TypeIs; | ||
static check: TypeCheck; | ||
constructor(mount: HTMLDivElement, opts: TypeCoreOptions, config?: TypeConfig); | ||
@@ -60,11 +62,11 @@ draw(): void; | ||
__getOriginContext(): CanvasRenderingContext2D; | ||
private _initEvent; | ||
private _handlePoint; | ||
private _handleMoveStart; | ||
private _handleMove; | ||
private _handleMoveEnd; | ||
private _dragElement; | ||
private _transfromElement; | ||
private _emitChangeScreen; | ||
private _emitChangeData; | ||
private [_initEvent]; | ||
private [_handlePoint]; | ||
private [_handleMoveStart]; | ||
private [_handleMove]; | ||
private [_handleMoveEnd]; | ||
private [_dragElement]; | ||
private [_transfromElement]; | ||
private [_emitChangeScreen]; | ||
private [_emitChangeData]; | ||
} | ||
@@ -77,4 +79,18 @@ export default Core; | ||
declare const _dragElement: unique symbol; | ||
declare const _element: unique symbol; | ||
declare const _emitChangeData: unique symbol; | ||
declare const _emitChangeScreen: unique symbol; | ||
declare const _handleMove: unique symbol; | ||
declare const _handleMoveEnd: unique symbol; | ||
declare const _handleMoveStart: unique symbol; | ||
declare const _handlePoint: unique symbol; | ||
declare const _hasInited: unique symbol; | ||
@@ -86,4 +102,10 @@ | ||
declare const _initEvent: unique symbol; | ||
declare const _mapper: unique symbol; | ||
declare const _mode: unique symbol; | ||
declare const _onlyRender: unique symbol; | ||
declare const _opts: unique symbol; | ||
@@ -99,2 +121,12 @@ | ||
declare const _transfromElement: unique symbol; | ||
declare type TypeCheck = { | ||
attrs: (value: any) => boolean; | ||
rectDesc: (value: any) => boolean; | ||
imageDesc: (value: any) => boolean; | ||
svgDesc: (value: any) => boolean; | ||
textDesc: (value: any) => boolean; | ||
}; | ||
declare type TypeCoreEventArgMap = { | ||
@@ -121,2 +153,23 @@ 'error': any; | ||
declare type TypeIs = { | ||
x: (value: any) => boolean; | ||
y: (value: any) => boolean; | ||
w: (value: any) => boolean; | ||
h: (value: any) => boolean; | ||
angle: (value: any) => boolean; | ||
number: (value: any) => boolean; | ||
borderWidth: (value: any) => boolean; | ||
borderRadius: (value: any) => boolean; | ||
color: (value: any) => boolean; | ||
imageSrc: (value: any) => boolean; | ||
imageURL: (value: any) => boolean; | ||
imageBase64: (value: any) => boolean; | ||
svg: (value: any) => boolean; | ||
text: (value: any) => boolean; | ||
fontSize: (value: any) => boolean; | ||
lineHeight: (value: any) => boolean; | ||
textAlign: (value: any) => boolean; | ||
fontFamily: (value: any) => boolean; | ||
}; | ||
export { } |
{ | ||
"name": "@idraw/core", | ||
"version": "0.0.4-alpha.11", | ||
"version": "0.0.4-alpha.12", | ||
"description": "", | ||
@@ -26,7 +26,7 @@ "main": "dist/index.cjs.js", | ||
"devDependencies": { | ||
"@idraw/types": "^0.0.4-alpha.11" | ||
"@idraw/types": "^0.0.4-alpha.12" | ||
}, | ||
"dependencies": { | ||
"@idraw/board": "^0.0.4-alpha.11", | ||
"@idraw/util": "^0.0.4-alpha.11" | ||
"@idraw/board": "^0.0.4-alpha.12", | ||
"@idraw/util": "^0.0.4-alpha.12" | ||
}, | ||
@@ -36,3 +36,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2ed2fbc354f7dd763471682cf66142d3ea260da5" | ||
"gitHead": "fe7217556d69db50413433572b85deb6d69730b7" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
357395
9130
Updated@idraw/board@^0.0.4-alpha.12
Updated@idraw/util@^0.0.4-alpha.12