@thi.ng/geom-splines 2.1.6 → 2.1.9

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.1.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-splines@2.1.8) (2022-03-11)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - minor refactor internal helper ([82c0cea](https://github.com/thi-ng/umbrella/commit/82c0cea))
17
+
12
18
  ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-splines@2.1.0) (2021-11-17)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -141,4 +141,4 @@ If this project contributes to an academic publication, please cite it as:
141
141
 
142
142
  ## License
143
143
 
144
- © 2016 - 2021 Karsten Schmidt // Apache Software License 2.0
144
+ © 2016 - 2022 Karsten Schmidt // Apache Software License 2.0
@@ -24,8 +24,5 @@ export const __sample = (sample) => function $(pts, opts) {
24
24
  export const __sampleArray = (fn) => (segments, closed = false, opts) => {
25
25
  const _opts = isNumber(opts) ? { num: opts } : opts;
26
26
  const n = segments.length - 1;
27
- return Array.prototype.concat.apply([], segments.map((seg, i) => {
28
- const last = !closed && i === n;
29
- return fn(seg, { ..._opts, last });
30
- }));
27
+ return Array.prototype.concat.apply([], segments.map((seg, i) => fn(seg, { ..._opts, last: !closed && i === n })));
31
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-splines",
3
- "version": "2.1.6",
3
+ "version": "2.1.9",
4
4
  "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,21 +34,21 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.3",
38
- "@thi.ng/checks": "^3.1.3",
39
- "@thi.ng/geom-api": "^3.1.6",
40
- "@thi.ng/geom-arc": "^2.1.6",
41
- "@thi.ng/geom-resample": "^2.1.6",
42
- "@thi.ng/math": "^5.2.0",
43
- "@thi.ng/vectors": "^7.4.2"
37
+ "@thi.ng/api": "^8.3.5",
38
+ "@thi.ng/checks": "^3.1.5",
39
+ "@thi.ng/geom-api": "^3.1.9",
40
+ "@thi.ng/geom-arc": "^2.1.9",
41
+ "@thi.ng/geom-resample": "^2.1.9",
42
+ "@thi.ng/math": "^5.3.1",
43
+ "@thi.ng/vectors": "^7.5.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/api-extractor": "^7.19.2",
47
- "@thi.ng/testament": "^0.2.3",
46
+ "@microsoft/api-extractor": "^7.19.4",
47
+ "@thi.ng/testament": "^0.2.5",
48
48
  "rimraf": "^3.0.2",
49
49
  "tools": "^0.0.1",
50
- "typedoc": "^0.22.10",
51
- "typescript": "^4.5.3"
50
+ "typedoc": "^0.22.13",
51
+ "typescript": "^4.6.2"
52
52
  },
53
53
  "keywords": [
54
54
  "2d",
@@ -84,58 +84,58 @@
84
84
  ],
85
85
  "exports": {
86
86
  ".": {
87
- "import": "./index.js"
87
+ "default": "./index.js"
88
88
  },
89
89
  "./cubic-arc": {
90
- "import": "./cubic-arc.js"
90
+ "default": "./cubic-arc.js"
91
91
  },
92
92
  "./cubic-bounds": {
93
- "import": "./cubic-bounds.js"
93
+ "default": "./cubic-bounds.js"
94
94
  },
95
95
  "./cubic-closest-point": {
96
- "import": "./cubic-closest-point.js"
96
+ "default": "./cubic-closest-point.js"
97
97
  },
98
98
  "./cubic-from-breakpoints": {
99
- "import": "./cubic-from-breakpoints.js"
99
+ "default": "./cubic-from-breakpoints.js"
100
100
  },
101
101
  "./cubic-from-controlpoints": {
102
- "import": "./cubic-from-controlpoints.js"
102
+ "default": "./cubic-from-controlpoints.js"
103
103
  },
104
104
  "./cubic-line": {
105
- "import": "./cubic-line.js"
105
+ "default": "./cubic-line.js"
106
106
  },
107
107
  "./cubic-quadratic": {
108
- "import": "./cubic-quadratic.js"
108
+ "default": "./cubic-quadratic.js"
109
109
  },
110
110
  "./cubic-sample": {
111
- "import": "./cubic-sample.js"
111
+ "default": "./cubic-sample.js"
112
112
  },
113
113
  "./cubic-split": {
114
- "import": "./cubic-split.js"
114
+ "default": "./cubic-split.js"
115
115
  },
116
116
  "./cubic-tangent": {
117
- "import": "./cubic-tangent.js"
117
+ "default": "./cubic-tangent.js"
118
118
  },
119
119
  "./point-at": {
120
- "import": "./point-at.js"
120
+ "default": "./point-at.js"
121
121
  },
122
122
  "./quadratic-bounds": {
123
- "import": "./quadratic-bounds.js"
123
+ "default": "./quadratic-bounds.js"
124
124
  },
125
125
  "./quadratic-closest-point": {
126
- "import": "./quadratic-closest-point.js"
126
+ "default": "./quadratic-closest-point.js"
127
127
  },
128
128
  "./quadratic-line": {
129
- "import": "./quadratic-line.js"
129
+ "default": "./quadratic-line.js"
130
130
  },
131
131
  "./quadratic-sample": {
132
- "import": "./quadratic-sample.js"
132
+ "default": "./quadratic-sample.js"
133
133
  },
134
134
  "./quadratic-split": {
135
- "import": "./quadratic-split.js"
135
+ "default": "./quadratic-split.js"
136
136
  },
137
137
  "./quadratic-tangent": {
138
- "import": "./quadratic-tangent.js"
138
+ "default": "./quadratic-tangent.js"
139
139
  }
140
140
  },
141
141
  "thi.ng": {
@@ -144,5 +144,5 @@
144
144
  "geom-subdiv-curve"
145
145
  ]
146
146
  },
147
- "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
147
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
148
148
  }