动画。

This commit is contained in:
liteng 2018-11-08 12:09:36 +08:00
parent de4227c29b
commit 9b53dad692
2 changed files with 8 additions and 8 deletions

View File

@ -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;
export default MPath;

View File

@ -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