Skip to content

Commit 7f85775

Browse files
committed
Images: Add mock
1 parent c2636ba commit 7f85775

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

test/image/mocks/layout_image.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"data": [
3+
{
4+
"x": [1,2,3],
5+
"y": [1,2,3]
6+
}
7+
],
8+
"layout": {
9+
"images": [
10+
{
11+
"source": "http://www.placekitten.com/100",
12+
"xref": "paper",
13+
"yref": "paper",
14+
"x": 0,
15+
"y": 0,
16+
"width": 0.2,
17+
"height": 0.2,
18+
"xanchor": "right",
19+
"yanchor": "bottom"
20+
},
21+
{
22+
"source": "http://www.placekitten.com/300",
23+
"xref": "x",
24+
"yref": "y",
25+
"x": 2.5,
26+
"y": 2,
27+
"width": 1,
28+
"height": 1,
29+
"xanchor": "center",
30+
"yanchor": "middle",
31+
"layer": "below"
32+
},
33+
{
34+
"source": "http://www.placekitten.com/400",
35+
"xref": "x",
36+
"yref": "y",
37+
"x": 1,
38+
"y": 3,
39+
"width": 2,
40+
"height": 2,
41+
"sizing": "stretch",
42+
"opacity": 0.4
43+
},
44+
{
45+
"source": "http://www.placekitten.com/300",
46+
"xref": "x",
47+
"yref": "paper",
48+
"x": 2.75,
49+
"y": 0,
50+
"width": 0.5,
51+
"height": 1,
52+
"opacity": 1,
53+
"xanchor": "left",
54+
"yanchor": "top"
55+
}
56+
],
57+
"width": 800,
58+
"height": 500
59+
}
60+
}

0 commit comments

Comments
 (0)