Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: density-based point size #143

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"prerelease": "rm -rf dist/*; npm run build; zip -r dist.zip dist",
"pretest": "npm run lint",
"start": "vite --port=3000",
"test": "rollup -c ./rollup.test.config.mjs | tape-run --render='tap-spec'",
"test": "rollup -c ./rollup.test.config.mjs | tape-run --browser='electron' --render='tap-spec'",
"watch": "rollup -cw"
},
"dependencies": {
"@flekschas/utils": "^0.31.0",
"dom-2d-camera": "~2.2.5",
"gl-matrix": "~3.4.3",
"kdbush": "~3.0.0",
"kdbush": "~4.0.2",
"lodash-es": "~4.17.21",
"pub-sub-es": "~2.0.2",
"regl": "~2.1.0",
Expand Down Expand Up @@ -65,6 +65,7 @@
"d3-random": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-selection": "^3.0.0",
"electron": "^24.1.3",
"eslint": "^8.43.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -77,7 +78,7 @@
"merge": "^2.1.1",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"rollup": "^3.18.0",
"rollup": "^3.21.1",
"rollup-plugin-filesize": "^10.0.0",
"tap-spec": "^5.0.0",
"tape-run": "^10.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const COLOR_BG_IDX = 3;
export const COLOR_NUM_STATES = 4;
export const FLOAT_BYTES = Float32Array.BYTES_PER_ELEMENT;
export const GL_EXTENSIONS = [
'angle_instanced_arrays',
'OES_texture_float',
'OES_element_index_uint',
'WEBGL_color_buffer_float',
Expand Down Expand Up @@ -100,7 +101,7 @@ export const DEFAULT_GAMMA = 1;
// Default styles
export const MIN_POINT_SIZE = 1;
export const DEFAULT_POINT_SIZE = 6;
export const DEFAULT_POINT_SIZE_SELECTED = 2;
export const DEFAULT_POINT_SIZE_SELECTED = 0;
export const DEFAULT_POINT_OUTLINE_WIDTH = 2;
export const DEFAULT_SIZE_BY = null;
export const DEFAULT_POINT_CONNECTION_SIZE = 2;
Expand Down
Loading
Loading