HTML+JavaScript diagram builder

For discussing go computing, software announcements, etc.
User avatar
HermanHiddema
Gosei
Posts: 2011
Joined: Tue Apr 20, 2010 10:08 am
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Location: Groningen, NL
Has thanked: 202 times
Been thanked: 1086 times

HTML+JavaScript diagram builder

Post by HermanHiddema »

There was some talk recently of people wishing there was an easier way to create diagrams.

Presenting: http://hiddema.nl/diagrammer/

(beta version, no guarantees, this was only tested in Firefox)

Easy access to the full scala of what is available in the SL diagram format used here, with easy to copy/paste output.

Try it out!

Some tips:
- You can drag any corner or edge of the board to resize the view port, thus creating partial board diagrams.
- Clicking the stone with 1 on it on the far right of the toolbar changes the starting color.
- Move numbers move up automatically (but can be set manually). Right-click the last move to undo it.
- When the tool is the blac stone, right click makes white stones, and vice-versa.

Also, if you want to try a different size board, add #WxH after the url (e.g. http://hiddema.nl/diagrammer/#9x9 for 9x9)

Bug reports & feature requests welcome!

Future features already planned:
- Change the starting move number
- Easier board size change
- Paste existing diagrams to initialize
- Turn on/off coordinates markers
- Maybe create diagrams from SGF (for now, there is http://senseis.xmp.net/tools/sgf2diagram.php for that).

Let me know what you think! :)
mw42
Lives in gote
Posts: 566
Joined: Sat Dec 25, 2010 10:01 pm
Rank: 1k
GD Posts: 0
Universal go server handle: mw42
Has thanked: 39 times
Been thanked: 59 times

Re: HTML+JavaScript diagram builder

Post by mw42 »

That's really fantastic. Thanks!
Last edited by mw42 on Fri May 31, 2013 9:28 am, edited 1 time in total.
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: HTML+JavaScript diagram builder

Post by ez4u »

Wonderful! :clap: :tmbup: :clap: :tmbup: Just what I had in mind.

Quickie - How about a 'clear all' button for the idiots among us? :blackeye:

Not so quickie maybe - What would it take to make it work with the touch screen on an iPad?
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: HTML+JavaScript diagram builder

Post by Kirby »

You, my friend, are awesome.
be immersed
User avatar
Mage
Dies with sente
Posts: 86
Joined: Wed Mar 13, 2013 7:53 pm
Rank: -
GD Posts: 0
KGS: Mages
Tygem: Mages
IGS: Mage
Online playing schedule: Weekends.
Has thanked: 25 times
Been thanked: 19 times

Re: HTML+JavaScript diagram builder

Post by Mage »

Thanks ! It's very nice :clap:
Tempus Vincit Omnia
tj86430
Gosei
Posts: 1348
Joined: Wed Apr 28, 2010 12:42 am
Rank: FGA 7k GoR 1297
GD Posts: 0
Location: Finland
Has thanked: 49 times
Been thanked: 129 times

Re: HTML+JavaScript diagram builder

Post by tj86430 »

Excellent!

Some suggestions for further development, if I may:
- possibility to "import" a diagram in output format
- labels could (optionally) increment a->b->c etc as markers do
- stones without labels could (optionally) alternate colors (as stones with markers do)
Offending ad removed
tj86430
Gosei
Posts: 1348
Joined: Wed Apr 28, 2010 12:42 am
Rank: FGA 7k GoR 1297
GD Posts: 0
Location: Finland
Has thanked: 49 times
Been thanked: 129 times

Re: HTML+JavaScript diagram builder

Post by tj86430 »

ez4u wrote:Quickie - How about a 'clear all' button for the idiots among us? :blackeye:

And by "idiot" you mean those who don't know that reloading the page accomplishes that?
Offending ad removed
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: HTML+JavaScript diagram builder

Post by ez4u »

