Completed
Branch master (3d6c5c)
by Edgar
03:06
created
example/gradient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 require_once __DIR__ . '/../vendor/autoload.php';
10 10
 
11
-$style = ['stroke' => 'lightgray', 'stroke-width' => 0.5, 'rx' => 3, 'ry' => 3,];
11
+$style = ['stroke' => 'lightgray', 'stroke-width' => 0.5, 'rx' => 3, 'ry' => 3, ];
12 12
 $colors = ['#1D4350', '#A43931'];
13 13
 
14 14
 $svg = new SVG(800, 800);
Please login to merge, or discard this patch.
example/blend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 $defs = new Defs($svg);
23 23
 
24 24
 $linearGradient = UniformGradient::uniformGradient($defs, ['#000000', '#ffffff', '#ff0000', '#808080'], null);
25
-KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 100, 'y1' => 0, 'x2' => 300, 'y2' => 0,]);
25
+KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 100, 'y1' => 0, 'x2' => 300, 'y2' => 0, ]);
26 26
 
27 27
 
28 28
 $defs->append($linearGradient);
Please login to merge, or discard this patch.
example/shapes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $rect->ry = 5;
21 21
 $rect->stroke = 'darkgreen';
22 22
 $rect->fill = 'limegreen';
23
-$rect->strokeWidth = 1.5;  // In this particular case strokeWidth will be converted into stroke-width.
23
+$rect->strokeWidth = 1.5; // In this particular case strokeWidth will be converted into stroke-width.
24 24
 
25 25
 // Or use apply method.
26 26
 $rect->apply(['stroke' => 'darkgreen', 'fill' => 'limegreen', 'stroke-width' => 1.5]);
Please login to merge, or discard this patch.
example/colorMatrix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 $defs = new Defs($svg);
21 21
 
22 22
 $linearGradient = UniformGradient::uniformGradient($defs, ['#ff00ff', '#88ff88', '#2020ff', '#d00000'], null);
23
-KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 0, 'y1' => 0, 'x2' => $svg->getElement()->getAttribute('width'), 'y2' => 0,]);
23
+KeyValueWriter::apply($linearGradient->getElement(), ['gradientUnits' => 'userSpaceOnUse', 'x1' => 0, 'y1' => 0, 'x2' => $svg->getElement()->getAttribute('width'), 'y2' => 0, ]);
24 24
 
25 25
 $defs->append($linearGradient);
26 26
 
Please login to merge, or discard this patch.
example/motion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 $path = new Path($svg, 100, 250);
26 26
 $path->id = 'path1';
27
-$path->curveTo(100,50, 400,50, 400,250);
27
+$path->curveTo(100, 50, 400, 50, 400, 250);
28 28
 $path->fill = "none";
29 29
 $path->stroke = "blue";
30 30
 $path->strokeWidth = 7.06;
Please login to merge, or discard this patch.
example/transform.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
 $transform->to = "360 75 75";
21 21
 $transform->dur = "10s";
22 22
 $transform->begin = "0s; 5s; 9s; 17s;";
23
-$transform->end="2s; 8s; 15s; 25s;";
24
-$transform->fill="freeze";
25
-$transform->restart="whenNotActive";
23
+$transform->end = "2s; 8s; 15s; 25s;";
24
+$transform->fill = "freeze";
25
+$transform->restart = "whenNotActive";
26 26
 
27 27
 $rect->animate($transform);
28 28
 
Please login to merge, or discard this patch.
example/set.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 $transform->begin = "0s";
25 25
 $transform->fill = "freeze";
26 26
 $transform->repeatCount = "indefinite";
27
-$transform->restart="whenNotActive";
27
+$transform->restart = "whenNotActive";
28 28
 
29 29
 $rect->animate($transform);
30 30
 
Please login to merge, or discard this patch.