@luceosports/play-rendering 1.11.19 → 1.11.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luceosports/play-rendering",
3
- "version": "1.11.19",
3
+ "version": "1.11.21",
4
4
  "description": "",
5
5
  "main": "dist/play-rendering.js",
6
6
  "scripts": {
@@ -1,5 +1,7 @@
1
1
  const Model = require('./Base/InternalFrameModel');
2
2
 
3
+ const NOTE_GREY_COLOR = { red: 0.502, green: 0.502, blue: 0.502, alpha: 0.35 };
4
+
3
5
  class Note extends Model {
4
6
  constructor(data) {
5
7
  super(data);
@@ -31,7 +33,7 @@ class Note extends Model {
31
33
  }
32
34
 
33
35
  get color() {
34
- return this._getAttr('color');
36
+ return this._getAttr('color') || NOTE_GREY_COLOR;
35
37
  }
36
38
 
37
39
  get showBorder() {
@@ -39,11 +41,19 @@ class Note extends Model {
39
41
  }
40
42
 
41
43
  get animations() {
42
- return this._getAttr('animations');
44
+ return this._getAttr('animations') || [];
43
45
  }
44
46
 
45
47
  get font() {
46
- return this._getAttr('font');
48
+ return (
49
+ this._getAttr('font') || {
50
+ bold: false,
51
+ italic: false,
52
+ underline: false,
53
+ strikethrough: false,
54
+ fontSize: 12
55
+ }
56
+ );
47
57
  }
48
58
 
49
59
  get fontSize() {