Utils: {
assiginObj(target?, sources?) => any;
assignAttr() => any;
combine(obj1, obj2) => any;
convertSymbolToImage(symbol, callbackFn) => void;
deepCopy(target) => any;
fitNodesInto(node, oldAttrs, newAttrs) => void;
generateId() => string;
getCenter(shape) => {
x: any;
y: any;
};
getObjectNodes(nodes) => any;
getRad(degree) => number;
getShouldUpdateAnimation(attrValues) => any;
getTweenByType(type, konvaNode, period?) => {
obj: any;
};
getUnionRect(rectBounds) => {
height: number;
maxX: any;
maxY: any;
width: number;
x: any;
y: any;
};
is(o, type) => boolean;
isBrowser() => boolean;
isEmptyObject(obj) => boolean;
moveItemInArray(arr, from, to) => void;
rotateAroundCenter(shape, rotation) => any;
rotateAroundPoint(shape, angleRad, point) => any;
rotatePoint(point, rad) => {
x: number;
y: number;
};
toDecimal(x) => undefined | number;
warn(info) => void;
} = ...
Type declaration
-
assiginObj:function
- assiginObj(target?, sources?): any
-
Parameters
-
target: any = {}
-
sources: any = {}
Returns any
-
assignAttr:function
- assignAttr(): any
-
Returns any
-
combine:function
- combine(obj1, obj2): any
-
Returns any
-
convertSymbolToImage:function
- convertSymbolToImage(symbol, callbackFn): void
-
Parameters
-
symbol: any
-
callbackFn: any
Returns void
-
deepCopy:function
- deepCopy(target): any
-
Returns any
-
fitNodesInto:function
- fitNodesInto(node, oldAttrs, newAttrs): void
-
Parameters
-
node: Node<NodeConfig>
-
oldAttrs: any
-
newAttrs: any
Returns void
-
generateId:function
- generateId(): string
-
Returns string
-
getCenter:function
- getCenter(shape): {
x: any;
y: any;
}
-
Returns {
x: any;
y: any;
}
-
getObjectNodes:function
- getObjectNodes(nodes): any
-
Returns any
-
getRad:function
- getRad(degree): number
-
Returns number
-
getShouldUpdateAnimation:function
- getShouldUpdateAnimation(attrValues): any
-
Returns any
-
getTweenByType:function
- getTweenByType(type, konvaNode, period?): {
obj: any;
}
-
Parameters
-
type: string
-
konvaNode: any
-
period: number = 5
Returns {
obj: any;
}
-
getUnionRect:function
- getUnionRect(rectBounds): {
height: number;
maxX: any;
maxY: any;
width: number;
x: any;
y: any;
}
-
Returns {
height: number;
maxX: any;
maxY: any;
width: number;
x: any;
y: any;
}
-
height: number
-
maxX: any
-
maxY: any
-
width: number
-
x: any
-
y: any
-
is:function
- is(o, type): boolean
-
Returns boolean
-
isBrowser:function
- isBrowser(): boolean
-
Returns boolean
-
isEmptyObject:function
- isEmptyObject(obj): boolean
-
Returns boolean
-
moveItemInArray:function
- moveItemInArray(arr, from, to): void
-
Parameters
-
arr: any
-
from: number
-
to: number
Returns void
-
rotateAroundCenter:function
- rotateAroundCenter(shape, rotation): any
-
Parameters
-
shape: any
-
rotation: number
Returns any
-
rotateAroundPoint:function
- rotateAroundPoint(shape, angleRad, point): any
-
Parameters
-
shape: any
-
angleRad: number
-
point: any
Returns any
-
rotatePoint:function
- rotatePoint(point, rad): {
x: number;
y: number;
}
-
Returns {
x: number;
y: number;
}
-
toDecimal:function
- toDecimal(x): undefined | number
-
Returns undefined | number
-
warn:function
- warn(info): void
-
Returns void