From e251f33656c6e3283ea8e6f59658ad5b2a334cbd Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Wed, 3 Jul 2024 12:50:07 -0600 Subject: [PATCH] Enable blocking for vertex boards --- CHANGELOG.md | 6 +++++ package-lock.json | 44 ++++++++++++++++++++++++++++++++----- package.json | 4 ++-- src/components/Board.svelte | 1 + 4 files changed, 47 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bde427..0be4a13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.2] - 2024-07-03 + +### Added + +* Vertex boards now support blocking. + ## [1.3.1] - 2024-06-26 ### Fixed diff --git a/package-lock.json b/package-lock.json index 98a6a4c..b94e158 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "abstractplay-designer", - "version": "1.3.0", + "version": "1.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "abstractplay-designer", - "version": "1.3.0", + "version": "1.3.2", "dependencies": { - "@abstractplay/renderer": "^1.0.0-ci-9687382852.0", + "@abstractplay/renderer": "^1.0.0-ci-9783251381.0", "nanoid": "^4.0.2", "peerjs": "^1.4.7", "rfdc": "^1.3.0" @@ -29,9 +29,9 @@ } }, "node_modules/@abstractplay/renderer": { - "version": "1.0.0-ci-9687382852.0", - "resolved": "https://npm.pkg.github.com/download/@abstractplay/renderer/1.0.0-ci-9687382852.0/4c254f300161382dfa1ef877b117616a953fac63", - "integrity": "sha512-MCo2gPT3PTQj5yOsbItfI6wrIzzQphtkAXTFPSKPx1zQVTqAA/VB0wa+7t9+HiPV+pL/Rt1qxSX9Z4QURKnrVA==", + "version": "1.0.0-ci-9783251381.0", + "resolved": "https://npm.pkg.github.com/download/@abstractplay/renderer/1.0.0-ci-9783251381.0/92ac089be0a48c23c7b1b7cfee75a4a7a671b34f", + "integrity": "sha512-J3Pb0tVC8DSbESBo1xWysAzN91y3G20qfTm6iD2ggvMcitnqfqN/fnHNmfV/clFI6U+Y5DzGgIEE0dKKL2Hp6g==", "license": "MIT", "dependencies": { "@svgdotjs/svg.js": "3.2.0", @@ -40,6 +40,7 @@ "ajv": "^8.12.0", "color-convert": "^2.0.1", "fnv-plus": "^1.3.1", + "graphology": "^0.25.4", "honeycomb-grid": "4.1.1", "json-stringify-deterministic": "^1.0.12", "tinycolor2": "^1.6.0", @@ -1852,6 +1853,14 @@ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, "node_modules/ext": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", @@ -2177,6 +2186,24 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, + "node_modules/graphology": { + "version": "0.25.4", + "resolved": "https://registry.npmjs.org/graphology/-/graphology-0.25.4.tgz", + "integrity": "sha512-33g0Ol9nkWdD6ulw687viS8YJQBxqG5LWII6FI6nul0pq6iM2t5EKquOTFDbyTblRB3O9I+7KX4xI8u5ffekAQ==", + "dependencies": { + "events": "^3.3.0", + "obliterator": "^2.0.2" + }, + "peerDependencies": { + "graphology-types": ">=0.24.0" + } + }, + "node_modules/graphology-types": { + "version": "0.24.7", + "resolved": "https://registry.npmjs.org/graphology-types/-/graphology-types-0.24.7.tgz", + "integrity": "sha512-tdcqOOpwArNjEr0gNQKCXwaNCWnQJrog14nJNQPeemcLnXQUUGrsCWpWkVKt46zLjcS6/KGoayeJfHHyPDlvwA==", + "peer": true + }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -2949,6 +2976,11 @@ "node": ">=0.10.0" } }, + "node_modules/obliterator": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", + "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==" + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", diff --git a/package.json b/package.json index 2456210..fd73fb4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "abstractplay-designer", "private": true, - "version": "1.3.1", + "version": "1.3.2", "type": "module", "scripts": { "dev": "vite", @@ -29,7 +29,7 @@ "vite": "^4.4.5" }, "dependencies": { - "@abstractplay/renderer": "^1.0.0-ci-9687382852.0", + "@abstractplay/renderer": "^1.0.0-ci-9783251381.0", "nanoid": "^4.0.2", "peerjs": "^1.4.7", "rfdc": "^1.3.0" diff --git a/src/components/Board.svelte b/src/components/Board.svelte index 25d733d..b8ad46a 100644 --- a/src/components/Board.svelte +++ b/src/components/Board.svelte @@ -94,6 +94,7 @@ ) { if ( $state.board.style.startsWith("squares") || + $state.board.style.startsWith("vertex") || $state.board.style.startsWith("hex-odd") || $state.board.style.startsWith("hex-even") || $state.board.style.startsWith("hex-slanted") ||