1 | dojo.provide("dojox.drawing.library.icons"); |
---|
2 | |
---|
3 | dojox.drawing.library.icons = { |
---|
4 | // summary: |
---|
5 | // A collection of icon Stencils for use with the buttons in the ui/Toolbar. |
---|
6 | // description: |
---|
7 | // Each icon name coresponds to a Stencil or a Plugin. One can be inserted |
---|
8 | // into a button by adding the property: 'icon', which points to one of |
---|
9 | // these Stencil objects. |
---|
10 | line:{ |
---|
11 | type:"line", |
---|
12 | borderWidth:1, |
---|
13 | x1:20, |
---|
14 | y1:20, |
---|
15 | x2:80, |
---|
16 | y2:80 |
---|
17 | }, |
---|
18 | ellipse:{ |
---|
19 | type:"ellipse", |
---|
20 | borderWidth:1, |
---|
21 | cx:50, |
---|
22 | cy:50, |
---|
23 | rx:35, |
---|
24 | ry:20 |
---|
25 | }, |
---|
26 | rect:{ |
---|
27 | type:"rect", |
---|
28 | borderWidth:1, |
---|
29 | x:10, |
---|
30 | y:30, |
---|
31 | width:80, |
---|
32 | height:40 |
---|
33 | }, |
---|
34 | triangle:{ |
---|
35 | type:"path", |
---|
36 | borderWidth:1, |
---|
37 | closePath:true, |
---|
38 | points:[{x:50, y:10}, {x:10, y:90}, {x:90, y:90}] |
---|
39 | }, |
---|
40 | path:{ |
---|
41 | type:"path", |
---|
42 | borderWidth:0, |
---|
43 | closePath:true, |
---|
44 | points:[ { x:20, y:80 }, { x:26, y:20 }, { x:80, y:32 }, { x:32, y:50 }, { x:56, y:62 } ] |
---|
45 | }, |
---|
46 | arrow:{ |
---|
47 | type:"path", |
---|
48 | borderWidth:1, |
---|
49 | closePath:false, |
---|
50 | points:[ { x:20, y:20 }, { x:80, y:80 }, { t:'M', x:74, y:56 }, { x:80, y:80 }, { x:56, y:74 } ] |
---|
51 | }, |
---|
52 | textBlock:{ |
---|
53 | type:"path", |
---|
54 | borderWidth:0, |
---|
55 | closePath:true, |
---|
56 | points:[ { x:20, y:20 }, { x:80, y:20 }, { x:80, y:38 }, { x:80, y:38 }, { x:74, y:32 }, { x:68, y:26 }, { x:56, y:20 }, { x:56, y:68 }, { x:56, y:74 }, { x:62, y:80 }, { x:68, y:80 }, { x:68, y:80 }, { x:32, y:80 }, { x:32, y:80 }, { x:38, y:80 }, { x:44, y:74 }, { x:44, y:68 }, { x:44, y:20 }, { x:32, y:26 }, { x:26, y:32 }, { x:20, y:38 }, { x:20, y:38 } ] |
---|
57 | }, |
---|
58 | |
---|
59 | equation:{ |
---|
60 | type:"path", |
---|
61 | borderWidth:2, |
---|
62 | closePath:false, |
---|
63 | points:[ {x:20, y:60 }, { x:80, y:60 }, {t:'M', x:20, y:40 }, { x:80, y:40 } ] |
---|
64 | }, |
---|
65 | |
---|
66 | axes:{ |
---|
67 | type:"path", |
---|
68 | borderWidth:1, |
---|
69 | closePath:false, |
---|
70 | points:[ { x:20, y:32 }, { x:26, y:20 }, { x:32, y:32 }, { t:'M', x:26, y:20 }, { x:26, y:74 }, { x:80, y:74 }, { t:'M', x:68, y:68 }, { x:80, y:74 }, { x:68, y:80 } ] |
---|
71 | }, |
---|
72 | vector:{ |
---|
73 | type:"path", |
---|
74 | borderWidth:1, |
---|
75 | closePath:false, |
---|
76 | points:[ { x:20, y:80 }, { x:80, y:20 }, { t:'M', x:62, y:26 }, { x:80, y:20 }, { x:73, y:40 }, { t:'M', x:56, y:56 }, { x:62, y:68 }, { x:62, y:74 } ] |
---|
77 | }, |
---|
78 | pan:{ |
---|
79 | type:"path", |
---|
80 | borderWidth:1, |
---|
81 | closePath:true, |
---|
82 | points:[ { x:38, y:80 }, { x:26, y:68 }, { x:20, y:50 }, { x:26, y:44 }, { x:26, y:44 }, { x:38, y:56 }, { x:32, y:32 }, { x:32, y:26 }, { x:38, y:26 }, { x:44, y:44 }, { x:44, y:20 }, { x:50, y:20 }, { x:56, y:20 }, { x:56, y:44 }, { x:56, y:26 }, { x:62, y:26 }, { x:68, y:26 }, { x:68, y:50 }, { x:68, y:32 }, { x:74, y:32 }, { x:80, y:38 }, { x:80, y:50 }, { x:74, y:68 }, { x:68, y:80 } ] |
---|
83 | }, |
---|
84 | |
---|
85 | plus:{ |
---|
86 | type:"path", |
---|
87 | borderWidth:3, |
---|
88 | closePath:false, |
---|
89 | points:[ { x:50, y:20 }, { x:50, y:80 }, { t:"M", x:20, y:50 }, { x:80, y:50 } ] |
---|
90 | }, |
---|
91 | zoomIn:{ |
---|
92 | type:"path", |
---|
93 | borderWidth:3, |
---|
94 | closePath:false, |
---|
95 | points:[ { x:50, y:20 }, { x:50, y:80 }, { t:"M", x:20, y:50 }, { x:80, y:50 } ] |
---|
96 | }, |
---|
97 | zoomOut:{ |
---|
98 | type:"path", |
---|
99 | borderWidth:3, |
---|
100 | closePath:false, |
---|
101 | points:[ {x:20, y:50 }, { x:80, y:50 } ] |
---|
102 | }, |
---|
103 | zoom100:{ |
---|
104 | type:"text", |
---|
105 | text:"100%" |
---|
106 | }, |
---|
107 | iconize:{ |
---|
108 | type:"path", |
---|
109 | borderWidth:0, |
---|
110 | closePath:true, |
---|
111 | points: |
---|
112 | |
---|
113 | [ |
---|
114 | { x:20, y:38 }, |
---|
115 | { x:32, y:26 }, |
---|
116 | { x:44, y:26 }, |
---|
117 | { x:56, y:38 }, |
---|
118 | { x:56, y:50 }, |
---|
119 | { x:44, y:62 }, |
---|
120 | { x:32, y:62 }, |
---|
121 | { x:20, y:56 }, |
---|
122 | { t:'Z' }, |
---|
123 | { t:'M', x:38, y:44 }, |
---|
124 | { x:68, y:44 }, |
---|
125 | { x:68, y:80 }, |
---|
126 | { x:38, y:80 }, |
---|
127 | { t:'Z' }, |
---|
128 | { t:'M', x:56, y:62 }, |
---|
129 | { x:68, y:20 }, |
---|
130 | { x:80, y:62 } |
---|
131 | ] |
---|
132 | |
---|
133 | }, |
---|
134 | pencil:{ |
---|
135 | type:"path", |
---|
136 | borderWidth:0, |
---|
137 | closePath:true, |
---|
138 | points: |
---|
139 | |
---|
140 | [ |
---|
141 | { x:20, y:80 }, |
---|
142 | { x:26, y:68 }, |
---|
143 | { x:68, y:20 }, |
---|
144 | { x:80, y:20 }, |
---|
145 | { x:80, y:32 }, |
---|
146 | { x:38, y:74 }, |
---|
147 | { t:'Z' }, |
---|
148 | { t:'M', x:62, y:32 }, |
---|
149 | { x:68, y:26 }, |
---|
150 | { x:74, y:26 }, |
---|
151 | { x:74, y:32 }, |
---|
152 | { x:68, y:38 }, |
---|
153 | { x:68, y:32 }, |
---|
154 | { t:'Z' }, |
---|
155 | { t:'M', x:56, y:38 }, |
---|
156 | { x:62, y:38 }, |
---|
157 | { x:32, y:68 }, |
---|
158 | { x:32, y:68 } |
---|
159 | ] |
---|
160 | } |
---|
161 | }; |
---|