fix some tests

This commit is contained in:
JFH
2021-12-30 05:29:49 -03:00
parent fdcfc8a253
commit 2ae3ba770e
38 changed files with 819 additions and 4494 deletions

View File

@@ -116,8 +116,9 @@ class Editor extends EditorStartup {
this.topPanel = new TopPanel(this)
this.layersPanel = new LayersPanel(this)
this.mainMenu = new MainMenu(this)
// makes svgEditor accessible as a global variable
window.svgEditor = this
}
} // end Constructor
/**
*

View File

@@ -15,7 +15,6 @@
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
*/
/* eslint-disable max-len */
/* gl#bals svgEditor */
import ColorValuePicker from './ColorValuePicker.js'
import Slider from './Slider.js'
import { findPos, mergeDeep } from './Util.js'

View File

@@ -72,7 +72,7 @@ export default {
if (!m || m.length !== 2) {
return null
}
return svgCanvas.getElem(m[1])
return svgCanvas.getElement(m[1])
}
/**
@@ -101,7 +101,7 @@ export default {
*/
const addMarker = (id, seType) => {
const selElems = svgCanvas.getSelectedElements()
let marker = svgCanvas.getElem(id)
let marker = svgCanvas.getElement(id)
if (marker) { return undefined }
if (seType === '' || seType === 'nomarker') { return undefined }
const el = selElems[0]