-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
deebloo
committed
Mar 13, 2024
1 parent
805a055
commit bbcbe71
Showing
6 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { GoBoardElement } from "./lib/board.js"; | ||
export { GoStoneElement } from "./lib/stone.js"; | ||
export { GoStoneMarkerElement } from "./lib/marker.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { css, element, html, shadow, tagName } from "@joist/element"; | ||
|
||
@element | ||
export class GoStoneMarkerElement extends HTMLElement { | ||
@tagName static tag = "go-stone-marker"; | ||
|
||
@shadow styles = css` | ||
:host { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 50px; | ||
width: 50px; | ||
} | ||
`; | ||
|
||
@shadow dom = html`<slot></slot>`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
import "./lib/board.js"; | ||
import "./lib/board.js"; | ||
import "./lib/stone.js"; | ||
import "./lib/marker.js"; | ||
|
||
import { GoBoardElement } from "./lib/board.js"; | ||
import { GoStoneElement } from "./lib/stone.js"; | ||
import { GoStoneMarkerElement } from "./lib/marker.js"; | ||
|
||
declare global { | ||
interface HTMLElementTagNameMap { | ||
"go-board": GoBoardElement; | ||
"go-stone": GoStoneElement; | ||
"go-marker": GoStoneMarkerElement; | ||
} | ||
|
||
namespace JSX { | ||
interface IntrinsicElements { | ||
["go-board"]: any; | ||
["go-stone"]: any; | ||
["go-marker"]: any; | ||
} | ||
} | ||
} |