Class: SketcherBase
A common interface that all sketchers should implement
Hierarchy
↳
SketcherBase
Constructors
constructor
• new SketcherBase()
Overrides
Defined in
Properties
_name
• _name: string
= ''
Defined in
_properties
• Protected
_properties: Property
[]
Inherited from
Defined in
_root
• Protected
_root: HTMLElement
Inherited from
Defined in
dart
• dart: any
Inherited from
Defined in
factory
• factory: null
| Func
= null
Constructor function. No parameters, returns [Widget].
Inherited from
Defined in
host
• Optional
host: Sketcher
Defined in
isDetached
• isDetached: boolean
= false
Inherited from
Defined in
onChanged
• onChanged: Subject
<any
>
Defined in
props
• props: any
Inherited from
Defined in
subs
• subs: Subscription
[]
Inherited from
Defined in
temp
• temp: any
Contains auxiliary information
Inherited from
Defined in
Accessors
height
• get
height(): number
Returns
number
Defined in
isInitialized
• Abstract
get
isInitialized(): boolean
Returns
boolean
Defined in
molFile
• Abstract
get
molFile(): string
MolFile representation of the molecule
Returns
string
Defined in
• Abstract
set
molFile(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Defined in
molV3000
• Abstract
get
molV3000(): string
Returns
string
Defined in
• Abstract
set
molV3000(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Defined in
root
• get
root(): HTMLElement
Widget's visual root.
Returns
HTMLElement
Inherited from
Widget.root
Defined in
• set
root(r
): void
Parameters
Name | Type |
---|---|
r | HTMLElement |
Returns
void
Inherited from
Widget.root
Defined in
smarts
• Abstract
set
smarts(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Defined in
smiles
• Abstract
get
smiles(): string
SMILES representation of the molecule
Returns
string
Defined in
• Abstract
set
smiles(s
): void
Parameters
Name | Type |
---|---|
s | string |
Returns
void
Defined in
supportedExportFormats
• get
supportedExportFormats(): string
[]
Returns
string
[]
Defined in
type
• get
type(): string
Returns
string
Inherited from
Widget.type
Defined in
width
• get
width(): number
Returns
number
Defined in
Methods
addProperty
▸ Private
addProperty(propertyName
, propertyType
, defaultValue?
, options?
): any
Registers an property with the specified type, name, and defaultValue. Registered property gets added to {@see properties}. Returns default value, thus allowing to combine registering a property with the initialization
Parameters
Name | Type | Default value |
---|---|---|
propertyName | string | undefined |
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" | "TableView" | "User" | "Menu" | "Project" | "event_data" | "progressindicator" | "Credentials" | "ScriptEnvironment" | "Notebook" | undefined |
defaultValue | any | null |
options | null | { [key: string] : any ; } & PropertyOptions | null |
Returns
any
Inherited from
Defined in
apply
▸ apply(properties
): Widget
<any
>
Parameters
Name | Type |
---|---|
properties | object |
Returns
Widget
<any
>
Inherited from
Defined in
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
Defined in
getDartProperties
▸ getDartProperties(): any
[]
Returns
any
[]
Inherited from
Defined in
getProperties
▸ getProperties(): Property
[]
Returns
Property
[]
Inherited from
Defined in
getSmarts
▸ getSmarts(): Promise
<string
>
SMARTS query
Returns
Promise
<string
>
Defined in
init
▸ init(host
): Promise
<void
>
Override to provide custom initialization. At this point, the root is already in the DOM.
Parameters
Name | Type |
---|---|
host | Sketcher |
Returns
Promise
<void
>
Defined in
onFrameAttached
▸ onFrameAttached(dataFrame
): void
Parameters
Name | Type |
---|---|
dataFrame | DataFrame |
Returns
void
Inherited from
Defined in
onPropertyChanged
▸ onPropertyChanged(property
): void
Gets called when viewer's property is changed.
Parameters
Name | Type | Description |
---|---|---|
property | null | Property | or null, if multiple properties were changed. |
Returns
void
Inherited from
Defined in
refresh
▸ refresh(): void
Returns
void
Defined in
resize
▸ resize(): void
Returns
void
Defined in
sourceRowsChanged
▸ sourceRowsChanged(): void
Returns
void
Inherited from
Defined in
sub
▸ sub(subscription
): void
Registers a subscription to an external event.
Parameters
Name | Type |
---|---|
subscription | Subscription |
Returns
void
Inherited from
Defined in
toDart
▸ toDart(): any
Returns
any
Inherited from
Defined in
find
▸ Static
find(root
): null
| Widget
<any
>
Finds existing widget from its visual root.
Parameters
Name | Type |
---|---|
root | Element |
Returns
null
| Widget
<any
>
Inherited from
Defined in
fromRoot
▸ Static
fromRoot(root
): Widget
<any
>
Creates a new widget from the root element.
Parameters
Name | Type |
---|---|
root | HTMLElement |
Returns
Widget
<any
>
Inherited from
Defined in
getAll
▸ Static
getAll(): Widget
<any
>[]
Returns all currently active widgets.
Returns
Widget
<any
>[]