1
0
forked from x/volcanos
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-09-25 21:40:13 +08:00
parent dcfdfcd9b5
commit dd846ade9e
2 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,7 @@ body.windows form.option>div.icon { font-size:21px; line-height:32px; }
/* svg */
fieldset.web.wiki.draw div.output svg { min-width:100%; min-height:100%; }
svg text { font-size:24px; font-family:monospace; stroke:var(--body-fg-color); fill:var(--body-fg-color); cursor:pointer; }
svg text.offline { stroke:var(--disable-fg-color); fill:var(--disable-fg-color); }
svg text:hover { stroke:var(--hover-fg-color); fill:var(--hover-fg-color); cursor:pointer; }
svg rect { stroke-width:var(--svg-stroke-width); stroke:var(--body-fg-color); fill:var(--output-bg-color); }
svg rect:hover { stroke:var(--hover-fg-color); fill:var(--hover-bg-color); }

View File

@ -33,6 +33,7 @@ Volcanos(chat.ONACTION, {list: [[ice.VIEW, "横向", "纵向"], [html.SIZE, 24,
},
_draw: function(can, tree, x, y, style) { var color = can.onimport._color(can, tree)
tree.view = can.onimport.draw(can, {shape: html.TEXT, points: [{x: x, y: y}], style: can.base.Copy(kit.Dict(html.INNER, tree.name||" "), style)})
tree.meta.status && tree.view.Value("class", tree.meta.status)
return can.core.ItemCB(can.ondetail, tree.view, can, tree), tree.view
},
_draw_vertical: function(can, tree, x, y) {