icons.js 3.8 KB

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