@deepdub/peaks.js
Advanced tools
Comparing version 1.2.15 to 1.2.16
{ | ||
"name": "@deepdub/peaks.js", | ||
"version": "1.2.15", | ||
"version": "1.2.16", | ||
"description": "JavaScript UI component for displaying audio waveforms", | ||
@@ -38,6 +38,6 @@ "main": "./peaks.js", | ||
"prebuild": "npm run lint", | ||
"bump-prerelease": "npm version prerelease --preid=yalc --no-git-tag-version && cp ./package.json ../deepdubapp/node_modules/@deepdub/peaks.js/", | ||
"bump-prerelease": "npm version prerelease --preid=yalc --no-git-tag-version && cp ./package.json ../deepdubapp-dev/node_modules/@deepdub/peaks.js/", | ||
"build": "browserify -d -e ./src/main.js -t deamdify -s peaks | exorcist peaks.js.map | derequire - > peaks.js", | ||
"build:watch": "watchify -d -e ./src/main.js -t deamdify -s peaks -o ./demo/peaks.js", | ||
"build:watch-deepdub": "watchify -d -e ./src/main.js -t deamdify -s peaks -o ../deepdubapp/node_modules/@deepdub/peaks.js/peaks.js", | ||
"build:watch-deepdub": "watchify -d -e ./src/main.js -t deamdify -s peaks -o ../deepdubapp-dev/node_modules/@deepdub/peaks.js/peaks.js", | ||
"postbuild": "copyfiles peaks.js peaks.js.map demo", | ||
@@ -44,0 +44,0 @@ "doc": "jsdoc --private --destination docs --recurse src", |
@@ -322,3 +322,15 @@ /** | ||
SegmentsLayer.prototype.getView = function() { | ||
return this._view; | ||
}; | ||
SegmentsLayer.prototype.getStage = function() { | ||
return this._layer.parent; | ||
}; | ||
SegmentsLayer.prototype.getPeaks = function() { | ||
return this._peaks; | ||
}; | ||
return SegmentsLayer; | ||
}); |
@@ -187,3 +187,3 @@ /** | ||
} | ||
} else if (this._segment.type !== 'SELECTION_REGION') { | ||
} else if (this._segment.type !== 'SELECTION_REGION' && this._segment.type !== 'CROSSFADE') { | ||
const segmentStartPixel = this._view.timeToPixels(this._segment.startTime); | ||
@@ -190,0 +190,0 @@ if (endPixels > segmentStartPixel + waveformData.length) { |
@@ -757,2 +757,3 @@ /** | ||
this._updateWaveform(this.timeToPixels(time), cuase || 'set-start-time'); | ||
this._stage.draw(); | ||
}; | ||
@@ -818,2 +819,10 @@ | ||
WaveformZoomView.prototype.getVisibleStartTime = function () { | ||
return this.pixelsToTime(this._frameOffset); | ||
}; | ||
WaveformZoomView.prototype.getVisibleEndTime = function () { | ||
return this.pixelsToTime(this._frameOffset + this._width); | ||
}; | ||
WaveformZoomView.prototype.setFrameOffset = function (frameOffset) { | ||
@@ -820,0 +829,0 @@ this._updateWaveform(frameOffset, 'explicit-set-frame-offset'); |
Sorry, the diff of this file is too big to display
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
1718251
24817