Commit graph

177 commits

Author SHA1 Message Date
Jürg Lehni
f5366fb3cb Some minor adjustments for #1530 2018-10-05 10:01:51 +02:00
Samuel Asensi
c235d6a917 Implement Curve#getTimesWithTangent()
and Path#getOffsetsWithTangent()
2018-10-05 09:44:42 +02:00
Jürg Lehni
98fc51319f Remove unnecessary double-spaces. 2016-02-10 16:15:35 +01:00
Jürg Lehni
340a1e2a5f Rename curve-time in API from 'parameter' to 'time'
And create separate versions of methods that receive curve-time arguments instead of offsets.

Curve#getNormalAt(time, true) -> #getNormalAtTime(true)
Curve#divide() -> #divideAt(offset) / #divideAtTime(time)
Curve#split() -> #splitAt(offset) / #splitAtTime(time)
Curve#getParameterAt(offset) -> #getTimeAt(offset)
Curve#getParameterOf(point) -> getTimeOf(point)
Curve#getPointAt(time, true) -> #getPointAtTime(time)
Curve#getTangentAt(time, true) -> #getTangenttTime(time)
Curve#getNormalAt(time, true) -> #getNormalAtTime(time)
Curve#getCurvatureAt(time, true) -> #getCurvatureAtTime(time)
CurveLocation#parameter -> #time
Path#split(offset/location) -> #splitAt(offset/location)

Closes #563
2016-02-02 11:59:53 +01:00
Jürg Lehni
bc2729683c Core: Renamed Symbol and PlacedSymbol classes and properties.
- Symbol -> SymbolDefinition
- PlacedSymbol -> SymbolItem
- Symbol#definition -> SymbolDefinition#item
- PlacedSymbol#symbol -> SymbolItem#definition
- Deprecate Project#symbols

Closes #770
2016-01-31 16:52:51 +01:00
Jürg Lehni
b71ffdbe71 Remove all direct calls to view.update() and favor of the new view.requestUpdate()
Pure window.requestAnimationFrame() smoothness, automatic updates even when working directly from JavaScript, and no more slow-downs from onLoad events!

