65 lines
2.0 KiB
TypeScript
65 lines
2.0 KiB
TypeScript
/** Doctors whose card photos need top-anchored cropping (by record id) */
|
|
export const doctorImageFocusTop = new Set<string>([
|
|
'中山大学中山眼科中心-刘臻臻',
|
|
'中山大学中山眼科中心-卓业鸿',
|
|
'中山大学中山眼科中心-文峰',
|
|
'中山大学中山眼科中心-林浩添',
|
|
'中山大学中山眼科中心-陈伟蓉',
|
|
'中山大学中山眼科中心-葛坚',
|
|
'孙逸仙纪念医院-姚和瑞',
|
|
'中山肿瘤-刘卓炜',
|
|
'孙逸仙纪念医院-黄健',
|
|
'中山肿瘤-周志伟',
|
|
'中山肿瘤-孙颖',
|
|
'中山肿瘤-张兰军',
|
|
'中山肿瘤-潘志忠',
|
|
'中山肿瘤-龙浩',
|
|
'中大口腔-王焱',
|
|
'中大口腔-陈泽涛',
|
|
'中大口腔-陈莉莉',
|
|
'中大口腔-黄洪章',
|
|
'中山一院图-何晓顺',
|
|
'中山一院图-龙健婷',
|
|
'中山三院-杨宏志',
|
|
'中山三院-陈规划',
|
|
'中山5院-陈明远',
|
|
'中山六院-宋斌',
|
|
'中山六院-胡品津',
|
|
'中山六院-邓艳红',
|
|
'佛山复星-彭亮',
|
|
'北大深圳-熊奡',
|
|
'南方医院-刘思德',
|
|
'珠江医院-方驰华',
|
|
'珠江医院-徐啊白',
|
|
'广东省人民医院-庄建',
|
|
'广东省人民医院-陈寄梅',
|
|
'广东省妇幼保健院-刘王凯',
|
|
'广东省妇幼保健院-叶秀桢',
|
|
'广妇儿中心-何丽雅',
|
|
'广妇儿中心-陈欣欣',
|
|
'暨大附一院-李琰',
|
|
'暨大附一院-杨景哥'
|
|
])
|
|
|
|
export type DoctorImageAdjust = {
|
|
fit?: 'cover' | 'contain'
|
|
position?: string
|
|
scale?: number
|
|
mediaBackground?: string
|
|
}
|
|
|
|
export const doctorImageAdjustments: Record<string, DoctorImageAdjust> = {
|
|
'中山一院图-裴中': { position: 'center top', scale: 0.9 },
|
|
'暨大附一院-郑小飞': { position: 'center top', scale: 0.9 },
|
|
'中山一院图-陈明晖': { position: 'center top', scale: 0.88 }
|
|
}
|
|
|
|
export function getDoctorImageAdjust(doctorId: string): DoctorImageAdjust | undefined {
|
|
return doctorImageAdjustments[doctorId]
|
|
}
|
|
|
|
export function doctorImageNeedsTopFocus(doctorId: string): boolean {
|
|
if (doctorId in doctorImageAdjustments) return false
|
|
return doctorImageFocusTop.has(doctorId)
|
|
}
|