{"id":20937182,"url":"https://github.com/tremus/figmaboundsheader","last_synced_at":"2025-04-11T14:46:12.339Z","repository":{"id":206922832,"uuid":"631837593","full_name":"Tremus/FigmaBoundsHeader","owner":"Tremus","description":"Figma plugin for generating a c friendly Bounds.h file with the dimensions of all selected nodes","archived":false,"fork":false,"pushed_at":"2025-01-09T10:54:32.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:51:16.559Z","etag":null,"topics":["c","cpp","figma","figma-plugin","gui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tremus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-24T07:02:01.000Z","updated_at":"2025-01-09T10:54:36.000Z","dependencies_parsed_at":"2023-11-13T07:39:45.880Z","dependency_job_id":null,"html_url":"https://github.com/Tremus/FigmaBoundsHeader","commit_stats":null,"previous_names":["tremus/figmaboundsheader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tremus%2FFigmaBoundsHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tremus%2FFigmaBoundsHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tremus%2FFigmaBoundsHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tremus%2FFigmaBoundsHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tremus","download_url":"https://codeload.github.com/Tremus/FigmaBoundsHeader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248421587,"owners_count":21100635,"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":["c","cpp","figma","figma-plugin","gui"],"created_at":"2024-11-18T22:33:37.505Z","updated_at":"2025-04-11T14:46:12.321Z","avatar_url":"https://github.com/Tremus.png","language":"TypeScript","readme":"# FigmaBoundsHeader\n\nA plugin for [Figma](https://www.figma.com/).\n\nScans the dimensions of each selected node and writes all the x/y/width/height info in a big `C` friendly `.h` file\n\nIf you use [juce](https://github.com/juce-framework/JUCE) you may be interested the original [repo](https://github.com/Tremus/CSS2JUCE)\n\nExample:\n\n```C\n#pragma once\nextern const float fbh_Navbar[4];\nextern const float fbh_Navbar__Meter[4];\nextern const float fbh_Navbar__Meter__Vector80[4];\n#ifdef FIGMABOUNDSHEADER_IMPL\nconst float fbh_Navbar[4] = {0, 0, 875, 44};\nconst float fbh_Navbar__Meter[4] = {552, 8, 112, 30};\nconst float fbh_Navbar__Meter__Vector80[4] = {635, 33, 12, 5};\n#endif // FIGMABOUNDSHEADER_IMPL\n```\n\nIn the above example I had selected a _group_ named **Navbar**. This group had a child node named **Meter** which is also a group. Meter had a child node named **Vector80** which is a custom shape that I drew.\n\nThe double underscore (`\"__\"`) indicates the z-index of the node.\n\nSpaces and special characters in the names of your nodes simply get erased.\n\nNo checking is done for duplicate names of nodes, so be careful how you name them.\n\nIf you wish to skip a node, prefix the name of the node with an underscore eg. rename `Vector80` to `_Vector80` will skip adding the info to our header.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftremus%2Ffigmaboundsheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftremus%2Ffigmaboundsheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftremus%2Ffigmaboundsheader/lists"}