Coder Social home page Coder Social logo

tone-row / react-xy-mixer Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.21 MB

A react component for mixing vectors using barycentric coordinates and a 2-dimensional slider

Home Page: https://react-xy-mixer.tone-row.com

JavaScript 1.09% CSS 0.52% TypeScript 98.25% Shell 0.14%
react slider barycentric-coordinates weights xy barycentric react-input input input-method typescript

react-xy-mixer's Introduction

  • move to multi package project with rollup export and demo page

  • how can you improve a11y

  • mask = "polygon" (clip handle inside polygon) ((automatically makes boundary polygon as well)) "box" (clip handle inside box)

  • support initial position (in addition to initial node)

  • ability to pass children to mixer directly into svg, for like gradients, defs, etc

  • maybe polygonProps, handleProps... things like that... :D

  • allow passing custom handler element

  • support initial node

  • encapsulate lalolab into the component

  • clicking on svg should also move point to location of click

  • move all props to hook

  • width and height are over-writing things attributes on svg, don't do that unless you mean to: change prop to size

  • allow passing stroke width directly and accomodate it in the size Fixed by handleOffset

  • should i normalize the entry points, isn't it true that nothing can be expressed outside the bounds that can't be expressed inside?

  • not sure if we should have a default polygon boundary in AUTO layout mode. Maybe it would be more preditable if box boundary was default and polygon was a choice.

  • boundary prop = "polygon" (formed by nodes); "box" (bounding box around all nodes) "user" (this means something else... not sure how to process it yet; i think this means we wouldn't normalize nodes and we wouldn't change viewbox or something)

basically there are the

nodes (and the polygon formed by them) then there's the node bounding box, the smallest box drawn around them then there's the background, which is the bounding box with additonal margin for the handle

react-xy-mixer's People

Contributors

rob-gordon avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.