Closes #830, #925
2016-01-26 21:37:27 +01:00
Jürg Lehni
386632b0be Implement new version of #reorient() and merge with #resolveCrossings()
As proposed by @iconexperience in #854
2015-12-30 21:55:17 +01:00
Jürg Lehni
aa3f527ca6 Minor code clean-up. 2015-10-05 17:35:54 +02:00
Jürg Lehni
5af391d333 Fix errors in Boolean Operations example. 2015-09-18 17:52:14 +02:00
Jürg Lehni
04452730dd Simplify CurveLocation data structures.
Directly creating and linking intersections simplifies things a lot.
2015-09-09 17:17:49 +02:00
Jürg Lehni
605ceef94c Fix deprecated getPoint / Normal / Tangent calls. 2015-08-22 14:24:57 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
c9e7832728 Minor change in stroke scaling example for simple toggling. 2014-07-08 15:43:17 +02:00
Jürg Lehni
0060f629ae Simplify SVG export examples. 2014-05-14 13:34:36 +02:00
Jürg Lehni
846c806034 Implement non-scaling strokes through Style#strokeScaling.
Closes #418.
2014-05-13 13:38:51 +02:00
Jürg Lehni
f4fbf3549e Fix display: none; in Boolean Operations example. 2014-05-07 17:35:17 +01:00
Jürg Lehni
fe064e9cc3 Switch from dist/paper.js to dist/paper-full.js and explain the different versions in the README.
Closes #422.
2014-04-06 13:44:19 +02:00
Squ34k3rZ
6de15b64a3 Update Shapes.html
Changed title from 'resize' to 'Shapes'
2014-01-05 15:20:53 -06:00
Jürg Lehni
2973fef6bd Update PathStructure example to code from website. 2014-01-05 19:01:05 +01:00
Jürg Lehni
413e4efce4 Fix small error in PathStructure example. 2014-01-05 18:57:52 +01:00
Jürg Lehni
6e5d8939d5 Rename View#draw() -> View#update() and remove checkRedraw argument.
We always check for changes, since change propagation should work reliably.
2013-12-08 19:15:58 +01:00
hkrish
551b49805c Add special case to examples. 2013-11-11 21:21:41 +01:00
Jürg Lehni
2066fae47a Use option.expandShapes to restore boolean examples. 2013-10-29 16:47:27 +01:00
Jürg Lehni
4f27be8f12 Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
2013-10-18 14:22:59 +02:00
Jürg Lehni
9956a6ff51 Implement Shape#toPath(), analogue to Path#toShape().
This way is much simpler though.
2013-10-16 23:44:50 +02:00
Jürg Lehni
c4c7a37993 Implement Path#toShape(), Segment#isColinear(), Segment#isOrthogonal() and Segment#isArc(). 2013-10-16 23:10:03 +02:00
Jürg Lehni
6d751fc466 Add mouse hovering to StrokeBounds example. 2013-08-16 16:40:26 -07:00
Jürg Lehni
c6e50375df Expose nativeBlendModes and amend BlendModes example with information about the use of native modes. 2013-06-24 15:55:15 -07:00
Jürg Lehni
4c444f266f Update BlendModes example. 2013-06-24 15:20:43 -07:00
Jürg Lehni
2241329321 Fix id clash in SVGExport. 2013-06-18 17:29:00 -07:00
Jürg Lehni
ace23d354d Update BlendModes example to include SVG export. 2013-06-18 17:23:38 -07:00
Jürg Lehni
b133d8fe2e Restructure BlendMode code, fix issues with color-dodge and color-burn, and create BlendModes.html example.
All modes should be implemented according to specs now.
2013-06-18 08:02:04 -07:00
Jürg Lehni
18383875eb Fix global variable leakage. 2013-06-11 17:46:50 -07:00
Jürg Lehni
7f251b78e3 Switch to HTML5 meta charset tags. 2013-06-02 13:41:10 -07:00
Jürg Lehni
d9e2d2a94a Fix console logging. 2013-05-04 14:27:53 -07:00
Jürg Lehni
eb8ebca097 Run BooleanOperations.html code asynchronously for immediate feedback. 2013-05-04 14:26:29 -07:00
Jürg Lehni
ee8a79449b Include BooleanOperations.html 2013-05-03 16:31:36 -07:00
Jürg Lehni
9efbc288a1 Merge Path.Rectangle and Path.RoundRectangle. 2013-04-19 12:36:49 -07:00
Jürg Lehni
5209e97c8d Merge GradientColor into Color.
Work in progress.
2013-04-09 01:21:36 -07:00
Jürg Lehni
9cdc4b9372 Switch back to only one Gradient constructor for both linear and radial Gradients. 2013-04-08 20:52:21 -07:00
Jürg Lehni
232ea221b4 First batch of large Color refactoring and simplification.
Work in progress.
2013-04-07 10:03:51 -07:00
Jonathan Puckey
ace2e3e13b Improve several examples. 2013-03-09 16:02:11 +01:00
Jonathan Puckey
2dfe491212 Improve PathStructure example. 2013-03-09 15:58:39 +01:00
Jonathan Puckey
421c3c19e3 Remove Letter example. 2013-03-09 15:26:59 +01:00
Jonathan Puckey
ba86ec8688 Remove Circle example.
Removing because the example doesn't really show off anything.
2013-03-09 15:01:46 +01:00
Jürg Lehni
c9e337836a Move BouncingBalls example to Paper.js folder. 2013-03-03 14:38:27 -08:00
Jonathan Puckey
3db61a3509 Examples: Move improved and simplified version of Bouncing Balls to Paperjs.org folder. 2013-03-02 20:58:56 +01:00
Jonathan Puckey
b124d23078 Move examples which are featured on paperjs.org website to Paperjs.org folder. 2013-03-02 20:54:52 +01:00
Jonathan Puckey
e7475d5980 Update Chain example. 2013-03-02 18:35:10 +01:00
Jonathan Puckey
8ab70fd0de Update Arcs example. 2013-03-02 17:05:56 +01:00