fix exe dropper ext
parent
5c4e2eb46c
commit
d50aad1e0d
|
@ -71,29 +71,19 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
const buttons = [
|
||||
{
|
||||
const events = {
|
||||
id: 'tool_eyedropper',
|
||||
type: 'mode',
|
||||
events: {
|
||||
click () {
|
||||
svgCanvas.setMode('eyedropper');
|
||||
}
|
||||
}
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
return {
|
||||
name: strings.name,
|
||||
newUI: true,
|
||||
buttons: strings.buttons.map((button, i) => {
|
||||
return Object.assign(buttons[i], button);
|
||||
}),
|
||||
|
||||
events,
|
||||
// if we have selected an element, grab its paint and enable the eye dropper button
|
||||
selectedChanged: getStyle,
|
||||
elementChanged: getStyle,
|
||||
|
||||
mouseDown (opts) {
|
||||
const mode = svgCanvas.getMode();
|
||||
if (mode === 'eyedropper') {
|
||||
|
|
Loading…
Reference in New Issue