Serialize a final keyframe property record (number|string values) to code.
(record: Record<string, number | string>)
| 678 | |
| 679 | /** Serialize a final keyframe property record (number|string values) to code. */ |
| 680 | function recordToCode(record: Record<string, number | string>): string { |
| 681 | const entries = Object.entries(record).map(([k, v]) => `${safeKey(k)}: ${valueToCode(v)}`); |
| 682 | return `{ ${entries.join(", ")} }`; |
| 683 | } |
| 684 | |
| 685 | /** Percentage-keyed property nodes of a keyframes ObjectExpression, in source order. */ |
| 686 | function percentagePropsOf(kfNode: Node): Node[] { |
no test coverage detected