This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
variables.sourceFiles = []; | |
variables.componentPaths = []; | |
variables.verbose = true; | |
variables.updated = 0; | |
public function run() { | |
var sourceFiles = findSourceFiles(); | |
sourceFiles.each(fixDottedPath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://stackoverflow.com/questions/8855026/generate-axis-scale | |
function calculateTicks(min, max, tickCount) { | |
var span = max - min, | |
step = Math.pow(10, Math.floor(Math.log(span / tickCount) / Math.LN10)), | |
err = tickCount / span * step; | |
// Filter ticks to get closer to the desired count. | |
if (err <= .15) step *= 10; | |
else if (err <= .35) step *= 5; | |
else if (err <= .75) step *= 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
/* eslint-disable @typescript-eslint/no-unused-vars */ | |
/* eslint-disable @typescript-eslint/no-inferrable-types */ | |
/* eslint-disable no-unused-vars */ | |
/* | |
WATCH: https://www.youtube.com/playlist?list=PLNqp92_EXZBJYFrpEzdO2EapvU0GOJ09n | |
*/ | |
/* |
OlderNewer