Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Constants | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\GLTFHandler; |
| 4 | |
| 5 | final class Constants { |
| 6 | |
| 7 | /** |
| 8 | * @var list<array{magic_word_id: string, name: string, type: string, default: bool|null, attributes: array<string, mixed>}> |
| 9 | */ |
| 10 | public const PARAMS = [ |
| 11 | [ |
| 12 | "magic_word_id" => "img_width", |
| 13 | "name" => "width", |
| 14 | "type" => "string", |
| 15 | "default" => null, |
| 16 | "attributes" => [] |
| 17 | ], |
| 18 | [ |
| 19 | "magic_word_id" => "gltfhandler_animation_name", |
| 20 | "name" => "animation-name", |
| 21 | "type" => "string", |
| 22 | "default" => null, |
| 23 | "attributes" => [] |
| 24 | ], |
| 25 | [ |
| 26 | "magic_word_id" => "gltfhandler_ar", |
| 27 | "name" => "ar", |
| 28 | "type" => "bool", |
| 29 | "default" => false, |
| 30 | "attributes" => [] |
| 31 | ], |
| 32 | [ |
| 33 | "magic_word_id" => "gltfhandler_autoplay", |
| 34 | "name" => "autoplay", |
| 35 | "type" => "bool", |
| 36 | "default" => false, |
| 37 | "attributes" => [] |
| 38 | ], |
| 39 | [ |
| 40 | "magic_word_id" => "gltfhandler_camera_controls", |
| 41 | "name" => "camera-controls", |
| 42 | "type" => "bool", |
| 43 | "default" => true, |
| 44 | "attributes" => [] |
| 45 | ], |
| 46 | [ |
| 47 | "magic_word_id" => "gltfhandler_camera_orbit", |
| 48 | "name" => "camera-orbit", |
| 49 | "type" => "string", |
| 50 | "default" => null, |
| 51 | "attributes" => [] |
| 52 | ], |
| 53 | [ |
| 54 | "magic_word_id" => "gltfhandler_environment", |
| 55 | "name" => "environment", |
| 56 | "type" => "file", |
| 57 | "default" => null, |
| 58 | "attributes" => [ "mv_param" => "environment-image" ] |
| 59 | ], |
| 60 | [ |
| 61 | "magic_word_id" => "gltfhandler_loading", |
| 62 | "name" => "loading", |
| 63 | "type" => "string", |
| 64 | "default" => "eager", |
| 65 | "attributes" => [] |
| 66 | ], |
| 67 | [ |
| 68 | "magic_word_id" => "gltfhandler_max_camera_orbit", |
| 69 | "name" => "max-camera-orbit", |
| 70 | "type" => "string", |
| 71 | "default" => null, |
| 72 | "attributes" => [] |
| 73 | ], |
| 74 | [ |
| 75 | "magic_word_id" => "gltfhandler_poster", |
| 76 | "name" => "poster", |
| 77 | "type" => "file", |
| 78 | "default" => null, |
| 79 | "attributes" => [ "mv_param" => "poster" ] |
| 80 | ], |
| 81 | [ |
| 82 | "magic_word_id" => "gltfhandler_shadow_intensity", |
| 83 | "name" => "shadow-intensity", |
| 84 | "type" => "string", |
| 85 | "default" => 1, |
| 86 | "attributes" => [] |
| 87 | ], |
| 88 | [ |
| 89 | "magic_word_id" => "gltfhandler_skybox", |
| 90 | "name" => "skybox", |
| 91 | "type" => "file", |
| 92 | "default" => null, |
| 93 | "attributes" => [ "mv_param" => "skybox-image" ] |
| 94 | ], |
| 95 | [ |
| 96 | "magic_word_id" => "gltfhandler_skybox_height", |
| 97 | "name" => "skybox-height", |
| 98 | "type" => "string", |
| 99 | "default" => null, |
| 100 | "attributes" => [] |
| 101 | ], |
| 102 | [ |
| 103 | "magic_word_id" => "gltfhandler_touch_action", |
| 104 | "name" => "touch-action", |
| 105 | "type" => "string", |
| 106 | "default" => "pan-y", |
| 107 | "attributes" => [] |
| 108 | ], |
| 109 | ]; |
| 110 | } |