mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
29 lines
473 B
JavaScript
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',
|
|
}); |