mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-19 11:01:08 +00:00
Make SVG output Corel Draw -compatible. Closes #758
This commit is contained in:
parent
5abd57909c
commit
6b36e72521
4 changed files with 7 additions and 7 deletions
6
dist/all.js
vendored
6
dist/all.js
vendored
|
|
@ -7156,7 +7156,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
|
|||
markup.push(
|
||||
'<?xml version="1.0" standalone="no" ?>',
|
||||
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',
|
||||
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'
|
||||
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'
|
||||
);
|
||||
}
|
||||
markup.push(
|
||||
|
|
@ -7279,7 +7279,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
|
|||
|
||||
if (intersecting) {
|
||||
newIdx = idx;
|
||||
|
||||
|
||||
// traverse down the stack looking for the nearest intersecting object
|
||||
for (var i=idx-1; i>=0; --i) {
|
||||
|
||||
|
|
@ -7337,7 +7337,7 @@ fabric.Shadow = fabric.util.createClass(/** @lends fabric.Shadow.prototype */ {
|
|||
else {
|
||||
newIdx = idx+1;
|
||||
}
|
||||
|
||||
|
||||
removeFromArray(this._objects, object);
|
||||
this._objects.splice(newIdx, 0, object);
|
||||
this.renderAll && this.renderAll();
|
||||
|
|
|
|||
2
dist/all.min.js
vendored
2
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -744,7 +744,7 @@
|
|||
markup.push(
|
||||
'<?xml version="1.0" standalone="no" ?>',
|
||||
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',
|
||||
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'
|
||||
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'
|
||||
);
|
||||
}
|
||||
markup.push(
|
||||
|
|
@ -867,7 +867,7 @@
|
|||
|
||||
if (intersecting) {
|
||||
newIdx = idx;
|
||||
|
||||
|
||||
// traverse down the stack looking for the nearest intersecting object
|
||||
for (var i=idx-1; i>=0; --i) {
|
||||
|
||||
|
|
@ -925,7 +925,7 @@
|
|||
else {
|
||||
newIdx = idx+1;
|
||||
}
|
||||
|
||||
|
||||
removeFromArray(this._objects, object);
|
||||
this._objects.splice(newIdx, 0, object);
|
||||
this.renderAll && this.renderAll();
|
||||
|
|
|
|||
Loading…
Reference in a new issue