features: svg object with links and styles#14
Open
fajan wants to merge 7 commits intosplitbrain:masterfrom
fajan:master
Open
features: svg object with links and styles#14fajan wants to merge 7 commits intosplitbrain:masterfrom fajan:master
fajan wants to merge 7 commits intosplitbrain:masterfrom
fajan:master
Conversation
- display svg object with png fallback for xhtml - display png only for dw2pdf - use dokuwiki urls inside the graph Inactive[ URL="[[statuses#inactive KPI]]", ];
- display svg broken image for object embed.
- add hash of the current url to data only when use_svg is enabled: This ensures that the same image is recreated if the same code is placed to different pages, or the same page is opened from alternative urls -> the links in the svg object are always relative to it's place.
- config to set up styles - _parseStyles to parse styles into array - update syntax to accept styles in <graphviz> tag - _injectSytles to prepend styles into the graph body
- use preg to separate tags from graph - fallback old behavior (first / last line are tags) if preg pattern fails.
- fixed ways to distinguish dw2pdf and xhtml export (they both use 'xhtml' format) - auth update: dw2pdf fetches links by calling the url, which causes unauthorized failure for various auth plugins. Hence if dw2pdf is the renderer, create graph and put the filesystem path in src.
Author
|
Hi, vis.js: I don't see it, how could an npm package help in PHP? BTW: did you tried out the example code? I tested everything under IE8, chrome and FF, and all url types was fine and clickable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[[ ... ]]link indicator is needed to parse links as dokuwiki links.target=_topis appended to links, which is necessary for correct object embeding.hrefattributes it falls back to dot (targetnot appended)examples:
set style plugin config:
and then use styles in graphviz tag, to apply styles: