11package io .continuum .bokeh
22
3- @ model abstract class Glyph /* [X:Numeric, Y:Numeric]*/ extends Model with Vectorization {
4- type X = Double
5- type Y = Double
3+ import Json .Writer
64
5+ @ model abstract class Glyph [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Model with Vectorization {
76 object visible extends Field [Boolean ](true )
87}
98
10- @ model class AnnularWedge /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
9+ @ model class AnnularWedge [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
1110 object x extends Vectorized [X ]
1211 object y extends Vectorized [Y ]
1312 object inner_radius extends Spatial [Double ] with NonNegative
@@ -17,14 +16,14 @@ package io.continuum.bokeh
1716 object direction extends Field [Direction ]
1817}
1918
20- @ model class Annulus /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
19+ @ model class Annulus [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
2120 object x extends Vectorized [X ]
2221 object y extends Vectorized [Y ]
2322 object inner_radius extends Spatial [Double ] with NonNegative
2423 object outer_radius extends Spatial [Double ] with NonNegative
2524}
2625
27- @ model class Arc /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
26+ @ model class Arc [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
2827 object x extends Vectorized [X ]
2928 object y extends Vectorized [Y ]
3029 object radius extends Spatial [Double ] with NonNegative
@@ -33,7 +32,7 @@ package io.continuum.bokeh
3332 object direction extends Field [Direction ]
3433}
3534
36- @ model class Bezier /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
35+ @ model class Bezier [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
3736 object x0 extends Vectorized [X ]
3837 object y0 extends Vectorized [Y ]
3938 object x1 extends Vectorized [X ]
@@ -44,7 +43,7 @@ package io.continuum.bokeh
4443 object cy1 extends Vectorized [Y ]
4544}
4645
47- @ model class ImageRGBA /* [X:Numeric , Y:Numeric] */ extends Glyph {
46+ @ model class ImageRGBA [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] {
4847 object image extends Vectorized [Array [Double ]]
4948 object rows extends Vectorized [Int ]
5049 object cols extends Vectorized [Int ]
@@ -65,11 +64,11 @@ package io.continuum.bokeh
6564 }
6665}
6766
68- @ model class Image /* [X:Numeric , Y:Numeric] */ extends ImageRGBA {
67+ @ model class Image [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends ImageRGBA [ X , Y ] {
6968 object color_mapper extends Field [ColorMapper ]
7069}
7170
72- @ model class ImageURL /* [X:Numeric , Y:Numeric] */ extends Glyph {
71+ @ model class ImageURL [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] {
7372 object url extends Vectorized [String ]
7473 object x extends Vectorized [X ]
7574 object y extends Vectorized [Y ]
@@ -83,42 +82,42 @@ package io.continuum.bokeh
8382 object retry_timeout extends Field [Int ](0 )
8483}
8584
86- @ model class Line /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
85+ @ model class Line [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
8786 object x extends Vectorized [X ]
8887 object y extends Vectorized [Y ]
8988}
9089
91- @ model class MultiLine /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
90+ @ model class MultiLine [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
9291 object xs extends Vectorized [List [X ]]
9392 object ys extends Vectorized [List [Y ]]
9493}
9594
96- @ model class Oval /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
95+ @ model class Oval [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
9796 object x extends Vectorized [X ]
9897 object y extends Vectorized [Y ]
9998 object width extends Spatial [Double ] with NonNegative
10099 object height extends Spatial [Double ] with NonNegative
101100 object angle extends Angular [Double ]
102101}
103102
104- @ model class Patch /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
103+ @ model class Patch [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
105104 object x extends Vectorized [X ]
106105 object y extends Vectorized [Y ]
107106}
108107
109- @ model class Patches /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps with FillProps {
108+ @ model class Patches [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps with FillProps {
110109 object xs extends Vectorized [List [X ]]
111110 object ys extends Vectorized [List [Y ]]
112111}
113112
114- @ model class Quad /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
113+ @ model class Quad [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
115114 object left extends Vectorized [X ]
116115 object right extends Vectorized [X ]
117116 object bottom extends Vectorized [Y ]
118117 object top extends Vectorized [Y ]
119118}
120119
121- @ model class Quadratic /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
120+ @ model class Quadratic [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
122121 object x0 extends Vectorized [X ]
123122 object y0 extends Vectorized [Y ]
124123 object x1 extends Vectorized [X ]
@@ -127,14 +126,14 @@ package io.continuum.bokeh
127126 object cy extends Vectorized [Y ]
128127}
129128
130- @ model class Ray /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
129+ @ model class Ray [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
131130 object x extends Vectorized [X ]
132131 object y extends Vectorized [Y ]
133132 object length extends Spatial [Double ] with NonNegative
134133 object angle extends Angular [Double ]
135134}
136135
137- @ model class Rect /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
136+ @ model class Rect [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
138137 object x extends Vectorized [X ]
139138 object y extends Vectorized [Y ]
140139 object width extends Spatial [Double ] with NonNegative
@@ -143,14 +142,14 @@ package io.continuum.bokeh
143142 object dilate extends Field [Boolean ]
144143}
145144
146- @ model class Segment /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps {
145+ @ model class Segment [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps {
147146 object x0 extends Vectorized [X ]
148147 object y0 extends Vectorized [Y ]
149148 object x1 extends Vectorized [X ]
150149 object y1 extends Vectorized [Y ]
151150}
152151
153- @ model class Text /* [X: Numeric , Y: Numeric] */ extends Glyph with TextProps {
152+ @ model class Text [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with TextProps {
154153 object x extends Vectorized [X ]
155154 object y extends Vectorized [Y ]
156155 object text extends Vectorized [String ]
@@ -159,7 +158,7 @@ package io.continuum.bokeh
159158 object y_offset extends Spatial [Double ]
160159}
161160
162- @ model class Wedge /* [X:Numeric , Y:Numeric] */ extends Glyph with FillProps with LineProps {
161+ @ model class Wedge [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with FillProps with LineProps {
163162 object x extends Vectorized [X ]
164163 object y extends Vectorized [Y ]
165164 object radius extends Spatial [Double ] with NonNegative
@@ -168,7 +167,7 @@ package io.continuum.bokeh
168167 object direction extends Field [Direction ]
169168}
170169
171- @ model class Gear /* [X:Numeric , Y:Numeric] */ extends Glyph with LineProps with FillProps {
170+ @ model class Gear [X : Scalar : Default : Writer , Y : Scalar : Default : Writer ] extends Glyph [ X , Y ] with LineProps with FillProps {
172171 object x extends Vectorized [X ]
173172 object y extends Vectorized [Y ]
174173 object angle extends Angular [Double ]
0 commit comments