Skip to content

bh213/heaps-domkit-sample

Repository files navigation

Heaps DomKit samples

This repo contains samples for Heaps DomKit components and CSS.

Live example

Heaps javascript build of this repo is available here.

Building

  1. Install Hashlink
  2. Install NodeJS if not present
  3. run npx lix download to download libraries
  4. haxe hl.hxml
  5. hl build/domkit-sample.hl

Samples

  • DomKit components
  • DomKit classes
  • DomKit filters
  src: perlin(64, 64, 5.0, red);
  • dynamically adding and removing DomKit components
  • custom CSS property parsing: fonts, see parseFont in MyCustomCSSParser.hx
font:myfont(m6x11);
  • h2d.Flow based components with various selectors
  • DomKit CSS selectors
  • CSS selectors and dynamically adding & removing DomKit components
  • @:uiComp - DomKit companion classes. Also see them used in Heaps source code

Disclaimer

DomKit is not really well documented and is lacking example code (hence this repo) so be aware that code here might not be follow the best practices or could even be completely wrong.

Attribution

Font m6x11 by Daniel Linssen

About

Samples for DomKit library used by haxe Heaps 3d engine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published