A utility class for smart coordinates
Methods | ||
---|---|---|
public
static
|
parse($c): array
|
# |
public
static
|
evaluate(string $coord, int $dim, int $sec_dim = null): int
|
# |
public
static
|
fix(mixed $value, int $dim, int $sec_dim = null): int
|
# |
Properties | |||
---|---|---|---|
protected
static
|
|
$coord_align = ['left', 'center', 'right', 'top', 'middle', 'bottom']
|
# |
protected
static
|
|
$coord_numeric = ['[0-9]+', '[0-9]+\.[0-9]+', '[0-9]+%', '[0-9]+\.[0-9]+%']
|
# |