]>
Commit | Line | Data |
---|---|---|
1 | import { Component } from '@serpentity/serpentity'; | |
2 | ||
3 | /** | |
4 | * Component that stores an angle | |
5 | * | |
6 | * @extends {external:Serpentity.Component} | |
7 | * @class AngleComponent | |
8 | * @param {object} config a configuration object to extend. | |
9 | */ | |
10 | export default class AngleComponent extends Component { | |
11 | constructor(config) { | |
12 | ||
13 | super(config); | |
14 | ||
15 | /** | |
16 | * The properthy that holds the pixi container | |
17 | * | |
18 | * @property {external:MatterJs.Angle} angle | |
19 | * @instance | |
20 | * @memberof AngleComponent | |
21 | */ | |
22 | this.angle = this.angle || 0; | |
23 | } | |
24 | }; | |
25 |