Giter Site home page Giter Site logo

joshtynjala / flextreemap Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 9.0 2.97 MB

TreeMap data visualization component for Adobe Flex

Home Page: https://github.com/joshtynjala/flextreemap/wiki

License: Other

HTML 2.31% JavaScript 22.01% ActionScript 74.47% CSS 1.21%
adobe-flex apache-flex ui-components actionscript adobe-flash-player adobe-air adobe-flash flash treemap

flextreemap's Introduction

Josh Tynjala is a frontend software developer, open source contributor, and karaoke enthusiast.

Since 2012, Josh has developed Feathers UI, a Kickstarter-funded cross-platform UI component framework for creative projects โ€” written in Haxe. You can contribute a monthly donation to Josh's work on Github Sponsors.

In 2022, Josh was invited to join the leadership team of OpenFL, in recognition of his contributions to the project. OpenFL is an implementation of the APIs in Adobe Flash Player and Adobe AIR, using the Haxe programming language. OpenFL projects can target the web with JavaScript and WebGL/Canvas; native C++ on iOS and Android mobile devices; and native C++ on Windows, macOS, and Linux desktop computers (or with VMs such as Adobe AIR, Electron, and HashLink).

Josh also maintains the ActionScript & MXML and SWF Debugger extensions for Visual Studio Code.

๐Ÿ“œ Josh Tynjala's Blog

๐Ÿ˜ @joshtynjala on Mastodon

flextreemap's People

Contributors

joshtynjala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flextreemap's Issues

Add "strip" treemap layout

Unordered layout. Leaves are added as horizontal strips, and aspect ratios are tested like squarify. When the aspect ratio gets worse, a new strip is started.

Allow different "ideal" aspect ratio in squarify layout

Right now, the ideal aspect ratio of a leaf is hard-coded to 1 because that's the point of the squarify layout. However, there are situations where a different aspect ratio might be preferred. Add a property to change this behavior, keeping the default of 1.

TreeMap issue in Flash 4.6

I had used the Treemap in Flash 3.2 code and it worked fine. Now we migrated the code to Flash 4.6 and after that we are getting the below error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.flextoolbox.controls.treeMapClasses::TreeMapLeafRenderer/updateBackgroundSkin()
at com.flextoolbox.controls.treeMapClasses::TreeMapLeafRenderer/createChildren()
at mx.core::UIComponent/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::UIComponent/addChild()
at com.flextoolbox.controls::TreeMap/getLeafRenderer()
at com.flextoolbox.controls::TreeMap/refreshBranchChildRenderers()
at com.flextoolbox.controls::TreeMap/refreshBranchChildRenderers()
at com.flextoolbox.controls::TreeMap/commitProperties()
at mx.core::UIComponent/validateProperties()

Any pointers would help!!

depth is always 0

First thank you for your component.

I found a little bug in the code that determine the depth of branches.

line 1627 of TreeMap.as change :

            var branchDepth:int = this._uidToDepth[branch];

to :

            var uid:String = this.itemToUID(branch);
            var branchDepth:int = this._uidToDepth[uid];

Thank you

Null pointer on TreeMapBranchHeader

I recently upgraded my project from flex 3.5 to flex 4.1. I never used to see this error earlier to the upgrade. I am not sure what changed. Any help would be appreciated.

Thanks,
Meghna

After the upgrade I saw the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.flextoolbox.controls.treeMapClasses::TreeMapBranchHeader/commitProperties()[/Users/josh/Development/ActionScript 3/projects/flextreemap/output/flextreemap/source/com/flextoolbox/controls/treeMapClasses/TreeMapBranchHeader.as:383]
at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:700]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

Then I upgraded to flextreemap2.2 swc and now I see the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.flextoolbox.controls.treeMapClasses::TreeMapBranchHeader/commitProperties()[C:\Users\Josh\Development\Flex\flextreemap\output\flextreemap\source\com\flextoolbox\controls\treeMapClasses\TreeMapBranchHeader.as:285]
at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7933]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:700]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.