@shopify/klint 0.2.0 → 0.3.0
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/bin/create-sandbox +3 -3
- package/dist/Klint-CsVzll4n.d.cts +1410 -0
- package/dist/Klint-CsVzll4n.d.ts +1410 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/index.d.cts +4 -1409
- package/dist/index.d.ts +4 -1409
- package/dist/index.js +3 -6
- package/dist/plugins/index.cjs +2518 -0
- package/dist/plugins/index.d.cts +560 -0
- package/dist/plugins/index.d.ts +560 -0
- package/dist/plugins/index.js +2489 -0
- package/package.json +11 -7
package/bin/create-sandbox
CHANGED
|
@@ -134,7 +134,7 @@ import { useKlint, Klint } from "@shopify/klint";
|
|
|
134
134
|
|
|
135
135
|
export default function App() {
|
|
136
136
|
const { context, KlintMouse } = useKlint();
|
|
137
|
-
const mouse = KlintMouse();
|
|
137
|
+
const { mouse } = KlintMouse();
|
|
138
138
|
|
|
139
139
|
const setup = (K: any) => {
|
|
140
140
|
K.textFont("Inter, sans-serif");
|
|
@@ -165,8 +165,8 @@ export default function App() {
|
|
|
165
165
|
// Corner info
|
|
166
166
|
K.textSize(16);
|
|
167
167
|
K.alignText("left", "top");
|
|
168
|
-
K.text(
|
|
169
|
-
K.text(
|
|
168
|
+
K.text(`Frame: ${K.frame}`, 20, 20);
|
|
169
|
+
K.text(`Mouse: ${Math.round(mouseX)}, ${Math.round(mouseY)}`, 20, 40);
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
return (
|