Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix label sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Nov 17, 2020
1 parent 9b5249c commit 308c166
Showing 5 changed files with 17 additions and 11 deletions.
12 changes: 6 additions & 6 deletions deploy/common/weave.esm.js
Original file line number Diff line number Diff line change
@@ -69,13 +69,13 @@ class BaseSvg{
constructor(config = {}){

const { width, height, margin, fontFamily, cssSetColor } = config
this.width = width || 600
this.height = height || 600
this.width = width || 400
this.height = height || 400
this.margin = {
left: 70,
right: 70,
top: 70,
bottom: 70,
left: 100,
right: 100,
top: 100,
bottom: 100,
...margin
}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kg-dataset-previewer",
"version": "1.1.1",
"version": "1.1.2",
"description": "Preview a few manually curated datasets.",
"main": "dist/index.js",
"module": "dist/index.mjs",
Original file line number Diff line number Diff line change
@@ -15,6 +15,11 @@ svg .line-path
fill: none;
}

svg .guideLine
{
stroke: currentColor;
}

svg .radial-guidelines
{
stroke: currentColor;
@@ -30,7 +35,7 @@ svg .radial-guidelines

[kg-ds-prv-darkmode] svg .fill-path
{
fill: rgba(50, 50, 50, 1.0);
fill: rgba(100, 100, 100, 1.0);
}


Original file line number Diff line number Diff line change
@@ -149,19 +149,19 @@ export class RegionalFeatureView{

svgMain.append('line')
.attr('id', guideLineXId)
.attr('class', 'guideLine')
.attr('fill', 'none')
.attr('stroke-width', '1px')
.attr('stroke', `rgba(100,100,100,1.0)`)
.attr("x1", 0)
.attr("y1", 0)
.attr("x2", 0)
.attr("y2", 0)

svgMain.append('line')
.attr('id', guideLineYId)
.attr('class', 'guideLine')
.attr('fill', 'none')
.attr('stroke-width', '1px')
.attr('stroke', `rgba(100,100,100,1.0)`)
.attr("x1", 0)
.attr("y1", 0)
.attr("x2", 0)
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -44,7 +44,8 @@
kg-ds-prv-filename="hOc1_pr_examples/5-HT1A/hOc1_pr_5-HT1A.tsv">
</kg-ds-prv-regional-feature-view>
<kg-ds-prv-regional-feature-view
style="display:block;"
id="test-1"
style="display:block;width:250px;"
kg-ds-prv-kg-id="e715e1f7-2079-45c4-a67f-f76b102acfce"
kg-ds-prv-filename="hOc1_fp_20171202.tsv">
</kg-ds-prv-regional-feature-view>

0 comments on commit 308c166

Please sign in to comment.