Releases: typhonjs-fvtt-lib/svelte
0.0.8
Release 0.0.8 (medium update)
- Continued refinement of position / Position in SvelteApplication.
- Transforms are now handled by matrix3d.
- New math package w/ glmatrix and other supporting functions.
- Can now use a Svelte component as a header button.
- TJSDialog sets height as
auto
by default. - TJSDocument has
setFromUUID
andsetFromDataTransfer
methods
0.0.7
Release 0.0.7 (large update)
- Complete overhaul of position / setPosition implementation making positional aspects reactive.
- Setting any
this.position.<XXX>
value is reactive. - New
this.position.set
method.setPosition
simply invokes it. - New position validators that make advanced window management easy.
- Setting any
- Introduction of Application state. this.state.save / restore and other methods including animating to a saved state
are now possible.
0.0.6
Release 0.0.6 (large update)
-
Breaking changes (rename of variables):
- When creating a Svelte component the Foundry application accessible by
getContext('external').foundryApp
is renamed toapplication
and accessible bygetContext('external').application
. - SvelteApplication / SvelteReactive
IE this.reactive.storeUIOptions
renamed tothis.reactive.storeUIState
. Added
two new stores fordragging
andresizing
that are true when the app is being dragged or resized.
- When creating a Svelte component the Foundry application accessible by
-
TJSDocumentDialog and individual dialogs for working with documents added to
new sub-module@typhonjs-fvtt/svelte/application/dialog
. -
TJSDocument and TJSDocumentCollection to make documents and document collections reactive / store / subscriber
protocol support available via@typhonjs-fvtt/svelte/store
-
Many refinements to TJSDialog smoothing out developer experience.
- Added
autoClose
option to not automatically close on button press. You must manually close the app in button
callback. - Normalized options for icon: you can now just pass a string for the FA icon class.
- Normalized callback option / you can also use
onclick
- If you are using a Svelte component for the dialog content the callback can be a text string for an exported
- function in the Svelte component to invoke on button press.
- Added
styles
option / object to specify inline styles on the button. - Added
title
option to add a title / tooltip to buttons.
- Added
-
The SvelteApplication
position
object is not a specific classPosition
that has the same API / shape as the
default coreposition
object.- The new position implementation is a Svelte store / reactive.
this.position.validators
provides an API to add validation functions that are invoked on position changes allowing
modification of position data or cancelling an update. This allows the easy creation of window / app management code.
-
Really fine-tuned
setPosition
fixing outstanding issues / integrated position validation.max-width
/max-height
set in styles is now included in calculations, so when resizing an app the position data
correctly stops at any max value set.- Validation via Position is engaged allowing much easier window management functionality.
0.0.5
Release 0.0.5 (medium update)
- Skipped 0.0.4 release to bring version parity with @typhonjs-fvtt/runtime.
- Added gameState Svelte store to access Foundry global
game
in Svelte templates. - Better typescript type definitions.
- Updated @typhonjs-svelte/lib (more utility functions)
0.0.3
0.0.2
Release 0.0.2
-
Updated SvelteApplication / SvelteFormApplication to properly handle z-index management including legacy Handlebars
support. -
Added
setPosition
option that by default is true. When set to false thesetPosition
method takes no effect. -
Added
headerButtonNoClose
andheaderButtonNoLabel
options to remove close button and labels from header buttons. -
Made storeAppOptions derived stores writable.
0.0.1
0.0.0 - Initial Launch
Provides the initial Foundry VTT Svelte integration with core support including:
- application shells
- TJSMenu / context menu
- TJSDialog / modal dialogs.