mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 12:49:56 +00:00
28 lines
639 B
TypeScript
28 lines
639 B
TypeScript
import type { OpeningCfg } from './types';
|
|
|
|
export interface OpeningFaceOffset {
|
|
ox: number;
|
|
oy: number;
|
|
cm: number;
|
|
side: -1 | 1;
|
|
}
|
|
|
|
export interface OpeningSymbolOffset {
|
|
ox: number;
|
|
oy: number;
|
|
}
|
|
|
|
/**
|
|
* Resolve only the visible symbol translation. Every opening symbol stays on
|
|
* the saved wall centreline: wall-face direction/depth and flip direction are
|
|
* separate inputs and must never move its origin (#250).
|
|
*/
|
|
export function openingSymbolOffset(
|
|
_type: OpeningCfg['type'],
|
|
_flipV: boolean,
|
|
_angle: number,
|
|
_face: Pick<OpeningFaceOffset, 'ox' | 'oy'>,
|
|
): OpeningSymbolOffset {
|
|
return { ox: 0, oy: 0 };
|
|
}
|