tideline 1.36.0-develop.2 → 1.36.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/css/tideline.less +4 -3
- package/dist/commons.js +1 -1
- package/js/plot/message.js +1 -1
- package/js/plot/util/axes/dailyx.js +8 -4
- package/package.json +1 -1
- package/plugins/blip/chartdailyfactory.js +17 -17
package/js/plot/message.js
CHANGED
|
@@ -176,7 +176,7 @@ module.exports = function(pool, opts) {
|
|
|
176
176
|
});
|
|
177
177
|
|
|
178
178
|
opts.emitter.on('messageCreated', function(obj) {
|
|
179
|
-
var messageGroup = mainGroup.select('#
|
|
179
|
+
var messageGroup = mainGroup.select('#poolEvents_message')
|
|
180
180
|
.append('g')
|
|
181
181
|
.attr('class', 'd3-message-group d3-new')
|
|
182
182
|
.attr('id', 'message_' + obj.id)
|
|
@@ -30,7 +30,7 @@ module.exports = function(pool, opts) {
|
|
|
30
30
|
textShiftX: 5,
|
|
31
31
|
textShiftY: 5,
|
|
32
32
|
tickLength: 15,
|
|
33
|
-
longTickMultiplier:
|
|
33
|
+
longTickMultiplier: 3.75,
|
|
34
34
|
timePrefs: {
|
|
35
35
|
timezoneAware: false,
|
|
36
36
|
timezoneName: dt.getBrowserTimezone(),
|
|
@@ -47,7 +47,7 @@ module.exports = function(pool, opts) {
|
|
|
47
47
|
.append('text')
|
|
48
48
|
.attr({
|
|
49
49
|
'class': 'd3-day-label',
|
|
50
|
-
x: opts.leftEdge,
|
|
50
|
+
x: opts.leftEdge + 4,
|
|
51
51
|
// this is the same as dailyx.dayYPosition
|
|
52
52
|
// we just don't have a datum to pass here
|
|
53
53
|
y: pool.height() - opts.tickLength * opts.longTickMultiplier
|
|
@@ -97,8 +97,8 @@ module.exports = function(pool, opts) {
|
|
|
97
97
|
|
|
98
98
|
tickGroups.append('line')
|
|
99
99
|
.attr({
|
|
100
|
-
x1: dailyx.
|
|
101
|
-
x2: dailyx.
|
|
100
|
+
x1: dailyx.tickXPosition,
|
|
101
|
+
x2: dailyx.tickXPosition,
|
|
102
102
|
y1: pool.height(),
|
|
103
103
|
y2: dailyx.tickLength
|
|
104
104
|
});
|
|
@@ -141,6 +141,10 @@ module.exports = function(pool, opts) {
|
|
|
141
141
|
return dailyx.xPosition(d) + opts.textShiftX;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
+
dailyx.tickXPosition = function(d) {
|
|
145
|
+
return dailyx.xPosition(d) + 1;
|
|
146
|
+
};
|
|
147
|
+
|
|
144
148
|
dailyx.dayYPosition = function(d) {
|
|
145
149
|
return dailyx.tickLength(d);
|
|
146
150
|
};
|
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ function chartDailyFactory(el, options) {
|
|
|
68
68
|
chart.emitter = emitter;
|
|
69
69
|
chart.options = options;
|
|
70
70
|
|
|
71
|
-
var poolXAxis,
|
|
71
|
+
var poolXAxis, poolEvents, poolBG, poolBolus, poolBasal;
|
|
72
72
|
|
|
73
73
|
var SMBG_SIZE = 16;
|
|
74
74
|
|
|
@@ -100,15 +100,15 @@ function chartDailyFactory(el, options) {
|
|
|
100
100
|
.label('')
|
|
101
101
|
.labelBaseline(options.labelBaseline)
|
|
102
102
|
.index(chart.pools().indexOf(poolXAxis))
|
|
103
|
-
.heightRatio(0.
|
|
103
|
+
.heightRatio(0.75)
|
|
104
104
|
.gutterWeight(0.0);
|
|
105
105
|
|
|
106
|
-
//
|
|
107
|
-
|
|
108
|
-
.id('
|
|
106
|
+
// events pool
|
|
107
|
+
poolEvents = chart.newPool()
|
|
108
|
+
.id('poolEvents', chart.poolGroup())
|
|
109
109
|
.label('')
|
|
110
110
|
.labelBaseline(options.labelBaseline)
|
|
111
|
-
.index(chart.pools().indexOf(
|
|
111
|
+
.index(chart.pools().indexOf(poolEvents))
|
|
112
112
|
.heightRatio(0.5)
|
|
113
113
|
.gutterWeight(0.0);
|
|
114
114
|
|
|
@@ -166,11 +166,11 @@ function chartDailyFactory(el, options) {
|
|
|
166
166
|
chart.annotations().addGroup(chart.svg().select('#' + poolBasal.id()), 'basal');
|
|
167
167
|
|
|
168
168
|
// add tooltips
|
|
169
|
-
chart.tooltips().addGroup(
|
|
169
|
+
chart.tooltips().addGroup(poolEvents, {
|
|
170
170
|
type: 'deviceEvent',
|
|
171
171
|
shape: 'generic'
|
|
172
172
|
});
|
|
173
|
-
chart.tooltips().addGroup(
|
|
173
|
+
chart.tooltips().addGroup(poolEvents, {
|
|
174
174
|
type: 'message',
|
|
175
175
|
shape: 'generic'
|
|
176
176
|
});
|
|
@@ -374,30 +374,30 @@ function chartDailyFactory(el, options) {
|
|
|
374
374
|
onPumpSettingsOverrideOut: options.onPumpSettingsOverrideOut,
|
|
375
375
|
}), true, true);
|
|
376
376
|
|
|
377
|
-
//
|
|
378
|
-
// add background fill rectangles to
|
|
379
|
-
|
|
377
|
+
// events pool
|
|
378
|
+
// add background fill rectangles to events pool
|
|
379
|
+
poolEvents.addPlotType('fill', fill(poolEvents, {
|
|
380
380
|
emitter: emitter,
|
|
381
381
|
isDaily: true,
|
|
382
382
|
cursor: 'cell'
|
|
383
383
|
}), true, true);
|
|
384
384
|
|
|
385
|
-
// add message images to
|
|
386
|
-
|
|
385
|
+
// add message images to events pool
|
|
386
|
+
poolEvents.addPlotType('message', tideline.plot.message(poolEvents, {
|
|
387
387
|
size: 30,
|
|
388
388
|
emitter: emitter,
|
|
389
389
|
timezoneAware: chart.options.timePrefs.timezoneAware
|
|
390
390
|
}), true, true);
|
|
391
391
|
|
|
392
|
-
// add timechange images to
|
|
393
|
-
|
|
392
|
+
// add timechange images to events pool
|
|
393
|
+
poolEvents.addPlotType('deviceEvent', tideline.plot.timechange(poolEvents, {
|
|
394
394
|
size: 30,
|
|
395
395
|
emitter: emitter,
|
|
396
396
|
timezone: chart.options.timePrefs.timezoneName
|
|
397
397
|
}), true, true);
|
|
398
398
|
|
|
399
|
-
// add pump alarm data to
|
|
400
|
-
|
|
399
|
+
// add pump alarm data to events pool
|
|
400
|
+
poolEvents.addPlotType('deviceEvent', tideline.plot.alarm(poolEvents, {
|
|
401
401
|
size: 23,
|
|
402
402
|
emitter: emitter,
|
|
403
403
|
data: groupedData.deviceEvent,
|