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
F17705904: D8235.id.diff
Wed, Jul 16, 10:25 AM
Unknown Object (File)
Jun 9 2025, 1:57 AM
Unknown Object (File)
May 10 2025, 3:39 AM
Unknown Object (File)
May 7 2025, 6:30 PM
Unknown Object (File)
May 7 2025, 6:28 PM
Unknown Object (File)
May 6 2025, 10:10 AM
Unknown Object (File)
Apr 23 2025, 2:44 PM
Unknown Object (File)
Apr 12 2025, 7:47 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

Repository
rP Phabricator
Branch
dot
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php:7PHL1Unknown Symbol
Errorsrc/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php:7PHL1Unknown Symbol
Errorsrc/applications/people/garbagecollector/PeopleUserLogGarbageCollector.php:7PHL1Unknown Symbol
Unit
Tests Passed

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) {{{ ... }}}.

50

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