Commit graph

7411 commits

Author SHA1 Message Date
Jürg Lehni
990cf02879
Merge pull request #1528 from paperjs/fsih-svg-translate-optional-arguments
SVGImport: Support optional arguments in SVG translate and rotate
2018-09-29 16:25:22 +02:00
DD
bf63bf223c Add rotate case as well 2018-09-29 16:19:32 +02:00
DD
8d0fecbb1b For SVG import, If second argument is missing in translate, assume that it's zero. Currently it assumes that y matches x if y is missing. 2018-09-29 16:19:09 +02:00
Jürg Lehni
8792d142b3 Some code cleanup for #1515 2018-09-29 15:09:02 +02:00
Jürg Lehni
9f4bc8d7a3 Reformat README to stick to 80 chars per line 2018-09-29 15:09:00 +02:00
Jürg Lehni
9c87c06633 Fix faulty instruction about ESLint / prettier 2018-09-29 14:54:08 +02:00
Jürg Lehni
ef2c56b164
Merge pull request #1515 from sasensi/Fix_#1506_#1513_by_checking_winding_quality_in_boolean_subtraction
Fix #1506 #1513 by checking winding quality in boolean subtraction
2018-09-29 14:51:18 +02:00
sapics
e057f20f37
Merge pull request #1511 from sapics/free-memory2
Release memory on Color
2018-09-29 13:31:38 +09:00
sapics
eb740c2452 Minor fix 2018-09-29 12:29:12 +09:00
sapics
d55249919e
Merge pull request #1526 from sapics/patch1
Fix Cannot read property 'parent' of undefined in node
2018-09-29 12:16:53 +09:00
Bojan Hribernik
6925888024 Fix Cannot read property 'parent' of undefined in node
This happens in webpack bundle in node server rendering react application:
```js
TypeError: Cannot read property 'parent' of undefined
    at Object.eval (webpack:///./node_modules/paper/dist/node/self.js?:20:28)
    at eval (webpack:///./node_modules/paper/dist/node/self.js?:62:30)
    at Object../node_modules/paper/dist/node/self.js (/home/bojan/www/climbuddy/client/server/map.bundle.js:34531:1)
    at __webpack_require__ (/home/bojan/www/climbuddy/client/server/map.bundle.js:26:30)
    at Object.eval (webpack:///./node_modules/paper/dist/paper-core.js?:35:16)
    at eval (webpack:///./node_modules/paper/dist/paper-core.js?:14798:3)
    at Object../node_modules/paper/dist/paper-core.js (/home/bojan/www/climbuddy/client/server/map.bundle.js:34553:1)
    at __webpack_require__ (/home/bojan/www/climbuddy/client/server/map.bundle.js:26:30)
    at eval (webpack:///./node_modules/react-paper-bindings/lib/View.js?:15:18)
    at Object../node_modules/react-paper-bindings/lib/View.js (/home/bojan/www/climbuddy/client/server/map.bundle.js:37188:1)
```
2018-09-29 12:14:32 +09:00
sapics
e7f09af890
Merge pull request #1522 from paperjs/fix-travis
Fix travis errors
2018-09-29 09:59:12 +09:00
sapics
b26c852c3c Fix:travis replace test version of node v6 to v6.12, because v6.13 and v6.14 cause unreasonable error in SymbolDefinition.initialize 2018-09-29 09:51:13 +09:00
sapics
1331554862 Fix:test replace gif to png because jsdom causes error 2018-09-29 08:55:41 +09:00
sapics
e9c4e8cf3b Release memory on Color 2018-09-27 18:39:39 +09:00
Jürg Lehni
2cda6a3694
Merge pull request #1518 from sapics/patch-1
Code style fix: replace tabs to spaces
2018-09-27 11:09:07 +02:00
Jürg Lehni
c61cdd9282
Merge pull request #1517 from sapics/https
Fix dead links and prefer https in README.md
2018-09-27 11:08:10 +02:00
sapics
f8d8b5cc03
Code style fix: replace tabs to spaces 2018-09-27 16:47:17 +09:00
sapics
0bf5aa5990 Fix dead links and prefer https in README.md 2018-09-27 12:23:44 +09:00
Jürg Lehni
a5683c1184
Merge pull request #1510 from sasensi/fix_Path.splitAt()_documentation_example
Fix Path.splitAt() documentation example
2018-09-26 15:09:42 +02:00
sasensi
9a8aae00bd Fix #1506 #1513 by checking winding quality in boolean subtraction 2018-09-26 14:05:29 +02:00
sasensi
2ff1fc272d add Samuel Asensi to contributors list 2018-09-20 12:35:15 +02:00
sasensi
6ca654d6d3 fix Path.splitAt() documentation example 2018-09-20 12:24:35 +02:00
Jürg Lehni
6cbf5292da
Merge pull request #1508 from sapics/travis-1
Travis: remove node v7 due to no LTS and add v8 due to active LTS
2018-09-14 10:06:11 +02:00
sapics
49271b3f92 Travis: remove node v7 due to no LTS and add v8 due to active LTS 2018-09-14 15:28:55 +09:00
DD Liu
f255218f36
Merge pull request #17 from fsih/rasterizeOptions
Allow user to set bounds in Item.rasterize
2018-08-06 17:16:17 -04:00
DD Liu
c7042d79e1 Turn off image smoothing on rasterize and allow user-set bounds 2018-08-03 16:01:07 -04:00
DD Liu
3b68397a5e Fix uses of const 2018-08-02 16:07:26 -04:00
DD Liu
9f9f210537
Merge pull request #16 from fsih/safariDrawImage
Fix Safari when selection exceeds canvas bounds
2018-08-01 15:38:38 -04:00
DD Liu
e0b6759add Make raster's getSubRaster function allow rectangles that exceed the bounds of the canvas. This fixes Safari, which returns a blank canvas in that case. 2018-07-26 15:08:48 -04:00
DD Liu
9043d1236f
Merge pull request #15 from LLK/fix-text-gradients
Fix gradients applied to text.
2018-07-17 11:45:42 -04:00
Paul Kaplan
7519590321 Fix gradients applied to text.
Two things:
1. Apply a gradientTransform for text items that reverse the text transform. This is required because we do not use x/y for text, and gradients are impacted by the transforms.
2. Always apply the style to text elements instead of allowing them to be applied to the parent group if the text element is alone. This is so the fill property is always on the text element so the gradient transforms work.
2018-07-17 10:09:41 -04:00
DD Liu
51a1b93df6
Merge pull request #14 from fsih/bearEars
Fix SVG import of translate with one argument
2018-06-27 16:55:54 -04:00
DD
011a353c08 Add rotate case as well 2018-06-27 16:47:19 -04:00
DD
4c72f3f89e For SVG import, If second argument is missing in translate, assume that it's zero. Currently it assumes that y matches x if y is missing. 2018-06-27 16:29:46 -04:00
Paul Kaplan
2ed21a7387
Merge pull request #12 from LLK/paulkaplan-patch-1
Use childNodes instead of children
2018-06-14 11:46:42 -04:00
Paul Kaplan
9065cad302
Use childNodes instead of children 2018-06-14 11:40:56 -04:00
DD Liu
aac34afbc8
Merge pull request #11 from fsih/alignmentBaseline
Add support for text before edge baseline
2018-05-23 15:38:49 -04:00
DD Liu
df08aa10c1
Remove || '' 2018-05-23 15:27:07 -04:00
DD
26868e4cab Add support for text before edge baseline 2018-05-22 12:40:59 -04:00
DD Liu
4ce55ae0d2
Merge pull request #10 from fsih/lineSpacing
Be able to import line spacing
2018-05-21 11:31:55 -04:00
DD
15470a90b7 Be able to import leading 2018-05-17 17:33:36 -04:00
DD Liu
a9de479c8c
Merge pull request #9 from fsih/hitUnfilledText
Allow hitting unfilled text and compound paths when hitUnfilledPaths option is on
2018-04-11 14:32:35 -04:00
DD
e29749a266 Allow hitting unfilled text and compound paths when hitUnfilledPaths option is on 2018-04-03 18:09:24 -04:00
Paul Kaplan
feb044048f Disable browser test step because CI cannot run it 2018-03-29 15:21:14 -04:00
Paul Kaplan
c5745e1c83
Merge pull request #7 from LLK/scratch-text
Export and import SVGs with multiline text
2018-03-29 13:39:17 -04:00
Paul Kaplan
dd276b92f7 Export and import SVGs with multiline text 2018-03-29 13:23:52 -04:00
Jürg Lehni
a61e83edf2 Simplify fix for #1452 2018-03-06 12:57:05 +01:00
Jürg Lehni
aae62926e2
Merge pull request #1452 from park9140/fix-issue-with-svg-import-of-raster-images
fix issue with svg import of raster images
2018-03-06 12:47:29 +01:00
Jürg Lehni
ad7b12f6c5
Merge pull request #1456 from codetriage-readme-bot/codetriage-badge
Add CodeTriage badge to paperjs/paper.js
2018-03-05 21:49:25 +01:00