@synnaxlabs/x 0.16.1 → 0.24.0
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/.turbo/turbo-build.log +99 -7
- package/.vscode/settings.json +5 -1
- package/dist/base-B48bPNx5.cjs +1 -0
- package/dist/base-DnZzEvvz.js +38 -0
- package/dist/binary.cjs +3 -0
- package/dist/binary.js +100 -0
- package/dist/bounds-Bh_QBZZK.cjs +1 -0
- package/dist/bounds-Dmn-hd_-.js +129 -0
- package/dist/bounds.cjs +1 -0
- package/dist/bounds.js +4 -0
- package/dist/box-C92jYSNY.js +205 -0
- package/dist/box-m3dlc1kR.cjs +1 -0
- package/dist/box.cjs +1 -0
- package/dist/box.js +4 -0
- package/dist/caseconv.cjs +1 -0
- package/dist/caseconv.js +4 -0
- package/dist/change-C-YELKx6.cjs +1 -0
- package/dist/change-DLl6DccR.js +12 -0
- package/dist/change.cjs +1 -0
- package/dist/change.js +4 -0
- package/dist/compare.cjs +1 -0
- package/dist/compare.js +4 -0
- package/dist/debounce.cjs +1 -0
- package/dist/debounce.js +17 -0
- package/dist/deep.cjs +1 -0
- package/dist/deep.js +121 -0
- package/dist/destructor.cjs +1 -0
- package/dist/destructor.js +1 -0
- package/dist/dimensions-BAuHfd-b.js +44 -0
- package/dist/dimensions-zMcb9pMk.cjs +1 -0
- package/dist/dimensions.cjs +1 -0
- package/dist/dimensions.js +4 -0
- package/dist/direction-CScbfCdT.js +16 -0
- package/dist/direction-DZbN47uL.cjs +1 -0
- package/dist/direction.cjs +1 -0
- package/dist/direction.js +4 -0
- package/dist/external-B-DoBvh7.cjs +1 -0
- package/dist/external-DI9122wF.js +27 -0
- package/dist/identity.cjs +1 -0
- package/dist/identity.js +4 -0
- package/dist/index-BpCPHf78.cjs +1 -0
- package/dist/index-Bt5ivtN9.js +95 -0
- package/dist/index-BwkQTA-j.js +360 -0
- package/dist/index-CuG8fceO.cjs +1 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +178 -0
- package/dist/kv.cjs +1 -0
- package/dist/kv.js +6 -0
- package/dist/location-CfP9TAnW.js +94 -0
- package/dist/location-c3g6WKs-.cjs +1 -0
- package/dist/location.cjs +1 -0
- package/dist/location.js +4 -0
- package/dist/observe.cjs +1 -0
- package/dist/observe.js +43 -0
- package/dist/path-BO4pyGZf.cjs +1 -0
- package/dist/path-nTHmt_4i.js +65 -0
- package/dist/position-BBnkwGX1.cjs +1 -0
- package/dist/position-B_aphAR0.js +87 -0
- package/dist/position.cjs +1 -0
- package/dist/position.js +4 -0
- package/dist/record.cjs +1 -0
- package/dist/record.js +9 -0
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.js +4 -0
- package/dist/scale-C8axypQ2.cjs +1 -0
- package/dist/scale-CgtgqlYU.js +205 -0
- package/dist/scale.cjs +1 -0
- package/dist/scale.js +4 -0
- package/dist/search.cjs +1 -0
- package/dist/search.js +15 -0
- package/dist/series-8E6FnWBU.cjs +11 -0
- package/dist/series-DCJSrg1P.js +1629 -0
- package/dist/spatial-BOhaO8xN.cjs +1 -0
- package/dist/spatial-DozyssiN.js +11 -0
- package/dist/spatial.cjs +1 -0
- package/dist/spatial.js +20 -0
- package/dist/{binary → src/binary}/encoder.d.ts +26 -2
- package/dist/src/binary/encoder.d.ts.map +1 -0
- package/dist/src/binary/encoder.spec.d.ts.map +1 -0
- package/dist/src/binary/index.d.ts.map +1 -0
- package/dist/src/caseconv/caseconv.d.ts +6 -0
- package/dist/src/caseconv/caseconv.d.ts.map +1 -0
- package/dist/src/caseconv/index.d.ts +2 -0
- package/dist/src/caseconv/index.d.ts.map +1 -0
- package/dist/{change → src/change}/change.d.ts +10 -9
- package/dist/src/change/change.d.ts.map +1 -0
- package/dist/src/change/index.d.ts.map +1 -0
- package/dist/src/clamp/clamp.d.ts.map +1 -0
- package/dist/src/clamp/index.d.ts +2 -0
- package/dist/src/clamp/index.d.ts.map +1 -0
- package/dist/{compare → src/compare}/compare.d.ts +6 -4
- package/dist/src/compare/compare.d.ts.map +1 -0
- package/dist/src/compare/compare.spec.d.ts +2 -0
- package/dist/src/compare/compare.spec.d.ts.map +1 -0
- package/dist/src/compare/index.d.ts.map +1 -0
- package/dist/src/control/control.d.ts +107 -0
- package/dist/src/control/control.d.ts.map +1 -0
- package/dist/src/control/index.d.ts +2 -0
- package/dist/src/control/index.d.ts.map +1 -0
- package/dist/src/debounce/debounce.d.ts.map +1 -0
- package/dist/src/debounce/debounce.spec.d.ts +2 -0
- package/dist/src/debounce/debounce.spec.d.ts.map +1 -0
- package/dist/src/debounce/index.d.ts +2 -0
- package/dist/src/debounce/index.d.ts.map +1 -0
- package/dist/src/deep/copy.d.ts.map +1 -0
- package/dist/{deep → src/deep}/delete.d.ts +2 -1
- package/dist/src/deep/delete.d.ts.map +1 -0
- package/dist/{deep → src/deep}/delete.spec.d.ts.map +1 -1
- package/dist/src/deep/difference.d.ts.map +1 -0
- package/dist/src/deep/difference.spec.d.ts.map +1 -0
- package/dist/src/deep/equal.d.ts.map +1 -0
- package/dist/{deep → src/deep}/equal.spec.d.ts.map +1 -1
- package/dist/{deep → src/deep}/external.d.ts +3 -4
- package/dist/src/deep/external.d.ts.map +1 -0
- package/dist/src/deep/index.d.ts.map +1 -0
- package/dist/src/deep/merge.d.ts +12 -0
- package/dist/src/deep/merge.d.ts.map +1 -0
- package/dist/{deep → src/deep}/merge.spec.d.ts.map +1 -1
- package/dist/src/deep/partial.d.ts.map +1 -0
- package/dist/src/deep/path.d.ts +54 -0
- package/dist/src/deep/path.d.ts.map +1 -0
- package/dist/{deep → src/deep}/path.spec.d.ts.map +1 -1
- package/dist/src/destructor.d.ts.map +1 -0
- package/dist/{identity.d.ts → src/identity.d.ts} +2 -1
- package/dist/src/identity.d.ts.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +22 -20
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/invert.d.ts.map +1 -0
- package/dist/src/join.d.ts.map +1 -0
- package/dist/src/kv/index.d.ts.map +1 -0
- package/dist/src/kv/types.d.ts.map +1 -0
- package/dist/src/math/index.d.ts +2 -0
- package/dist/src/math/index.d.ts.map +1 -0
- package/dist/src/math/math.d.ts +11 -0
- package/dist/src/math/math.d.ts.map +1 -0
- package/dist/src/migrate/index.d.ts.map +1 -0
- package/dist/src/migrate/migrate.d.ts +29 -0
- package/dist/src/migrate/migrate.d.ts.map +1 -0
- package/dist/src/migrate/migrate.spec.d.ts.map +1 -0
- package/dist/{mock → src/mock}/MockGLBufferController.d.ts +2 -1
- package/dist/src/mock/MockGLBufferController.d.ts.map +1 -0
- package/dist/src/mock/index.d.ts.map +1 -0
- package/dist/src/observe/index.d.ts.map +1 -0
- package/dist/src/observe/observe.d.ts +24 -0
- package/dist/src/observe/observe.d.ts.map +1 -0
- package/dist/src/observe/obsever.spec.d.ts +2 -0
- package/dist/src/observe/obsever.spec.d.ts.map +1 -0
- package/dist/src/optional.d.ts.map +1 -0
- package/dist/{primitive.d.ts → src/primitive.d.ts} +2 -1
- package/dist/src/primitive.d.ts.map +1 -0
- package/dist/{record.d.ts → src/record.d.ts} +7 -8
- package/dist/src/record.d.ts.map +1 -0
- package/dist/{renderable.d.ts → src/renderable.d.ts} +2 -1
- package/dist/src/renderable.d.ts.map +1 -0
- package/dist/src/runtime/detect.d.ts.map +1 -0
- package/dist/src/runtime/external.d.ts.map +1 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/os.d.ts +20 -0
- package/dist/src/runtime/os.d.ts.map +1 -0
- package/dist/{search.d.ts → src/search.d.ts} +5 -2
- package/dist/src/search.d.ts.map +1 -0
- package/dist/src/shallowCopy.d.ts +2 -0
- package/dist/src/shallowCopy.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/base.d.ts +30 -5
- package/dist/src/spatial/base.d.ts.map +1 -0
- package/dist/src/spatial/bounds/bounds.d.ts +148 -0
- package/dist/src/spatial/bounds/bounds.d.ts.map +1 -0
- package/dist/src/spatial/bounds/bounds.spec.d.ts.map +1 -0
- package/dist/src/spatial/bounds/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/box/box.d.ts +73 -24
- package/dist/src/spatial/box/box.d.ts.map +1 -0
- package/dist/src/spatial/box/box.spec.d.ts.map +1 -0
- package/dist/src/spatial/box/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/dimensions/dimensions.d.ts +4 -3
- package/dist/src/spatial/dimensions/dimensions.d.ts.map +1 -0
- package/dist/src/spatial/dimensions/dimensions.spec.d.ts.map +1 -0
- package/dist/src/spatial/dimensions/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/direction/direction.d.ts +4 -3
- package/dist/src/spatial/direction/direction.d.ts.map +1 -0
- package/dist/src/spatial/direction/direction.spec.d.ts.map +1 -0
- package/dist/src/spatial/direction/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/external.d.ts +2 -2
- package/dist/src/spatial/external.d.ts.map +1 -0
- package/dist/src/spatial/index.d.ts.map +1 -0
- package/dist/src/spatial/location/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/location/location.d.ts +4 -3
- package/dist/src/spatial/location/location.d.ts.map +1 -0
- package/dist/src/spatial/location/location.spec.d.ts.map +1 -0
- package/dist/src/spatial/position/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/position/position.d.ts +4 -4
- package/dist/src/spatial/position/position.d.ts.map +1 -0
- package/dist/src/spatial/position/position.spec.d.ts.map +1 -0
- package/dist/src/spatial/scale/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/scale/scale.d.ts +15 -62
- package/dist/src/spatial/scale/scale.d.ts.map +1 -0
- package/dist/src/spatial/scale/scale.spec.d.ts.map +1 -0
- package/dist/src/spatial/spatial.d.ts +2 -0
- package/dist/src/spatial/spatial.d.ts.map +1 -0
- package/dist/src/spatial/xy/index.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/xy/xy.d.ts +16 -25
- package/dist/src/spatial/xy/xy.d.ts.map +1 -0
- package/dist/{spatial → src/spatial}/xy/xy.spec.d.ts.map +1 -1
- package/dist/src/telem/generate.d.ts +4 -0
- package/dist/src/telem/generate.d.ts.map +1 -0
- package/dist/src/telem/gl.d.ts.map +1 -0
- package/dist/{telem → src/telem}/index.d.ts +1 -1
- package/dist/src/telem/index.d.ts.map +1 -0
- package/dist/{telem → src/telem}/series.d.ts +10 -8
- package/dist/src/telem/series.d.ts.map +1 -0
- package/dist/{telem → src/telem}/series.spec.d.ts.map +1 -1
- package/dist/{telem → src/telem}/telem.d.ts +19 -21
- package/dist/src/telem/telem.d.ts.map +1 -0
- package/dist/{telem → src/telem}/telem.spec.d.ts.map +1 -1
- package/dist/src/toArray.d.ts.map +1 -0
- package/dist/src/transform.d.ts +6 -0
- package/dist/src/transform.d.ts.map +1 -0
- package/dist/src/unique.d.ts.map +1 -0
- package/dist/src/url/index.d.ts +2 -0
- package/dist/src/url/index.d.ts.map +1 -0
- package/dist/src/url/url.d.ts.map +1 -0
- package/dist/{url → src/url}/url.spec.d.ts.map +1 -1
- package/dist/src/worker/index.d.ts +2 -0
- package/dist/src/worker/index.d.ts.map +1 -0
- package/dist/{worker → src/worker}/worker.d.ts +4 -4
- package/dist/src/worker/worker.d.ts.map +1 -0
- package/dist/src/worker/worker.spec.d.ts.map +1 -0
- package/dist/src/zodutil/index.d.ts +2 -0
- package/dist/src/zodutil/index.d.ts.map +1 -0
- package/dist/src/zodutil/zodutil.d.ts +6 -0
- package/dist/src/zodutil/zodutil.d.ts.map +1 -0
- package/dist/src/zodutil/zodutil.spec.d.ts +2 -0
- package/dist/src/zodutil/zodutil.spec.d.ts.map +1 -0
- package/dist/telem.cjs +1 -0
- package/dist/telem.js +17 -0
- package/dist/toArray.cjs +1 -0
- package/dist/toArray.js +5 -0
- package/dist/unique.cjs +1 -0
- package/dist/unique.js +4 -0
- package/dist/url.cjs +1 -0
- package/dist/url.js +54 -0
- package/dist/worker.cjs +1 -0
- package/dist/worker.js +47 -0
- package/dist/xy-D1ZbIqpT.js +90 -0
- package/dist/xy-cP-FXJtR.cjs +1 -0
- package/dist/xy.cjs +1 -0
- package/dist/xy.js +4 -0
- package/dist/zodutil.cjs +1 -0
- package/dist/zodutil.js +21 -0
- package/eslint.config.js +12 -0
- package/package.json +157 -13
- package/src/binary/encoder.spec.ts +150 -7
- package/src/binary/encoder.ts +110 -9
- package/src/binary/index.ts +1 -1
- package/src/caseconv/caseconv.ts +31 -0
- package/src/caseconv/index.ts +10 -0
- package/src/change/change.ts +7 -6
- package/src/change/index.ts +1 -1
- package/src/{clamp.ts → clamp/clamp.ts} +1 -1
- package/src/clamp/index.ts +10 -0
- package/src/compare/compare.spec.ts +49 -0
- package/src/compare/compare.ts +37 -10
- package/src/compare/index.ts +1 -1
- package/src/control/control.ts +77 -0
- package/src/control/index.ts +1 -0
- package/src/debounce/debounce.spec.ts +52 -0
- package/src/{debounce.ts → debounce/debounce.ts} +4 -4
- package/src/debounce/index.ts +10 -0
- package/src/deep/copy.ts +2 -3
- package/src/deep/delete.spec.ts +2 -2
- package/src/deep/delete.ts +3 -2
- package/src/deep/difference.spec.ts +28 -27
- package/src/deep/difference.ts +13 -11
- package/src/deep/equal.spec.ts +4 -4
- package/src/deep/equal.ts +5 -5
- package/src/deep/external.ts +4 -5
- package/src/deep/index.ts +1 -1
- package/src/deep/merge.spec.ts +120 -4
- package/src/deep/merge.ts +50 -6
- package/src/deep/partial.ts +1 -1
- package/src/deep/path.spec.ts +91 -39
- package/src/deep/path.ts +111 -46
- package/src/destructor.ts +2 -2
- package/src/identity.ts +1 -1
- package/src/index.ts +23 -21
- package/src/invert.ts +9 -0
- package/src/join.ts +1 -1
- package/src/kv/index.ts +1 -1
- package/src/kv/types.ts +1 -1
- package/src/math/index.ts +10 -0
- package/src/math/math.ts +33 -0
- package/src/migrate/index.ts +9 -0
- package/src/migrate/migrate.spec.ts +65 -54
- package/src/migrate/migrate.ts +126 -17
- package/src/mock/MockGLBufferController.ts +6 -6
- package/src/mock/index.ts +1 -1
- package/src/observe/index.ts +1 -1
- package/src/observe/observe.ts +37 -6
- package/src/observe/obsever.spec.ts +56 -0
- package/src/optional.ts +3 -4
- package/src/primitive.ts +1 -1
- package/src/record.ts +10 -6
- package/src/renderable.ts +1 -1
- package/src/runtime/detect.ts +3 -3
- package/src/runtime/external.ts +1 -1
- package/src/runtime/index.ts +1 -1
- package/src/runtime/os.ts +17 -5
- package/src/search.ts +3 -1
- package/src/shallowCopy.ts +5 -6
- package/src/spatial/base.ts +13 -5
- package/src/spatial/bounds/bounds.spec.ts +259 -180
- package/src/spatial/bounds/bounds.ts +200 -85
- package/src/spatial/bounds/index.ts +2 -2
- package/src/spatial/box/box.spec.ts +211 -2
- package/src/spatial/box/box.ts +97 -49
- package/src/spatial/box/index.ts +2 -2
- package/src/spatial/dimensions/dimensions.spec.ts +1 -1
- package/src/spatial/dimensions/dimensions.ts +4 -4
- package/src/spatial/dimensions/index.ts +2 -2
- package/src/spatial/direction/direction.spec.ts +1 -1
- package/src/spatial/direction/direction.ts +7 -7
- package/src/spatial/direction/index.ts +2 -2
- package/src/spatial/external.ts +3 -3
- package/src/spatial/index.ts +1 -1
- package/src/spatial/location/index.ts +2 -2
- package/src/spatial/location/location.spec.ts +1 -1
- package/src/spatial/location/location.ts +21 -21
- package/src/spatial/position/index.ts +1 -1
- package/src/spatial/position/position.spec.ts +1 -1
- package/src/spatial/position/position.ts +3 -20
- package/src/spatial/scale/index.ts +2 -2
- package/src/spatial/scale/scale.spec.ts +3 -3
- package/src/spatial/scale/scale.ts +3 -3
- package/src/spatial/spatial.ts +5 -5
- package/src/spatial/xy/index.ts +2 -2
- package/src/spatial/xy/xy.spec.ts +93 -44
- package/src/spatial/xy/xy.ts +20 -27
- package/src/telem/generate.ts +1 -1
- package/src/telem/gl.ts +1 -1
- package/src/telem/index.ts +2 -2
- package/src/telem/series.spec.ts +64 -5
- package/src/telem/series.ts +47 -35
- package/src/telem/telem.spec.ts +130 -2
- package/src/telem/telem.ts +63 -23
- package/src/toArray.ts +2 -2
- package/src/transform.ts +9 -2
- package/src/unique.ts +1 -1
- package/src/url/index.ts +2 -2
- package/src/url/url.spec.ts +2 -2
- package/src/url/url.ts +4 -4
- package/src/worker/index.ts +10 -0
- package/src/worker/worker.spec.ts +2 -2
- package/src/worker/worker.ts +13 -13
- package/src/zodutil/index.ts +10 -0
- package/src/zodutil/zodutil.spec.ts +103 -0
- package/src/zodutil/zodutil.ts +44 -0
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +39 -3
- package/.eslintrc.cjs +0 -18
- package/dist/binary/encoder.d.ts.map +0 -1
- package/dist/binary/encoder.spec.d.ts.map +0 -1
- package/dist/binary/index.d.ts.map +0 -1
- package/dist/case.d.ts +0 -6
- package/dist/case.d.ts.map +0 -1
- package/dist/change/change.d.ts.map +0 -1
- package/dist/change/index.d.ts.map +0 -1
- package/dist/clamp.d.ts.map +0 -1
- package/dist/compare/compare.d.ts.map +0 -1
- package/dist/compare/index.d.ts.map +0 -1
- package/dist/debounce.d.ts.map +0 -1
- package/dist/deep/copy.d.ts.map +0 -1
- package/dist/deep/delete.d.ts.map +0 -1
- package/dist/deep/difference.d.ts.map +0 -1
- package/dist/deep/difference.spec.d.ts.map +0 -1
- package/dist/deep/equal.d.ts.map +0 -1
- package/dist/deep/external.d.ts.map +0 -1
- package/dist/deep/index.d.ts.map +0 -1
- package/dist/deep/memo.d.ts +0 -2
- package/dist/deep/memo.d.ts.map +0 -1
- package/dist/deep/merge.d.ts +0 -3
- package/dist/deep/merge.d.ts.map +0 -1
- package/dist/deep/partial.d.ts.map +0 -1
- package/dist/deep/path.d.ts +0 -37
- package/dist/deep/path.d.ts.map +0 -1
- package/dist/destructor.d.ts.map +0 -1
- package/dist/identity.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/invert.d.ts.map +0 -1
- package/dist/join.d.ts.map +0 -1
- package/dist/kv/index.d.ts.map +0 -1
- package/dist/kv/types.d.ts.map +0 -1
- package/dist/migrate/index.d.ts.map +0 -1
- package/dist/migrate/migrate.d.ts +0 -16
- package/dist/migrate/migrate.d.ts.map +0 -1
- package/dist/migrate/migrate.spec.d.ts.map +0 -1
- package/dist/mock/MockGLBufferController.d.ts.map +0 -1
- package/dist/mock/index.d.ts.map +0 -1
- package/dist/observe/index.d.ts.map +0 -1
- package/dist/observe/observe.d.ts +0 -12
- package/dist/observe/observe.d.ts.map +0 -1
- package/dist/optional.d.ts.map +0 -1
- package/dist/primitive.d.ts.map +0 -1
- package/dist/record.d.ts.map +0 -1
- package/dist/renderable.d.ts.map +0 -1
- package/dist/runtime/detect.d.ts.map +0 -1
- package/dist/runtime/external.d.ts.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/os.d.ts +0 -10
- package/dist/runtime/os.d.ts.map +0 -1
- package/dist/search.d.ts.map +0 -1
- package/dist/shallowCopy.d.ts +0 -2
- package/dist/shallowCopy.d.ts.map +0 -1
- package/dist/spatial/base.d.ts.map +0 -1
- package/dist/spatial/bounds/bounds.d.ts +0 -71
- package/dist/spatial/bounds/bounds.d.ts.map +0 -1
- package/dist/spatial/bounds/bounds.spec.d.ts.map +0 -1
- package/dist/spatial/bounds/index.d.ts.map +0 -1
- package/dist/spatial/box/box.d.ts.map +0 -1
- package/dist/spatial/box/box.spec.d.ts.map +0 -1
- package/dist/spatial/box/index.d.ts.map +0 -1
- package/dist/spatial/dimensions/dimensions.d.ts.map +0 -1
- package/dist/spatial/dimensions/dimensions.spec.d.ts.map +0 -1
- package/dist/spatial/dimensions/index.d.ts.map +0 -1
- package/dist/spatial/direction/direction.d.ts.map +0 -1
- package/dist/spatial/direction/direction.spec.d.ts.map +0 -1
- package/dist/spatial/direction/index.d.ts.map +0 -1
- package/dist/spatial/external.d.ts.map +0 -1
- package/dist/spatial/index.d.ts.map +0 -1
- package/dist/spatial/location/index.d.ts.map +0 -1
- package/dist/spatial/location/location.d.ts.map +0 -1
- package/dist/spatial/location/location.spec.d.ts.map +0 -1
- package/dist/spatial/position/index.d.ts.map +0 -1
- package/dist/spatial/position/position.d.ts.map +0 -1
- package/dist/spatial/position/position.spec.d.ts.map +0 -1
- package/dist/spatial/scale/index.d.ts.map +0 -1
- package/dist/spatial/scale/scale.d.ts.map +0 -1
- package/dist/spatial/scale/scale.spec.d.ts.map +0 -1
- package/dist/spatial/spatial.d.ts +0 -2
- package/dist/spatial/spatial.d.ts.map +0 -1
- package/dist/spatial/xy/index.d.ts.map +0 -1
- package/dist/spatial/xy/xy.d.ts.map +0 -1
- package/dist/telem/generate.d.ts +0 -3
- package/dist/telem/generate.d.ts.map +0 -1
- package/dist/telem/gl.d.ts.map +0 -1
- package/dist/telem/index.d.ts.map +0 -1
- package/dist/telem/series.d.ts.map +0 -1
- package/dist/telem/telem.d.ts.map +0 -1
- package/dist/toArray.d.ts.map +0 -1
- package/dist/transform.d.ts +0 -2
- package/dist/transform.d.ts.map +0 -1
- package/dist/unique.d.ts.map +0 -1
- package/dist/url/index.d.ts +0 -2
- package/dist/url/index.d.ts.map +0 -1
- package/dist/url/url.d.ts.map +0 -1
- package/dist/worker/worker.d.ts.map +0 -1
- package/dist/worker/worker.spec.d.ts.map +0 -1
- package/dist/x.cjs +0 -12
- package/dist/x.cjs.map +0 -1
- package/dist/x.js +0 -5935
- package/dist/x.js.map +0 -1
- package/src/case.ts +0 -27
- package/src/deep/memo.ts +0 -24
- /package/dist/{binary → src/binary}/encoder.spec.d.ts +0 -0
- /package/dist/{binary → src/binary}/index.d.ts +0 -0
- /package/dist/{change → src/change}/index.d.ts +0 -0
- /package/dist/{clamp.d.ts → src/clamp/clamp.d.ts} +0 -0
- /package/dist/{compare → src/compare}/index.d.ts +0 -0
- /package/dist/{debounce.d.ts → src/debounce/debounce.d.ts} +0 -0
- /package/dist/{deep → src/deep}/copy.d.ts +0 -0
- /package/dist/{deep → src/deep}/delete.spec.d.ts +0 -0
- /package/dist/{deep → src/deep}/difference.d.ts +0 -0
- /package/dist/{deep → src/deep}/difference.spec.d.ts +0 -0
- /package/dist/{deep → src/deep}/equal.d.ts +0 -0
- /package/dist/{deep → src/deep}/equal.spec.d.ts +0 -0
- /package/dist/{deep → src/deep}/index.d.ts +0 -0
- /package/dist/{deep → src/deep}/merge.spec.d.ts +0 -0
- /package/dist/{deep → src/deep}/partial.d.ts +0 -0
- /package/dist/{deep → src/deep}/path.spec.d.ts +0 -0
- /package/dist/{destructor.d.ts → src/destructor.d.ts} +0 -0
- /package/dist/{invert.d.ts → src/invert.d.ts} +0 -0
- /package/dist/{join.d.ts → src/join.d.ts} +0 -0
- /package/dist/{kv → src/kv}/index.d.ts +0 -0
- /package/dist/{kv → src/kv}/types.d.ts +0 -0
- /package/dist/{migrate → src/migrate}/index.d.ts +0 -0
- /package/dist/{migrate → src/migrate}/migrate.spec.d.ts +0 -0
- /package/dist/{mock → src/mock}/index.d.ts +0 -0
- /package/dist/{observe → src/observe}/index.d.ts +0 -0
- /package/dist/{optional.d.ts → src/optional.d.ts} +0 -0
- /package/dist/{runtime → src/runtime}/detect.d.ts +0 -0
- /package/dist/{runtime → src/runtime}/external.d.ts +0 -0
- /package/dist/{runtime → src/runtime}/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/bounds/bounds.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/bounds/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/box/box.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/box/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/dimensions/dimensions.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/dimensions/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/direction/direction.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/direction/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/location/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/location/location.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/position/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/position/position.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/scale/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/scale/scale.spec.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/xy/index.d.ts +0 -0
- /package/dist/{spatial → src/spatial}/xy/xy.spec.d.ts +0 -0
- /package/dist/{telem → src/telem}/gl.d.ts +0 -0
- /package/dist/{telem → src/telem}/series.spec.d.ts +0 -0
- /package/dist/{telem → src/telem}/telem.spec.d.ts +0 -0
- /package/dist/{toArray.d.ts → src/toArray.d.ts} +0 -0
- /package/dist/{unique.d.ts → src/unique.d.ts} +0 -0
- /package/dist/{url → src/url}/url.d.ts +0 -0
- /package/dist/{url → src/url}/url.spec.d.ts +0 -0
- /package/dist/{worker → src/worker}/worker.spec.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/math/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Value = number | bigint;
|
|
2
|
+
/** @returns the product of a and b, coercing b to the type of a if necessary. */
|
|
3
|
+
export declare const sub: <V extends Value>(a: V, b: Value) => V;
|
|
4
|
+
/** @returns the sum of a and b, coercing b to the type of a if necessary. */
|
|
5
|
+
export declare const add: <V extends Value>(a: V, b: Value) => V;
|
|
6
|
+
/** @returns true if a is close to b within epsilon. */
|
|
7
|
+
export declare const closeTo: (a: number, b: number, epsilon?: number) => boolean;
|
|
8
|
+
/** @returns the nearest number to num with 1 significant digit. */
|
|
9
|
+
export declare const roundToNearestMagnitude: (num: number) => number;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../src/math/math.ts"],"names":[],"mappings":"AASA,KAAK,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7B,iFAAiF;AACjF,eAAO,MAAM,GAAG,uBAAwB,CAAC,KAAK,KAAK,KAAG,CAGrD,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,GAAG,uBAAwB,CAAC,KAAK,KAAK,KAAG,CAIrD,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,OAAO,MAAO,MAAM,KAAK,MAAM,uBAAqB,OACtC,CAAC;AAE5B,mEAAmE;AACnE,eAAO,MAAM,uBAAuB,QAAS,MAAM,KAAG,MAGrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrate/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const semVerZ: z.ZodString;
|
|
4
|
+
export type SemVer = z.infer<typeof semVerZ>;
|
|
5
|
+
export type Migratable<V extends string = string> = {
|
|
6
|
+
version: V;
|
|
7
|
+
};
|
|
8
|
+
export type Migration<I extends Migratable, O extends Migratable> = (input: I) => O;
|
|
9
|
+
export interface MigrationProps<I extends Migratable, O extends Migratable, ZI extends z.ZodTypeAny, ZO extends z.ZodTypeAny> {
|
|
10
|
+
name: string;
|
|
11
|
+
inputSchema?: ZI;
|
|
12
|
+
outputSchema?: ZO;
|
|
13
|
+
migrate: Migration<I, O>;
|
|
14
|
+
}
|
|
15
|
+
export declare const createMigration: <I extends Migratable<string>, O extends Migratable<string>, ZI extends z.ZodTypeAny = z.ZodTypeAny, ZO extends z.ZodTypeAny = z.ZodTypeAny>({ name, migrate, }: MigrationProps<I, O, ZI, ZO>) => Migration<I, O>;
|
|
16
|
+
/**
|
|
17
|
+
* A record of migrations to be applied, where the key of the record is the
|
|
18
|
+
* input version of the migration.
|
|
19
|
+
*/
|
|
20
|
+
export type Migrations = Record<string, Migration<any, any>>;
|
|
21
|
+
interface MigratorProps<O extends Migratable, ZO extends z.ZodTypeAny = z.ZodTypeAny> {
|
|
22
|
+
name: string;
|
|
23
|
+
migrations: Migrations;
|
|
24
|
+
def: O;
|
|
25
|
+
targetSchema?: ZO;
|
|
26
|
+
}
|
|
27
|
+
export declare const migrator: <O extends Migratable<string>, ZO extends z.ZodTypeAny = z.ZodTypeAny>({ name, migrations, targetSchema, def, }: MigratorProps<O, ZO>) => ((v: Migratable) => O);
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/migrate/migrate.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,OAAO,aAAsC,CAAC;AAE3D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AA6B7C,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,UAAU,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAEpF,MAAM,WAAW,cAAc,CAC7B,CAAC,SAAS,UAAU,EACpB,CAAC,SAAS,UAAU,EACpB,EAAE,SAAS,CAAC,CAAC,UAAU,EACvB,EAAE,SAAS,CAAC,CAAC,UAAU;IAEvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,EAAE,CAAC;IAClB,OAAO,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,mKASvB,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,KAAG,UAAU,CAAC,EAAE,CAAC,CAW/C,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAE7D,UAAU,aAAa,CAAC,CAAC,SAAS,UAAU,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,UAAU,CAAC;IACvB,GAAG,EAAE,CAAC,CAAC;IACP,YAAY,CAAC,EAAE,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,mHAKlB,cAAc,CAAC,EAAE,EAAE,CAAC,KAAG,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,CAAC,CAuD9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.spec.d.ts","sourceRoot":"","sources":["../../../src/migrate/migrate.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MockGLBufferController.d.ts","sourceRoot":"","sources":["../../../src/mock/MockGLBufferController.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,IAAI,EAAK,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,YAAY,EAAE,MAAM,CAAK;IACzB,WAAW,EAAE,MAAM,CAAK;IACxB,YAAY,EAAE,MAAM,CAAK;IAEzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM;IACrC,OAAO,EAAE,MAAM,CAAK;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAM;IAE1C,gBAAgB,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAAC,CAAW;IACzD,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC,CAAW;IAC3E,iBAAiB,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAW;IACrE,cAAc,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC,CAAW;IAC7D,gBAAgB,EAAE,IAAI,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAW;IAEvD,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI;IAM9C,YAAY,IAAI,WAAW,GAAG,IAAI;IAOlC,UAAU,CACR,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,eAAe,GAAG,MAAM,EACpC,KAAK,EAAE,MAAM,GACZ,IAAI;IAQP,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI;IAM5D,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI;CAU3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mock/index.ts"],"names":[],"mappings":"AASA,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observe/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Destructor } from '../destructor';
|
|
2
|
+
|
|
3
|
+
export type Handler<T> = (value: T) => void;
|
|
4
|
+
export interface Observable<T> {
|
|
5
|
+
onChange: (handler: Handler<T>) => Destructor;
|
|
6
|
+
}
|
|
7
|
+
export interface ObservableAsyncCloseable<T> extends Observable<T> {
|
|
8
|
+
close: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export type Transform<I, O> = (value: I) => [O, true] | [O | null, false];
|
|
11
|
+
export declare class Observer<I, O = I> implements Observable<O> {
|
|
12
|
+
private readonly handlers;
|
|
13
|
+
private readonly transform?;
|
|
14
|
+
constructor(transform?: Transform<I, O>, handlers?: Map<Handler<O>, null>);
|
|
15
|
+
onChange(handler: Handler<O>): Destructor;
|
|
16
|
+
notify(value: I): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class BaseObserver<V> implements Observable<V> {
|
|
19
|
+
private readonly handlers;
|
|
20
|
+
constructor(handlers?: Map<Handler<V>, null>);
|
|
21
|
+
onChange(handler: Handler<V>): Destructor;
|
|
22
|
+
notify(value: V): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=observe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../../../src/observe/observe.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAE5C,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC;CAC/C;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAChE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;AAE1E,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAE,YAAW,UAAU,CAAC,CAAC,CAAC;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAkB;gBAEjC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;IAKzE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,UAAU;IAKzC,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;CASvB;AAED,qBAAa,YAAY,CAAC,CAAC,CAAE,YAAW,UAAU,CAAC,CAAC,CAAC;IACnD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAErC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;IAI5C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,UAAU;IAKzC,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;CAGvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obsever.spec.d.ts","sourceRoot":"","sources":["../../../src/observe/obsever.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../src/optional.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9E,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../src/primitive.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,QAAQ,GACR,IAAI,GACJ,SAAS,CAAC;AAEd,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,OACuB,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAErD,eAAO,MAAM,eAAe,UAAW,SAAS,KAAG,OAgBlD,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
2
3
|
export type Key = string | number | symbol;
|
|
3
|
-
export type UnknownRecord =
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export type Keyed<K extends Key> = {
|
|
4
|
+
export type UnknownRecord = Record<Key, unknown>;
|
|
5
|
+
export interface Keyed<K extends Key> {
|
|
7
6
|
key: K;
|
|
8
|
-
}
|
|
7
|
+
}
|
|
9
8
|
export declare const unknownRecordZ: z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>;
|
|
10
|
-
export type Entries<T> = {
|
|
9
|
+
export type Entries<T> = Array<{
|
|
11
10
|
[K in keyof T]: [K, T[K]];
|
|
12
|
-
}[keyof T]
|
|
11
|
+
}[keyof T]>;
|
|
13
12
|
export declare const getEntries: <T extends Record<Key, unknown>>(obj: T) => Entries<T>;
|
|
14
13
|
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAEjD,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,GAAG;IAClC,GAAG,EAAE,CAAC,CAAC;CACR;AAED,eAAO,MAAM,cAAc,gFAG1B,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,KAAK,CAC5B;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC,MAAM,CAAC,CAAC,CACX,CAAC;AAEF,eAAO,MAAM,UAAU,wCAAyC,CAAC,KAAG,QAAQ,CAAC,CAC1C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Stringer } from './primitive';
|
|
2
|
+
|
|
2
3
|
export type PureRenderableValue = string | number | undefined;
|
|
3
4
|
export type RenderableValue = PureRenderableValue | Stringer;
|
|
4
5
|
export declare const convertRenderV: (value: RenderableValue) => string | number | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderable.d.ts","sourceRoot":"","sources":["../../src/renderable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,QAAQ,CAAC;AAE7D,eAAO,MAAM,cAAc,UAAW,eAAe,KAAG,MAAM,GAAG,MAAM,GAAG,SAKzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/runtime/detect.ts"],"names":[],"mappings":"AASA,uCAAuC;AACvC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,MAAM,QAAO,OAczB,CAAC;AAEF,eAAO,MAAM,OAAO,SAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/runtime/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export declare const OPERATING_SYSTEMS: readonly ["MacOS", "Windows", "Linux", "Docker"];
|
|
4
|
+
export declare const osZ: z.ZodEnum<["MacOS", "Windows", "Linux", "Docker"]>;
|
|
5
|
+
export type OS = (typeof OPERATING_SYSTEMS)[number];
|
|
6
|
+
export type RequiredGetOSProps = {
|
|
7
|
+
force?: OS;
|
|
8
|
+
default?: OS;
|
|
9
|
+
};
|
|
10
|
+
export type OptionalGetOSProps = {
|
|
11
|
+
force?: OS | undefined;
|
|
12
|
+
default: OS;
|
|
13
|
+
};
|
|
14
|
+
export type GetOSProps = RequiredGetOSProps | OptionalGetOSProps;
|
|
15
|
+
export interface GetOS {
|
|
16
|
+
(props?: RequiredGetOSProps): OS;
|
|
17
|
+
(props?: OptionalGetOSProps): OS | undefined;
|
|
18
|
+
}
|
|
19
|
+
export declare const getOS: GetOS;
|
|
20
|
+
//# sourceMappingURL=os.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../src/runtime/os.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,kDAAmD,CAAC;AAClF,eAAO,MAAM,GAAG,oDAA4B,CAAC;AAC7C,MAAM,MAAM,EAAE,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,EAAE,CAAC;IACX,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACvB,OAAO,EAAE,EAAE,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAajE,MAAM,WAAW,KAAK;IACpB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,CAAC;IACjC,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,EAAE,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,KAAK,OAMI,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Key, Keyed } from './record';
|
|
2
|
+
import { CompareF } from './compare/compare';
|
|
3
|
+
|
|
3
4
|
export declare const Search: {
|
|
4
5
|
binary: <T>(arr: T[], target: T, compare: CompareF<T>) => number;
|
|
5
6
|
};
|
|
6
7
|
export interface TermSearcher<T, K extends Key, E extends Keyed<K>> {
|
|
8
|
+
readonly type: string;
|
|
7
9
|
search: (term: T) => E[];
|
|
8
10
|
retrieve: (keys: K[]) => E[];
|
|
9
11
|
page: (offset: number, limit: number) => E[];
|
|
10
12
|
}
|
|
11
13
|
export interface AsyncTermSearcher<T, K extends Key, E extends Keyed<K>> {
|
|
14
|
+
readonly type: string;
|
|
12
15
|
search: (term: T) => Promise<E[]>;
|
|
13
16
|
retrieve: (keys: K[]) => Promise<E[]>;
|
|
14
17
|
page: (offset: number, limit: number) => Promise<E[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/search.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAehD,eAAO,MAAM,MAAM;qBAbK,CAAC,EAAE,UAAU,CAAC,WAAW,SAAS,CAAC,CAAC,KAAG,MAAM;CAepE,CAAC;AAEF,MAAM,WAAW,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACzB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC;IACrE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACtC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shallowCopy.d.ts","sourceRoot":"","sources":["../../src/shallowCopy.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,WAAY,CAAC,KAAG,CAIvC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
2
3
|
export declare const numberCouple: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3
|
-
export
|
|
4
|
+
export declare const bigNumberCouple: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
|
|
5
|
+
export type NumberCouple<T extends number | bigint = number> = [T, T];
|
|
4
6
|
export declare const dimensions: z.ZodObject<{
|
|
5
7
|
width: z.ZodNumber;
|
|
6
8
|
height: z.ZodNumber;
|
|
@@ -64,7 +66,7 @@ export declare const Y_LOCATIONS: readonly ["top", "bottom"];
|
|
|
64
66
|
export declare const yLocation: z.ZodEnum<["top", "bottom"]>;
|
|
65
67
|
export type YLocation = (typeof Y_LOCATIONS)[number];
|
|
66
68
|
export declare const CENTER_LOCATIONS: readonly ["center"];
|
|
67
|
-
export declare const
|
|
69
|
+
export declare const centerLocation: z.ZodEnum<["center"]>;
|
|
68
70
|
export type CenterLocation = (typeof CENTER_LOCATIONS)[number];
|
|
69
71
|
export declare const LOCATIONS: readonly ["top", "right", "bottom", "left", "center"];
|
|
70
72
|
export declare const location: z.ZodEnum<["top", "right", "bottom", "left", "center"]>;
|
|
@@ -84,7 +86,20 @@ export declare const bounds: z.ZodObject<{
|
|
|
84
86
|
lower: number;
|
|
85
87
|
upper: number;
|
|
86
88
|
}>;
|
|
87
|
-
export
|
|
89
|
+
export declare const bigBounds: z.ZodObject<{
|
|
90
|
+
lower: z.ZodBigInt;
|
|
91
|
+
upper: z.ZodBigInt;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
lower: bigint;
|
|
94
|
+
upper: bigint;
|
|
95
|
+
}, {
|
|
96
|
+
lower: bigint;
|
|
97
|
+
upper: bigint;
|
|
98
|
+
}>;
|
|
99
|
+
export interface Bounds<T extends number | bigint = number> {
|
|
100
|
+
lower: T;
|
|
101
|
+
upper: T;
|
|
102
|
+
}
|
|
88
103
|
export declare const crudeBounds: z.ZodUnion<[z.ZodObject<{
|
|
89
104
|
lower: z.ZodNumber;
|
|
90
105
|
upper: z.ZodNumber;
|
|
@@ -95,7 +110,17 @@ export declare const crudeBounds: z.ZodUnion<[z.ZodObject<{
|
|
|
95
110
|
lower: number;
|
|
96
111
|
upper: number;
|
|
97
112
|
}>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
98
|
-
export
|
|
113
|
+
export declare const bigCrudeBounds: z.ZodUnion<[z.ZodObject<{
|
|
114
|
+
lower: z.ZodBigInt;
|
|
115
|
+
upper: z.ZodBigInt;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
lower: bigint;
|
|
118
|
+
upper: bigint;
|
|
119
|
+
}, {
|
|
120
|
+
lower: bigint;
|
|
121
|
+
upper: bigint;
|
|
122
|
+
}>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
123
|
+
export type CrudeBounds<T extends number | bigint = number> = Bounds<T> | NumberCouple<T>;
|
|
99
124
|
export declare const crudeDirection: z.ZodUnion<[z.ZodEnum<["x", "y"]>, z.ZodEnum<["top", "right", "bottom", "left", "center"]>]>;
|
|
100
125
|
export type CrudeDirection = z.infer<typeof crudeDirection>;
|
|
101
126
|
export declare const crudeLocation: z.ZodUnion<[z.ZodEnum<["x", "y"]>, z.ZodEnum<["top", "right", "bottom", "left", "center"]>, z.ZodType<String, z.ZodTypeDef, String>]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/spatial/base.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Bounds, bounds, CrudeBounds } from '../base';
|
|
2
|
+
|
|
3
|
+
export { type Bounds, bounds };
|
|
4
|
+
export type Crude<T extends number | bigint = number> = CrudeBounds<T>;
|
|
5
|
+
export interface Construct {
|
|
6
|
+
/**
|
|
7
|
+
* Constructs a bounds object from the given crude bounds.
|
|
8
|
+
*
|
|
9
|
+
* @param bounds - The crude bounds to construct. Can either be a strict bounds object
|
|
10
|
+
* with a 'lower' and 'upper' property or an array of length 2. If the bounds are
|
|
11
|
+
* invalid i.e., the lower bound is greater than the upper bound, the bounds are
|
|
12
|
+
* swapped.
|
|
13
|
+
*/ <T extends number | bigint = number>(bounds: Crude<T>): Bounds<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a bounds object from the given lower and upper bounds.
|
|
16
|
+
* @param lower - The lower bound of the new bounds object.
|
|
17
|
+
* @param upper - The upper bound of the new bounds object.
|
|
18
|
+
*
|
|
19
|
+
* If only one argument is provided, it is assumed to be the upper bound and the lower
|
|
20
|
+
* bound is set to 0.
|
|
21
|
+
*
|
|
22
|
+
* If the lower bound is greater than the upper bound, the bounds are swapped.
|
|
23
|
+
*/ <T extends number | bigint = number>(lower: number, upper?: number): Bounds<T>;
|
|
24
|
+
<T extends number | bigint = number>(lower: number | Crude, upper?: number): Bounds<T>;
|
|
25
|
+
}
|
|
26
|
+
export declare const construct: <T extends number | bigint>(lower: T | Crude<T>, upper?: T) => Bounds<T>;
|
|
27
|
+
/** A lower and upper bound of 0. */
|
|
28
|
+
export declare const ZERO: Bounds;
|
|
29
|
+
/** A lower bound of -Infinity and an upper bound of Infinity. */
|
|
30
|
+
export declare const INFINITE: Bounds;
|
|
31
|
+
/** A lower bound of 0 and an upper bound of 1. */
|
|
32
|
+
export declare const DECIMAL: Bounds;
|
|
33
|
+
/** Clip space bounds i.e. a lower bound of -1 and an upper bound of 1. */
|
|
34
|
+
export declare const CLIP: Readonly<{
|
|
35
|
+
lower: -1;
|
|
36
|
+
upper: 1;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Checks whether the given bounds are equal.
|
|
40
|
+
*
|
|
41
|
+
* @param _a - The first bounds to compare.
|
|
42
|
+
* @param _b - The second bounds to compare.
|
|
43
|
+
* @returns True if the bounds are equal, false otherwise.
|
|
44
|
+
*/
|
|
45
|
+
export declare const equals: <T extends number | bigint = number>(_a?: Crude<T>, _b?: Crude<T>) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Makes the given bounds valid by swapping the lower and upper bounds if the lower bound
|
|
48
|
+
* is greater than the upper bound.
|
|
49
|
+
* @param a - The bounds to make valid.
|
|
50
|
+
* @returns The valid bounds.
|
|
51
|
+
*/
|
|
52
|
+
export declare const makeValid: <T extends number | bigint = number>(a: Bounds<T>) => Bounds<T>;
|
|
53
|
+
/**
|
|
54
|
+
* Clamps the given target value to the given bounds. If the target is less than the lower
|
|
55
|
+
* bound, the lower bound is returned. If the target is greater than or equal to the upper
|
|
56
|
+
* bound, the upper bound minus 1 is returned. Otherwise, the target is returned.
|
|
57
|
+
*
|
|
58
|
+
* @param bounds - The bounds to clamp the target to.
|
|
59
|
+
* @param target - The target value to clamp.
|
|
60
|
+
* @returns The clamped target value.
|
|
61
|
+
*/
|
|
62
|
+
export declare const clamp: <T extends number | bigint>(bounds: Crude<T>, target: T) => T;
|
|
63
|
+
/**
|
|
64
|
+
* Checks whether the given target value or bounds are within the given bounds.
|
|
65
|
+
*
|
|
66
|
+
* @param bounds - The bounds to check against.
|
|
67
|
+
* @param target - The target value to check. Can either be a number or a bounds object.
|
|
68
|
+
* @returns True if the target is within the bounds, false otherwise.
|
|
69
|
+
*/
|
|
70
|
+
export declare const contains: <T extends number | bigint>(bounds: Crude<T>, target: T | CrudeBounds<T>) => boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Checks whether the given bounds overlap with each other.
|
|
73
|
+
*
|
|
74
|
+
* @param a - The first bounds to check.
|
|
75
|
+
* @param b - The second bounds to check.
|
|
76
|
+
* @returns True if the bounds overlap, false otherwise.
|
|
77
|
+
*/
|
|
78
|
+
export declare const overlapsWith: <T extends number | bigint>(a: Crude<T>, b: Crude<T>) => boolean;
|
|
79
|
+
/** @returns the span of the given bounds i.e. upper - lower. */
|
|
80
|
+
export declare const span: <T extends number | bigint>(a: Crude<T>) => T;
|
|
81
|
+
/** @returns true if both the lower and upper bounds are 0, false otherwise. */
|
|
82
|
+
export declare const isZero: <T extends number | bigint>(a: Crude<T>) => boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @returns true if the difference between the lower and upper bounds is 0,
|
|
85
|
+
* false otherwise.
|
|
86
|
+
*/
|
|
87
|
+
export declare const spanIsZero: (a: Crude) => boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @returns true if both the upper and lower bounds are not Infinity or -Infinity,
|
|
90
|
+
* false otherwise.
|
|
91
|
+
*/
|
|
92
|
+
export declare const isFinite: (a: Crude) => boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @returns bounds that have the maximum span of the given bounds i.e. the min of all
|
|
95
|
+
* of the lower bounds and the max of all of the upper bounds.
|
|
96
|
+
*/
|
|
97
|
+
export declare const max: (bounds: Crude[]) => Bounds;
|
|
98
|
+
/**
|
|
99
|
+
* @returns bounds that have the minimum span of the given bounds i.e. the max of all
|
|
100
|
+
* of the lower bounds and the min of all of the upper bounds. Note that this function
|
|
101
|
+
* may create invalid bounds if the highest lower bound is greater than the lowest upper
|
|
102
|
+
* bound.
|
|
103
|
+
*/
|
|
104
|
+
export declare const min: (bounds: Crude[]) => Bounds;
|
|
105
|
+
/**
|
|
106
|
+
* @returns an array of integers from the lower bound to the upper bound of the given
|
|
107
|
+
* bounds.
|
|
108
|
+
*/
|
|
109
|
+
export declare const linspace: <T extends number | bigint = number>(bounds: Crude<T>) => T[];
|
|
110
|
+
export declare const findInsertPosition: <T extends number | bigint>(bounds: Array<Crude<T>>, target: T) => {
|
|
111
|
+
index: number;
|
|
112
|
+
position: number;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* A plan for inserting a new bound into an ordered array of bounds.
|
|
116
|
+
*/
|
|
117
|
+
export interface InsertionPlan {
|
|
118
|
+
/** How much to increase the lower bound of the new bound or decrease the upper bound
|
|
119
|
+
* of the previous bound. */
|
|
120
|
+
removeBefore: number;
|
|
121
|
+
/** How much to decrease the upper bound of the new bound or increase the lower bound
|
|
122
|
+
* of the next bound. */
|
|
123
|
+
removeAfter: number;
|
|
124
|
+
/** The index at which to insert the new bound. */
|
|
125
|
+
insertInto: number;
|
|
126
|
+
/** The number of bounds to remove from the array. */
|
|
127
|
+
deleteInBetween: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Build a plan for inserting a new bound into an ordered array of bounds. This function
|
|
131
|
+
* is particularly useful for inserting a new array into a sorted array of array of arrays
|
|
132
|
+
* that may overlap. The plan is used to determine how to splice the new array into the
|
|
133
|
+
* existing array. The following are important constraints:
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* 1. If the new bound is entirely contained within an existing bound, the new bound
|
|
137
|
+
* is not inserted and the plan is null.
|
|
138
|
+
*
|
|
139
|
+
* @param bounds - An ordered array of bounds, where each bound is valid (i.e., lower <= upper)
|
|
140
|
+
* and the lower bound of each bound is less than the upper bound of the next bound.
|
|
141
|
+
* @param value - The new bound to insert.
|
|
142
|
+
* @returns A plan for inserting the new bound into the array of bounds, or null if the
|
|
143
|
+
* new bound is entirely contained within an existing bound. See the {@link InsertionPlan}
|
|
144
|
+
* type for more details.
|
|
145
|
+
*/
|
|
146
|
+
export declare const buildInsertionPlan: <T extends number | bigint>(bounds: Array<Crude<T>>, value: Crude<T>) => InsertionPlan | null;
|
|
147
|
+
export declare const insert: <T extends number | bigint = number>(bounds: Array<Crude<T>>, value: Crude<T>) => Array<Bounds<T>>;
|
|
148
|
+
//# sourceMappingURL=bounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../../src/spatial/bounds/bounds.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounds.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/bounds/bounds.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/bounds/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC"}
|