{"id":15312375,"url":"https://github.com/donmccurdy/tweakpane-plugin-thumbnail-list","last_synced_at":"2025-11-13T22:56:26.307Z","repository":{"id":66127899,"uuid":"387232456","full_name":"donmccurdy/tweakpane-plugin-thumbnail-list","owner":"donmccurdy","description":"Image thumbnail list plugin for Tweakpane","archived":false,"fork":false,"pushed_at":"2023-11-08T19:45:15.000Z","size":569,"stargazers_count":35,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T13:05:43.206Z","etag":null,"topics":["gui","plugin","tweakpane"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donmccurdy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-18T17:28:52.000Z","updated_at":"2025-01-11T09:42:18.000Z","dependencies_parsed_at":"2024-10-15T20:40:49.164Z","dependency_job_id":"1b993515-216f-497a-adee-085ec8020e5b","html_url":"https://github.com/donmccurdy/tweakpane-plugin-thumbnail-list","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.08333333333333337,"last_synced_commit":"fb3d4b96f8eb747d9d3065122ad0ef0736e866fe"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":"tweakpane/plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donmccurdy%2Ftweakpane-plugin-thumbnail-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donmccurdy%2Ftweakpane-plugin-thumbnail-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donmccurdy%2Ftweakpane-plugin-thumbnail-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donmccurdy%2Ftweakpane-plugin-thumbnail-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donmccurdy","download_url":"https://codeload.github.com/donmccurdy/tweakpane-plugin-thumbnail-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986312,"owners_count":21194025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","plugin","tweakpane"],"created_at":"2024-10-01T08:36:45.327Z","updated_at":"2025-11-13T22:56:21.255Z","avatar_url":"https://github.com/donmccurdy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tweakpane thumbnail list plugin\n\n[Tweakpane][tweakpane] plugin for selecting from a thumbnail list.\n\n\u003e **EXPERIMENTAL:**. API is likely to change before stable release.\n\n![Preview](https://github.com/donmccurdy/tweakpane-plugin-thumbnail-list/raw/main/assets/preview.png)\n\n## Installation\n\n### Browser\n```html\n\u003cscript src=\"tweakpane.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"tweakpane-plugin-thumbnail-list.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const pane = new Tweakpane.Pane();\n  pane.registerPlugin(TweakpaneThumbnailListPlugin);\n\u003c/script\u003e\n```\n\n\n### Package\n```js\nimport { Pane } from 'tweakpane';\nimport * as TweakpaneThumbnailListPlugin from 'tweakpane-plugin-thumbnail-list';\n\nconst pane = new Pane();\npane.registerPlugin(TweakpaneThumbnailListPlugin);\n```\n\n\n## Usage\n```js\nconst params = {\n  weave: 'p',\n};\n\npane.addInput(params, 'weave', {\n  view: 'thumbnail-list',\n  options: [\n    {text: 'Plain', value: 'p', src: './plain.png', data: {...}},\n    {text: 'Twill', value: 't', src: './twill.png', data: {...}},\n    {text: 'Basket', value: 'b', src: './basket.png', data: {...}},\n    {text: 'Herringbone', value: 'h', src: './herringbone.png', data: {...}},\n  ]\n}).on('change', (ev) =\u003e {\n  console.log(ev.value);\n});\n```\n\n### Option properties:\n\n| property | type   | required | description                    |\n|----------|--------|----------|--------------------------------|\n| text     | string | ✓        | Human-readable label.          |\n| value    | string | ✓        | Unique identifier.             |\n| src      | url    | ✓        | Thumbnail URL.                 |\n| data     | any    |          | Any application-specific data. |\n\n## CSS Theming\n\nInherits CSS variables from [Tweakpane's theming system](https://cocopon.github.io/tweakpane/theming.html), with the following additions:\n\n```css\n:root {\n  /** Max height of dropdown panel. */\n  --tp-plugin-thumbnail-list-height: 400px;\n\n  /** Fixed width of dropdown panel. */\n  --tp-plugin-thumbnail-list-width: 200px;\n\n  /** Width/height of (square) thumbnail. */\n  --tp-plugin-thumbnail-list-thumb-size: 20px;\n}\n```\n\n## Contributing\n\n### Quickstart\n- Install dependencies:\n  ```\n  % npm install\n  ```\n- Build source codes and watch changes:\n  ```\n  % npm watch\n  ```\n- Open `test/browser.html` to see the result.\n\n\n### File structure\n```\n|- src\n|  |- sass ............ Plugin CSS\n|  |- index.ts ........ Entrypoint\n|  |- plugin.ts ....... Plugin\n|  |- controller.ts ... Controller for the custom view\n|  `- view.ts ......... Custom view\n|- dist ............... Compiled files\n`- test\n   `- browser.html .... Plugin labo\n```\n\n\n[tweakpane]: https://github.com/cocopon/tweakpane/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonmccurdy%2Ftweakpane-plugin-thumbnail-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonmccurdy%2Ftweakpane-plugin-thumbnail-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonmccurdy%2Ftweakpane-plugin-thumbnail-list/lists"}