meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
kludge` has quit [Disconnected by services]
kludge` has joined #opal
Kilobyte|StupidC has joined #opal
Kilo`byte has quit [*.net *.split]
<e_dub> meh`if I'm using opal-browser and I have something like https://gist.github.com/edubkendo/9883445 and wanted to set the transform attribute on that g element, can I do that in the dsl ?
<meh`> e_dub, transform attribute as actual element attribute?
<meh`> g(transform: "whatever")
<meh`> but you might as well wait I merge the vetta SVG DSL into paggio :)
<meh`> and if you need it, it will be tonight/tomorrow
<e_dub> maybe I have something wrong but I'm using the dagre-d3 lib and they have something like this: <g transform="translate(20,20)"/> . I've not worked with svg before this
<e_dub> and that would be awesome. I'm trying to get opal into our stack here at work
<meh`> e_dub, in the case of the DOM DSL, it would be g(transform: 'translate(20,20)')
<meh`> which is pretty ugly
<meh`> with the SVG DSL
<meh`> it would be g.transform(translate(20, 20))
<e_dub> yeah that's nicer for sure
<meh`> it also has a lot of cool stuff for paths
<meh`> a DSL to generate paths
<e_dub> oh nice. I was gonna wrap some of d3 but may be uneeded then
<meh`> https://github.com/meh/vetta it was here
<meh`> (and will be)
<meh`> (in few months)
<meh`> but the DSL will be merged into paggio this morning, for breakfast
<meh`> and be available to opal-browser through an SVG { } helper
<e_dub> awesome, sweet breakfast
<meh`> e_dub, an opinion
<meh`> do you think it would be better in the SVG DSL to have id and class as explicit calls?
<meh`> as in, g.class(:boss).transform(translate(20, 20))
<meh`> rather than g.boss.transform(translate(20, 20))
<meh`> I think it maps better, since most of SVG is attributes anyway
<meh`> while in HTML it's mostly classes and ids
<meh`> now that I think of it
<meh`> in the current dsl
<e_dub> Yeah that makes sense. I'd document it though, since it breaks from the DOM dsl
<meh`> it can be mapped as g.boss transform: 'translate(20, 20)'
<meh`> e_dub, it would be documented, how common is the use of classes and ids in svg?
<meh`> they are used for cross references
<meh`> mmh
<e_dub> I havent done a lot with svg before, but seems like class and id gets used for styling stuff
e_dub has quit [Quit: It's a hard knock life]
e_dub has joined #opal
brixen has quit [Ping timeout: 246 seconds]
brixen has joined #opal
ryanstout has quit [Quit: ryanstout]
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
ch007m has joined #opal
elia has joined #opal
e_dub has quit [Read error: No route to host]
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
ch007m has quit [Read error: Connection reset by peer]
ch007m has joined #opal
dimaursu16 has quit [Ping timeout: 252 seconds]
dimaursu16 has joined #opal
barry_ has joined #opal
barry__ has joined #opal
barry_ has quit [Ping timeout: 240 seconds]
e_dub has quit [Quit: It's a hard knock life]
DrShoggoth has joined #opal
[o__o] has left #opal [#opal]
boberetezeke has joined #opal
[o__o] has joined #opal
e_dub has joined #opal
boberetezeke has quit [Ping timeout: 252 seconds]
boberetezeke has joined #opal
ch007m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ch007m has joined #opal
ryanstout has joined #opal
barry__ has quit [Remote host closed the connection]
boberetezeke has quit [Ping timeout: 252 seconds]
[o__o] has quit [Remote host closed the connection]
[o__o] has joined #opal
elia has quit [Ping timeout: 265 seconds]
boberetezeke has joined #opal
boberetezeke has quit [Ping timeout: 252 seconds]
e_dub has quit [Quit: ZZZzzz…]
boberetezeke has joined #opal
e_dub has joined #opal
boberetezeke has quit [Ping timeout: 252 seconds]
barry_ has joined #opal
barry_ has quit [Ping timeout: 246 seconds]
ch007m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ch007m has joined #opal
boberetezeke has joined #opal
barry_ has joined #opal
ch007m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barry_ has quit [Remote host closed the connection]
elia has joined #opal
barry_ has joined #opal
barry_ has quit [Remote host closed the connection]
barry_ has joined #opal
barry_ has quit [Remote host closed the connection]
barry_ has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
boberetezeke has quit [Ping timeout: 252 seconds]
elia has joined #opal
boberetezeke has joined #opal
barry_ has quit []
boberetezeke has quit [Ping timeout: 252 seconds]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
boberetezeke has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
DrShoggoth has quit [Quit: Leaving]
boberetezeke has quit [Ping timeout: 252 seconds]
dimaursu16 has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal