(dimension)
| 95 | } |
| 96 | |
| 97 | get_key_for_dimension(dimension) { |
| 98 | const scales_metadata = this.get('scales_metadata'); |
| 99 | for (const scale in scales_metadata) { |
| 100 | if (scales_metadata[scale].dimension === dimension) { |
| 101 | return scale; |
| 102 | } |
| 103 | } |
| 104 | return null; |
| 105 | } |
| 106 | |
| 107 | get_key_for_orientation(orientation) { |
| 108 | const scales_metadata = this.get('scales_metadata'); |