Skip to content

Commit 898663f

Browse files
authored
Merge pull request #363 from Progi1984/develop
#356 : PowerPoint2007 Writer : Implement visibility for axis (Fix for…
2 parents 35f1155 + 2465f99 commit 898663f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function writeChart(Chart $chart)
108108

109109
// c:depthPercent
110110
$objWriter->startElement('c:depthPercent');
111-
$objWriter->writeAttribute('val', $chart->getView3D()->getDepthPercent() . '%');
111+
$objWriter->writeAttribute('val', $chart->getView3D()->getDepthPercent());
112112
$objWriter->endElement();
113113

114114
// c:rAngAx

tests/resources/schema/ooxml/dml-chart.xsd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,19 @@
214214
<xsd:attribute name="val" type="ST_RotY" default="0"/>
215215
</xsd:complexType>
216216
<xsd:simpleType name="ST_DepthPercent">
217-
<xsd:union memberTypes="ST_DepthPercentWithSymbol"/>
217+
<xsd:union memberTypes="ST_DepthPercentWithSymbol ST_DepthPercentUShort"/>
218218
</xsd:simpleType>
219219
<xsd:simpleType name="ST_DepthPercentWithSymbol">
220220
<xsd:restriction base="xsd:string">
221221
<xsd:pattern value="0*(([2-9][0-9])|([1-9][0-9][0-9])|(1[0-9][0-9][0-9])|2000)%"/>
222222
</xsd:restriction>
223223
</xsd:simpleType>
224+
<xsd:simpleType name="ST_DepthPercentUShort">
225+
<xsd:restriction base="xsd:unsignedShort">
226+
<xsd:minInclusive value="20"/>
227+
<xsd:maxInclusive value="2000"/>
228+
</xsd:restriction>
229+
</xsd:simpleType>
224230
<xsd:complexType name="CT_DepthPercent">
225231
<xsd:attribute name="val" type="ST_DepthPercent" default="100%"/>
226232
</xsd:complexType>

0 commit comments

Comments
 (0)