Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 12 2017 11:19

    ochrons on master

    Update Workbench plugin to sbt … (compare)

  • Nov 11 2017 12:51

    ochrons on master

    Upgrade to SBT 1.0 Add scalafm… (compare)

  • Nov 11 2017 11:12

    ochrons on master

    Update Travis CI config. (compare)

  • Nov 06 2017 22:00

    ochrons on master

    Add support for raw CSS classes… (compare)

  • Nov 03 2017 16:55

    ochrons on master

    Remove event listeners when a w… (compare)

  • Nov 02 2017 13:51

    ochrons on master

    Widget event handlers for click… (compare)

  • Sep 24 2017 20:03

    ochrons on master

    Add GitBook for user documentat… (compare)

  • Sep 09 2017 12:06

    ochrons on master

    Update README (compare)

  • Sep 07 2017 13:03

    ochrons on master

    Major refactoring to separate f… (compare)

  • Aug 17 2017 21:21

    ochrons on master

    Fix unnecessary update of an Em… (compare)

  • Aug 16 2017 22:34

    ochrons on master

    Add widget styling things like … (compare)

  • Aug 12 2017 21:03

    ochrons on master

    Add support for image reference… (compare)

  • Jul 05 2017 20:20

    ochrons on master

    Add support for using palette c… (compare)

  • Jul 04 2017 23:00

    ochrons on master

    Implement a fast DenseIntMap to… (compare)

  • Jul 02 2017 16:47

    ochrons on master

    Optimize performance and add ta… (compare)

  • Jul 02 2017 16:02

    ochrons on master

    Optimize performance and add ta… (compare)

  • Jul 02 2017 15:53

    ochrons on master

    Optimize performance and add ta… (compare)

  • Jul 01 2017 19:20

    ochrons on master

    Create some early performance t… (compare)

  • Jun 29 2017 20:49

    ochrons on master

    Improve table construction func… (compare)

  • Jun 28 2017 22:19

    ochrons on master

    Fix CSS style generation and te… (compare)

Otto Chrons
@ochrons
dunno if it helps, but with DOM I use box-sizing: border-box; which means the borders and padding are calculated into the element width, not added on top of it
so in your case that would mean a final size of 50x50 with a 46x46 image inside the 2px border
Otto Chrons
@ochrons
this is the recommended practice these days, https://css-tricks.com/international-box-sizing-awareness-day/
Matt Hicks
@darkfrog26
@ochrons thanks...that's very helpful. :)
my hesitation to going this route is the potential for added complexity. For example, imagine you have an image you want to size to exactly half, but if you don't account for the border or padding then it will actually be less, creating greater pixelation.
Otto Chrons
@ochrons
I've started a "Starter" project for Suzaku, intended to be both a simple tutorial and a starting point for your own Suzaku projects
no documentation yet, though :)
Matt Hicks
@darkfrog26
@ochrons that's an awful lot of setup
Otto Chrons
@ochrons
do you mean compared to a typical React boilerplate or something else? ;)
Otto Chrons
@ochrons
Suzaku Scala.js presentation from last Friday https://www.youtube.com/watch?v=E_ykcwHpqlA
Matt Hicks
@darkfrog26
@ochrons I mean that next generation libraries should attempt to reduce boilerplate as much as possible...not accept that it's smaller than the existing ridiculous libraries. :-p
@ochrons I've been working on a simple example application for youi (https://github.com/outr/youi-example) and I'm still working on making it more concise as I'm not happy with all the boilerplate still required, but it's a fraction of the size of Suzaku. :-p
....and it's got a complete multi-user chat application as an example
Otto Chrons
@ochrons
so you imagine this is going to be the final example of Suzaku as I've worked all of one hour on it? :D
Matt Hicks
@darkfrog26
@ochrons certainly not, but I'm just trying to encourage you to focus some serious effort of simplification (which seems to be something many Scala libraries seem to ignore)
Otto Chrons
@ochrons
Yeah. My long time principle is to make things as simple as possible but not any simpler
It's about finding a balance between features, defaults, configurability and simplicity
Vladimir
@vladimir-lu
hello - saw your presentation at ClojuTRE on youtube
trying to get started
what is the webDemo supposed to look like?
it looks like a jumbled multicoloured grid of different boxes
Otto Chrons
@ochrons
you got it right, it's just a technical test I'm using :)
I'm working on the suzaku-starter project which would provide a more meaningful basis for your own stuff
but that is, too, very early on ATM
Vladimir
@vladimir-lu
hehe yes - it wasn't resolving the snapshot versions
Otto Chrons
@ochrons
it's only for the brave for now ;)
Vladimir
@vladimir-lu
publishLocal on suzaku was failing with duplicate entry suzaku/platform/Platform.scala
but i haven't read the dev guide fully yet
but that's just for the coreJVM/compile:packageSrc
really i've spent all of 30 mins looking at it - looks very interesting :)
Otto Chrons
@ochrons
yea, you can ignore that fail for now
Otto Chrons
@ochrons
did a bit of refactoring and now Suzaku consists of 13 libraries :stuck_out_tongue_winking_eye:
layered architecture going from shared -> ui -> web-ui and shared -> app -> web-app etc
Otto Chrons
@ochrons
pushed the new, refactored library and starter app to repo
publishes 14 artifacts :sweat_smile:
Matt Hicks
@darkfrog26
@ochrons determining which libraries should be sub-projects and which libraries should be separate projects is a difficult task....youi currently publishes 25 sub-projects
Otto Chrons
@ochrons
yea, takes some time to figure those out
Otto Chrons
@ochrons
good thing refactoring in Scala is quite trivial ;)
Matt Hicks
@darkfrog26
....with the right IDE at least. ;)
Matt Hicks
@darkfrog26
@ochrons not sure if this is something you'd be interested, but youi now has a type-safe representation of Google Fonts: https://github.com/outr/youi/blob/master/canvas/shared/src/main/scala/io/youi/font/GoogleFont.scala
Otto Chrons
@ochrons
thx, might prove useful!
Matt Hicks
@darkfrog26
@ochrons I'm generating it exclusively for TTF, but let me know if you need WOFF and I can add that. Since my focus is OpenType.js I read TTF files directly in the browser.
Anton Kulaga
@antonkulaga
I looked into Suzaku starter and I have no idea how to use it!
It uses some Button widget however it is not clear how to build any basic features (like ToDos for instance)
Otto Chrons
@ochrons
it's WIP, nothing much to see yet
now that you mentioned it, I pushed a new version :)
it has a bit more functionality
Matt Hicks
@darkfrog26
@ochrons don't you have an example app?