canvasMol()
canvasMol(
x
,y
,w
,h
,canvas
,molString
,scaffoldMolString
,options
):Promise
<void
>
Renders a molecule to canvas (using RdKit) TODO: should NOT be async See example:
Parameters
Parameter | Type | Default value |
---|---|---|
x | number | undefined |
y | number | undefined |
w | number | undefined |
h | number | undefined |
canvas | Object | undefined |
molString | string | undefined |
scaffoldMolString | null | string | null |
options | object | undefined |
options.normalizeDepiction | boolean | true |
options.straightenDepiction | boolean | true |
Returns
Promise
<void
>