/**
 * Creates a readout object that contains relevant screen information
 * @param screen A well trajectory screen object
 * @param parentWellFeature The well that the screen belongs to
 * @returns A PropertyDataType object or null if no screen is provided
 */
export function createScreenReadout(screen, parentWellFeature) {
    var _a;
    if (!screen)
        return null;
    return {
        name: `Screen ${parentWellFeature.properties.name}`,
        value: screen.name,
        color: (_a = parentWellFeature.properties) === null || _a === void 0 ? void 0 : _a.color,
    };
}
/**
 * Creates a readout object that contains relevant perforation information
 * @param perforation A well trajectory perforation object
 * @param parentWellFeature The well that the perforation belongs to
 * @returns A PropertyDataType object or null if no perforation is provided
 */
export function createPerforationReadout(perforation, parentWellFeature) {
    var _a;
    if (!perforation)
        return null;
    return {
        name: perforation.name,
        value: perforation.status,
        color: (_a = parentWellFeature.properties) === null || _a === void 0 ? void 0 : _a.color,
    };
}
//# sourceMappingURL=readout.js.map