Skip to content

Commit

Permalink
Vega 4.3 'require' option for linkPath transform
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoLondon committed Oct 12, 2018
1 parent 5ef0e38 commit 68e973f
Show file tree
Hide file tree
Showing 23 changed files with 250 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/documentation.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions examples/js/barchart.js

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

11 changes: 11 additions & 0 deletions examples/js/helloWorld.js

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

11 changes: 11 additions & 0 deletions examples/js/voronoi.js

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

21 changes: 18 additions & 3 deletions src/Vega.elm
Expand Up @@ -268,6 +268,7 @@ module Vega exposing
, lpTargetY
, lpOrient
, lpShape
, lpRequire
, lpAs
, lsLine
, lsArc
Expand Down Expand Up @@ -1647,6 +1648,7 @@ See the
@docs lpTargetY
@docs lpOrient
@docs lpShape
@docs lpRequire
@docs lpAs
@docs lsLine
@docs lsArc
Expand Down Expand Up @@ -3685,9 +3687,8 @@ type LegendType
| LegendTypeSignal String


{-| Generated by [lpSourceY](#lpSourceY),
[lpTargetX](#lpTargetX), [lpTargetY](#lpTargetY), [lpOrient](#lpOrient),
[lpShape](#lpShape) and [lpAs](#lpAs).
{-| Generated by [lpSourceY](#lpSourceY), [lpTargetX](#lpTargetX), [lpTargetY](#lpTargetY),
[lpOrient](#lpOrient), [lpShape](#lpShape), [lpRequire](#lpRequire) and [lpAs](#lpAs).
-}
type LinkPathProperty
= LPSourceX Field
Expand All @@ -3696,6 +3697,7 @@ type LinkPathProperty
| LPTargetY Field
| LPOrient Orientation
| LPShape LinkShape
| LPRequire String
| LPAs String


Expand Down Expand Up @@ -8840,6 +8842,16 @@ lpOrient =
LPOrient


{-| A required signal that a linkpath transform depends upon. This is needed if
source or target coordinates are set as a non-propagating side-effect of a transform
in a different stream such as a force transform. In such cases the upstream transform
should be bound to a signal and required with this function.
-}
lpRequire : String -> LinkPathProperty
lpRequire =
LPRequire


{-| Shape of a link path in a linkPath transformation.
-}
lpShape : LinkShape -> LinkPathProperty
Expand Down Expand Up @@ -15146,6 +15158,9 @@ linkPathProperty lpProp =
LPShape ls ->
( "shape", linkShapeSpec ls )

LPRequire sig ->
( "require", JE.object [ ( "signal", JE.string sig ) ] )

LPAs s ->
( "as", JE.string s )

Expand Down
11 changes: 11 additions & 0 deletions test-gallery/js/galleryBar.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryCustom.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryDist.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryGeo.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryInteraction.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryLineArea.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryNetwork.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryOther.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryRadial.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryScatter.js

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

11 changes: 11 additions & 0 deletions test-gallery/js/galleryTree.js

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

11 changes: 11 additions & 0 deletions tests/js/eventTests.js

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

11 changes: 11 additions & 0 deletions tests/js/geoTests.js

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

11 changes: 11 additions & 0 deletions tests/js/helloWorld.js

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

11 changes: 11 additions & 0 deletions tests/js/markTests.js

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

0 comments on commit 68e973f

Please sign in to comment.