Faey
TTyphonJS
•Created by Faey on 9/19/2023 in #typhonjs-runtime
Funky interaction with fokus management
TJS's Focus Management is creating fun issues for me again. focusKeep = true causes my drag and drop sortable list to break (@jhubbardsf/svelte-sortablejs) but focusKeep = false causes my dropdown menu component to break (svelte-select). I have now defaulted to focusAuto = false because I do not have the energy to fix either of them on my own right now. I think having at least a foundry-ish dropdown menu might be a fun idea for a svelte-standard component though.
7 replies
TTyphonJS
•Created by Faey on 4/6/2023 in #typhonjs-runtime
Dropdowns are not mouse-interactable inside ApplicationShell
I can't click on the entries created by either Svelecte or svelte-select if that dropdown is inside an ApplicationShell
17 replies
TTyphonJS
•Created by Faey on 2/28/2023 in #typhonjs-runtime
Sidebar Tab Application
I have, after diving deep into the Foundry Code, figured out how to actually add new Sidebar tabs.
it's a two step process of sorts.
You need to add the actual button to reveal the Sidebar Tab, as well as actually provide the SidebarTab Application.
Only ways to add the Button is either wrap the getData() method on Sidebar, if you already use libWrapper this is the cleaner method. Alternatively you can just sort of inject the HTML for the button with jQuery.
The Tab itself is actually the easier part. Because the canonical way is already just at the end of the SidebarTab constructor.
And then the Sidebar takes care of rendering and stuff.
However, the SidebarTab has a very specific api that the Sidebar Application expects to exist. As such, the Application templates in TRL are currently insufficient to just make new SidebarTabs on their own
62 replies
TTyphonJS
•Created by Faey on 2/28/2023 in #typhonjs-runtime
Svelte error when instantiating a component that wasn't bundled in the same module
as discussed in the lounge, you can find the load point here: https://github.com/FaeyUmbrea/obs-utils/blob/main/src/svelte/OverlayRenderer.svelte
Ignore the fact that window.obsutils.singleInstanceOverlays is a Set and doesn't work with #each, that is fixed in my local copy of the file.
The issue is that what ever Classes are in the singleInstanceOverlays Set implode in the init() function call.
25 replies