-
Notifications
You must be signed in to change notification settings - Fork 1
/
vendor.php.stub
73 lines (65 loc) · 2.06 KB
/
vendor.php.stub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace App\Services\FluxIcons\Vendors;
use Ympact\FluxIcons\Types\SvgPath;
use Illuminate\Support\Collection;
class VendorName{
/**
* Transform SVG Paths of the icon
* @param string $variant (`solid` or `outline`)
* @param string $iconName base name of the icon
* @param Collection<SvgPath> $svgPaths
*/
function TransformSvgPath (string $variant, string $iconName, Collection $svgPaths): Collection
{
// Your transformation logic here
}
/**
* Adjust the stroke width of the outline icon
* @param string $iconName base name of the icon
* @param float $defaultStrokeWidth 1.5 or the default set in config option `default_stroke_wdith`
* @param Collection<SvgPath> $svgPaths
* @return int|float
*/
function changeStrokeWidth(string $iconName, int|float $defaultStrokeWidth, Collection $svgPaths): int|float
{
// logic to determine stroke width
}
/**
* Determine the correct suffix for the solid icon
* @param int $size size of the resource icon
* @return string
*/
public static function sourceSolidPrefix(int $size): string
{
// your logic here
}
/**
* Determine the correct suffix for the solid icon
* @param int $size size of the resource icon
* @return string
*/
public static function sourceSolidSuffix(int $size): string
{
// your logic here
}
/**
* A filter callback to determine if a file should be processed as outline icon.
* Optionally this callback can adjust the $icons array.
* @param string $file
* @param array|null $icons that are requested to be build
* @return boolean
*/
public static function outlineFilter(string $file, array|null &$icons): bool
{
// your logic here
}
/**
* A filter callback to determine if a file should be processed as solid icon
* @param $size size of the resource icon
* @return boolean
*/
public static function solidFilter($file): bool
{
// your logic here
}
}