CardKitServer

CardKitServer

new CardKitServer(cardkit)

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

Methods

renderToImage(scale)

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

renderToString() → {string}

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

CardKitServer

Additional CardKit class used for rendering on the server