Skip to content

Commit

Permalink
feat: increased node limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Aug 15, 2024
1 parent 6e37170 commit 3cb7fbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Universe/Graph/Cubes/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const TextNode = memo(({ node, hide }: Props) => {

scale = Math.max(nodeScale, 20)

return scale
return Math.min(scale, 30)
}, [node.edge_count, node.name, isSelected, isRelative, showSelectionGraph])

const fillOpacity = useMemo(() => {
Expand Down
10 changes: 5 additions & 5 deletions src/stores/useDataStore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ const defaultData: Omit<
categoryFilter: null,
dataInitial: null,
currentPage: 0,
itemsPerPage: 25,
itemsPerPage: 1000,
filters: {
skip: '0',
limit: '25',
limit: '10000',
depth: '2',
sort_by: 'date',
sort_by: 'date_added_to_graph',
include_properties: 'true',
top_node_count: '10',
top_node_count: '50',
includeContent: 'true',
node_type: [],
},
Expand Down Expand Up @@ -171,7 +171,7 @@ export const useDataStore = create<DataStore>()(
...withoutNodeType,
...ai,
skip: currentPage === 0 ? String(currentPage * itemsPerPage) : String(currentPage * itemsPerPage + 1),
limit: String(itemsPerPage),
limit: word ? 25 : String(itemsPerPage),
...(filterNodeTypes.length > 0 ? { node_type: JSON.stringify(filterNodeTypes) } : {}),
...(word ? { word } : {}),
...(aiRefId && AISearchQuery ? { previous_search_ref_id: aiRefId } : {}),
Expand Down

0 comments on commit 3cb7fbb

Please sign in to comment.