{"id":13744950,"url":"https://github.com/arpit/treemaps","last_synced_at":"2025-05-09T04:32:47.510Z","repository":{"id":804966,"uuid":"509114","full_name":"arpit/treemaps","owner":"arpit","description":"An open source ActionScript 3 library for generating Squarified Treemaps.","archived":false,"fork":false,"pushed_at":"2011-07-30T00:03:11.000Z","size":104,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T05:05:29.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","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/arpit.png","metadata":{"files":{"readme":"README.mdown","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}},"created_at":"2010-02-09T05:36:50.000Z","updated_at":"2021-10-10T05:34:23.000Z","dependencies_parsed_at":"2022-07-05T16:02:16.067Z","dependency_job_id":null,"html_url":"https://github.com/arpit/treemaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit%2Ftreemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit%2Ftreemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit%2Ftreemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arpit%2Ftreemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arpit","download_url":"https://codeload.github.com/arpit/treemaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819696,"owners_count":17375311,"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-08-03T05:01:19.097Z","updated_at":"2024-11-15T17:30:47.518Z","avatar_url":"https://github.com/arpit.png","language":"ActionScript","readme":"***README***\n\nAn open source ActionScript 3 library for generating Squarified Treemaps. The library is based on the algorithm by Mark Bruls, Kees Huizing, and Jarke J. van Wijk from the Eindhoven University of Technology, Dept. of Mathematics and Computer Science,The Netherlands. The paper can be found here: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.36.6685\u0026rep=rep1\u0026type=pdf\n\nThe library was used to build the DiggGraphr application mentioned here:\nhttp://infosthetics.com/archives/2009/01/digggraphr_digg_stories_in_a_treemap.html\n\n\n**Usage:**\n\nThe example below uses a MapItem class that implements the ITreeMapData interface. \nThe weight property on that interface is used to generate the relative size of the individual rectangles\n\nCustom renderers can be used to draw the rectangles by extending the Treemap class and overriding the draw function. \n\n\u003ccode\u003e\n\n\tpackage\n\t{\n\t\timport com.arpitonline.treemap.TreeMap;\n\n\t\timport flash.display.Sprite;\n\t\timport flash.events.Event;\n\n\t\tpublic class SampleTreemapProject extends Sprite\n\t\t{\n\n\t\t\tprivate var tm:TreeMap = new TreeMap();\n\n\t\t\tpublic function SampleTreemapProject()\n\t\t\t{\n\t\t\t\tstage.scaleMode = \"noScale\";\n\t\t\t\tstage.align = \"TL\";\n\n\n\t\t\t\ttm.setSize(stage.stageWidth, stage.stageHeight);\n\n\t\t\t\tvar dp:Array = [];\n\t\t\t\tfor(var i:int = 0; i \u003c 5; i++){\n\t\t\t\t\tvar i1:MapItem = new MapItem(\"Item_\"+i, 4 );\n\t\t\t\t\tdp.push(i1);\n\n\t\t\t\t}\n\n\t\t\t\ttm.dataProvider = dp;\n\t\t\t\taddChild(tm);\n\n\t\t\t\tstage.addEventListener(Event.RESIZE, onStageResize);\n\n\t\t\t}\n\n\t\t\tprivate function onStageResize(event:Event):void{\n\t\t\t\ttm.setSize(stage.stageWidth, stage.stageHeight);\n\t\t\t\ttm.layout();\n\t\t\t}\n\t\t}\n\t}\n\n\timport com.arpitonline.treemap.ITreeMapData;\n\n\tclass MapItem implements ITreeMapData{\n\n\t\tprivate var _label:String;\n\t\tprivate var _weight:Number\n\t\tpublic function MapItem(label:String, weight:Number){\n\t\t\t_label = label;\n\t\t\t_weight = weight;\n\t\t}\n\n\t\tpublic function get weight():Number{\n\t\t\treturn _weight;\t\n\t\t}\n\t}\n\t\n\t\t\t\n\u003c/code\u003e","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpit%2Ftreemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farpit%2Ftreemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farpit%2Ftreemaps/lists"}