Skip to content

Commit 5323d89

Browse files
committed
rename project
1 parent 4a0be07 commit 5323d89

File tree

6 files changed

+24
-25
lines changed

6 files changed

+24
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
deploy:
9-
if: ${{ github.repository == 'jmjuanes/viz' }}
9+
if: ${{ github.repository == 'jmjuanes/vizjar' }}
1010
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1111
permissions:
1212
pages: write

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
release:
88
name: Release
9-
if: ${{ github.repository == 'jmjuanes/viz' }}
9+
if: ${{ github.repository == 'jmjuanes/vizjar' }}
1010
runs-on: ubuntu-latest
1111
## Set permissions to the github token
1212
## https://github.com/softprops/action-gh-release#permissions
@@ -18,7 +18,7 @@ jobs:
1818

1919
publish:
2020
name: Publish
21-
if: ${{ github.repository == 'jmjuanes/viz' }}
21+
if: ${{ github.repository == 'jmjuanes/vizjar' }}
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v3

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# viz
1+
# VizJar
22

3-
**Viz** is a JavaScript plotting library for the web, designed to simplify the process of creating visualizations. It follows a declarative approach and is rooted in the principles of the Grammar of Graphics, making it intuitive and powerful for users of all levels.
3+
**VizJar** is a JavaScript plotting library for the web, designed to simplify the process of creating visualizations. It follows a declarative approach and is rooted in the principles of the Grammar of Graphics, making it intuitive and powerful for users of all levels.
44

55
## Try it
66

7-
We are working on a playground pp that you can use to try **viz**.
7+
We are working on a playground app that you can use to try **vizjar**.
88

99
## Getting Started
1010

@@ -14,16 +14,16 @@ You can add it to your project using YARN or NPM:
1414

1515
```bash
1616
## Install using NPM
17-
$ npm install --save viz-js
17+
$ npm install --save vizjar
1818

1919
## Install using YARN
20-
$ yarn add viz-js
20+
$ yarn add vizjar
2121
```
2222

2323
### Usage
2424

2525
```javascript
26-
import viz from "viz-js";
26+
import viz from "vizjar";
2727

2828
// 1. Get the element where the plot will be displayed
2929
const parent = document.getElementById("root");

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "viz-js",
2+
"name": "vizjar",
33
"version": "0.0.1",
44
"type": "module",
55
"description": "Micro visualization toolkit for building interactive graphics for data exploration.",
6-
"repository": "https://github.com/jmjuanes/viz.git",
7-
"homepage": "https://www.josemi.xyz/viz",
6+
"repository": "https://github.com/jmjuanes/vizjar.git",
7+
"homepage": "https://www.josemi.xyz/vizjar",
88
"author": "Josemi Juanes <hello@josemi.xyz>",
9-
"bugs": "https://github.com/jmjuanes/viz/issues",
10-
"main": "viz.js",
11-
"module": "viz.js",
9+
"bugs": "https://github.com/jmjuanes/vizjar/issues",
10+
"main": "vizjar.js",
11+
"module": "vizjar.js",
1212
"exports": {
13-
".": "./viz.js",
14-
"./viz.js": "./viz.js",
13+
".": "./vizjar.js",
14+
"./viz.js": "./vizjar.js",
1515
"./package.json": "./package.json"
1616
},
1717
"scripts": {
@@ -20,7 +20,7 @@
2020
"files": [
2121
"README.md",
2222
"LICENSE",
23-
"viz.js"
23+
"vizjar.js"
2424
],
2525
"license": "MIT",
2626
"devDependencies": {

playground.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<meta charset="utf-8">
44
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
5-
<title>Viz Playground</title>
5+
<title>VizJar Playground</title>
66
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@700&display=swap">
77
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700&display=swap">
88
<link rel="stylesheet" href="./node_modules/lowcss/dist/low.css">
@@ -24,15 +24,15 @@
2424
</div>
2525
<!-- Editor code -->
2626
<script type="module">
27-
import viz from "./viz.js";
27+
import vizjar from "./vizjar.js";
2828
import * as CodeCake from "./node_modules/codecake/codecake.js";
2929

3030
const AsyncFunction = Object.getPrototypeOf(async function (){}).constructor;
3131
const editorParent = document.getElementById("playground:editor");
3232
const resultParent = document.getElementById("playground:result");
3333

3434
const editor = CodeCake.create(editorParent, {
35-
code: window.localStorage.getItem("viz:playground:code") || "",
35+
code: window.localStorage.getItem("vizjar:code") || "",
3636
language: "javascript",
3737
className: `codecake-dark h-full`,
3838
readOnly: false,
@@ -42,17 +42,16 @@
4242

4343
// On code change, save data in local storage
4444
editor.onChange(code => {
45-
console.log("save");
46-
window.localStorage.setItem("viz:playground:code", code);
45+
window.localStorage.setItem("vizjar:code", code);
4746
});
4847

4948
// Register listener to execute code
5049
document.getElementById("playground:run").addEventListener("click", async () => {
5150
resultParent.replaceChildren();
5251
const code = `return (async () => {${editor.getCode()}})();`;
5352
try {
54-
const fn = new AsyncFunction("viz", code);
55-
const scene = await fn.call(null, viz);
53+
const fn = new AsyncFunction("vizjar", code);
54+
const scene = await fn.call(null, vizjar);
5655
resultParent.appendChild(scene);
5756
}
5857
catch(error) {
File renamed without changes.

0 commit comments

Comments
 (0)