Skip to content

Commit 017b174

Browse files
committed
Added rotation and renamed elementRef
Added rotation to DataNode, State, Label, and Shape. Made rotation optional as per issue #81 . Renamed DataNode elementRef to aliasRef as per issue #82.
1 parent b2d52bc commit 017b174

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

GPML2021/GPML2021.xsd

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
DataNode properties in the order to be written:
438438
- elementId, textLabel, type, groupRef, elementRef
439439
- Xref, States
440-
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes)
440+
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes, rotation)
441441
- CommentGroup (Comment, Property, AnnotationRef, CitationRef, EvidenceRef)
442442
-->
443443
<xsd:element name="DataNodes">
@@ -465,6 +465,11 @@
465465
<xsd:attributeGroup ref="gpml:RectAttributes"/>
466466
<xsd:attributeGroup ref="gpml:FontAttributes"/>
467467
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
468+
<xsd:attribute name="rotation" type="xsd:float" use="optional">
469+
<xsd:annotation>
470+
<xsd:documentation>A float value (rotation in radians).</xsd:documentation>
471+
</xsd:annotation>
472+
</xsd:attribute>
468473
</xsd:complexType>
469474
</xsd:element>
470475
<!-- End Graphics related attributes-->
@@ -513,9 +518,9 @@
513518
<xsd:documentation>When a pathway element is part of a gpml:Group, groupRef refers to the elementId of the parent group.</xsd:documentation>
514519
</xsd:annotation>
515520
</xsd:attribute>
516-
<xsd:attribute name="elementRef" type="xsd:IDREF" use="optional">
521+
<xsd:attribute name="aliasRef" type="xsd:IDREF" use="optional">
517522
<xsd:annotation>
518-
<xsd:documentation>An elementRef indicates a child/parent relationship between objects. The elementRef of the child refers to the elementId of the parent. A DataNode can have type "Alias" and refer to a gpml:Group.</xsd:documentation>
523+
<xsd:documentation>An aliasRef indicates a child/parent relationship between objects. A DataNode can have type "Alias" and refer to a gpml:Group.</xsd:documentation>
519524
</xsd:annotation>
520525
</xsd:attribute>
521526
</xsd:complexType>
@@ -534,7 +539,7 @@
534539
State properties in the order to be written:
535540
- elementId, textLabel, type
536541
- Xref
537-
- Graphics (relX, relY, width, height, FontAttributes, ShapeStyleAttributes)
542+
- Graphics (relX, relY, width, height, FontAttributes, ShapeStyleAttributes, rotation)
538543
- CommentGroup (Comment, Property, AnnotationRef, CitationRef, EvidenceRef)
539544
-->
540545
<xsd:element name="States">
@@ -576,6 +581,11 @@
576581
</xsd:attribute>
577582
<xsd:attributeGroup ref="gpml:FontAttributes"/>
578583
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
584+
<xsd:attribute name="rotation" type="xsd:float" use="optional">
585+
<xsd:annotation>
586+
<xsd:documentation>A float value (rotation in radians).</xsd:documentation>
587+
</xsd:annotation>
588+
</xsd:attribute>
579589
</xsd:complexType>
580590
</xsd:element>
581591
<!-- End Graphics related attributes-->
@@ -745,7 +755,7 @@
745755
746756
Label properties in the order to be written:
747757
- elementId, textLabel, groupRef, href
748-
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes)
758+
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes, rotation)
749759
- CommentGroup (Comment, Property, AnnotationRef, CitationRef, EvidenceRef)
750760
-->
751761
<xsd:element name="Labels">
@@ -767,6 +777,11 @@
767777
<xsd:attributeGroup ref="gpml:RectAttributes"/>
768778
<xsd:attributeGroup ref="gpml:FontAttributes"/>
769779
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
780+
<xsd:attribute name="rotation" type="xsd:float" use="optional">
781+
<xsd:annotation>
782+
<xsd:documentation>A float value (rotation in radians).</xsd:documentation>
783+
</xsd:annotation>
784+
</xsd:attribute>
770785
</xsd:complexType>
771786
</xsd:element>
772787
<!-- End Graphics related attributes-->
@@ -806,7 +821,7 @@
806821
807822
Shape properties in the order to be written:
808823
- elementId, textLabel, groupRef
809-
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes), rotation
824+
- Graphics (RectAttributes, FontAttributes, ShapeStyleAttributes, rotation)
810825
- CommentGroup (Comment, Property, AnnotationRef, CitationRef, EvidenceRef)
811826
-->
812827
<xsd:element name="Shapes">
@@ -828,7 +843,7 @@
828843
<xsd:attributeGroup ref="gpml:RectAttributes"/>
829844
<xsd:attributeGroup ref="gpml:FontAttributes"/>
830845
<xsd:attributeGroup ref="gpml:ShapeStyleAttributes"/>
831-
<xsd:attribute name="rotation" type="xsd:float" default="0.0">
846+
<xsd:attribute name="rotation" type="xsd:float" use="optional">
832847
<xsd:annotation>
833848
<xsd:documentation>A float value (rotation in radians).</xsd:documentation>
834849
</xsd:annotation>

0 commit comments

Comments
 (0)