File: jxg.h

package info (click to toggle)
jsxgraph 1.5.0%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,020 kB
  • sloc: javascript: 76,112; xml: 5,869; java: 1,072; python: 767; php: 181; makefile: 154; cpp: 76; sh: 9
file content (34 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once

#include <array>
#include <string>

#include <emscripten/val.h>
#include <emscripten/bind.h>

namespace JXG
{
    struct BoardOptions;

    class Board
    {
        public:

        static Board initBoard(std::string box, const BoardOptions& options);

        emscripten::val createPoint(std::array<int, 2> coords);

        private:

        emscripten::val myBoard;

        Board(emscripten::val board);
    };

    struct BoardOptions
    {
        std::array<int, 4> boundingBox;
        bool grid;
        bool axis;
    };
}