269 |
260 |
|
|
270 |
261 |
|
function Base.display(d::ElectronDisplayType, x) |
271 |
262 |
|
showable = d.config.showable |
272 |
|
- |
if showable("application/vnd.vegalite.v3+json", x) |
273 |
|
- |
display(d,MIME("application/vnd.vegalite.v3+json"), x) |
|
263 |
+ |
if showable("application/vnd.vegalite.v4+json", x) |
|
264 |
+ |
display(d, MIME("application/vnd.vegalite.v4+json"), x) |
|
265 |
+ |
elseif showable("application/vnd.vegalite.v3+json", x) |
|
266 |
+ |
display(d, MIME("application/vnd.vegalite.v3+json"), x) |
274 |
267 |
|
elseif showable("application/vnd.vegalite.v2+json", x) |
275 |
|
- |
display(d,MIME("application/vnd.vegalite.v2+json"), x) |
|
268 |
+ |
display(d, MIME("application/vnd.vegalite.v2+json"), x) |
276 |
269 |
|
elseif showable("application/vnd.vega.v5+json", x) |
277 |
|
- |
display(d,MIME("application/vnd.vega.v5+json"), x) |
|
270 |
+ |
display(d, MIME("application/vnd.vega.v5+json"), x) |
278 |
271 |
|
elseif showable("application/vnd.vega.v4+json", x) |
279 |
|
- |
display(d,MIME("application/vnd.vega.v4+json"), x) |
|
272 |
+ |
display(d, MIME("application/vnd.vega.v4+json"), x) |
280 |
273 |
|
elseif showable("application/vnd.vega.v3+json", x) |
281 |
|
- |
display(d,MIME("application/vnd.vega.v3+json"), x) |
|
274 |
+ |
display(d, MIME("application/vnd.vega.v3+json"), x) |
282 |
275 |
|
elseif showable("application/vnd.plotly.v1+json", x) |
283 |
|
- |
display(d,MIME("application/vnd.plotly.v1+json"), x) |
|
276 |
+ |
display(d, MIME("application/vnd.plotly.v1+json"), x) |
284 |
277 |
|
elseif showable("application/vnd.dataresource+json", x) |
285 |
278 |
|
display(d, "application/vnd.dataresource+json", x) |
286 |
279 |
|
elseif showable("image/svg+xml", x) |
287 |
|
- |
display(d,"image/svg+xml", x) |
|
280 |
+ |
display(d, "image/svg+xml", x) |
288 |
281 |
|
elseif showable("image/png", x) |
289 |
|
- |
display(d,"image/png", x) |
|
282 |
+ |
display(d, "image/png", x) |
290 |
283 |
|
elseif showable("text/html", x) |
291 |
284 |
|
display(d, "text/html", x) |
292 |
285 |
|
elseif showable("text/markdown", x) |
293 |
286 |
|
display(d, "text/markdown", x) |
294 |
287 |
|
else |
295 |
|
- |
throw(MethodError(Base.display,(d,x))) |
|
288 |
+ |
throw(MethodError(Base.display, (d, x))) |
296 |
289 |
|
end |
297 |
290 |
|
end |
298 |
291 |
|
|
77c01fd
e421241
66ba0df
e9b09cb
a4e27e0
5b95c07
65331f1
999a95c
1ec3b4e
3ea062b
9b34aae
dba25c2
317e5b5
177c0f8
a18f370
b2f74c5
d332fbb
61f11df
0fe8eb7
e907261
4cfdb87
ef760b8
219c903
3217add
b97ae10
671ec1c
c5507fa
9004b1b
39f74b6
ccfe13e
cdf464d
189dff3
1e4c2fc
9963e2d
a37bf3e
8502f07
cff85a7
b8c278b
c93b1df
a1a9b14
8d0c036
fabc0ae
54c4601
650e79b
bfed9b9
067c90a
a2582bf
76f3de0
e8f6393
9a23d21
e5933e9
2861bc7
0a8cb97
0ccef69
f839c61
cfe9bf9
85d83c5
1b3b58f
afde0ea
86c323e
cb0750a
44bc971
493e94d
569d4b6
8c51c45
01d9e39
83e361a
60aefb6
a8f94cb
8f7706b
bd3176f
b221b11