version 5.0.0 (alpha) #101
Locked
hvianna
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What's new in v5.0.0-alpha.2
connectInput()and the constructor'ssourceproperty now accept MediaStream objects (#96);disconnectInput()now also accepts HTMLMediaElement and MediaStream objects.noteLabelsproperty has been removed and its functionality has been consolidated intoshowScaleX;showScaleXvalue type has changed to string;showScaleYvalue type has changed to string and now allows choosing dB or percentage labels;peaksproperty name changed back toshowPeaks;setXAxis()renamed tosetScaleX()- removedaddLabelsandheightproperties, addedfontSize;setYAxis()renamed tosetScaleY()- removedlinearIntervalandwidthproperties, addedpercentIntervalandfontSize, new default value of 6dB fordbInterval;getScaleX()andgetScaleY()methods;weightingFilter- props to @will-hut (#107).weightingFiltervalues are now normalized to lowercase. The value for no-filter has changed from""(empty string) to"none".RADIAL_INNERandRADIAL_OUTERconstant names toRADIAL_INWARDandRADIAL_OUTWARD.The full list of changes for v5 are provided below.
Version 5 overview:
peakColorproperty inregisterTheme()and on-the-fly horizontal and reverse gradient generation;showLedMaskandsetLeds();setScaleX()andsetScaleY();bgColorin the theme definition;onCanvasDrawcallback is now passed all color information from the currently active themes (fillStyleandstrokeStyleare no longer explicitly set).🚨 BREAKING CHANGES:
alphaBarsledBarsmodepeakLineradialshowPeaksshowScaleXshowScaleYweightingFilter""(empty string) to"none".bgAlphacanvaselementfadePeaksshowPeaks="fade"gradientsetTheme(name)/getTheme()gradientLeftsetTheme(name, 0)/getTheme(0)gradientRightsetTheme(name, 1)/getTheme(1)gravitypeakDecayTime— use the peak drop analysis tool to compare/migrate previous customizationsisLumiBarsisAlphaBarslumiBarsalphaBars="full"noteLabelsshowScaleX="notes"peakFadeTimepeakDecayTimeradialInvertradial=-1registerGradient()registerTheme()setLedParams()setLeds()showBgColorsplitGradientspreadGradientstereochannelLayouttrueLedsledBars="vintage"overlayoverlay: true) — if desired, set an opaque background color via CSSAdded:
bandResolutionproperty;getThemeData()andgetThemeList()mehods;peakColorproperty in theme definition - seeregisterTheme();registerTheme()andunregisterTheme()methods;setTheme()andgetTheme()methods;setThemeModifiers()andgetThemeModifiers()methods;toggleThemeModifier()method;setScaleX()/setScaleY()andgetScaleX()/getScaleY()methods;showLedMaskproperty;weightingFilter- props to @will-hut (#107);Changed:
"classic"theme - the old values can be found in this Discussions post;"fschange"value forreasonin theonCanvasResizecallback has been changed to"fullscreenchange". You can use the new constants exported by the module for future-proof checks.fillAlpha0.51lineWidth10maxDecibels-3025minDecibels-90-85radius0.50.3smoothing0.70.5Improved:
connectInput()and the constructor'ssourceproperty now accept MediaStream objects (#96);disconnectInput()now also accepts HTMLMediaElement and MediaStream objects;alphaBars(former lumiBars) have been extended to work withradialand FFTbandResolution(former mode 0);mirroris active.All reactions