File tree 2 files changed +3
-3
lines changed
src/components/annotations3d
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ function mockAnnAxes(ann, scene) {
50
50
Axes . setConvert ( ann . _xa ) ;
51
51
ann . _xa . _offset = size . l + domain . x [ 0 ] * size . w ;
52
52
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 ] ) ;
54
54
} ;
55
55
56
56
ann . _ya = { } ;
57
57
Lib . extendFlat ( ann . _ya , base ) ;
58
58
Axes . setConvert ( ann . _ya ) ;
59
59
ann . _ya . _offset = size . t + ( 1 - domain . y [ 1 ] ) * size . h ;
60
60
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 ] ) ;
62
62
} ;
63
63
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = function draw(scene) {
38
38
. select ( '.annotation-' + scene . id + '[data-index="' + i + '"]' )
39
39
. remove ( ) ;
40
40
} else {
41
- ann . pdata = project ( scene . glplot . cameraParams , [
41
+ ann . _pdata = project ( scene . glplot . cameraParams , [
42
42
fullSceneLayout . xaxis . r2l ( ann . x ) * dataScale [ 0 ] ,
43
43
fullSceneLayout . yaxis . r2l ( ann . y ) * dataScale [ 1 ] ,
44
44
fullSceneLayout . zaxis . r2l ( ann . z ) * dataScale [ 2 ]
You can’t perform that action at this time.
0 commit comments