Rejection function passed to a loader's load
method. Call when a Flipnote couldn't be loaded.
Resolution function passed to a loader's load
method. Call when a Flipnote has been loaded successfully.
The result should be Flipnote file data as an ArrayBuffer.
Flipnote type. An object with this type is guranteed to implement the {@link FlipnoteParser} API.
Flipnote layer visibility
RGBA color
Defines the colors used for a given Flipnote format
Optional settings to pass to a Flipnote parser instance. See PpmParserSettings and KwzParserSettings
Flipnote sound flags, indicating which sound effect tracks are used on a given frame
Source to load a Flipnote from. Depending on the operating envionment, this can be:
Implements loading a Flipnote from a given source type, and returns a promise which resolves to a Flipnote parser instance.
Represents a decoded Flipnote thumbnail image
Image data
Image height in pixels
Image width in pixels
GIF RGBA palette color definition
KWZ parser options for enabling optimizations and other extra features
Automatically crop out the border around any frames
Apply special cases for DSi library notes
Nintendo messed up the initial adpcm state for a bunch of the PPM to KWZ conversions on DSi Library. They are effectively random. By default flipnote.js will try to make a best guess, but you can disable this and provide your own state values
This is only enabled if dsiLibraryNote
is also set to true
Manually provide the initial adpcm predictor for the BGM track.
This is only enabled if dsiLibraryNote
is also set to true
Manually provide the initial adpcm step index for the BGM track.
This is only enabled if dsiLibraryNote
is also set to true
Manually provide an initial adpcm predictor for each sound effect track.
This is only enabled if dsiLibraryNote
is also set to true
Manually provide an initial adpcm step index for each sound effect track.
This is only enabled if dsiLibraryNote
is also set to true
Skip full metadata parsing for quickness
PCM audio buffer types. Supports s16_le, or float32_le with a range of -1.0 to 1.0
PPM parser options for enabling optimizations and other extra features. None are currently implemented
KWZ framerates in frames per second, indexed by the in-app frame speed
RSA public key used to verify that the KWZ file signature is genuine.
This cannot be used to resign Flipnotes, it can only verify that they are valid
PPM framerates in frames per second, indexed by the in-app frame speed. Frame speed 0 is never normally used
RSA public key used to verify that the PPM file signature is genuine.
This cannot be used to resign Flipnotes, it can only verify that they are valid
flipnote.js library version (exported as flipnote.version
). You can find the latest version on the project's NPM page.
Convert a KWZ Flipnote Studio ID (from a Nintendo DSi Library Flipnote) to the format used by PPM Flipnote Studio IDs.
Will return null
if the conversion could not be made.
Convert a PPM Flipnote Studio ID to the format used by KWZ Flipnote Studio IDs (as seen in Nintendo DSi Library Flipnotes).
Will return null
if the conversion could not be made.
NOTE: KWZ Flipnote Studio IDs contain an extra two characters at the beginning. It is not possible to resolve these from a PPM Flipnote Studio ID.
Convert a PPM Flipnote Studio ID to an array of all possible matching KWZ Flipnote Studio IDs (as seen in Nintendo DSi Library Flipnotes).
Will return null
if the conversion could not be made.
Get the region for any valid Flipnote Studio or Flipnote Studio 3D user ID
Get the region for any valid Flipnote Studio 3D user ID. NOTE: This may be incorrect for IDs that are not from the DSi Library.
Get the region for any valid Flipnote Studio user ID
Indicates whether the input is a valid Flipnote Studio or Flipnote Studio 3D user ID
Indicates whether the input is a valid DSi Library user ID
Indicates whether the input is a valid Flipnote Studio 3D user ID
Indicates whether the input is a valid Flipnote Studio user ID
Source to load a Flipnote from. Depending on the operating environment, this can be:
Config settings to pass to the parser, see FlipnoteParserSettings
Optional list of file loaders (LoaderDefinition) when attempting to load a Flipnote. Loaders are tried in sequence until a matching one is found for the requested input.
Tests if a KWZ Flipnote Studio ID (from a Nintendo DSi Library Flipnote) matches a given PPM-formatted Flipnote Studio ID.
Loader for ArrayBuffer objects
Loader for Blob objects (browser only)
Loader for File objects (browser only)
Loader for Buffer objects (Node only)
Loader for web url strings (Node only)
Loader for web url strings (Browser only)
KWZ color defines (red, green, blue, alpha)
PPM frame color defines (red, green, blue, alpha)
A list of LoaderDefinition items to use when attempting to load a Flipnote. Loaders are tried in sequence until a matching one is found for the requested input.