(data, schema, timeParser, utcParser)
| 109145 | return f && f.responseType || "text"; |
| 109146 | } |
| 109147 | function read(data, schema, timeParser, utcParser) { |
| 109148 | schema = schema || {}; |
| 109149 | const reader = formats(schema.type || "json"); |
| 109150 | if (!reader) (0, _vegaUtil.error)("Unknown data format type: " + schema.type); |
| 109151 | data = reader(data, schema); |
| 109152 | if (schema.parse) parse(data, schema.parse, timeParser, utcParser); |
| 109153 | if ((0, _vegaUtil.hasOwnProperty)(data, "columns")) delete data.columns; |
| 109154 | return data; |
| 109155 | } |
| 109156 | function parse(data, types, timeParser, utcParser) { |
| 109157 | if (!data.length) return; // early exit for empty data |
| 109158 | const locale = (0, _vegaFormat.timeFormatDefaultLocale)(); |
no test coverage detected