@gi-tcg/webui

0.6.8 • Public • Published

@gi-tcg/webui Web UI for Genius Invokation

Warning

This is an ESM-only package.

Usage

import { createPlayer } from "@gi-tcg/webui";

// Inject a player chessboard with IO
const io0 = createPlayer(document.querySelector("#player0"), 0);

// Acquire a show-only standalone chessboard (using Web Component)
const chessboard = document.createElement("gi-tcg-standalone-chessboard");
chessboard.stateData = /* ... */;
document.body.append(chessboard);

A live example can be found here.

Readme

Keywords

none

Package Sidebar

Install

npm i @gi-tcg/webui

Weekly Downloads

229

Version

0.6.8

License

AGPL-3.0-or-later

Unpacked Size

418 kB

Total Files

6

Last publish

Collaborators

  • guyutongxue