You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
node-authored/lib/object-type-image.coffee

18 lines
344 B
CoffeeScript

attributes =
source:
type: "string"
API = (stage) ->
stage.on "scene:added", (scene) ->
scene.on "object:created", (object) ->
if object.type == "image"
Object.keys(attributes).forEach (propName) ->
object.registerProperty propName, attributes[propName]
return {}
API.meta =
name: "objectTypeImage"
module.exports = API