diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 9fa1332..b907e33 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 4.6.1
+current_version = 5.0.2
commit = False
tag = False
serialize =
diff --git a/.version b/.version
index 8ac28bf..a1ef0ca 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-4.6.1
+5.0.2
diff --git a/README.md b/README.md
index 2b70500..a12cc1b 100755
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ Wrapper library for [`@linkurious/ogma`](https://ogma.linkurio.us) to use with [
- [``](#popup-)
- [``](#tooltip-)
- [``](#canvaslayer-)
+ - [``](#layer-)
+ - [``](#overlay-)
- Transformations:
- [``](#nodegrouping-)
- [``](#edgegrouping-)
diff --git a/demo/data.json b/demo/public/data.json
similarity index 100%
rename from demo/data.json
rename to demo/public/data.json
diff --git a/demo/src/App.tsx b/demo/src/App.tsx
index f0ded54..28bb262 100644
--- a/demo/src/App.tsx
+++ b/demo/src/App.tsx
@@ -115,13 +115,13 @@ export default function App() {
.on("mousemove", () => {
const ptr = ogma.getPointerInformation();
requestSetTooltipPosition(
- ogma.view.screenToGraphCoordinates({ x: ptr.x, y: ptr.y }),
+ ogma.view.screenToGraphCoordinates({ x: ptr.x, y: ptr.y })
);
setTarget(ptr.target);
})
// locate graph when the nodes are added
.on("addNodes", () =>
- ogma.view.locateGraph({ duration: 250, padding: 50 }),
+ ogma.view.locateGraph({ duration: 250, padding: 50 })
);
}}
>
diff --git a/demo/vite.config.ts b/demo/vite.config.ts
index e382dfa..07301d4 100644
--- a/demo/vite.config.ts
+++ b/demo/vite.config.ts
@@ -5,5 +5,6 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
+ base: "/ogma-react/",
plugins: [react()],
});
diff --git a/package-lock.json b/package-lock.json
index be8645d..1e5c203 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@linkurious/ogma-react",
- "version": "4.6.1",
+ "version": "5.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@linkurious/ogma-react",
- "version": "4.6.1",
+ "version": "5.0.2",
"license": "Apache-2.0",
"dependencies": {
"lodash.throttle": "^4.1.1"
@@ -40,7 +40,7 @@
"vitest": "latest"
},
"peerDependencies": {
- "@linkurious/ogma": "^4.5.1",
+ "@linkurious/ogma": "^5.0.2",
"react": "^18.0.8",
"react-dom": "^18.0.8"
}
@@ -915,9 +915,9 @@
}
},
"node_modules/@linkurious/ogma": {
- "version": "4.6.0",
- "resolved": "https://nexus3.linkurious.net/repository/npm/@linkurious/ogma/-/ogma-4.6.0.tgz",
- "integrity": "sha512-emz+r/QZP+P4cP2z8j3MAhQEBAtpqra+9n+1OqMdVt2cRKovZBSJZ0fs8ISq7MCz+ETgbl1iFZ374iCha1yezQ==",
+ "version": "5.0.2",
+ "resolved": "https://nexus3.linkurious.net/repository/npm/@linkurious/ogma/-/ogma-5.0.2.tgz",
+ "integrity": "sha512-FugQX6pCGU9lXPGmAerLGqY5KE6328mN1lhZyH7oTx/9cgc8InmRDeHZsEKwlOjBoUawSPuUHvUgfu/5/3hmUA==",
"peer": true,
"optionalDependencies": {
"@mapbox/mapbox-gl-rtl-text": "^0.2.0",
@@ -9778,9 +9778,9 @@
}
},
"@linkurious/ogma": {
- "version": "4.6.0",
- "resolved": "https://nexus3.linkurious.net/repository/npm/@linkurious/ogma/-/ogma-4.6.0.tgz",
- "integrity": "sha512-emz+r/QZP+P4cP2z8j3MAhQEBAtpqra+9n+1OqMdVt2cRKovZBSJZ0fs8ISq7MCz+ETgbl1iFZ374iCha1yezQ==",
+ "version": "5.0.2",
+ "resolved": "https://nexus3.linkurious.net/repository/npm/@linkurious/ogma/-/ogma-5.0.2.tgz",
+ "integrity": "sha512-FugQX6pCGU9lXPGmAerLGqY5KE6328mN1lhZyH7oTx/9cgc8InmRDeHZsEKwlOjBoUawSPuUHvUgfu/5/3hmUA==",
"peer": true,
"requires": {
"@mapbox/mapbox-gl-rtl-text": "^0.2.0",
diff --git a/package.json b/package.json
index a45f749..4a9587b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@linkurious/ogma-react",
- "version": "4.6.1",
+ "version": "5.0.2",
"description": "A light adaptation of Ogma for React application",
"keywords": [
"ogma",
@@ -47,7 +47,7 @@
"doc:publish": "npm run build:demo && gh-pages -d demo/dist"
},
"peerDependencies": {
- "@linkurious/ogma": "^4.5.1",
+ "@linkurious/ogma": "^5.0.2",
"react": "^18.0.8",
"react-dom": "^18.0.8"
},
@@ -92,4 +92,4 @@
"dependencies": {
"lodash.throttle": "^4.1.1"
}
-}
+}
\ No newline at end of file