Lines Matching full:zoom
24 protected string $zoom = ''; // optional scaling factor variable in syntax_plugin_bpmnio_bpmnio
70 $this->zoom = $this->normalizeZoom($attrs['zoom'] ?? null) ?? '';
72 return [$state, $this->type, '', $pos, '', false, $this->zoom];
82 … return [$state, $this->type, base64_encode($match), $posStart, $posEnd, $inline, $this->zoom];
87 $this->zoom = '';
103 private function normalizeZoom($zoom): ?string argument
105 if ($zoom === null || $zoom === '') {
109 if (!is_numeric($zoom)) {
113 $zoom = (float) $zoom;
114 if ($zoom <= 0) {
118 return rtrim(rtrim(number_format($zoom, 4, '.', ''), '0'), '.');
140 [$state, $type, $match, $posStart, $posEnd, $inline, $zoom] = array_pad($data, 7, '');
189 $zoomAttr = $zoom !== '' ? " data-zoom=\"{$zoom}\"" : '';