25 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
31 'compound' => self::LINE_STYLE_COMPOUND_SIMPLE,
32 'dash' => self::LINE_STYLE_DASH_SOLID,
33 'cap' => self::LINE_STYLE_CAP_FLAT,
34 'join' => self::LINE_STYLE_JOIN_BEVEL,
37 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
38 'size' => self::LINE_STYLE_ARROW_SIZE_5,
41 'type' => self::LINE_STYLE_ARROW_TYPE_NOARROW,
42 'size' => self::LINE_STYLE_ARROW_SIZE_8,
49 'presets' => self::SHADOW_PRESETS_NOSHADOW,
52 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
65 'rotWithShape' => null,
71 'type' => self::EXCEL_COLOR_TYPE_STANDARD,
98 $this->objectState =
true;
133 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
136 ($line_width !== null)
137 ? $this->lineProperties[
'style'][
'width'] = $this->
getExcelPointsWidth((
float) $line_width)
139 ($compound_type !== null)
140 ? $this->lineProperties[
'style'][
'compound'] = (
string) $compound_type
142 ($dash_type !== null)
143 ? $this->lineProperties[
'style'][
'dash'] = (
string) $dash_type
146 ? $this->lineProperties[
'style'][
'cap'] = (
string) $cap_type
148 ($join_type !== null)
149 ? $this->lineProperties[
'style'][
'join'] = (
string) $join_type
151 ($head_arrow_type !== null)
152 ? $this->lineProperties[
'style'][
'arrow'][
'head'][
'type'] = (
string) $head_arrow_type
154 ($head_arrow_size !== null)
155 ? $this->lineProperties[
'style'][
'arrow'][
'head'][
'size'] = (
string) $head_arrow_size
157 ($end_arrow_type !== null)
158 ? $this->lineProperties[
'style'][
'arrow'][
'end'][
'type'] = (
string) $end_arrow_type
160 ($end_arrow_size !== null)
161 ? $this->lineProperties[
'style'][
'arrow'][
'end'][
'size'] = (
string) $end_arrow_size
174 return $this->lineProperties[
'color'][$parameter];
202 ->setGlowColor($color_value, $color_alpha, $color_type);
214 return $this->glowProperties[
'color'][$property];
224 return $this->glowProperties[
'size'];
252 if ($color !== null) {
253 $this->glowProperties[
'color'][
'value'] = (string) $color;
255 if ($alpha !== null) {
256 $this->glowProperties[
'color'][
'alpha'] = $this->
getTrueAlpha((
int) $alpha);
258 if (
$type !== null) {
259 $this->glowProperties[
'color'][
'type'] = (string)
$type;
275 return $this->
getLineStyleArrowSize($this->lineProperties[
'style'][
'arrow'][$arrow_selector][
'size'], $property_selector);
289 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
292 ->setShadowPresetsProperties((
int) $sh_presets)
294 $sh_color_value ?? $this->shadowProperties[
'color'][
'value'],
295 $sh_color_alpha === null ? (
int) $this->shadowProperties[
'color'][
'alpha'] : $this->
getTrueAlpha($sh_color_alpha),
296 $sh_color_type ?? $this->shadowProperties[
'color'][
'type']
298 ->setShadowBlur($sh_blur)
299 ->setShadowAngle($sh_angle)
300 ->setShadowDistance($sh_distance);
312 $this->shadowProperties[
'presets'] = $shadow_presets;
327 $base_reference = $reference;
328 foreach ($properties_map as $property_key => $property_val) {
329 if (is_array($property_val)) {
330 if ($reference === null) {
331 $reference = &$this->shadowProperties[$property_key];
333 $reference = &$reference[$property_key];
337 if ($base_reference === null) {
338 $this->shadowProperties[$property_key] = $property_val;
340 $reference[$property_key] = $property_val;
359 if ($color !== null) {
360 $this->shadowProperties[
'color'][
'value'] = (string) $color;
362 if ($alpha !== null) {
363 $this->shadowProperties[
'color'][
'alpha'] = $this->
getTrueAlpha((
int) $alpha);
365 if (
$type !== null) {
366 $this->shadowProperties[
'color'][
'type'] = (string)
$type;
381 if ($blur !== null) {
413 if ($distance !== null) {
439 if (
$size !== null) {
452 return $this->softEdges[
'size'];
getShadowPresetsMap($shadow_presets_option)
getLineStyleArrowSize($array_selector, $array_kay_selector)
getShadowProperty($elements)
Get Shadow Property.
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.
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 Color Properties.
setGlowSize($size)
Set Glow Size.
setShadowDistance($distance)
Set Shadow Distance.
setShadowProperiesMapValues(array $properties_map, &$reference=null)
Set Shadow Properties Values.
getLineStyleProperty($elements)
Get Line Style Property.
getObjectState()
Get Object State.
getLineColorProperty($parameter)
Get Line Color Property.
getSoftEdgesSize()
Get Soft Edges Size.
setLineColorProperties($value, $alpha=0, $type=self::EXCEL_COLOR_TYPE_STANDARD)
Set Line Color Properties.
getLineStyleArrowParameters($arrow_selector, $property_selector)
Get Line Style Arrow Parameters.
setShadowAngle($angle)
Set Shadow Angle.
setShadowColor($color, $alpha, $type)
Set Shadow Color.
setShadowPresetsProperties($shadow_presets)
Set Shadow Presets Properties.
setGlowProperties($size, $color_value=null, $color_alpha=null, $color_type=null)
Set Glow Properties.
getExcelPointsWidth($width)
activateObject()
Change Object State to True.
setGlowColor($color, $alpha, $type)
Set Glow Color.
getExcelPointsAngle($angle)
getGlowSize()
Get Glow Size.
getGlowColor($property)
Get Glow Color Property.
setSoftEdgesSize($size)
Set Soft Edges Size.
setShadowBlur($blur)
Set Shadow Blur.
getArrayElementsValue($properties, $elements)
setColorProperties($color, $alpha, $type)