Re: Export to HTML5 plug-in

by Puybaret » Tue Dec 13, 2016 6:17 pm

Hello everybody,

Here's the new versions 1.2 of Export to HTML5 and Export to XML/OBJ plug-ins.
Both plug-ins are now based on the management of the new XML entry that was added to .sh3d files in Sweet Home 3D 5.3. The JavaScript part of the Export to HTML5 plug-in now supports pinch for zoom under Android and Windows, and was optimized to draw 3D lines faster.

To let the XML entry generated by Export to XML/OBJ plug-in share the same DTD as the [font=courier new]Home.xml[/font] entry in .sh3d files, its XML format had to evolve a little to fix some typos and other small problems:
- [font=courier new]logitude[/font] attribute of [font=courier new]<compass>[/font] element was corrected as [font=courier new]longitude[/font]
- [font=courier new]nameVisible[/font] attribute of [font=courier new]<room>[/font] element was renamed as [font=courier new]areaVisible[/font]
- [font=courier new]size[/font] attribute of [font=courier new]<textStyle>[/font] element was renamed as [font=courier new]fontSize[/font]
- [font=courier new]<Text>[/font] element was renamed as [font=courier new]<text>[/font] with lowercase letters
- the default value of [font=courier new]wallsAlpha[/font] attribute of [font=courier new]<environment>[/font] element is now 0 instead of 1
- the default value of [font=courier new]thickness[/font] attribute of [font=courier new]<polyline>[/font] element is now 1 instead of 0.
I sincerely hope these changes won't bother you too much. A few attributes were missing too but that won't change the way you could have already use the XML files generated by the plug-in. The properties stored in HomeObject instances were also saved in [font=courier new]<property>[/font] elements, and read in JavaScript if needed. Finally, the attributes named [font=courier new]structure[/font] and [font=courier new]exportFlags[/font] are the only additional attributes in the [font=courier new]<home>[/font] element written by Export to XML/OBJ plug-in.

Hope you'll enjoy these improvements [:)]