Namespace: Creap

Creap

Source:

Classes

Application
Content
Emitter
Loader
Point
Rect
ReplaceData
Size

Namespaces

encoding
options

Type Definitions


ApplicationOption

Type:
  • object
Properties:
Name Type Argument Default Description
width number <optional>
lib.properties.width

Horizontal resolution of canvas.

usePreRender bool <optional>
true

Whether render bitmaps before starting the content.

useWebGL bool <optional>
true

Whether use webGL render.

typeKit TypeKitData <optional>
null

Data related to TypeKit font used in content. (since v1.1.1)

googleFont GoogleFontData <optional>
null

Data related to GoogleFont used in content. (since v1.1.1)

Source:

GoogleFontData

Type:
  • object
Properties:
Name Type Description
families array.<string>

This is as the following array in html file built by animate CC.

<script>
    var gFontsFamilies = ["Alegreya","Gloria Hallelujah"];
</script>
Since:
  • 1.1.1
Source:

ImageDefinitionData

Type:
  • object
Properties:
Name Type Description
Creap.ImageDefinitionData#url string

Image URL.

Creap.ImageDefinitionData#width number

Image width.

Creap.ImageDefinitionData#height number

Image height.

Since:
  • 1.1.6
Source:

LoadContentData

Type:
  • object
Properties:
Name Type Description
name string

Object name in response.

path string

File path.

lib string

Name of library object. (Maybe, named 'lib')

root string

Name of the root object in library object.

images string

Name of images object. (Maybe, named 'images')

ss string

Name of sprite sheet object. (Maybe, named 'ss')

basePath string

Basement path of aseets.

Since:
  • 1.1.2
Source:

LoadCSVData

Type:
  • object
Properties:
Name Type Description
path string

File path.

name string

Object name in response.

Since:
  • 1.1.2
Source:

TypeKitData

In animate CC "publish setting", you need to register the domain to use for the service.

Type:
  • object
Properties:
Name Type Description
url string

This is as the following URL in html file built by animate CC.

<script src="https://use.typekit.net/ik/[string like a Base64 encoding].js"></script>
Since:
  • 1.1.1
Source:

Events


built

Fires when built root instance by Creap.Application#start.

Source:

initialized

Fires when call new Creap.Application().

Source:

started

Fires when call Creap.Application#start.

Source:

stopped

Fires when call Creap.Application#stop.

Source: