Giter VIP home page Giter VIP logo

goat's People

Contributors

bep avatar blampe avatar deining avatar dmacvicar avatar dmullis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goat's Issues

Home "Code" github page: SVG output Examples assume a black background

SVG strokes in 'currentColor' from (https://cdn.rawgit.com/blampe/goat/master/examples/trees.svg) et al. render as black, irrespective of page background color. If the user happens to have set one of the Github "Dark ..." per-user Theme, result is black strokes on a background in some shade of dark-grey, possibly indistinguishable on certain monitors.

Theme setting:
(https://github.com/settings/appearance)

Verified on Firefox and Safari.

How to Change Font of the Text in the Output SVG File

For the given ASCIIArt, if I have some Text, I would like to have this Text in the output image as Regular Fonts and Not Monospaced fonts. How can I change the font setting for the output image file?

 Step 1
   |
   v
 Step 2
   |
   v
  End

gives this output.

image

Rendering in close corners

Sometimes corners that are close to each other cannot be rendered as desired:

The following is kind of expected:

+----------+
|  PCRn    |
+----------+
+----------+
| Nonce    |
+----------+

image

It would be great if using other corners would not connect the two boxes:

+----------+
|  PCRn    |
'----------'
.----------.
| Nonce    |
+----------+

but it currently renders the same as with +

Diagonal connection between nodes?

I have four nodes arranged in a square like so:

 .---.   .---.
| CTR +-+ WBK |
 '-+-'   '-+-'
   |       |
 .-+-.   .-+-.
| HWD +-+ SDO |
 '---'   '---'

I'd like to diagonally connect the HWD and WBK nodes from their nearest corners, but haven't found a good solution. Most come out mishapen or connect the sides of the nodes rather than their corners. Any ideas? The horizontal and vertical space between nodes can be increased if that makes it any easier.

Link in goat diagram

Is there an easy way to include a link in a goat diagram?
what I found so far: all major browsers support [XLinks in SVG]. So it seems doable for goat as it builds an svg.
Though not much documentation is available for goat. If there is no native solution could you advise on how to approach the development of such a feature in goat or is it a “dead-end” and such a feature is not approachable by design.
Goat defines runes in the source code, should there be one for links?

Consider reading unicode arrow or line characters

Have you considered limited support for reading and interpreting unicode characters?

U+00B7 middle dot could be used for dotted lines, instead of hyphen

Or, using math symbols: http://jrgraphix.net/r/Unicode/2200-22FF
U+22EE ⋮ vertical 3 dots
U+22EF ⋯ horizontal 3 dots
U+22F0 ⋰ dotted slash
U+22F1 ⋱ dotted backslash

Box drawing lines: http://jrgraphix.net/r/Unicode/2500-257F
(includes rounded conrners, diagonal crossover etc).

Unicode arrows: http://jrgraphix.net/r/Unicode/2190-21FF
Supplementary arrows A: http://jrgraphix.net/r/Unicode/27F0-27FF
Supplementary arrows B: http://jrgraphix.net/r/Unicode/2900-297F
(oh my eyes)

I realise that there could be no end to this, and "almost" with so many symbols and a fixed-width font, who needs SVG... (Me, me, I need SVG).

Replace github.com/bep/goat with this repo in Hugo

Hey,

Happy to see my changes merged back to its original. I was a little impatient when adding some diagram support to Hugo, and looking at the activity in this repo, I assumed that forking this repo would be the fastest way to getting something out the door.

But I maintain way too many repos as it is already, so I would be happy to retire my fork if you're open to look at future pull requests with bug fixes and maybe some improvements. It would be to have one canonical version of this.

Diagrams as text - Sequence diagram, network diagram - Feature request

Could goAT support writing diagrams as code?

For example, a sequence diagram [1, 3] could be

Alice -> Bob: Hello Bob!
Alice <- Bob: Hello Alice!

Also, drawing computer network diagrams is a very common task. It's even included in goAT examples [2, 4].

Describing these diagrams as text would be much easier and more robust than drawing them one ASCII byte at a time. With Hugo, this would mean just writing my diagrams, saving, and seeing them render in front of my eyes automatically when running 'hugo serve'.

ps. Thanks for goAT!

[1] https://arthursonzogni.com/Diagon/#Sequence

[2] https://github.com/bep/goat/blob/master/examples/icons.svg

[3] sequence-diagram-text-diagon

[4] goat-examples-icons-svg
g

Version Numbering (for GoAT package in the AUR)

Hi! Thank you for working on GoAT, I've found it very useful.

I wanted to make it available for my system so I've recently packaged it for the AUR; this way Arch Linux users can easily install the goat command line utility using their system's package manager.

A couple of notes:

  • I've packaged it as a VCS package. This wouldn't be my first choice, but as there are no tags or releases, this is currently the best approach. Please consider tagging some commits as important versions, this would make the package more stable and enable integrity checks (such as verifying signing keys or sha sums).
  • The utility is installed as go-ascii-tool. Unfortunately, another package (upstream) made it to the "goat" name before me. Users can always alias. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.