1 | <?php |
||
29 | class CanvasComponent extends ComponentAbstract implements CanvasCMPTIF |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * Initialize Component |
||
34 | * |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 1 | public function initializeComponent(): bool |
|
46 | |||
47 | /** |
||
48 | * Canvas Selector |
||
49 | * |
||
50 | * Selector to a canvas element that exists on the page. |
||
51 | * |
||
52 | * @param null|string $active |
||
53 | * @return CanvasCMPTIF |
||
54 | */ |
||
55 | 1 | public function canvas(string $active = null): CanvasCMPTIF |
|
60 | |||
61 | /** |
||
62 | * Canvas height |
||
63 | * |
||
64 | * Height of the injected canvas, in percentage. |
||
65 | * |
||
66 | * @param int|float $height |
||
67 | * @return CanvasCMPTIF |
||
68 | */ |
||
69 | 1 | public function height(float $height = 100): CanvasCMPTIF |
|
74 | |||
75 | /** |
||
76 | * Canvas width |
||
77 | * |
||
78 | * Height of the injected canvas, in percentage. |
||
79 | * |
||
80 | * @param int|float $width |
||
81 | * @return CanvasCMPTIF |
||
82 | */ |
||
83 | 1 | public function width(float $width = 100): CanvasCMPTIF |
|
88 | } |