Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SvgView

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new SvgView(node: SVGElement, key?: string | null): SvgView

Properties

alignmentBaseline

alignmentBaseline: AttributeAnimator<this, AlignmentBaseline>

clipPath

clipPath: AttributeAnimator<this, string>

cursor

cx

cx: AttributeAnimator<this, number, number | string>

cy

cy: AttributeAnimator<this, number, number | string>

d

d: AttributeAnimator<this, string>

dx

dx: AttributeAnimator<this, number, number | string>

dy

dy: AttributeAnimator<this, number, number | string>

edgeMode

edgeMode: AttributeAnimator<this, string>

fill

fillRuke

fillRuke: AttributeAnimator<this, FillRule>

fontFamily

fontFamily: StyleAnimator<this, FontFamily | FontFamily[], FontFamily | ReadonlyArray<FontFamily>>

fontSize

fontStretch

fontStretch: StyleAnimator<this, FontStretch>

fontStyle

fontStyle: StyleAnimator<this, FontStyle>

fontVariant

fontVariant: StyleAnimator<this, FontVariant>

fontWeight

fontWeight: StyleAnimator<this, FontWeight>

height

in

in: AttributeAnimator<this, string>

in2

in2: AttributeAnimator<this, string>

lineHeight

mode

mode: AttributeAnimator<this, string>

opacity

opacity: AttributeAnimator<this, number>

points

points: AttributeAnimator<this, string>

preserveAspectRatio

preserveAspectRatio: AttributeAnimator<this, boolean, boolean | string>

r

r: AttributeAnimator<this, number, number | string>

result

result: AttributeAnimator<this, string>

stdDeviation

stdDeviation: AttributeAnimator<this, string>

stroke

strokeDasharray

strokeDasharray: AttributeAnimator<this, string>

strokeWidth

strokeWidth: AttributeAnimator<this, number, number | string>

textAnchor

textAnchor: AttributeAnimator<this, TextAnchor>

transform

type

type: AttributeAnimator<this, string>

values

values: AttributeAnimator<this, string>

viewBox

viewBox: AttributeAnimator<this, string>

width

x

x: AttributeAnimator<this, number, number | string>

x1

x1: AttributeAnimator<this, number, number | string>

x2

x2: AttributeAnimator<this, number, number | string>

y

y: AttributeAnimator<this, number, number | string>

y1

y1: AttributeAnimator<this, number, number | string>

y2

y2: AttributeAnimator<this, number, number | string>

Accessors

appView

childViews

  • get childViews(): ReadonlyArray<View>

classList

  • get classList(): DOMTokenList

clientBounds

  • get clientBounds(): BoxR2

clientTransform

dirty

  • get dirty(): boolean

node

pageBounds

  • get pageBounds(): BoxR2

pageTransform

parentTransform

parentView

  • get parentView(): View | null

popoverBounds

  • get popoverBounds(): BoxR2

viewController

viewObservers

Methods

addClass

  • addClass(...classNames: string[]): this

addViewObserver

animate

  • animate(force?: boolean): void

append

appendChild

  • appendChild(child: View | Node): void

appendChildNode

  • appendChildNode(childNode: Node): void

appendChildView

  • appendChildView(childView: View): void

cascadeAnimate

  • cascadeAnimate(frame: number): void

cascadeLayout

  • cascadeLayout(): void

cascadeMount

  • cascadeMount(): void

cascadeResize

  • cascadeResize(): void

cascadeScroll

  • cascadeScroll(): void

cascadeUnmount

  • cascadeUnmount(): void

className

  • className(): string | null
  • className(value: string | null): this

Protected didAddViewObserver

Protected didAnimate

  • didAnimate(frame: number): void

Protected didInsertChildNode

  • didInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected didInsertChildView

  • didInsertChildView(childView: View, targetView: View | null | undefined): void

Protected didLayout

  • didLayout(): void

Protected didMount

  • didMount(): void

Protected didObserve

  • didObserve(callback: function): void

Protected didRemoveChildNode

  • didRemoveChildNode(childNode: Node): void

Protected didRemoveChildView

  • didRemoveChildView(childView: View): void

Protected didRemoveViewObserver

Protected didResize

  • didResize(): void

Protected didScroll

  • didScroll(): void

Protected didSetAttribute

  • didSetAttribute(name: string, value: unknown): void

