source: Dev/trunk/src/client/dojox/drawing/library/icons.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 4.5 KB
Line 
1define({
2        // summary:
3        //              A collection of icon Stencils for use with the buttons in the ui/Toolbar.
4        // description:
5        //              Each icon name corresponds to a Stencil or a Plugin. One can be inserted
6        //              into a button by adding the property: 'icon', which points to one of
7        //              these Stencil objects.
8        line: {
9                type: "line",
10                borderWidth: 1,
11                x1: 20,
12                y1: 20,
13                x2: 80,
14                y2: 80
15        },
16        ellipse: {
17                type: "ellipse",
18                borderWidth: 1,
19                cx: 50,
20                cy: 50,
21                rx: 35,
22                ry: 20
23        },
24        rect: {
25                type: "rect",
26                borderWidth: 1,
27                x: 10,
28                y: 30,
29                width: 80,
30                height: 40
31        },
32        triangle: {
33                type: "path",
34                borderWidth: 1,
35                closePath: true,
36                points: [
37                        {x: 50, y: 10},
38                        {x: 10, y: 90},
39                        {x: 90, y: 90}
40                ]
41        },
42        path: {
43                type: "path",
44                borderWidth: 0,
45                closePath: true,
46                points: [
47                        { x: 20, y: 80 },
48                        { x: 26, y: 20 },
49                        { x: 80, y: 32 },
50                        { x: 32, y: 50 },
51                        { x: 56, y: 62 }
52                ]
53        },
54        arrow: {
55                type: "path",
56                borderWidth: 1,
57                closePath: false,
58                points: [
59                        { x: 20, y: 20 },
60                        { x: 80, y: 80 },
61                        { t: 'M', x: 74, y: 56 },
62                        { x: 80, y: 80 },
63                        { x: 56, y: 74 }
64                ]
65        },
66        textBlock: {
67                type: "path",
68                borderWidth: 0,
69                closePath: true,
70                points: [
71                        { x: 20, y: 20 },
72                        { x: 80, y: 20 },
73                        { x: 80, y: 38 },
74                        { x: 80, y: 38 },
75                        { x: 74, y: 32 },
76                        { x: 68, y: 26 },
77                        { x: 56, y: 20 },
78                        { x: 56, y: 68 },
79                        { x: 56, y: 74 },
80                        { x: 62, y: 80 },
81                        { x: 68, y: 80 },
82                        { x: 68, y: 80 },
83                        { x: 32, y: 80 },
84                        { x: 32, y: 80 },
85                        { x: 38, y: 80 },
86                        { x: 44, y: 74 },
87                        { x: 44, y: 68 },
88                        { x: 44, y: 20 },
89                        { x: 32, y: 26 },
90                        { x: 26, y: 32 },
91                        { x: 20, y: 38 },
92                        { x: 20, y: 38 }
93                ]
94        },
95
96        equation: {
97                type: "path",
98                borderWidth: 2,
99                closePath: false,
100                points: [
101                        {x: 20, y: 60 },
102                        { x: 80, y: 60 },
103                        {t: 'M', x: 20, y: 40 },
104                        { x: 80, y: 40 }
105                ]
106        },
107
108        axes: {
109                type: "path",
110                borderWidth: 1,
111                closePath: false,
112                points: [
113                        { x: 20, y: 32 },
114                        { x: 26, y: 20 },
115                        { x: 32, y: 32 },
116                        { t: 'M', x: 26, y: 20 },
117                        { x: 26, y: 74 },
118                        { x: 80, y: 74 },
119                        { t: 'M', x: 68, y: 68 },
120                        { x: 80, y: 74 },
121                        { x: 68, y: 80 }
122                ]
123        },
124        vector: {
125                type: "path",
126                borderWidth: 1,
127                closePath: false,
128                points: [
129                        { x: 20, y: 80 },
130                        { x: 80, y: 20 },
131                        { t: 'M', x: 62, y: 26 },
132                        { x: 80, y: 20 },
133                        { x: 73, y: 40 },
134                        { t: 'M', x: 56, y: 56 },
135                        { x: 62, y: 68 },
136                        { x: 62, y: 74 }
137                ]
138        },
139        pan: {
140                type: "path",
141                borderWidth: 1,
142                closePath: true,
143                points: [
144                        { x: 38, y: 80 },
145                        { x: 26, y: 68 },
146                        { x: 20, y: 50 },
147                        { x: 26, y: 44 },
148                        { x: 26, y: 44 },
149                        { x: 38, y: 56 },
150                        { x: 32, y: 32 },
151                        { x: 32, y: 26 },
152                        { x: 38, y: 26 },
153                        { x: 44, y: 44 },
154                        { x: 44, y: 20 },
155                        { x: 50, y: 20 },
156                        { x: 56, y: 20 },
157                        { x: 56, y: 44 },
158                        { x: 56, y: 26 },
159                        { x: 62, y: 26 },
160                        { x: 68, y: 26 },
161                        { x: 68, y: 50 },
162                        { x: 68, y: 32 },
163                        { x: 74, y: 32 },
164                        { x: 80, y: 38 },
165                        { x: 80, y: 50 },
166                        { x: 74, y: 68 },
167                        { x: 68, y: 80 }
168                ]
169        },
170
171        plus: {
172                type: "path",
173                borderWidth: 3,
174                closePath: false,
175                points: [
176                        { x: 50, y: 20 },
177                        { x: 50, y: 80 },
178                        { t: "M", x: 20, y: 50 },
179                        { x: 80, y: 50 }
180                ]
181        },
182        zoomIn: {
183                type: "path",
184                borderWidth: 3,
185                closePath: false,
186                points: [
187                        { x: 50, y: 20 },
188                        { x: 50, y: 80 },
189                        { t: "M", x: 20, y: 50 },
190                        { x: 80, y: 50 }
191                ]
192        },
193        zoomOut: {
194                type: "path",
195                borderWidth: 3,
196                closePath: false,
197                points: [
198                        {x: 20, y: 50 },
199                        { x: 80, y: 50 }
200                ]
201        },
202        zoom100: {
203                type: "text",
204                text: "100%"
205        },
206        iconize: {
207                type: "path",
208                borderWidth: 0,
209                closePath: true,
210                points: [
211                        {    x: 20, y: 38    },
212                        {    x: 32, y: 26    },
213                        {    x: 44, y: 26    },
214                        {    x: 56, y: 38    },
215                        {    x: 56, y: 50    },
216                        {    x: 44, y: 62    },
217                        {    x: 32, y: 62    },
218                        {    x: 20, y: 56    },
219                        {    t: 'Z'    },
220                        {    t: 'M', x: 38, y: 44    },
221                        {    x: 68, y: 44    },
222                        {    x: 68, y: 80    },
223                        {    x: 38, y: 80    },
224                        {    t: 'Z'    },
225                        {    t: 'M', x: 56, y: 62    },
226                        {    x: 68, y: 20    },
227                        {    x: 80, y: 62    }
228                ]
229
230        },
231        pencil: {
232                type: "path",
233                borderWidth: 0,
234                closePath: true,
235                points: [
236                        {    x: 20, y: 80    },
237                        {    x: 26, y: 68    },
238                        {    x: 68, y: 20    },
239                        {    x: 80, y: 20    },
240                        {    x: 80, y: 32    },
241                        {    x: 38, y: 74    },
242                        {    t: 'Z'    },
243                        {    t: 'M', x: 62, y: 32    },
244                        {    x: 68, y: 26    },
245                        {    x: 74, y: 26    },
246                        {    x: 74, y: 32    },
247                        {    x: 68, y: 38    },
248                        {    x: 68, y: 32    },
249                        {    t: 'Z'    },
250                        {    t: 'M', x: 56, y: 38    },
251                        {    x: 62, y: 38    },
252                        {    x: 32, y: 68    },
253                        {    x: 32, y: 68    }
254                ]
255        }
256});
Note: See TracBrowser for help on using the repository browser.