Skip to content

Improvements to the plotly3D.pl macro.#1

Merged
somiaj merged 1 commit intosomiaj:plotly3Dfrom
drgrice1:plotly3D-improvements
Mar 13, 2023
Merged

Improvements to the plotly3D.pl macro.#1
somiaj merged 1 commit intosomiaj:plotly3Dfrom
drgrice1:plotly3D-improvements

Conversation

@drgrice1
Copy link

There is no need to use the getUniqueName generated id for variable names.

Instead scope those sections properly in the javascript so that static variable names can be used. The only thing the unique id is really needed for is to have a unique html id for the containing div. This makes the generated javascript smaller since that generated id is quite long.

Also fix the funcType 'perl' option.

The funcType 'perl' and funcType 'data' need better documentation.

Also update the package-lock.json file. Something wasn't done right there as running npm install modifies the lock file.

@drgrice1 drgrice1 force-pushed the plotly3D-improvements branch 3 times, most recently from 32086d6 to e14771f Compare March 13, 2023 13:48
…ames.

Instead scope those sections properly in the javascript so that static
variable names can be used.  The only thing the unique id is really
needed for is to have a unique html id for the containing div.  This
makes the generated javascript smaller since that generated id is quite
long.

Also fix the funcType 'perl' option.

The funcType 'perl' and funcType 'data' need better documentation.

Also update the package-lock.json file.  Something wasn't done right
there as running `npm install` modifies the lock file.

Finally, update the loading method in javascript to work for webwork3
and similar rendering techniques where the javascript will be added to
the page after the DOMContentLoaded event has already run.
@drgrice1 drgrice1 force-pushed the plotly3D-improvements branch from e14771f to 259c084 Compare March 13, 2023 13:55
@somiaj somiaj merged commit 75f3cbe into somiaj:plotly3D Mar 13, 2023
@drgrice1 drgrice1 deleted the plotly3D-improvements branch March 13, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants