diff --git a/editor/locale/lang.en.js b/editor/locale/lang.en.js index ab080cb2..610b8ffe 100644 --- a/editor/locale/lang.en.js +++ b/editor/locale/lang.en.js @@ -23,7 +23,9 @@ export default { panel_drag: 'Drag left/right to resize side panel', quality: 'Quality:', pathNodeTooltip: 'Drag node to move it. Double-click node to change segment type', - pathCtrlPtTooltip: 'Drag control point to adjust curve properties' + pathCtrlPtTooltip: 'Drag control point to adjust curve properties', + pick_stroke_paint_opacity: 'Pick a Stroke Paint and Opacity', + pick_fill_paint_opacity: 'Pick a Fill Paint and Opacity' }, properties: { id: 'id', diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 30844c6b..62a4bba0 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -4074,12 +4074,12 @@ editor.init = function () { * @returns {undefined} */ const clickClear = function () { - const dims = curConfig.dimensions; + const [x, y] = curConfig.dimensions; $.confirm(uiStrings.notification.QwantToClear, function (ok) { if (!ok) { return; } setSelectMode(); svgCanvas.clear(); - svgCanvas.setResolution(dims[0], dims[1]); + svgCanvas.setResolution(x, y); updateCanvas(true); zoomImage(); populateLayers(); @@ -4133,7 +4133,13 @@ editor.init = function () { if (loadingURL) { popURL = loadingURL; } else { - popHTML = '