mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
动画。
This commit is contained in:
parent
de4227c29b
commit
9b53dad692
@ -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;
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user