Lines Matching refs:attributes
59 $attributes = array();
60 foreach($dom->documentElement->attributes as $name => $attr) {
61 $attributes[$name] = $attr->value;
63 return $attributes;
110 $attributes = $this->parseAttributes($m[1]);
112 $width = $attributes['width'];
113 $height = $attributes['height'];
117 list(, , $width, $height) = explode(' ', $attributes['viewbox']);
130 if(isset($attributes['viewbox'])) unset($attributes['viewbox']);
131 if(isset($attributes['preserveaspectratio'])) unset($attributes['preserveaspectratio']);
133 $attributes['width'] = '100%';
134 $attributes['height'] = '100%';
135 $attributes['viewBox'] = "0 0 $width $height";
136 $attributes['preserveAspectRatio'] = 'xMidYMid slice';
138 $svg = '<svg ' . buildAttributes($attributes) . '>';