diff --git a/ShadowEditor.SVG/dist/ShadowEditor.SVG.js b/ShadowEditor.SVG/dist/ShadowEditor.SVG.js index b90d86ab..237e2310 100644 --- a/ShadowEditor.SVG/dist/ShadowEditor.SVG.js +++ b/ShadowEditor.SVG/dist/ShadowEditor.SVG.js @@ -380,270 +380,270 @@ * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgDom(options = {}) { + function Dom(options = {}) { Control.call(this, options); } - SvgDom.prototype = Object.create(Control.prototype); - SvgDom.prototype.constructor = SvgDom; + Dom.prototype = Object.create(Control.prototype); + Dom.prototype.constructor = Dom; - SvgDom.prototype.render = function () { + Dom.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); this.renderDom(dom); }; - UI.addXType('svgdom', SvgDom); + UI.addXType('svgdom', Dom); /** * SVG圆 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgCircle(options = {}) { + function Circle(options = {}) { Control.call(this, options); } - SvgCircle.prototype = Object.create(Control.prototype); - SvgCircle.prototype.constructor = SvgCircle; + Circle.prototype = Object.create(Control.prototype); + Circle.prototype.constructor = Circle; - SvgCircle.prototype.render = function () { + Circle.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'circle'); this.renderDom(dom); }; - UI.addXType('svgcircle', SvgCircle); + UI.addXType('svgcircle', Circle); /** * SVG矩形 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgRect(options = {}) { + function Rect(options = {}) { Control.call(this, options); } - SvgRect.prototype = Object.create(Control.prototype); - SvgRect.prototype.constructor = SvgRect; + Rect.prototype = Object.create(Control.prototype); + Rect.prototype.constructor = Rect; - SvgRect.prototype.render = function () { + Rect.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); this.renderDom(dom); }; - UI.addXType('svgrect', SvgRect); + UI.addXType('svgrect', Rect); /** * SVG椭圆 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgEllipse(options = {}) { + function Ellipse(options = {}) { Control.call(this, options); } - SvgEllipse.prototype = Object.create(Control.prototype); - SvgEllipse.prototype.constructor = SvgEllipse; + Ellipse.prototype = Object.create(Control.prototype); + Ellipse.prototype.constructor = Ellipse; - SvgEllipse.prototype.render = function () { + Ellipse.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); this.renderDom(dom); }; - UI.addXType('svgellipse', SvgEllipse); + UI.addXType('svgellipse', Ellipse); /** * SVG线 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgLine(options = {}) { + function Line(options = {}) { Control.call(this, options); } - SvgLine.prototype = Object.create(Control.prototype); - SvgLine.prototype.constructor = SvgLine; + Line.prototype = Object.create(Control.prototype); + Line.prototype.constructor = Line; - SvgLine.prototype.render = function () { + Line.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'line'); this.renderDom(dom); }; - UI.addXType('svgline', SvgLine); + UI.addXType('svgline', Line); /** * SVG曲线 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgPolyline(options = {}) { + function Polyline(options = {}) { Control.call(this, options); } - SvgPolyline.prototype = Object.create(Control.prototype); - SvgPolyline.prototype.constructor = SvgPolyline; + Polyline.prototype = Object.create(Control.prototype); + Polyline.prototype.constructor = Polyline; - SvgPolyline.prototype.render = function () { + Polyline.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'polyline'); this.renderDom(dom); }; - UI.addXType('svgpolyline', SvgPolyline); + UI.addXType('svgpolyline', Polyline); /** * SVG面 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgPolygon(options = {}) { + function Polygon(options = {}) { Control.call(this, options); } - SvgPolygon.prototype = Object.create(Control.prototype); - SvgPolygon.prototype.constructor = SvgPolygon; + Polygon.prototype = Object.create(Control.prototype); + Polygon.prototype.constructor = Polygon; - SvgPolygon.prototype.render = function () { + Polygon.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'polygon'); this.renderDom(dom); }; - UI.addXType('svgpolygon', SvgPolygon); + UI.addXType('svgpolygon', Polygon); /** * SVG线 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgPath(options = {}) { + function Path(options = {}) { Control.call(this, options); } - SvgPath.prototype = Object.create(Control.prototype); - SvgPath.prototype.constructor = SvgPath; + Path.prototype = Object.create(Control.prototype); + Path.prototype.constructor = Path; - SvgPath.prototype.render = function () { + Path.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'path'); this.renderDom(dom); }; - UI.addXType('svgpath', SvgPath); + UI.addXType('svgpath', Path); /** * SVG文本 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgText(options = {}) { + function Text(options = {}) { Control.call(this, options); this.text = options.text || null; } - SvgText.prototype = Object.create(Control.prototype); - SvgText.prototype.constructor = SvgText; + Text.prototype = Object.create(Control.prototype); + Text.prototype.constructor = Text; - SvgText.prototype.render = function () { + Text.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'text'); this.renderDom(dom); }; - UI.addXType('svgtext', SvgText); + UI.addXType('svgtext', Text); /** * SVG文本路径 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgTextPath(options = {}) { + function TextPath(options = {}) { Control.call(this, options); this.text = options.text || null; } - SvgTextPath.prototype = Object.create(Control.prototype); - SvgTextPath.prototype.constructor = SvgTextPath; + TextPath.prototype = Object.create(Control.prototype); + TextPath.prototype.constructor = TextPath; - SvgTextPath.prototype.render = function () { + TextPath.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'textPath'); this.renderDom(dom); }; - UI.addXType('svgtextpath', SvgTextPath); + UI.addXType('svgtextpath', TextPath); /** * SVG链接 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgAnchor(options = {}) { + function Anchor(options = {}) { Control.call(this, options); } - SvgAnchor.prototype = Object.create(Control.prototype); - SvgAnchor.prototype.constructor = SvgAnchor; + Anchor.prototype = Object.create(Control.prototype); + Anchor.prototype.constructor = Anchor; - SvgAnchor.prototype.render = function () { + Anchor.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'a'); this.renderDom(dom); }; - UI.addXType('svga', SvgAnchor); + UI.addXType('svga', Anchor); /** * SVG定义 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgDefs(options = {}) { + function Defs(options = {}) { Control.call(this, options); } - SvgDefs.prototype = Object.create(Control.prototype); - SvgDefs.prototype.constructor = SvgDefs; + Defs.prototype = Object.create(Control.prototype); + Defs.prototype.constructor = Defs; - SvgDefs.prototype.render = function () { + Defs.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'defs'); this.renderDom(dom); }; - UI.addXType('svgdefs', SvgDefs); + UI.addXType('svgdefs', Defs); /** * SVG Use * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgUse(options = {}) { + function Use(options = {}) { Control.call(this, options); } - SvgUse.prototype = Object.create(Control.prototype); - SvgUse.prototype.constructor = SvgUse; + Use.prototype = Object.create(Control.prototype); + Use.prototype.constructor = Use; - SvgUse.prototype.render = function () { + Use.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'use'); this.renderDom(dom); }; - UI.addXType('svguse', SvgUse); + UI.addXType('svguse', Use); /** * SVG滤镜 * @author tengge / https://github.com/tengge1 * @param {*} options */ - function SvgFilter(options = {}) { + function Filter(options = {}) { Control.call(this, options); } - SvgFilter.prototype = Object.create(Control.prototype); - SvgFilter.prototype.constructor = SvgFilter; + Filter.prototype = Object.create(Control.prototype); + Filter.prototype.constructor = Filter; - SvgFilter.prototype.render = function () { + Filter.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'filter'); this.renderDom(dom); }; - UI.addXType('svgfilter', SvgFilter); + UI.addXType('svgfilter', Filter); /** * SVG高斯滤镜 diff --git a/ShadowEditor.SVG/src/SvgAnchor.js b/ShadowEditor.SVG/src/Anchor.js similarity index 54% rename from ShadowEditor.SVG/src/SvgAnchor.js rename to ShadowEditor.SVG/src/Anchor.js index 30c88e03..2d9f2646 100644 --- a/ShadowEditor.SVG/src/SvgAnchor.js +++ b/ShadowEditor.SVG/src/Anchor.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgAnchor(options = {}) { +function Anchor(options = {}) { Control.call(this, options); } -SvgAnchor.prototype = Object.create(Control.prototype); -SvgAnchor.prototype.constructor = SvgAnchor; +Anchor.prototype = Object.create(Control.prototype); +Anchor.prototype.constructor = Anchor; -SvgAnchor.prototype.render = function () { +Anchor.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'a'); this.renderDom(dom); }; -UI.addXType('svga', SvgAnchor); +UI.addXType('svga', Anchor); -export default SvgAnchor; \ No newline at end of file +export default Anchor; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgCircle.js b/ShadowEditor.SVG/src/Circle.js similarity index 53% rename from ShadowEditor.SVG/src/SvgCircle.js rename to ShadowEditor.SVG/src/Circle.js index 2edeb6f1..c03ff73f 100644 --- a/ShadowEditor.SVG/src/SvgCircle.js +++ b/ShadowEditor.SVG/src/Circle.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgCircle(options = {}) { +function Circle(options = {}) { Control.call(this, options); } -SvgCircle.prototype = Object.create(Control.prototype); -SvgCircle.prototype.constructor = SvgCircle; +Circle.prototype = Object.create(Control.prototype); +Circle.prototype.constructor = Circle; -SvgCircle.prototype.render = function () { +Circle.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'circle'); this.renderDom(dom); }; -UI.addXType('svgcircle', SvgCircle); +UI.addXType('svgcircle', Circle); -export default SvgCircle; \ No newline at end of file +export default Circle; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgDom.js b/ShadowEditor.SVG/src/Dom.js similarity index 56% rename from ShadowEditor.SVG/src/SvgDom.js rename to ShadowEditor.SVG/src/Dom.js index 833529ce..50d8133b 100644 --- a/ShadowEditor.SVG/src/SvgDom.js +++ b/ShadowEditor.SVG/src/Dom.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgDom(options = {}) { +function Dom(options = {}) { Control.call(this, options); } -SvgDom.prototype = Object.create(Control.prototype); -SvgDom.prototype.constructor = SvgDom; +Dom.prototype = Object.create(Control.prototype); +Dom.prototype.constructor = Dom; -SvgDom.prototype.render = function () { +Dom.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); this.renderDom(dom); }; -UI.addXType('svgdom', SvgDom); +UI.addXType('svgdom', Dom); -export default SvgDom; \ No newline at end of file +export default Dom; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgEllipse.js b/ShadowEditor.SVG/src/Ellipse.js similarity index 53% rename from ShadowEditor.SVG/src/SvgEllipse.js rename to ShadowEditor.SVG/src/Ellipse.js index c0ea0714..8e21dbc5 100644 --- a/ShadowEditor.SVG/src/SvgEllipse.js +++ b/ShadowEditor.SVG/src/Ellipse.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgEllipse(options = {}) { +function Ellipse(options = {}) { Control.call(this, options); } -SvgEllipse.prototype = Object.create(Control.prototype); -SvgEllipse.prototype.constructor = SvgEllipse; +Ellipse.prototype = Object.create(Control.prototype); +Ellipse.prototype.constructor = Ellipse; -SvgEllipse.prototype.render = function () { +Ellipse.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse'); this.renderDom(dom); }; -UI.addXType('svgellipse', SvgEllipse); +UI.addXType('svgellipse', Ellipse); -export default SvgEllipse; \ No newline at end of file +export default Ellipse; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgLine.js b/ShadowEditor.SVG/src/Line.js similarity index 55% rename from ShadowEditor.SVG/src/SvgLine.js rename to ShadowEditor.SVG/src/Line.js index e9749070..f79557f2 100644 --- a/ShadowEditor.SVG/src/SvgLine.js +++ b/ShadowEditor.SVG/src/Line.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgLine(options = {}) { +function Line(options = {}) { Control.call(this, options); } -SvgLine.prototype = Object.create(Control.prototype); -SvgLine.prototype.constructor = SvgLine; +Line.prototype = Object.create(Control.prototype); +Line.prototype.constructor = Line; -SvgLine.prototype.render = function () { +Line.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'line'); this.renderDom(dom); }; -UI.addXType('svgline', SvgLine); +UI.addXType('svgline', Line); -export default SvgLine; \ No newline at end of file +export default Line; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgPath.js b/ShadowEditor.SVG/src/Path.js similarity index 55% rename from ShadowEditor.SVG/src/SvgPath.js rename to ShadowEditor.SVG/src/Path.js index 45d39c8a..a2856d62 100644 --- a/ShadowEditor.SVG/src/SvgPath.js +++ b/ShadowEditor.SVG/src/Path.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgPath(options = {}) { +function Path(options = {}) { Control.call(this, options); } -SvgPath.prototype = Object.create(Control.prototype); -SvgPath.prototype.constructor = SvgPath; +Path.prototype = Object.create(Control.prototype); +Path.prototype.constructor = Path; -SvgPath.prototype.render = function () { +Path.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'path'); this.renderDom(dom); }; -UI.addXType('svgpath', SvgPath); +UI.addXType('svgpath', Path); -export default SvgPath; \ No newline at end of file +export default Path; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgPolygon.js b/ShadowEditor.SVG/src/Polygon.js similarity index 53% rename from ShadowEditor.SVG/src/SvgPolygon.js rename to ShadowEditor.SVG/src/Polygon.js index 7fcc5b63..445a2ecf 100644 --- a/ShadowEditor.SVG/src/SvgPolygon.js +++ b/ShadowEditor.SVG/src/Polygon.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgPolygon(options = {}) { +function Polygon(options = {}) { Control.call(this, options); } -SvgPolygon.prototype = Object.create(Control.prototype); -SvgPolygon.prototype.constructor = SvgPolygon; +Polygon.prototype = Object.create(Control.prototype); +Polygon.prototype.constructor = Polygon; -SvgPolygon.prototype.render = function () { +Polygon.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'polygon'); this.renderDom(dom); }; -UI.addXType('svgpolygon', SvgPolygon); +UI.addXType('svgpolygon', Polygon); -export default SvgPolygon; \ No newline at end of file +export default Polygon; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgPolyline.js b/ShadowEditor.SVG/src/Polyline.js similarity index 52% rename from ShadowEditor.SVG/src/SvgPolyline.js rename to ShadowEditor.SVG/src/Polyline.js index 3cfc9e96..e35fc093 100644 --- a/ShadowEditor.SVG/src/SvgPolyline.js +++ b/ShadowEditor.SVG/src/Polyline.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgPolyline(options = {}) { +function Polyline(options = {}) { Control.call(this, options); } -SvgPolyline.prototype = Object.create(Control.prototype); -SvgPolyline.prototype.constructor = SvgPolyline; +Polyline.prototype = Object.create(Control.prototype); +Polyline.prototype.constructor = Polyline; -SvgPolyline.prototype.render = function () { +Polyline.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'polyline'); this.renderDom(dom); }; -UI.addXType('svgpolyline', SvgPolyline); +UI.addXType('svgpolyline', Polyline); -export default SvgPolyline; \ No newline at end of file +export default Polyline; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgRect.js b/ShadowEditor.SVG/src/Rect.js similarity index 55% rename from ShadowEditor.SVG/src/SvgRect.js rename to ShadowEditor.SVG/src/Rect.js index befbfa00..1cbb796a 100644 --- a/ShadowEditor.SVG/src/SvgRect.js +++ b/ShadowEditor.SVG/src/Rect.js @@ -5,18 +5,18 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgRect(options = {}) { +function Rect(options = {}) { Control.call(this, options); } -SvgRect.prototype = Object.create(Control.prototype); -SvgRect.prototype.constructor = SvgRect; +Rect.prototype = Object.create(Control.prototype); +Rect.prototype.constructor = Rect; -SvgRect.prototype.render = function () { +Rect.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); this.renderDom(dom); }; -UI.addXType('svgrect', SvgRect); +UI.addXType('svgrect', Rect); -export default SvgRect; \ No newline at end of file +export default Rect; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgText.js b/ShadowEditor.SVG/src/Text.js similarity index 58% rename from ShadowEditor.SVG/src/SvgText.js rename to ShadowEditor.SVG/src/Text.js index ca909cb4..ab852a9a 100644 --- a/ShadowEditor.SVG/src/SvgText.js +++ b/ShadowEditor.SVG/src/Text.js @@ -5,20 +5,20 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgText(options = {}) { +function Text(options = {}) { Control.call(this, options); this.text = options.text || null; } -SvgText.prototype = Object.create(Control.prototype); -SvgText.prototype.constructor = SvgText; +Text.prototype = Object.create(Control.prototype); +Text.prototype.constructor = Text; -SvgText.prototype.render = function () { +Text.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'text'); this.renderDom(dom); }; -UI.addXType('svgtext', SvgText); +UI.addXType('svgtext', Text); -export default SvgText; \ No newline at end of file +export default Text; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/SvgTextPath.js b/ShadowEditor.SVG/src/TextPath.js similarity index 56% rename from ShadowEditor.SVG/src/SvgTextPath.js rename to ShadowEditor.SVG/src/TextPath.js index 474d45df..5fbc7e93 100644 --- a/ShadowEditor.SVG/src/SvgTextPath.js +++ b/ShadowEditor.SVG/src/TextPath.js @@ -5,20 +5,20 @@ import { Control, UI } from './third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgTextPath(options = {}) { +function TextPath(options = {}) { Control.call(this, options); this.text = options.text || null; } -SvgTextPath.prototype = Object.create(Control.prototype); -SvgTextPath.prototype.constructor = SvgTextPath; +TextPath.prototype = Object.create(Control.prototype); +TextPath.prototype.constructor = TextPath; -SvgTextPath.prototype.render = function () { +TextPath.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'textPath'); this.renderDom(dom); }; -UI.addXType('svgtextpath', SvgTextPath); +UI.addXType('svgtextpath', TextPath); -export default SvgTextPath; \ No newline at end of file +export default TextPath; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/defs/SvgDefs.js b/ShadowEditor.SVG/src/defs/Defs.js similarity index 55% rename from ShadowEditor.SVG/src/defs/SvgDefs.js rename to ShadowEditor.SVG/src/defs/Defs.js index 474fdfe9..5d8f1a15 100644 --- a/ShadowEditor.SVG/src/defs/SvgDefs.js +++ b/ShadowEditor.SVG/src/defs/Defs.js @@ -5,18 +5,18 @@ import { Control, UI } from '../third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgDefs(options = {}) { +function Defs(options = {}) { Control.call(this, options); } -SvgDefs.prototype = Object.create(Control.prototype); -SvgDefs.prototype.constructor = SvgDefs; +Defs.prototype = Object.create(Control.prototype); +Defs.prototype.constructor = Defs; -SvgDefs.prototype.render = function () { +Defs.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'defs'); this.renderDom(dom); }; -UI.addXType('svgdefs', SvgDefs); +UI.addXType('svgdefs', Defs); -export default SvgDefs; \ No newline at end of file +export default Defs; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/defs/SvgUse.js b/ShadowEditor.SVG/src/defs/Use.js similarity index 56% rename from ShadowEditor.SVG/src/defs/SvgUse.js rename to ShadowEditor.SVG/src/defs/Use.js index 9695f112..65a865ba 100644 --- a/ShadowEditor.SVG/src/defs/SvgUse.js +++ b/ShadowEditor.SVG/src/defs/Use.js @@ -5,18 +5,18 @@ import { Control, UI } from '../third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgUse(options = {}) { +function Use(options = {}) { Control.call(this, options); } -SvgUse.prototype = Object.create(Control.prototype); -SvgUse.prototype.constructor = SvgUse; +Use.prototype = Object.create(Control.prototype); +Use.prototype.constructor = Use; -SvgUse.prototype.render = function () { +Use.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'use'); this.renderDom(dom); }; -UI.addXType('svguse', SvgUse); +UI.addXType('svguse', Use); -export default SvgUse; \ No newline at end of file +export default Use; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/filter/SvgFilter.js b/ShadowEditor.SVG/src/filter/Filter.js similarity index 54% rename from ShadowEditor.SVG/src/filter/SvgFilter.js rename to ShadowEditor.SVG/src/filter/Filter.js index 3613a922..3004ea63 100644 --- a/ShadowEditor.SVG/src/filter/SvgFilter.js +++ b/ShadowEditor.SVG/src/filter/Filter.js @@ -5,18 +5,18 @@ import { Control, UI } from '../third_party'; * @author tengge / https://github.com/tengge1 * @param {*} options */ -function SvgFilter(options = {}) { +function Filter(options = {}) { Control.call(this, options); } -SvgFilter.prototype = Object.create(Control.prototype); -SvgFilter.prototype.constructor = SvgFilter; +Filter.prototype = Object.create(Control.prototype); +Filter.prototype.constructor = Filter; -SvgFilter.prototype.render = function () { +Filter.prototype.render = function () { var dom = document.createElementNS('http://www.w3.org/2000/svg', 'filter'); this.renderDom(dom); }; -UI.addXType('svgfilter', SvgFilter); +UI.addXType('svgfilter', Filter); -export default SvgFilter; \ No newline at end of file +export default Filter; \ No newline at end of file diff --git a/ShadowEditor.SVG/src/index.js b/ShadowEditor.SVG/src/index.js index 6ccddaf0..5ac1b154 100644 --- a/ShadowEditor.SVG/src/index.js +++ b/ShadowEditor.SVG/src/index.js @@ -1,19 +1,19 @@ -import './SvgDom'; -import './SvgCircle'; -import './SvgRect'; -import './SvgEllipse'; -import './SvgLine'; -import './SvgPolyline'; -import './SvgPolygon'; -import './SvgPath'; -import './SvgText'; -import './SvgTextPath'; -import './SvgAnchor'; +import './Dom'; +import './Circle'; +import './Rect'; +import './Ellipse'; +import './Line'; +import './Polyline'; +import './Polygon'; +import './Path'; +import './Text'; +import './TextPath'; +import './Anchor'; -import './defs/SvgDefs'; -import './defs/SvgUse'; +import './defs/Defs'; +import './defs/Use'; -import './filter/SvgFilter'; +import './filter/Filter'; import './filter/feGaussianBlur'; import './filter/feOffset'; import './filter/feBlend';