8000 #2335: Front: Chromatogram changes: new tick position and ID for defi… · plotly/plotly.js@262c577 · GitHub
[go: up one dir, main page]

Skip to content

Commit 262c577

Browse files
author
ivankirshin
committed
#2335: Front: Chromatogram changes: new tick position and ID for defining shapes
1 parent 7e48ee9 commit 262c577

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@newcrom/plotly.js",
3-
"version": "0.1.7",
3+
"version": "0.1.9",
44
"description": "Forked version of plotly.js with some hacks for use in Newcrom's products. The version is based on plotly.js@2.27.1",
55
"license": "MIT",
66
"main": "./lib/index-newcrom.js",

src/components/shapes/draw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function drawOne(gd, index) {
113113
var attrs = {
114114
'data-index': index,
115115
'fill-rule': options.fillrule,
116+
'id': options.name,
116117
d: d
117118
};
118119

src/plots/cartesian/axes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2524,7 +2524,8 @@ axes.drawOne = function(gd, ax, opts) {
25242524
var minorTickSigns = axes.getTickSigns(ax, 'minor');
25252525

25262526
if(ax.ticks || (ax.minor && ax.minor.ticks)) {
2527-
var majorTickPath = axes.makeTickPath(ax, mainLinePositionShift, majorTickSigns[2]);
2527+
// +4 shift for ticks was added
2528+
var majorTickPath = axes.makeTickPath(ax, mainLinePositionShift + 4, majorTickSigns[2]);
25282529
var minorTickPath = axes.makeTickPath(ax, mainLinePositionShift, minorTickSigns[2], { minor: true });
25292530

25302531
var mirrorMajorTickPath;

0 commit comments

Comments
 (0)
0