canvasengine 2.0.0-beta.43 → 2.0.0-beta.44
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/{DebugRenderer-K2IZBznP.js → DebugRenderer-P5sZ-0Tq.js} +2 -2
- package/dist/{DebugRenderer-K2IZBznP.js.map → DebugRenderer-P5sZ-0Tq.js.map} +1 -1
- package/dist/components/Button.d.ts +0 -1
- package/dist/components/Canvas.d.ts +0 -1
- package/dist/components/DOMElement.d.ts +0 -1
- package/dist/components/Graphic.d.ts +0 -1
- package/dist/components/NineSliceSprite.d.ts +0 -1
- package/dist/components/ParticleEmitter.d.ts +0 -1
- package/dist/components/Text.d.ts +0 -1
- package/dist/components/TilingSprite.d.ts +0 -1
- package/dist/components/Video.d.ts +0 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/types/index.d.ts +0 -1
- package/dist/directives/Controls.d.ts +0 -1
- package/dist/directives/Drag.d.ts +0 -1
- package/dist/directives/Flash.d.ts +0 -1
- package/dist/directives/FocusNavigation.d.ts +0 -1
- package/dist/directives/FocusNavigation.d.ts.map +1 -1
- package/dist/directives/GamepadControls.d.ts +0 -1
- package/dist/directives/JoystickControls.d.ts +0 -1
- package/dist/directives/KeyboardControls.d.ts +0 -1
- package/dist/directives/Scheduler.d.ts +0 -1
- package/dist/directives/Shake.d.ts +0 -1
- package/dist/directives/Sound.d.ts +0 -1
- package/dist/directives/Transition.d.ts +0 -1
- package/dist/directives/ViewportCull.d.ts +0 -1
- package/dist/directives/ViewportFollow.d.ts +0 -1
- package/dist/engine/FocusManager.d.ts +0 -1
- package/dist/engine/animation.d.ts +0 -1
- package/dist/engine/bootstrap.d.ts +0 -1
- package/dist/engine/directive.d.ts +0 -1
- package/dist/engine/reactive.d.ts +0 -1
- package/dist/engine/signal.d.ts +0 -1
- package/dist/engine/utils.d.ts +0 -1
- package/dist/hooks/useFocus.d.ts +0 -1
- package/dist/hooks/useRef.d.ts +0 -1
- package/dist/{index-B4hYyfVE.js → index-VPoz4ufu.js} +5151 -5269
- package/dist/{index-B4hYyfVE.js.map → index-VPoz4ufu.js.map} +1 -1
- package/dist/index.global.js +3 -27
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/utils/RadialGradient.d.ts +0 -1
- package/package.json +3 -3
- package/src/components/FocusContainer.ts +1 -1
- package/src/components/index.ts +1 -1
- package/src/directives/FocusNavigation.ts +2 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as a } from "./index-
|
|
2
|
-
import { A as r, a4 as i, a5 as n, B as l, M as c, H as u, C as p, k as m, a2 as S, a3 as g, au as d, m as C, D as b, at as h, ar as k, N as
|
|
1
|
+
import { h as a } from "./index-VPoz4ufu.js";
|
|
2
|
+
import { A as r, a4 as i, a5 as n, B as l, M as c, H as u, C as p, k as m, a2 as S, a3 as g, au as d, m as C, D as b, at as h, ar as k, N as E, o as j, a7 as T, a as f, G as w, L as D, j as F, I as v, a6 as y, J as O, K as x, U as M, a1 as A, O as P, X as V, as as B, R as G, W as H, S as q, n as I, l as J, Y as N, Q as R, _ as z, $ as K, T as U, P as L, g as Q, Z as W, a0 as X, V as Y, aq as Z, ap as _, an as $, p as aa, ae as sa, ac as ea, af as ta, q as oa, f as ra, aj as ia, ao as na, s as la, t as ca, a8 as ua, ab as pa, v as ma, i as Sa, a9 as ga, w as da, ak as Ca, x as ba, ad as ha, ah as ka, ag as Ea, am as ja, r as Ta, aa as fa, y as wa, ai as Da, al as Fa, z as va, b as ya, e as Oa, c as xa, d as Ma, u as Aa } from "./index-VPoz4ufu.js";
|
|
3
3
|
const e = a.Howler;
|
|
4
4
|
export {
|
|
5
5
|
r as ArraySubject,
|
|
@@ -17,8 +17,8 @@ export {
|
|
|
17
17
|
b as Drop,
|
|
18
18
|
h as EVENTS,
|
|
19
19
|
k as Easing,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
E as Ellipse,
|
|
21
|
+
j as Flash,
|
|
22
22
|
T as FocusContainer,
|
|
23
23
|
f as FocusManager,
|
|
24
24
|
w as GamepadControls,
|
|
@@ -28,8 +28,8 @@ export {
|
|
|
28
28
|
v as Input,
|
|
29
29
|
y as Joystick,
|
|
30
30
|
O as JoystickControls,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
x as KeyboardControls,
|
|
32
|
+
M as Mesh,
|
|
33
33
|
A as NineSliceSprite,
|
|
34
34
|
P as ObjectSubject,
|
|
35
35
|
V as ParticlesEmitter,
|
|
@@ -72,8 +72,8 @@ export {
|
|
|
72
72
|
ba as linkedSignal,
|
|
73
73
|
ha as loop,
|
|
74
74
|
ka as mount,
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
Ea as mountTracker,
|
|
76
|
+
ja as on,
|
|
77
77
|
Ta as registerAllComponents,
|
|
78
78
|
fa as registerComponent,
|
|
79
79
|
wa as signal,
|
|
@@ -82,8 +82,8 @@ export {
|
|
|
82
82
|
va as untracked,
|
|
83
83
|
ya as useDefineProps,
|
|
84
84
|
Oa as useFocusChange,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
xa as useFocusIndex,
|
|
86
|
+
Ma as useFocusedElement,
|
|
87
87
|
Aa as useProps
|
|
88
88
|
};
|
|
89
89
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "canvasengine",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/howler": "^2.2.11",
|
|
24
|
-
"vite": "^
|
|
25
|
-
"vite-plugin-dts": "^
|
|
24
|
+
"vite": "^7.3.0",
|
|
25
|
+
"vite-plugin-dts": "^4.5.4"
|
|
26
26
|
},
|
|
27
27
|
"author": "Samuel Ronce",
|
|
28
28
|
"license": "MIT",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Container as PixiContainer } from "pixi.js";
|
|
2
|
-
import { createComponent, registerComponent, Element } from "../engine/reactive";
|
|
2
|
+
import { createComponent, registerComponent, type Element } from "../engine/reactive";
|
|
3
3
|
import { applyDirective } from "../engine/directive";
|
|
4
4
|
import { ComponentInstance, DisplayObject } from "./DisplayObject";
|
|
5
5
|
import { ComponentFunction, h } from "../engine/signal";
|
package/src/components/index.ts
CHANGED
|
@@ -14,5 +14,5 @@ export { type ComponentInstance } from './DisplayObject'
|
|
|
14
14
|
export { DOMContainer } from './DOMContainer'
|
|
15
15
|
export { DOMElement } from './DOMElement'
|
|
16
16
|
export { Button, ButtonState, type ButtonProps, type ButtonStyle } from './Button'
|
|
17
|
-
export { Joystick, type JoystickSettings
|
|
17
|
+
export { Joystick, type JoystickSettings } from './Joystick'
|
|
18
18
|
export { FocusContainer, type FocusContainerProps } from './FocusContainer'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Directive, registerDirective } from "../engine/directive";
|
|
2
|
-
import { Element } from "../engine/reactive";
|
|
1
|
+
import { Directive, registerDirective, applyDirective } from "../engine/directive";
|
|
2
|
+
import { type Element } from "../engine/reactive";
|
|
3
3
|
import { focusManager } from "../engine/FocusManager";
|
|
4
4
|
import { ControlsDirective } from "./Controls";
|
|
5
5
|
import { Controls } from "./ControlsBase";
|
|
@@ -181,7 +181,6 @@ export class FocusNavigationDirective extends Directive {
|
|
|
181
181
|
|
|
182
182
|
// If Controls directive doesn't exist, create it
|
|
183
183
|
if (!this.controlsDirective) {
|
|
184
|
-
const { applyDirective } = require("../engine/reactive");
|
|
185
184
|
const controlsDirective = applyDirective(element, 'controls');
|
|
186
185
|
if (controlsDirective) {
|
|
187
186
|
if (!element.directives) {
|