File tree 18 files changed +24
-17
lines changed
18 files changed +24
-17
lines changed Original file line number Diff line number Diff line change
1
+ - Display the version of plotly.js when hovering over the modebar [[ #6077 ] ( https://github.com/plotly/plotly.js/pull/6077 )]
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Vyběr lasem' , // components/modebar/buttons.js:112
25
25
'Orbital rotation' : 'Rotace (orbitální)' , // components/modebar/buttons.js:279
26
26
'Pan' : 'Posunovat' , // components/modebar/buttons.js:94
27
- 'Produced with Plotly' : 'Vytvořeno pomocí Plotly' , // components/modebar/modebar.js:256
27
+ 'Produced with Plotly.js ' : 'Vytvořeno pomocí Plotly.js' , // components/modebar/modebar.js:256
28
28
'Reset' : 'Obnovit nastavení' , // components/modebar/buttons.js:432
29
29
'Reset axes' : 'Obnovit nastavení os' , // components/modebar/buttons.js:148
30
30
'Reset camera to default' : 'Obnovit nastavení kamery na výchozí stav' , // components/modebar/buttons.js:314
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Dewiswch â lasŵ' , // components / modebar / buttons.js: 123
25
25
'Orbital rotation' : 'Cylchdroi orbital' , // components / modebar / buttons.js: 287
26
26
'Pan' : 'Pan' , // components / modebar / buttons.js: 105
27
- 'Produced with Plotly' : 'Cynhyrchwyd gyda Plotly' , // components / modebar / modebar.js: 272
27
+ 'Produced with Plotly.js ' : 'Cynhyrchwyd gyda Plotly.js ' , // components / modebar / modebar.js: 272
28
28
'Reset' : 'Ailosod' , // components / modebar / buttons.js: 443
29
29
'Reset axes' : 'Ailosod echelinau' , // components / modebar / buttons.js: 159
30
30
'Reset camera to default' : 'Ailosod camera i\'r rhagosodiad' , // components / modebar / buttons.js: 325
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
23
23
'Lasso Select' : 'Lassoauswahl' , // components/modebar/buttons.js:112
24
24
'Orbital rotation' : 'Orbitalrotation' , // components/modebar/buttons.js:279
25
25
'Pan' : 'Verschieben' , // components/modebar/buttons.js:94
26
- 'Produced with Plotly' : 'Erstellt mit Plotly' , // components/modebar/modebar.js:256
26
+ 'Produced with Plotly.js ' : 'Erstellt mit Plotly.js' , // components/modebar/modebar.js:256
27
27
'Reset' : 'Zurücksetzen' , // components/modebar/buttons.js:432
28
28
'Reset axes' : 'Achsen zurücksetzen' , // components/modebar/buttons.js:148
29
29
'Reset camera to default' : 'Kamera auf Standard zurücksetzen' , // components/modebar/buttons.js:314
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Seleccionar con lazo' , // components/modebar/buttons.js:112
25
25
'Orbital rotation' : 'Rotación esférica' , // components/modebar/buttons.js:279
26
26
'Pan' : 'Modo Panorámica' , // components/modebar/buttons.js:94
27
- 'Produced with Plotly' : 'Hecho con Plotly' , // components/modebar/modebar.js:256
27
+ 'Produced with Plotly.js ' : 'Hecho con Plotly.js' , // components/modebar/modebar.js:256
28
28
'Reset' : 'Reiniciar' , // components/modebar/buttons.js:431
29
29
'Reset axes' : 'Reiniciar ejes' , // components/modebar/buttons.js:148
30
30
'Reset camera to default' : 'Restaurar cámara predeterminada' , // components/modebar/buttons.js:313
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Lassovalinta' ,
25
25
'Orbital rotation' : 'Orbitaalikierto' ,
26
26
'Pan' : 'Panorointi' ,
27
- 'Produced with Plotly' : 'Tuotettu Plotlyllä ' ,
27
+ 'Produced with Plotly.js ' : 'Tuotettu Plotly.jsllä ' ,
28
28
'Reset' : 'Palauta oletusasetukset' ,
29
29
'Reset axes' : 'Palauta akselien oletusasetukset' ,
30
30
'Reset camera to default' : 'Palauta kameran oletusasetukset' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Sélection lasso' ,
25
25
'Orbital rotation' : 'Rotation orbitale' ,
26
26
'Pan' : 'Translation' ,
27
- 'Produced with Plotly' : 'Généré avec Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Généré avec Plotly.js ' ,
28
28
'Reset' : 'Réinitialiser' ,
29
29
'Reset axes' : 'Réinitialiser les axes' ,
30
30
'Reset camera to default' : 'Régler la caméra à sa valeur défaut' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Selezione lazo' , // components/modebar/buttons.js:112
25
25
'Orbital rotation' : 'Rotazione orbitale' , // components/modebar/buttons.js:279
26
26
'Pan' : 'Sposta' , // components/modebar/buttons.js:94
27
- 'Produced with Plotly' : 'Creato con Plotly' , // components/modebar/modebar.js:256
27
+ 'Produced with Plotly.js ' : 'Creato con Plotly.js ' , // components/modebar/modebar.js:256
28
28
'Reset' : 'Reset' , // components/modebar/buttons.js:432
29
29
'Reset axes' : 'Resetta gli assi' , // components/modebar/buttons.js:148
30
30
'Reset camera to default' : 'Reimposta la camera ai valori predefiniti' , // components/modebar/buttons.js:314
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
23
23
'Lasso Select' : '投げ縄選択' , // components/modebar/buttons.js:112
24
24
'Orbital rotation' : '軌道回転' , // components/modebar/buttons.js:279
25
25
'Pan' : '拡大' , // components/modebar/buttons.js:94
26
- 'Produced with Plotly' : 'Plotlyにより作成' , // components/modebar/modebar.js:256
26
+ 'Produced with Plotly.js ' : 'Plotly.jsにより作成' , // components/modebar/modebar.js:256
27
27
'Reset' : 'リセット' , // components/modebar/buttons.js:432
28
28
'Reset axes' : '軸をリセット' , // components/modebar/buttons.js:148
29
29
'Reset camera to default' : 'カメラをデフォルトに戻す' , // components/modebar/buttons.js:314
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : '올가미 선택' ,
25
25
'Orbital rotation' : '궤도 수정' ,
26
26
'Pan' : '이동' ,
27
- 'Produced with Plotly' : 'Plotly 제공' ,
27
+ 'Produced with Plotly.js ' : 'Plotly.js 제공' ,
28
28
'Reset' : '초기화' ,
29
29
'Reset axes' : '축 초기화' ,
30
30
'Reset camera to default' : 'camera를 기본값으로 초기화' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Seleção de laço' ,
25
25
'Orbital rotation' : 'Rotação orbital' ,
26
26
'Pan' : 'Mover' ,
27
- 'Produced with Plotly' : 'Criado com o Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Criado com o Plotly.js ' ,
28
28
'Reset' : 'Restaurar' ,
29
29
'Reset axes' : 'Restaurar eixos' ,
30
30
'Reset camera to default' : 'Restaurar câmera para padrão' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Seleção de laço' ,
25
25
'Orbital rotation' : 'Rotação orbital' ,
26
26
'Pan' : 'Mover' ,
27
- 'Produced with Plotly' : 'Criado com Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Criado com Plotly.js ' ,
28
28
'Reset' : 'Restaurar' ,
29
29
'Reset axes' : 'Restaurar eixos' ,
30
30
'Reset camera to default' : 'Restaurar câmera para padrão' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Лассо' ,
25
25
'Orbital rotation' : 'Орбитальное движение' ,
26
26
'Pan' : 'Сдвиг' ,
27
- 'Produced with Plotly' : 'Создано с помощью Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Создано с помощью Plotly.js ' ,
28
28
'Reset' : 'Сбросить к значениям по умолчанию' ,
29
29
'Reset axes' : 'Сбросить отображение осей к значениям по умолчанию' ,
30
30
'Reset camera to default' : 'Сбросить параметры камеры к значениям по умолчанию' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Välj lasso' , // components/modebar/buttons.js:121
25
25
'Orbital rotation' : 'Orbital rotation' , // components/modebar/buttons.js:281
26
26
'Pan' : 'Panorera' , // components/modebar/buttons.js:103
27
- 'Produced with Plotly' : 'Skapad med Plotly' , // components/modebar/modebar.js:304
27
+ 'Produced with Plotly.js ' : 'Skapad med Plotly.js' , // components/modebar/modebar.js:304
28
28
'Reset' : 'Återställ' , // components/modebar/buttons.js:433
29
29
'Reset axes' : 'Återställ axlar' , // components/modebar/buttons.js:157
30
30
'Reset camera to default' : 'Återställ kamera till standard' , // components/modebar/buttons.js:319
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Kuteua lasso' ,
25
25
'Orbital rotation' : 'Mzunguko wa mazao' ,
26
26
'Pan' : 'Tandaza' ,
27
- 'Produced with Plotly' : 'Ilitengenezwa na Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Ilitengenezwa na Plotly.js ' ,
28
28
'Reset' : 'Weka upya' ,
29
29
'Reset axes' : 'Weka upya axes' ,
30
30
'Reset camera to default' : 'Rudisha kamera kwenye uhifadhi wa default' ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = {
24
24
'Lasso Select' : 'Ласо' ,
25
25
'Orbital rotation' : 'Рух по орбіті' ,
26
26
'Pan' : 'Зсув' ,
27
- 'Produced with Plotly' : 'Створено за допомогою Plotly' ,
27
+ 'Produced with Plotly.js ' : 'Створено за допомогою Plotly.js ' ,
28
28
'Reset' : 'Встановити значення за замовчуванням' ,
29
29
'Reset axes' : 'Встановити осям значення за замовчуванням' ,
30
30
'Reset camera to default' : 'Встановити камері значення за замовчуванням' ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
23
23
'Lasso Select' : '套索选择' , // components/modebar/buttons.js:112
24
24
'Orbital rotation' : '轨道旋转' , // components/modebar/buttons.js:279
25
25
'Pan' : '平移' ,
26
- 'Produced with Plotly' : '由Plotly生成' , // components/modebar/modebar.js:256
26
+ 'Produced with Plotly.js ' : '由Plotly.js生成' , // components/modebar/modebar.js:256
27
27
'Reset' : '重置' , // components/modebar/buttons.js:432
28
28
'Reset axes' : '重置轴' , // components/modebar/buttons.js:148
29
29
'Reset camera to default' : '重置镜头视角为默认状态' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ var isNumeric = require('fast-isnumeric');
5
5
6
6
var Lib = require ( '../../lib' ) ;
7
7
var Icons = require ( '../../fonts/ploticon' ) ;
8
+ var version = require ( '../../version' ) . version ;
9
+
8
10
var Parser = new DOMParser ( ) ;
9
11
10
12
/**
@@ -283,6 +285,10 @@ proto.hasButtons = function(buttons) {
283
285
return true ;
284
286
} ;
285
287
288
+ function jsVersion ( str ) {
289
+ return str + ' (v' + version + ')' ;
290
+ }
291
+
286
292
/**
287
293
* @return {HTMLDivElement } The logo image wrapped in a group
288
294
*/
@@ -292,7 +298,7 @@ proto.getLogo = function() {
292
298
293
299
a . href = 'https://plotly.com/' ;
294
300
a . target = '_blank' ;
295
- a . setAttribute ( 'data-title' , Lib . _ ( this . graphInfo , 'Produced with Plotly' ) ) ;
301
+ a . setAttribute ( 'data-title' , jsVersion ( Lib . _ ( this . graphInfo , 'Produced with Plotly.js' ) ) ) ;
296
302
a . className = 'modebar-btn plotlyjsicon modebar-btn--logo' ;
297
303
298
304
a . appendChild ( this . createIcon ( Icons . newplotlylogo ) ) ;
You can’t perform that action at this time.
0 commit comments