Skip to content

arlas-d3 / Exports / DrawableObject

Class: DrawableObject

Hierarchy

  • DrawableObject

Axis

Timeline

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DrawableObject(context, name)

Parameters

Name Type
context Selection<SVGGElement, TimelineData, BaseType, TimelineData>
name string

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:32

Properties

context

Protected context: Selection<SVGGElement, TimelineData, BaseType, TimelineData>

the context is the parent element to which the current element is appended

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:27


dimensions

Protected dimensions: Dimensions

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:28


element

Protected element: Selection<SVGGElement, TimelineData, BaseType, TimelineData>

the element contains the drawing of this current object

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:25

Methods

onClick

onClick(e): void

Parameters

Name Type
e any

Returns

void

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:60


plot

plot(): void

Returns

void

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:38


remove

remove(): void

Returns

void

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:45


setDimensions

setDimensions(dimensions): DrawableObject

Parameters

Name Type
dimensions Dimensions

Returns

DrawableObject

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:52