Fix bug in SVG rendering.

This commit is contained in:
kangax 2012-05-09 19:12:56 +04:00
parent 76ee6586c6
commit 5e4811ea20
7 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8" };
var fabric = fabric || { version: "0.8.1" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;

4
dist/all.js vendored
View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8" };
var fabric = fabric || { version: "0.8.1" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;
@ -9986,7 +9986,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
if (chunksParsed.length - 1 > commandLength) {
for (var k = 1, klen = chunksParsed.length; k < klen; k += commandLength) {
result.push([command].concat(chunksParsed.slice(k, k + commandLength)));
result.push([ chunksParsed[0] ].concat(chunksParsed.slice(k, k + commandLength)));
}
}
else {

4
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.8.0",
"version": "0.8.1",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",

2
site

@ -1 +1 @@
Subproject commit 3d627d72ab3d18d73506d32750206cdc0a41f19b
Subproject commit c5fe3128e4c5f4138a53bc60dd03213841822137

View file

@ -583,7 +583,7 @@
if (chunksParsed.length - 1 > commandLength) {
for (var k = 1, klen = chunksParsed.length; k < klen; k += commandLength) {
result.push([command].concat(chunksParsed.slice(k, k + commandLength)));
result.push([ chunksParsed[0] ].concat(chunksParsed.slice(k, k + commandLength)));
}
}
else {