rghost 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. data/lib/rghost.rb +1 -0
  2. data/lib/rghost/arc.rb +1 -1
  3. data/lib/rghost/doc/classes/Arc.html +200 -0
  4. data/lib/rghost/doc/classes/Arc.src/M000049.html +18 -0
  5. data/lib/rghost/doc/classes/Arc.src/M000050.html +23 -0
  6. data/lib/rghost/doc/classes/Barcode.html +214 -0
  7. data/lib/rghost/doc/classes/Barcode.src/M000001.html +19 -0
  8. data/lib/rghost/doc/classes/Barcode.src/M000002.html +18 -0
  9. data/lib/rghost/doc/classes/Barcode.src/M000003.html +19 -0
  10. data/lib/rghost/doc/classes/Barcode.src/M000004.html +27 -0
  11. data/lib/rghost/doc/classes/CMYK.html +209 -0
  12. data/lib/rghost/doc/classes/CMYK.src/M000047.html +18 -0
  13. data/lib/rghost/doc/classes/CMYK.src/M000048.html +24 -0
  14. data/lib/rghost/doc/classes/Callback.html +220 -0
  15. data/lib/rghost/doc/classes/Callback.src/M000071.html +21 -0
  16. data/lib/rghost/doc/classes/Callback.src/M000072.html +26 -0
  17. data/lib/rghost/doc/classes/Color.html +175 -0
  18. data/lib/rghost/doc/classes/Color.src/M000028.html +33 -0
  19. data/lib/rghost/doc/classes/Constants.html +120 -0
  20. data/lib/rghost/doc/classes/Constants/Colors.html +129 -0
  21. data/lib/rghost/doc/classes/Constants/Devices.html +163 -0
  22. data/lib/rghost/doc/classes/Constants/Devices.src/M000168.html +22 -0
  23. data/lib/rghost/doc/classes/Constants/Fonts.html +144 -0
  24. data/lib/rghost/doc/classes/Constants/Papers.html +124 -0
  25. data/lib/rghost/doc/classes/Convert.html +189 -0
  26. data/lib/rghost/doc/classes/Convert.src/M000067.html +20 -0
  27. data/lib/rghost/doc/classes/Convert.src/M000068.html +24 -0
  28. data/lib/rghost/doc/classes/Cursor.html +330 -0
  29. data/lib/rghost/doc/classes/Cursor.src/M000031.html +21 -0
  30. data/lib/rghost/doc/classes/Cursor.src/M000032.html +21 -0
  31. data/lib/rghost/doc/classes/Cursor.src/M000033.html +20 -0
  32. data/lib/rghost/doc/classes/Cursor.src/M000034.html +18 -0
  33. data/lib/rghost/doc/classes/Cursor.src/M000035.html +18 -0
  34. data/lib/rghost/doc/classes/Cursor.src/M000036.html +19 -0
  35. data/lib/rghost/doc/classes/Cursor.src/M000037.html +22 -0
  36. data/lib/rghost/doc/classes/Cursor.src/M000038.html +18 -0
  37. data/lib/rghost/doc/classes/Cursor.src/M000039.html +18 -0
  38. data/lib/rghost/doc/classes/DSCEntry.html +173 -0
  39. data/lib/rghost/doc/classes/DSCEntry.src/M000059.html +19 -0
  40. data/lib/rghost/doc/classes/DSCEntry.src/M000060.html +19 -0
  41. data/lib/rghost/doc/classes/DataGrid.html +133 -0
  42. data/lib/rghost/doc/classes/DataGrid/BasicGrid.html +343 -0
  43. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000140.html +27 -0
  44. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000141.html +26 -0
  45. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000142.html +22 -0
  46. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000143.html +19 -0
  47. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000144.html +26 -0
  48. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000145.html +34 -0
  49. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000146.html +18 -0
  50. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000147.html +37 -0
  51. data/lib/rghost/doc/classes/DataGrid/BasicGrid.src/M000148.html +26 -0
  52. data/lib/rghost/doc/classes/DataGrid/CSVGrid.html +152 -0
  53. data/lib/rghost/doc/classes/DataGrid/CSVGrid.src/M000139.html +32 -0
  54. data/lib/rghost/doc/classes/DataGrid/DynamicCallback.html +158 -0
  55. data/lib/rghost/doc/classes/DataGrid/DynamicCallback.src/M000149.html +19 -0
  56. data/lib/rghost/doc/classes/DataGrid/FieldFormat.html +216 -0
  57. data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000131.html +19 -0
  58. data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000132.html +18 -0
  59. data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000133.html +23 -0
  60. data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000134.html +18 -0
  61. data/lib/rghost/doc/classes/DataGrid/FieldFormat.src/M000135.html +22 -0
  62. data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.html +176 -0
  63. data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000136.html +18 -0
  64. data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000137.html +18 -0
  65. data/lib/rghost/doc/classes/DataGrid/FieldFormat/Custom.src/M000138.html +18 -0
  66. data/lib/rghost/doc/classes/DataGrid/Grid.html +148 -0
  67. data/lib/rghost/doc/classes/DataGrid/Grid.src/M000160.html +19 -0
  68. data/lib/rghost/doc/classes/DataGrid/Header.html +367 -0
  69. data/lib/rghost/doc/classes/DataGrid/Header.src/M000150.html +26 -0
  70. data/lib/rghost/doc/classes/DataGrid/Header.src/M000151.html +25 -0
  71. data/lib/rghost/doc/classes/DataGrid/Header.src/M000152.html +24 -0
  72. data/lib/rghost/doc/classes/DataGrid/Header.src/M000153.html +19 -0
  73. data/lib/rghost/doc/classes/DataGrid/Header.src/M000154.html +18 -0
  74. data/lib/rghost/doc/classes/DataGrid/Header.src/M000155.html +18 -0
  75. data/lib/rghost/doc/classes/DataGrid/Header.src/M000156.html +18 -0
  76. data/lib/rghost/doc/classes/DataGrid/Header.src/M000157.html +18 -0
  77. data/lib/rghost/doc/classes/DataGrid/Header.src/M000158.html +19 -0
  78. data/lib/rghost/doc/classes/DataGrid/Header.src/M000159.html +19 -0
  79. data/lib/rghost/doc/classes/DataGrid/RailsGrid.html +234 -0
  80. data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000161.html +27 -0
  81. data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000162.html +23 -0
  82. data/lib/rghost/doc/classes/DataGrid/RailsGrid.src/M000163.html +18 -0
  83. data/lib/rghost/doc/classes/DataGrid/StaticCallback.html +158 -0
  84. data/lib/rghost/doc/classes/DataGrid/StaticCallback.src/M000164.html +19 -0
  85. data/lib/rghost/doc/classes/DataGrid/Style.html +113 -0
  86. data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.html +137 -0
  87. data/lib/rghost/doc/classes/DataGrid/Style/BorderLines.src/M000128.html +55 -0
  88. data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.html +137 -0
  89. data/lib/rghost/doc/classes/DataGrid/Style/BottomLines.src/M000129.html +38 -0
  90. data/lib/rghost/doc/classes/DataGrid/Style/OldForms.html +137 -0
  91. data/lib/rghost/doc/classes/DataGrid/Style/OldForms.src/M000130.html +38 -0
  92. data/lib/rghost/doc/classes/Document.html +990 -0
  93. data/lib/rghost/doc/classes/Document.src/M000075.html +32 -0
  94. data/lib/rghost/doc/classes/Document.src/M000076.html +18 -0
  95. data/lib/rghost/doc/classes/Document.src/M000077.html +29 -0
  96. data/lib/rghost/doc/classes/Document.src/M000078.html +33 -0
  97. data/lib/rghost/doc/classes/Document.src/M000079.html +20 -0
  98. data/lib/rghost/doc/classes/Document.src/M000080.html +21 -0
  99. data/lib/rghost/doc/classes/Document.src/M000081.html +18 -0
  100. data/lib/rghost/doc/classes/Document.src/M000082.html +19 -0
  101. data/lib/rghost/doc/classes/Document.src/M000083.html +21 -0
  102. data/lib/rghost/doc/classes/Document.src/M000084.html +22 -0
  103. data/lib/rghost/doc/classes/Document.src/M000085.html +18 -0
  104. data/lib/rghost/doc/classes/Document.src/M000086.html +18 -0
  105. data/lib/rghost/doc/classes/Document.src/M000087.html +18 -0
  106. data/lib/rghost/doc/classes/Document.src/M000088.html +18 -0
  107. data/lib/rghost/doc/classes/Document.src/M000089.html +19 -0
  108. data/lib/rghost/doc/classes/Document.src/M000090.html +18 -0
  109. data/lib/rghost/doc/classes/Document.src/M000091.html +18 -0
  110. data/lib/rghost/doc/classes/Document.src/M000092.html +18 -0
  111. data/lib/rghost/doc/classes/Document.src/M000093.html +18 -0
  112. data/lib/rghost/doc/classes/Document.src/M000094.html +18 -0
  113. data/lib/rghost/doc/classes/Document.src/M000095.html +18 -0
  114. data/lib/rghost/doc/classes/Document.src/M000096.html +18 -0
  115. data/lib/rghost/doc/classes/Document.src/M000097.html +18 -0
  116. data/lib/rghost/doc/classes/Document.src/M000098.html +18 -0
  117. data/lib/rghost/doc/classes/Document.src/M000099.html +18 -0
  118. data/lib/rghost/doc/classes/Document.src/M000100.html +18 -0
  119. data/lib/rghost/doc/classes/Document.src/M000101.html +18 -0
  120. data/lib/rghost/doc/classes/Document.src/M000102.html +18 -0
  121. data/lib/rghost/doc/classes/Document.src/M000103.html +18 -0
  122. data/lib/rghost/doc/classes/Document.src/M000104.html +18 -0
  123. data/lib/rghost/doc/classes/Document.src/M000105.html +18 -0
  124. data/lib/rghost/doc/classes/Document.src/M000106.html +18 -0
  125. data/lib/rghost/doc/classes/Document.src/M000107.html +18 -0
  126. data/lib/rghost/doc/classes/Document.src/M000108.html +18 -0
  127. data/lib/rghost/doc/classes/Document.src/M000109.html +18 -0
  128. data/lib/rghost/doc/classes/Document.src/M000110.html +18 -0
  129. data/lib/rghost/doc/classes/Document.src/M000111.html +20 -0
  130. data/lib/rghost/doc/classes/Document.src/M000112.html +19 -0
  131. data/lib/rghost/doc/classes/Document.src/M000113.html +19 -0
  132. data/lib/rghost/doc/classes/DynamicDocumentCallback.html +175 -0
  133. data/lib/rghost/doc/classes/DynamicDocumentCallback.src/M000022.html +19 -0
  134. data/lib/rghost/doc/classes/Eps.html +168 -0
  135. data/lib/rghost/doc/classes/Eps.src/M000063.html +20 -0
  136. data/lib/rghost/doc/classes/Eps.src/M000064.html +20 -0
  137. data/lib/rghost/doc/classes/Font.html +205 -0
  138. data/lib/rghost/doc/classes/Font.src/M000061.html +22 -0
  139. data/lib/rghost/doc/classes/Font.src/M000062.html +37 -0
  140. data/lib/rghost/doc/classes/Function.html +196 -0
  141. data/lib/rghost/doc/classes/Function.src/M000045.html +27 -0
  142. data/lib/rghost/doc/classes/Function.src/M000046.html +20 -0
  143. data/lib/rghost/doc/classes/GSAlone.html +154 -0
  144. data/lib/rghost/doc/classes/GSAlone.src/M000065.html +19 -0
  145. data/lib/rghost/doc/classes/GSAlone.src/M000066.html +22 -0
  146. data/lib/rghost/doc/classes/Gif.html +148 -0
  147. data/lib/rghost/doc/classes/Gif.src/M000040.html +30 -0
  148. data/lib/rghost/doc/classes/Graphic.html +153 -0
  149. data/lib/rghost/doc/classes/Graphic.src/M000014.html +18 -0
  150. data/lib/rghost/doc/classes/Gray.html +181 -0
  151. data/lib/rghost/doc/classes/Gray.src/M000026.html +18 -0
  152. data/lib/rghost/doc/classes/Gray.src/M000027.html +19 -0
  153. data/lib/rghost/doc/classes/Helpers.html +112 -0
  154. data/lib/rghost/doc/classes/Helpers/HashKeyMethod.html +131 -0
  155. data/lib/rghost/doc/classes/Helpers/HashKeyMethod.src/M000127.html +18 -0
  156. data/lib/rghost/doc/classes/Helpers/HashKeyMethodClass.html +118 -0
  157. data/lib/rghost/doc/classes/HorizontalLine.html +186 -0
  158. data/lib/rghost/doc/classes/HorizontalLine.src/M000023.html +23 -0
  159. data/lib/rghost/doc/classes/Image.html +176 -0
  160. data/lib/rghost/doc/classes/Image.src/M000042.html +20 -0
  161. data/lib/rghost/doc/classes/Image.src/M000043.html +26 -0
  162. data/lib/rghost/doc/classes/Jpeg.html +148 -0
  163. data/lib/rghost/doc/classes/Jpeg.src/M000013.html +28 -0
  164. data/lib/rghost/doc/classes/Line.html +190 -0
  165. data/lib/rghost/doc/classes/Line.src/M000069.html +20 -0
  166. data/lib/rghost/doc/classes/Line.src/M000070.html +19 -0
  167. data/lib/rghost/doc/classes/LineWidth.html +172 -0
  168. data/lib/rghost/doc/classes/LineWidth.src/M000005.html +18 -0
  169. data/lib/rghost/doc/classes/LineWidth.src/M000006.html +18 -0
  170. data/lib/rghost/doc/classes/Load.html +161 -0
  171. data/lib/rghost/doc/classes/Load.src/M000165.html +21 -0
  172. data/lib/rghost/doc/classes/Load.src/M000166.html +34 -0
  173. data/lib/rghost/doc/classes/Load.src/M000167.html +19 -0
  174. data/lib/rghost/doc/classes/NewPath.html +153 -0
  175. data/lib/rghost/doc/classes/NewPath.src/M000041.html +18 -0
  176. data/lib/rghost/doc/classes/Paper.html +213 -0
  177. data/lib/rghost/doc/classes/Paper.src/M000010.html +20 -0
  178. data/lib/rghost/doc/classes/Paper.src/M000011.html +24 -0
  179. data/lib/rghost/doc/classes/Paper.src/M000012.html +20 -0
  180. data/lib/rghost/doc/classes/Point.html +180 -0
  181. data/lib/rghost/doc/classes/Point.src/M000073.html +20 -0
  182. data/lib/rghost/doc/classes/Point.src/M000074.html +18 -0
  183. data/lib/rghost/doc/classes/PointWithCommand.html +150 -0
  184. data/lib/rghost/doc/classes/PointWithCommand.src/M000115.html +22 -0
  185. data/lib/rghost/doc/classes/PsObject.html +269 -0
  186. data/lib/rghost/doc/classes/PsObject.src/M000015.html +25 -0
  187. data/lib/rghost/doc/classes/PsObject.src/M000016.html +18 -0
  188. data/lib/rghost/doc/classes/PsObject.src/M000017.html +18 -0
  189. data/lib/rghost/doc/classes/PsObject.src/M000018.html +18 -0
  190. data/lib/rghost/doc/classes/PsObject.src/M000019.html +21 -0
  191. data/lib/rghost/doc/classes/PsObject.src/M000020.html +19 -0
  192. data/lib/rghost/doc/classes/PsObject.src/M000021.html +18 -0
  193. data/lib/rghost/doc/classes/RGB.html +213 -0
  194. data/lib/rghost/doc/classes/RGB.src/M000024.html +21 -0
  195. data/lib/rghost/doc/classes/RGB.src/M000025.html +25 -0
  196. data/lib/rghost/doc/classes/Rectangle.html +226 -0
  197. data/lib/rghost/doc/classes/Rectangle.src/M000056.html +18 -0
  198. data/lib/rghost/doc/classes/Rectangle.src/M000057.html +24 -0
  199. data/lib/rghost/doc/classes/Rectangle.src/M000058.html +21 -0
  200. data/lib/rghost/doc/classes/RubyGhostConfig.html +144 -0
  201. data/lib/rghost/doc/classes/RubyGhostConfig.src/M000118.html +22 -0
  202. data/lib/rghost/doc/classes/RubyGhostEngine.html +261 -0
  203. data/lib/rghost/doc/classes/RubyGhostEngine.src/M000007.html +24 -0
  204. data/lib/rghost/doc/classes/RubyGhostEngine.src/M000008.html +96 -0
  205. data/lib/rghost/doc/classes/RubyGhostEngine.src/M000009.html +21 -0
  206. data/lib/rghost/doc/classes/RubyToPs.html +272 -0
  207. data/lib/rghost/doc/classes/RubyToPs.src/M000119.html +23 -0
  208. data/lib/rghost/doc/classes/RubyToPs.src/M000120.html +18 -0
  209. data/lib/rghost/doc/classes/RubyToPs.src/M000121.html +18 -0
  210. data/lib/rghost/doc/classes/RubyToPs.src/M000122.html +19 -0
  211. data/lib/rghost/doc/classes/RubyToPs.src/M000123.html +30 -0
  212. data/lib/rghost/doc/classes/RubyToPs.src/M000124.html +18 -0
  213. data/lib/rghost/doc/classes/RubyToPs.src/M000125.html +18 -0
  214. data/lib/rghost/doc/classes/RubyToPs.src/M000126.html +30 -0
  215. data/lib/rghost/doc/classes/Scale.html +153 -0
  216. data/lib/rghost/doc/classes/Scale.src/M000114.html +18 -0
  217. data/lib/rghost/doc/classes/Show.html +203 -0
  218. data/lib/rghost/doc/classes/Show.src/M000052.html +20 -0
  219. data/lib/rghost/doc/classes/Show.src/M000053.html +19 -0
  220. data/lib/rghost/doc/classes/StaticDocumentCallback.html +168 -0
  221. data/lib/rghost/doc/classes/StaticDocumentCallback.src/M000051.html +19 -0
  222. data/lib/rghost/doc/classes/TextArea.html +217 -0
  223. data/lib/rghost/doc/classes/TextArea.src/M000029.html +22 -0
  224. data/lib/rghost/doc/classes/TextArea.src/M000030.html +24 -0
  225. data/lib/rghost/doc/classes/TextIn.html +201 -0
  226. data/lib/rghost/doc/classes/TextIn.src/M000054.html +19 -0
  227. data/lib/rghost/doc/classes/TextIn.src/M000055.html +24 -0
  228. data/lib/rghost/doc/classes/Units.html +166 -0
  229. data/lib/rghost/doc/classes/Units.src/M000169.html +22 -0
  230. data/lib/rghost/doc/classes/Units/Cm.html +145 -0
  231. data/lib/rghost/doc/classes/Units/Cm.src/M000175.html +19 -0
  232. data/lib/rghost/doc/classes/Units/Inch.html +145 -0
  233. data/lib/rghost/doc/classes/Units/Inch.src/M000174.html +18 -0
  234. data/lib/rghost/doc/classes/Units/PSUnit.html +139 -0
  235. data/lib/rghost/doc/classes/Units/PSUnit.src/M000170.html +18 -0
  236. data/lib/rghost/doc/classes/Units/Unit.html +190 -0
  237. data/lib/rghost/doc/classes/Units/Unit.src/M000171.html +18 -0
  238. data/lib/rghost/doc/classes/Units/Unit.src/M000172.html +19 -0
  239. data/lib/rghost/doc/classes/Units/Unit.src/M000173.html +18 -0
  240. data/lib/rghost/doc/classes/Variable.html +152 -0
  241. data/lib/rghost/doc/classes/Variable.src/M000044.html +18 -0
  242. data/lib/rghost/doc/classes/VerticalLine.html +175 -0
  243. data/lib/rghost/doc/classes/VerticalLine.src/M000116.html +23 -0
  244. data/lib/rghost/doc/classes/VerticalLine.src/M000117.html +19 -0
  245. data/lib/rghost/doc/created.rid +1 -0
  246. data/lib/rghost/doc/files/arc_rb.html +109 -0
  247. data/lib/rghost/doc/files/barcode_rb.html +108 -0
  248. data/lib/rghost/doc/files/callback_rb.html +109 -0
  249. data/lib/rghost/doc/files/color_rb.html +110 -0
  250. data/lib/rghost/doc/files/constants_rb.html +108 -0
  251. data/lib/rghost/doc/files/convert_rb.html +107 -0
  252. data/lib/rghost/doc/files/cursor_rb.html +110 -0
  253. data/lib/rghost/doc/files/data_grid/basic_grid_rb.html +108 -0
  254. data/lib/rghost/doc/files/data_grid/csv_grid_rb.html +108 -0
  255. data/lib/rghost/doc/files/data_grid/data_grid_rb.html +116 -0
  256. data/lib/rghost/doc/files/data_grid/dynamic_callback_rb.html +108 -0
  257. data/lib/rghost/doc/files/data_grid/field_format_rb.html +109 -0
  258. data/lib/rghost/doc/files/data_grid/grid_rb.html +108 -0
  259. data/lib/rghost/doc/files/data_grid/header_rb.html +113 -0
  260. data/lib/rghost/doc/files/data_grid/rails_grid_rb.html +108 -0
  261. data/lib/rghost/doc/files/data_grid/static_callback_rb.html +109 -0
  262. data/lib/rghost/doc/files/data_grid/style/border_lines_rb.html +101 -0
  263. data/lib/rghost/doc/files/data_grid/style/bottom_lines_rb.html +101 -0
  264. data/lib/rghost/doc/files/data_grid/style/old_forms_rb.html +101 -0
  265. data/lib/rghost/doc/files/data_grid/style/style_rb.html +110 -0
  266. data/lib/rghost/doc/files/document_rb.html +150 -0
  267. data/lib/rghost/doc/files/dsc_entry_rb.html +108 -0
  268. data/lib/rghost/doc/files/dynamic_document_callback_rb.html +108 -0
  269. data/lib/rghost/doc/files/eps_rb.html +108 -0
  270. data/lib/rghost/doc/files/font_rb.html +110 -0
  271. data/lib/rghost/doc/files/function_rb.html +108 -0
  272. data/lib/rghost/doc/files/gif_rb.html +114 -0
  273. data/lib/rghost/doc/files/graphic_rb.html +113 -0
  274. data/lib/rghost/doc/files/gs_alone_rb.html +101 -0
  275. data/lib/rghost/doc/files/helpers_rb.html +101 -0
  276. data/lib/rghost/doc/files/horizontal_line_rb.html +109 -0
  277. data/lib/rghost/doc/files/image_rb.html +108 -0
  278. data/lib/rghost/doc/files/jpeg_rb.html +112 -0
  279. data/lib/rghost/doc/files/line_rb.html +109 -0
  280. data/lib/rghost/doc/files/line_width_rb.html +108 -0
  281. data/lib/rghost/doc/files/load_rb.html +108 -0
  282. data/lib/rghost/doc/files/newpath_rb.html +113 -0
  283. data/lib/rghost/doc/files/paper_rb.html +112 -0
  284. data/lib/rghost/doc/files/point_rb.html +109 -0
  285. data/lib/rghost/doc/files/point_with_command_rb.html +109 -0
  286. data/lib/rghost/doc/files/ps_object_rb.html +107 -0
  287. data/lib/rghost/doc/files/rectangle_rb.html +110 -0
  288. data/lib/rghost/doc/files/rghost_rb.html +109 -0
  289. data/lib/rghost/doc/files/ruby_ghost_config_rb.html +109 -0
  290. data/lib/rghost/doc/files/ruby_ghost_engine_rb.html +111 -0
  291. data/lib/rghost/doc/files/ruby_to_ps_rb.html +107 -0
  292. data/lib/rghost/doc/files/scale_rb.html +108 -0
  293. data/lib/rghost/doc/files/show_rb.html +109 -0
  294. data/lib/rghost/doc/files/static_document_callback_rb.html +109 -0
  295. data/lib/rghost/doc/files/text_in_rb.html +110 -0
  296. data/lib/rghost/doc/files/textarea_rb.html +111 -0
  297. data/lib/rghost/doc/files/units_rb.html +109 -0
  298. data/lib/rghost/doc/files/variable_rb.html +108 -0
  299. data/lib/rghost/doc/files/version_rb.html +101 -0
  300. data/lib/rghost/doc/files/vertical_line_rb.html +110 -0
  301. data/lib/rghost/doc/fr_class_index.html +93 -0
  302. data/lib/rghost/doc/fr_file_index.html +81 -0
  303. data/lib/rghost/doc/fr_method_index.html +201 -0
  304. data/lib/rghost/doc/index.html +24 -0
  305. data/lib/rghost/ruby_ghost_engine.rb +69 -67
  306. metadata +473 -117
  307. data/History.txt +0 -4
  308. data/Manifest.txt +0 -131
  309. data/README.txt +0 -3
  310. data/Rakefile +0 -93
  311. data/lib/rgteste.rb +0 -46
  312. data/scripts/txt2html +0 -67
  313. data/setup.rb +0 -1585
  314. data/test/test_helper.rb +0 -2
  315. data/test/test_rghost.rb +0 -11
  316. data/website/index.html +0 -11
  317. data/website/index.txt +0 -30
  318. data/website/javascripts/rounded_corners_lite.inc.js +0 -285
  319. data/website/stylesheets/screen.css +0 -129
  320. data/website/template.rhtml +0 -48
