Sketcher
Defined in: src/chem.ts:138
Molecule sketcher that supports multiple dynamically initialized implementations.
Extends
Constructors
Constructor
new Sketcher(
mode?,validationFunc?):Sketcher
Defined in: src/chem.ts:347
Parameters
| Parameter | Type |
|---|---|
mode? | SKETCHER_MODE |
validationFunc? | (s) => string | null |
Returns
Sketcher
Overrides
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
_align | public | boolean | true | - | - | src/chem.ts:173 |
_autoResized | public | boolean | true | - | - | src/chem.ts:170 |
_functions | protected | Func[] | [] | - | Widget._functions | src/widgets/base.ts:243 |
_highlight | public | boolean | true | - | - | src/chem.ts:174 |
_isSubstructureFilter | public | boolean | false | - | - | src/chem.ts:172 |
_mode | public | SKETCHER_MODE | SKETCHER_MODE.INPLACE | - | - | src/chem.ts:155 |
_molfile | public | string | null | null | - | - | src/chem.ts:157 |
_properties | protected | Property[] | [] | - | Widget._properties | src/widgets/base.ts:242 |
_root | protected | HTMLElement | undefined | - | Widget._root | src/widgets/base.ts:241 |
_sketcherTypeChanged | public | boolean | false | - | - | src/chem.ts:169 |
_smarts | public | string | null | null | - | - | src/chem.ts:158 |
_smiles | public | string | null | null | - | - | src/chem.ts:156 |
_validationFunc | public | (molecule) => string | null | undefined | - | - | src/chem.ts:171 |
alighInput | public | InputBase | undefined | - | - | src/chem.ts:177 |
changedSub | public | Subscription | null | null | - | - | src/chem.ts:143 |
clearSketcherButton | public | HTMLButtonElement | undefined | - | - | src/chem.ts:166 |
dart | public | any | undefined | - | Widget.dart | src/widgets/base.ts:246 |
emptySketcherLink | public | HTMLDivElement | undefined | - | - | src/chem.ts:167 |
error | public | string | null | null | - | - | src/chem.ts:175 |
errorDiv | public | HTMLDivElement | undefined | - | - | src/chem.ts:176 |
extSketcherCanvas | public | HTMLCanvasElement | undefined | - | - | src/chem.ts:163 |
extSketcherDiv | public | HTMLDivElement | undefined | - | - | src/chem.ts:162 |
factory | public | Func | null | null | Constructor function. No parameters, returns [Widget]. | Widget.factory | src/widgets/base.ts:239 |
filterOnChangeInput | public | InputBase | undefined | - | - | src/chem.ts:179 |
filterOptionsDiv | public | HTMLDivElement | undefined | - | - | src/chem.ts:164 |
highlightInput | public | InputBase | undefined | - | - | src/chem.ts:178 |
host | public | HTMLDivElement | undefined | - | - | src/chem.ts:142 |
inplaceSketcherDiv | public | HTMLDivElement | null | null | - | - | src/chem.ts:165 |
invalidMoleculeWarning | public | HTMLDivElement | undefined | - | - | src/chem.ts:141 |
isDetached | public | boolean | false | - | Widget.isDetached | src/widgets/base.ts:247 |
listeners | public | Function[] | [] | - | - | src/chem.ts:154 |
loader | public | HTMLDivElement | undefined | - | - | src/chem.ts:161 |
molFileUnits | public | Notation | Notation.MolBlock | - | - | src/chem.ts:159 |
molInput | public | HTMLInputElement | undefined | - | - | src/chem.ts:140 |
onAlignedChanged | public | Subject<boolean> | undefined | - | - | src/chem.ts:146 |
onChanged | public | Subject<any> | undefined | - | - | src/chem.ts:145 |
onHighlightChanged | public | Subject<boolean> | undefined | - | - | src/chem.ts:147 |
props | public | any | undefined | - | Widget.props | src/widgets/base.ts:244 |
resized | public | boolean | false | - | - | src/chem.ts:168 |
sketcher | public | SketcherBase | null | null | - | - | src/chem.ts:144 |
sketcherDialogOpened | public | boolean | false | - | - | src/chem.ts:149 |
sketcherFunctions | public | Func[] | [] | - | - | src/chem.ts:148 |
subs | public | Subscription[] | undefined | - | Widget.subs | src/widgets/base.ts:245 |
syncCurrentObject | public | boolean | true | Whether the currently drawn molecule becomes the current object as you sketch it | - | src/chem.ts:152 |
temp | public | any | undefined | Contains auxiliary information | Widget.temp | src/widgets/base.ts:236 |
FAVORITES_KEY | readonly | "chem-molecule-favorites" | 'chem-molecule-favorites' | - | - | src/chem.ts:674 |
RECENT_KEY | readonly | "chem-molecule-recent" | 'chem-molecule-recent' | - | - | src/chem.ts:675 |
Accessors
aiDescription
Get Signature
get aiDescription():
string|null
Defined in: src/widgets/base.ts:306
A short AI-facing briefing: what this widget is, what its functions do, and how the assistant should approach it (e.g. which getFunctions entries to call first). Shown to the AI assistant as part of the workspace context.
Returns
string | null
Set Signature
set aiDescription(
x):void
Defined in: src/widgets/base.ts:307
Parameters
| Parameter | Type |
|---|---|
x | string | null |
Returns
void
Inherited from
align
Get Signature
get align():
boolean
Defined in: src/chem.ts:225
Returns
boolean
Set Signature
set align(
value):void
Defined in: src/chem.ts:226
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
autoResized
Get Signature
get autoResized():
boolean
Defined in: src/chem.ts:197
Returns
boolean
calculating
Get Signature
get calculating():
boolean
Defined in: src/chem.ts:205
Returns
boolean
Set Signature
set calculating(
value):void
Defined in: src/chem.ts:206
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
children
Get Signature
get children():
Widget<any>[]
Defined in: src/widgets/base.ts:328
Parent widget up the DOM tree, or null.
Returns
Widget<any>[]
Inherited from
filterOnChange
Get Signature
get filterOnChange():
boolean
Defined in: src/chem.ts:229
Returns
boolean
Set Signature
set filterOnChange(
value):void
Defined in: src/chem.ts:230
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
filterOptions
Get Signature
get filterOptions():
HTMLElement
Defined in: src/chem.ts:231
Returns
HTMLElement
height
Get Signature
get height():
number
Defined in: src/chem.ts:189
Returns
number
highlight
Get Signature
get highlight():
boolean
Defined in: src/chem.ts:227
Returns
boolean
Set Signature
set highlight(
value):void
Defined in: src/chem.ts:228
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
isResizing
Get Signature
get isResizing():
boolean
Defined in: src/chem.ts:193
Returns
boolean
isSubstructureFilter
Get Signature
get isSubstructureFilter():
boolean
Defined in: src/chem.ts:216
Returns
boolean
Set Signature
set isSubstructureFilter(
value):void
Defined in: src/chem.ts:217
Parameters
| Parameter | Type |
|---|---|
value | boolean |