Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@techandsoftware/teletext-plugin-smooth-mosaic
Advanced tools
Readme
This is a plugin for @techandsoftware/teletext, which uses a pixel art scaling algorithm to create a smooth rendition of teletext mosaic graphics. The scaling algorithm used is hqx.
The following image shows a page from Ceefax with normal rendering and with smoothed graphics on the right:
See https://teletextmoduledemo.tech-and-software.ltd.uk/ . Press 'p' or click the button marked with 'p' to load the plugin.
See the docs
directory in the repo for an SVG created with the plugin.
The easiest option is to use jsdelivr:
const module = await import('https://cdn.jsdelivr.net/npm/@techandsoftware/teletext-plugin-smooth-mosaic@latest/dist/teletext-plugin-smooth-mosaic.min.js');
// teletext is the @techandsoftware/teletext instance
teletext.registerViewPlugin(module.SmoothMosaicPlugin);
If installing from npm, you'll also need to use tooling like rollup to resolve the dependency for your browser.
import { SmoothMosaicPlugin } from '@techandsoftware/teletext-plugin-smooth-mosaic';
teletext.registerViewPlugin(SmoothMosaicPlugin);
As the module is fairly large, you could import dynamically:
const module = await import('@techandsoftware/teletext-plugin-smooth-mosaic');
teletext.registerViewPlugin(module.SmoothMosaicPlugin);
If you want to support browsers that can't use ES6 modules, a UMD version is also available in the dist
directory for importing with <script>
. It exports the module in the global ttxsmooth
. It's likely you'll also need to transpile the code for your target browsers.
FAQs
Plugin for @techandsoftware/teletext - render mosaic graphics smoothly using hqx
The npm package @techandsoftware/teletext-plugin-smooth-mosaic receives a total of 0 weekly downloads. As such, @techandsoftware/teletext-plugin-smooth-mosaic popularity was classified as not popular.
We found that @techandsoftware/teletext-plugin-smooth-mosaic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.