oms-Labeling/Models/Text.php
Dennis Eichhorn 1fce4936dc
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix version and bugs
2024-05-21 00:09:13 +02:00

54 lines
893 B
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Labeling\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Labeling\Models;
/**
* Shape.
*
* @package Modules\Labeling\Models
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
class Text
{
public int $x = 0;
public int $y = 0;
public int $x2 = 0;
public int $y2 = 0;
public int $size = 11;
public string $font = __DIR__ . '/../../../Resources/fonts/lato/Lato-Regular.ttf';
public string $text = '';
public int $color = 0;
// align (-1 = start, 0 = middle, 1 = end)
public int $alignX = -1;
public int $alignY = -1;
public bool $bold = false;
public bool $underline = false;
public bool $italic = false;
}