Skip to content

Setup your own bookmarks, build inlay frieze with different species.

License

Notifications You must be signed in to change notification settings

smartinus44/partheno

Repository files navigation

Geometric bookmark patterns

Setup

npm install
npm start

See demo home page

http://localhost:8080/

See api

http://localhost:8080/api-docs/

What is Partheno ?

Setup your own bookmarks! Build inlay frieze with different wood species.

You are free to adjust:

  • The number of pairs of triangles.
  • The number of columns of triangles.
  • The dimensions of the bookmark.
  • The wood specie used for the background.
  • Even and odd background wood species for triangles.
  • Mind the cutting lines with show strokes option.
  • Set if downloadable or not.

Params

Param title Possible value
uniqueId an unique HTML id
height from 100 to 1000
width from 100 to 300
background see List of pattern species
numberOfpairs from 1 to 15
evenPattern see List of pattern species
oddPattern see List of pattern species
showStrokes true/false
columns_per_width from 1 to 15
can_download true/false
patterns a javascript array of "string" values

List of pattern species

Dataset Value Show
1 Aniegré alt text
1 Bubimga alt text
1 Chene alt text
1 Etre alt text
1 Eucalyptus alt text
1 Merisier alt text
1 Noyer alt text
1 Sycomore alt text
1 Teck alt text
2 Chene large vanille alt text
2 Citronnier alt text
2 Cypres alt text
2 Erable US alt text
2 Etre Blanc alt text
2 Frêne du Japon alt text
2 Merisier de France alt text
2 Poirier alt text
2 Sycomore alt text
3 Erable alt text
3 Poirier alt text
3 Sycomore alt text
3 Etre Blanc alt text
3 Citronnier alt text
3 Chene alt text
3 Cypres alt text
3 Frene alt text
3 Merisier alt text

Example of utilisation

In a div in a html file:

<div id="zone-demo"></div>

In a javascript file:

    window.onload = function () {
        // Let's construct a non editable canvas without link.
        let canvasOfDemo = new BookMark('demo',
            300,
            300,
            "images/dataset/2/FreneJapon.jpg",
            3,
            "images/dataset/2/Citronnier.jpg",
            "images/dataset/2/Cypres.jpg",
            false,
            1,
            true,
            {
                'background': [
                    "images/dataset/2/FreneJapon.jpg",
                    "images/dataset/2/ErableUS.jpg",
                    "images/dataset/2/Sycomore.jpg",
                    "images/dataset/2/cheneLargeVanille.jpg",
                ],
                'triangles': [
                    "images/dataset/2/Poirier.jpg",
                    "images/dataset/2/Citronnier.jpg",
                    "images/dataset/2/Cypres.jpg",
                    "images/dataset/2/EtreBlanc.jpg",
                    "images/dataset/2/MerisierDeFrance.jpg"
                ]
            }
        );
    };

It gives the following result:

alt text