Skip to content

Commit

Permalink
added subselector
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmoritzschoefl committed Sep 28, 2023
1 parent c3f5a61 commit 7db0a7f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
2 changes: 0 additions & 2 deletions src/app/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { MantineProviderProps } from '@mantine/core';

export const DEFAULT_MANTINE_PROVIDER_PROPS: Omit<MantineProviderProps, 'children'> = {
withNormalizeCSS: true,
withGlobalStyles: true,
theme: {
fontFamily: 'Roboto, sans-serif',
headings: {
Expand Down
20 changes: 8 additions & 12 deletions src/vis/hexbin/HexbinVis.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import * as React from 'react';
import uniqueId from 'lodash/uniqueId';
import { Center, Group, SimpleGrid, Stack } from '@mantine/core';
import merge from 'lodash/merge';
import { useEffect, useMemo, useRef, useState } from 'react';
import { ActionIcon, Center, Container, Group, SimpleGrid, Stack, Tooltip } from '@mantine/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faGear } from '@fortawesome/free-solid-svg-icons/faGear';
import { VisColumn, IVisConfig, IHexbinConfig, EScatterSelectSettings } from '../interfaces';
import { InvalidCols } from '../general';
import * as React from 'react';
import { useMemo, useRef } from 'react';
import { i18n } from '../../i18n';
import { Hexplot } from './Hexplot';
import { HexbinVisSidebar } from './HexbinVisSidebar';
import { VisSidebarOpenButton } from '../VisSidebarOpenButton';
import { VisSidebarWrapper } from '../VisSidebarWrapper';
import { InvalidCols } from '../general';
import { EScatterSelectSettings, IHexbinConfig, IVisConfig, VisColumn } from '../interfaces';
import { BrushOptionButtons } from '../sidebar';
import { useSyncedRef } from '../../hooks/useSyncedRef';
import { VisSidebarOpenButton } from '../VisSidebarOpenButton';
import { HexbinVisSidebar } from './HexbinVisSidebar';
import { Hexplot } from './Hexplot';

const defaultExtensions = {
prePlot: null,
Expand Down
16 changes: 4 additions & 12 deletions src/vis/hexbin/Hexplot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import { SingleHex } from './SingleHex';
import { getHexData } from './utils';
import { XAxis } from './XAxis';
import { YAxis } from './YAxis';
import classes from './Hexplot.module.css';

console.log(classes);

interface HexagonalBinProps {
config: IHexbinConfig;
Expand Down Expand Up @@ -382,18 +385,7 @@ export function Hexplot({ config, columns, selectionCallback = () => null, selec

return (
<Box style={{ height: '100%', width: '100%', position: 'relative' }} ref={ref}>
<Container
fluid
pl={0}
pr={0}
style={{
height: height + margin.top + margin.bottom,
width: '100%',
'.overlay': {
cursor: 'default !important',
},
}}
>
<Container fluid pl={0} pr={0} className={`${classes.overlay} ${classes.hexplot}`} style={{ height: height + margin.top + margin.bottom }}>
<svg id={id} width={width + margin.left + margin.right} height={height + margin.top + margin.bottom}>
<defs>
<clipPath id="clip">
Expand Down

0 comments on commit 7db0a7f

Please sign in to comment.