Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* Builds stable identities for cached base PCB SVG markup.
*/
export class PcbBaseSvgCacheKey {
/**
* Resolves one side, Gerber selection, and viewport-layer cache key.
* @param {'top' | 'bottom'} side Active side.
* @param {{ renderMode: string, layerId: string, layerIds: string[] }} gerberOptions Gerber render options.
* @param {string[]} [hiddenLayerAliases] Layers excluded from viewport bounds.
* @returns {string}
*/
static resolve(side, gerberOptions, hiddenLayerAliases = []) {
return [
side,
String(gerberOptions.renderMode || ''),
String(gerberOptions.layerId || ''),
(gerberOptions.layerIds || []).join(','),
hiddenLayerAliases.map(String).join(',')
].join('|')
}
}
5f635a4c0This file is pinned to the selected release. Download the original to open it in your design tool.