Skip to content
Discussion options

You must be logged in to vote

You can use maker.js on the backend, in node.js - from php you’d probably need to spawn a shell command.

Your example json:

{
    "models": {
        "myRectangle": {
            "type": "rectangle",
            "width": 100,
            "height": 50,
            "origin": [0, 0]
        }
    }
}

Is not in the schema that maker.js uses. Maker.js does have concepts like Rectangle but that is code driven, and not in declarative json. When using json directly you will be working at a low level with the 3 primitives: line, circle and arc.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Ybelyavsky
Comment options

@Ybelyavsky
Comment options

@Ybelyavsky
Comment options

@danmarshall
Comment options

Answer selected by Ybelyavsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants