mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
30 lines
783 B
JavaScript
30 lines
783 B
JavaScript
/*
|
|
* Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a MIT-style
|
|
* license that can be found in the LICENSE file.
|
|
*
|
|
* For more information, please visit: https://github.com/tengge1/ShadowEditor
|
|
* You can also visit: https://gitee.com/tengge1/ShadowEditor
|
|
*/
|
|
import { SvgControl, SVG } from './third_party';
|
|
|
|
/**
|
|
* Script
|
|
* @author tengge / https://github.com/tengge1
|
|
* @param {*} options
|
|
*/
|
|
function Script(options = {}) {
|
|
SvgControl.call(this, options);
|
|
}
|
|
|
|
Script.prototype = Object.create(SvgControl.prototype);
|
|
Script.prototype.constructor = Script;
|
|
|
|
Script.prototype.render = function () {
|
|
this.renderDom(this.createElement('script'));
|
|
};
|
|
|
|
SVG.addXType('script', Script);
|
|
|
|
export default Script; |