mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed EyeDropperTool bug
The EyeDropperTool was not working properly, the reason was the class name.
This commit is contained in:
parent
ebc6cf0dab
commit
ddb882faae
@ -8,7 +8,7 @@ const ToolManager = (() => {
|
|||||||
tools["line"] = new LineTool("line", {type: 'html'}, switchTool);
|
tools["line"] = new LineTool("line", {type: 'html'}, switchTool);
|
||||||
tools["fill"] = new FillTool("fill", {type: 'cursor', style: 'crosshair'}, switchTool);
|
tools["fill"] = new FillTool("fill", {type: 'cursor', style: 'crosshair'}, switchTool);
|
||||||
|
|
||||||
tools["eyedropper"] = new EyedropperTool("eyedropper", {type: 'cursor', style: 'crosshair'}, switchTool);
|
tools["eyedropper"] = new EyeDropperTool("eyedropper", {type: 'cursor', style: 'crosshair'}, switchTool);
|
||||||
tools["pan"] = new PanTool("pan", {type: 'custom'}, switchTool);
|
tools["pan"] = new PanTool("pan", {type: 'custom'}, switchTool);
|
||||||
tools["zoom"] = new ZoomTool("zoom", {type:'custom'});
|
tools["zoom"] = new ZoomTool("zoom", {type:'custom'});
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
//=include tools/LineTool.js
|
//=include tools/LineTool.js
|
||||||
//=include tools/RectangleTool.js
|
//=include tools/RectangleTool.js
|
||||||
//=include tools/FillTool.js
|
//=include tools/FillTool.js
|
||||||
//=include tools/EyedropperTool.js
|
//=include tools/EyeDropperTool.js
|
||||||
//=include tools/PanTool.js
|
//=include tools/PanTool.js
|
||||||
//=include tools/ZoomTool.js
|
//=include tools/ZoomTool.js
|
||||||
//=include tools/RectangularSelectionTool.js
|
//=include tools/RectangularSelectionTool.js
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
class EyedropperTool extends Tool {
|
class EyeDropperTool extends Tool {
|
||||||
eyedropperPreview = document.getElementById("eyedropper-preview");
|
eyedropperPreview = document.getElementById("eyedropper-preview");
|
||||||
selectedColor = {r:0, g:0, b:0};
|
selectedColor = {r:0, g:0, b:0};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user