From 9b53dad69259ef52929f39748c400a0a1442e28d Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Thu, 8 Nov 2018 12:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=94=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/animation/{MPath1.js => MPath.js} | 14 +++++++------- ShadowEditor.SVG/src/index.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename ShadowEditor.SVG/src/animation/{MPath1.js => MPath.js} (50%) 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