(coordSysType, injectTargetModel)
| 351 | ) => CoordinateSystem | NullUndefined; |
| 352 | |
| 353 | export const simpleCoordSysInjectionProvider: CoordSysInjectionProvider = function (coordSysType, injectTargetModel) { |
| 354 | const coordSysModel = injectTargetModel.getReferringComponents( |
| 355 | coordSysType, SINGLE_REFERRING |
| 356 | ).models[0] as (ComponentModel & {coordinateSystem: CoordinateSystem}); |
| 357 | return coordSysModel && coordSysModel.coordinateSystem; |
| 358 | }; |
| 359 | |
| 360 | export default CoordinateSystemManager; |
nothing calls this directly
no test coverage detected
searching dependent graphs…