Skip to content

Additional props for tweaking editor parameters #1

@pranavm716

Description

@pranavm716

Hey,

First off, I want to say thanks to the devs for this fork of jsme-react; it's great that I am able to use it in React 18! I wanted to use some methods to tweak the properties of the editor, like setMolecularAreaScale and setAtomMolecularAreaFontSize. Currently, only the width and height can be passed in as props but it would be nice to have these two as well.

Other properties can be found in the API reference here. The API linked is for the Java version of the applet, but I believe JSME's methods follow the same method signatures. I understand there are a lot of methods here, so maybe there's a way to dynamically pass which specific method you need along with the value instead of hardcoding them as props (?). I'm not primarily a React dev so just throwing ideas out there.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions