added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import Ember from 'ember';
import Graphable from 'flaredown/components/chart/graphable';
import * as d3 from "d3";
const {
get,
computed,
Component,
computed: { alias },
} = Ember;
export default Component.extend(Graphable, {
name: alias('model.name'),
halfHeight: computed('height', function() {
return get(this, 'yScale')(0);
}),
yScale: computed('data', function() {
return d3.scale.linear().range([get(this, 'height') , 0]).domain([-1, 1]);
}),
data: computed('timeline', function() {
return (this.get('timeline') || []).map(day => ({ x: day, y: null })).sortBy('x');
}),
});