diff --git a/ShadowEditor.SVG/src/animation/MPath1.js b/ShadowEditor.SVG/src/animation/MPath.js similarity index 50% rename from ShadowEditor.SVG/src/animation/MPath1.js rename to ShadowEditor.SVG/src/animation/MPath.js index ec704551..35fbf747 100644 --- a/ShadowEditor.SVG/src/animation/MPath1.js +++ b/ShadowEditor.SVG/src/animation/MPath.js @@ -1,21 +1,21 @@ import { SvgControl, SVG } from '../third_party'; /** - * Mpath + * MPath * @author tengge / https://github.com/tengge1 * @param {*} options */ -function Mpath(options = {}) { +function MPath(options = {}) { SvgControl.call(this, options); } -Mpath.prototype = Object.create(SvgControl.prototype); -Mpath.prototype.constructor = Mpath; +MPath.prototype = Object.create(SvgControl.prototype); +MPath.prototype.constructor = MPath; -Mpath.prototype.render = function () { +MPath.prototype.render = function () { this.renderDom(this.createElement('mpath')); }; -SVG.addXType('mpath', Mpath); +SVG.addXType('mpath', MPath); -export default Mpath; \ No newline at end of file +export default MPath; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/index.js b/ShadowEditor.SVG/src/index.js index 8ffed99b..b6229a2d 100644 --- a/ShadowEditor.SVG/src/index.js +++ b/ShadowEditor.SVG/src/index.js @@ -6,7 +6,7 @@ import './animation/Animate'; import './animation/AnimateMotion'; import './animation/AnimateTransform'; import './animation/Discard'; -import './animation/Mpath'; +import './animation/MPath'; import './animation/Set'; // shape