@hi-ashleyj/llama 0.12.0 → 0.12.2
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/dist/Game.svelte.d.ts +1 -1
- package/dist/audio/BufferedAudioSource.svelte.d.ts +1 -1
- package/dist/audio/MediaAudioSource.svelte.d.ts +3 -3
- package/dist/controllers/motions.d.ts +3 -2
- package/dist/drawables/MultiLineText.svelte +1 -2
- package/dist/drawables/MultiLineText.svelte.d.ts +1 -1
- package/dist/drawables/Text.svelte +2 -2
- package/dist/drawables/Text.svelte.d.ts +1 -1
- package/dist/extras/DefaultFontFace.svelte +2 -2
- package/dist/extras/DefaultFontFace.svelte.d.ts +1 -1
- package/dist/extras/SceneSwitcher.svelte.d.ts +3 -1
- package/package.json +3 -3
package/dist/Game.svelte.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ export type GameProps = typeof __propDef.props;
|
|
|
18
18
|
export type GameEvents = typeof __propDef.events;
|
|
19
19
|
export type GameSlots = typeof __propDef.slots;
|
|
20
20
|
export default class Game extends SvelteComponent<GameProps, GameEvents, GameSlots> {
|
|
21
|
-
get context():
|
|
21
|
+
get context(): GameContext;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -14,6 +14,6 @@ export type BufferedAudioSourceProps = typeof __propDef.props;
|
|
|
14
14
|
export type BufferedAudioSourceEvents = typeof __propDef.events;
|
|
15
15
|
export type BufferedAudioSourceSlots = typeof __propDef.slots;
|
|
16
16
|
export default class BufferedAudioSource extends SvelteComponent<BufferedAudioSourceProps, BufferedAudioSourceEvents, BufferedAudioSourceSlots> {
|
|
17
|
-
get play():
|
|
17
|
+
get play(): () => (() => void) | undefined;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -19,8 +19,8 @@ export type MediaAudioSourceProps = typeof __propDef.props;
|
|
|
19
19
|
export type MediaAudioSourceEvents = typeof __propDef.events;
|
|
20
20
|
export type MediaAudioSourceSlots = typeof __propDef.slots;
|
|
21
21
|
export default class MediaAudioSource extends SvelteComponent<MediaAudioSourceProps, MediaAudioSourceEvents, MediaAudioSourceSlots> {
|
|
22
|
-
get playFromStart():
|
|
23
|
-
get play():
|
|
24
|
-
get pause():
|
|
22
|
+
get playFromStart(): () => void;
|
|
23
|
+
get play(): () => void;
|
|
24
|
+
get pause(): () => void;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
1
2
|
import type { Writable } from "svelte/store";
|
|
2
3
|
export declare class Timing {
|
|
3
4
|
constructor();
|
|
@@ -20,7 +21,7 @@ export declare class Timing {
|
|
|
20
21
|
stop: () => boolean;
|
|
21
22
|
set(this: void, value: number): void;
|
|
22
23
|
update(this: void, updater: import("svelte/store").Updater<number>): void;
|
|
23
|
-
subscribe(this: void, run: import("svelte/store").Subscriber<number>, invalidate?: (
|
|
24
|
+
subscribe(this: void, run: import("svelte/store").Subscriber<number>, invalidate?: import("svelte/store").Invalidator<number> | undefined): import("svelte/store").Unsubscriber;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Used to create a store whose value adjusts based on bursts.
|
|
@@ -34,7 +35,7 @@ export declare class Timing {
|
|
|
34
35
|
trigger: () => void;
|
|
35
36
|
set(this: void, value: number): void;
|
|
36
37
|
update(this: void, updater: import("svelte/store").Updater<number>): void;
|
|
37
|
-
subscribe(this: void, run: import("svelte/store").Subscriber<number>, invalidate?: (
|
|
38
|
+
subscribe(this: void, run: import("svelte/store").Subscriber<number>, invalidate?: import("svelte/store").Invalidator<number> | undefined): import("svelte/store").Unsubscriber;
|
|
38
39
|
};
|
|
39
40
|
update(delta: number): void;
|
|
40
41
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
|
11
|
+
*/ url?: string | null | undefined;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
loaded: CustomEvent<any>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
scenes?: Record<string,
|
|
4
|
+
scenes?: Record<string, {
|
|
5
|
+
new (options: import("svelte").ComponentConstructorOptions<any>): SvelteComponent<any, any, any>;
|
|
6
|
+
}> | undefined;
|
|
5
7
|
};
|
|
6
8
|
events: {
|
|
7
9
|
[evt: string]: 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.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite dev",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@sveltejs/kit": "^1.25.0",
|
|
27
27
|
"@sveltejs/package": "^2.2.2",
|
|
28
28
|
"sass": "^1.58.0",
|
|
29
|
-
"svelte": "^
|
|
30
|
-
"svelte-check": "^3.
|
|
29
|
+
"svelte": "^4.2.1",
|
|
30
|
+
"svelte-check": "^3.5.2",
|
|
31
31
|
"typescript": "^4.7.4",
|
|
32
32
|
"vite": "^4.0.0"
|
|
33
33
|
},
|