mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +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];
|
||
|
}
|
||
|
}
|