Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,383 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ Clipper 0.5.0 | |
Unitful 0.11.0 | ||
Cairo 0.5.4 | ||
WebIO 0.4 0.5- | ||
IntervalSets 0.3.1 | ||
DataStructures 0.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
""" | ||
extent(s::Style, t) | ||
For a style `s`, returns a distance tangential to the path specifying the lateral extent | ||
of the polygons rendered. The extent is measured from the center of the path to the edge | ||
of the polygon (half the total width along the path). The extent is evaluated at path length | ||
`t` from the start of the associated segment. | ||
""" | ||
function extent end | ||
|
||
""" | ||
width(s::Style, t) | ||
For a style `s` and parameteric argument `t`, returns the width of paths rendered. | ||
""" | ||
function width end | ||
|
||
""" | ||
translate(s::ContinuousStyle, x) | ||
Creates a style `s′` such that all properties `f(s′, t) == f(s, t+x)`. Basically, advance | ||
the style forward by path length `x`. | ||
""" | ||
function translate end | ||
|
||
""" | ||
pin(s::ContinuousStyle; start=nothing, stop=nothing) | ||
Imagine having a styled segment of length `L` split into two, the first segment having | ||
length `l` and the second having length `L-l`. In all but the simplest styles, the styles | ||
need to be modified in order to maintain the rendered appearances. A style appropriate for | ||
the segment of length `l` (`L-l`) is given by `pin(s; stop=l)` (`pin(s; start=l)`). | ||
""" | ||
function pin(s::ContinuousStyle{false}; start=nothing, stop=nothing) | ||
if start !== nothing | ||
return translate(s, start) | ||
end | ||
return s | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.