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