Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/snap.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// build: 2017-10-13
// build: 2017-10-23

// Copyright (c) 2017 Adobe Systems Incorporated. All rights reserved.
//
Expand Down Expand Up @@ -1860,7 +1860,7 @@ var Snap = (function (root) {
function svgTransform2string(tstr) {
var res = [];
tstr = tstr.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g, function (all, name, params) {
params = params.split(/\s*,\s*|\s+/);
params = params.trim().split(/\s*,\s*|\s+/);
if (name == "rotate" && params.length == 1) {
params.push(0, 0);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/snap.svg.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/snap.svg.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// build: 2017-10-13
// build: 2017-10-23

// Using pattern defined here
// http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/
Expand Down Expand Up @@ -1424,7 +1424,7 @@ var Snap = (function (root) {
function svgTransform2string(tstr) {
var res = [];
tstr = tstr.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g, function (all, name, params) {
params = params.split(/\s*,\s*|\s+/);
params = params.trim().split(/\s*,\s*|\s+/);
if (name == "rotate" && params.length == 1) {
params.push(0, 0);
}
Expand Down
8 changes: 4 additions & 4 deletions dist/snap.svg.slim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ var Snap = (function (root) {
function svgTransform2string(tstr) {
var res = [];
tstr = tstr.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g, function (all, name, params) {
params = params.split(/\s*,\s*|\s+/);
params = params.trim().split(/\s*,\s*|\s+/);
if (name == "rotate" && params.length == 1) {
params.push(0, 0);
}
Expand Down