@lightningjs/blits 0.6.1 → 0.6.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ # v0.6.3
4
+
5
+ _12 jan 2024_
6
+
7
+ - Removed prepending protocol and host from sprite image
8
+
9
+
10
+ # v0.6.2
11
+
12
+ _12 jan 2024_
13
+
14
+ - Fixed issue with Sprites not working correctly due to missing background color
15
+
3
16
  # v0.6.1
4
17
 
5
18
  _8 jan 2024_
@@ -31,6 +31,6 @@
31
31
  "vite": "^4.0.4"
32
32
  },
33
33
  "dependencies": {
34
- "@lightningjs/blits": "^0.6.1"
34
+ "@lightningjs/blits": "^0.6.3"
35
35
  }
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.cjs",
6
6
  "exports": {
@@ -22,7 +22,7 @@ import symbols from '../lib/symbols.js'
22
22
  export default () =>
23
23
  Component('Sprite', {
24
24
  template: `
25
- <Element w="$w" h="$h" :texture="$texture" />
25
+ <Element w="$w" h="$h" color="#fff" :texture="$texture" />
26
26
  `,
27
27
  props: ['image', 'map', 'frame', 'w', 'h'],
28
28
  state() {
@@ -51,7 +51,7 @@ export default () =>
51
51
  hooks: {
52
52
  ready() {
53
53
  this.spriteTexture = this[symbols.renderer].createTexture('ImageTexture', {
54
- src: `${window.location.protocol}//${window.location.host}/${this.image}`,
54
+ src: this.image,
55
55
  })
56
56
  },
57
57
  },