Skip to content

Commit

Permalink
Merge pull request #41 from zilliztech/separate_layout_and_render
Browse files Browse the repository at this point in the history
fix bugs
  • Loading branch information
shanghaikid committed Jun 16, 2022
2 parents 83dbbfe + e50c4a4 commit 7f9a12e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5,449 deletions.
2 changes: 1 addition & 1 deletion federjs/FederView/HnswView/layout/searchViewLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function searchViewLayoutHandler(searchRes, federView) {
federView
);

searchTarget = {
const searchTarget = {
id: 'target',
r: targetR * canvasScale,
searchViewPosLevels: d3
Expand Down
3 changes: 1 addition & 2 deletions federjs/FederView/IvfflatView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import animateCoarse2Fine from './render/animateCoarse2Fine';
import animateFine2Coarse from './render/animateFine2Coarse';
import animateFine2Fine from './render/animateFine2Fine';
import InfoPanel from './InfoPanel';
import { cloneDeep } from 'lodash';

const defaultIvfflatViewParams = {
minVoronoiRadius: 4,
Expand Down Expand Up @@ -130,7 +129,7 @@ export default class IvfflatView extends BaseView {
const searchViewLayoutData = {
nprobe: searchRes.csResIds.length,
k: searchRes.fsResIds.length,
clusters: cloneDeep(this.overviewLayoutData.clusters),
clusters: JSON.parse(JSON.stringify(this.overviewLayoutData.clusters)),
};
searchViewLayoutData.nprobeClusters = searchViewLayoutData.clusters.filter(
(cluster) => searchRes.csResIds.indexOf(cluster.clusterId) >= 0
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zilliz/feder",
"author": "ued@zilliz.com",
"version": "0.2.0",
"version": "0.2.1",
"description": "visualization packages for vector space",
"main": "dist/index.js",
"files": [
Expand Down Expand Up @@ -54,7 +54,6 @@
"dependencies": {
"d3": "^7.4.4",
"d3-fetch": "^3.0.1",
"lodash": "^4.17.21",
"seedrandom": "^3.0.5",
"tsne-js": "^1.0.3",
"umap-js": "^1.3.3"
Expand Down
Loading

0 comments on commit 7f9a12e

Please sign in to comment.