[x3d-public] ECMAScript/TypeScript SAI Plans
John Carlson
yottzumm at gmail.com
Wed Aug 30 22:27:44 PDT 2023
I plan for TESAI (TypeScript/ECMAScript) SAI class hierarchy to have the
following features:
Importer/Exporter interface pattern. Pass a JSON snippet to Importer, then
pass Importer to scenegraph constructors, breaking up the JSON into smaller
and smaller pieces. This should allow for any Importer: XML, JSON, VRML,
etc. JSONImporter will be the first implementation.
Also an Exporter can be passed to scenegraph export methods. An OpenUSD
Exporter is planned.
Reference:
https://www.amazon.com/Holub-Patterns-Learning-Looking-Professionals/dp/159059388X
This doesn’t mean I will ignore SAI X3D creation methods. In particular,
JS scenegraph construction methods in X_ITE and X3DOM will likely be
supported. createX3D…. and import…
This should be fun, and provide adequate encapsulation.
Your thoughts are welcom.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230831/70f14cea/attachment.html>
More information about the x3d-public
mailing list