@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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
|
|
3
|
-
import type * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
import type * as bounds from "@/spatial/bounds/bounds";
|
|
4
|
+
import type * as dimensions from "@/spatial/dimensions/dimensions";
|
|
5
|
+
import * as direction from "@/spatial/direction/direction";
|
|
6
|
+
import * as location from "@/spatial/location/location";
|
|
7
|
+
import * as xy from "@/spatial/xy/xy";
|
|
7
8
|
declare const cssBox: z.ZodObject<{
|
|
8
9
|
top: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
9
10
|
left: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -157,17 +158,19 @@ export interface Resize {
|
|
|
157
158
|
* Sets the dimension along the given direction to the given amount.
|
|
158
159
|
* @example resize(b, "x", 10) // Sets the width of the box to 10.
|
|
159
160
|
* @example resize(b, "y", 10) // Sets the height of the box to 10.
|
|
160
|
-
|
|
161
|
+
*/
|
|
161
162
|
(b: Crude, direction: direction.Direction, amount: number): Box;
|
|
162
163
|
}
|
|
163
164
|
export declare const resize: Resize;
|
|
164
165
|
/**
|
|
165
166
|
* Checks if a box contains a point or another box.
|
|
166
167
|
*
|
|
167
|
-
* @param
|
|
168
|
+
* @param container - The container box to check against.
|
|
169
|
+
* @param value - The point or box to check if it is contained in the container.
|
|
170
|
+
* @param inclusive - Whether the edges of the box are inclusive or exclusive.
|
|
168
171
|
* @returns true if the box inclusively contains the point or box and false otherwise.
|
|
169
172
|
*/
|
|
170
|
-
export declare const contains: (
|
|
173
|
+
export declare const contains: (container: Crude, value: Box | xy.XY, inclusive?: boolean) => boolean;
|
|
171
174
|
/**
|
|
172
175
|
* @returns true if the given box is semantically equal to this box and false otherwise.
|
|
173
176
|
*/
|
|
@@ -195,11 +198,21 @@ export declare const xyLoc: (b: Crude, l: location.XY) => xy.XY;
|
|
|
195
198
|
* top side, etc.
|
|
196
199
|
*/
|
|
197
200
|
export declare const loc: (b: Crude, loc: location.Location) => number;
|
|
198
|
-
|
|
199
|
-
export declare const
|
|
201
|
+
/** @returns true if the area of the box is 0 and false otherwise. */
|
|
202
|
+
export declare const areaIsZero: (b: Box) => boolean;
|
|
203
|
+
/** @returns the width of the box. */
|
|
200
204
|
export declare const width: (b: Crude) => number;
|
|
205
|
+
/** @returns the height of the box. */
|
|
201
206
|
export declare const height: (b: Crude) => number;
|
|
207
|
+
/**
|
|
208
|
+
* @returns the signed width of the box, which will be negative if the x value of the
|
|
209
|
+
* first coordinate is less than the x value of the second coordinate.
|
|
210
|
+
*/
|
|
202
211
|
export declare const signedWidth: (b: Crude) => number;
|
|
212
|
+
/**
|
|
213
|
+
* @returns the signed height of the box, which will be negative if the y value of the
|
|
214
|
+
* first coordinate is less than the y value of the second coordinate.
|
|
215
|
+
*/
|
|
203
216
|
export declare const signedHeight: (b: Crude) => number;
|
|
204
217
|
export declare const topLeft: (b: Crude) => xy.XY;
|
|
205
218
|
export declare const topRight: (b: Crude) => xy.XY;
|
|
@@ -213,19 +226,22 @@ export declare const center: (b: Crude) => xy.XY;
|
|
|
213
226
|
export declare const x: (b: Crude) => number;
|
|
214
227
|
export declare const y: (b: Crude) => number;
|
|
215
228
|
export declare const root: (b: Crude) => xy.XY;
|
|
229
|
+
/**
|
|
230
|
+
* @returns the bounds of the box along the x axis i.e. if the box root is top left,
|
|
231
|
+
* the lower bound is the x coordinate of the left side of the box and the upper bound
|
|
232
|
+
* is the x coordinate of the right side of the box.
|
|
233
|
+
* @param b - The box to get the bounds of.
|
|
234
|
+
*/
|
|
216
235
|
export declare const xBounds: (b: Crude) => bounds.Bounds;
|
|
217
|
-
export declare const yBounds: (b: Crude) => bounds.Bounds;
|
|
218
|
-
export declare const reRoot: (b: Box, corner: location.CornerXY) => Box;
|
|
219
236
|
/**
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* @param
|
|
224
|
-
*
|
|
225
|
-
* @returns the repsoitioned box and a boolean indicating if the box was repositioned
|
|
226
|
-
* or not.
|
|
237
|
+
* @returns the bounds of the box along the y axis i.e. if the box root is top left,
|
|
238
|
+
* the lower bound is the y coordinate of the top side of the box and the upper bound
|
|
239
|
+
* is the y coordinate of the bottom side of the box.
|
|
240
|
+
* @param b - The box to get the bounds of.
|
|
227
241
|
*/
|
|
228
|
-
export declare const
|
|
242
|
+
export declare const yBounds: (b: Crude) => bounds.Bounds;
|
|
243
|
+
export declare const reRoot: (b: Box, corner: location.CornerXY) => Box;
|
|
244
|
+
export declare const edgePoints: (b: Crude, loc: location.Location) => [xy.XY, xy.XY];
|
|
229
245
|
/**
|
|
230
246
|
* Reposition a box so that it is centered within a given bound.
|
|
231
247
|
*
|
|
@@ -234,6 +250,7 @@ export declare const positionSoVisible: (target_: Crude, bound_: Crude) => [Box,
|
|
|
234
250
|
* @returns the repsoitioned box
|
|
235
251
|
*/
|
|
236
252
|
export declare const positionInCenter: (target_: Crude, bound_: Crude) => Box;
|
|
253
|
+
/** */
|
|
237
254
|
export declare const isBox: (value: unknown) => value is {
|
|
238
255
|
one: {
|
|
239
256
|
x: number;
|
|
@@ -249,10 +266,42 @@ export declare const isBox: (value: unknown) => value is {
|
|
|
249
266
|
};
|
|
250
267
|
};
|
|
251
268
|
export declare const aspect: (b: Box) => number;
|
|
252
|
-
|
|
253
|
-
|
|
269
|
+
interface Translate {
|
|
270
|
+
/** @returns the box translated by the given coordinates. */
|
|
271
|
+
(b: Crude, t: xy.Crude): Box;
|
|
272
|
+
/** @returns the box translated in the given direction by the given amount. */
|
|
273
|
+
(b: Crude, direction: direction.Direction, amount: number): Box;
|
|
274
|
+
}
|
|
275
|
+
export declare const translate: Translate;
|
|
276
|
+
/** @returns a box representing the intersection of the two given boxes. */
|
|
277
|
+
export declare const intersection: (a: Box, b: Box) => Box;
|
|
278
|
+
/** @returns the area of the box. */
|
|
254
279
|
export declare const area: (b: Box) => number;
|
|
255
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Truncates the coordinates of the box to the given precision.
|
|
282
|
+
* @param b - The box to truncate.
|
|
283
|
+
* @param precision - The number of decimal places to truncate to.
|
|
284
|
+
* @returns the truncated box.
|
|
285
|
+
*/
|
|
286
|
+
export declare const truncate: (b: Crude, precision: number) => Box;
|
|
287
|
+
/**
|
|
288
|
+
* Constructs a box from a particular corner, and then reinterprets the box in order
|
|
289
|
+
* to define it from a different corner.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* const b = box.construct(0, 0, 10, 10, location.BOTTOM_LEFT, location.TOP_LEFT);
|
|
293
|
+
* // b is now a box rooted in the top left corner with it's first coordinate at
|
|
294
|
+
* // (0, 10) and it's second coordinate at (10, 0).
|
|
295
|
+
*
|
|
296
|
+
* @param x - The x coordinate of the first point.
|
|
297
|
+
* @param y - The y coordinate of the first point.
|
|
298
|
+
* @param width - The width of the box.
|
|
299
|
+
* @param height - The height of the box.
|
|
300
|
+
* @param currRoot - The current root of the box i.e. the corner that x and y represent.
|
|
301
|
+
* @param newRoot - The new root of the box i.e. the corner that the box should be
|
|
302
|
+
* reinterpreted from.
|
|
303
|
+
* @returns the box reinterpreted from the new root.
|
|
304
|
+
*/
|
|
256
305
|
export declare const constructWithAlternateRoot: (x: number, y: number, width: number, height: number, currRoot: location.XY, newRoot: location.CornerXY) => Box;
|
|
257
306
|
export {};
|
|
258
307
|
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../src/spatial/box/box.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAItC,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;EAKV,CAAC;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;EAKX,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAId,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AACzC,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE9C,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,GAAG,GAAG;IAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;CAAE,CAAC;AAE7E,4DAA4D;AAC5D,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAA0D,CAAC;A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C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/box/box.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/box/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Dimensions, dimensions } from '../base';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export { type Dimensions, dimensions };
|
|
4
5
|
export declare const signed: z.ZodObject<{
|
|
5
6
|
signedWidth: z.ZodNumber;
|
|
6
7
|
signedHeight: z.ZodNumber;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../../src/spatial/dimensions/dimensions.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,UAAU,EAAE,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAE9E,OAAO,EAAE,KAAK,UAAU,EAAC,UAAU,EAAE,CAAC;AAEtC,eAAO,MAAM,MAAM;;;;;;;;;EAAkE,CAAC;AACtF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAkD,CAAC;AACrE,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C,eAAO,MAAM,IAAI;;;CAA0B,CAAC;AAC5C,eAAO,MAAM,OAAO;;;CAA0B,CAAC;AAE/C,eAAO,MAAM,SAAS,UAAW,MAAM,GAAG,KAAK,WAAW,MAAM,KAAG,UAOlE,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,MAAM,OAAQ,KAAK,OAAO,KAAK,GAAG,IAAI,KAAG,OAKrD,CAAC;AAEF,eAAO,MAAM,IAAI,OAAQ,KAAK,KAAG,UAGhC,CAAC;AAEF,eAAO,MAAM,UAAU,OAAQ,KAAK,KAAG,MAGtC,CAAC;AAEF,eAAO,MAAM,MAAM,OAAQ,KAAK,KAAG,CAAC,MAAM,EAAE,MAAM,CAGjD,CAAC;AAEF,eAAO,MAAM,GAAG,UAAW,KAAK,EAAE,KAAG,UAGnC,CAAC;AAEH,eAAO,MAAM,GAAG,UAAW,KAAK,EAAE,KAAG,UAGnC,CAAC;AAEH,eAAO,MAAM,KAAK,OAAQ,KAAK,UAAU,MAAM,KAAG,UAGjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensions.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/dimensions/dimensions.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/dimensions/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { CrudeDirection, Dimension, Direction, direction, Location, SignedDimension } from '../base';
|
|
2
|
+
|
|
3
|
+
export { Direction, direction };
|
|
4
|
+
export declare const crude: import('zod').ZodUnion<[import('zod').ZodEnum<["x", "y"]>, import('zod').ZodEnum<["top", "right", "bottom", "left", "center"]>]>;
|
|
4
5
|
export type Crude = CrudeDirection;
|
|
5
6
|
export declare const construct: (c: Crude) => Direction;
|
|
6
7
|
export declare const swap: (direction: CrudeDirection) => Direction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../../src/spatial/direction/direction.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,SAAS,EAET,KAAK,QAAQ,EACb,KAAK,eAAe,EAGrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAEhC,eAAO,MAAM,KAAK,kIAAiB,CAAC;AAEpC,MAAM,MAAM,KAAK,GAAG,cAAc,CAAC;AAEnC,eAAO,MAAM,SAAS,MAAO,KAAK,KAAG,SAIpC,CAAC;AAEF,eAAO,MAAM,IAAI,cAAe,cAAc,KAAG,SACP,CAAC;AAE3C,eAAO,MAAM,SAAS,cAAe,cAAc,KAAG,SACH,CAAC;AAEpD,eAAO,MAAM,QAAQ,cAAe,cAAc,KAAG,QACN,CAAC;AAEhD,eAAO,MAAM,WAAW,MAAO,OAAO,mBAA+C,CAAC;AAEtF,eAAO,MAAM,eAAe,cAAe,cAAc,KAAG,eACG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"direction.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/direction/direction.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/direction/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC"}
|
|
@@ -3,8 +3,8 @@ export { box } from './box';
|
|
|
3
3
|
export * from './dimensions';
|
|
4
4
|
export * from './direction';
|
|
5
5
|
export * from './location';
|
|
6
|
-
export * from './xy';
|
|
7
|
-
export * from './scale';
|
|
8
6
|
export * from './position';
|
|
7
|
+
export * from './scale';
|
|
9
8
|
export * as spatial from './spatial';
|
|
9
|
+
export * from './xy';
|
|
10
10
|
//# sourceMappingURL=external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/spatial/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spatial/index.ts"],"names":[],"mappings":"AASA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/location/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { CENTER_LOCATIONS, CenterLocation, CrudeLocation, Direction, Location, location, OuterLocation, outerLocation, X_LOCATIONS, XLocation, Y_LOCATIONS, YLocation } from '../base';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export { CENTER_LOCATIONS, type Location, location, outerLocation as outer, X_LOCATIONS, Y_LOCATIONS, };
|
|
4
5
|
export declare const x: z.ZodEnum<["left", "right"]>;
|
|
5
6
|
export declare const y: z.ZodEnum<["top", "bottom"]>;
|
|
6
7
|
export type X = XLocation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../src/spatial/location/location.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,gBAAgB,EAChB,KAAK,cAAc,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AACzE,eAAO,MAAM,SAAS,EAAE,QAAkD,CAAC;AAC3E,eAAO,MAAM,WAAW,EAAE,QAAoD,CAAC;AAC/E,eAAO,MAAM,YAAY,EAAE,QAAqD,CAAC;AACjF,eAAO,MAAM,MAAM,EAAE,EAAgD,CAAC;AACtE,eAAO,MAAM,UAAU,EAAE,EAA6C,CAAC;AACvE,eAAO,MAAM,aAAa,EAAE,EAAgD,CAAC;AAC7E,eAAO,MAAM,YAAY,EAAE,EAA+C,CAAC;AAC3E,eAAO,MAAM,WAAW,EAAE,EAA8C,CAAC;AACzE,eAAO,MAAM,YAAY,EAAE,SAAS,EAAE,EAUpC,CAAC;AAEH,eAAO,MAAM,QAAQ,MAAO,EAAE,KAAK,EAAE,KAAG,OAAqC,CAAC;AAE9E,eAAO,MAAM,SAAS,MAAO,EAAE,KAAK,QAAQ,EAAE,CAAC,GAAG,QAAQ,KAAG,OAc5D,CAAC;AAEF,eAAO,MAAM,QAAQ,MAAO,EAAE,KAAG,CAAC,QAAQ,EAAE,QAAQ,CAAe,CAAC;AAEpE,eAAO,MAAM,GAAG,MAAO,KAAK,qCACK,CAAC;AAElC,eAAO,MAAM,GAAG,MAAO,KAAK,0BAAoD,CAAC;AAEjF,eAAO,MAAM,UAAU,MAAO,EAAE,KAAG,MAA6C,CAAC;AAEjF,eAAO,MAAM,WAAW,MAAO,KAAK,GAAG,EAAE,MAAM,KAAK,KAAG,EA4BtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/location/location.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/position/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type Alignment } from '../base';
|
|
2
|
-
import { box } from '../box';
|
|
3
1
|
import { location } from '../location';
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { box } from '../box';
|
|
3
|
+
import { Alignment } from '../base';
|
|
4
|
+
|
|
6
5
|
export interface DialogProps {
|
|
7
6
|
container: box.Crude;
|
|
8
7
|
target: box.Crude;
|
|
@@ -12,6 +11,7 @@ export interface DialogProps {
|
|
|
12
11
|
prefer?: Array<location.Outer | Partial<location.XY> | location.XY>;
|
|
13
12
|
disable?: Array<location.Location | Partial<location.XY>>;
|
|
14
13
|
}
|
|
14
|
+
export declare const parseLocationOptions: (initial?: location.Outer | Partial<location.XY> | location.XY) => Partial<location.XY>;
|
|
15
15
|
export interface DialogReturn {
|
|
16
16
|
location: location.XY;
|
|
17
17
|
adjustedDialog: box.Box;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../src/spatial/position/position.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC;IACrB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IAC9D,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACpE,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3D;AAED,eAAO,MAAM,oBAAoB,aACrB,SAAS,KAAK,GAAG,QAAQ,SAAS,EAAE,CAAC,GAAG,SAAS,EAAE,KAC5D,QAAQ,SAAS,EAAE,CAYrB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;IACtB,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,mHAQhB,WAAW,KAAG,YAiDhB,CAAC;AA2CF,eAAO,MAAM,OAAO,WAAY,SAAS,EAAE,aAAa,SAAS,KAAG,SAAS,EAW5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/position/position.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/scale/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import { Box } from '../box/box';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
import * as bounds from "@/spatial/bounds/bounds";
|
|
5
|
+
import type * as dims from "@/spatial/dimensions/dimensions";
|
|
6
|
+
import * as location from "@/spatial/location/location";
|
|
7
|
+
import * as xy from "@/spatial/xy/xy";
|
|
7
8
|
export declare const crudeXYTransform: z.ZodObject<{
|
|
8
9
|
offset: z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
9
10
|
x: z.ZodNumber;
|
|
@@ -80,7 +81,7 @@ export declare const crudeXYTransform: z.ZodObject<{
|
|
|
80
81
|
clientY: number;
|
|
81
82
|
}>]>;
|
|
82
83
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
offset:
|
|
84
|
+
offset: number | {
|
|
84
85
|
width: number;
|
|
85
86
|
height: number;
|
|
86
87
|
} | {
|
|
@@ -92,7 +93,8 @@ export declare const crudeXYTransform: z.ZodObject<{
|
|
|
92
93
|
} | {
|
|
93
94
|
clientX: number;
|
|
94
95
|
clientY: number;
|
|
95
|
-
}
|
|
96
|
+
} | [number, number];
|
|
97
|
+
scale: number | {
|
|
96
98
|
width: number;
|
|
97
99
|
height: number;
|
|
98
100
|
} | {
|
|
@@ -104,59 +106,9 @@ export declare const crudeXYTransform: z.ZodObject<{
|
|
|
104
106
|
} | {
|
|
105
107
|
clientX: number;
|
|
106
108
|
clientY: number;
|
|
107
|
-
} |
|
|
108
|
-
scale: (number | [number, number] | {
|
|
109
|
-
width: number;
|
|
110
|
-
height: number;
|
|
111
|
-
} | {
|
|
112
|
-
signedWidth: number;
|
|
113
|
-
signedHeight: number;
|
|
114
|
-
} | {
|
|
115
|
-
x: number;
|
|
116
|
-
y: number;
|
|
117
|
-
} | {
|
|
118
|
-
clientX: number;
|
|
119
|
-
clientY: number;
|
|
120
|
-
}) & (number | [number, number] | {
|
|
121
|
-
width: number;
|
|
122
|
-
height: number;
|
|
123
|
-
} | {
|
|
124
|
-
signedWidth: number;
|
|
125
|
-
signedHeight: number;
|
|
126
|
-
} | {
|
|
127
|
-
x: number;
|
|
128
|
-
y: number;
|
|
129
|
-
} | {
|
|
130
|
-
clientX: number;
|
|
131
|
-
clientY: number;
|
|
132
|
-
} | undefined);
|
|
109
|
+
} | [number, number];
|
|
133
110
|
}, {
|
|
134
|
-
offset:
|
|
135
|
-
width: number;
|
|
136
|
-
height: number;
|
|
137
|
-
} | {
|
|
138
|
-
signedWidth: number;
|
|
139
|
-
signedHeight: number;
|
|
140
|
-
} | {
|
|
141
|
-
x: number;
|
|
142
|
-
y: number;
|
|
143
|
-
} | {
|
|
144
|
-
clientX: number;
|
|
145
|
-
clientY: number;
|
|
146
|
-
}) & (number | [number, number] | {
|
|
147
|
-
width: number;
|
|
148
|
-
height: number;
|
|
149
|
-
} | {
|
|
150
|
-
signedWidth: number;
|
|
151
|
-
signedHeight: number;
|
|
152
|
-
} | {
|
|
153
|
-
x: number;
|
|
154
|
-
y: number;
|
|
155
|
-
} | {
|
|
156
|
-
clientX: number;
|
|
157
|
-
clientY: number;
|
|
158
|
-
} | undefined);
|
|
159
|
-
scale: (number | [number, number] | {
|
|
111
|
+
offset: number | {
|
|
160
112
|
width: number;
|
|
161
113
|
height: number;
|
|
162
114
|
} | {
|
|
@@ -168,7 +120,8 @@ export declare const crudeXYTransform: z.ZodObject<{
|
|
|
168
120
|
} | {
|
|
169
121
|
clientX: number;
|
|
170
122
|
clientY: number;
|
|
171
|
-
}
|
|
123
|
+
} | [number, number];
|
|
124
|
+
scale: number | {
|
|
172
125
|
width: number;
|
|
173
126
|
height: number;
|
|
174
127
|
} | {
|
|
@@ -180,7 +133,7 @@ export declare const crudeXYTransform: z.ZodObject<{
|
|
|
180
133
|
} | {
|
|
181
134
|
clientX: number;
|
|
182
135
|
clientY: number;
|
|
183
|
-
} |
|
|
136
|
+
} | [number, number];
|
|
184
137
|
}>;
|
|
185
138
|
export type XYTransformT = z.infer<typeof crudeXYTransform>;
|
|
186
139
|
export type BoundVariant = "domain" | "range";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/spatial/scale/scale.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,KAAK,GAAG,EAAS,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,KAAK,IAAI,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,QAAQ,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C,GAAG,EAAE,GAAG,GAAG,EAAE;IAI1B,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE;IAI7B,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,EAAE;IAI5C,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE;IAI5B,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE;IAQhD,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE;IAMzB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE;IAMzB,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE;IAOtB,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,EAAE;IAkBnC,OAAO,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE;IAOnB,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE;IAOjB,IAAI,IAAI,EAAE;IAQV,OAAO,IAAI,EAAE;IAOb,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;IAIrB,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG;IAUhB,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAY;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/scale/scale.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../../../src/spatial/spatial.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,SAAS,EACd,SAAS,EACT,UAAU,EACV,KAAK,KAAK,EACV,KAAK,EACL,MAAM,GACP,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/spatial/xy/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ClientXY, clientXY, Direction, NumberCouple, XY, xy } from '../base';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export { type ClientXY as Client, clientXY, type XY, xy };
|
|
4
5
|
/** A crude representation of a {@link XY} coordinate as a zod schema. */
|
|
5
6
|
export declare const crudeZ: z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
6
7
|
x: z.ZodNumber;
|
|
@@ -51,25 +52,13 @@ export type Crude = z.infer<typeof crudeZ>;
|
|
|
51
52
|
*/
|
|
52
53
|
export declare const construct: (x: Crude | Direction, y?: number) => XY;
|
|
53
54
|
/** An x and y coordinate of zero */
|
|
54
|
-
export declare const ZERO:
|
|
55
|
-
x: number;
|
|
56
|
-
y: number;
|
|
57
|
-
};
|
|
55
|
+
export declare const ZERO: XY;
|
|
58
56
|
/** An x and y coordinate of one */
|
|
59
|
-
export declare const ONE:
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
};
|
|
57
|
+
export declare const ONE: XY;
|
|
63
58
|
/** An x and y coordinate of infinity */
|
|
64
|
-
export declare const INFINITY:
|
|
65
|
-
x: number;
|
|
66
|
-
y: number;
|
|
67
|
-
};
|
|
59
|
+
export declare const INFINITY: XY;
|
|
68
60
|
/** An x and y coordinate of NaN */
|
|
69
|
-
export declare const NAN:
|
|
70
|
-
x: number;
|
|
71
|
-
y: number;
|
|
72
|
-
};
|
|
61
|
+
export declare const NAN: XY;
|
|
73
62
|
/** @returns true if the two XY coordinates are semantically equal. */
|
|
74
63
|
export declare const equals: (a: Crude, b: Crude, threshold?: number) => boolean;
|
|
75
64
|
/** Is zero is true if the XY coordinate has a semantic x and y value of zero. */
|
|
@@ -78,7 +67,7 @@ export declare const isZero: (c: Crude) => boolean;
|
|
|
78
67
|
* @returns the given coordinate scaled by the given factors. If only one factor is given,
|
|
79
68
|
* the y factor is assumed to be the same as the x factor.
|
|
80
69
|
*/
|
|
81
|
-
export declare const scale: (c: Crude, x: number, y?: number) => XY;
|
|
70
|
+
export declare const scale: (c: Crude, x: number | Crude, y?: number) => XY;
|
|
82
71
|
/** @returns the given coordinate translated in the X direction by the given amount. */
|
|
83
72
|
export declare const translateX: (c: Crude, x: number) => XY;
|
|
84
73
|
/** @returns the given coordinate translated in the Y direction by the given amount. */
|
|
@@ -97,10 +86,6 @@ export declare const translate: Translate;
|
|
|
97
86
|
export declare const set: (c: Crude, direction: Direction, value: number) => XY;
|
|
98
87
|
/** @returns the magnitude of the distance between the two given coordinates. */
|
|
99
88
|
export declare const distance: (ca: Crude, cb: Crude) => number;
|
|
100
|
-
/** @returns the magnitude of the x distance between the two given coordinates. */
|
|
101
|
-
export declare const xDistance: (ca: Crude, cb: Crude) => number;
|
|
102
|
-
/** @returns the magnitude of the y distance between the two given coordinates. */
|
|
103
|
-
export declare const yDistance: (ca: Crude, cb: Crude) => number;
|
|
104
89
|
/**
|
|
105
90
|
* @returns the translation that would need to be applied to move the first coordinate
|
|
106
91
|
* to the second coordinate.
|
|
@@ -111,11 +96,17 @@ export declare const isNan: (a: Crude) => boolean;
|
|
|
111
96
|
/** @returns true if both the x and y coordinates of the given coordinate are finite. */
|
|
112
97
|
export declare const isFinite: (a: Crude) => boolean;
|
|
113
98
|
/** @returns the coordinate represented as a couple of the form [x, y]. */
|
|
114
|
-
export declare const couple: (a: Crude) =>
|
|
99
|
+
export declare const couple: (a: Crude) => NumberCouple;
|
|
115
100
|
/** @returns the coordinate represented as css properties in the form { left, top }. */
|
|
116
101
|
export declare const css: (a: Crude) => {
|
|
117
102
|
left: number;
|
|
118
103
|
top: number;
|
|
119
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Truncate the given coordinates to the given precision.
|
|
107
|
+
* @param a - The coordinates to truncate.
|
|
108
|
+
* @param precision - The number of decimal places to truncate to.
|
|
109
|
+
* @returns The truncated coordinates.
|
|
110
|
+
*/
|
|
120
111
|
export declare const truncate: (a: Crude, precision?: number) => XY;
|
|
121
112
|
//# sourceMappingURL=xy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xy.d.ts","sourceRoot":"","sources":["../../../../src/spatial/xy/xy.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,QAAQ,EACb,QAAQ,EAER,KAAK,SAAS,EACd,KAAK,YAAY,EAGjB,KAAK,EAAE,EACP,EAAE,EACH,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,QAAQ,IAAI,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAC,EAAE,EAAE,CAAC;AAEzD,yEAAyE;AACzE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOjB,CAAC;AAEH,yDAAyD;AACzD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,MAAO,KAAK,GAAG,SAAS,MAAM,MAAM,KAAG,EAa5D,CAAC;AAEF,oCAAoC;AACpC,eAAO,MAAM,IAAI,EAAE,EAAkC,CAAC;AAEtD,mCAAmC;AACnC,eAAO,MAAM,GAAG,EAAE,EAAkC,CAAC;AAErD,wCAAwC;AACxC,eAAO,MAAM,QAAQ,EAAE,EAAgD,CAAC;AAExE,mCAAmC;AACnC,eAAO,MAAM,GAAG,EAAE,EAAsC,CAAC;AAEzD,sEAAsE;AACtE,eAAO,MAAM,MAAM,MAAO,KAAK,KAAK,KAA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G,EAAE,MAAM,CAAA;CAGzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,MAAO,KAAK,cAAa,MAAM,KAAO,EAG1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xy.spec.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"xy.spec.d.ts","sourceRoot":"","sources":["../../../../src/spatial/xy/xy.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/telem/generate.ts"],"names":[],"mappings":"AASA,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE1E,eAAO,MAAM,YAAY,WAAY,MAAM,YAAY,SAAS,KAAG,UAOlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gl.d.ts","sourceRoot":"","sources":["../../../src/telem/gl.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,GAC1E,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,CAAC;IAC1D,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/E,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telem/index.ts"],"names":[],"mappings":"AASA,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CrudeDataType, DataType, NumericTelemValue, Rate, Size, TelemValue, TimeRange, TimeStamp, TypedArray } from './telem';
|
|
2
|
+
import { GLBufferController, GLBufferUsage } from './gl';
|
|
2
3
|
import { bounds } from '../spatial';
|
|
3
|
-
import {
|
|
4
|
-
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
|
|
5
6
|
export interface SeriesDigest {
|
|
6
7
|
key: string;
|
|
7
8
|
dataType: string;
|
|
8
9
|
sampleOffset: NumericTelemValue;
|
|
9
|
-
alignment: bounds.Bounds
|
|
10
|
+
alignment: bounds.Bounds<bigint>;
|
|
10
11
|
timeRange?: string;
|
|
11
12
|
length: number;
|
|
12
13
|
capacity: number;
|
|
@@ -16,7 +17,7 @@ interface BaseSeriesProps {
|
|
|
16
17
|
timeRange?: TimeRange;
|
|
17
18
|
sampleOffset?: NumericTelemValue;
|
|
18
19
|
glBufferUsage?: GLBufferUsage;
|
|
19
|
-
alignment?:
|
|
20
|
+
alignment?: bigint;
|
|
20
21
|
key?: string;
|
|
21
22
|
}
|
|
22
23
|
export type CrudeSeries = Series | ArrayBuffer | TypedArray | string[] | number[] | boolean[] | unknown[] | TimeStamp[] | Date[] | TelemValue;
|
|
@@ -40,6 +41,7 @@ export interface SeriesMemInfo {
|
|
|
40
41
|
*/
|
|
41
42
|
export declare class Series<T extends TelemValue = TelemValue> {
|
|
42
43
|
key: string;
|
|
44
|
+
isSynnaxSeries: boolean;
|
|
43
45
|
/** The data type of the array */
|
|
44
46
|
readonly dataType: DataType;
|
|
45
47
|
/**
|
|
@@ -55,7 +57,7 @@ export declare class Series<T extends TelemValue = TelemValue> {
|
|
|
55
57
|
/** The underlying data. */
|
|
56
58
|
private readonly _data;
|
|
57
59
|
readonly _timeRange?: TimeRange;
|
|
58
|
-
readonly alignment:
|
|
60
|
+
readonly alignment: bigint;
|
|
59
61
|
/** A cached minimum value. */
|
|
60
62
|
private _cachedMin?;
|
|
61
63
|
/** A cached maximum value. */
|
|
@@ -137,12 +139,12 @@ export declare class Series<T extends TelemValue = TelemValue> {
|
|
|
137
139
|
as(jsType: "bigint"): Series<bigint>;
|
|
138
140
|
get digest(): SeriesDigest;
|
|
139
141
|
get memInfo(): SeriesMemInfo;
|
|
140
|
-
get alignmentBounds(): bounds.Bounds
|
|
142
|
+
get alignmentBounds(): bounds.Bounds<bigint>;
|
|
141
143
|
private maybeGarbageCollectGLBuffer;
|
|
142
144
|
get glBuffer(): WebGLBuffer;
|
|
143
145
|
[Symbol.iterator](): Iterator<T>;
|
|
144
146
|
slice(start: number, end?: number): Series;
|
|
145
|
-
reAlign(alignment:
|
|
147
|
+
reAlign(alignment: bigint): Series;
|
|
146
148
|
}
|
|
147
149
|
export declare const addSamples: (a: NumericTelemValue, b: NumericTelemValue) => NumericTelemValue;
|
|
148
150
|
export declare class MultiSeries<T extends TelemValue = TelemValue> implements Iterable<T> {
|