refactoring

This commit is contained in:
Anton Lavrenov
2019-02-23 20:54:20 -05:00
parent 3e7503ebdc
commit 98afa3fac6
16 changed files with 504 additions and 498 deletions

View File

@@ -1,6 +1,5 @@
import { Util, Collection } from './Util';
import { Factory, Validators } from './Factory';
import { shapes } from './Global';
import { Node } from './Node';
import { GetSet, Vector2d } from './types';
@@ -21,6 +20,8 @@ function getDummyContext() {
return dummyContext;
}
export const shapes = {};
// TODO: idea - use only "remove" (or destroy method)
// how? on add, check that every inner shape has reference in konva store with color
// on remove - clear that reference
@@ -783,7 +784,7 @@ Factory.addGetterSetter(
/**
* get/set perfectDrawEnabled. If a shape has fill, stroke and opacity you may set `perfectDrawEnabled` to false to improve performance.
* See http://konvajs.github.io/docs/performance/Disable_Perfect_Draw.html for more information.
* See http://konvajs.org/docs/performance/Disable_Perfect_Draw.html for more information.
* Default value is true
* @name Konva.Shape#perfectDrawEnabled
* @method