| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/speed-calculator", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Speed / Distance / Time Calculator", |
| 7 |
"category": "bkbg-calculators", |
| 8 |
"icon": "car", |
| 9 |
"description": "Solve any part of the Speed / Distance / Time triangle. Enter two values to calculate the third, with unit conversion between km/h, mph, m/s and more.", |
| 10 |
"keywords": [ |
| 11 |
"speed", |
| 12 |
"distance", |
| 13 |
"time", |
| 14 |
"calculator", |
| 15 |
"physics", |
| 16 |
"travel", |
| 17 |
"mph", |
| 18 |
"km/h", |
| 19 |
"velocity" |
| 20 |
], |
| 21 |
"textdomain": "blockenberg", |
| 22 |
"editorScript": "bkbg-speed-calculator-editor", |
| 23 |
"style": "bkbg-speed-calculator-style", |
| 24 |
"viewScript": "bkbg-speed-calculator-frontend", |
| 25 |
"supports": { |
| 26 |
"html": false, |
| 27 |
"anchor": true, |
| 28 |
"className": true, |
| 29 |
"align": [ |
| 30 |
"wide", |
| 31 |
"full" |
| 32 |
] |
| 33 |
}, |
| 34 |
"attributes": { |
| 35 |
"title": { |
| 36 |
"type": "string", |
| 37 |
"default": "Speed / Distance / Time Calculator" |
| 38 |
}, |
| 39 |
"subtitle": { |
| 40 |
"type": "string", |
| 41 |
"default": "Enter any two values to instantly calculate the third" |
| 42 |
}, |
| 43 |
"defaultSolveFor": { |
| 44 |
"type": "string", |
| 45 |
"default": "speed" |
| 46 |
}, |
| 47 |
"defaultSpeedUnit": { |
| 48 |
"type": "string", |
| 49 |
"default": "km/h" |
| 50 |
}, |
| 51 |
"defaultDistUnit": { |
| 52 |
"type": "string", |
| 53 |
"default": "km" |
| 54 |
}, |
| 55 |
"defaultTimeUnit": { |
| 56 |
"type": "string", |
| 57 |
"default": "hours" |
| 58 |
}, |
| 59 |
"showUnitConversions": { |
| 60 |
"type": "boolean", |
| 61 |
"default": true |
| 62 |
}, |
| 63 |
"showFormula": { |
| 64 |
"type": "boolean", |
| 65 |
"default": true |
| 66 |
}, |
| 67 |
"showExamples": { |
| 68 |
"type": "boolean", |
| 69 |
"default": false |
| 70 |
}, |
| 71 |
"accentColor": { |
| 72 |
"type": "string", |
| 73 |
"default": "#3b82f6" |
| 74 |
}, |
| 75 |
"speedColor": { |
| 76 |
"type": "string", |
| 77 |
"default": "#8b5cf6" |
| 78 |
}, |
| 79 |
"distColor": { |
| 80 |
"type": "string", |
| 81 |
"default": "#0ea5e9" |
| 82 |
}, |
| 83 |
"timeColor": { |
| 84 |
"type": "string", |
| 85 |
"default": "#22c55e" |
| 86 |
}, |
| 87 |
"sectionBg": { |
| 88 |
"type": "string", |
| 89 |
"default": "#eff6ff" |
| 90 |
}, |
| 91 |
"cardBg": { |
| 92 |
"type": "string", |
| 93 |
"default": "#ffffff" |
| 94 |
}, |
| 95 |
"inputBg": { |
| 96 |
"type": "string", |
| 97 |
"default": "#f8fafc" |
| 98 |
}, |
| 99 |
"resultBg": { |
| 100 |
"type": "string", |
| 101 |
"default": "#dbeafe" |
| 102 |
}, |
| 103 |
"titleColor": { |
| 104 |
"type": "string", |
| 105 |
"default": "#111827" |
| 106 |
}, |
| 107 |
"subtitleColor": { |
| 108 |
"type": "string", |
| 109 |
"default": "#6b7280" |
| 110 |
}, |
| 111 |
"labelColor": { |
| 112 |
"type": "string", |
| 113 |
"default": "#374151" |
| 114 |
}, |
| 115 |
"titleTypo": { |
| 116 |
"type": "object", |
| 117 |
"default": {} |
| 118 |
}, |
| 119 |
"subtitleTypo": { |
| 120 |
"type": "object", |
| 121 |
"default": {} |
| 122 |
}, |
| 123 |
"contentMaxWidth": { |
| 124 |
"type": "integer", |
| 125 |
"default": 680 |
| 126 |
} |
| 127 |
} |
| 128 |
} |
| 129 |
|