-
Notifications
You must be signed in to change notification settings - Fork 11
V2 API Changes #66
V2 API Changes #66
Conversation
Added dependency on onml library, removed unnecessary dependencies
|
There's nothing trival about the rework of the IO library, and it is nothing but tedious. I have complete a first pass on the AMF serialization. Please review for input and output appropriateness, i.e. parameter values and return values. There will be some later changes due to the V2 CSG API, which is still in progress. Please let me know if you approve or disapprove. I will touch each of the serializers if the changes align with V2 CSG, and V2 applications. |
|
A few questions about the AMF serializer changes...
|
|
@z3dev a good start , perhaps a bit early
|
|
I’ll revert the version numbers to the same as the current releases. Thanks. Good point on the require(). Probably CSG is not required, just isCSG() |
|
you still need to import |
Corrected offset to positive coordinates
Adjusted expected results for correct offset
Changed internal logic to use onml library
|
@drom will appreciate these changes. AMF, SVG, and X3D serializer() functions are now based on the onml library. thanks much! This eliminates the XMLDOM library forever!!! |
|
STL serialize has been reworked to V2 API, and support the serilization of multiple CSGs to a single STL stream. Tests added as well. Works just fine. @kaosat-dev This may be a good time to move the new UI to use these changes for V2 API. At this point, the only changes are to the order of parameters to serialize(), which should be easy to change. |
|
In adddition, the UI can pass any combination of objects to the serializers. Only convertible objects are serialized. No more need for union or funny conversions from CAG to CSG, etc. |
Corrected offset to positive coordinates
Adjusted expected results for correct offset
Changed internal logic to use onml library
…o V2-Changes-and-Enhancements
* changed api slightly to only accept single or arrays of objects (ie no more serialize(options, obj1, obj2), but only serialize(opts, [obj1, obj2]) * added support for options less calls to the various serialize() functions * added arrays helper module * cleanups & tweaks
These changes move the serialize() functions to V2 API ready. The new API is...
serialize (options, ...objects)
In addition, each of the serializers evaluate each object, and only serialize appropriate objects, i.e. CSG and / or CAG.
These changes are now ready for integration into UI for testing.
Tasks
All tests both old and new pass.