Fixed issue with copy/paste
This commit is contained in:
parent
db872c033c
commit
ce53e29e98
@ -29,7 +29,7 @@ app.win = null;
|
||||
|
||||
app.on('ready', () =>
|
||||
{
|
||||
app.win = new BrowserWindow({width: 400, height: 420, minWidth: 400, minHeight: 420, backgroundColor:"#000", frame:false, autoHideMenuBar: true, icon: __dirname + '/icon.ico',webPreferences: {zoomFactor: 1.0}})
|
||||
app.win = new BrowserWindow({width: 400, height: 420, minWidth: 400, minHeight: 420,webPreferences: {zoomFactor: 1.0}, backgroundColor:"#000", frame:false, autoHideMenuBar: true, icon: __dirname + '/icon.ico'})
|
||||
|
||||
app.win.loadURL(`file://${__dirname}/sources/index.html`);
|
||||
|
||||
|
@ -412,8 +412,8 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
|
||||
e.clipboardData.setData('text/source', dotgrid.tool.export(dotgrid.tool.layer()));
|
||||
e.clipboardData.setData('text/plain', dotgrid.tool.path());
|
||||
e.clipboardData.setData('text/html', dotgrid.render.to_svg());
|
||||
e.clipboardData.setData('text/svg+xml', dotgrid.render.to_svg());
|
||||
e.clipboardData.setData('text/html', dotgrid.renderer.to_svg());
|
||||
e.clipboardData.setData('text/svg+xml', dotgrid.renderer.to_svg());
|
||||
|
||||
dotgrid.guide.refresh();
|
||||
}
|
||||
@ -423,8 +423,8 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
dotgrid.guide.refresh();
|
||||
|
||||
e.clipboardData.setData('text/plain', dotgrid.tool.export(dotgrid.tool.layer()));
|
||||
e.clipboardData.setData('text/html', dotgrid.render.to_svg());
|
||||
e.clipboardData.setData('text/svg+xml', dotgrid.render.to_svg());
|
||||
e.clipboardData.setData('text/html', dotgrid.renderer.to_svg());
|
||||
e.clipboardData.setData('text/svg+xml', dotgrid.renderer.to_svg());
|
||||
|
||||
dotgrid.tool.layers[dotgrid.tool.index] = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user