Commit 5e7a3ee
committed
Changes:
* removed 'auto' option for options.round, the reason is the high duration of getting the path bounding box at initialization;
* the default `origin` option value is no longer 'auto' but [0, 0, 0];
* conversion tools no longer make use of checks (EG: isPathArray) to remove bottlenecks at constructor initialization;
* fixed issue with `pathToRelative` where additional MoveTo segments didn't get converted to relative #40 ;
* fixed a small issue with `pathToAbsolute` with additional relative `m` segments not properly processed;
* updated splitPath to work with relative arrays
* removed `pathFactory` (an elegant solution but not very fast) in favor of the below mentioned;
* removed `replaceArc` it's no longer needed;
* added new tools for each segment type for calculating length, and bbox as well as finding a point at length;
* fixed a small issue with Arc segments where getting point at given length was also finding points inside the shape and not in stroke;
* further performance improvements #44;
* updated tests;
* updated docs / demo: added path total length, point at length and bbox;
* updated dependencies.1 parent a7d6372 commit 5e7a3ee
File tree
48 files changed
+2501
-1849
lines changed- dist
- docs
- src
- convert
- math
- parser
- process
- util
- test
- fixtures
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+2501
-1849
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
| |||
112 | 127 | | |
113 | 128 | | |
114 | 129 | | |
115 | | - | |
116 | 130 | | |
117 | 131 | | |
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
121 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
122 | 177 | | |
123 | 178 | | |
124 | 179 | | |
| |||
213 | 268 | | |
214 | 269 | | |
215 | 270 | | |
| 271 | + | |
216 | 272 | | |
217 | 273 | | |
218 | 274 | | |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
371 | 447 | | |
372 | 448 | | |
373 | 449 | | |
| |||
381 | 457 | | |
382 | 458 | | |
383 | 459 | | |
384 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
385 | 471 | | |
386 | 472 | | |
387 | 473 | | |
388 | | - | |
| 474 | + | |
389 | 475 | | |
390 | 476 | | |
391 | 477 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | 478 | | |
410 | 479 | | |
411 | 480 | | |
| |||
440 | 509 | | |
441 | 510 | | |
442 | 511 | | |
443 | | - | |
| 512 | + | |
444 | 513 | | |
445 | 514 | | |
446 | 515 | | |
447 | | - | |
448 | 516 | | |
449 | 517 | | |
450 | 518 | | |
451 | 519 | | |
452 | | - | |
| 520 | + | |
453 | 521 | | |
454 | 522 | | |
455 | 523 | | |
| |||
467 | 535 | | |
468 | 536 | | |
469 | 537 | | |
470 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
471 | 549 | | |
472 | 550 | | |
473 | 551 | | |
474 | 552 | | |
475 | 553 | | |
476 | 554 | | |
477 | 555 | | |
478 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
479 | 567 | | |
480 | 568 | | |
481 | 569 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments