Constructor # new Spritesheet(json) Spritesheet constructor Parameters: Name Type Description json Object Source: modules/sprite/sprite.js, line 205 Members # file Getter for the image file Source: modules/sprite/sprite.js, line 218 Methods # extract(position, selectoropt, optionsopt) → {Sprite} Group images from the spritesheet into a single sprite Parameters: Name Type Attributes Default Description position PositionDefinition Position of the sprite selector String | function | RegExp <optional> "*" Match against the spritesheet images name using a glob pattern, a validation function or a regular expression options ImageOptions <optional> Options of the sprite Source: modules/sprite/sprite.js, line 258 Returns: Type Sprite # get(selectoropt) → {Array} Return all the frames corresponding to a selector Parameters: Name Type Attributes Default Description selector String | function | RegExp <optional> "*" Match against the spritesheet images name using a glob pattern, a validation function or a regular expression Source: modules/sprite/sprite.js, line 227 Returns: Type Array