@buerli.io/headless 0.13.1-beta.2 → 0.13.1-beta.4
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/build/cjs/history.js +3 -2
- package/build/esm/history.js +3 -2
- package/build/types/history.d.ts +3 -3
- package/package.json +2 -2
package/build/cjs/history.js
CHANGED
|
@@ -1817,6 +1817,7 @@ class History {
|
|
|
1817
1817
|
},
|
|
1818
1818
|
getLinearPatternConstraint: (id, constrName) => {
|
|
1819
1819
|
return this.resolve(async ([rId]) => {
|
|
1820
|
+
var _a, _b;
|
|
1820
1821
|
const constraint = asmUtils.getLinearPatternConstraint(drawingId, rId, constrName);
|
|
1821
1822
|
if (constraint != undefined) {
|
|
1822
1823
|
return {
|
|
@@ -1826,8 +1827,8 @@ class History {
|
|
|
1826
1827
|
firstDirInstanceCount: constraint.firstDirInstanceCount.value,
|
|
1827
1828
|
firstDirDistance: constraint.firstDirDistance.value,
|
|
1828
1829
|
mate2: constraint.mate2,
|
|
1829
|
-
secondDirInstanceCount: constraint.secondDirInstanceCount.value,
|
|
1830
|
-
secondDirDistance: constraint.secondDirDistance.value,
|
|
1830
|
+
secondDirInstanceCount: (_a = constraint === null || constraint === void 0 ? void 0 : constraint.secondDirInstanceCount) === null || _a === void 0 ? void 0 : _a.value,
|
|
1831
|
+
secondDirDistance: (_b = constraint === null || constraint === void 0 ? void 0 : constraint.secondDirDistance) === null || _b === void 0 ? void 0 : _b.value,
|
|
1831
1832
|
};
|
|
1832
1833
|
}
|
|
1833
1834
|
return null;
|
package/build/esm/history.js
CHANGED
|
@@ -1814,6 +1814,7 @@ export class History {
|
|
|
1814
1814
|
},
|
|
1815
1815
|
getLinearPatternConstraint: (id, constrName) => {
|
|
1816
1816
|
return this.resolve(async ([rId]) => {
|
|
1817
|
+
var _a, _b;
|
|
1817
1818
|
const constraint = asmUtils.getLinearPatternConstraint(drawingId, rId, constrName);
|
|
1818
1819
|
if (constraint != undefined) {
|
|
1819
1820
|
return {
|
|
@@ -1823,8 +1824,8 @@ export class History {
|
|
|
1823
1824
|
firstDirInstanceCount: constraint.firstDirInstanceCount.value,
|
|
1824
1825
|
firstDirDistance: constraint.firstDirDistance.value,
|
|
1825
1826
|
mate2: constraint.mate2,
|
|
1826
|
-
secondDirInstanceCount: constraint.secondDirInstanceCount.value,
|
|
1827
|
-
secondDirDistance: constraint.secondDirDistance.value,
|
|
1827
|
+
secondDirInstanceCount: (_a = constraint === null || constraint === void 0 ? void 0 : constraint.secondDirInstanceCount) === null || _a === void 0 ? void 0 : _a.value,
|
|
1828
|
+
secondDirDistance: (_b = constraint === null || constraint === void 0 ? void 0 : constraint.secondDirDistance) === null || _b === void 0 ? void 0 : _b.value,
|
|
1828
1829
|
};
|
|
1829
1830
|
}
|
|
1830
1831
|
return null;
|
package/build/types/history.d.ts
CHANGED
|
@@ -1759,11 +1759,11 @@ export declare type LinearPatternConstraintType = {
|
|
|
1759
1759
|
/** distance between copies over the first direction (set by z-axis of mate1) */
|
|
1760
1760
|
firstDirDistance: number | string;
|
|
1761
1761
|
/** second mate constraint (z-axis sets the second direction) */
|
|
1762
|
-
mate2
|
|
1762
|
+
mate2?: MateParam;
|
|
1763
1763
|
/** number of copies over the second direction (set by z-axis of mate2) */
|
|
1764
|
-
secondDirInstanceCount
|
|
1764
|
+
secondDirInstanceCount?: number | string;
|
|
1765
1765
|
/** number of copies over the second direction (set by z-axis of mate2) */
|
|
1766
|
-
secondDirDistance
|
|
1766
|
+
secondDirDistance?: number | string;
|
|
1767
1767
|
};
|
|
1768
1768
|
export declare type CircularPatternConstraintType = {
|
|
1769
1769
|
/** id of the constraint */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buerli.io/headless",
|
|
3
|
-
"version": "0.13.1-beta.
|
|
3
|
+
"version": "0.13.1-beta.4",
|
|
4
4
|
"description": "A non-manifold CAD workflow for the web",
|
|
5
5
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"three-stdlib": ">=2.11.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@buerli.io/classcad": "0.13.1-beta.
|
|
35
|
+
"@buerli.io/classcad": "0.13.1-beta.4",
|
|
36
36
|
"flat-promise": "^1.0.3"
|
|
37
37
|
}
|
|
38
38
|
}
|