Fork me on GitHub
#hoplon
<
2018-08-27
>
dm319:08:12

is it Christmas already? @jumblerg

dm319:08:20

😄

jumblerg20:08:15

@dm3: heh. not quite so intentionally: i actually happened to be working on an old laptop at home this am, and realized just after i pushed that my upstream remote was still set to the hoplon org on that machine. but yeah, i'll be rolling a bunch of the stuff i've done over the past year into the ui repo.

jumblerg20:08:29

i'm working on a project for work with a few other collaborators and decided to put some of the interface work out there where everyone can use it more easily. first step is to bring the ui api in line with some of my private ui repos, then i'll start retrofitting it with different implementations. i think i've figured out how to do this stuff right - or a lot better, anyway.

jumblerg20:08:18

the most consequential change was lifting the scene graph out of the dom altogether to get rid of percentages. this let me replace them with functions containing a reference to the parent so you can do things like :eh #(/ (:bh %) 2), which means "set the horizontal extent to half of the parent's horizontal body".

jumblerg20:08:00

this is much better than "50%", which you can't do math on, since it actually means 1. take half 2. of the parent 3. in the same dimension 4. when it becomes available.

jumblerg20:08:10

this it turn makes it possible to do flexible layouts in custom components without lots of shenanigans.

jjttjj20:08:00

very cool, looking forward to catching up with these changes

jumblerg21:08:22

don't use any of the stuff i just pushed yet, otherwise i'm liable to break your shit on the next push. i'll endeavor to update the readme and put a jar out there in the next few weeks.

jjttjj21:08:28

cool yeah won't have a chance for a bit anyway