(options = {})
| 465 | * @returns {Map<string, Record<string, number>>} known properties table |
| 466 | */ |
| 467 | const getKnownProperties = (options = {}) => { |
| 468 | const key = |
| 469 | (options.animation ? 1 : 0) | |
| 470 | (options.container ? 2 : 0) | |
| 471 | (options.customIdents ? 4 : 0) | |
| 472 | (options.grid ? 8 : 0); |
| 473 | let table = KNOWN_PROPERTIES_CACHE.get(key); |
| 474 | if (table === undefined) { |
| 475 | table = buildKnownProperties(options); |
| 476 | KNOWN_PROPERTIES_CACHE.set(key, table); |
| 477 | } |
| 478 | return table; |
| 479 | }; |
| 480 | |
| 481 | const EMPTY_COMMENT_OPTIONS = { |
| 482 | options: null, |
no test coverage detected