diff --git a/svelte-app/src/lib/serialization.ts b/svelte-app/src/lib/serialization.ts index 43e2559..6b19863 100644 --- a/svelte-app/src/lib/serialization.ts +++ b/svelte-app/src/lib/serialization.ts @@ -6,8 +6,8 @@ const DEFAULT_SIZES = new Map(SYMBOLS.map(s => [s.id, { w: s.w, h: s.h }])); /** Known outdated defaults: symbolId → [{oldW, oldH}] */ const OUTDATED_SIZES: Record = { - photoeye: [{ w: 56, h: 20 }], - photoeye_v: [{ w: 56, h: 20 }], + photoeye: [{ w: 56, h: 20 }, { w: 30, h: 14 }], + photoeye_v: [{ w: 56, h: 20 }, { w: 30, h: 14 }], }; /** JSON shape stored in localStorage / exported JSON files */ diff --git a/svelte-app/src/lib/symbols.ts b/svelte-app/src/lib/symbols.ts index 807fa92..f8484f0 100644 --- a/svelte-app/src/lib/symbols.ts +++ b/svelte-app/src/lib/symbols.ts @@ -36,8 +36,8 @@ export const SYMBOLS: SymbolDef[] = [ { id: 'fio_sio_fioh_v', name: 'FIO/SIO/FIOH (V)', file: '/symbols/fio_sio_fioh.svg', w: 14, h: 20, defaultRotation: 90, group: 'I/O Modules' }, // --- Sensors --- - { id: 'photoeye', name: 'Photoeye', file: '/symbols/photoeye.svg', w: 30, h: 14, group: 'Sensors' }, - { id: 'photoeye_v', name: 'Photoeye (V)', file: '/symbols/photoeye.svg', w: 30, h: 14, defaultRotation: 90, group: 'Sensors' }, + { id: 'photoeye', name: 'Photoeye', file: '/symbols/photoeye.svg', w: 46, h: 14, group: 'Sensors' }, + { id: 'photoeye_v', name: 'Photoeye (V)', file: '/symbols/photoeye.svg', w: 46, h: 14, defaultRotation: 90, group: 'Sensors' }, { id: 'pressure_sensor', name: 'Pressure Sensor', file: '/symbols/pressure_sensor.svg', w: 20, h: 20, group: 'Sensors' }, { id: 'pressure_sensor_v', name: 'Pressure Sensor (V)', file: '/symbols/pressure_sensor.svg', w: 20, h: 20, defaultRotation: 90, group: 'Sensors' },