Skip to content

Commit

Permalink
Remove unused signals
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Aug 12, 2024
1 parent 055b017 commit 00d48be
Showing 1 changed file with 2 additions and 54 deletions.
56 changes: 2 additions & 54 deletions packages/hurumap-core/src/Scope/HeatMapScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function HeatMapScope(props) {
args,
}),
{
height: isMobile && isCompare && secondaryData?.length > 1 ? 620 : 310,
signals: [
{
name: "height",
Expand All @@ -45,26 +46,7 @@ export default function HeatMapScope(props) {
value: isCompare,
},
{ name: "stripeWidth", update: "width/length(data('primary'))" },
{
name: "selectedStripeTemp",
value: 0,
on: [
{
events: "@stripe:pointerover",
update: {
signal: "datatype[Units]",
},
},
{ events: "@stripe:pointerout", update: "0" },
],
},
],
width: {
signal: "isMobile ? 400 : 800",
},
height: {
signal: "height",
},
scales: [
{
name: "scaleX",
Expand All @@ -88,19 +70,6 @@ export default function HeatMapScope(props) {
range: [theme.palette.secondary.main, theme.palette.primary.main],
reverse: true,
},
{
name: "scaleYForLegendTick",
type: "linear",
domain: {
data: "primary",
field: {
signal: "datatype[Units]",
},
},
range: [0, { signal: "height" }],
zero: false,
reverse: true,
},
],
marks: [
{
Expand Down Expand Up @@ -156,35 +125,14 @@ export default function HeatMapScope(props) {
format: ".4",
labelColor: "black",
},
{
scale: "scaleYForLegendTick",
orient: "right",
domain: false,
labels: false,
ticks: true,
tickColor: "black",
offset: 45,
encode: {
ticks: {
update: {
x: { value: -7 },
x2: { value: 13 },
y: {
scale: "scaleYForLegendTick",
signal: "selectedStripeTemp",
},
},
},
},
},
],
legends: [
{
fill: "color",
type: "gradient",
titleFontSize: 12,
titlePadding: 4,
gradientLength: { signal: "height-16" },
gradientLength: { signal: "height" },
},
],
},
Expand Down

0 comments on commit 00d48be

Please sign in to comment.