Skip to content

refactor: RadialMenu.js, function.prototype -> class && polishing && bugfixing - #4

Open
j3nda wants to merge 16 commits into
axln:masterfrom
j3nda:master
Open

refactor: RadialMenu.js, function.prototype -> class && polishing && bugfixing#4
j3nda wants to merge 16 commits into
axln:masterfrom
j3nda:master

Conversation

@j3nda

@j3nda j3nda commented Jul 9, 2023

Copy link
Copy Markdown

i want to re-use this for my radio23 project, so i needed to make it more cleaner than it was. and here are changes, which im using inc.

j3nda added 16 commits July 7, 2023 17:04
=
RadialMenu.defaultValues: {
	ui: {
		classes: {
			menuContainer: "menuHolder", // whole radial-menu container, created dynamically!
			menu: "menu",
			menuCreate: "menu inner", // main menu [{menuCreate} inner]
			menuCreateNested: "menu outer", // nested menu [{menuCreate} outer]
			itemSelected: "selected", // item, which is [selected]
			itemIcon: "icons", // item's icon
			itemSector: "sector", // item, which is active
			itemDummy: "dummy", // item, which is not active
			buttonCenter: "center", // button (close, back) ~ centered!
		},
		icons: {
			back: {title: "Back", icon: "#return"},
			close: {title: "Close", icon: "#close"},
		}
	}
}
=
menu.js:
var menuItems = [
...
    {
        id   : 'drive',
        title: 'Drive',
        icon: '#drive',
        selected: true
    },
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant