@graphysdk/viz-engine 0.0.1-plugins.3 → 0.0.1-plugins.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.d.ts +117 -11
- package/dist/index.mjs +2731 -2123
- package/package.json +3 -8
- package/dist/extensions.cjs +0 -1
- package/dist/extensions.d.ts +0 -1296
- package/dist/extensions.mjs +0 -86
- package/dist/geom.utils-BbMUNkrO.js +0 -556
- package/dist/geom.utils-DbZj1kY1.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphysdk/viz-engine",
|
|
3
3
|
"author": "Graphy",
|
|
4
|
-
"version": "0.0.1-plugins.
|
|
4
|
+
"version": "0.0.1-plugins.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"import": "./dist/index.mjs",
|
|
19
19
|
"require": "./dist/index.cjs"
|
|
20
|
-
},
|
|
21
|
-
"./extensions": {
|
|
22
|
-
"types": "./dist/extensions.d.ts",
|
|
23
|
-
"import": "./dist/extensions.mjs",
|
|
24
|
-
"require": "./dist/extensions.cjs"
|
|
25
20
|
}
|
|
26
21
|
},
|
|
27
22
|
"dependencies": {
|
|
@@ -47,9 +42,9 @@
|
|
|
47
42
|
"vite-plugin-dts": "^4.5.4",
|
|
48
43
|
"vitest": "^4.1.0",
|
|
49
44
|
"@graphytools/eslint-config": "0.0.1",
|
|
45
|
+
"@graphytools/vitest-config": "1.0.0",
|
|
50
46
|
"@graphytools/eslint-plugin-graphy": "1.0.0",
|
|
51
|
-
"@graphytools/typescript-config": "0.0.1"
|
|
52
|
-
"@graphytools/vitest-config": "1.0.0"
|
|
47
|
+
"@graphytools/typescript-config": "0.0.1"
|
|
53
48
|
},
|
|
54
49
|
"lint-staged": {
|
|
55
50
|
"*.{ts,tsx,js,jsx,json,css,md}": [
|
package/dist/extensions.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./geom.utils-DbZj1kY1.cjs");function l(o,t,r){const e=o[t];return typeof e=="number"?e:r??null}function u(o,t,r){const e=o[t];return typeof e=="string"?e:r??null}class d{constructor(){this.columnTypes=new Map,this.kindColumns=new Map,this.rows=[]}kind(t,r){if(this.kindColumns.has(t))throw new Error(`createMarkTable: kind "${t}" is already declared.`);for(const[e,n]of Object.entries(r)){const a=this.columnTypes.get(e);if(a!==void 0&&a!==n)throw new Error(`createMarkTable: column "${e}" is declared as both "${a}" and "${n}".`);this.columnTypes.set(e,n)}return this.kindColumns.set(t,Object.keys(r)),this}push(t,r){const e=this.kindColumns.get(t);if(!e)throw new Error(`createMarkTable: cannot push to undeclared kind "${t}".`);for(const n of e)if(!(n in r))throw new Error(`createMarkTable: row for kind "${t}" is missing column "${n}".`);for(const n of Object.keys(r))if(!e.includes(n))throw new Error(`createMarkTable: column "${n}" is not declared for kind "${t}".`);return this.rows.push({kind:t,values:r}),this}toDataset(t){const{kindColumn:r}=t;if(this.columnTypes.has(r))throw new Error(`createMarkTable: kindColumn "${r}" collides with a declared column.`);const e={[r]:{type:"categorical",values:this.rows.map(n=>n.kind)}};for(const[n,a]of this.columnTypes)e[n]={type:a,values:this.rows.map(c=>{const i=c.values[n];return i===void 0?null:i})};return new s.Dataset(e)}}function f(){return new d}function m(o){return{type:o.type,defaultParams:o.defaultParams??{},coordinates:o.coordinates}}function h(o,t,r,e,n){const a=r-t;return a===0?e:e+(o-t)/a*(n-e)}exports.Dataset=s.Dataset;exports.Geom=s.Geom;exports.extractConstantValue=s.extractConstantValue;exports.extractVariableName=s.extractVariableName;exports.readAesthetic=s.readAesthetic;exports.sortByXIfContinuous=s.sortByXIfContinuous;exports.variableFor=s.variableFor;exports.createMarkTable=f;exports.defineAnnotation=m;exports.interpolateInScaledInterval=h;exports.readNumber=l;exports.readString=u;
|