MCPcopy Index your code
hub / github.com/bqplot/bqplot / get_key_for_orientation

Method get_key_for_orientation

js/src/MarkModel.ts:107–115  ·  view source on GitHub ↗
(orientation)

Source from the content-addressed store, hash-verified

105 }
106
107 get_key_for_orientation(orientation) {
108 const scales_metadata = this.get('scales_metadata');
109 for (const scale in scales_metadata) {
110 if (scales_metadata[scale].orientation === orientation) {
111 return scale;
112 }
113 }
114 return null;
115 }
116
117 // TODO make this abstract
118 get_data_dict(data, index) {

Callers 3

mark_scales_updatedMethod · 0.80
mark_padding_updatedMethod · 0.80
remove_markMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected