38 'horizontal_crosses_value' =>
null,
108 'rotWithShape' =>
null,
141 $this->axisNumber[
'format'] = (string) $format_code;
142 $this->axisNumber[
'source_linked'] = 0;
152 return $this->axisNumber[
'format'];
162 return (
string) $this->axisNumber[
'source_linked'];
179 public function setAxisOptionsProperties($axis_labels, $horizontal_crosses_value =
null, $horizontal_crosses =
null, $axis_orientation =
null, $major_tmt =
null, $minor_tmt =
null, $minimum =
null, $maximum =
null, $major_unit =
null, $minor_unit =
null): void
181 $this->axisOptions[
'axis_labels'] = (string) $axis_labels;
182 ($horizontal_crosses_value !==
null) ? $this->axisOptions[
'horizontal_crosses_value'] = (
string) $horizontal_crosses_value :
null;
183 ($horizontal_crosses !==
null) ? $this->axisOptions[
'horizontal_crosses'] = (
string) $horizontal_crosses :
null;
184 ($axis_orientation !==
null) ? $this->axisOptions[
'orientation'] = (
string) $axis_orientation :
null;
185 ($major_tmt !==
null) ? $this->axisOptions[
'major_tick_mark'] = (
string) $major_tmt :
null;
186 ($minor_tmt !==
null) ? $this->axisOptions[
'minor_tick_mark'] = (
string) $minor_tmt :
null;
187 ($minor_tmt !==
null) ? $this->axisOptions[
'minor_tick_mark'] = (
string) $minor_tmt :
null;
188 ($minimum !==
null) ? $this->axisOptions[
'minimum'] = (
string) $minimum :
null;
189 ($maximum !==
null) ? $this->axisOptions[
'maximum'] = (
string) $maximum :
null;
190 ($major_unit !==
null) ? $this->axisOptions[
'major_unit'] = (
string) $major_unit :
null;
191 ($minor_unit !==
null) ? $this->axisOptions[
'minor_unit'] = (
string) $minor_unit :
null;
203 return $this->axisOptions[$property];
213 $this->axisOptions[
'orientation'] = (string) $orientation;
249 return $this->fillProperties[$property];
261 return $this->lineProperties[$property];
277 public function setLineStyleProperties($line_width =
null, $compound_type =
null, $dash_type =
null, $cap_type =
null, $join_type =
null, $head_arrow_type =
null, $head_arrow_size =
null, $end_arrow_type =
null, $end_arrow_size =
null): void
279 ($line_width !==
null) ? $this->lineStyleProperties[
'width'] = $this->
getExcelPointsWidth((
float) $line_width) :
null;
280 ($compound_type !==
null) ? $this->lineStyleProperties[
'compound'] = (
string) $compound_type :
null;
281 ($dash_type !==
null) ? $this->lineStyleProperties[
'dash'] = (
string) $dash_type :
null;
282 ($cap_type !==
null) ? $this->lineStyleProperties[
'cap'] = (
string) $cap_type :
null;
283 ($join_type !==
null) ? $this->lineStyleProperties[
'join'] = (
string) $join_type :
null;
284 ($head_arrow_type !==
null) ? $this->lineStyleProperties[
'arrow'][
'head'][
'type'] = (
string) $head_arrow_type :
null;
285 ($head_arrow_size !==
null) ? $this->lineStyleProperties[
'arrow'][
'head'][
'size'] = (
string) $head_arrow_size :
null;
286 ($end_arrow_type !==
null) ? $this->lineStyleProperties[
'arrow'][
'end'][
'type'] = (
string) $end_arrow_type :
null;
287 ($end_arrow_size !==
null) ? $this->lineStyleProperties[
'arrow'][
'end'][
'size'] = (
string) $end_arrow_size :
null;
337 public function setShadowProperties($sh_presets, $sh_color_value =
null, $sh_color_type =
null, $sh_color_alpha =
null, $sh_blur =
null, $sh_angle =
null, $sh_distance =
null): void
341 $sh_color_value ?? $this->shadowProperties[
'color'][
'value'],
342 $sh_color_alpha ?? (
int) $this->shadowProperties[
'color'][
'alpha'],
343 $sh_color_type ?? $this->shadowProperties[
'color'][
'type']
345 ->setShadowBlur($sh_blur)
346 ->setShadowAngle($sh_angle)
347 ->setShadowDistance($sh_distance);
359 $this->shadowProperties[
'presets'] = $shadow_presets;
374 $base_reference = $reference;
375 foreach ($properties_map as $property_key => $property_val) {
376 if (is_array($property_val)) {
377 if ($reference ===
null) {
378 $reference = &$this->shadowProperties[$property_key];
380 $reference = &$reference[$property_key];
384 if ($base_reference ===
null) {
385 $this->shadowProperties[$property_key] = $property_val;
387 $reference[$property_key] = $property_val;
420 if ($blur !==
null) {
452 if ($distance !==
null) {
483 $color_value ?? $this->glowProperties[
'color'][
'value'],
484 $color_alpha ?? (
int) $this->glowProperties[
'color'][
'alpha'],
485 $color_type ?? $this->glowProperties[
'color'][
'type']
510 if (
$size !==
null) {
540 if (
$size !==
null) {
552 return $this->softEdges[
'size'];
An exception for terminatinating execution or to throw for unit testing.
setGlowSize($size)
Set Glow Color.
setLineStyleProperties($line_width=null, $compound_type=null, $dash_type=null, $cap_type=null, $join_type=null, $head_arrow_type=null, $head_arrow_size=null, $end_arrow_type=null, $end_arrow_size=null)
Set Line Style Properties.
setSoftEdges($size)
Set Soft Edges Size.
getAxisOptionsProperty($property)
Get Axis Options Property.
setAxisOptionsProperties($axis_labels, $horizontal_crosses_value=null, $horizontal_crosses=null, $axis_orientation=null, $major_tmt=null, $minor_tmt=null, $minimum=null, $maximum=null, $major_unit=null, $minor_unit=null)
Set Axis Options Properties.
setShadowColor($color, $alpha, $type)
Set Shadow Color.
setGlowProperties($size, $color_value=null, $color_alpha=null, $color_type=null)
Set Glow Properties.
getGlowProperty($property)
Get Glow Property.
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties from Mapped Values.
setShadowDistance($distance)
Set Shadow Distance.
setGlowColor($color, $alpha, $type)
Set Glow Color.
setLineParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Line Property.
getAxisNumberFormat()
Get Axis Number Format Data Type.
getSoftEdgesSize()
Get Soft Edges Size.
getLineStyleArrowWidth($arrow)
Get Line Style Arrow Excel Width.
setAxisNumberProperties($format_code)
Get Series Data Type.
setShadowProperties($sh_presets, $sh_color_value=null, $sh_color_type=null, $sh_color_alpha=null, $sh_blur=null, $sh_angle=null, $sh_distance=null)
Set Shadow Properties.
getLineProperty($property)
Get Line Property.
getAxisNumberSourceLinked()
Get Axis Number Source Linked.
setAxisOrientation($orientation)
Set Axis Orientation Property.
getLineStyleArrowLength($arrow)
Get Line Style Arrow Excel Length.
getShadowProperty($elements)
Get Shadow Property.
setShadowPresetsProperties($shadow_presets)
Set Shadow Color.
getLineStyleProperty($elements)
Get Line Style Property.
getFillProperty($property)
Get Fill Property.
setFillParameters($color, $alpha=0, $type=self::EXCEL_COLOR_TYPE_ARGB)
Set Fill Property.
setShadowAngle($angle)
Set Shadow Angle.
setShadowBlur($blur)
Set Shadow Blur.
const AXIS_LABELS_NEXT_TO
const SHADOW_PRESETS_NOSHADOW
const LINE_STYLE_ARROW_TYPE_NOARROW
getArrayElementsValue($properties, $elements)
getShadowPresetsMap($shadow_presets_option)
const LINE_STYLE_CAP_FLAT
getLineStyleArrowSize($array_selector, $array_kay_selector)
const LINE_STYLE_ARROW_SIZE_8
const HORIZONTAL_CROSSES_AUTOZERO
getExcelPointsAngle($angle)
const EXCEL_COLOR_TYPE_STANDARD
setColorProperties($color, $alpha, $type)
const FORMAT_CODE_GENERAL
const LINE_STYLE_COMPOUND_SIMPLE
const LINE_STYLE_DASH_SOLID
const LINE_STYLE_JOIN_BEVEL
const EXCEL_COLOR_TYPE_ARGB
getExcelPointsWidth($width)
const LINE_STYLE_ARROW_SIZE_5