Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
pad committed Oct 20, 2010
1 parent 1fba551 commit 7428f80
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions h_program-visual/treemap_pl.ml
Expand Up @@ -216,8 +216,10 @@ let anamorphic_diviser_of_file ~root file =
| Archi_code.I18n -> 8.
| Archi_code.Data -> 15.

(* augment size of main *)
| Archi_code.Main | Archi_code.Init -> 0.33
(* augment size of main
* TODO: should be adaptative
*)
| Archi_code.Main | Archi_code.Init -> 0.5

| _ -> 1.
)
Expand Down
9 changes: 9 additions & 0 deletions visual/draw2.ml
Expand Up @@ -705,6 +705,15 @@ let rec draw_treemap_rectangle_label_maybe2 ~cr ~zoom ~color rect =

and try_draw_label ~font_size_orig ~color ~alpha ~cr ~rect txt =

(* ugly: sometimes labels are too big. Should provide a way to
* shorten them.
* let txt =
* if true
* then if txt =~ "org.eclipse.\\(.*\\)" then Common.matched1 txt else txt
* else txt
* in
*)

let r = rect.T.tr_rect in

let w = F.rect_width r in
Expand Down

0 comments on commit 7428f80

Please sign in to comment.