data/test/test_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'test/unit'
2
- require File.dirname(__FILE__) + '/../lib/rghost'
data/test/test_rghost.rb DELETED
@@ -1,11 +0,0 @@
1
- require File.dirname(__FILE__) + '/test_helper.rb'
2
-
3
- class TestRghost < Test::Unit::TestCase
4
-
5
- def setup
6
- end
7
-
8
- def test_truth
9
- assert true
10
- end
11
- end
data/website/index.html DELETED
@@ -1,11 +0,0 @@
1
- <html>
2
- <head>
3
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
- <title>rghost</title>
5
-
6
- </head>
7
- <body id="body">
8
- <p>This page has not yet been created for RubyGem <code>rghost</code></p>
9
- <p>To the developer: To generate it, update website/index.txt and run the rake task <code>website</code> to generate this <code>index.html</code> file.</p>
10
- </body>
11
- </html>
data/website/index.txt DELETED
@@ -1,30 +0,0 @@
1
- h1. rghost
2
-
3
- h1. &#x2192; 'rghost'
4
-
5
-
6
- h2. What
7
-
8
-
9
- h2. Installing
10
-
11
- <pre syntax="ruby">sudo gem install rghost</pre>
12
-
13
- h2. The basics
14
-
15
-
16
- h2. Demonstration of usage
17
-
18
-
19
-
20
- h2. Forum
21
-
22
- "http://groups.google.com/group/rghost":http://groups.google.com/group/rghost
23
-
24
- h2. License
25
-
26
- This code is free to use under the terms of the MIT license.
27
-
28
- h2. Contact
29
-
30
- Comments are welcome. Send an email to "Dr Nic Williams":mailto:drnicwilliams@gmail.com.
@@ -1,285 +0,0 @@
1
-
2
- /****************************************************************
3
- * *
4
- * curvyCorners *
5
- * ------------ *
6
- * *
7
- * This script generates rounded corners for your divs. *
8
- * *
9
- * Version 1.2.9 *
10
- * Copyright (c) 2006 Cameron Cooke *
11
- * By: Cameron Cooke and Tim Hutchison. *
12
- * *
13
- * *
14
- * Website: http://www.curvycorners.net *
15
- * Email: info@totalinfinity.com *
16
- * Forum: http://www.curvycorners.net/forum/ *
17
- * *
18
- * *
19
- * This library is free software; you can redistribute *
20
- * it and/or modify it under the terms of the GNU *
21
- * Lesser General Public License as published by the *
22
- * Free Software Foundation; either version 2.1 of the *
23
- * License, or (at your option) any later version. *
24
- * *
25
- * This library is distributed in the hope that it will *
26
- * be useful, but WITHOUT ANY WARRANTY; without even the *
27
- * implied warranty of MERCHANTABILITY or FITNESS FOR A *
28
- * PARTICULAR PURPOSE. See the GNU Lesser General Public *
29
- * License for more details. *
30
- * *
31
- * You should have received a copy of the GNU Lesser *
32
- * General Public License along with this library; *
33
- * Inc., 59 Temple Place, Suite 330, Boston, *
34
- * MA 02111-1307 USA *
35
- * *
36
- ****************************************************************/
37
-
38
- var isIE = navigator.userAgent.toLowerCase().indexOf("msie") > -1; var isMoz = document.implementation && document.implementation.createDocument; var isSafari = ((navigator.userAgent.toLowerCase().indexOf('safari')!=-1)&&(navigator.userAgent.toLowerCase().indexOf('mac')!=-1))?true:false; function curvyCorners()
39
- { if(typeof(arguments[0]) != "object") throw newCurvyError("First parameter of curvyCorners() must be an object."); if(typeof(arguments[1]) != "object" && typeof(arguments[1]) != "string") throw newCurvyError("Second parameter of curvyCorners() must be an object or a class name."); if(typeof(arguments[1]) == "string")
40
- { var startIndex = 0; var boxCol = getElementsByClass(arguments[1]);}
41
- else
42
- { var startIndex = 1; var boxCol = arguments;}
43
- var curvyCornersCol = new Array(); if(arguments[0].validTags)
44
- var validElements = arguments[0].validTags; else
45
- var validElements = ["div"]; for(var i = startIndex, j = boxCol.length; i < j; i++)
46
- { var currentTag = boxCol[i].tagName.toLowerCase(); if(inArray(validElements, currentTag) !== false)
47
- { curvyCornersCol[curvyCornersCol.length] = new curvyObject(arguments[0], boxCol[i]);}
48
- }
49
- this.objects = curvyCornersCol; this.applyCornersToAll = function()
50
- { for(var x = 0, k = this.objects.length; x < k; x++)
51
- { this.objects[x].applyCorners();}
52
- }
53
- }
54
- function curvyObject()
55
- { this.box = arguments[1]; this.settings = arguments[0]; this.topContainer = null; this.bottomContainer = null; this.masterCorners = new Array(); this.contentDIV = null; var boxHeight = get_style(this.box, "height", "height"); var boxWidth = get_style(this.box, "width", "width"); var borderWidth = get_style(this.box, "borderTopWidth", "border-top-width"); var borderColour = get_style(this.box, "borderTopColor", "border-top-color"); var boxColour = get_style(this.box, "backgroundColor", "background-color"); var backgroundImage = get_style(this.box, "backgroundImage", "background-image"); var boxPosition = get_style(this.box, "position", "position"); var boxPadding = get_style(this.box, "paddingTop", "padding-top"); this.boxHeight = parseInt(((boxHeight != "" && boxHeight != "auto" && boxHeight.indexOf("%") == -1)? boxHeight.substring(0, boxHeight.indexOf("px")) : this.box.scrollHeight)); this.boxWidth = parseInt(((boxWidth != "" && boxWidth != "auto" && boxWidth.indexOf("%") == -1)? boxWidth.substring(0, boxWidth.indexOf("px")) : this.box.scrollWidth)); this.borderWidth = parseInt(((borderWidth != "" && borderWidth.indexOf("px") !== -1)? borderWidth.slice(0, borderWidth.indexOf("px")) : 0)); this.boxColour = format_colour(boxColour); this.boxPadding = parseInt(((boxPadding != "" && boxPadding.indexOf("px") !== -1)? boxPadding.slice(0, boxPadding.indexOf("px")) : 0)); this.borderColour = format_colour(borderColour); this.borderString = this.borderWidth + "px" + " solid " + this.borderColour; this.backgroundImage = ((backgroundImage != "none")? backgroundImage : ""); this.boxContent = this.box.innerHTML; if(boxPosition != "absolute") this.box.style.position = "relative"; this.box.style.padding = "0px"; if(isIE && boxWidth == "auto" && boxHeight == "auto") this.box.style.width = "100%"; if(this.settings.autoPad == true && this.boxPadding > 0)
56
- this.box.innerHTML = ""; this.applyCorners = function()
57
- { for(var t = 0; t < 2; t++)
58
- { switch(t)
59
- { case 0:
60
- if(this.settings.tl || this.settings.tr)
61
- { var newMainContainer = document.createElement("DIV"); newMainContainer.style.width = "100%"; newMainContainer.style.fontSize = "1px"; newMainContainer.style.overflow = "hidden"; newMainContainer.style.position = "absolute"; newMainContainer.style.paddingLeft = this.borderWidth + "px"; newMainContainer.style.paddingRight = this.borderWidth + "px"; var topMaxRadius = Math.max(this.settings.tl ? this.settings.tl.radius : 0, this.settings.tr ? this.settings.tr.radius : 0); newMainContainer.style.height = topMaxRadius + "px"; newMainContainer.style.top = 0 - topMaxRadius + "px"; newMainContainer.style.left = 0 - this.borderWidth + "px"; this.topContainer = this.box.appendChild(newMainContainer);}
62
- break; case 1:
63
- if(this.settings.bl || this.settings.br)
64
- { var newMainContainer = document.createElement("DIV"); newMainContainer.style.width = "100%"; newMainContainer.style.fontSize = "1px"; newMainContainer.style.overflow = "hidden"; newMainContainer.style.position = "absolute"; newMainContainer.style.paddingLeft = this.borderWidth + "px"; newMainContainer.style.paddingRight = this.borderWidth + "px"; var botMaxRadius = Math.max(this.settings.bl ? this.settings.bl.radius : 0, this.settings.br ? this.settings.br.radius : 0); newMainContainer.style.height = botMaxRadius + "px"; newMainContainer.style.bottom = 0 - botMaxRadius + "px"; newMainContainer.style.left = 0 - this.borderWidth + "px"; this.bottomContainer = this.box.appendChild(newMainContainer);}
65
- break;}
66
- }
67
- if(this.topContainer) this.box.style.borderTopWidth = "0px"; if(this.bottomContainer) this.box.style.borderBottomWidth = "0px"; var corners = ["tr", "tl", "br", "bl"]; for(var i in corners)
68
- { if(i > -1 < 4)
69
- { var cc = corners[i]; if(!this.settings[cc])
70
- { if(((cc == "tr" || cc == "tl") && this.topContainer != null) || ((cc == "br" || cc == "bl") && this.bottomContainer != null))
71
- { var newCorner = document.createElement("DIV"); newCorner.style.position = "relative"; newCorner.style.fontSize = "1px"; newCorner.style.overflow = "hidden"; if(this.backgroundImage == "")
72
- newCorner.style.backgroundColor = this.boxColour; else
73
- newCorner.style.backgroundImage = this.backgroundImage; switch(cc)
74
- { case "tl":
75
- newCorner.style.height = topMaxRadius - this.borderWidth + "px"; newCorner.style.marginRight = this.settings.tr.radius - (this.borderWidth*2) + "px"; newCorner.style.borderLeft = this.borderString; newCorner.style.borderTop = this.borderString; newCorner.style.left = -this.borderWidth + "px"; break; case "tr":
76
- newCorner.style.height = topMaxRadius - this.borderWidth + "px"; newCorner.style.marginLeft = this.settings.tl.radius - (this.borderWidth*2) + "px"; newCorner.style.borderRight = this.borderString; newCorner.style.borderTop = this.borderString; newCorner.style.backgroundPosition = "-" + (topMaxRadius + this.borderWidth) + "px 0px"; newCorner.style.left = this.borderWidth + "px"; break; case "bl":
77
- newCorner.style.height = botMaxRadius - this.borderWidth + "px"; newCorner.style.marginRight = this.settings.br.radius - (this.borderWidth*2) + "px"; newCorner.style.borderLeft = this.borderString; newCorner.style.borderBottom = this.borderString; newCorner.style.left = -this.borderWidth + "px"; newCorner.style.backgroundPosition = "-" + (this.borderWidth) + "px -" + (this.boxHeight + (botMaxRadius + this.borderWidth)) + "px"; break; case "br":
78
- newCorner.style.height = botMaxRadius - this.borderWidth + "px"; newCorner.style.marginLeft = this.settings.bl.radius - (this.borderWidth*2) + "px"; newCorner.style.borderRight = this.borderString; newCorner.style.borderBottom = this.borderString; newCorner.style.left = this.borderWidth + "px"
79
- newCorner.style.backgroundPosition = "-" + (botMaxRadius + this.borderWidth) + "px -" + (this.boxHeight + (botMaxRadius + this.borderWidth)) + "px"; break;}
80
- }
81
- }
82
- else
83
- { if(this.masterCorners[this.settings[cc].radius])
84
- { var newCorner = this.masterCorners[this.settings[cc].radius].cloneNode(true);}
85
- else
86
- { var newCorner = document.createElement("DIV"); newCorner.style.height = this.settings[cc].radius + "px"; newCorner.style.width = this.settings[cc].radius + "px"; newCorner.style.position = "absolute"; newCorner.style.fontSize = "1px"; newCorner.style.overflow = "hidden"; var borderRadius = parseInt(this.settings[cc].radius - this.borderWidth); for(var intx = 0, j = this.settings[cc].radius; intx < j; intx++)
87
- { if((intx +1) >= borderRadius)
88
- var y1 = -1; else
89
- var y1 = (Math.floor(Math.sqrt(Math.pow(borderRadius, 2) - Math.pow((intx+1), 2))) - 1); if(borderRadius != j)
90
- { if((intx) >= borderRadius)
91
- var y2 = -1; else
92
- var y2 = Math.ceil(Math.sqrt(Math.pow(borderRadius,2) - Math.pow(intx, 2))); if((intx+1) >= j)
93
- var y3 = -1; else
94
- var y3 = (Math.floor(Math.sqrt(Math.pow(j ,2) - Math.pow((intx+1), 2))) - 1);}
95
- if((intx) >= j)
96
- var y4 = -1; else
97
- var y4 = Math.ceil(Math.sqrt(Math.pow(j ,2) - Math.pow(intx, 2))); if(y1 > -1) this.drawPixel(intx, 0, this.boxColour, 100, (y1+1), newCorner, -1, this.settings[cc].radius); if(borderRadius != j)
98
- { for(var inty = (y1 + 1); inty < y2; inty++)
99
- { if(this.settings.antiAlias)
100
- { if(this.backgroundImage != "")
101
- { var borderFract = (pixelFraction(intx, inty, borderRadius) * 100); if(borderFract < 30)
102
- { this.drawPixel(intx, inty, this.borderColour, 100, 1, newCorner, 0, this.settings[cc].radius);}
103
- else
104
- { this.drawPixel(intx, inty, this.borderColour, 100, 1, newCorner, -1, this.settings[cc].radius);}
105
- }
106
- else
107
- { var pixelcolour = BlendColour(this.boxColour, this.borderColour, pixelFraction(intx, inty, borderRadius)); this.drawPixel(intx, inty, pixelcolour, 100, 1, newCorner, 0, this.settings[cc].radius, cc);}
108
- }
109
- }
110
- if(this.settings.antiAlias)
111
- { if(y3 >= y2)
112
- { if (y2 == -1) y2 = 0; this.drawPixel(intx, y2, this.borderColour, 100, (y3 - y2 + 1), newCorner, 0, 0);}
113
- }
114
- else
115
- { if(y3 >= y1)
116
- { this.drawPixel(intx, (y1 + 1), this.borderColour, 100, (y3 - y1), newCorner, 0, 0);}
117
- }
118
- var outsideColour = this.borderColour;}
119
- else
120
- { var outsideColour = this.boxColour; var y3 = y1;}
121
- if(this.settings.antiAlias)
122
- { for(var inty = (y3 + 1); inty < y4; inty++)
123
- { this.drawPixel(intx, inty, outsideColour, (pixelFraction(intx, inty , j) * 100), 1, newCorner, ((this.borderWidth > 0)? 0 : -1), this.settings[cc].radius);}
124
- }
125
- }
126
- this.masterCorners[this.settings[cc].radius] = newCorner.cloneNode(true);}
127
- if(cc != "br")
128
- { for(var t = 0, k = newCorner.childNodes.length; t < k; t++)
129
- { var pixelBar = newCorner.childNodes[t]; var pixelBarTop = parseInt(pixelBar.style.top.substring(0, pixelBar.style.top.indexOf("px"))); var pixelBarLeft = parseInt(pixelBar.style.left.substring(0, pixelBar.style.left.indexOf("px"))); var pixelBarHeight = parseInt(pixelBar.style.height.substring(0, pixelBar.style.height.indexOf("px"))); if(cc == "tl" || cc == "bl"){ pixelBar.style.left = this.settings[cc].radius -pixelBarLeft -1 + "px";}
130
- if(cc == "tr" || cc == "tl"){ pixelBar.style.top = this.settings[cc].radius -pixelBarHeight -pixelBarTop + "px";}
131
- switch(cc)
132
- { case "tr":
133
- pixelBar.style.backgroundPosition = "-" + Math.abs((this.boxWidth - this.settings[cc].radius + this.borderWidth) + pixelBarLeft) + "px -" + Math.abs(this.settings[cc].radius -pixelBarHeight -pixelBarTop - this.borderWidth) + "px"; break; case "tl":
134
- pixelBar.style.backgroundPosition = "-" + Math.abs((this.settings[cc].radius -pixelBarLeft -1) - this.borderWidth) + "px -" + Math.abs(this.settings[cc].radius -pixelBarHeight -pixelBarTop - this.borderWidth) + "px"; break; case "bl":
135
- pixelBar.style.backgroundPosition = "-" + Math.abs((this.settings[cc].radius -pixelBarLeft -1) - this.borderWidth) + "px -" + Math.abs((this.boxHeight + this.settings[cc].radius + pixelBarTop) -this.borderWidth) + "px"; break;}
136
- }
137
- }
138
- }
139
- if(newCorner)
140
- { switch(cc)
141
- { case "tl":
142
- if(newCorner.style.position == "absolute") newCorner.style.top = "0px"; if(newCorner.style.position == "absolute") newCorner.style.left = "0px"; if(this.topContainer) this.topContainer.appendChild(newCorner); break; case "tr":
143
- if(newCorner.style.position == "absolute") newCorner.style.top = "0px"; if(newCorner.style.position == "absolute") newCorner.style.right = "0px"; if(this.topContainer) this.topContainer.appendChild(newCorner); break; case "bl":
144
- if(newCorner.style.position == "absolute") newCorner.style.bottom = "0px"; if(newCorner.style.position == "absolute") newCorner.style.left = "0px"; if(this.bottomContainer) this.bottomContainer.appendChild(newCorner); break; case "br":
145
- if(newCorner.style.position == "absolute") newCorner.style.bottom = "0px"; if(newCorner.style.position == "absolute") newCorner.style.right = "0px"; if(this.bottomContainer) this.bottomContainer.appendChild(newCorner); break;}
146
- }
147
- }
148
- }
149
- var radiusDiff = new Array(); radiusDiff["t"] = Math.abs(this.settings.tl.radius - this.settings.tr.radius)
150
- radiusDiff["b"] = Math.abs(this.settings.bl.radius - this.settings.br.radius); for(z in radiusDiff)
151
- { if(z == "t" || z == "b")
152
- { if(radiusDiff[z])
153
- { var smallerCornerType = ((this.settings[z + "l"].radius < this.settings[z + "r"].radius)? z +"l" : z +"r"); var newFiller = document.createElement("DIV"); newFiller.style.height = radiusDiff[z] + "px"; newFiller.style.width = this.settings[smallerCornerType].radius+ "px"
154
- newFiller.style.position = "absolute"; newFiller.style.fontSize = "1px"; newFiller.style.overflow = "hidden"; newFiller.style.backgroundColor = this.boxColour; switch(smallerCornerType)
155
- { case "tl":
156
- newFiller.style.bottom = "0px"; newFiller.style.left = "0px"; newFiller.style.borderLeft = this.borderString; this.topContainer.appendChild(newFiller); break; case "tr":
157
- newFiller.style.bottom = "0px"; newFiller.style.right = "0px"; newFiller.style.borderRight = this.borderString; this.topContainer.appendChild(newFiller); break; case "bl":
158
- newFiller.style.top = "0px"; newFiller.style.left = "0px"; newFiller.style.borderLeft = this.borderString; this.bottomContainer.appendChild(newFiller); break; case "br":
159
- newFiller.style.top = "0px"; newFiller.style.right = "0px"; newFiller.style.borderRight = this.borderString; this.bottomContainer.appendChild(newFiller); break;}
160
- }
161
- var newFillerBar = document.createElement("DIV"); newFillerBar.style.position = "relative"; newFillerBar.style.fontSize = "1px"; newFillerBar.style.overflow = "hidden"; newFillerBar.style.backgroundColor = this.boxColour; newFillerBar.style.backgroundImage = this.backgroundImage; switch(z)
162
- { case "t":
163
- if(this.topContainer)
164
- { if(this.settings.tl.radius && this.settings.tr.radius)
165
- { newFillerBar.style.height = topMaxRadius - this.borderWidth + "px"; newFillerBar.style.marginLeft = this.settings.tl.radius - this.borderWidth + "px"; newFillerBar.style.marginRight = this.settings.tr.radius - this.borderWidth + "px"; newFillerBar.style.borderTop = this.borderString; if(this.backgroundImage != "")
166
- newFillerBar.style.backgroundPosition = "-" + (topMaxRadius + this.borderWidth) + "px 0px"; this.topContainer.appendChild(newFillerBar);}
167
- this.box.style.backgroundPosition = "0px -" + (topMaxRadius - this.borderWidth) + "px";}
168
- break; case "b":
169
- if(this.bottomContainer)
170
- { if(this.settings.bl.radius && this.settings.br.radius)
171
- { newFillerBar.style.height = botMaxRadius - this.borderWidth + "px"; newFillerBar.style.marginLeft = this.settings.bl.radius - this.borderWidth + "px"; newFillerBar.style.marginRight = this.settings.br.radius - this.borderWidth + "px"; newFillerBar.style.borderBottom = this.borderString; if(this.backgroundImage != "")
172
- newFillerBar.style.backgroundPosition = "-" + (botMaxRadius + this.borderWidth) + "px -" + (this.boxHeight + (topMaxRadius + this.borderWidth)) + "px"; this.bottomContainer.appendChild(newFillerBar);}
173
- }
174
- break;}
175
- }
176
- }
177
- if(this.settings.autoPad == true && this.boxPadding > 0)
178
- { var contentContainer = document.createElement("DIV"); contentContainer.style.position = "relative"; contentContainer.innerHTML = this.boxContent; contentContainer.className = "autoPadDiv"; var topPadding = Math.abs(topMaxRadius - this.boxPadding); var botPadding = Math.abs(botMaxRadius - this.boxPadding); if(topMaxRadius < this.boxPadding)
179
- contentContainer.style.paddingTop = topPadding + "px"; if(botMaxRadius < this.boxPadding)
180
- contentContainer.style.paddingBottom = botMaxRadius + "px"; contentContainer.style.paddingLeft = this.boxPadding + "px"; contentContainer.style.paddingRight = this.boxPadding + "px"; this.contentDIV = this.box.appendChild(contentContainer);}
181
- }
182
- this.drawPixel = function(intx, inty, colour, transAmount, height, newCorner, image, cornerRadius)
183
- { var pixel = document.createElement("DIV"); pixel.style.height = height + "px"; pixel.style.width = "1px"; pixel.style.position = "absolute"; pixel.style.fontSize = "1px"; pixel.style.overflow = "hidden"; var topMaxRadius = Math.max(this.settings["tr"].radius, this.settings["tl"].radius); if(image == -1 && this.backgroundImage != "")
184
- { pixel.style.backgroundImage = this.backgroundImage; pixel.style.backgroundPosition = "-" + (this.boxWidth - (cornerRadius - intx) + this.borderWidth) + "px -" + ((this.boxHeight + topMaxRadius + inty) -this.borderWidth) + "px";}
185
- else
186
- { pixel.style.backgroundColor = colour;}
187
- if (transAmount != 100)
188
- setOpacity(pixel, transAmount); pixel.style.top = inty + "px"; pixel.style.left = intx + "px"; newCorner.appendChild(pixel);}
189
- }
190
- function insertAfter(parent, node, referenceNode)
191
- { parent.insertBefore(node, referenceNode.nextSibling);}
192
- function BlendColour(Col1, Col2, Col1Fraction)
193
- { var red1 = parseInt(Col1.substr(1,2),16); var green1 = parseInt(Col1.substr(3,2),16); var blue1 = parseInt(Col1.substr(5,2),16); var red2 = parseInt(Col2.substr(1,2),16); var green2 = parseInt(Col2.substr(3,2),16); var blue2 = parseInt(Col2.substr(5,2),16); if(Col1Fraction > 1 || Col1Fraction < 0) Col1Fraction = 1; var endRed = Math.round((red1 * Col1Fraction) + (red2 * (1 - Col1Fraction))); if(endRed > 255) endRed = 255; if(endRed < 0) endRed = 0; var endGreen = Math.round((green1 * Col1Fraction) + (green2 * (1 - Col1Fraction))); if(endGreen > 255) endGreen = 255; if(endGreen < 0) endGreen = 0; var endBlue = Math.round((blue1 * Col1Fraction) + (blue2 * (1 - Col1Fraction))); if(endBlue > 255) endBlue = 255; if(endBlue < 0) endBlue = 0; return "#" + IntToHex(endRed)+ IntToHex(endGreen)+ IntToHex(endBlue);}
194
- function IntToHex(strNum)
195
- { base = strNum / 16; rem = strNum % 16; base = base - (rem / 16); baseS = MakeHex(base); remS = MakeHex(rem); return baseS + '' + remS;}
196
- function MakeHex(x)
197
- { if((x >= 0) && (x <= 9))
198
- { return x;}
199
- else
200
- { switch(x)
201
- { case 10: return "A"; case 11: return "B"; case 12: return "C"; case 13: return "D"; case 14: return "E"; case 15: return "F";}
202
- }
203
- }
204
- function pixelFraction(x, y, r)
205
- { var pixelfraction = 0; var xvalues = new Array(1); var yvalues = new Array(1); var point = 0; var whatsides = ""; var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(x,2))); if ((intersect >= y) && (intersect < (y+1)))
206
- { whatsides = "Left"; xvalues[point] = 0; yvalues[point] = intersect - y; point = point + 1;}
207
- var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(y+1,2))); if ((intersect >= x) && (intersect < (x+1)))
208
- { whatsides = whatsides + "Top"; xvalues[point] = intersect - x; yvalues[point] = 1; point = point + 1;}
209
- var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(x+1,2))); if ((intersect >= y) && (intersect < (y+1)))
210
- { whatsides = whatsides + "Right"; xvalues[point] = 1; yvalues[point] = intersect - y; point = point + 1;}
211
- var intersect = Math.sqrt((Math.pow(r,2) - Math.pow(y,2))); if ((intersect >= x) && (intersect < (x+1)))
212
- { whatsides = whatsides + "Bottom"; xvalues[point] = intersect - x; yvalues[point] = 0;}
213
- switch (whatsides)
214
- { case "LeftRight":
215
- pixelfraction = Math.min(yvalues[0],yvalues[1]) + ((Math.max(yvalues[0],yvalues[1]) - Math.min(yvalues[0],yvalues[1]))/2); break; case "TopRight":
216
- pixelfraction = 1-(((1-xvalues[0])*(1-yvalues[1]))/2); break; case "TopBottom":
217
- pixelfraction = Math.min(xvalues[0],xvalues[1]) + ((Math.max(xvalues[0],xvalues[1]) - Math.min(xvalues[0],xvalues[1]))/2); break; case "LeftBottom":
218
- pixelfraction = (yvalues[0]*xvalues[1])/2; break; default:
219
- pixelfraction = 1;}
220
- return pixelfraction;}
221
- function rgb2Hex(rgbColour)
222
- { try{ var rgbArray = rgb2Array(rgbColour); var red = parseInt(rgbArray[0]); var green = parseInt(rgbArray[1]); var blue = parseInt(rgbArray[2]); var hexColour = "#" + IntToHex(red) + IntToHex(green) + IntToHex(blue);}
223
- catch(e){ alert("There was an error converting the RGB value to Hexadecimal in function rgb2Hex");}
224
- return hexColour;}
225
- function rgb2Array(rgbColour)
226
- { var rgbValues = rgbColour.substring(4, rgbColour.indexOf(")")); var rgbArray = rgbValues.split(", "); return rgbArray;}
227
- function setOpacity(obj, opacity)
228
- { opacity = (opacity == 100)?99.999:opacity; if(isSafari && obj.tagName != "IFRAME")
229
- { var rgbArray = rgb2Array(obj.style.backgroundColor); var red = parseInt(rgbArray[0]); var green = parseInt(rgbArray[1]); var blue = parseInt(rgbArray[2]); obj.style.backgroundColor = "rgba(" + red + ", " + green + ", " + blue + ", " + opacity/100 + ")";}
230
- else if(typeof(obj.style.opacity) != "undefined")
231
- { obj.style.opacity = opacity/100;}
232
- else if(typeof(obj.style.MozOpacity) != "undefined")
233
- { obj.style.MozOpacity = opacity/100;}
234
- else if(typeof(obj.style.filter) != "undefined")
235
- { obj.style.filter = "alpha(opacity:" + opacity + ")";}
236
- else if(typeof(obj.style.KHTMLOpacity) != "undefined")
237
- { obj.style.KHTMLOpacity = opacity/100;}
238
- }
239
- function inArray(array, value)
240
- { for(var i = 0; i < array.length; i++){ if (array[i] === value) return i;}
241
- return false;}
242
- function inArrayKey(array, value)
243
- { for(key in array){ if(key === value) return true;}
244
- return false;}
245
- function addEvent(elm, evType, fn, useCapture) { if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true;}
246
- else if (elm.attachEvent) { var r = elm.attachEvent('on' + evType, fn); return r;}
247
- else { elm['on' + evType] = fn;}
248
- }
249
- function removeEvent(obj, evType, fn, useCapture){ if (obj.removeEventListener){ obj.removeEventListener(evType, fn, useCapture); return true;} else if (obj.detachEvent){ var r = obj.detachEvent("on"+evType, fn); return r;} else { alert("Handler could not be removed");}
250
- }
251
- function format_colour(colour)
252
- { var returnColour = "#ffffff"; if(colour != "" && colour != "transparent")
253
- { if(colour.substr(0, 3) == "rgb")
254
- { returnColour = rgb2Hex(colour);}
255
- else if(colour.length == 4)
256
- { returnColour = "#" + colour.substring(1, 2) + colour.substring(1, 2) + colour.substring(2, 3) + colour.substring(2, 3) + colour.substring(3, 4) + colour.substring(3, 4);}
257
- else
258
- { returnColour = colour;}
259
- }
260
- return returnColour;}
261
- function get_style(obj, property, propertyNS)
262
- { try
263
- { if(obj.currentStyle)
264
- { var returnVal = eval("obj.currentStyle." + property);}
265
- else
266
- { if(isSafari && obj.style.display == "none")
267
- { obj.style.display = ""; var wasHidden = true;}
268
- var returnVal = document.defaultView.getComputedStyle(obj, '').getPropertyValue(propertyNS); if(isSafari && wasHidden)
269
- { obj.style.display = "none";}
270
- }
271
- }
272
- catch(e)
273
- { }
274
- return returnVal;}
275
- function getElementsByClass(searchClass, node, tag)
276
- { var classElements = new Array(); if(node == null)
277
- node = document; if(tag == null)
278
- tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\s)"+searchClass+"(\s|$)"); for (i = 0, j = 0; i < elsLen; i++)
279
- { if(pattern.test(els[i].className))
280
- { classElements[j] = els[i]; j++;}
281
- }
282
- return classElements;}
283
- function newCurvyError(errorMessage)
284
- { return new Error("curvyCorners Error:\n" + errorMessage)
285
- }
@@ -1,129 +0,0 @@
1
- body {
2
- background-color: #E1D1F1;
3
- font-family: "Georgia", sans-serif;
4
- font-size: 16px;
5
- line-height: 1.6em;
6
- padding: 1.6em 0 0 0;
7
- color: #333;
8
- }
9
- h1, h2, h3, h4, h5, h6 {
10
- color: #444;
11
- }
12
- h1 {
13
- font-family: sans-serif;
14
- font-weight: normal;
15
- font-size: 4em;
16
- line-height: 0.8em;
17
- letter-spacing: -0.1ex;
18
- margin: 5px;
19
- }
20
- li {
21
- padding: 0;
22
- margin: 0;
23
- list-style-type: square;
24
- }
25
- a {
26
- color: #5E5AFF;
27
- background-color: #DAC;
28
- font-weight: normal;
29
- text-decoration: underline;
30
- }
31
- blockquote {
32
- font-size: 90%;
33
- font-style: italic;
34
- border-left: 1px solid #111;
35
- padding-left: 1em;
36
- }
37
- .caps {
38
- font-size: 80%;
39
- }
40
-
41
- #main {
42
- width: 45em;
43
- padding: 0;
44
- margin: 0 auto;
45
- }
46
- .coda {
47
- text-align: right;
48
- color: #77f;
49
- font-size: smaller;
50
- }
51
-
52
- table {
53
- font-size: 90%;
54
- line-height: 1.4em;
55
- color: #ff8;
56
- background-color: #111;
57
- padding: 2px 10px 2px 10px;
58
- border-style: dashed;
59
- }
60
-
61
- th {
62
- color: #fff;
63
- }
64
-
65
- td {
66
- padding: 2px 10px 2px 10px;
67
- }
68
-
69
- .success {
70
- color: #0CC52B;
71
- }
72
-
73
- .failed {
74
- color: #E90A1B;
75
- }
76
-
77
- .unknown {
78
- color: #995000;
79
- }
80
- pre, code {
81
- font-family: monospace;
82
- font-size: 90%;
83
- line-height: 1.4em;
84
- color: #ff8;
85
- background-color: #111;
86
- padding: 2px 10px 2px 10px;
87
- }
88
- .comment { color: #aaa; font-style: italic; }
89
- .keyword { color: #eff; font-weight: bold; }
90
- .punct { color: #eee; font-weight: bold; }
91
- .symbol { color: #0bb; }
92
- .string { color: #6b4; }
93
- .ident { color: #ff8; }
94
- .constant { color: #66f; }
95
- .regex { color: #ec6; }
96
- .number { color: #F99; }
97
- .expr { color: #227; }
98
-
99
- #version {
100
- float: right;
101
- text-align: right;
102
- font-family: sans-serif;
103
- font-weight: normal;
104
- background-color: #B3ABFF;
105
- color: #141331;
106
- padding: 15px 20px 10px 20px;
107
- margin: 0 auto;
108
- margin-top: 15px;
109
- border: 3px solid #141331;
110
- }
111
-
112
- #version .numbers {
113
- display: block;
114
- font-size: 4em;
115
- line-height: 0.8em;
116
- letter-spacing: -0.1ex;
117
- }
118
-
119
- #version a {
120
- text-decoration: none;
121
- color: #141331;
122
- background-color: #B3ABFF;
123
- }
124
-
125
- .clickable {
126
- cursor: pointer;
127
- cursor: hand;
128
- }
129
-