{"id":18355416,"url":"https://github.com/charto/phosphor-float-area","last_synced_at":"2025-04-06T12:32:01.377Z","repository":{"id":57323145,"uuid":"82912931","full_name":"charto/phosphor-float-area","owner":"charto","description":":fist: Draggable :anchor: Dockable :left_right_arrow: Resizable :boat: Floating :bookmark_tabs: Tabbed HTML5 dialogs! :tada:","archived":false,"fork":false,"pushed_at":"2017-11-09T12:51:17.000Z","size":1256,"stargazers_count":72,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T11:31:09.108Z","etag":null,"topics":["phosphorjs","typescript","ui-components","widget"],"latest_commit_sha":null,"homepage":"https://charto.github.io/phosphor-float-area/","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/charto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-23T09:56:01.000Z","updated_at":"2022-11-17T12:14:55.000Z","dependencies_parsed_at":"2022-09-10T18:22:14.848Z","dependency_job_id":null,"html_url":"https://github.com/charto/phosphor-float-area","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fphosphor-float-area","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fphosphor-float-area/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fphosphor-float-area/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charto%2Fphosphor-float-area/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charto","download_url":"https://codeload.github.com/charto/phosphor-float-area/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484348,"owners_count":20946384,"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":["phosphorjs","typescript","ui-components","widget"],"created_at":"2024-11-05T22:06:51.560Z","updated_at":"2025-04-06T12:32:01.006Z","avatar_url":"https://github.com/charto.png","language":"TypeScript","readme":"phosphor-float-area\n===================\n\nDraggable, dockable, resizable, floating, tabbed `Dialog` and `FloatArea` widgets:\n\n![Screen recording](https://raw.githubusercontent.com/charto/phosphor-float-area/gh-pages/demo.gif)\n\n100% Virtual DOM, TypeScript, [PhosphorJS](https://github.com/phosphorjs/phosphor)\nbased modern JavaScript goodness :cake:\n\n[![dependency status](https://david-dm.org/charto/phosphor-float-area.svg)](https://david-dm.org/charto/phosphor-float-area)\n[![npm version](https://img.shields.io/npm/v/phosphor-float-area.svg)](https://www.npmjs.com/package/phosphor-float-area)\n\nLive demo\n---------\n\n[**Try it now!**](https://charto.github.io/phosphor-float-area/)\n\nAlternatively, run the following commands and then open [localhost:8080](http://localhost:8080/) to see it in action:\n\n```\ngit clone https://github.com/charto/phosphor-float-area.git\ncd phosphor-float-area\nnpm install\nnpm run prepublish\nnpm start\n```\n\nThe demo uses [SystemJS](https://github.com/systemjs/systemjs).\nWorks directly from the public directory of any HTTP server.\nWith `compileOnSave` (eg. [`atom-typescript`](https://atom.io/packages/atom-typescript) or\n[TypeScript for VS Code](https://github.com/mrcrowl/vscode/releases/tag/13.10.8))\nthe demo page always stays up to date while editing TypeScript source code.\n\nUsage\n-----\n\n1. Install:\n\n```bash\nnpm install --save phosphor-float-area\n```\n\n2. Use:\n\n```TypeScript\nimport '@phosphor/dragdrop/style/index.css!';\nimport '@phosphor/widgets/style/index.css!';\nimport 'phosphor-float-area/style/index.css!';\n\nimport { Widget, DockPanel } from '@phosphor/widgets';\nimport { FloatArea } from 'phosphor-float-area';\n\nconst area = new FloatArea();\nconst dock = new DockPanel();\n\ndock.addWidget(area);\ndock.addWidget(new Widget(), { mode: 'split-left', ref: area });\ndock.addWidget(new Widget(), { mode: 'split-right', ref: area });\n\narea.addWidget(new Widget(), { placement: 'backdrop' });\n\nWidget.attach(dock, document.body);\n```\n\nThe `addWidget` method of `FloatArea` accepts an options object as the second argument,\nwith the following optional members:\n\n- `placement`: string, `float` by default. Passing `backdrop` adds the widget as a non-floating backdrop,\n  behind any floating dialogs.\n- `left`, `top`, `width`, `height`: number. Initial pixel size and placement of the floating dialog to add.\n\nProject structure\n-----------------\n\n### `src`\n\nTypeScript source code (git only).\n\n### `style`\n\nCSS rules needed by the widgets.\n\n### `dist`\n\nCompiled JavaScript (ES5) code (npm only).\n\n### `test`\n\nTypeScript source code of demo application (git only).\n\n### `www`\n\nSupport files for demo application (git only).\n\n### `bundler`\n\nBundler and configuration autogenerator for demo application (git only).\n\nRequired for demo application to work after referencing new NPM packages in the code.\nUpdates [`www/config-npm.js`](https://github.com/charto/phosphor-float-area/blob/master/www/config-npm.js).\n\nUsage:\n\n```bash\ncd bundler\nnpm install\nnpm run bundle\n```\n\nAfterwards, the demo will use the static bundle for faster loading.\nRemove `dist/bundle.js` to always load the latest code when developing.\n\nLicense\n=======\n\n[The MIT License](https://raw.githubusercontent.com/charto/phosphor-float-area/master/LICENSE)\n\nCopyright (c) 2017 BusFaster Ltd\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fphosphor-float-area","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharto%2Fphosphor-float-area","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharto%2Fphosphor-float-area/lists"}