pixel-editor/js/tools/_all.js
2021-11-01 11:33:18 +01:00

29 lines
473 B
JavaScript

new Tool('resizeline', {
cursor: 'default',
});
new Tool('pan', {
cursor: function () {
if (Input.isDragging()) return 'url(\'/pixel-editor/pan-held.png\'), auto';
else return 'url(\'/pixel-editor/pan.png\'), auto';
},
});
new Tool('ellipse', {
cursor: 'none',
brushPreview: true,
});
new Tool('rectselect', {
cursor: 'crosshair',
brushPreview: true,
});
new Tool('moveselection', {
cursor: 'crosshair',
});
new Tool('zoom', {
imageCursor: 'zoom-in',
});