Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@readapt/visual-engine

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readapt/visual-engine - npm Package Compare versions

Comparing version 1.4.4 to 1.5.0

6

dist/settings/src/defaultSettings.d.ts

@@ -1,4 +0,6 @@

import { Language, Settings } from './models';
import { ColoredItem, Language, Settings } from './models';
declare const buildDefaultSettings: (language: Language) => Settings;
export { buildDefaultSettings };
declare const overrideDefaultLetters: (lang: Language, overrides: ColoredItem[]) => ColoredItem[];
declare const overrideDefaultPhonemes: (lang: Language, overrides: ColoredItem[]) => ColoredItem[];
export { buildDefaultSettings, overrideDefaultLetters, overrideDefaultPhonemes };
//# sourceMappingURL=defaultSettings.d.ts.map

@@ -1,2 +0,3 @@

export declare const colors: string[];
export declare const colors: readonly ["#5fa2ce", "#76b7b2", "#b07aa1", "#fc7d0b", "#a3cce9", "#c85200", "#7b848f", "#59a14f", "#ff9da7", "#edc948", "#9c755f", "#ffbc79"];
export declare type ColorOption = typeof colors[number];
//# sourceMappingURL=colors.d.ts.map
import { Option } from '../models';
export declare const fontFamilyOptions: Option[];
export declare type FontFamilyOption = 'inherit' | 'Arial' | 'OpenDyslexic' | 'Luciole';
export declare const fontFamilyOptions: Option<FontFamilyOption>[];
//# sourceMappingURL=fontFamilyOptions.d.ts.map
import { Option } from '../models';
export declare const fontSizeOptions: Option[];
export declare type FontSizeOption = 'inherit' | '140%' | '170%' | '200%';
export declare const fontSizeOptions: Option<FontSizeOption>[];
//# sourceMappingURL=fontSizeOptions.d.ts.map

@@ -1,11 +0,11 @@

export { fontFamilyOptions } from './fontFamilyOptions';
export { fontSizeOptions } from './fontSizeOptions';
export { languageOptions } from './languageOptions';
export { letterSpacingOptions } from './letterSpacingOptions';
export { lineSpacingOptions } from './lineSpacingOptions';
export { opacityOptions } from './opacityOptions';
export { thicknessOptions } from './thicknessOptions';
export { silentLetterOpacityOptions } from './silentLetterOpacityOptions';
export { wordSpacingOptions } from './wordSpacingOptions';
export { colors } from './colors';
export * from './fontFamilyOptions';
export * from './fontSizeOptions';
export * from './languageOptions';
export * from './letterSpacingOptions';
export * from './lineSpacingOptions';
export * from './opacityOptions';
export * from './thicknessOptions';
export * from './silentLetterOpacityOptions';
export * from './wordSpacingOptions';
export * from './colors';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import { Option } from '../models';
export declare const languageOptions: Option[];
import { Language, Option } from '../models';
export declare const languageOptions: Option<Language>[];
//# sourceMappingURL=languageOptions.d.ts.map
import { Option } from '../models';
export declare const letterSpacingOptions: Option[];
export declare type LetterSpacingOption = 'inherit' | '2px' | '3.5px' | '5px';
export declare const letterSpacingOptions: Option<LetterSpacingOption>[];
//# sourceMappingURL=letterSpacingOptions.d.ts.map
import { Option } from '../models';
export declare const lineSpacingOptions: Option[];
export declare type LineSpacingOption = 'inherit' | '2.1' | '2.55' | '3';
export declare const lineSpacingOptions: Option<LineSpacingOption>[];
//# sourceMappingURL=lineSpacingOptions.d.ts.map
import { Option } from '../models';
export declare const opacityOptions: Option[];
export declare type OpacityOption = '33' | '66' | '99' | 'CC' | 'FF';
export declare const opacityOptions: Option<OpacityOption>[];
//# sourceMappingURL=opacityOptions.d.ts.map
import { Option } from '../models';
export declare const silentLetterOpacityOptions: Option[];
export declare type SilentLetterOpacityOption = '0.2' | '0.4' | '0.5' | '0.6' | '0.8';
export declare const silentLetterOpacityOptions: Option<SilentLetterOpacityOption>[];
//# sourceMappingURL=silentLetterOpacityOptions.d.ts.map
import { Option } from '../models';
export declare const thicknessOptions: Option[];
export declare type ThicknessOption = '1' | '2' | '3';
export declare const thicknessOptions: Option<ThicknessOption>[];
//# sourceMappingURL=thicknessOptions.d.ts.map
import { Option } from '../models';
export declare const wordSpacingOptions: Option[];
export declare type WordSpacingOption = 'inherit' | '2px' | '3.5px' | '5px';
export declare const wordSpacingOptions: Option<WordSpacingOption>[];
//# sourceMappingURL=wordSpacingOptions.d.ts.map

