Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Dynamically adding shapes and fonts

$
0
0

@progs wrote:

I am working to be able to dynamically add shapes and icons, as I don't know which icons will actually be used by other developers using the graph. The graph will essentially be a re-usable angular component.

I think some icons look better with a background shape, and some don't. So is there a way to let another developer determine if he or she wants a background shape dynamically, behind the icon or not? Maybe something like this, and then show that background -shape if it is included in the JSON.

    { key: "MARYLAND INDUSTRY", geo2: "file"},
    { key: "CHESTFIELD HOLDING" width: 20, background-shape: true}

Here is what I have currently, you can see CHESTFIELD HOLDINGS has two default GoJS shapes, and would require a background shape, while the other nodes are using the "file" icon from IcoMoons and does not need a background:

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles