@ot-builder/var-store
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import { GeneralVar } from "@ot-builder/variance"; | ||
| import type { GeneralVar } from "@ot-builder/variance"; | ||
| export declare abstract class DelayValueCollector<A extends GeneralVar.Dim, M extends GeneralVar.Master<A>, X, D> { | ||
@@ -3,0 +3,0 @@ private readonly op; |
@@ -1,2 +0,2 @@ | ||
| import { BinaryView } from "@ot-builder/bin-util"; | ||
| import { type BinaryView } from "@ot-builder/bin-util"; | ||
| export type IndexMapping = { | ||
@@ -3,0 +3,0 @@ outer: number; |
@@ -55,4 +55,4 @@ "use strict"; | ||
| while (mapCount > 2) { | ||
| if (map[mapCount - 1].outer === map[mapCount - 2].outer && | ||
| map[mapCount - 1].inner === map[mapCount - 2].inner) { | ||
| if (map[mapCount - 1].outer === map[mapCount - 2].outer | ||
| && map[mapCount - 1].inner === map[mapCount - 2].inner) { | ||
| mapCount--; | ||
@@ -59,0 +59,0 @@ } |
+1
-1
@@ -0,4 +1,4 @@ | ||
| export * from "./delta-set-index-map"; | ||
| export * from "./ivs"; | ||
| export * from "./tvs"; | ||
| export * from "./delta-set-index-map"; | ||
| //# sourceMappingURL=index.d.ts.map |
+1
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const tslib_1 = require("tslib"); | ||
| tslib_1.__exportStar(require("./delta-set-index-map"), exports); | ||
| tslib_1.__exportStar(require("./ivs"), exports); | ||
| tslib_1.__exportStar(require("./tvs"), exports); | ||
| tslib_1.__exportStar(require("./delta-set-index-map"), exports); | ||
| //# sourceMappingURL=index.js.map |
| import * as ImpLib from "@ot-builder/common-impl"; | ||
| import { Algebra } from "@ot-builder/prelude"; | ||
| import { GeneralVar } from "@ot-builder/variance"; | ||
| import type { Algebra } from "@ot-builder/prelude"; | ||
| import type { GeneralVar } from "@ot-builder/variance"; | ||
| import { DelayValueCollector } from "../common/value-collector"; | ||
@@ -50,5 +50,3 @@ export declare class ReadTimeIVD<A extends GeneralVar.Dim, M extends GeneralVar.Master<A>, X> { | ||
| } | ||
| export declare class WriteTimeIVDBlossomAllocator implements ImpLib.PathMapAllocator<WriteTimeIVDBlossom, [ | ||
| number[] | ||
| ]> { | ||
| export declare class WriteTimeIVDBlossomAllocator implements ImpLib.PathMapAllocator<WriteTimeIVDBlossom, [number[]]> { | ||
| private nodeAlloc; | ||
@@ -55,0 +53,0 @@ private maxInnerIndex; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GeneralWriteTimeIVStore = exports.DelayDeltaValue = exports.WriteTimeIVCollector = exports.WriteTimeIVDBlossomAllocator = exports.WriteTimeIVDBlossom = exports.WriteTimeIVDAllocator = exports.WriteTimeIVD = exports.CReadTimeIVS = exports.ReadTimeIVD = void 0; | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const tslib_1 = require("tslib"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const errors_1 = require("@ot-builder/errors"); | ||
@@ -94,3 +95,4 @@ const value_collector_1 = require("../common/value-collector"); | ||
| isEmpty() { | ||
| return !this.ivdList || !this.ivdList.length; | ||
| var _a; | ||
| return !((_a = this.ivdList) === null || _a === void 0 ? void 0 : _a.length); | ||
| } | ||
@@ -97,0 +99,0 @@ } |
@@ -1,4 +0,4 @@ | ||
| import { BinaryView, Frag } from "@ot-builder/bin-util"; | ||
| import { type BinaryView, Frag } from "@ot-builder/bin-util"; | ||
| import { OtVar } from "@ot-builder/variance"; | ||
| import { CReadTimeIVS, DelayDeltaValue, GeneralWriteTimeIVStore } from "./general"; | ||
| import { CReadTimeIVS, type DelayDeltaValue, GeneralWriteTimeIVStore } from "./general"; | ||
| declare function createIVS(): CReadTimeIVS<OtVar.Dim, OtVar.Master, OtVar.Value>; | ||
@@ -5,0 +5,0 @@ export type ReadTimeIVS = CReadTimeIVS<OtVar.Dim, OtVar.Master, OtVar.Value>; |
+2
-1
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.WriteTimeIVS = exports.ReadTimeIVS = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const bin_util_1 = require("@ot-builder/bin-util"); | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const errors_1 = require("@ot-builder/errors"); | ||
@@ -7,0 +8,0 @@ const primitive_1 = require("@ot-builder/primitive"); |
@@ -1,3 +0,3 @@ | ||
| export { ReadTimeIVS, WriteTimeIVS, WriteTimeDelayValue, WriteTimeIVSOptions } from "./impl"; | ||
| export { ReadTimeIVD, WriteTimeIVD } from "./general"; | ||
| export { ReadTimeIVS, WriteTimeDelayValue, WriteTimeIVS, WriteTimeIVSOptions } from "./impl"; | ||
| //# sourceMappingURL=index.d.ts.map |
+4
-4
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.WriteTimeIVD = exports.ReadTimeIVD = exports.WriteTimeIVS = exports.ReadTimeIVS = void 0; | ||
| exports.WriteTimeIVS = exports.ReadTimeIVS = exports.WriteTimeIVD = exports.ReadTimeIVD = void 0; | ||
| var general_1 = require("./general"); | ||
| Object.defineProperty(exports, "ReadTimeIVD", { enumerable: true, get: function () { return general_1.ReadTimeIVD; } }); | ||
| Object.defineProperty(exports, "WriteTimeIVD", { enumerable: true, get: function () { return general_1.WriteTimeIVD; } }); | ||
| var impl_1 = require("./impl"); | ||
| Object.defineProperty(exports, "ReadTimeIVS", { enumerable: true, get: function () { return impl_1.ReadTimeIVS; } }); | ||
| Object.defineProperty(exports, "WriteTimeIVS", { enumerable: true, get: function () { return impl_1.WriteTimeIVS; } }); | ||
| var general_1 = require("./general"); | ||
| Object.defineProperty(exports, "ReadTimeIVD", { enumerable: true, get: function () { return general_1.ReadTimeIVD; } }); | ||
| Object.defineProperty(exports, "WriteTimeIVD", { enumerable: true, get: function () { return general_1.WriteTimeIVD; } }); | ||
| //# sourceMappingURL=index.js.map |
@@ -0,5 +1,5 @@ | ||
| export { TupleVariationGeometryClient, TupleVariationRead, TupleVariationSource } from "./read"; | ||
| export { TvdAccess } from "./shared/iup"; | ||
| export { TupleVariationGeometryClient, TupleVariationRead, TupleVariationSource } from "./read"; | ||
| export { TupleVariationBuildContext, TupleVariationBuildSource, TupleVariationWriteOpt } from "./write"; | ||
| export { TupleAllocator } from "./write/tuple-allocator"; | ||
| export { TupleVariationBuildContext, TupleVariationBuildSource, TupleVariationWriteOpt } from "./write"; | ||
| //# sourceMappingURL=index.d.ts.map |
+3
-3
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TupleVariationWriteOpt = exports.TupleAllocator = exports.TupleVariationRead = void 0; | ||
| exports.TupleAllocator = exports.TupleVariationWriteOpt = exports.TupleVariationRead = void 0; | ||
| var read_1 = require("./read"); | ||
| Object.defineProperty(exports, "TupleVariationRead", { enumerable: true, get: function () { return read_1.TupleVariationRead; } }); | ||
| var write_1 = require("./write"); | ||
| Object.defineProperty(exports, "TupleVariationWriteOpt", { enumerable: true, get: function () { return write_1.TupleVariationWriteOpt; } }); | ||
| var tuple_allocator_1 = require("./write/tuple-allocator"); | ||
| Object.defineProperty(exports, "TupleAllocator", { enumerable: true, get: function () { return tuple_allocator_1.TupleAllocator; } }); | ||
| var write_1 = require("./write"); | ||
| Object.defineProperty(exports, "TupleVariationWriteOpt", { enumerable: true, get: function () { return write_1.TupleVariationWriteOpt; } }); | ||
| //# sourceMappingURL=index.js.map |
| import { Read } from "@ot-builder/bin-util"; | ||
| import { OtVar } from "@ot-builder/variance"; | ||
| import { TvdAccess } from "../shared/iup"; | ||
| import { type TvdAccess } from "../shared/iup"; | ||
| export interface TupleVariationSource { | ||
@@ -5,0 +5,0 @@ readonly designSpace: OtVar.DesignSpace; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TupleVariationRead = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const bin_util_1 = require("@ot-builder/bin-util"); | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const errors_1 = require("@ot-builder/errors"); | ||
@@ -7,0 +8,0 @@ const primitive_1 = require("@ot-builder/primitive"); |
@@ -6,3 +6,4 @@ "use strict"; | ||
| exports.inferDeltas = inferDeltas; | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const tslib_1 = require("tslib"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| // Per algorithm described at : https://bit.ly/2ZFT1QD | ||
@@ -9,0 +10,0 @@ function iupImpl(belowCoord, targetCoord, aboveCoord, belowDelta, aboveDelta) { |
@@ -1,2 +0,2 @@ | ||
| import { BinaryView, Frag } from "@ot-builder/bin-util"; | ||
| import type { BinaryView, Frag } from "@ot-builder/bin-util"; | ||
| export declare enum DeltaRunFlags { | ||
@@ -3,0 +3,0 @@ DELTAS_ARE_ZERO = 128, |
@@ -5,3 +5,4 @@ "use strict"; | ||
| exports.collectDeltaData = collectDeltaData; | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const tslib_1 = require("tslib"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const variance_1 = require("@ot-builder/variance"); | ||
@@ -8,0 +9,0 @@ const value_collector_1 = require("../../common/value-collector"); |
| import { WriteOpt } from "@ot-builder/bin-util"; | ||
| import { OtVar } from "@ot-builder/variance"; | ||
| import { TupleAllocator } from "./tuple-allocator"; | ||
| import type { OtVar } from "@ot-builder/variance"; | ||
| import { type TupleAllocator } from "./tuple-allocator"; | ||
| export interface TupleVariationBuildContext { | ||
@@ -5,0 +5,0 @@ readonly designSpace: OtVar.DesignSpace; |
+10
-10
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TupleVariationWriteOpt = void 0; | ||
| const tslib_1 = require("tslib"); | ||
| const bin_util_1 = require("@ot-builder/bin-util"); | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const errors_1 = require("@ot-builder/errors"); | ||
@@ -30,4 +31,4 @@ const primitive_1 = require("@ot-builder/primitive"); | ||
| // - Header | ||
| const fHaveSharedPoints = !ctx.forcePrivatePointNumbers && | ||
| !ImpLib.BitMask.allTrue(blobResults.map(x => x.embedPointIndex)) | ||
| const fHaveSharedPoints = !ctx.forcePrivatePointNumbers | ||
| && !ImpLib.BitMask.allTrue(blobResults.map(x => x.embedPointIndex)) | ||
| ? flags_1.TvhSetFlags.SHARED_POINT_NUMBERS | ||
@@ -51,5 +52,4 @@ : 0; | ||
| const resOpt = writeBlobImpl(source, ctx, tuc, data, mid, master, ctx.iupTolerance); | ||
| if ((resOpt.bufBody.byteLength <= result.bufBody.byteLength || | ||
| result.hasNonIntegerDelta) && | ||
| !resOpt.hasNonIntegerDelta) { | ||
| if ((resOpt.bufBody.byteLength <= result.bufBody.byteLength || result.hasNonIntegerDelta) | ||
| && !resOpt.hasNonIntegerDelta) { | ||
| result = resOpt; | ||
@@ -87,6 +87,6 @@ } | ||
| r += | ||
| (dim ? " " : "") + | ||
| coords[ImpLib.Arith.d2(dimensions, z, dim)] + | ||
| (delta >= 0 ? "+" : "") + | ||
| delta; | ||
| (dim ? " " : "") | ||
| + coords[ImpLib.Arith.d2(dimensions, z, dim)] | ||
| + (delta >= 0 ? "+" : "") | ||
| + delta; | ||
| } | ||
@@ -93,0 +93,0 @@ if (mask[z]) { |
@@ -7,3 +7,4 @@ "use strict"; | ||
| exports.iupOptimize = iupOptimize; | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const tslib_1 = require("tslib"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const iup_1 = require("../shared/iup"); | ||
@@ -61,4 +62,4 @@ // Limit the max lookback length | ||
| } | ||
| const force = roundCost(deltas, dimensions, z, tolerance) === COST_INTEGER && | ||
| pointIsForced(c1, cZ, c2, d1, dZ, d2, tolerance); | ||
| const force = roundCost(deltas, dimensions, z, tolerance) === COST_INTEGER | ||
| && pointIsForced(c1, cZ, c2, d1, dZ, d2, tolerance); | ||
| if (force) | ||
@@ -79,4 +80,4 @@ forced[zPoint] = true; | ||
| if (c1 === c2) { | ||
| return (ImpLib.Arith.Approx.unequal(d1, d2, tolerance) && | ||
| ImpLib.Arith.Approx.unequal(dZ, 0, tolerance)); | ||
| return (ImpLib.Arith.Approx.unequal(d1, d2, tolerance) | ||
| && ImpLib.Arith.Approx.unequal(dZ, 0, tolerance)); | ||
| } | ||
@@ -95,11 +96,11 @@ // If coordinate for current point is between coordinate of adjacent | ||
| if (cZ < c1) { | ||
| return (ImpLib.Arith.Approx.nonzero(dZ, tolerance) && | ||
| ImpLib.Arith.Approx.unequal(dZ, d1, tolerance) && | ||
| dZ - tolerance < d1 != d1 < d2); | ||
| return (ImpLib.Arith.Approx.nonzero(dZ, tolerance) | ||
| && ImpLib.Arith.Approx.unequal(dZ, d1, tolerance) | ||
| && dZ - tolerance < d1 !== d1 < d2); | ||
| } | ||
| else { | ||
| // c2 < cZ | ||
| return (ImpLib.Arith.Approx.nonzero(dZ, tolerance) && | ||
| ImpLib.Arith.Approx.unequal(dZ, d2, tolerance) && | ||
| d2 < dZ + tolerance != d1 < d2); | ||
| return (ImpLib.Arith.Approx.nonzero(dZ, tolerance) | ||
| && ImpLib.Arith.Approx.unequal(dZ, d2, tolerance) | ||
| && d2 < dZ + tolerance !== d1 < d2); | ||
| } | ||
@@ -143,4 +144,4 @@ } | ||
| const cost = costs[zBefore + 1] + rc; // zBefore + 1 always >= 0, so no overflow | ||
| if (cost < bestCost && | ||
| canIupBetween(coords, deltas, n, dimensions, zBefore, zCur, tolerance)) { | ||
| if (cost < bestCost | ||
| && canIupBetween(coords, deltas, n, dimensions, zBefore, zCur, tolerance)) { | ||
| costs[zCur + 1] = bestCost = cost; | ||
@@ -147,0 +148,0 @@ chain[zCur + 1] = zBefore; |
| import { F2D14 } from "@ot-builder/primitive"; | ||
| import { OtVar } from "@ot-builder/variance"; | ||
| import type { OtVar } from "@ot-builder/variance"; | ||
| export declare class TupleStorage { | ||
@@ -4,0 +4,0 @@ index: number; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MasterToTupleConverter = exports.TupleAllocator = exports.TupleStorage = void 0; | ||
| const ImpLib = require("@ot-builder/common-impl"); | ||
| const tslib_1 = require("tslib"); | ||
| const ImpLib = tslib_1.__importStar(require("@ot-builder/common-impl")); | ||
| const primitive_1 = require("@ot-builder/primitive"); | ||
@@ -6,0 +7,0 @@ class TupleStorage { |
+9
-9
| { | ||
| "name": "@ot-builder/var-store", | ||
| "description": "", | ||
| "version": "1.7.8", | ||
| "version": "1.8.0", | ||
| "license": "MIT", | ||
@@ -27,13 +27,13 @@ "repository": { | ||
| "dependencies": { | ||
| "@ot-builder/bin-composite-types": "1.7.8", | ||
| "@ot-builder/bin-util": "1.7.8", | ||
| "@ot-builder/common-impl": "1.7.7", | ||
| "@ot-builder/errors": "1.7.7", | ||
| "@ot-builder/prelude": "1.7.7", | ||
| "@ot-builder/primitive": "1.7.8", | ||
| "@ot-builder/variance": "1.7.8", | ||
| "@ot-builder/bin-composite-types": "1.8.0", | ||
| "@ot-builder/bin-util": "1.8.0", | ||
| "@ot-builder/common-impl": "1.8.0", | ||
| "@ot-builder/errors": "1.8.0", | ||
| "@ot-builder/prelude": "1.8.0", | ||
| "@ot-builder/primitive": "1.8.0", | ||
| "@ot-builder/variance": "1.8.0", | ||
| "tslib": "^2.8.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@ot-builder/test-util": "1.7.8", | ||
| "@ot-builder/test-util": "1.8.0", | ||
| "@types/jest": "^30.0.0", | ||
@@ -40,0 +40,0 @@ "jest": "^30.2.0" |
80410
0.67%1969
0.31%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated