ImageServer

ImageServer

Loads images from server. Settings are read from manifest.json

Constructor

new ImageServer(owner)

Source:
Parameters:
Name Type Description
owner Object

An instance of MiniMemory

Classes

ImageServer

Methods

getCardImages(options) → {Object}

get Images from server.

Source:

get Images from server. Server path/url retrieved from manifest.json

Parameters:
Name Type Description
options Object

width, height and number of images to be requested from server

Returns:

Returns Fetch Object that resolvest image-url response

Type
Object

done(res, options)

Create Images (HTMLImageElement) and load images from server

.

Source:

Create Images (HTMLImageElement) and load images from server

Parameters:
Name Type Description
res Object

{images:[], card:[]}

options Object

width, height and number of images to be requested from server