Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ve.PositionStep.js

raw symbols SCIP
1 /*!
2 * VisualEditor representation of a node traversal step
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * @class
9 *
10 * @constructor
11 * @param {Node} node The element or text node being crossed
12 * @param {string} type The type of step: "enter", "leave", "cross" or (for text nodes) "internal"
13 * @param {number} offset For "internal" text node steps only: the character offset being crossed
14 */
15 ve.PositionStep = function VePositionStep( node, type, offset ) {
16 this.node = node;
17 this.type = type;
18 this.offset = offset;
19 };