Protected didSetDirty

  • didSetDirty(dirty: boolean): void

Protected didSetKey

  • didSetKey(key: string | null): void

Protected didSetParentView

  • didSetParentView(parentView: View | null): void

Protected didSetStyle

  • didSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected didSetViewController

Protected didUnmount

  • didUnmount(): void

dispatchEvent

  • dispatchEvent(event: Event): boolean

font

  • font(): Font | undefined
  • font(value: AnyFont | null, tween?: Tween<any>, priority?: string | null): this

getAttribute

  • getAttribute(name: string): string | null

getChildView

  • getChildView(key: string): View | null

hasClass

  • hasClass(className: string): boolean

id

  • id(): string | null
  • id(value: string | null): this

Protected initNode

insert

insertChild

  • insertChild(child: View | Node, target: View | Node | null): void

insertChildNode

  • insertChildNode(childNode: Node, targetNode: Node | null): void

insertChildView

  • insertChildView(childView: View, targetView: View | null): void

isMounted

  • isMounted(): boolean

isVisible

  • isVisible(): boolean

key

  • key(): string | null
  • key(key: string | null): this

off

  • off<K>(type: K, listener: function, options?: EventListenerOptions | boolean): this
  • off(type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): this

on

  • on<K>(type: K, listener: function, options?: AddEventListenerOptions | boolean): this
  • on(type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): this

Protected onAddViewObserver

Protected onAnimate

  • onAnimate(frame: number): void

Protected onAnimationFrame

  • onAnimationFrame(timestamp: number): void

Protected onInsertChildNode

  • onInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected onInsertChildView

  • onInsertChildView(childView: View, targetView: View | null | undefined): void

Protected onLayout

  • onLayout(): void

Protected onMount

  • onMount(): void

Protected onRemoveChildNode

  • onRemoveChildNode(childNode: Node): void

Protected onRemoveChildView

  • onRemoveChildView(childView: View): void

Protected onRemoveViewObserver

Protected onResize

  • onResize(): void

Protected onScroll

  • onScroll(): void

Protected onSetAttribute

  • onSetAttribute(name: string, value: unknown): void

Protected onSetKey

  • onSetKey(key: string | null): void

Protected onSetParentView

  • onSetParentView(parentView: View | null): void

Protected onSetStyle

  • onSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected onSetViewController

Protected onUnmount

  • onUnmount(): void

prepend

prependChild

  • prependChild(child: View | Node): void

prependChildNode

  • prependChildNode(childNode: Node): void

prependChildView

  • prependChildView(childView: View): void

remove

  • remove(): void

removeAll

  • removeAll(): void

removeChild

  • removeChild(child: View | Node): void

removeChildNode

  • removeChildNode(childNode: Node): void

removeChildView

  • removeChildView(childView: View): void

removeClass

  • removeClass(...classNames: string[]): this

removeViewObserver

setAttribute

  • setAttribute(name: string, value: unknown): this

setChildView

  • setChildView(key: string, newChildView: View | null): View | null

setDirty

  • setDirty(dirty: boolean): void

setParentView

  • setParentView(parentView: View | null): void

setStyle

  • setStyle(name: string, value: unknown, priority?: undefined | string): this

setViewController

text

  • text(): string | null
  • text(value: string | null): this

toggleClass

  • toggleClass(className: string, state?: undefined | false | true): this

Protected willAddViewObserver

Protected willAnimate

  • willAnimate(frame: number): void

Protected willInsertChildNode

  • willInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected willInsertChildView

  • willInsertChildView(childView: View, targetView: View | null | undefined): void

Protected willLayout

  • willLayout(): void

Protected willMount

  • willMount(): void

Protected willObserve

  • willObserve(callback: function): void

Protected willRemoveChildNode

  • willRemoveChildNode(childNode: Node): void

Protected willRemoveChildView

  • willRemoveChildView(childView: View): void

Protected willRemoveViewObserver

Protected willResize

  • willResize(): void

Protected willScroll

  • willScroll(): void

Protected willSetAttribute

  • willSetAttribute(name: string, value: unknown): void

Protected willSetKey

  • willSetKey(key: string | null): void

Protected willSetParentView

  • willSetParentView(parentView: View | null): void

Protected willSetStyle

  • willSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected willSetViewController

Protected willUnmount

  • willUnmount(): void

Static create

Static fromNode