mirror of
https://github.com/openvk/openvk
synced 2024-11-14 11:09:12 +03:00
15 lines
347 B
PHP
15 lines
347 B
PHP
|
<?php declare(strict_types=1);
|
||
|
namespace openvk\Web\Util\Makima;
|
||
|
|
||
|
class ThumbTile {
|
||
|
public $width;
|
||
|
public $height;
|
||
|
public $rowSpan;
|
||
|
public $colSpan;
|
||
|
|
||
|
function __construct(int $rs, int $cs, float $w, float $h)
|
||
|
{
|
||
|
[$this->width, $this->height, $this->rowSpan, $this->colSpan] = [ceil($w), ceil($h), $rs, $cs];
|
||
|
}
|
||
|
}
|