https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    05/10/2023, 2:51 PM
    http://haxeui.org/api/haxe/ui/components/canvas/
  • b

    bright-gpu-74537

    05/10/2023, 2:52 PM
    http://haxeui.org/explorer/#basic/canvas
  • b

    bright-gpu-74537

    05/10/2023, 2:52 PM
    this is probably a better place to see it
  • h

    happy-agent-4114

    05/10/2023, 2:53 PM
    wait so the content of is literally raw svg
  • b

    bright-gpu-74537

    05/10/2023, 2:53 PM
    i think ill add a simple "node editor" to the bottom examples of the component explorer when i get bored in meetings
  • b

    bright-gpu-74537

    05/10/2023, 2:53 PM
    no, its not svg, it just looks like it, but you dont have to use that either... you can do it all dynamically (like the animated graph)
  • h

    happy-agent-4114

    05/10/2023, 2:55 PM
    since when is this a thing

    https://cdn.discordapp.com/attachments/565569107701923852/1105870812692619274/image.png▾

  • b

    bright-gpu-74537

    05/10/2023, 2:56 PM
    its in that file
  • b

    bright-gpu-74537

    05/10/2023, 2:56 PM
    Copy code
    haxe
        private function createCubicBezier(graphics:ComponentGraphics, startX:Float, startY:Float, x1:Float, y1:Float, x2:Float, y2:Float, x:Float, y:Float) {
            graphics.strokeStyle("blue");
            graphics.moveTo(startX, startY);
            graphics.cubicCurveTo(x1, y1, x2, y2, x, y);
            
            graphics.strokeStyle("red");
            graphics.moveTo(startX, startY);
            graphics.lineTo(x1, y1);
    
            graphics.strokeStyle("red");
            graphics.moveTo(x2, y2);
            graphics.lineTo(x, y);
            
        }
  • b

    bright-gpu-74537

    05/10/2023, 2:56 PM
    its just for the little demo graphs
  • b

    bright-gpu-74537

    05/10/2023, 2:57 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1105871135897309265/image.png▾

  • h

    happy-agent-4114

    05/10/2023, 2:58 PM
    haxeui docs are wild bc I'll spend a day writing a function that draws ellipses and then it turns out drawEllipse was already a thing and I just read the wrong page
  • h

    happy-agent-4114

    05/10/2023, 2:58 PM
    also thank you this helps a ton
  • b

    bright-gpu-74537

    05/10/2023, 2:59 PM
    keeps you on your toes? 😄
  • h

    happy-agent-4114

    05/10/2023, 2:59 PM
    if I wanted to be kept on my toes I would use typescript
  • b

    bright-gpu-74537

    05/10/2023, 2:59 PM
    np, ill add a (really simple) node editor in there at some point - seems like another nice demo
  • h

    happy-agent-4114

    05/10/2023, 3:00 PM
    oh def yeah
  • h

    happy-agent-4114

    05/10/2023, 3:00 PM
    are the boxes on your node editor containers or custom drawn canvas elements, also
  • h

    happy-agent-4114

    05/10/2023, 3:01 PM
    bc I can see either of those working but I feel like it would be weird to do it the latter way
  • b

    bright-gpu-74537

    05/10/2023, 3:01 PM
    yeah, they would just be custom haxeui components (ie, yes, containers)... canvas didnt even exist when i wrote that node editor
  • h

    happy-agent-4114

    05/10/2023, 3:40 PM
    is there documentation for module.xml somewhere
  • h

    happy-agent-4114

    05/10/2023, 3:40 PM
    I can't find it
  • f

    full-journalist-82607

    05/10/2023, 4:02 PM
    There is this page that can help http://haxeui.org/api/guides/modules.html
  • f

    full-journalist-82607

    05/10/2023, 4:04 PM
    That was the beginning of some documentation that I didn't finish https://cdn.discordapp.com/attachments/565569107701923852/1105888003244695552/message.txt
  • h

    happy-agent-4114

    05/10/2023, 4:17 PM
    I found https://github.com/haxeui/haxeui-guides/blob/master/001-Guides/000-Modules.md first but I think these are the same
  • f

    full-journalist-82607

    05/10/2023, 4:26 PM
    Indeed it's the same
  • h

    happy-agent-4114

    05/10/2023, 8:21 PM
    How does packaging assets work on html5
  • h

    happy-agent-4114

    05/10/2023, 8:22 PM
    using module.xml specifically
  • h

    happy-agent-4114

    05/10/2023, 8:25 PM
    or do I just serve things at paths
  • h

    happy-agent-4114

    05/10/2023, 8:44 PM
    hopefully this toolkit ends up actually working but I don't even have click and drag logic yet

    https://cdn.discordapp.com/attachments/565569107701923852/1105958631008125028/image.png▾

1...166216631664...1687Latest