chart2music
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -96,3 +96,2 @@ interface AudioEngine { | ||
private _providedAudioEngine?; | ||
private _pauseFlag; | ||
private _monitorMode; | ||
@@ -99,0 +98,0 @@ private _type; |
@@ -1,2 +0,2 @@ | ||
var c2mChart = (function (exports, runtime, cardinals) { | ||
var c2mChart = (function (exports) { | ||
'use strict'; | ||
@@ -539,6 +539,2 @@ | ||
var en = { | ||
message_intro: (d) => runtime.plural(d.count, 0, cardinals.en, { one: "Votre message se trouve ici.", other: "Vos " + runtime.number("en", d.count, 0) + " messages se trouvent ici." }) + "\n" | ||
}; | ||
let context = null; | ||
@@ -574,2 +570,10 @@ const convertDataRow = (row) => { | ||
}; | ||
const prepChartElement = (elem, title) => { | ||
if (!elem.hasAttribute("alt") && !elem.hasAttribute("aria-label")) { | ||
elem.setAttribute("aria-label", `${title}, Sonified chart`); | ||
} | ||
if (!elem.hasAttribute("role")) { | ||
elem.setAttribute("role", "img"); | ||
} | ||
}; | ||
const c2mChart = (input) => { | ||
@@ -614,7 +618,4 @@ const validationErrorString = validateInput(input); | ||
}; | ||
this._pauseFlag = false; | ||
this._monitorMode = false; | ||
this._explicitAxes = {}; | ||
console.log(en); | ||
console.log(en.message_intro({ count: 3 })); | ||
this._type = input.type; | ||
@@ -624,6 +625,3 @@ this._providedAudioEngine = input.audioEngine; | ||
this._chartElement = input.element; | ||
if (!this._chartElement.hasAttribute("alt") && | ||
!this._chartElement.hasAttribute("aria-label")) { | ||
this._chartElement.setAttribute("aria-label", `${this._title}, Sonified chart`); | ||
} | ||
prepChartElement(this._chartElement, this._title); | ||
this._ccElement = input.cc ?? this._chartElement; | ||
@@ -1211,2 +1209,2 @@ this._setData(input.data, input.axes); | ||
})({}, runtime, cardinals); | ||
})({}); |
{ | ||
"name": "chart2music", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/index.js", | ||
@@ -66,5 +66,5 @@ "module": "dist/index.mjs", | ||
"prettier": "2.7.1", | ||
"rimraf": "3.0.2", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.78.0", | ||
@@ -71,0 +71,0 @@ "rollup-plugin-delete": "2.0.0", |
Sorry, the diff of this file is not supported yet
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
105711
6
2506