orientation attribute is legacy, not required -- toXml() no longer writes it (ref #816)

ispyisail
2026-09-08 22:28:39 +12:00
parent 538c810b4d
commit 1f2c846537
+3 -3
@@ -11,12 +11,12 @@
* hotspot_y
* The element hooking point designates the point hooked to the mouse cursor during a drag'n drop of the element. They must be full coordinates. “Hotspot_x” is the abscissa, “hotspot_y” is the ordinate. The upper left corner of the rectangle delimiting the element is considered to be the origin. If the values ​​provided exceed the bounding rectangle, they will be limited to the size of the element. The hotspot is also the center of rotation used when changing the orientation of the element.
![](https://qelectrotech.org/wiki_new/_media/doc/schema_xml_element1.png)
## orientation
* Element orientation **!!!(we keep the orientation for compatibility with previous version of qet (fixt on "dyyy"))**
## orientation (removed)
* **This attribute no longer exists.** Current `.elmt` files (and `ElementScene::toXml()` in `sources/editor/elementscene.cpp`) do not write an `orientation` attribute at all -- it is documented here only because old element files from before the change below may still carry it, fixed at `"dyyy"` for backward compatibility. Do not add it to new elements.
see git id [971ce1facb08092c68cc9c72df1912e786bc8018](https://github.com/De-Backer/qelectrotech-source-mirror/commit/971ce1facb08092c68cc9c72df1912e786bc8018#diff-6792b89817cb0470db21f7f9df2730fe)
### info of version 0.3
### info of version 0.3 (historical -- see above)
It is then necessary to define what are the possible orientations of the element. Element orientation is used when laying conductors but also to prevent the user from turning an element in a direction that would not make sense. The orientation attribute is defined by a series of 4 characters, each character defining the behavior for an orientation.
+ 1 st character: North
+ 2 nd character: East