mirror of
https://github.com/rough-stuff/rough.git
synced 2026-01-14 08:57:56 -05:00
Merge pull request #56 from pshihn/path-scientific-parsing
removed a faulty regex that was causing scientific notation parsing to fail.
This commit is contained in:
2
dist/rough.js
vendored
2
dist/rough.js
vendored
@@ -854,7 +854,7 @@ class RoughRenderer {
|
||||
}
|
||||
|
||||
svgPath(path, o) {
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-)/g, " -").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
let p = new RoughPath(path);
|
||||
if (o.simplification) {
|
||||
let fitter = new PathFitter(p.linearPoints, p.closed);
|
||||
|
||||
2
dist/rough.min.js
vendored
2
dist/rough.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/rough.umd.js
vendored
2
dist/rough.umd.js
vendored
@@ -857,7 +857,7 @@ class RoughRenderer {
|
||||
}
|
||||
|
||||
svgPath(path, o) {
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-)/g, " -").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
let p = new RoughPath(path);
|
||||
if (o.simplification) {
|
||||
let fitter = new PathFitter(p.linearPoints, p.closed);
|
||||
|
||||
2
dist/rough.umd.min.js
vendored
2
dist/rough.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "roughjs",
|
||||
"version": "2.1.1",
|
||||
"version": "2.1.2",
|
||||
"description": "Create graphics using HTML Canvas or SVG with a hand-drawn, sketchy, appearance.",
|
||||
"main": "dist/rough.umd.js",
|
||||
"jsnext:main": "src/index.js",
|
||||
|
||||
@@ -208,7 +208,7 @@ export class RoughRenderer {
|
||||
}
|
||||
|
||||
svgPath(path, o) {
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-)/g, " -").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
path = (path || '').replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(\s\s)/g", " ");
|
||||
let p = new RoughPath(path);
|
||||
if (o.simplification) {
|
||||
let fitter = new PathFitter(p.linearPoints, p.closed);
|
||||
|
||||
Reference in New Issue
Block a user