Simple vector signature service to be used to convert signatures.
Signatures from the client-side into beautiful files ready to be downloaded.
Supported file format include:
- SVG - Scalable Vector Graphics
- PDF - Portable Document Format
- HPGL - Hewlett-Packard Graphics Language
- Canvas based drawing, to be used in signatures
- Viewport for drawing of text and emoji
- Uses canvas2svg for SVG output
Name | Type | Default | Description |
---|---|---|---|
BASE_URL |
str |
http://localhost:3000 |
The base URL that is going to be used in the construction of external URLs for Signatur. |
SIGNATUR_KEY |
str |
None |
Secret key that should be passed in protected calls so that the server side "trusts" the client side (authentication). |
HEADLESS_URL |
str |
https://headless.stage.hive.pt |
The base URL to be used to access Headless. |
PRINT_URL |
str |
https://colony-print.stage.hive.pt |
The base URL to be used to access Colony Print. |
PRINT_NODE |
str |
default |
The name of the print node to be used when accessing Colony Print. |
PRINT_PRINTER |
str |
printer |
The name of printer (within print node) to be used by Colony Print. |
PRINT_KEY |
str |
null |
The secret key to be used when accessing Colony Print service. |
To be able to enable printing the following JavaScript code should be used inside Browser's JavaScript console:
localStorage.setItem("url", "https://colony-print.stage.hive.pt");
localStorage.setItem("node", "${node-name}");
localStorage.setItem("printer", "${node-printer}");
localStorage.setItem("key", "${server-key}");
To read the configuration you can use the following JavaScript code:
console.info(localStorage.getItem("url"));
console.info(localStorage.getItem("node"));
console.info(localStorage.getItem("printer"));
console.info(localStorage.getItem("key"));
To add a new emoji to the system the following steps should be followed:
- Determine the right file name for the new emoji font file (e.g.
coolemojis.ttf
for laser andcoolemojisp.ttf
for pantogrpah) - Place the new font file in the
static/fonts
directory - Add the new emoji "characters" to the
emoji
array in theviewport.ejs
file - Test the using the local machine
yarn && yarn dev
- Release a new version of the system (Docker Image)
Signatur is currently licensed under the Apache License, Version 2.0.