diff --git a/docs/src/content/docs/docs/features.mdx b/docs/src/content/docs/docs/features.mdx index 31f57e7..a5f4b59 100644 --- a/docs/src/content/docs/docs/features.mdx +++ b/docs/src/content/docs/docs/features.mdx @@ -82,7 +82,7 @@ Pane titles and blade labels are truncated with ellipses if they're too long to Certain aspects of the Tweakpane API don't make a ton of sense in the Svelte context, and have been removed or hidden from the API. -### Custom container +### Custom containers The [`container`](https://tweakpane.github.io/docs/misc/#container) [PaneConfig](https://tweakpane.github.io/docs/api/interfaces/_internal_.PaneConfig.html) option is not exposed, because correct placement in the containing DOM is managed by _Svelte Tweakpane UI_, and `` may be used where you'd like a pane to become part of the normal document flow. diff --git a/src/lib/control/ButtonGrid.svelte b/src/lib/control/ButtonGrid.svelte index 42e001a..da1379f 100644 --- a/src/lib/control/ButtonGrid.svelte +++ b/src/lib/control/ButtonGrid.svelte @@ -60,7 +60,6 @@ export let label: $$Props['label'] = undefined; // Seems to be the only way to get event comments to work eslint-disable-next-line - // @typescript-eslint/no-unused-vars type $$Events = { /** * Fires when a button is clicked. diff --git a/src/lib/control/Point.svelte b/src/lib/control/Point.svelte index bc47841..0ba3b15 100644 --- a/src/lib/control/Point.svelte +++ b/src/lib/control/Point.svelte @@ -104,7 +104,7 @@ : unknown; // Some redefinition of props from GenericSlider, but redefining since we want to refine the - // documentation anyway eslint-disable-next-line @typescript-eslint/no-unused-vars + // documentation anyway type $$Props = Omit< ComponentProps>>, 'buttonClass' | 'options' | 'plugin' | 'ref' diff --git a/src/lib/extra/AutoValue.svelte b/src/lib/extra/AutoValue.svelte index 3a26d20..91c9928 100644 --- a/src/lib/extra/AutoValue.svelte +++ b/src/lib/extra/AutoValue.svelte @@ -20,8 +20,7 @@ A (reasonably) appropriate Tweakpane control will be used for the value type. This component is intended for quick tests where you don't want to fuss with component selection or customization. -See `` for a variation that works directly on a stand-alone value that isn't wrapped in -an object. +See `` for a variation that creates controls for multiple values in an object. The value is generally mapped to controls according to the logic outlined in the [Tweakpane input binding documentation](https://tweakpane.github.io/docs/input-bindings/). diff --git a/src/lib/extra/Element.svelte b/src/lib/extra/Element.svelte index 48fb191..4fdb422 100644 --- a/src/lib/extra/Element.svelte +++ b/src/lib/extra/Element.svelte @@ -75,7 +75,7 @@ This component does not have a direct analog in the vanilla Tweakpane universe. Think of `` as an escape hatch for getting something into the pane that you couldn't otherwise. Generally, it's recommended to abstract new functionality for reuse by extending one of the internal component types in -'svelte-tweakpane-ui', or better yet by creating a new [Tweakpane +Svelte Tweakpane UI, or better yet by creating a new [Tweakpane Plugin](https://github.com/tweakpane/plugin-template) — but sometimes you just need to get something into the pane quickly. diff --git a/src/lib/internal/GenericSlider.svelte b/src/lib/internal/GenericSlider.svelte index d20fb03..922477a 100644 --- a/src/lib/internal/GenericSlider.svelte +++ b/src/lib/internal/GenericSlider.svelte @@ -1,6 +1,7 @@