Class: Display

markus.mixins.Display

new markus.mixins.Display (superclass)

Mixin for additional functionality for all pixi elements

Name Type Description
superclass Class

Parent class

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

Mixes In

Members

markus.mixins.Display.angle number static

Angle in degrees

markus.mixins.Display.bottom number static

Positioning the element relative to the bottom edge of the parent

markus.mixins.Display.centerX number static

Positioning the element relative to the horizontal center of the parent

markus.mixins.Display.centerXY number static

Positioning the element relative to the horizontal and vertical center of the parent

markus.mixins.Display.centerY number static

Positioning the element relative to the vertical center of the parent

markus.mixins.Display.h number static

Short setter for height

markus.mixins.Display.left number static

Positioning the element relative to the left edge of the parent

markus.mixins.Display.right number static

Positioning the element relative to the right edge of the parent

markus.mixins.Display.this.contentH number static

The height of the area of allowable positions children of the element

markus.mixins.Display.this.contentW number static

The width of the area of allowable positions children of the element

markus.mixins.Display.top v static

Positioning the element relative to the top edge of the parent

markus.mixins.Display.w number static

Short setter for width

this.childList Array.<Element>

Childs list

this.element string readonly

Element name

this.id string readonly

Element id

this.mark markus.View

Root view class

this.parentElement Element

Parent node

this.presets markus.View

Presets list

this.props Array.<function()> readonly

Element properties from markus markup

this.tags Array.<string>

Element tags

this.ticks Array.<function()>

Аrray of functions called every tick

Methods

addTag (props)

Add tag to tags list and app mixin props

Name Type Description
props string

tagName

addTick (cb)

Add function to ticks array

Name Type Description
cb funciton

Every tick is called

removeTag (props)

Remove tag from tags list and reuse mixins props

Name Type Description
props string

tagName

setProps (props)

Set props to element

Name Type Description
props Object

Props object