Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Image

Hierarchy

Index

Constructors

constructor

  • new Image(context: Context, attrs?: Partial<Image_Attributes>): Image

Properties

Protected _node

_node: SVGImageElement

Protected _style

_style: CSSStyleDeclaration

context

context: Context

Accessors

boundingBox

  • get boundingBox(): Box

id

  • get id(): string

node

  • get node(): SVGImageElement

Methods

add

  • add(el: Element<SVGElement> | SVGElement): void

animateAttribute

  • animateAttribute<Attr>(name: Attr, val: ATTRIBUTES[Attr], duration: number, easing: EasingFunction): Promise<number> | undefined

clone

Protected cloneNode

  • cloneNode(deep?: boolean): SVGImageElement

copyStyleFrom

  • copyStyleFrom(el: Element<SVGElement, Image_Attributes, any>): void
  • copyStyleFrom(el: Element<SVGElement, Image_Attributes, any>, includeExclude: object, defaultInclude: boolean): void

destroy

  • destroy(): void

flush

  • flush(): Promise<number>

getAttribute

  • getAttribute<Attr>(name: Attr): string | null

getChildren

  • getChildren(): Element<SVGElement>[]

getEvent

  • getEvent<EVENT>(event: EVENT): Observable<EVENTS[EVENT]>
  • Type parameters

    • EVENT: keyof Image_Events

    Parameters

    • event: EVENT

    Returns Observable<EVENTS[EVENT]>

getEvents

  • getEvents(...events: keyof EVENTS[]): Observable<Event>

getPointEvents

linkDynamicAttribute

  • linkDynamicAttribute<Attr>(name: Attr, val: Observable<ATTRIBUTES[Attr]>): Subscription

renderAttribute

  • renderAttribute<Attr>(name: Attr, val: ATTRIBUTES[Attr]): void

reparent

setAttribute

  • setAttribute<Attr>(name: Attr, val: ATTRIBUTES[Attr]): void
  • Type parameters

    • Attr: keyof Image_Attributes

    Parameters

    • name: Attr
    • val: ATTRIBUTES[Attr]

    Returns void

setAttributes

  • setAttributes(attrs: Partial<Image_Attributes>): void

toString

  • toString(): string

Static afterLoad

  • afterLoad(context: Context, href: string, attrs?: Partial<Image_Attributes>): Promise<Image>

Generated using TypeDoc