-
use branch "gh-pages", make it default, and delete master. gh-pages' content will automatically be deployed to
https://pixolith.github.io/fabricjs-customise-controls-extension/
after push. That way you can have your examples hosted on Github, too. -
Nicer API: Combine
overwriteActions
andsetCustomActions
into one. AssetCustomActions
needsoverwriteActions
anyways andoverwriteActions
doesn't make sense on its own. -> One call less to write. -
Even nicer API: Change
setCustomActions
to accept an object. That way you can pass one or more pieces of configuration at once, instead of needing to call the method over and over again:
fabric.Canvas.prototype.setCustomActions({
tl: 'rotate',
tr: 'scale'
});
- Even fucking greater API: Even better, change the thing to just use one single configuration interface for everything:
fabric.Canvas.prototype.customise({
borderColor: '#000000',
cornerSize: 34,
tl: {
action: 'rotate',
cursor: 'cow.png'
},
tr: {
action: 'scale',
cursor: 'sheep.png'
}
})
(also, alias customise
with customize
for our American friends)
- Jesus-like API: wrap
fabric.Canvas.prototype.customise
into some shorthand. Less to type. E.g.:
fabric.prototype.customise = fabric.prototype.customize = fabric.Canvas.prototype.customise;
- Use grunt-release to bump and release new versions
<3