Skip to main content

abstract SketcherBase

A common interface that all sketchers should implement

Extends

Constructors

new SketcherBase()

new SketcherBase(): SketcherBase

Returns

SketcherBase

Overrides

Widget . constructor

Source

src/chem.ts:76

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
_namepublicstring''--
_propertiesprotectedProperty[]undefined-Widget._properties
_rootprotectedHTMLElementundefined-Widget._root
dartpublicanyundefined-Widget.dart
factorypublicnull | FuncnullConstructor function. No parameters, returns [Widget].Widget.factory
host?publicSketcherundefined--
isDetachedpublicbooleanfalse-Widget.isDetached
onChangedpublicSubject<any>...--
propspublicanyundefined-Widget.props
subspublicSubscription[]undefined-Widget.subs
temppublicanyundefinedContains auxiliary informationWidget.temp

Accessors

height

get height(): number

Returns

number

Source

src/chem.ts:111


isInitialized

get abstract isInitialized(): boolean

Returns

boolean

Source

src/chem.ts:101


molFile

get abstract molFile(): string

MolFile representation of the molecule

set abstract molFile(s): void

Parameters

ParameterType
sstring

Returns

string

Source

src/chem.ts:86


molV3000

get abstract molV3000(): string

set abstract molV3000(s): void

Parameters

ParameterType
sstring

Returns

string

Source

src/chem.ts:88


root

get root(): HTMLElement

Widget's visual root.

set root(r): void

Parameters

ParameterType
rHTMLElement

Returns

HTMLElement

Source

src/widgets.ts:291


smarts

set abstract smarts(s): void

Parameters

ParameterType
sstring

Source

src/chem.ts:99


smiles

get abstract smiles(): string

SMILES representation of the molecule

set abstract smiles(s): void

Parameters

ParameterType
sstring

Returns

string

Source

src/chem.ts:81


supportedExportFormats

get supportedExportFormats(): string[]

Returns

string[]

Source

src/chem.ts:103


type

get type(): string

Returns

string

Source

src/widgets.ts:201


width

get width(): number

Returns

number

Source

src/chem.ts:107

Methods

addProperty()

private addProperty(propertyName, propertyType, defaultValue, options): any

Registers an property with the specified type, name, and defaultValue.

Parameters

ParameterTypeDefault valueDescription
propertyNamestringundefined
propertyType"string" | "bigint" | "object" | "map" | "file" | "view" | "int" | "double" | "bool" | "byte_array" | "datetime" | "qnum" | "dataframe" | "num" | "string_list" | "dataframe_list" | "cell" | "column" | "column_list" | "graphics" | "tablerowfiltercall" | "colfiltercall" | "bitset" | "dynamic" | "viewer" | "list" | "semantic_value" | "func" | "funccall" | "property" | "categorical" | "numerical" | "GridCellRenderArgs" | "element" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook"undefined
defaultValueanynull
optionsnull | object & PropertyOptionsnull

Returns

any

Inherited from

Widget . addProperty

See

Registered property gets added to properties. Returns default value, thus allowing to combine registering a property with the initialization

Source

src/widgets.ts:312


apply()

apply(properties): Widget<any>

Parameters

ParameterTypeDescription
propertiesobject

Returns

Widget<any>

Inherited from

Widget . apply

Source

src/widgets.ts:262


detach()

detach(): void

Gets called when a widget is detached and will no longer be used. Typically used for unsubscribing from events. Be sure to call super.detach() if this method is overridden.

Returns

void

Inherited from

Widget . detach

Source

src/widgets.ts:296


getDartProperties()

getDartProperties(): any[]

Returns

any[]

Inherited from

Widget . getDartProperties

Source

src/widgets.ts:278


getProperties()

getProperties(): Property[]

Returns

Property[]

Inherited from

Widget . getProperties

Source

src/widgets.ts:272


getSmarts()

getSmarts(): Promise<string>

SMARTS query

Returns

Promise<string>

Source

src/chem.ts:95


init()

init(host): Promise<void>

Override to provide custom initialization. At this point, the root is already in the DOM.

Parameters

ParameterType
hostSketcher

Returns

Promise<void>

Source

src/chem.ts:116


onFrameAttached()

onFrameAttached(dataFrame): void

Parameters

ParameterType
dataFrameDataFrame

Returns

void

Inherited from

Widget . onFrameAttached

Source

src/widgets.ts:284


onPropertyChanged()

onPropertyChanged(property): void

Gets called when viewer's property is changed.

Parameters

ParameterTypeDescription
propertynull | Propertyor null, if multiple properties were changed.

Returns

void

Inherited from

Widget . onPropertyChanged

Source

src/widgets.ts:276


refresh()

refresh(): void

Returns

void

Source

src/chem.ts:120


resize()

resize(): void

Returns

void

Source

src/chem.ts:122


sourceRowsChanged()

sourceRowsChanged(): void

Returns

void

Inherited from

Widget . sourceRowsChanged

Source

src/widgets.ts:282


sub()

sub(subscription): void

Registers a subscription to an external event.

Parameters

ParameterTypeDescription
subscriptionSubscription

Returns

void

Inherited from

Widget . sub

Source

src/widgets.ts:255


toDart()

toDart(): any

Returns

any

Inherited from

Widget . toDart

Source

src/widgets.ts:247


find()

static find(root): null | Widget<any>

Finds existing widget from its visual root.

Parameters

ParameterType
rootElement

Returns

null | Widget<any>

Inherited from

Widget . find

Source

src/widgets.ts:243


fromRoot()

static fromRoot(root): Widget<any>

Creates a new widget from the root element.

Parameters

ParameterType
rootHTMLElement

Returns

Widget<any>

Inherited from

Widget . fromRoot

Source

src/widgets.ts:335


getAll()

static getAll(): Widget<any>[]

Returns all currently active widgets.

Returns

Widget<any>[]

Inherited from

Widget . getAll

Source

src/widgets.ts:238