@hi-ashleyj/llama 0.12.0 → 0.12.1

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.
@@ -1,11 +1,10 @@
1
1
  <script>import { setupDrawable } from "../drawable.js";
2
2
  import { onMount } from "svelte";
3
3
  import { getGame } from "../core-contexts.js";
4
- import { effectiveScene } from "../extras/scenes.js";
5
4
  export let text;
6
5
  export let size;
7
6
  export let spacing = 1.4;
8
- export let font;
7
+ export let font = null;
9
8
  export let style = void 0;
10
9
  export let fill = void 0;
11
10
  export let stroke = void 0;
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  text: string;
5
5
  size: number;
6
6
  spacing?: number | undefined;
7
- font: string;
7
+ font?: string | null | undefined;
8
8
  style?: string | undefined;
9
9
  fill?: string | undefined;
10
10
  stroke?: string | undefined;
@@ -1,9 +1,9 @@
1
1
  <script>import { setupDrawable } from "../drawable.js";
2
- import { getGame } from "..";
2
+ import { getGame } from "../core-contexts.js";
3
3
  import { onMount } from "svelte";
4
4
  export let text;
5
5
  export let size;
6
- export let font;
6
+ export let font = null;
7
7
  export let style = void 0;
8
8
  export let fill = void 0;
9
9
  export let stroke = void 0;
@@ -3,7 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  text: string;
5
5
  size: number;
6
- font: string | undefined;
6
+ font?: string | null | undefined;
7
7
  style?: string | undefined;
8
8
  fill?: string | undefined;
9
9
  stroke?: string | undefined;
@@ -1,9 +1,9 @@
1
- <script>import { getGame } from "..";
1
+ <script>import { getGame } from "../core-contexts.js";
2
2
  import { onMount, createEventDispatcher } from "svelte";
3
3
  const { defaultTextFontFace } = getGame();
4
4
  const dispatch = createEventDispatcher();
5
5
  export let font;
6
- export let url;
6
+ export let url = null;
7
7
  onMount(() => {
8
8
  defaultTextFontFace.set(font);
9
9
  if (url) {
@@ -8,7 +8,7 @@ declare const __propDef: {
8
8
  * FONT FACES ARE ONLY AUTO-LOADED ON MOUNT.
9
9
  * WRAPPING INSIDE A {key} MAY FIX THIS (not recommended)
10
10
  * IF CHANGING FONTS, PRELOAD THEM ALL IN CSS AND UPDATE font PROP ONLY WITHIN {key} BLOCK
11
- */ url: string | undefined;
11
+ */ url?: string | null | undefined;
12
12
  };
13
13
  events: {
14
14
  loaded: CustomEvent<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hi-ashleyj/llama",
3
3
  "description": "A (Very Incomplete) 2D Canvas Game Engine powered by Svelte",
4
- "version": "0.12.0",
4
+ "version": "0.12.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite dev",