tj86430 wrote:
ez4u wrote:Quickie - How about a 'clear all' button for the idiots among us? :blackeye:

And by "idiot" you mean those who don't know that reloading the page accomplishes that?

Exactly! For people like me. :salute:
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
User avatar
HermanHiddema
Gosei
Posts: 2011
Joined: Tue Apr 20, 2010 10:08 am
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Location: Groningen, NL
Has thanked: 202 times
Been thanked: 1086 times

Re: HTML+JavaScript diagram builder

Post by HermanHiddema »

ez4u wrote:Wonderful! :clap: :tmbup: :clap: :tmbup: Just what I had in mind.

Quickie - How about a 'clear all' button for the idiots among us? :blackeye:

Not so quickie maybe - What would it take to make it work with the touch screen on an iPad?


Well, first I'd have to get an iPad. :lol:

But seriously, I'll put it on the list and look into it.
User avatar
HermanHiddema
Gosei
Posts: 2011
Joined: Tue Apr 20, 2010 10:08 am
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Location: Groningen, NL
Has thanked: 202 times
Been thanked: 1086 times

Re: HTML+JavaScript diagram builder

Post by HermanHiddema »

tj86430 wrote:Excellent!

Some suggestions for further development, if I may:
- possibility to "import" a diagram in output format
- labels could (optionally) increment a->b->c etc as markers do
- stones without labels could (optionally) alternate colors (as stones with markers do)


- Import was already on the wish list. That one is important, as often people will be responding to other's diagrams.
- Incrementing labels automatically sounds like a good idea, I'll put it on the list.
- I prefer the current left click -> black, right click -> white thing, but I could make it a preference setting.
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: HTML+JavaScript diagram builder

Post by xed_over »

HermanHiddema wrote:Some tips:
- You can drag any corner or edge of the board to resize the view port, thus creating partial board diagrams.
- Clicking the stone with 1 on it on the far right of the toolbar changes the starting color.
- Move numbers move up automatically (but can be set manually). Right-click the last move to undo it.
- When the tool is the blac stone, right click makes white stones, and vice-versa.

Also, if you want to try a different size board, add #WxH after the url (e.g. http://hiddema.nl/diagrammer/#9x9 for 9x9)

can you put these tips directly on that page?
tj86430
Gosei
Posts: 1348
Joined: Wed Apr 28, 2010 12:42 am
Rank: FGA 7k GoR 1297
GD Posts: 0
Location: Finland
Has thanked: 49 times
Been thanked: 129 times

Re: HTML+JavaScript diagram builder

Post by tj86430 »

HermanHiddema wrote:- I prefer the current left click -> black, right click -> white thing

That's fine too, I had missed that.

Of course, having more preferences is always positive (as long as they are easy to find and use)
Offending ad removed
User avatar
murksomat
Beginner
Posts: 11
Joined: Thu Sep 23, 2010 6:10 am
Rank: 2k
GD Posts: 0
KGS: murksomat
Location: Germany
Has thanked: 4 times

Re: HTML+JavaScript diagram builder

Post by murksomat »

Great tool, but I can't use the pasted output because there are linefeed in there. I am using firefox on a linux system.
User avatar
HermanHiddema
Gosei
Posts: 2011
Joined: Tue Apr 20, 2010 10:08 am
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Location: Groningen, NL
Has thanked: 202 times
Been thanked: 1086 times

Re: HTML+JavaScript diagram builder

Post by HermanHiddema »

@xed_over: I've added a "show help" tab at the top.

@murksomat: I see what you mean. Fixed!

@ez4u: Can you check whether it works on the iPad now?
User avatar
daal
Oza
Posts: 2508
Joined: Wed Apr 21, 2010 1:30 am
GD Posts: 0
Has thanked: 1304 times
Been thanked: 1128 times

Re: HTML+JavaScript diagram builder

Post by daal »

This is really very good. Next step is to integrate it into L19...
Patience, grasshopper.
Post Reply