R
R
Rinat Bakiev2019-07-18 07:24:11
JavaScript
Rinat Bakiev, 2019-07-18 07:24:11

A tool for designing with code?

Hello!
If the task is to develop a tool with which you can place predefined blocks on a flat coordinate system (or even find the sizes of such blocks), but with a restriction on placement relative to each other (rules), then in which direction to dig? CAD with python capability? Any libraries using SVG? Any GIS?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stalker_RED, 2019-07-18
@bakiev

The description is too vague. Autocad, or some other *cad, is also suitable for it, there are many of them, and some are free.
If you write yourself, then everything has already been invented before you . There are also libraries for different languages.
And yes, then you can convert the result to svg or whatever you need.

R
Robur, 2019-07-18
@Robur

The way you described the task - you can do anything, you just need JS and a bunch of divs to draw blocks.
A library to "draw blocks on a constrained screen and maybe even find their sizes" is not needed.
If the task is to develop some kind of system, then you take it and develop it in accordance with the task, the necessary functionality, the given restrictions, and so on.

G
grinat, 2019-07-18
@grinat

Interact js for moving, manual rules. Gridster and analogues are available, from there you can take the idea of ​​moving blocks along the grid and preventing overlap. Svg and canvas are bad at rendering any arbitrary content, if the blocks are more complicated than the frame plus text, there will be a lot of fun, there are d3, svg.js, etc., but they don’t make life much easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question