Page MenuHomePhabricator

Add ability to pass `width` arg to dot remarkup interpeter
ClosedPublic

Authored by dctrwatson on Feb 14 2014, 8:39 PM.
Tags
None
Referenced Files
F15433324: D8235.diff
Mon, Mar 24, 10:36 PM
F15419228: D8235.id19599.diff
Fri, Mar 21, 4:36 AM
F15400216: D8235.id19596.diff
Mon, Mar 17, 10:22 AM
F15353929: D8235.diff
Tue, Mar 11, 1:00 AM
Unknown Object (File)
Mar 1 2025, 2:38 PM
Unknown Object (File)
Feb 24 2025, 11:29 AM
Unknown Object (File)
Feb 20 2025, 5:16 PM
Unknown Object (File)
Jan 30 2025, 9:00 PM

Details

Summary

Allows to keep really wide graphs inside the div:

dot (width=100%) {{{ }}}
Test Plan

Created a graph that is wider than a phriction page.
Added (width=100%) and now the images stays within the div.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dctrwatson updated this revision to Unknown Object (????).Feb 14 2014, 9:00 PM

Change to width like {F...} objects

epriestley added inline comments.
src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterGraphviz.php
19

This will produce "width: " for dot (width=quack) {{{ ... }}}.

46

We'll fatal here for dot {{{ ... }}} with no width, I think.

dctrwatson updated this revision to Unknown Object (????).Feb 14 2014, 9:10 PM
  • Make it work without width arg
  • Allow for more style options in future