Files
ox_lib/web/src/features/dev/debug/radial.ts
T
NotMangoandLuke 80267eb1f0 feat(web/radial): radial menu text scaling (#639)
* radial menu improvements

* addressing comments from Luke

* removing uneeded comments

* style(web/radial): remove icon scaling, increase number of items on page

* style(web/radial): cursor pointer, remove stroke, container overflow

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2024-09-12 14:40:59 +02:00

22 lines
782 B
TypeScript

import { debugData } from '../../../utils/debugData';
import type { RadialMenuItem } from '../../../typings';
export const debugRadial = () => {
debugData<{ items: RadialMenuItem[]; sub?: boolean }>([
{
action: 'openRadialMenu',
data: {
items: [
{ icon: 'palette', label: 'Paint' },
{ iconWidth: 35, iconHeight: 35, icon: 'https://icon-library.com/images/white-icon-png/white-icon-png-18.jpg', label: 'External icon'},
{ icon: 'warehouse', label: 'Garage' },
{ icon: 'palette', label: 'Quite Long Text' },
{ icon: 'palette', label: 'Fahrzeuginteraktionen' },
{ icon: 'palette', label: 'Fahrzeuginteraktionen' },
{ icon: 'palette', label: 'Paint' },
],
},
},
]);
};