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
F14028153: D8235.diff
Fri, Nov 8, 12:01 PM
F13993370: D8235.id19595.diff
Tue, Oct 22, 10:27 PM
F13990181: D8235.diff
Tue, Oct 22, 1:49 AM
F13982599: D8235.id.diff
Sun, Oct 20, 12:33 AM
F13981819: D8235.id19599.diff
Sat, Oct 19, 7:19 PM
F13976577: D8235.id19596.diff
Fri, Oct 18, 2:54 PM
F13973916: D8235.id19599.diff
Fri, Oct 18, 3:15 AM
Unknown Object (File)
Oct 10 2024, 11:30 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