Skip to content

Commit e982ca1

Browse files
committed
annotatinons3d pdata -> _pdata
1 parent 414a9b8 commit e982ca1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/annotations3d/convert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ function mockAnnAxes(ann, scene) {
5050
Axes.setConvert(ann._xa);
5151
ann._xa._offset = size.l + domain.x[0] * size.w;
5252
ann._xa.l2p = function() {
53-
return 0.5 * (1 + ann.pdata[0] / ann.pdata[3]) * size.w * (domain.x[1] - domain.x[0]);
53+
return 0.5 * (1 + ann._pdata[0] / ann._pdata[3]) * size.w * (domain.x[1] - domain.x[0]);
5454
};
5555

5656
ann._ya = {};
5757
Lib.extendFlat(ann._ya, base);
5858
Axes.setConvert(ann._ya);
5959
ann._ya._offset = size.t + (1 - domain.y[1]) * size.h;
6060
ann._ya.l2p = function() {
61-
return 0.5 * (1 - ann.pdata[1] / ann.pdata[3]) * size.h * (domain.y[1] - domain.y[0]);
61+
return 0.5 * (1 - ann._pdata[1] / ann._pdata[3]) * size.h * (domain.y[1] - domain.y[0]);
6262
};
6363
}

src/components/annotations3d/draw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function draw(scene) {
3838
.select('.annotation-' + scene.id + '[data-index="' + i + '"]')
3939
.remove();
4040
} else {
41-
ann.pdata = project(scene.glplot.cameraParams, [
41+
ann._pdata = project(scene.glplot.cameraParams, [
4242
fullSceneLayout.xaxis.r2l(ann.x) * dataScale[0],
4343
fullSceneLayout.yaxis.r2l(ann.y) * dataScale[1],
4444
fullSceneLayout.zaxis.r2l(ann.z) * dataScale[2]

0 commit comments

Comments
 (0)