@@ -0,1 +1,2 @@

import { OpacityOption } from '@readapt/settings';
declare const adaptShadeAlternateLinesForText: (shadeLineOpacity: string) => {

@@ -5,5 +6,5 @@ className: `readapt-shade-alternate-lines-${string}`;

};
declare const adaptShadeAlternateLines: (htmlElement: HTMLElement, shadeLineOpacity: string, scope: string) => string;
declare const adaptShadeAlternateLines: (htmlElement: HTMLElement, shadeLineOpacity: OpacityOption, scope: string) => string;
declare const cleanShadeAlternateLines: (htmlElement: HTMLElement) => void;
export { adaptShadeAlternateLines, cleanShadeAlternateLines, adaptShadeAlternateLinesForText };
//# sourceMappingURL=adaptShadeAlternateLines.d.ts.map

@@ -0,1 +1,2 @@

import { OpacityOption } from '@readapt/settings';
declare const adaptShadeAlternateLinesForText: (shadeLineOpacity: string) => {

@@ -5,5 +6,5 @@ className: `readapt-shade-alternate-lines-${string}`;

};
declare const adaptShadeAlternateLines: (htmlElement: HTMLElement, shadeLineOpacity: string, scope: string) => string;
declare const adaptShadeAlternateLines: (htmlElement: HTMLElement, shadeLineOpacity: OpacityOption, scope: string) => string;
declare const cleanShadeAlternateLines: (htmlElement: HTMLElement) => void;
export { adaptShadeAlternateLines, cleanShadeAlternateLines, adaptShadeAlternateLinesForText };
//# sourceMappingURL=adaptShadeAlternateLines.d.ts.map
{
"name": "@readapt/visual-engine",
"version": "1.4.4",
"version": "1.5.0",
"main": "dist/readapt-visual-engine.js",

@@ -25,4 +25,4 @@ "module": "dist/readapt-visual-engine.esm.js",

"dependencies": {
"@readapt/settings": "^1.4.4",
"@readapt/text-engine": "^1.4.4",
"@readapt/settings": "^1.5.0",
"@readapt/text-engine": "^1.5.0",
"lodash": "^4.17.21"

@@ -33,3 +33,3 @@ },

},
"gitHead": "3cd52559ca1c4d25c7bdef8309fbe27168656dbb"
"gitHead": "749a03ec8c071e43ed7a9c8a5ae9ada6f14cf9a3"
}

@@ -0,1 +1,3 @@

import { OpacityOption } from '@readapt/settings'
type LineHeight = string

@@ -37,3 +39,3 @@ type ShadeAlternateLinesClass = `readapt-shade-alternate-lines-${LineHeight}`

const adaptShadeAlternateLines = (htmlElement: HTMLElement, shadeLineOpacity: string, scope: string) => {
const adaptShadeAlternateLines = (htmlElement: HTMLElement, shadeLineOpacity: OpacityOption, scope: string) => {
if (htmlElement.tagName === 'P') {

@@ -40,0 +42,0 @@ addShadeAlternateLinesClass(htmlElement, shadeLineOpacity)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc