Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(primitives): SVG parser/renderer #893

Merged
merged 43 commits into from
Jun 12, 2020
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
bd24e0b
Dependency: add markup.ml
glennsl Jun 3, 2020
6e0e8c2
initial implementation
glennsl Jun 3, 2020
64a6229
example
glennsl Jun 3, 2020
e91e8ac
split into separate modules
glennsl Jun 3, 2020
610ac04
add basic SVGString component
glennsl Jun 3, 2020
1a3b024
split out RenderContext
glennsl Jun 3, 2020
130de2f
pass dimensions to canvas render function
glennsl Jun 3, 2020
6fb9f7e
largeArc -> size
glennsl Jun 3, 2020
7979314
fix viewport transform
glennsl Jun 3, 2020
2793a68
add CanvasContext.drawRoundedRect
glennsl Jun 3, 2020
50abb1a
viewBox
glennsl Jun 3, 2020
e0b2f66
implement arc path commands
glennsl Jun 3, 2020
fd680c7
add polygon
glennsl Jun 4, 2020
fa9877e
add named color lookup by string
glennsl Jun 4, 2020
27ad5dc
parse color names
glennsl Jun 4, 2020
915ce99
improve error reporting
glennsl Jun 4, 2020
d253ce5
add more examples
glennsl Jun 4, 2020
dbc6159
implement quad path command
glennsl Jun 4, 2020
3a9cfed
make color lookup case insensitive
glennsl Jun 4, 2020
a01fa05
fix fill and stroke defaults
glennsl Jun 4, 2020
8c6c018
fix stroke width default
glennsl Jun 4, 2020
239e700
handle auto for rect's rx, ry
glennsl Jun 4, 2020
0ac64a2
fix v path command
glennsl Jun 4, 2020
ed84033
add fixed examples compensating for missing features
glennsl Jun 4, 2020
f20244d
implement polyline
glennsl Jun 4, 2020
0c6535e
add source to examples where appropriate
glennsl Jun 4, 2020
f323ebd
add a few real world examples
glennsl Jun 4, 2020
0beb08a
convert path parser to state machine to fix several edge cases
glennsl Jun 4, 2020
2d00ff5
enable anti-aliasing on paint
glennsl Jun 4, 2020
8efcdb1
skia: add Path.getLastPoint
glennsl Jun 4, 2020
a89c706
implement V and H path commands
glennsl Jun 4, 2020
534142e
implement S path command
glennsl Jun 4, 2020
346a56c
implement s path command (hopefully)
glennsl Jun 4, 2020
84bd63d
format,
Jun 4, 2020
c33ee16
refactor path command parser to support implicit chaining
glennsl Jun 4, 2020
58d38c0
fix flash example source
glennsl Jun 4, 2020
09af7b0
remove redundant tweaked close path example
glennsl Jun 4, 2020
c87ab85
add second quad bezier example
glennsl Jun 4, 2020
ac71b5c
implement T following Q (but not q, T, t)
glennsl Jun 4, 2020
c0f03d0
remove empty Style module
glennsl Jun 12, 2020
7aef179
refactor SVGExample to remove smelly code
glennsl Jun 12, 2020
48ff331
simplify pattern match
glennsl Jun 12, 2020
32a2f7a
format,
Jun 12, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion bench.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions bench.esy.lock/opam/markup.0.8.2/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 29 additions & 2 deletions doc.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions doc.esy.lock/opam/markup.0.8.2/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions esy.lock/opam/markup.0.8.2/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion examples.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading