@oozcitak/dom
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -7,6 +7,6 @@ import { EventInit, EventTarget, EventPhase, PotentialEventTarget, EventPathItem, Event } from './interfaces'; | ||
export declare class EventImpl implements Event { | ||
static readonly NONE: number; | ||
static readonly CAPTURING_PHASE: number; | ||
static readonly AT_TARGET: number; | ||
static readonly BUBBLING_PHASE: number; | ||
readonly NONE: number; | ||
readonly CAPTURING_PHASE: number; | ||
readonly AT_TARGET: number; | ||
readonly BUBBLING_PHASE: number; | ||
_target: PotentialEventTarget; | ||
@@ -13,0 +13,0 @@ _relatedTarget: PotentialEventTarget; |
@@ -13,2 +13,6 @@ "use strict"; | ||
constructor(type, eventInit) { | ||
this.NONE = 0; | ||
this.CAPTURING_PHASE = 1; | ||
this.AT_TARGET = 2; | ||
this.BUBBLING_PHASE = 3; | ||
this._target = null; | ||
@@ -248,6 +252,2 @@ this._relatedTarget = null; | ||
exports.EventImpl = EventImpl; | ||
EventImpl.NONE = 0; | ||
EventImpl.CAPTURING_PHASE = 1; | ||
EventImpl.AT_TARGET = 2; | ||
EventImpl.BUBBLING_PHASE = 3; | ||
//# sourceMappingURL=EventImpl.js.map |
@@ -6,18 +6,18 @@ import { Node, FilterResult, NodeFilter } from "./interfaces"; | ||
export declare class NodeFilterImpl implements NodeFilter { | ||
static readonly FILTER_ACCEPT: number; | ||
static readonly FILTER_REJECT: number; | ||
static readonly FILTER_SKIP: number; | ||
static readonly SHOW_ALL: number; | ||
static readonly SHOW_ELEMENT: number; | ||
static readonly SHOW_ATTRIBUTE: number; | ||
static readonly SHOW_TEXT: number; | ||
static readonly SHOW_CDATA_SECTION: number; | ||
static readonly SHOW_ENTITY_REFERENCE: number; | ||
static readonly SHOW_ENTITY: number; | ||
static readonly SHOW_PROCESSING_INSTRUCTION: number; | ||
static readonly SHOW_COMMENT: number; | ||
static readonly SHOW_DOCUMENT: number; | ||
static readonly SHOW_DOCUMENT_TYPE: number; | ||
static readonly SHOW_DOCUMENT_FRAGMENT: number; | ||
static readonly SHOW_NOTATION: number; | ||
readonly FILTER_ACCEPT: number; | ||
readonly FILTER_REJECT: number; | ||
readonly FILTER_SKIP: number; | ||
readonly SHOW_ALL: number; | ||
readonly SHOW_ELEMENT: number; | ||
readonly SHOW_ATTRIBUTE: number; | ||
readonly SHOW_TEXT: number; | ||
readonly SHOW_CDATA_SECTION: number; | ||
readonly SHOW_ENTITY_REFERENCE: number; | ||
readonly SHOW_ENTITY: number; | ||
readonly SHOW_PROCESSING_INSTRUCTION: number; | ||
readonly SHOW_COMMENT: number; | ||
readonly SHOW_DOCUMENT: number; | ||
readonly SHOW_DOCUMENT_TYPE: number; | ||
readonly SHOW_DOCUMENT_FRAGMENT: number; | ||
readonly SHOW_NOTATION: number; | ||
/** | ||
@@ -24,0 +24,0 @@ * Initializes a new instance of `NodeFilter`. |
@@ -12,2 +12,18 @@ "use strict"; | ||
constructor() { | ||
this.FILTER_ACCEPT = 1; | ||
this.FILTER_REJECT = 2; | ||
this.FILTER_SKIP = 3; | ||
this.SHOW_ALL = 0xffffffff; | ||
this.SHOW_ELEMENT = 0x1; | ||
this.SHOW_ATTRIBUTE = 0x2; | ||
this.SHOW_TEXT = 0x4; | ||
this.SHOW_CDATA_SECTION = 0x8; | ||
this.SHOW_ENTITY_REFERENCE = 0x10; | ||
this.SHOW_ENTITY = 0x20; | ||
this.SHOW_PROCESSING_INSTRUCTION = 0x40; | ||
this.SHOW_COMMENT = 0x80; | ||
this.SHOW_DOCUMENT = 0x100; | ||
this.SHOW_DOCUMENT_TYPE = 0x200; | ||
this.SHOW_DOCUMENT_FRAGMENT = 0x400; | ||
this.SHOW_NOTATION = 0x800; | ||
} | ||
@@ -28,18 +44,2 @@ /** | ||
exports.NodeFilterImpl = NodeFilterImpl; | ||
NodeFilterImpl.FILTER_ACCEPT = 1; | ||
NodeFilterImpl.FILTER_REJECT = 2; | ||
NodeFilterImpl.FILTER_SKIP = 3; | ||
NodeFilterImpl.SHOW_ALL = 0xffffffff; | ||
NodeFilterImpl.SHOW_ELEMENT = 0x1; | ||
NodeFilterImpl.SHOW_ATTRIBUTE = 0x2; | ||
NodeFilterImpl.SHOW_TEXT = 0x4; | ||
NodeFilterImpl.SHOW_CDATA_SECTION = 0x8; | ||
NodeFilterImpl.SHOW_ENTITY_REFERENCE = 0x10; | ||
NodeFilterImpl.SHOW_ENTITY = 0x20; | ||
NodeFilterImpl.SHOW_PROCESSING_INSTRUCTION = 0x40; | ||
NodeFilterImpl.SHOW_COMMENT = 0x80; | ||
NodeFilterImpl.SHOW_DOCUMENT = 0x100; | ||
NodeFilterImpl.SHOW_DOCUMENT_TYPE = 0x200; | ||
NodeFilterImpl.SHOW_DOCUMENT_FRAGMENT = 0x400; | ||
NodeFilterImpl.SHOW_NOTATION = 0x800; | ||
//# sourceMappingURL=NodeFilterImpl.js.map |
@@ -7,20 +7,20 @@ import { Node, NodeList, Element, Document, NodeType, Position, GetRootNodeOptions, RegisteredObserver, TransientRegisteredObserver, Event, EventTarget } from './interfaces'; | ||
export declare abstract class NodeImpl extends EventTargetImpl implements Node { | ||
static readonly ELEMENT_NODE: number; | ||
static readonly ATTRIBUTE_NODE: number; | ||
static readonly TEXT_NODE: number; | ||
static readonly CDATA_SECTION_NODE: number; | ||
static readonly ENTITY_REFERENCE_NODE: number; | ||
static readonly ENTITY_NODE: number; | ||
static readonly PROCESSING_INSTRUCTION_NODE: number; | ||
static readonly COMMENT_NODE: number; | ||
static readonly DOCUMENT_NODE: number; | ||
static readonly DOCUMENT_TYPE_NODE: number; | ||
static readonly DOCUMENT_FRAGMENT_NODE: number; | ||
static readonly NOTATION_NODE: number; | ||
static readonly DOCUMENT_POSITION_DISCONNECTED: number; | ||
static readonly DOCUMENT_POSITION_PRECEDING: number; | ||
static readonly DOCUMENT_POSITION_FOLLOWING: number; | ||
static readonly DOCUMENT_POSITION_CONTAINS: number; | ||
static readonly DOCUMENT_POSITION_CONTAINED_BY: number; | ||
static readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; | ||
readonly ELEMENT_NODE: number; | ||
readonly ATTRIBUTE_NODE: number; | ||
readonly TEXT_NODE: number; | ||
readonly CDATA_SECTION_NODE: number; | ||
readonly ENTITY_REFERENCE_NODE: number; | ||
readonly ENTITY_NODE: number; | ||
readonly PROCESSING_INSTRUCTION_NODE: number; | ||
readonly COMMENT_NODE: number; | ||
readonly DOCUMENT_NODE: number; | ||
readonly DOCUMENT_TYPE_NODE: number; | ||
readonly DOCUMENT_FRAGMENT_NODE: number; | ||
readonly NOTATION_NODE: number; | ||
readonly DOCUMENT_POSITION_DISCONNECTED: number; | ||
readonly DOCUMENT_POSITION_PRECEDING: number; | ||
readonly DOCUMENT_POSITION_FOLLOWING: number; | ||
readonly DOCUMENT_POSITION_CONTAINS: number; | ||
readonly DOCUMENT_POSITION_CONTAINED_BY: number; | ||
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; | ||
protected _childNodes: NodeList; | ||
@@ -27,0 +27,0 @@ private _nodeDocumentOverride; |
@@ -17,2 +17,20 @@ "use strict"; | ||
super(); | ||
this.ELEMENT_NODE = 1; | ||
this.ATTRIBUTE_NODE = 2; | ||
this.TEXT_NODE = 3; | ||
this.CDATA_SECTION_NODE = 4; | ||
this.ENTITY_REFERENCE_NODE = 5; | ||
this.ENTITY_NODE = 6; | ||
this.PROCESSING_INSTRUCTION_NODE = 7; | ||
this.COMMENT_NODE = 8; | ||
this.DOCUMENT_NODE = 9; | ||
this.DOCUMENT_TYPE_NODE = 10; | ||
this.DOCUMENT_FRAGMENT_NODE = 11; | ||
this.NOTATION_NODE = 12; | ||
this.DOCUMENT_POSITION_DISCONNECTED = 0x01; | ||
this.DOCUMENT_POSITION_PRECEDING = 0x02; | ||
this.DOCUMENT_POSITION_FOLLOWING = 0x04; | ||
this.DOCUMENT_POSITION_CONTAINS = 0x08; | ||
this.DOCUMENT_POSITION_CONTAINED_BY = 0x10; | ||
this.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | ||
this._nodeDocumentOverride = undefined; | ||
@@ -722,20 +740,2 @@ this._registeredObserverList = []; | ||
exports.NodeImpl = NodeImpl; | ||
NodeImpl.ELEMENT_NODE = 1; | ||
NodeImpl.ATTRIBUTE_NODE = 2; | ||
NodeImpl.TEXT_NODE = 3; | ||
NodeImpl.CDATA_SECTION_NODE = 4; | ||
NodeImpl.ENTITY_REFERENCE_NODE = 5; | ||
NodeImpl.ENTITY_NODE = 6; | ||
NodeImpl.PROCESSING_INSTRUCTION_NODE = 7; | ||
NodeImpl.COMMENT_NODE = 8; | ||
NodeImpl.DOCUMENT_NODE = 9; | ||
NodeImpl.DOCUMENT_TYPE_NODE = 10; | ||
NodeImpl.DOCUMENT_FRAGMENT_NODE = 11; | ||
NodeImpl.NOTATION_NODE = 12; | ||
NodeImpl.DOCUMENT_POSITION_DISCONNECTED = 0x01; | ||
NodeImpl.DOCUMENT_POSITION_PRECEDING = 0x02; | ||
NodeImpl.DOCUMENT_POSITION_FOLLOWING = 0x04; | ||
NodeImpl.DOCUMENT_POSITION_CONTAINS = 0x08; | ||
NodeImpl.DOCUMENT_POSITION_CONTAINED_BY = 0x10; | ||
NodeImpl.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | ||
//# sourceMappingURL=NodeImpl.js.map |
@@ -8,9 +8,9 @@ import { Node, Range, HowToCompare, DocumentFragment, BoundaryPoint } from './interfaces'; | ||
export declare class RangeImpl extends AbstractRangeImpl implements Range { | ||
_algo: DOMAlgorithm; | ||
protected _algo: DOMAlgorithm; | ||
_start: BoundaryPoint; | ||
_end: BoundaryPoint; | ||
static readonly START_TO_START: number; | ||
static readonly START_TO_END: number; | ||
static readonly END_TO_END: number; | ||
static readonly END_TO_START: number; | ||
readonly START_TO_START: number; | ||
readonly START_TO_END: number; | ||
readonly END_TO_END: number; | ||
readonly END_TO_START: number; | ||
/** | ||
@@ -17,0 +17,0 @@ * Initializes a new instance of `Range`. |
@@ -16,2 +16,6 @@ "use strict"; | ||
super(); | ||
this.START_TO_START = 0; | ||
this.START_TO_END = 1; | ||
this.END_TO_END = 2; | ||
this.END_TO_START = 3; | ||
/** | ||
@@ -563,6 +567,2 @@ * The Range() constructor, when invoked, must return a new live range with | ||
exports.RangeImpl = RangeImpl; | ||
RangeImpl.START_TO_START = 0; | ||
RangeImpl.START_TO_END = 1; | ||
RangeImpl.END_TO_END = 2; | ||
RangeImpl.END_TO_START = 3; | ||
//# sourceMappingURL=RangeImpl.js.map |
@@ -8,3 +8,3 @@ import { Node, NodeFilter, WhatToShow, Traverser } from "./interfaces"; | ||
export declare abstract class TraverserImpl implements Traverser { | ||
_algo: DOMAlgorithm; | ||
protected _algo: DOMAlgorithm; | ||
_activeFlag: boolean; | ||
@@ -11,0 +11,0 @@ _root: Node; |
{ | ||
"name": "@oozcitak/dom", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"keywords": [ | ||
@@ -54,7 +54,5 @@ "dom", | ||
"compile": "rm -rf lib && tsc --version && tsc", | ||
"test": "npm run compile && jest", | ||
"testChanged": "npm run compile && jest --onlyChanged", | ||
"cover": "npm run compile && jest --coverage", | ||
"test": "npm run compile && jest --coverage", | ||
"publish-public": "npm run test && npm publish --access public" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1075656
21207