CardKitServer

CardKitServer

Additional CardKit class used for rendering on the server

CardKitServer

new CardKitServer(cardkit)

Constructor takes in an instance of CardKit and stores it for later user
Source:
Parameters:
Name Type Description
cardkit CardKit An instance of CardKit

Methods

renderToImage(scale)

Renders the current configuration to an image
Source:
Parameters:
Name Type Default Description
scale number 2 The scale to output at

renderToString() → {string}

Renders the card as an SVG string
Source:
Returns:
Type:
string
The SVG string representation of the image