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
F22752100: D8235.id19596.diff
Sun, Oct 4, 10:58 PM
F22752090: D8235.id19596.diff
Sun, Oct 4, 10:57 PM
F22743884: D8235.id.diff
Sun, Oct 4, 3:48 PM
F22556529: D8235.diff
Wed, Sep 23, 4:07 PM
F22522775: D8235.diff
Sun, Sep 20, 8:11 PM
F22512397: D8235.diff
Sat, Sep 19, 4:19 AM
Unknown Object (File)
Apr 15 2026, 5:37 PM
Unknown Object (File)
Mar 4 2026, 7:55 AM

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