Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

424 lines
8.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>_global_</title>
  6. <base target="class-frame">
  7. <link href="../assets/css/docs.css" rel="stylesheet" type="text/css">
  8. <script src="../assets/js/paper.js"></script>
  9. <script src="../assets/js/jquery.js"></script>
  10. <script src="../assets/js/codemirror.js"></script>
  11. <script src="../assets/js/docs.js"></script>
  12. </head>
  13. <body>
  14. <article class="reference">
  15. <div class="reference-class">
  16. <h1>Global Scope</h1>
  17. <p>When code is executed as PaperScript, the script&rsquo;s scope is populated with all fields of the currently active <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a> object, which within the script appear to be global.</p>
  18. <p>In a JavaScript context, only the <a href="../classes/global.html#paper"><tt>paper</tt></a> variable is added to the global scope, referencing the currently active <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a> object, through which all properties and Paper.js classes can be accessed.</p>
  19. </div>
  20. <!-- ================================ properties =========================== -->
  21. <div class="reference-members">
  22. <h2>Properties</h2>
  23. <div id="paper" class="member">
  24. <div class="member-link">
  25. <a name="paper" href="#paper"><tt><b>paper</b></tt></a>
  26. </div>
  27. <div class="member-description hidden">
  28. <div class="member-text">
  29. <p>A reference to the currently active <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a> object.</p>
  30. <ul class="member-list">
  31. <h4>Type:</h4>
  32. <li>
  33. <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. </div>
  39. <h3>Global PaperScript Properties</h3>
  40. <div id="project" class="member">
  41. <div class="member-link">
  42. <a name="project" href="#project"><tt><b>project</b></tt></a>
  43. </div>
  44. <div class="member-description hidden">
  45. <div class="member-text">
  46. <p>The project for which the PaperScript is executed.</p>
  47. <p>Note that when working with multiple projects, this does not necessarily reflect the currently active project. For this, use <a href="../classes/PaperScope.html#project"><tt>paperScope.project</tt></a> instead.</p>
  48. <ul class="member-list">
  49. <h4>Type:</h4>
  50. <li>
  51. <a href="../classes/Project.html"><tt>Project</tt></a>
  52. </li>
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. <div id="projects" class="member">
  58. <div class="member-link">
  59. <a name="projects" href="#projects"><tt><b>projects</b></tt></a>
  60. </div>
  61. <div class="member-description hidden">
  62. <div class="member-text">
  63. <p>The list of all open projects within the current Paper.js context.</p>
  64. <ul class="member-list">
  65. <h4>Type:</h4>
  66. <li>
  67. Array of <a href="../classes/Project.html"><tt>Project</tt></a> objects
  68. </li>
  69. </ul>
  70. </div>
  71. </div>
  72. </div>
  73. <div id="view" class="member">
  74. <div class="member-link">
  75. <a name="view" href="#view"><tt><b>view</b></tt></a>
  76. </div>
  77. <div class="member-description hidden">
  78. <div class="member-text">
  79. <p>The reference to the project&rsquo;s view.</p>
  80. <p>Note that when working with multiple projects, this does not necessarily reflect the view of the currently active project. For this, use <a href="../classes/PaperScope.html#view"><tt>paperScope.view</tt></a> instead.</p>
  81. <p>Read only.</p>
  82. <ul class="member-list">
  83. <h4>Type:</h4>
  84. <li>
  85. <a href="../classes/View.html"><tt>View</tt></a>
  86. </li>
  87. </ul>
  88. </div>
  89. </div>
  90. </div>
  91. <div id="tool" class="member">
  92. <div class="member-link">
  93. <a name="tool" href="#tool"><tt><b>tool</b></tt></a>
  94. </div>
  95. <div class="member-description hidden">
  96. <div class="member-text">
  97. <p>The reference to the tool object which is automatically created when global tool event handlers are defined.</p>
  98. <p>Note that when working with multiple tools, this does not necessarily reflect the currently active tool. For this, use <a href="../classes/PaperScope.html#tool"><tt>paperScope.tool</tt></a> instead.</p>
  99. <ul class="member-list">
  100. <h4>Type:</h4>
  101. <li>
  102. <a href="../classes/Tool.html"><tt>Tool</tt></a>
  103. </li>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. <div id="tools" class="member">
  109. <div class="member-link">
  110. <a name="tools" href="#tools"><tt><b>tools</b></tt></a>
  111. </div>
  112. <div class="member-description hidden">
  113. <div class="member-text">
  114. <p>The list of available tools.</p>
  115. <ul class="member-list">
  116. <h4>Type:</h4>
  117. <li>
  118. Array of <a href="../classes/Tool.html"><tt>Tool</tt></a> objects
  119. </li>
  120. </ul>
  121. </div>
  122. </div>
  123. </div>
  124. <h3>PaperScript View Event Handlers</h3>
  125. <div id="onframe" class="member">
  126. <div class="member-link">
  127. <a name="onframe" href="#onframe"><tt><b>onFrame</b></tt></a>
  128. </div>
  129. <div class="member-description hidden">
  130. <div class="member-text">
  131. <p>A global reference to the <a href="../classes/View.html#onframe"><tt>view.onFrame</tt></a> handler function.</p>
  132. <ul class="member-list">
  133. <h4>Type:</h4>
  134. <li>
  135. <tt>Function</tt>
  136. </li>
  137. </ul>
  138. </div>
  139. </div>
  140. </div>
  141. <div id="onresize" class="member">
  142. <div class="member-link">
  143. <a name="onresize" href="#onresize"><tt><b>onResize</b></tt></a>
  144. </div>
  145. <div class="member-description hidden">
  146. <div class="member-text">
  147. <p>A reference to the <a href="../classes/View.html#onresize"><tt>view.onResize</tt></a> handler function.</p>
  148. <ul class="member-list">
  149. <h4>Type:</h4>
  150. <li>
  151. <tt>Function</tt>
  152. </li>
  153. </ul>
  154. </div>
  155. </div>
  156. </div>
  157. <h3>PaperScript Tool Event Handlers</h3>
  158. <div id="onmousedown" class="member">
  159. <div class="member-link">
  160. <a name="onmousedown" href="#onmousedown"><tt><b>onMouseDown</b></tt></a>
  161. </div>
  162. <div class="member-description hidden">
  163. <div class="member-text">
  164. <p>A reference to the <a href="../classes/Tool.html#onmousedown"><tt>tool.onMouseDown</tt></a> handler function.</p>
  165. <ul class="member-list">
  166. <h4>Type:</h4>
  167. <li>
  168. <tt>Function</tt>
  169. </li>
  170. </ul>
  171. </div>
  172. </div>
  173. </div>
  174. <div id="onmousedrag" class="member">
  175. <div class="member-link">
  176. <a name="onmousedrag" href="#onmousedrag"><tt><b>onMouseDrag</b></tt></a>
  177. </div>
  178. <div class="member-description hidden">
  179. <div class="member-text">
  180. <p>A reference to the <a href="../classes/Tool.html#onmousedrag"><tt>tool.onMouseDrag</tt></a> handler function.</p>
  181. <ul class="member-list">
  182. <h4>Type:</h4>
  183. <li>
  184. <tt>Function</tt>
  185. </li>
  186. </ul>
  187. </div>
  188. </div>
  189. </div>
  190. <div id="onmousemove" class="member">
  191. <div class="member-link">
  192. <a name="onmousemove" href="#onmousemove"><tt><b>onMouseMove</b></tt></a>
  193. </div>
  194. <div class="member-description hidden">
  195. <div class="member-text">
  196. <p>A reference to the <a href="../classes/Tool.html#onmousemove"><tt>tool.onMouseMove</tt></a> handler function.</p>
  197. <ul class="member-list">
  198. <h4>Type:</h4>
  199. <li>
  200. <tt>Function</tt>
  201. </li>
  202. </ul>
  203. </div>
  204. </div>
  205. </div>
  206. <div id="onmouseup" class="member">
  207. <div class="member-link">
  208. <a name="onmouseup" href="#onmouseup"><tt><b>onMouseUp</b></tt></a>
  209. </div>
  210. <div class="member-description hidden">
  211. <div class="member-text">
  212. <p>A reference to the <a href="../classes/Tool.html#onmouseup"><tt>tool.onMouseUp</tt></a> handler function.</p>
  213. <ul class="member-list">
  214. <h4>Type:</h4>
  215. <li>
  216. <tt>Function</tt>
  217. </li>
  218. </ul>
  219. </div>
  220. </div>
  221. </div>
  222. <h3>Keyboard Event Handlers (for PaperScript)</h3>
  223. <div id="onkeydown" class="member">
  224. <div class="member-link">
  225. <a name="onkeydown" href="#onkeydown"><tt><b>onKeyDown</b></tt></a>
  226. </div>
  227. <div class="member-description hidden">
  228. <div class="member-text">
  229. <p>A reference to the <a href="../classes/Tool.html#onkeydown"><tt>tool.onKeyDown</tt></a> handler function.</p>
  230. <ul class="member-list">
  231. <h4>Type:</h4>
  232. <li>
  233. <tt>Function</tt>
  234. </li>
  235. </ul>
  236. </div>
  237. </div>
  238. </div>
  239. <div id="onkeyup" class="member">
  240. <div class="member-link">
  241. <a name="onkeyup" href="#onkeyup"><tt><b>onKeyUp</b></tt></a>
  242. </div>
  243. <div class="member-description hidden">
  244. <div class="member-text">
  245. <p>A reference to the <a href="../classes/Tool.html#onkeyup"><tt>tool.onKeyUp</tt></a> handler function.</p>
  246. <ul class="member-list">
  247. <h4>Type:</h4>
  248. <li>
  249. <tt>Function</tt>
  250. </li>
  251. </ul>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <!-- =========================== copyright notice ========================== -->
  257. <p class="footer">
  258. Paper.js v0.12.15<br>
  259. Copyright &#169; 2011—2021 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
  260. <div class="content-end"></div>
  261. </article>
  262. </body>