icons.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.drawing.library.icons"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.drawing.library.icons"] = true;
  8. dojo.provide("dojox.drawing.library.icons");
  9. dojox.drawing.library.icons = {
  10. // summary:
  11. // A collection of icon Stencils for use with the buttons in the ui/Toolbar.
  12. // description:
  13. // Each icon name coresponds to a Stencil or a Plugin. One can be inserted
  14. // into a button by adding the property: 'icon', which points to one of
  15. // these Stencil objects.
  16. line:{
  17. type:"line",
  18. borderWidth:1,
  19. x1:20,
  20. y1:20,
  21. x2:80,
  22. y2:80
  23. },
  24. ellipse:{
  25. type:"ellipse",
  26. borderWidth:1,
  27. cx:50,
  28. cy:50,
  29. rx:35,
  30. ry:20
  31. },
  32. rect:{
  33. type:"rect",
  34. borderWidth:1,
  35. x:10,
  36. y:30,
  37. width:80,
  38. height:40
  39. },
  40. triangle:{
  41. type:"path",
  42. borderWidth:1,
  43. closePath:true,
  44. points:[{x:50, y:10}, {x:10, y:90}, {x:90, y:90}]
  45. },
  46. path:{
  47. type:"path",
  48. borderWidth:0,
  49. closePath:true,
  50. points:[ { x:20, y:80 }, { x:26, y:20 }, { x:80, y:32 }, { x:32, y:50 }, { x:56, y:62 } ]
  51. },
  52. arrow:{
  53. type:"path",
  54. borderWidth:1,
  55. closePath:false,
  56. points:[ { x:20, y:20 }, { x:80, y:80 }, { t:'M', x:74, y:56 }, { x:80, y:80 }, { x:56, y:74 } ]
  57. },
  58. textBlock:{
  59. type:"path",
  60. borderWidth:0,
  61. closePath:true,
  62. 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 } ]
  63. },
  64. equation:{
  65. type:"path",
  66. borderWidth:2,
  67. closePath:false,
  68. points:[ {x:20, y:60 }, { x:80, y:60 }, {t:'M', x:20, y:40 }, { x:80, y:40 } ]
  69. },
  70. axes:{
  71. type:"path",
  72. borderWidth:1,
  73. closePath:false,
  74. 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 } ]
  75. },
  76. vector:{
  77. type:"path",
  78. borderWidth:1,
  79. closePath:false,
  80. 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 } ]
  81. },
  82. pan:{
  83. type:"path",
  84. borderWidth:1,
  85. closePath:true,
  86. 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 } ]
  87. },
  88. plus:{
  89. type:"path",
  90. borderWidth:3,
  91. closePath:false,
  92. points:[ { x:50, y:20 }, { x:50, y:80 }, { t:"M", x:20, y:50 }, { x:80, y:50 } ]
  93. },
  94. zoomIn:{
  95. type:"path",
  96. borderWidth:3,
  97. closePath:false,
  98. points:[ { x:50, y:20 }, { x:50, y:80 }, { t:"M", x:20, y:50 }, { x:80, y:50 } ]
  99. },
  100. zoomOut:{
  101. type:"path",
  102. borderWidth:3,
  103. closePath:false,
  104. points:[ {x:20, y:50 }, { x:80, y:50 } ]
  105. },
  106. zoom100:{
  107. type:"text",
  108. text:"100%"
  109. },
  110. iconize:{
  111. type:"path",
  112. borderWidth:0,
  113. closePath:true,
  114. points:
  115. [
  116. { x:20, y:38 },
  117. { x:32, y:26 },
  118. { x:44, y:26 },
  119. { x:56, y:38 },
  120. { x:56, y:50 },
  121. { x:44, y:62 },
  122. { x:32, y:62 },
  123. { x:20, y:56 },
  124. { t:'Z' },
  125. { t:'M', x:38, y:44 },
  126. { x:68, y:44 },
  127. { x:68, y:80 },
  128. { x:38, y:80 },
  129. { t:'Z' },
  130. { t:'M', x:56, y:62 },
  131. { x:68, y:20 },
  132. { x:80, y:62 }
  133. ]
  134. },
  135. pencil:{
  136. type:"path",
  137. borderWidth:0,
  138. closePath:true,
  139. points:
  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. };
  162. }