mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
- Within certain bounds. Still have min-label size, mainly effects nodes that get really big. - Set a max size on nodes too, really big ones lose their border.
28 lines
541 B
JavaScript
28 lines
541 B
JavaScript
|
|
export const DETAILS_PANEL_WIDTH = 420;
|
|
|
|
export const DETAILS_PANEL_MARGINS = {
|
|
top: 24,
|
|
bottom: 48,
|
|
right: 36
|
|
};
|
|
|
|
export const DETAILS_PANEL_OFFSET = 8;
|
|
|
|
export const CANVAS_METRIC_FONT_SIZE = 0.19;
|
|
|
|
export const CANVAS_MARGINS = {
|
|
top: 160,
|
|
left: 40,
|
|
right: 40,
|
|
bottom: 100,
|
|
};
|
|
|
|
//
|
|
// The base size the shapes were defined at matches nicely w/ a 14px font.
|
|
//
|
|
export const BASE_NODE_SIZE = 64;
|
|
export const MAX_NODE_SIZE = 96;
|
|
export const BASE_NODE_LABEL_SIZE = 14;
|
|
export const MIN_NODE_LABEL_SIZE = BASE_NODE_LABEL_SIZE;
|