/** @scope _global_ */ {

/**
 * In a PaperScript context, the global scope is populated with all
 * fields of the currently active {@link PaperScope} object. In a JavaScript
 * context, it only contains the {@link #paper} reference to the currently
 * active {@link PaperScope} object, which also exposes all Paper classes.
 *
 * {@grouptitle PaperScript Global Properties}
 *
 * @borrows PaperScope#version as _global_#version
 */

/**
 * A reference to the currently active {@link PaperScope} object.
 *
 * @name paper
 * @property
 * @type PaperScope
 */

/**
 * {@grouptitle PaperScript View Event Handlers}
 * A reference to the {@link View#onFrame} handler function.
 *
 * @name onFrame
 * @property
 * @type Function
 */

/**
 * A reference to the {@link View#onResize} handler function.
 *
 * @name onResize
 * @property
 * @type Function
 */

/**
 * {@grouptitle PaperScript Mouse Event Handlers}
 * A reference to the {@link Tool#onMouseDown} handler function.
 * @name onMouseDown
 * @property
 * @type Function
 */

/**
 * A reference to the {@link Tool#onMouseDrag} handler function.
 *
 * @name onMouseDrag
 * @property
 * @type Function
 */

/**
 * A reference to the {@link Tool#onMouseMove} handler function.
 *
 * @name onMouseMove
 * @property
 * @type Function
 */

/**
 * A reference to the {@link Tool#onMouseUp} handler function.
 *
 * @name onMouseUp
 * @property
 * @type Function
 */

/**
 * {@grouptitle PaperScript Keyboard Event Handlers}
 * A reference to the {@link Tool#onKeyDown} handler function.
 *
 * @name onKeyDown
 * @property
 * @type Function
 */

/**
 * A reference to the {@link Tool#onKeyUp} handler function.
 *
 * @name onKeyUp
 * @property
 * @type Function
 */
}
@@ -19,16 +19,75 @@
 _ */ %7B%0A%0A
+// DOCS: Find a way to put this description into _global_%0A%0A
 /**%0A * I
@@ -381,112 +381,8 @@
 es.%0A
- *%0A * %7B@grouptitle PaperScript Global Properties%7D%0A *%0A * @borrows PaperScope#version as _global_#version%0A
  */%0A
@@ -505,24 +505,727 @@
 Scope%0A */%0A%0A/
+/ DOCS: This does not work: @borrows PaperScope#version as _global_#version,%0A// so we're repeating documentation here form PaperScope:%0A/**%0A * %7B@grouptitle Global PaperScope Properties (for PaperScript)%7D%0A *%0A * The currently active project.%0A * @name project%0A * @type Project%0A */%0A%0A/**%0A * The list of all open projects within the current Paper.js context.%0A * @name projects%0A * @type Project%5B%5D%0A */%0A%0A/**%0A * The active view of the active project.%0A * @name view%0A * @type View%0A */%0A%0A/**%0A * The list of view of the active project.%0A * @name views%0A * @type View%5B%5D%0A */%0A%0A/**%0A * The reference to the active tool.%0A * @name tool%0A * @type Tool%0A */%0A%0A/**%0A * The list of available tools.%0A * @name tools%0A * @type Tool%5B%5D%0A */%0A%0A/
 **%0A * %7B@grou
@@ -1230,28 +1230,16 @@
 ouptitle
- PaperScript
  View Ev
@@ -1242,32 +1242,50 @@
 w Event Handlers
+ (for PaperScript)
 %7D%0A * A reference
@@ -1530,28 +1530,16 @@
 uptitle 
-PaperScript 
 Mouse Ev
@@ -1542,32 +1542,50 @@
 e Event Handlers
+ (for PaperScript)
 %7D%0A * A reference
@@ -2095,28 +2095,16 @@
 uptitle 
-PaperScript 
 Keyboard
@@ -2118,16 +2118,34 @@
 Handlers
+ (for PaperScript)
 %7D%0A * A r

Add more documentation for global scope.