Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | 1x 23x 1x 1x 1x 1x 1x 1x 1x 4x 1x 1x 37x 1x 2x 1x | /*!
* VisualEditor Null Selection class.
*
* @copyright See AUTHORS.txt
*/
/**
* @class
* @extends ve.ce.Selection
* @constructor
* @param {ve.ce.Surface} surface
* @param {ve.dm.Selection} model
*/
ve.ce.NullSelection = function VeCeNullSelection() {
// Parent constructor
ve.ce.NullSelection.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.ce.NullSelection, ve.ce.Selection );
/* Static Properties */
ve.ce.NullSelection.static.name = 'null';
/* Method */
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.getSelectionRects = function () {
return null;
};
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.getSelectionStartAndEndRects = function () {
return null;
};
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.getSelectionBoundingRect = function () {
return null;
};
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.isFocusedNode = function () {
return false;
};
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.isNativeCursor = function () {
return false;
};
/**
* @inheritdoc
*/
ve.ce.NullSelection.prototype.getDirectionality = function ( doc ) {
// Null selections don't exist in the view, so just return document directionality.
return doc.getDir();
};
/* Registration */
ve.ce.selectionFactory.register( ve.ce.NullSelection );
|