-
-
${repeat(x => x.storyItems, positionButtonTemplate)}
+ const styles = css`
+ .grid {
+ display: grid;
+ margin: auto;
+ gap: 4px;
+ width: min-content;
+ grid-template-areas:
+ '. above-start above above-end .'
+ 'before-top . . . after-top'
+ 'before . . . after'
+ 'before-bottom . . . after-bottom'
+ '. below-start below below-end .';
+ }
+ `;
+ styles.addStylesTo(canvasElement);
+ canvasElement.classList.add('grid');
- ${repeat(x => x.storyItems, positionTooltipTemplate)}
-
-`).bind({});
+ // Rendering the sprite sheet here prevents it from being included in the code snippet
+ html`
+