@osfarm/itineraire-technique 1.1.19 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  name: Publish to npmjs
2
2
 
3
+ permissions:
4
+ contents: read
5
+ id-token: write
6
+
3
7
  on:
4
8
  push:
5
9
  branches:
@@ -8,7 +12,6 @@ on:
8
12
  jobs:
9
13
  publish:
10
14
  runs-on: ubuntu-latest
11
-
12
15
  steps:
13
16
  - name: Checkout code
14
17
  uses: actions/checkout@v4
@@ -16,7 +19,7 @@ jobs:
16
19
  - name: Set up Node.js
17
20
  uses: actions/setup-node@v4
18
21
  with:
19
- node-version: '20'
22
+ node-version: '24'
20
23
  registry-url: 'https://registry.npmjs.org/'
21
24
 
22
25
  - name: Install dependencies
@@ -27,6 +30,5 @@ jobs:
27
30
  continue-on-error: true
28
31
 
29
32
  - name: Publish to npmjs
30
- run: npm publish --access public
31
- env:
32
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33
+ run: npm publish --provenance --access public
34
+
@@ -117,6 +117,10 @@ class RotationRenderer {
117
117
  }
118
118
  }
119
119
 
120
+ resize() {
121
+ this.chart.resize();
122
+ }
123
+
120
124
  getElementID(element) {
121
125
  return element.classList.values().find(item => item.match(/Intervention_[0-9]+_[0-9]+|Step_[0-9]+/));
122
126
  }
@@ -220,7 +224,8 @@ class RotationRenderer {
220
224
 
221
225
  grid: {
222
226
  height: self.barHeight * 3,
223
- right: 6
227
+ right: 6,
228
+ left: 6
224
229
  },
225
230
 
226
231
  xAxis: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfarm/itineraire-technique",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "A visualisation tool to show agricultural technical itineraries based on Echarts",
5
5
  "main": "editor.html",
6
6
  "scripts": {
@@ -12,5 +12,25 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "sass": "^1.85.1"
15
- }
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/osfarm/itineraire-technique"
22
+ },
23
+ "homepage": "https://www.osfarm.org/itineraire-technique/",
24
+ "bugs": {
25
+ "url": "https://github.com/osfarm/itineraire-technique/issues"
26
+ },
27
+ "license": "MIT",
28
+ "keywords": [
29
+ "agriculture",
30
+ "echarts",
31
+ "visualization",
32
+ "farming",
33
+ "itineraire-technique",
34
+ "TIKA"
35
+ ]
16
36
  }