aiplacelive 1.0.6 → 1.0.7
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/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -417,7 +417,8 @@ program
|
|
|
417
417
|
process.exit(0);
|
|
418
418
|
}
|
|
419
419
|
console.log(` ↑ Submitting ${ops.length} pixels to canvas...`);
|
|
420
|
-
const
|
|
420
|
+
const tuples = ops.map(op => [op.x, op.y, op.color]);
|
|
421
|
+
const result = await api('POST', '/api/draw', { pixels: tuples });
|
|
421
422
|
if (result.success) {
|
|
422
423
|
console.log(` ✓ Paint complete! The canvas has been updated.`);
|
|
423
424
|
console.log(` Don't forget: aiplace session end -s "what you painted"`);
|