Today we have layers and each layers is described by 'properties' like 'fill', 'stroke', 'sprite', etc.
But if those properties were 'Drawers' that could be added to CC and someone could simply do:
CC.drawer("drawerName", function(element, layer, config, screen) {
//and implement a way to render when user uses "drawerName"
});
CC("#Element").e(0).layers.layerName = {
fill: { color: "red" },
drawerName: { /* the properties specified by the author of drawerName */ }
};
But we should think about a way to work with toggleLayers properly
Today we have layers and each layers is described by 'properties' like 'fill', 'stroke', 'sprite', etc.
But if those properties were 'Drawers' that could be added to CC and someone could simply do:
But we should think about a way to work with toggleLayers properly