Hi,
I have a patch for weathermap 0.82 that creates some new keywords for use in conf files.
The good part is that it you can move the meeting point of the arrows and where the label will be rendered.
The bad part is that I forgot to grab a clean diff before starting to work on the next bit, which I ofcourse didn't have time to finish...
So, there is a rudimentary grouping function (all it does is draw a box around the grouped nodes with 5px padding) that is unfinished...
The new keywords are:
GROUP groupname
LABEL label
NODES n1 n2 n3...
where groupname is the internal name of the group, label is the label that is rendered and nodes is a list of internal nodenames that are part of this group.
LINK Attributes:
SPLITPOS split
LABELPOS label
where split is the ratio of the arrows (value between 0 and 1), labelpos is the ratio for a single arrow to determine where the label should go (value between 0 and 1).
Some patches
Moderators: Developers, Moderators
Some patches
- Attachments
-
- weather.diff.gz
- patch to enable split and label moving
- (3.51 KiB) Downloaded 243 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Some patches
Hmmm. LABELPOS is already in 0.9 (I used two percentages (one for each label) but essentially the same), and the rest of the code has changed quite a bit, so applying patches becomes a little tricky...pj0tr wrote:Hi,
I have a patch for weathermap 0.82 that creates some new keywords for use in conf files.
The good part is that it you can move the meeting point of the arrows and where the label will be rendered.
The bad part is that I forgot to grab a clean diff before starting to work on the next bit, which I ofcourse didn't have time to finish...
So, there is a rudimentary grouping function (all it does is draw a box around the grouped nodes with 5px padding) that is unfinished...
The new keywords are:
GROUP groupname
LABEL label
NODES n1 n2 n3...
where groupname is the internal name of the group, label is the label that is rendered and nodes is a list of internal nodenames that are part of this group.
LINK Attributes:
SPLITPOS split
LABELPOS label
where split is the ratio of the arrows (value between 0 and 1), labelpos is the ratio for a single arrow to determine where the label should go (value between 0 and 1).
I'd never really thought about SPLITPOS. I guess it probably is pretty handy for tweaking links with VIAs, especially. I'll see if I can merge that in somehow (it's a pretty local change, after all).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 4 guests