API Documentation for: 0.6.0
Show:

SVGLoader Class

Defined in: SVGLoader:41
Module: PreloadJS

A loader for SVG files.

Constructor

SVGLoader

(
  • loadItem
  • preferXHR
)

Defined in SVGLoader:41

Parameters:

Item Index

Methods

Methods

_formatResult

(
  • loader
)
Object private

Defined in _formatResult:84

The result formatter for SVG files.

Parameters:

Returns:

canLoadItem

(
  • item
)
Boolean static

Defined in canLoadItem:71

Determines if the loader can load a specific item. This loader can only load items that are of type SVG

Parameters:

  • item LoadItem | Object

    The LoadItem that a LoadQueue is trying to load.

Returns:

Boolean:

Whether the loader can load the item.