Range
Generated.swift:13956class Range
class Range
import DOM
class AbstractRange
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init()
required init(unsafelyWrapping jsObject: JSObject)
static let END_TO_END: UInt16
static let END_TO_START: UInt16
static let START_TO_END: UInt16
static let START_TO_START: UInt16
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var commonAncestorContainer: Node { get }
var description: String { get }
func cloneContents() -> DocumentFragment
func cloneRange() -> Self
func collapse(toStart: Bool? = nil)
func compareBoundaryPoints(how: UInt16, sourceRange: Range) -> Int16
func comparePoint(node: Node, offset: UInt32) -> Int16
func deleteContents()
func detach()
func extractContents() -> DocumentFragment
func getBoundingClientRect() -> DOMRect
func getClientRects() -> DOMRectList
func insertNode(node: Node)
func intersectsNode(node: Node) -> Bool
func isPointInRange(node: Node, offset: UInt32) -> Bool
func selectNode(node: Node)
func selectNodeContents(node: Node)
func setEnd(node: Node, offset: UInt32)
func setEndAfter(node: Node)
func setEndBefore(node: Node)
func setStart(node: Node, offset: UInt32)
func setStartAfter(node: Node)
func setStartBefore(node: Node)
func surroundContents(newParent: Node)