refactor index.js to make it even simpler.
This commit is contained in:
@@ -14,6 +14,13 @@
|
|||||||
* @module SVGEditor
|
* @module SVGEditor
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import jQuery from 'jquery/dist/jquery.slim.js';
|
||||||
|
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
|
||||||
|
import './components/index.js';
|
||||||
|
import './dialogs/index.js';
|
||||||
|
// Global Constant
|
||||||
|
window.$ = jQueryPluginSVG(jQuery);
|
||||||
|
|
||||||
import './touch.js';
|
import './touch.js';
|
||||||
import { isMac } from '../common/browser.js';
|
import { isMac } from '../common/browser.js';
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,8 @@ For default config and extensions (and available options) available to
|
|||||||
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
|
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import jQuery from 'jquery/dist/jquery.slim.js';
|
|
||||||
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
|
|
||||||
import './components/index.js';
|
|
||||||
import './dialogs/index.js';
|
|
||||||
import Editor from './Editor.js';
|
import Editor from './Editor.js';
|
||||||
|
|
||||||
// Global Constant
|
|
||||||
window.$ = jQueryPluginSVG(jQuery);
|
|
||||||
|
|
||||||
const svgEditor = new Editor();
|
const svgEditor = new Editor();
|
||||||
svgEditor.init();
|
svgEditor.init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user