Code Monkey home page Code Monkey logo

circuiteer's People

Contributors

stuf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

circuiteer's Issues

Persist editor state

Plan support for persisting editor state in a suitable backend.

Ideas/thoughts/things:

  • maybe use a localStorage/sessionStorage-like API?
  • by default localStorage, but could be a custom back-end
  • use checkpoints/batches instead of updating instantly on state change

Use matrices for positions and dimensions instead of tuples

For the sakes of simplicity in handling positions and sizes w.r.t. the grid, use Matrix as exported by common/linear instead of manually converting between grid-space and screen-space position.

Remember to create an isomorphism for using relevant data either as scaled to grid-space or screen-space.

Note to self:

// Iso for reading data as a matrix, but data is written as an array
const matrixI = L.iso(xy => new Matrix(xy), m => m.data.flat())

// Parametric iso when for reading values as grid-space but writing them in screen-space
const screenI = gxy => [matrixI, L.iso(m => m.div(gxy).map(Math.round), m => m.mul(gxy))]

v0.1.0 To-do

To not entirely get swamped up in random ideas on what to do and what not to do, and ideas on future improvements, a to-do list of things required for a proper v0.1.0 release with (hopefully) linked related issues.

  • Application
    • Import & Export of editor state (#3)
    • Primitive shopping list view (no expansion of composite/refined elements yet) (#4)
    • UI for changing application options and/or settings (#5)
  • Editor
    • Activate/deactivate individual modules (#6)
    • Allow deletion of placed entities (#7)
  • Power Status
    • Show power status breakdown of different power types and display gains/losses for affected power types based on location (#8)

Primitive shopping list view

A simple countBy operation for all placed entities recipes.

Due to the way materials are represented internally at the moment, implementing expansion of composite and refined resources would end up in an unnecessarily complex kludge (follow-up for this in another issue).

Viewport controls for editor canvas

Currently the editor canvas lacks any kind of scroll/pan or zooming feature.

After first release, revisit editor canvas implementation and implement (flexible) controls for choosing editor view.

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.