22 #include <emscripten.h>
23 #include <emscripten/val.h>
35 int panelWidth = -1,
int panelHeight = -1,
36 bool noFreetype =
false)
37 :
MolDraw2D(width, height, panelWidth, panelHeight), d_context(context) {
39 initTextDrawer(noFreetype);
48 emscripten::val &d_context;
49 void initDrawing()
override;
50 void initTextDrawer(
bool noFreetype)
override;
void drawLine(const Point2D &cds1, const Point2D &cds2) override
void drawPolygon(const std::vector< Point2D > &cds) override
void drawEllipse(const Point2D &cds1, const Point2D &cds2) override
draw an ellipse
MolDraw2DJS(int width, int height, emscripten::val &context, int panelWidth=-1, int panelHeight=-1, bool noFreetype=false)
void clearDrawing() override
clears the contents of the drawing
MolDraw2D is the base class for doing 2D renderings of molecules.
#define RDKIT_MOLDRAW2D_EXPORT