This repo contains samples for Heaps DomKit components and CSS.
Heaps javascript build of this repo is available here.
- Install Hashlink
- Install NodeJS if not present
- run
npx lix download
to download libraries haxe hl.hxml
hl build/domkit-sample.hl
- DomKit components
- DomKit classes
- DomKit filters
- custom CSS property parsing for h2d.Tile, see
parseTile
in MyCustomCSSParser.hx
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
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.
Font m6x11 by Daniel Linssen