Class: Element

markus.mixins.Element

new markus.mixins.Element (superclass)

Mixin for additional functionality for all markus elements

Name Type Description
superclass Class

Parent class

Example
let containerWithElementMix = new markus.mixins.Display(PIXI.Container);
containerWithElementMix({view, parent, ...preset}, argForParentClass);

Members

markus.mixins.Element.this.childList Array.<Element> static

Childs list

markus.mixins.Element.this.element string staticreadonly

Element name

markus.mixins.Element.this.id string staticreadonly

Element id

markus.mixins.Element.this.mark markus.View static

Root view class

markus.mixins.Element.this.parentElement Element static

Parent node

markus.mixins.Element.this.presets markus.View static

Presets list

markus.mixins.Element.this.props Array.<function()> staticreadonly

Element properties from markus markup

markus.mixins.Element.this.tags Array.<string> static

Element tags

markus.mixins.Element.this.ticks Array.<function()> static

Аrray of functions called every tick

Methods

markus.mixins.Element.addTag (props) static

Add tag to tags list and app mixin props

Name Type Description
props string

tagName

markus.mixins.Element.addTick (cb) static

Add function to ticks array

Name Type Description
cb funciton

Every tick is called

markus.mixins.Element.removeTag (props) static

Remove tag from tags list and reuse mixins props

Name Type Description
props string

tagName

markus.mixins.Element.setProps (props) static

Set props to element

Name Type Description
props Object

Props object