{"id":20905970,"url":"https://github.com/objectprofile/hierarchicalvisualizations","last_synced_at":"2025-12-29T04:09:25.174Z","repository":{"id":42082404,"uuid":"363629518","full_name":"ObjectProfile/HierarchicalVisualizations","owner":"ObjectProfile","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-19T14:24:59.000Z","size":777,"stargazers_count":5,"open_issues_count":20,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-19T14:22:02.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","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/ObjectProfile.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-02T11:01:50.000Z","updated_at":"2023-03-11T07:59:27.000Z","dependencies_parsed_at":"2023-10-19T14:36:09.197Z","dependency_job_id":null,"html_url":"https://github.com/ObjectProfile/HierarchicalVisualizations","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObjectProfile%2FHierarchicalVisualizations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObjectProfile%2FHierarchicalVisualizations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObjectProfile%2FHierarchicalVisualizations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ObjectProfile%2FHierarchicalVisualizations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ObjectProfile","download_url":"https://codeload.github.com/ObjectProfile/HierarchicalVisualizations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243297158,"owners_count":20268726,"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":[],"created_at":"2024-11-18T13:28:28.643Z","updated_at":"2025-12-29T04:09:25.143Z","avatar_url":"https://github.com/ObjectProfile.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Attention\n\u003cimg width=\"400\" alt=\"image\" src=\"https://github.com/ObjectProfile/Roassal3/assets/10532890/c92f4033-954f-4e29-a13d-d90ab23dffcd\"\u003e\n\nWE ARE MOVING\n- HierarchicalVisualizations =\u003e https://github.com/moosetechnology/HierarchicalVisualizations\n\n# HierarchicalVisualizations\n\n[![CI/Pharo9](https://github.com/ObjectProfile/HierarchicalVisualizations/actions/workflows/runTests.yml/badge.svg)](https://github.com/ObjectProfile/HierarchicalVisualizations/actions/workflows/runTests.yml)\n\nThis project provide a small API to build hierarchical visualization using the [Pharo](http://pharo.org) programming language. HierarchicalVisualizations uses [Roassal](https://github.com/ObjectProfile/Roassal3).\n\n### Install\n\nExecute the following code snippet in a Playground:\n\n```Smalltalk\n[ Metacello new\n    baseline: 'HierarchicalVisualizations';\n    repository: 'github://ObjectProfile/HierarchicalVisualizations:main';\n    load ] on: MCMergeOrLoadWarning do: [:warning | warning load ]\n```\n\n### Example\nConsider the following code snippet:\n```Smalltalk\nnode1 := HNode new name: 'Node1'.\nnode1 color: Color blue translucent.\n\nnode2 := HNode new name: 'Node2'.\nnode2 color: Color green lighter lighter.\nsubnode1 := HNode new name: 'Sub1'.\nsubnode2 := HNode new name: 'Sub2'.\nsubnode3 := HNode new name: 'Sub3'.\nsubnode4 := HNode new name: 'Sub4'.\n\nnode1 addAll: {subnode1. subnode2}.\nnode2 addAll: {subnode3. subnode4}.\n\t\nrootNode := HNode new name: 'Root'.\nrootNode addAll: { node1. node2 }.\nsubnode3 dependenciesToNodes: { subnode1. subnode2 }.\n\nrootNode open.\n```\n\nThe code above defines four nodes in total, structured as a hierarchy. Executing the code should shows:\n\u003cimg width=\"1021\" alt=\"image\" src=\"https://user-images.githubusercontent.com/393742/132356755-e3df5336-500a-4768-b585-c4a5c3e4f3bc.png\"\u003e\n\nNode can be collapsed or expanded:\n\n\u003cimg width=\"496\" alt=\"image\" src=\"https://user-images.githubusercontent.com/393742/132356828-8dcd18d6-87d4-4cbe-8644-3b4ff91c1584.png\"\u003e\n\nNew menu items can be defined by creating a subclass of `HAbstractMenuItem`. The package [`Hierarchical-Roassal3-Menu`](https://github.com/ObjectProfile/HierarchicalVisualizations/tree/main/src/Hierarchical-Roassal3-Menu) contains many examples on how to define a new menu item.\n\nRoassal's layouts may be set in a `HNode`, as for example:\n\n```Smalltalk\nnode1 := HNode new name: 'Node1'.\nnode1 layout: RSVerticalLineLayout new.\nnode2 := HNode new name: 'Node2'.\nsubnode1 := HNode new name: 'Sub1'.\nsubnode2 := HNode new name: 'Sub2'.\nsubnode3 := HNode new name: 'Sub3'.\nsubnode4 := HNode new name: 'Sub4'.\n\nnode1 addAll: {subnode1. subnode2}.\nnode2 addAll: {subnode3. subnode4}.\n\t\nrootNode := HNode new name: 'Root'.\nrootNode addAll: { node1. node2 }.\nsubnode3 dependenciesToNodes: { subnode1. subnode2 }.\n\nrootNode add: HNode new.\n\nrootNode open.\n```\nwhich produces: \n\u003cimg width=\"1021\" alt=\"image\" src=\"https://user-images.githubusercontent.com/393742/132359190-d0e41669-aa89-4413-9d33-c0d809fe2842.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectprofile%2Fhierarchicalvisualizations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectprofile%2Fhierarchicalvisualizations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectprofile%2Fhierarchicalvisualizations/lists"}