minitel-mosaic
Advanced tools
Comparing version 2.0.5 to 2.1.0
import { Image, ImageAttributes } from './components/image.js'; | ||
import { anyHandler } from './converters/any.js'; | ||
import { sharpHandler } from './converters/sharp.js'; | ||
import { defaultImg } from './converters/default.js'; | ||
export { Image, anyHandler, sharpHandler, defaultImg }; | ||
export { Image, defaultImg }; | ||
export { ImageAttributes }; |
import { Image } from './components/image.js'; | ||
import { anyHandler } from './converters/any.js'; | ||
import { sharpHandler } from './converters/sharp.js'; | ||
// import { anyHandler } from './converters/any.js'; | ||
// import { sharpHandler } from './converters/sharp.js'; | ||
import { defaultImg } from './converters/default.js'; | ||
export { Image, anyHandler, sharpHandler, defaultImg }; | ||
export { Image, defaultImg }; |
@@ -5,4 +5,3 @@ import { WebSocketServer, createWebSocketStream } from 'ws'; | ||
import { Image } from '../components/image.js'; | ||
import { sharpHandler } from '../converters/sharp.js'; | ||
import sharp from 'sharp'; | ||
import { defaultImg } from '../converters/default.js'; | ||
const wss = new WebSocketServer({ port: 8080 }); | ||
@@ -32,4 +31,4 @@ class DuplexBridge extends Duplex { | ||
await minitel.readyAsync(); | ||
minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel)); | ||
// minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel)); | ||
// minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel)); | ||
minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel)); | ||
minitel.on('frame', () => console.log('render done!')); | ||
@@ -36,0 +35,0 @@ minitel.queueImmediateRenderToStream(); |
{ | ||
"name": "minitel-mosaic", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "A mosaic adaptor for immjs's minitel npm ecoystem", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import { Image, ImageAttributes } from './components/image.js'; | ||
import { anyHandler } from './converters/any.js'; | ||
import { sharpHandler } from './converters/sharp.js'; | ||
// import { anyHandler } from './converters/any.js'; | ||
// import { sharpHandler } from './converters/sharp.js'; | ||
import { defaultImg } from './converters/default.js'; | ||
export { Image, anyHandler, sharpHandler, defaultImg }; | ||
export { Image, defaultImg }; | ||
export { ImageAttributes }; |
import { WebSocket, WebSocketServer, createWebSocketStream } from 'ws'; | ||
import { Duplex, DuplexOptions } from 'stream'; | ||
import { Minitel, Paragraph, Scrollable } from 'minitel-standalone'; | ||
import { Minitel } from 'minitel-standalone'; | ||
import { Image } from '../components/image.js'; | ||
import { sharpHandler } from '../converters/sharp.js'; | ||
// import { sharpHandler } from '../converters/sharp.js'; | ||
import sharp from 'sharp'; | ||
import { defaultImg } from '../converters/default.js'; | ||
@@ -39,4 +40,4 @@ const wss = new WebSocketServer({ port: 8080 }); | ||
minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel)); | ||
// minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel)); | ||
// minitel.appendChild(new Image([], { imageData: await sharpHandler(sharp('./test.png').resize(80, 75)) }, minitel)); | ||
minitel.appendChild(new Image([], { imageData: defaultImg() }, minitel)); | ||
@@ -43,0 +44,0 @@ minitel.on('frame', () => console.log('render done!')); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36281
33
545