Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customisation option functionality #257

Open
wants to merge 1 commit into
base: integration/v2
Choose a base branch
from

Conversation

nigelmegitt
Copy link
Contributor

@nigelmegitt nigelmegitt commented May 3, 2024

Closes #256.

Allows an options object to be passed into renderHTML() to modify the presentation of the resulting HTML.

The options parameter can be used to configure adjustments that change the presentation away from the document defaults:

  • sizeAdjust: {number} scales the text size and line padding
  • lineHeightAdjust: {number} scales the line height
  • backgroundOpacityScale: {number} scales the backgroundColor opacity
  • fontFamily: {string} comma-separated list of font family values to use, if present.
  • colorAdjust: [{colorSelector: selector, ColorGenerator: generator}*] list of color replacement rules
  • colorOpacityScale: {number} opacity override on text color (ignored if zero)
  • regionOpacityScale: {number} scales the region opacity
  • textOutline: {string} textOutline value to use, if present
  • [span|p|div|body|region]BackgroundColorAdjust: {documentColor: replaceColor*} map of backgroundColors and the value with which to replace them for each element type

Allows an `options` object to be passed into `renderHTML()` to modify the presentation of the resulting HTML.
@dsilhavy
Copy link

This feature was discussed during the DASH-IF dash.js face to face meeting. There is demand by the industry to enable overriding embedded style information. We would like to expose this functionality to dash.js users. Would be great if this feature makes it to the main codebase of imscJS.

@ftyp
Copy link

ftyp commented Jun 18, 2024

Yes, this would be a useful addition to address different accessibility needs or user preferences. +1 from Deutsche Telekom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants