Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7408939
ve.ce.NullSelection.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.ce.NullSelection.js
View Options
/*!
* 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
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 22:05 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a9/7a/739a5faa190c033a56997705b55d
Default Alt Text
ve.ce.NullSelection.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment