From fd13e997a654031378ded4c2e1e95133a85d2f67 Mon Sep 17 00:00:00 2001 From: Gabriel Csollei Date: Sat, 10 Apr 2021 11:24:24 +0100 Subject: [PATCH] Fix CommonJS issues --- dist/GUtils.d.ts | 22 - dist/GUtils.d.ts.map | 1 - dist/GUtils.js | 34 - dist/GUtils.js.map | 1 - dist/MockData.d.ts | 29 - dist/MockData.d.ts.map | 1 - dist/MockData.js | 178 - dist/MockData.js.map | 1 - dist/_esm/GUtils.js | 22 - dist/_esm/GUtils.js.map | 1 - dist/_esm/MockData.js | 178 - dist/_esm/MockData.js.map | 1 - dist/_esm/common.js | 20 - dist/_esm/common.js.map | 1 - dist/_esm/components/bidirectional-graph.js | 88 - .../components/bidirectional-graph.js.map | 1 - dist/_esm/components/file-manager.js | 69 - dist/_esm/components/file-manager.js.map | 1 - dist/_esm/components/g-map.js | 14 - dist/_esm/components/g-map.js.map | 1 - dist/_esm/components/index.js | 12 - dist/_esm/components/index.js.map | 1 - dist/_esm/components/key-value-counter.js | 50 - dist/_esm/components/key-value-counter.js.map | 1 - .../logger/g-logger-callback-holder.js | 44 - .../logger/g-logger-callback-holder.js.map | 1 - .../logger/g-logger-default-formatter.js | 152 - .../logger/g-logger-default-formatter.js.map | 1 - .../components/logger/g-logger-instance.js | 45 - .../logger/g-logger-instance.js.map | 1 - .../components/logger/g-logger-priority.js | 9 - .../logger/g-logger-priority.js.map | 1 - dist/_esm/components/logger/g-logger.js | 57 - dist/_esm/components/logger/g-logger.js.map | 1 - dist/_esm/components/number-counter.js | 30 - dist/_esm/components/number-counter.js.map | 1 - dist/_esm/components/paginator.js | 75 - dist/_esm/components/paginator.js.map | 1 - dist/_esm/config/gtools-config.interface.js | 2 - .../config/gtools-config.interface.js.map | 1 - dist/_esm/config/gtools-config.js | 31 - dist/_esm/config/gtools-config.js.map | 1 - dist/_esm/constants.js | 2 - dist/_esm/constants.js.map | 1 - dist/_esm/decorators/deprecated.decorator.js | 10 - .../decorators/deprecated.decorator.js.map | 1 - dist/_esm/decorators/final-class.decorator.js | 11 - .../decorators/final-class.decorator.js.map | 1 - dist/_esm/decorators/index.js | 6 - dist/_esm/decorators/index.js.map | 1 - dist/_esm/decorators/mapper.decorator.js | 28 - dist/_esm/decorators/mapper.decorator.js.map | 1 - dist/_esm/decorators/singleton.decorator.js | 14 - .../decorators/singleton.decorator.js.map | 1 - dist/_esm/decorators/watch.decorator.js | 21 - dist/_esm/decorators/watch.decorator.js.map | 1 - dist/_esm/dom/canvas-camera.js | 90 - dist/_esm/dom/canvas-camera.js.map | 1 - dist/_esm/dom/canvas-drawer-advanced.js | 57 - dist/_esm/dom/canvas-drawer-advanced.js.map | 1 - dist/_esm/dom/canvas-drawer.js | 175 - dist/_esm/dom/canvas-drawer.js.map | 1 - dist/_esm/dom/canvas-manager.js | 111 - dist/_esm/dom/canvas-manager.js.map | 1 - dist/_esm/dom/canvas-misc-utilts.js | 18 - dist/_esm/dom/canvas-misc-utilts.js.map | 1 - dist/_esm/dom/canvas-utils.js | 157 - dist/_esm/dom/canvas-utils.js.map | 1 - dist/_esm/dom/dom-get.js | 22 - dist/_esm/dom/dom-get.js.map | 1 - dist/_esm/dom/drawer.js | 2 - dist/_esm/dom/drawer.js.map | 1 - dist/_esm/dom/element-builder.js | 86 - dist/_esm/dom/element-builder.js.map | 1 - dist/_esm/dom/types/canvas-shadow-config.js | 2 - .../dom/types/canvas-shadow-config.js.map | 1 - dist/_esm/enums/button.enum.js | 9 - dist/_esm/enums/button.enum.js.map | 1 - dist/_esm/enums/days.enum.js | 11 - dist/_esm/enums/days.enum.js.map | 1 - dist/_esm/enums/encodings.enum.js | 9 - dist/_esm/enums/encodings.enum.js.map | 1 - dist/_esm/enums/file-types.enum.js | 15 - dist/_esm/enums/file-types.enum.js.map | 1 - dist/_esm/enums/http-status-codes.enum.js | 46 - dist/_esm/enums/http-status-codes.enum.js.map | 1 - dist/_esm/enums/index.js | 7 - dist/_esm/enums/index.js.map | 1 - dist/_esm/enums/keys.enum.js | 61 - dist/_esm/enums/keys.enum.js.map | 1 - dist/_esm/errors/index.js | 7 - dist/_esm/errors/index.js.map | 1 - dist/_esm/errors/missing-parameter.error.js | 6 - .../errors/missing-parameter.error.js.map | 1 - .../errors/no-database-connection.error.js | 6 - .../no-database-connection.error.js.map | 1 - dist/_esm/errors/not-browser.exception.js | 10 - dist/_esm/errors/not-browser.exception.js.map | 1 - dist/_esm/errors/null-pointer.exception.js | 7 - .../_esm/errors/null-pointer.exception.js.map | 1 - dist/_esm/errors/wrong-parameter.exception.js | 7 - .../errors/wrong-parameter.exception.js.map | 1 - dist/_esm/errors/wrong-type.exception.js | 7 - dist/_esm/errors/wrong-type.exception.js.map | 1 - dist/_esm/index.js | 2 - dist/_esm/index.js.map | 1 - dist/_esm/math/index.js | 11 - dist/_esm/math/index.js.map | 1 - dist/_esm/math/mat4.js | 22 - dist/_esm/math/mat4.js.map | 1 - dist/_esm/math/simple-vector-xz.js | 2 - dist/_esm/math/simple-vector-xz.js.map | 1 - dist/_esm/math/simple-vector2.js | 2 - dist/_esm/math/simple-vector2.js.map | 1 - dist/_esm/math/simple-vector3.js | 2 - dist/_esm/math/simple-vector3.js.map | 1 - dist/_esm/math/simple-vector4.js | 2 - dist/_esm/math/simple-vector4.js.map | 1 - dist/_esm/math/vector.js | 2 - dist/_esm/math/vector.js.map | 1 - dist/_esm/math/vector2.js | 193 - dist/_esm/math/vector2.js.map | 1 - dist/_esm/math/vector2f.js | 55 - dist/_esm/math/vector2f.js.map | 1 - dist/_esm/math/vector3.js | 193 - dist/_esm/math/vector3.js.map | 1 - dist/_esm/math/vector4.js | 116 - dist/_esm/math/vector4.js.map | 1 - dist/_esm/misc/ajax.js | 21 - dist/_esm/misc/ajax.js.map | 1 - dist/_esm/misc/file-size-formatter.js | 14 - dist/_esm/misc/file-size-formatter.js.map | 1 - dist/_esm/misc/index.js | 6 - dist/_esm/misc/index.js.map | 1 - dist/_esm/misc/runtime-validators.js | 13 - dist/_esm/misc/runtime-validators.js.map | 1 - dist/_esm/misc/simple-loop.js | 16 - dist/_esm/misc/simple-loop.js.map | 1 - dist/_esm/misc/slovak-stemmer.js | 178 - dist/_esm/misc/slovak-stemmer.js.map | 1 - dist/_esm/models/color.model.js | 53 - dist/_esm/models/color.model.js.map | 1 - .../models/countries/country.interface.js | 2 - .../models/countries/country.interface.js.map | 1 - dist/_esm/models/countries/country.model.js | 15 - .../models/countries/country.model.js.map | 1 - .../models/data-structures/binary-queue.js | 87 - .../data-structures/binary-queue.js.map | 1 - .../models/data-structures/binary-tree.js | 156 - .../models/data-structures/binary-tree.js.map | 1 - .../models/data-structures/g43-collection.js | 2 - .../data-structures/g43-collection.js.map | 1 - .../grid-accessor/grid-filters.js | 2 - .../grid-accessor/grid-filters.js.map | 1 - .../grid-accessor/grid2-accessor.js | 38 - .../grid-accessor/grid2-accessor.js.map | 1 - .../grid-accessor/grid2-block-accessor.js | 25 - .../grid-accessor/grid2-block-accessor.js.map | 1 - .../holders-2d/grid2-array-holder.js | 277 -- .../holders-2d/grid2-array-holder.js.map | 1 - .../holders-2d/grid2-hash-holder.js | 33 - .../holders-2d/grid2-hash-holder.js.map | 1 - .../grid-accessor/holders-2d/grid2-holder.js | 2 - .../holders-2d/grid2-holder.js.map | 1 - .../holders-2d/grid2-map-holder.js | 53 - .../holders-2d/grid2-map-holder.js.map | 1 - .../holders-2d/grid2-object-holder.js | 43 - .../holders-2d/grid2-object-holder.js.map | 1 - .../holders-2d/grid2-object-map-holder.js | 41 - .../holders-2d/grid2-object-map-holder.js.map | 1 - .../holders-2d/grid2-string-holder.js | 31 - .../holders-2d/grid2-string-holder.js.map | 1 - .../grid-accessor/holders-2d/grid2.perf.js | 68 - .../holders-2d/grid2.perf.js.map | 1 - .../holders-3d/grid3-array-holder.js | 45 - .../holders-3d/grid3-array-holder.js.map | 1 - .../holders-3d/grid3-hash-holder.js | 33 - .../holders-3d/grid3-hash-holder.js.map | 1 - .../grid-accessor/holders-3d/grid3-holder.js | 2 - .../holders-3d/grid3-holder.js.map | 1 - .../holders-3d/grid3-map-holder.js | 106 - .../holders-3d/grid3-map-holder.js.map | 1 - .../holders-3d/grid3-object-holder.js | 26 - .../holders-3d/grid3-object-holder.js.map | 1 - .../grid-accessor/holders-3d/grid3.perf.js | 71 - .../holders-3d/grid3.perf.js.map | 1 - .../data-structures/grid-accessor/index.js | 14 - .../grid-accessor/index.js.map | 1 - .../list/abstract-linked-list.js | 51 - .../list/abstract-linked-list.js.map | 1 - .../list/bi-directional-linked-list.js | 73 - .../list/bi-directional-linked-list.js.map | 1 - .../_esm/models/data-structures/list/index.js | 7 - .../models/data-structures/list/index.js.map | 1 - .../data-structures/list/linked-list-entry.js | 14 - .../list/linked-list-entry.js.map | 1 - dist/_esm/models/data-structures/list/list.js | 2 - .../models/data-structures/list/list.js.map | 1 - .../list/one-directional-linked-list.js | 40 - .../list/one-directional-linked-list.js.map | 1 - .../data-structures/list/sorted-array-list.js | 52 - .../list/sorted-array-list.js.map | 1 - .../models/data-structures/list/test-list.js | 44 - .../data-structures/list/test-list.js.map | 1 - .../models/data-structures/priority-queue.js | 66 - .../data-structures/priority-queue.js.map | 1 - .../data-structures/quad-tree/quad-tree.js | 162 - .../quad-tree/quad-tree.js.map | 1 - dist/_esm/models/gender.model.js | 24 - dist/_esm/models/gender.model.js.map | 1 - dist/_esm/models/index.js | 14 - dist/_esm/models/index.js.map | 1 - dist/_esm/models/path-2d.js | 21 - dist/_esm/models/path-2d.js.map | 1 - dist/_esm/models/path/a-star/a-star.js | 2 - dist/_esm/models/path/a-star/a-star.js.map | 1 - .../models/path/a-star/a-star_download.js | 82 - .../models/path/a-star/a-star_download.js.map | 1 - .../_esm/models/path/a-star/graph_download.js | 87 - .../models/path/a-star/graph_download.js.map | 1 - .../models/path/a-star/grid-node_download.js | 34 - .../path/a-star/grid-node_download.js.map | 1 - dist/_esm/models/path/djikstra/djikstra.js | 77 - .../_esm/models/path/djikstra/djikstra.js.map | 1 - dist/_esm/models/path/nearest-item.js | 63 - dist/_esm/models/path/nearest-item.js.map | 1 - dist/_esm/models/range.js | 60 - dist/_esm/models/range.js.map | 1 - .../_esm/models/selection/selection-holder.js | 40 - .../models/selection/selection-holder.js.map | 1 - dist/_esm/models/selection/selection.js | 112 - dist/_esm/models/selection/selection.js.map | 1 - dist/_esm/models/sorting/bucket-sort.js | 18 - dist/_esm/models/sorting/bucket-sort.js.map | 1 - dist/_esm/models/sorting/counting-sort.js | 14 - dist/_esm/models/sorting/counting-sort.js.map | 1 - dist/_esm/models/sorting/heap-sort.js | 47 - dist/_esm/models/sorting/heap-sort.js.map | 1 - dist/_esm/models/sorting/index.js | 8 - dist/_esm/models/sorting/index.js.map | 1 - dist/_esm/models/sorting/insertion-sort.js | 23 - .../_esm/models/sorting/insertion-sort.js.map | 1 - dist/_esm/models/sorting/merge-sort.js | 42 - dist/_esm/models/sorting/merge-sort.js.map | 1 - dist/_esm/models/sorting/quick-sort.js | 42 - dist/_esm/models/sorting/quick-sort.js.map | 1 - dist/_esm/models/sorting/radix-sort.js | 59 - dist/_esm/models/sorting/radix-sort.js.map | 1 - dist/_esm/models/transform-2d.js | 11 - dist/_esm/models/transform-2d.js.map | 1 - dist/_esm/node.js | 11 - dist/_esm/node.js.map | 1 - dist/_esm/physics/bounders-2d.js | 50 - dist/_esm/physics/bounders-2d.js.map | 1 - dist/_esm/physics/bounding-boxes/AABB3.js | 169 - dist/_esm/physics/bounding-boxes/AABB3.js.map | 1 - dist/_esm/physics/closest-2d.js | 22 - dist/_esm/physics/closest-2d.js.map | 1 - dist/_esm/physics/closest-3d.js | 27 - dist/_esm/physics/closest-3d.js.map | 1 - dist/_esm/physics/collisions-2d.js | 127 - dist/_esm/physics/collisions-2d.js.map | 1 - dist/_esm/physics/collisions-3d.js | 201 - dist/_esm/physics/collisions-3d.js.map | 1 - dist/_esm/physics/distances-2d.js | 53 - dist/_esm/physics/distances-2d.js.map | 1 - dist/_esm/physics/distances-3d.js | 52 - dist/_esm/physics/distances-3d.js.map | 1 - dist/_esm/physics/index.js | 11 - dist/_esm/physics/index.js.map | 1 - dist/_esm/physics/intersects-2d.js | 17 - dist/_esm/physics/intersects-2d.js.map | 1 - dist/_esm/physics/intersects-3d.js | 32 - dist/_esm/physics/intersects-3d.js.map | 1 - dist/_esm/physics/objects/2d/capsule.js | 38 - dist/_esm/physics/objects/2d/capsule.js.map | 1 - dist/_esm/physics/objects/2d/line.js | 35 - dist/_esm/physics/objects/2d/line.js.map | 1 - dist/_esm/physics/objects/2d/object2-d.js | 2 - dist/_esm/physics/objects/2d/object2-d.js.map | 1 - dist/_esm/physics/objects/2d/ray-2d.js | 101 - dist/_esm/physics/objects/2d/ray-2d.js.map | 1 - dist/_esm/physics/objects/2d/rect.js | 78 - dist/_esm/physics/objects/2d/rect.js.map | 1 - dist/_esm/physics/objects/2d/sphere.js | 83 - dist/_esm/physics/objects/2d/sphere.js.map | 1 - dist/_esm/physics/objects/2d/triangle.js | 27 - dist/_esm/physics/objects/2d/triangle.js.map | 1 - dist/_esm/physics/objects/index.js | 4 - dist/_esm/physics/objects/index.js.map | 1 - .../_esm/physics/objects/object-convertors.js | 25 - .../physics/objects/object-convertors.js.map | 1 - dist/_esm/tests/abstract-database.fixture.js | 9 - .../tests/abstract-database.fixture.js.map | 1 - dist/_esm/tests/abstract.fixture.js | 7 - dist/_esm/tests/abstract.fixture.js.map | 1 - dist/_esm/tests/abstract.mapper.js | 3 - dist/_esm/tests/abstract.mapper.js.map | 1 - dist/_esm/tests/paginate.model.js | 14 - dist/_esm/tests/paginate.model.js.map | 1 - dist/_esm/tsconfig.esm.tsbuildinfo | 3780 ---------------- dist/_esm/tsconfig.types.tsbuildinfo | 3784 ----------------- .../types/helpers/min-max-2d.interface.js | 2 - .../types/helpers/min-max-2d.interface.js.map | 1 - .../types/helpers/min-max-3d.interface.js | 2 - .../types/helpers/min-max-3d.interface.js.map | 1 - dist/_esm/types/helpers/pos-size-2d.js | 2 - dist/_esm/types/helpers/pos-size-2d.js.map | 1 - dist/_esm/types/helpers/pos-size-3d.js | 2 - dist/_esm/types/helpers/pos-size-3d.js.map | 1 - dist/_esm/types/helpers/xywh.js | 2 - dist/_esm/types/helpers/xywh.js.map | 1 - dist/_esm/types/helpers/xyzwhd.js | 2 - dist/_esm/types/helpers/xyzwhd.js.map | 1 - dist/_esm/types/horizontal-align.type.js | 2 - dist/_esm/types/horizontal-align.type.js.map | 1 - dist/_esm/types/index.js | 23 - dist/_esm/types/index.js.map | 1 - dist/_esm/types/key-value.interface.js | 2 - dist/_esm/types/key-value.interface.js.map | 1 - .../_esm/types/nested-string-map.interface.js | 2 - .../types/nested-string-map.interface.js.map | 1 - dist/_esm/types/object-entry.interface.js | 2 - dist/_esm/types/object-entry.interface.js.map | 1 - dist/_esm/types/optional.type.js | 2 - dist/_esm/types/optional.type.js.map | 1 - dist/_esm/types/prop.type.js | 2 - dist/_esm/types/prop.type.js.map | 1 - dist/_esm/types/property-decorator.type.js | 2 - .../_esm/types/property-decorator.type.js.map | 1 - dist/_esm/types/ray2D.js | 2 - dist/_esm/types/ray2D.js.map | 1 - dist/_esm/types/ray3D.js | 2 - dist/_esm/types/ray3D.js.map | 1 - dist/_esm/types/round-data.type.js | 2 - dist/_esm/types/round-data.type.js.map | 1 - dist/_esm/types/size.interaface.js | 2 - dist/_esm/types/size.interaface.js.map | 1 - dist/_esm/types/string-map.interface.js | 2 - dist/_esm/types/string-map.interface.js.map | 1 - dist/_esm/types/text-options.interface.js | 2 - dist/_esm/types/text-options.interface.js.map | 1 - dist/_esm/types/type.interface.js | 2 - dist/_esm/types/type.interface.js.map | 1 - dist/_esm/types/unit-number.type.js | 2 - dist/_esm/types/unit-number.type.js.map | 1 - dist/_esm/types/vertical-align.type.js | 2 - dist/_esm/types/vertical-align.type.js.map | 1 - dist/_esm/utils/DomUtils.js | 161 - dist/_esm/utils/DomUtils.js.map | 1 - dist/_esm/utils/FileUtils.js | 89 - dist/_esm/utils/FileUtils.js.map | 1 - dist/_esm/utils/Runtime.js | 72 - dist/_esm/utils/Runtime.js.map | 1 - dist/_esm/utils/analytics-utils.js | 40 - dist/_esm/utils/analytics-utils.js.map | 1 - dist/_esm/utils/array-utils.js | 182 - dist/_esm/utils/array-utils.js.map | 1 - dist/_esm/utils/coerce-util.js | 4 - dist/_esm/utils/coerce-util.js.map | 1 - dist/_esm/utils/color-utils.js | 92 - dist/_esm/utils/color-utils.js.map | 1 - dist/_esm/utils/date-utils.js | 10 - dist/_esm/utils/date-utils.js.map | 1 - dist/_esm/utils/html-utils.js | 142 - dist/_esm/utils/html-utils.js.map | 1 - dist/_esm/utils/image-utils.js | 41 - dist/_esm/utils/image-utils.js.map | 1 - dist/_esm/utils/index.js | 20 - dist/_esm/utils/index.js.map | 1 - dist/_esm/utils/input-utils.js | 19 - dist/_esm/utils/input-utils.js.map | 1 - dist/_esm/utils/math-utils.js | 73 - dist/_esm/utils/math-utils.js.map | 1 - dist/_esm/utils/misc-utils.js | 122 - dist/_esm/utils/misc-utils.js.map | 1 - dist/_esm/utils/net-client-utils.js | 70 - dist/_esm/utils/net-client-utils.js.map | 1 - dist/_esm/utils/net-server-utils.js | 79 - dist/_esm/utils/net-server-utils.js.map | 1 - dist/_esm/utils/object-utils.js | 174 - dist/_esm/utils/object-utils.js.map | 1 - dist/_esm/utils/parser-utils.js | 9 - dist/_esm/utils/parser-utils.js.map | 1 - dist/_esm/utils/process-utils.js | 26 - dist/_esm/utils/process-utils.js.map | 1 - dist/_esm/utils/random-utils.js | 13 - dist/_esm/utils/random-utils.js.map | 1 - dist/_esm/utils/reflection-utils.js | 19 - dist/_esm/utils/reflection-utils.js.map | 1 - dist/_esm/utils/sorted-array-utils.js | 167 - dist/_esm/utils/sorted-array-utils.js.map | 1 - dist/_esm/utils/string-checkers.js | 47 - dist/_esm/utils/string-checkers.js.map | 1 - dist/_esm/utils/string-utils.js | 202 - dist/_esm/utils/string-utils.js.map | 1 - dist/_esm/utils/svg-utils.js | 15 - dist/_esm/utils/svg-utils.js.map | 1 - dist/_esm/utils/time-utils.js | 109 - dist/_esm/utils/time-utils.js.map | 1 - dist/_esm/validators/index.js | 2 - dist/_esm/validators/index.js.map | 1 - dist/_esm/validators/misc-validators.js | 69 - dist/_esm/validators/misc-validators.js.map | 1 - dist/_esm/web.js | 11 - dist/_esm/web.js.map | 1 - dist/_esm5/GUtils.js | 22 - dist/_esm5/GUtils.js.map | 1 - dist/_esm5/MockData.js | 169 - dist/_esm5/MockData.js.map | 1 - dist/_esm5/common.js | 20 - dist/_esm5/common.js.map | 1 - dist/_esm5/components/bidirectional-graph.js | 112 - .../components/bidirectional-graph.js.map | 1 - dist/_esm5/components/file-manager.js | 72 - dist/_esm5/components/file-manager.js.map | 1 - dist/_esm5/components/g-map.js | 21 - dist/_esm5/components/g-map.js.map | 1 - dist/_esm5/components/index.js | 12 - dist/_esm5/components/index.js.map | 1 - dist/_esm5/components/key-value-counter.js | 52 - .../_esm5/components/key-value-counter.js.map | 1 - .../logger/g-logger-callback-holder.js | 51 - .../logger/g-logger-callback-holder.js.map | 1 - .../logger/g-logger-default-formatter.js | 162 - .../logger/g-logger-default-formatter.js.map | 1 - .../components/logger/g-logger-instance.js | 65 - .../logger/g-logger-instance.js.map | 1 - .../components/logger/g-logger-priority.js | 9 - .../logger/g-logger-priority.js.map | 1 - dist/_esm5/components/logger/g-logger.js | 68 - dist/_esm5/components/logger/g-logger.js.map | 1 - dist/_esm5/components/number-counter.js | 32 - dist/_esm5/components/number-counter.js.map | 1 - dist/_esm5/components/paginator.js | 78 - dist/_esm5/components/paginator.js.map | 1 - dist/_esm5/config/gtools-config.interface.js | 2 - .../config/gtools-config.interface.js.map | 1 - dist/_esm5/config/gtools-config.js | 51 - dist/_esm5/config/gtools-config.js.map | 1 - dist/_esm5/constants.js | 2 - dist/_esm5/constants.js.map | 1 - dist/_esm5/decorators/deprecated.decorator.js | 14 - .../decorators/deprecated.decorator.js.map | 1 - .../_esm5/decorators/final-class.decorator.js | 21 - .../decorators/final-class.decorator.js.map | 1 - dist/_esm5/decorators/index.js | 6 - dist/_esm5/decorators/index.js.map | 1 - dist/_esm5/decorators/mapper.decorator.js | 30 - dist/_esm5/decorators/mapper.decorator.js.map | 1 - dist/_esm5/decorators/singleton.decorator.js | 22 - .../decorators/singleton.decorator.js.map | 1 - dist/_esm5/decorators/watch.decorator.js | 21 - dist/_esm5/decorators/watch.decorator.js.map | 1 - dist/_esm5/dom/canvas-camera.js | 95 - dist/_esm5/dom/canvas-camera.js.map | 1 - dist/_esm5/dom/canvas-drawer-advanced.js | 60 - dist/_esm5/dom/canvas-drawer-advanced.js.map | 1 - dist/_esm5/dom/canvas-drawer.js | 190 - dist/_esm5/dom/canvas-drawer.js.map | 1 - dist/_esm5/dom/canvas-manager.js | 139 - dist/_esm5/dom/canvas-manager.js.map | 1 - dist/_esm5/dom/canvas-misc-utilts.js | 18 - dist/_esm5/dom/canvas-misc-utilts.js.map | 1 - dist/_esm5/dom/canvas-utils.js | 161 - dist/_esm5/dom/canvas-utils.js.map | 1 - dist/_esm5/dom/dom-get.js | 31 - dist/_esm5/dom/dom-get.js.map | 1 - dist/_esm5/dom/drawer.js | 2 - dist/_esm5/dom/drawer.js.map | 1 - dist/_esm5/dom/element-builder.js | 89 - dist/_esm5/dom/element-builder.js.map | 1 - dist/_esm5/dom/types/canvas-shadow-config.js | 2 - .../dom/types/canvas-shadow-config.js.map | 1 - dist/_esm5/enums/button.enum.js | 9 - dist/_esm5/enums/button.enum.js.map | 1 - dist/_esm5/enums/days.enum.js | 11 - dist/_esm5/enums/days.enum.js.map | 1 - dist/_esm5/enums/encodings.enum.js | 9 - dist/_esm5/enums/encodings.enum.js.map | 1 - dist/_esm5/enums/file-types.enum.js | 15 - dist/_esm5/enums/file-types.enum.js.map | 1 - dist/_esm5/enums/http-status-codes.enum.js | 46 - .../_esm5/enums/http-status-codes.enum.js.map | 1 - dist/_esm5/enums/index.js | 7 - dist/_esm5/enums/index.js.map | 1 - dist/_esm5/enums/keys.enum.js | 65 - dist/_esm5/enums/keys.enum.js.map | 1 - dist/_esm5/errors/index.js | 7 - dist/_esm5/errors/index.js.map | 1 - dist/_esm5/errors/missing-parameter.error.js | 10 - .../errors/missing-parameter.error.js.map | 1 - .../errors/no-database-connection.error.js | 10 - .../no-database-connection.error.js.map | 1 - dist/_esm5/errors/not-browser.exception.js | 15 - .../_esm5/errors/not-browser.exception.js.map | 1 - dist/_esm5/errors/null-pointer.exception.js | 12 - .../errors/null-pointer.exception.js.map | 1 - .../_esm5/errors/wrong-parameter.exception.js | 12 - .../errors/wrong-parameter.exception.js.map | 1 - dist/_esm5/errors/wrong-type.exception.js | 12 - dist/_esm5/errors/wrong-type.exception.js.map | 1 - dist/_esm5/index.js | 2 - dist/_esm5/index.js.map | 1 - dist/_esm5/math/index.js | 11 - dist/_esm5/math/index.js.map | 1 - dist/_esm5/math/mat4.js | 31 - dist/_esm5/math/mat4.js.map | 1 - dist/_esm5/math/simple-vector-xz.js | 2 - dist/_esm5/math/simple-vector-xz.js.map | 1 - dist/_esm5/math/simple-vector2.js | 2 - dist/_esm5/math/simple-vector2.js.map | 1 - dist/_esm5/math/simple-vector3.js | 2 - dist/_esm5/math/simple-vector3.js.map | 1 - dist/_esm5/math/simple-vector4.js | 2 - dist/_esm5/math/simple-vector4.js.map | 1 - dist/_esm5/math/vector.js | 2 - dist/_esm5/math/vector.js.map | 1 - dist/_esm5/math/vector2.js | 243 -- dist/_esm5/math/vector2.js.map | 1 - dist/_esm5/math/vector2f.js | 62 - dist/_esm5/math/vector2f.js.map | 1 - dist/_esm5/math/vector3.js | 250 -- dist/_esm5/math/vector3.js.map | 1 - dist/_esm5/math/vector4.js | 141 - dist/_esm5/math/vector4.js.map | 1 - dist/_esm5/misc/ajax.js | 23 - dist/_esm5/misc/ajax.js.map | 1 - dist/_esm5/misc/file-size-formatter.js | 15 - dist/_esm5/misc/file-size-formatter.js.map | 1 - dist/_esm5/misc/index.js | 6 - dist/_esm5/misc/index.js.map | 1 - dist/_esm5/misc/runtime-validators.js | 13 - dist/_esm5/misc/runtime-validators.js.map | 1 - dist/_esm5/misc/simple-loop.js | 17 - dist/_esm5/misc/simple-loop.js.map | 1 - dist/_esm5/misc/slovak-stemmer.js | 182 - dist/_esm5/misc/slovak-stemmer.js.map | 1 - dist/_esm5/models/color.model.js | 77 - dist/_esm5/models/color.model.js.map | 1 - .../models/countries/country.interface.js | 2 - .../models/countries/country.interface.js.map | 1 - dist/_esm5/models/countries/country.model.js | 19 - .../models/countries/country.model.js.map | 1 - .../models/data-structures/binary-queue.js | 89 - .../data-structures/binary-queue.js.map | 1 - .../models/data-structures/binary-tree.js | 163 - .../models/data-structures/binary-tree.js.map | 1 - .../models/data-structures/g43-collection.js | 2 - .../data-structures/g43-collection.js.map | 1 - .../grid-accessor/grid-filters.js | 2 - .../grid-accessor/grid-filters.js.map | 1 - .../grid-accessor/grid2-accessor.js | 40 - .../grid-accessor/grid2-accessor.js.map | 1 - .../grid-accessor/grid2-block-accessor.js | 45 - .../grid-accessor/grid2-block-accessor.js.map | 1 - .../holders-2d/grid2-array-holder.js | 293 -- .../holders-2d/grid2-array-holder.js.map | 1 - .../holders-2d/grid2-hash-holder.js | 39 - .../holders-2d/grid2-hash-holder.js.map | 1 - .../grid-accessor/holders-2d/grid2-holder.js | 2 - .../holders-2d/grid2-holder.js.map | 1 - .../holders-2d/grid2-map-holder.js | 56 - .../holders-2d/grid2-map-holder.js.map | 1 - .../holders-2d/grid2-object-holder.js | 47 - .../holders-2d/grid2-object-holder.js.map | 1 - .../holders-2d/grid2-object-map-holder.js | 47 - .../holders-2d/grid2-object-map-holder.js.map | 1 - .../holders-2d/grid2-string-holder.js | 37 - .../holders-2d/grid2-string-holder.js.map | 1 - .../grid-accessor/holders-2d/grid2.perf.js | 68 - .../holders-2d/grid2.perf.js.map | 1 - .../holders-3d/grid3-array-holder.js | 50 - .../holders-3d/grid3-array-holder.js.map | 1 - .../holders-3d/grid3-hash-holder.js | 36 - .../holders-3d/grid3-hash-holder.js.map | 1 - .../grid-accessor/holders-3d/grid3-holder.js | 2 - .../holders-3d/grid3-holder.js.map | 1 - .../holders-3d/grid3-map-holder.js | 109 - .../holders-3d/grid3-map-holder.js.map | 1 - .../holders-3d/grid3-object-holder.js | 31 - .../holders-3d/grid3-object-holder.js.map | 1 - .../grid-accessor/holders-3d/grid3.perf.js | 71 - .../holders-3d/grid3.perf.js.map | 1 - .../data-structures/grid-accessor/index.js | 14 - .../grid-accessor/index.js.map | 1 - .../list/abstract-linked-list.js | 62 - .../list/abstract-linked-list.js.map | 1 - .../list/bi-directional-linked-list.js | 78 - .../list/bi-directional-linked-list.js.map | 1 - .../models/data-structures/list/index.js | 7 - .../models/data-structures/list/index.js.map | 1 - .../data-structures/list/linked-list-entry.js | 18 - .../list/linked-list-entry.js.map | 1 - .../_esm5/models/data-structures/list/list.js | 2 - .../models/data-structures/list/list.js.map | 1 - .../list/one-directional-linked-list.js | 47 - .../list/one-directional-linked-list.js.map | 1 - .../data-structures/list/sorted-array-list.js | 65 - .../list/sorted-array-list.js.map | 1 - .../models/data-structures/list/test-list.js | 46 - .../data-structures/list/test-list.js.map | 1 - .../models/data-structures/priority-queue.js | 73 - .../data-structures/priority-queue.js.map | 1 - .../data-structures/quad-tree/quad-tree.js | 172 - .../quad-tree/quad-tree.js.map | 1 - dist/_esm5/models/gender.model.js | 28 - dist/_esm5/models/gender.model.js.map | 1 - dist/_esm5/models/index.js | 14 - dist/_esm5/models/index.js.map | 1 - dist/_esm5/models/path-2d.js | 35 - dist/_esm5/models/path-2d.js.map | 1 - dist/_esm5/models/path/a-star/a-star.js | 2 - dist/_esm5/models/path/a-star/a-star.js.map | 1 - .../models/path/a-star/a-star_download.js | 83 - .../models/path/a-star/a-star_download.js.map | 1 - .../models/path/a-star/graph_download.js | 98 - .../models/path/a-star/graph_download.js.map | 1 - .../models/path/a-star/grid-node_download.js | 36 - .../path/a-star/grid-node_download.js.map | 1 - dist/_esm5/models/path/djikstra/djikstra.js | 90 - .../models/path/djikstra/djikstra.js.map | 1 - dist/_esm5/models/path/nearest-item.js | 74 - dist/_esm5/models/path/nearest-item.js.map | 1 - dist/_esm5/models/range.js | 63 - dist/_esm5/models/range.js.map | 1 - .../models/selection/selection-holder.js | 64 - .../models/selection/selection-holder.js.map | 1 - dist/_esm5/models/selection/selection.js | 121 - dist/_esm5/models/selection/selection.js.map | 1 - dist/_esm5/models/sorting/bucket-sort.js | 23 - dist/_esm5/models/sorting/bucket-sort.js.map | 1 - dist/_esm5/models/sorting/counting-sort.js | 19 - .../_esm5/models/sorting/counting-sort.js.map | 1 - dist/_esm5/models/sorting/heap-sort.js | 49 - dist/_esm5/models/sorting/heap-sort.js.map | 1 - dist/_esm5/models/sorting/index.js | 8 - dist/_esm5/models/sorting/index.js.map | 1 - dist/_esm5/models/sorting/insertion-sort.js | 25 - .../models/sorting/insertion-sort.js.map | 1 - dist/_esm5/models/sorting/merge-sort.js | 44 - dist/_esm5/models/sorting/merge-sort.js.map | 1 - dist/_esm5/models/sorting/quick-sort.js | 44 - dist/_esm5/models/sorting/quick-sort.js.map | 1 - dist/_esm5/models/sorting/radix-sort.js | 61 - dist/_esm5/models/sorting/radix-sort.js.map | 1 - dist/_esm5/models/transform-2d.js | 11 - dist/_esm5/models/transform-2d.js.map | 1 - dist/_esm5/node.js | 11 - dist/_esm5/node.js.map | 1 - dist/_esm5/physics/bounders-2d.js | 51 - dist/_esm5/physics/bounders-2d.js.map | 1 - dist/_esm5/physics/bounding-boxes/AABB3.js | 172 - .../_esm5/physics/bounding-boxes/AABB3.js.map | 1 - dist/_esm5/physics/closest-2d.js | 22 - dist/_esm5/physics/closest-2d.js.map | 1 - dist/_esm5/physics/closest-3d.js | 27 - dist/_esm5/physics/closest-3d.js.map | 1 - dist/_esm5/physics/collisions-2d.js | 128 - dist/_esm5/physics/collisions-2d.js.map | 1 - dist/_esm5/physics/collisions-3d.js | 201 - dist/_esm5/physics/collisions-3d.js.map | 1 - dist/_esm5/physics/distances-2d.js | 53 - dist/_esm5/physics/distances-2d.js.map | 1 - dist/_esm5/physics/distances-3d.js | 52 - dist/_esm5/physics/distances-3d.js.map | 1 - dist/_esm5/physics/index.js | 11 - dist/_esm5/physics/index.js.map | 1 - dist/_esm5/physics/intersects-2d.js | 17 - dist/_esm5/physics/intersects-2d.js.map | 1 - dist/_esm5/physics/intersects-3d.js | 34 - dist/_esm5/physics/intersects-3d.js.map | 1 - dist/_esm5/physics/objects/2d/capsule.js | 60 - dist/_esm5/physics/objects/2d/capsule.js.map | 1 - dist/_esm5/physics/objects/2d/line.js | 49 - dist/_esm5/physics/objects/2d/line.js.map | 1 - dist/_esm5/physics/objects/2d/object2-d.js | 2 - .../_esm5/physics/objects/2d/object2-d.js.map | 1 - dist/_esm5/physics/objects/2d/ray-2d.js | 124 - dist/_esm5/physics/objects/2d/ray-2d.js.map | 1 - dist/_esm5/physics/objects/2d/rect.js | 102 - dist/_esm5/physics/objects/2d/rect.js.map | 1 - dist/_esm5/physics/objects/2d/sphere.js | 104 - dist/_esm5/physics/objects/2d/sphere.js.map | 1 - dist/_esm5/physics/objects/2d/triangle.js | 45 - dist/_esm5/physics/objects/2d/triangle.js.map | 1 - dist/_esm5/physics/objects/index.js | 4 - dist/_esm5/physics/objects/index.js.map | 1 - .../physics/objects/object-convertors.js | 27 - .../physics/objects/object-convertors.js.map | 1 - dist/_esm5/tests/abstract-database.fixture.js | 14 - .../tests/abstract-database.fixture.js.map | 1 - dist/_esm5/tests/abstract.fixture.js | 9 - dist/_esm5/tests/abstract.fixture.js.map | 1 - dist/_esm5/tests/abstract.mapper.js | 7 - dist/_esm5/tests/abstract.mapper.js.map | 1 - dist/_esm5/tests/paginate.model.js | 18 - dist/_esm5/tests/paginate.model.js.map | 1 - dist/_esm5/tsconfig.esm5.tsbuildinfo | 3780 ---------------- .../types/helpers/min-max-2d.interface.js | 2 - .../types/helpers/min-max-2d.interface.js.map | 1 - .../types/helpers/min-max-3d.interface.js | 2 - .../types/helpers/min-max-3d.interface.js.map | 1 - dist/_esm5/types/helpers/pos-size-2d.js | 2 - dist/_esm5/types/helpers/pos-size-2d.js.map | 1 - dist/_esm5/types/helpers/pos-size-3d.js | 2 - dist/_esm5/types/helpers/pos-size-3d.js.map | 1 - dist/_esm5/types/helpers/xywh.js | 2 - dist/_esm5/types/helpers/xywh.js.map | 1 - dist/_esm5/types/helpers/xyzwhd.js | 2 - dist/_esm5/types/helpers/xyzwhd.js.map | 1 - dist/_esm5/types/horizontal-align.type.js | 2 - dist/_esm5/types/horizontal-align.type.js.map | 1 - dist/_esm5/types/index.js | 23 - dist/_esm5/types/index.js.map | 1 - dist/_esm5/types/key-value.interface.js | 2 - dist/_esm5/types/key-value.interface.js.map | 1 - .../types/nested-string-map.interface.js | 2 - .../types/nested-string-map.interface.js.map | 1 - dist/_esm5/types/object-entry.interface.js | 2 - .../_esm5/types/object-entry.interface.js.map | 1 - dist/_esm5/types/optional.type.js | 2 - dist/_esm5/types/optional.type.js.map | 1 - dist/_esm5/types/prop.type.js | 2 - dist/_esm5/types/prop.type.js.map | 1 - dist/_esm5/types/property-decorator.type.js | 2 - .../types/property-decorator.type.js.map | 1 - dist/_esm5/types/ray2D.js | 2 - dist/_esm5/types/ray2D.js.map | 1 - dist/_esm5/types/ray3D.js | 2 - dist/_esm5/types/ray3D.js.map | 1 - dist/_esm5/types/round-data.type.js | 2 - dist/_esm5/types/round-data.type.js.map | 1 - dist/_esm5/types/size.interaface.js | 2 - dist/_esm5/types/size.interaface.js.map | 1 - dist/_esm5/types/string-map.interface.js | 2 - dist/_esm5/types/string-map.interface.js.map | 1 - dist/_esm5/types/text-options.interface.js | 2 - .../_esm5/types/text-options.interface.js.map | 1 - dist/_esm5/types/type.interface.js | 2 - dist/_esm5/types/type.interface.js.map | 1 - dist/_esm5/types/unit-number.type.js | 2 - dist/_esm5/types/unit-number.type.js.map | 1 - dist/_esm5/types/vertical-align.type.js | 2 - dist/_esm5/types/vertical-align.type.js.map | 1 - dist/_esm5/utils/DomUtils.js | 169 - dist/_esm5/utils/DomUtils.js.map | 1 - dist/_esm5/utils/FileUtils.js | 94 - dist/_esm5/utils/FileUtils.js.map | 1 - dist/_esm5/utils/Runtime.js | 78 - dist/_esm5/utils/Runtime.js.map | 1 - dist/_esm5/utils/analytics-utils.js | 40 - dist/_esm5/utils/analytics-utils.js.map | 1 - dist/_esm5/utils/array-utils.js | 191 - dist/_esm5/utils/array-utils.js.map | 1 - dist/_esm5/utils/coerce-util.js | 4 - dist/_esm5/utils/coerce-util.js.map | 1 - dist/_esm5/utils/color-utils.js | 92 - dist/_esm5/utils/color-utils.js.map | 1 - dist/_esm5/utils/date-utils.js | 10 - dist/_esm5/utils/date-utils.js.map | 1 - dist/_esm5/utils/html-utils.js | 154 - dist/_esm5/utils/html-utils.js.map | 1 - dist/_esm5/utils/image-utils.js | 42 - dist/_esm5/utils/image-utils.js.map | 1 - dist/_esm5/utils/index.js | 20 - dist/_esm5/utils/index.js.map | 1 - dist/_esm5/utils/input-utils.js | 19 - dist/_esm5/utils/input-utils.js.map | 1 - dist/_esm5/utils/math-utils.js | 76 - dist/_esm5/utils/math-utils.js.map | 1 - dist/_esm5/utils/misc-utils.js | 132 - dist/_esm5/utils/misc-utils.js.map | 1 - dist/_esm5/utils/net-client-utils.js | 74 - dist/_esm5/utils/net-client-utils.js.map | 1 - dist/_esm5/utils/net-server-utils.js | 80 - dist/_esm5/utils/net-server-utils.js.map | 1 - dist/_esm5/utils/object-utils.js | 184 - dist/_esm5/utils/object-utils.js.map | 1 - dist/_esm5/utils/parser-utils.js | 9 - dist/_esm5/utils/parser-utils.js.map | 1 - dist/_esm5/utils/process-utils.js | 26 - dist/_esm5/utils/process-utils.js.map | 1 - dist/_esm5/utils/random-utils.js | 17 - dist/_esm5/utils/random-utils.js.map | 1 - dist/_esm5/utils/reflection-utils.js | 40 - dist/_esm5/utils/reflection-utils.js.map | 1 - dist/_esm5/utils/sorted-array-utils.js | 169 - dist/_esm5/utils/sorted-array-utils.js.map | 1 - dist/_esm5/utils/string-checkers.js | 47 - dist/_esm5/utils/string-checkers.js.map | 1 - dist/_esm5/utils/string-utils.js | 215 - dist/_esm5/utils/string-utils.js.map | 1 - dist/_esm5/utils/svg-utils.js | 15 - dist/_esm5/utils/svg-utils.js.map | 1 - dist/_esm5/utils/time-utils.js | 110 - dist/_esm5/utils/time-utils.js.map | 1 - dist/_esm5/validators/index.js | 2 - dist/_esm5/validators/index.js.map | 1 - dist/_esm5/validators/misc-validators.js | 69 - dist/_esm5/validators/misc-validators.js.map | 1 - dist/_esm5/web.js | 11 - dist/_esm5/web.js.map | 1 - dist/common.d.ts | 20 - dist/common.d.ts.map | 1 - dist/common.js | 35 - dist/common.js.map | 1 - dist/components/bidirectional-graph.d.ts | 17 - dist/components/bidirectional-graph.d.ts.map | 1 - dist/components/bidirectional-graph.js | 121 - dist/components/bidirectional-graph.js.map | 1 - dist/components/file-manager.d.ts | 48 - dist/components/file-manager.d.ts.map | 1 - dist/components/file-manager.js | 75 - dist/components/file-manager.js.map | 1 - dist/components/g-map.d.ts | 5 - dist/components/g-map.d.ts.map | 1 - dist/components/g-map.js | 36 - dist/components/g-map.js.map | 1 - dist/components/index.d.ts | 12 - dist/components/index.d.ts.map | 1 - dist/components/index.js | 30 - dist/components/index.js.map | 1 - dist/components/key-value-counter.d.ts | 16 - dist/components/key-value-counter.d.ts.map | 1 - dist/components/key-value-counter.js | 55 - dist/components/key-value-counter.js.map | 1 - .../logger/g-logger-callback-holder.d.ts | 16 - .../logger/g-logger-callback-holder.d.ts.map | 1 - .../logger/g-logger-callback-holder.js | 54 - .../logger/g-logger-callback-holder.js.map | 1 - .../logger/g-logger-default-formatter.d.ts | 35 - .../g-logger-default-formatter.d.ts.map | 1 - .../logger/g-logger-default-formatter.js | 165 - .../logger/g-logger-default-formatter.js.map | 1 - dist/components/logger/g-logger-instance.d.ts | 27 - .../logger/g-logger-instance.d.ts.map | 1 - dist/components/logger/g-logger-instance.js | 74 - .../logger/g-logger-instance.js.map | 1 - dist/components/logger/g-logger-priority.d.ts | 8 - .../logger/g-logger-priority.d.ts.map | 1 - dist/components/logger/g-logger-priority.js | 12 - .../logger/g-logger-priority.js.map | 1 - dist/components/logger/g-logger.d.ts | 29 - dist/components/logger/g-logger.d.ts.map | 1 - dist/components/logger/g-logger.js | 90 - dist/components/logger/g-logger.js.map | 1 - dist/components/number-counter.d.ts | 13 - dist/components/number-counter.d.ts.map | 1 - dist/components/number-counter.js | 35 - dist/components/number-counter.js.map | 1 - dist/components/paginator.d.ts | 19 - dist/components/paginator.d.ts.map | 1 - dist/components/paginator.js | 81 - dist/components/paginator.js.map | 1 - dist/config/gtools-config.d.ts | 20 - dist/config/gtools-config.d.ts.map | 1 - dist/config/gtools-config.interface.d.ts | 14 - dist/config/gtools-config.interface.d.ts.map | 1 - dist/config/gtools-config.interface.js | 3 - dist/config/gtools-config.interface.js.map | 1 - dist/config/gtools-config.js | 55 - dist/config/gtools-config.js.map | 1 - dist/constants.d.ts | 2 - dist/constants.d.ts.map | 1 - dist/constants.js | 5 - dist/constants.js.map | 1 - dist/decorators/deprecated.decorator.d.ts | 3 - dist/decorators/deprecated.decorator.d.ts.map | 1 - dist/decorators/deprecated.decorator.js | 18 - dist/decorators/deprecated.decorator.js.map | 1 - dist/decorators/final-class.decorator.d.ts | 2 - .../decorators/final-class.decorator.d.ts.map | 1 - dist/decorators/final-class.decorator.js | 37 - dist/decorators/final-class.decorator.js.map | 1 - dist/decorators/index.d.ts | 6 - dist/decorators/index.d.ts.map | 1 - dist/decorators/index.js | 18 - dist/decorators/index.js.map | 1 - dist/decorators/mapper.decorator.d.ts | 5 - dist/decorators/mapper.decorator.d.ts.map | 1 - dist/decorators/mapper.decorator.js | 34 - dist/decorators/mapper.decorator.js.map | 1 - dist/decorators/singleton.decorator.d.ts | 2 - dist/decorators/singleton.decorator.d.ts.map | 1 - dist/decorators/singleton.decorator.js | 38 - dist/decorators/singleton.decorator.js.map | 1 - dist/decorators/watch.decorator.d.ts | 8 - dist/decorators/watch.decorator.d.ts.map | 1 - dist/decorators/watch.decorator.js | 25 - dist/decorators/watch.decorator.js.map | 1 - dist/dom/canvas-camera.d.ts | 34 - dist/dom/canvas-camera.d.ts.map | 1 - dist/dom/canvas-camera.js | 98 - dist/dom/canvas-camera.js.map | 1 - dist/dom/canvas-drawer-advanced.d.ts | 31 - dist/dom/canvas-drawer-advanced.d.ts.map | 1 - dist/dom/canvas-drawer-advanced.js | 69 - dist/dom/canvas-drawer-advanced.js.map | 1 - dist/dom/canvas-drawer.d.ts | 22 - dist/dom/canvas-drawer.d.ts.map | 1 - dist/dom/canvas-drawer.js | 193 - dist/dom/canvas-drawer.js.map | 1 - dist/dom/canvas-manager.d.ts | 28 - dist/dom/canvas-manager.d.ts.map | 1 - dist/dom/canvas-manager.js | 154 - dist/dom/canvas-manager.js.map | 1 - dist/dom/canvas-misc-utilts.d.ts | 3 - dist/dom/canvas-misc-utilts.d.ts.map | 1 - dist/dom/canvas-misc-utilts.js | 22 - dist/dom/canvas-misc-utilts.js.map | 1 - dist/dom/canvas-utils.d.ts | 42 - dist/dom/canvas-utils.d.ts.map | 1 - dist/dom/canvas-utils.js | 164 - dist/dom/canvas-utils.js.map | 1 - dist/dom/dom-get.d.ts | 43 - dist/dom/dom-get.d.ts.map | 1 - dist/dom/dom-get.js | 34 - dist/dom/dom-get.js.map | 1 - dist/dom/drawer.d.ts | 23 - dist/dom/drawer.d.ts.map | 1 - dist/dom/drawer.js | 3 - dist/dom/drawer.js.map | 1 - dist/dom/element-builder.d.ts | 25 - dist/dom/element-builder.d.ts.map | 1 - dist/dom/element-builder.js | 92 - dist/dom/element-builder.js.map | 1 - dist/dom/types/canvas-shadow-config.d.ts | 7 - dist/dom/types/canvas-shadow-config.d.ts.map | 1 - dist/dom/types/canvas-shadow-config.js | 3 - dist/dom/types/canvas-shadow-config.js.map | 1 - dist/enums/button.enum.d.ts | 8 - dist/enums/button.enum.d.ts.map | 1 - dist/enums/button.enum.js | 12 - dist/enums/button.enum.js.map | 1 - dist/enums/days.enum.d.ts | 10 - dist/enums/days.enum.d.ts.map | 1 - dist/enums/days.enum.js | 14 - dist/enums/days.enum.js.map | 1 - dist/enums/encodings.enum.d.ts | 8 - dist/enums/encodings.enum.d.ts.map | 1 - dist/enums/encodings.enum.js | 12 - dist/enums/encodings.enum.js.map | 1 - dist/enums/file-types.enum.d.ts | 14 - dist/enums/file-types.enum.d.ts.map | 1 - dist/enums/file-types.enum.js | 18 - dist/enums/file-types.enum.js.map | 1 - dist/enums/http-status-codes.enum.d.ts | 45 - dist/enums/http-status-codes.enum.d.ts.map | 1 - dist/enums/http-status-codes.enum.js | 49 - dist/enums/http-status-codes.enum.js.map | 1 - dist/enums/index.d.ts | 7 - dist/enums/index.d.ts.map | 1 - dist/enums/index.js | 19 - dist/enums/index.js.map | 1 - dist/enums/keys.enum.d.ts | 60 - dist/enums/keys.enum.d.ts.map | 1 - dist/enums/keys.enum.js | 68 - dist/enums/keys.enum.js.map | 1 - dist/errors/index.d.ts | 7 - dist/errors/index.d.ts.map | 1 - dist/errors/index.js | 19 - dist/errors/index.js.map | 1 - dist/errors/missing-parameter.error.d.ts | 4 - dist/errors/missing-parameter.error.d.ts.map | 1 - dist/errors/missing-parameter.error.js | 25 - dist/errors/missing-parameter.error.js.map | 1 - dist/errors/no-database-connection.error.d.ts | 4 - .../no-database-connection.error.d.ts.map | 1 - dist/errors/no-database-connection.error.js | 25 - .../no-database-connection.error.js.map | 1 - dist/errors/not-browser.exception.d.ts | 4 - dist/errors/not-browser.exception.d.ts.map | 1 - dist/errors/not-browser.exception.js | 30 - dist/errors/not-browser.exception.js.map | 1 - dist/errors/null-pointer.exception.d.ts | 4 - dist/errors/null-pointer.exception.d.ts.map | 1 - dist/errors/null-pointer.exception.js | 27 - dist/errors/null-pointer.exception.js.map | 1 - dist/errors/wrong-parameter.exception.d.ts | 4 - .../errors/wrong-parameter.exception.d.ts.map | 1 - dist/errors/wrong-parameter.exception.js | 27 - dist/errors/wrong-parameter.exception.js.map | 1 - dist/errors/wrong-type.exception.d.ts | 4 - dist/errors/wrong-type.exception.d.ts.map | 1 - dist/errors/wrong-type.exception.js | 27 - dist/errors/wrong-type.exception.js.map | 1 - dist/index.d.ts | 2 - dist/index.d.ts.map | 1 - dist/index.js | 14 - dist/index.js.map | 1 - dist/math/index.d.ts | 11 - dist/math/index.d.ts.map | 1 - dist/math/index.js | 23 - dist/math/index.js.map | 1 - dist/math/mat4.d.ts | 13 - dist/math/mat4.d.ts.map | 1 - dist/math/mat4.js | 46 - dist/math/mat4.js.map | 1 - dist/math/simple-vector-xz.d.ts | 6 - dist/math/simple-vector-xz.d.ts.map | 1 - dist/math/simple-vector-xz.js | 3 - dist/math/simple-vector-xz.js.map | 1 - dist/math/simple-vector2.d.ts | 6 - dist/math/simple-vector2.d.ts.map | 1 - dist/math/simple-vector2.js | 3 - dist/math/simple-vector2.js.map | 1 - dist/math/simple-vector3.d.ts | 6 - dist/math/simple-vector3.d.ts.map | 1 - dist/math/simple-vector3.js | 3 - dist/math/simple-vector3.js.map | 1 - dist/math/simple-vector4.d.ts | 6 - dist/math/simple-vector4.d.ts.map | 1 - dist/math/simple-vector4.js | 3 - dist/math/simple-vector4.js.map | 1 - dist/math/vector.d.ts | 27 - dist/math/vector.d.ts.map | 1 - dist/math/vector.js | 3 - dist/math/vector.js.map | 1 - dist/math/vector2.d.ts | 47 - dist/math/vector2.d.ts.map | 1 - dist/math/vector2.js | 246 -- dist/math/vector2.js.map | 1 - dist/math/vector2f.d.ts | 55 - dist/math/vector2f.d.ts.map | 1 - dist/math/vector2f.js | 65 - dist/math/vector2f.js.map | 1 - dist/math/vector3.d.ts | 54 - dist/math/vector3.d.ts.map | 1 - dist/math/vector3.js | 253 -- dist/math/vector3.js.map | 1 - dist/math/vector4.d.ts | 30 - dist/math/vector4.d.ts.map | 1 - dist/math/vector4.js | 144 - dist/math/vector4.js.map | 1 - dist/misc/ajax.d.ts | 16 - dist/misc/ajax.d.ts.map | 1 - dist/misc/ajax.js | 27 - dist/misc/ajax.js.map | 1 - dist/misc/file-size-formatter.d.ts | 2 - dist/misc/file-size-formatter.d.ts.map | 1 - dist/misc/file-size-formatter.js | 19 - dist/misc/file-size-formatter.js.map | 1 - dist/misc/index.d.ts | 6 - dist/misc/index.d.ts.map | 1 - dist/misc/index.js | 18 - dist/misc/index.js.map | 1 - dist/misc/runtime-validators.d.ts | 3 - dist/misc/runtime-validators.d.ts.map | 1 - dist/misc/runtime-validators.js | 18 - dist/misc/runtime-validators.js.map | 1 - dist/misc/simple-loop.d.ts | 4 - dist/misc/simple-loop.d.ts.map | 1 - dist/misc/simple-loop.js | 21 - dist/misc/simple-loop.js.map | 1 - dist/misc/slovak-stemmer.d.ts | 4 - dist/misc/slovak-stemmer.d.ts.map | 1 - dist/misc/slovak-stemmer.js | 185 - dist/misc/slovak-stemmer.js.map | 1 - dist/models/color.model.d.ts | 22 - dist/models/color.model.d.ts.map | 1 - dist/models/color.model.js | 86 - dist/models/color.model.js.map | 1 - dist/models/countries/country.interface.d.ts | 12 - .../countries/country.interface.d.ts.map | 1 - dist/models/countries/country.interface.js | 3 - .../models/countries/country.interface.js.map | 1 - dist/models/countries/country.model.d.ts | 21 - dist/models/countries/country.model.d.ts.map | 1 - dist/models/countries/country.model.js | 22 - dist/models/countries/country.model.js.map | 1 - dist/models/data-structures/binary-queue.d.ts | 13 - .../data-structures/binary-queue.d.ts.map | 1 - dist/models/data-structures/binary-queue.js | 92 - .../data-structures/binary-queue.js.map | 1 - dist/models/data-structures/binary-tree.d.ts | 29 - .../data-structures/binary-tree.d.ts.map | 1 - dist/models/data-structures/binary-tree.js | 166 - .../models/data-structures/binary-tree.js.map | 1 - .../data-structures/g43-collection.d.ts | 11 - .../data-structures/g43-collection.d.ts.map | 1 - dist/models/data-structures/g43-collection.js | 3 - .../data-structures/g43-collection.js.map | 1 - .../grid-accessor/grid-filters.d.ts | 8 - .../grid-accessor/grid-filters.d.ts.map | 1 - .../grid-accessor/grid-filters.js | 3 - .../grid-accessor/grid-filters.js.map | 1 - .../grid-accessor/grid2-accessor.d.ts | 16 - .../grid-accessor/grid2-accessor.d.ts.map | 1 - .../grid-accessor/grid2-accessor.js | 43 - .../grid-accessor/grid2-accessor.js.map | 1 - .../grid-accessor/grid2-block-accessor.d.ts | 15 - .../grid2-block-accessor.d.ts.map | 1 - .../grid-accessor/grid2-block-accessor.js | 48 - .../grid-accessor/grid2-block-accessor.js.map | 1 - .../holders-2d/grid2-array-holder.d.ts | 34 - .../holders-2d/grid2-array-holder.d.ts.map | 1 - .../holders-2d/grid2-array-holder.js | 296 -- .../holders-2d/grid2-array-holder.js.map | 1 - .../holders-2d/grid2-hash-holder.d.ts | 14 - .../holders-2d/grid2-hash-holder.d.ts.map | 1 - .../holders-2d/grid2-hash-holder.js | 42 - .../holders-2d/grid2-hash-holder.js.map | 1 - .../holders-2d/grid2-holder.d.ts | 21 - .../holders-2d/grid2-holder.d.ts.map | 1 - .../grid-accessor/holders-2d/grid2-holder.js | 3 - .../holders-2d/grid2-holder.js.map | 1 - .../holders-2d/grid2-map-holder.d.ts | 17 - .../holders-2d/grid2-map-holder.d.ts.map | 1 - .../holders-2d/grid2-map-holder.js | 59 - .../holders-2d/grid2-map-holder.js.map | 1 - .../holders-2d/grid2-object-holder.d.ts | 14 - .../holders-2d/grid2-object-holder.d.ts.map | 1 - .../holders-2d/grid2-object-holder.js | 50 - .../holders-2d/grid2-object-holder.js.map | 1 - .../holders-2d/grid2-object-map-holder.d.ts | 14 - .../grid2-object-map-holder.d.ts.map | 1 - .../holders-2d/grid2-object-map-holder.js | 50 - .../holders-2d/grid2-object-map-holder.js.map | 1 - .../holders-2d/grid2-string-holder.d.ts | 14 - .../holders-2d/grid2-string-holder.d.ts.map | 1 - .../holders-2d/grid2-string-holder.js | 40 - .../holders-2d/grid2-string-holder.js.map | 1 - .../grid-accessor/holders-2d/grid2.perf.d.ts | 2 - .../holders-2d/grid2.perf.d.ts.map | 1 - .../grid-accessor/holders-2d/grid2.perf.js | 70 - .../holders-2d/grid2.perf.js.map | 1 - .../holders-3d/grid3-array-holder.d.ts | 19 - .../holders-3d/grid3-array-holder.d.ts.map | 1 - .../holders-3d/grid3-array-holder.js | 55 - .../holders-3d/grid3-array-holder.js.map | 1 - .../holders-3d/grid3-hash-holder.d.ts | 12 - .../holders-3d/grid3-hash-holder.d.ts.map | 1 - .../holders-3d/grid3-hash-holder.js | 39 - .../holders-3d/grid3-hash-holder.js.map | 1 - .../holders-3d/grid3-holder.d.ts | 11 - .../holders-3d/grid3-holder.d.ts.map | 1 - .../grid-accessor/holders-3d/grid3-holder.js | 3 - .../holders-3d/grid3-holder.js.map | 1 - .../holders-3d/grid3-map-holder.d.ts | 17 - .../holders-3d/grid3-map-holder.d.ts.map | 1 - .../holders-3d/grid3-map-holder.js | 112 - .../holders-3d/grid3-map-holder.js.map | 1 - .../holders-3d/grid3-object-holder.d.ts | 7 - .../holders-3d/grid3-object-holder.d.ts.map | 1 - .../holders-3d/grid3-object-holder.js | 34 - .../holders-3d/grid3-object-holder.js.map | 1 - .../grid-accessor/holders-3d/grid3.perf.d.ts | 2 - .../holders-3d/grid3.perf.d.ts.map | 1 - .../grid-accessor/holders-3d/grid3.perf.js | 73 - .../holders-3d/grid3.perf.js.map | 1 - .../data-structures/grid-accessor/index.d.ts | 14 - .../grid-accessor/index.d.ts.map | 1 - .../data-structures/grid-accessor/index.js | 26 - .../grid-accessor/index.js.map | 1 - .../list/abstract-linked-list.d.ts | 13 - .../list/abstract-linked-list.d.ts.map | 1 - .../list/abstract-linked-list.js | 65 - .../list/abstract-linked-list.js.map | 1 - .../list/bi-directional-linked-list.d.ts | 12 - .../list/bi-directional-linked-list.d.ts.map | 1 - .../list/bi-directional-linked-list.js | 93 - .../list/bi-directional-linked-list.js.map | 1 - dist/models/data-structures/list/index.d.ts | 7 - .../data-structures/list/index.d.ts.map | 1 - dist/models/data-structures/list/index.js | 19 - dist/models/data-structures/list/index.js.map | 1 - .../list/linked-list-entry.d.ts | 12 - .../list/linked-list-entry.d.ts.map | 1 - .../data-structures/list/linked-list-entry.js | 21 - .../list/linked-list-entry.js.map | 1 - dist/models/data-structures/list/list.d.ts | 6 - .../models/data-structures/list/list.d.ts.map | 1 - dist/models/data-structures/list/list.js | 3 - dist/models/data-structures/list/list.js.map | 1 - .../list/one-directional-linked-list.d.ts | 10 - .../list/one-directional-linked-list.d.ts.map | 1 - .../list/one-directional-linked-list.js | 62 - .../list/one-directional-linked-list.js.map | 1 - .../list/sorted-array-list.d.ts | 16 - .../list/sorted-array-list.d.ts.map | 1 - .../data-structures/list/sorted-array-list.js | 74 - .../list/sorted-array-list.js.map | 1 - .../data-structures/list/test-list.d.ts | 3 - .../data-structures/list/test-list.d.ts.map | 1 - dist/models/data-structures/list/test-list.js | 50 - .../data-structures/list/test-list.js.map | 1 - .../data-structures/priority-queue.d.ts | 18 - .../data-structures/priority-queue.d.ts.map | 1 - dist/models/data-structures/priority-queue.js | 76 - .../data-structures/priority-queue.js.map | 1 - .../data-structures/quad-tree/quad-tree.d.ts | 48 - .../quad-tree/quad-tree.d.ts.map | 1 - .../data-structures/quad-tree/quad-tree.js | 175 - .../quad-tree/quad-tree.js.map | 1 - dist/models/gender.model.d.ts | 23 - dist/models/gender.model.d.ts.map | 1 - dist/models/gender.model.js | 32 - dist/models/gender.model.js.map | 1 - dist/models/index.d.ts | 17 - dist/models/index.d.ts.map | 1 - dist/models/index.js | 26 - dist/models/index.js.map | 1 - dist/models/path-2d.d.ts | 10 - dist/models/path-2d.d.ts.map | 1 - dist/models/path-2d.js | 38 - dist/models/path-2d.js.map | 1 - dist/models/path/a-star/a-star.d.ts | 1 - dist/models/path/a-star/a-star.d.ts.map | 1 - dist/models/path/a-star/a-star.js | 2 - dist/models/path/a-star/a-star.js.map | 1 - dist/models/path/a-star/a-star_download.d.ts | 23 - .../path/a-star/a-star_download.d.ts.map | 1 - dist/models/path/a-star/a-star_download.js | 86 - .../models/path/a-star/a-star_download.js.map | 1 - dist/models/path/a-star/graph_download.d.ts | 24 - .../path/a-star/graph_download.d.ts.map | 1 - dist/models/path/a-star/graph_download.js | 101 - dist/models/path/a-star/graph_download.js.map | 1 - .../path/a-star/grid-node_download.d.ts | 17 - .../path/a-star/grid-node_download.d.ts.map | 1 - dist/models/path/a-star/grid-node_download.js | 39 - .../path/a-star/grid-node_download.js.map | 1 - dist/models/path/djikstra/djikstra.d.ts | 29 - dist/models/path/djikstra/djikstra.d.ts.map | 1 - dist/models/path/djikstra/djikstra.js | 99 - dist/models/path/djikstra/djikstra.js.map | 1 - dist/models/path/nearest-item.d.ts | 25 - dist/models/path/nearest-item.d.ts.map | 1 - dist/models/path/nearest-item.js | 83 - dist/models/path/nearest-item.js.map | 1 - dist/models/range.d.ts | 17 - dist/models/range.d.ts.map | 1 - dist/models/range.js | 66 - dist/models/range.js.map | 1 - dist/models/selection/selection-holder.d.ts | 15 - .../selection/selection-holder.d.ts.map | 1 - dist/models/selection/selection-holder.js | 73 - dist/models/selection/selection-holder.js.map | 1 - dist/models/selection/selection.d.ts | 27 - dist/models/selection/selection.d.ts.map | 1 - dist/models/selection/selection.js | 130 - dist/models/selection/selection.js.map | 1 - dist/models/sorting/bucket-sort.d.ts | 7 - dist/models/sorting/bucket-sort.d.ts.map | 1 - dist/models/sorting/bucket-sort.js | 26 - dist/models/sorting/bucket-sort.js.map | 1 - dist/models/sorting/counting-sort.d.ts | 7 - dist/models/sorting/counting-sort.d.ts.map | 1 - dist/models/sorting/counting-sort.js | 22 - dist/models/sorting/counting-sort.js.map | 1 - dist/models/sorting/heap-sort.d.ts | 17 - dist/models/sorting/heap-sort.d.ts.map | 1 - dist/models/sorting/heap-sort.js | 52 - dist/models/sorting/heap-sort.js.map | 1 - dist/models/sorting/index.d.ts | 8 - dist/models/sorting/index.d.ts.map | 1 - dist/models/sorting/index.js | 20 - dist/models/sorting/index.js.map | 1 - dist/models/sorting/insertion-sort.d.ts | 11 - dist/models/sorting/insertion-sort.d.ts.map | 1 - dist/models/sorting/insertion-sort.js | 28 - dist/models/sorting/insertion-sort.js.map | 1 - dist/models/sorting/merge-sort.d.ts | 13 - dist/models/sorting/merge-sort.d.ts.map | 1 - dist/models/sorting/merge-sort.js | 47 - dist/models/sorting/merge-sort.js.map | 1 - dist/models/sorting/quick-sort.d.ts | 13 - dist/models/sorting/quick-sort.d.ts.map | 1 - dist/models/sorting/quick-sort.js | 47 - dist/models/sorting/quick-sort.js.map | 1 - dist/models/sorting/radix-sort.d.ts | 12 - dist/models/sorting/radix-sort.d.ts.map | 1 - dist/models/sorting/radix-sort.js | 64 - dist/models/sorting/radix-sort.js.map | 1 - dist/models/transform-2d.d.ts | 8 - dist/models/transform-2d.d.ts.map | 1 - dist/models/transform-2d.js | 15 - dist/models/transform-2d.js.map | 1 - dist/node.d.ts | 13 - dist/node.d.ts.map | 1 - dist/node.js | 23 - dist/node.js.map | 1 - dist/physics/bounders-2d.d.ts | 7 - dist/physics/bounders-2d.d.ts.map | 1 - dist/physics/bounders-2d.js | 67 - dist/physics/bounders-2d.js.map | 1 - dist/physics/bounding-boxes/AABB3.d.ts | 24 - dist/physics/bounding-boxes/AABB3.d.ts.map | 1 - dist/physics/bounding-boxes/AABB3.js | 175 - dist/physics/bounding-boxes/AABB3.js.map | 1 - dist/physics/closest-2d.d.ts | 5 - dist/physics/closest-2d.d.ts.map | 1 - dist/physics/closest-2d.js | 26 - dist/physics/closest-2d.js.map | 1 - dist/physics/closest-3d.d.ts | 3 - dist/physics/closest-3d.d.ts.map | 1 - dist/physics/closest-3d.js | 31 - dist/physics/closest-3d.js.map | 1 - dist/physics/collisions-2d.d.ts | 25 - dist/physics/collisions-2d.d.ts.map | 1 - dist/physics/collisions-2d.js | 143 - dist/physics/collisions-2d.js.map | 1 - dist/physics/collisions-3d.d.ts | 25 - dist/physics/collisions-3d.d.ts.map | 1 - dist/physics/collisions-3d.js | 221 - dist/physics/collisions-3d.js.map | 1 - dist/physics/distances-2d.d.ts | 9 - dist/physics/distances-2d.d.ts.map | 1 - dist/physics/distances-2d.js | 64 - dist/physics/distances-2d.js.map | 1 - dist/physics/distances-3d.d.ts | 7 - dist/physics/distances-3d.d.ts.map | 1 - dist/physics/distances-3d.js | 60 - dist/physics/distances-3d.js.map | 1 - dist/physics/index.d.ts | 11 - dist/physics/index.d.ts.map | 1 - dist/physics/index.js | 23 - dist/physics/index.js.map | 1 - dist/physics/intersects-2d.d.ts | 3 - dist/physics/intersects-2d.d.ts.map | 1 - dist/physics/intersects-2d.js | 21 - dist/physics/intersects-2d.js.map | 1 - dist/physics/intersects-3d.d.ts | 24 - dist/physics/intersects-3d.d.ts.map | 1 - dist/physics/intersects-3d.js | 41 - dist/physics/intersects-3d.js.map | 1 - dist/physics/objects/2d/capsule.d.ts | 19 - dist/physics/objects/2d/capsule.d.ts.map | 1 - dist/physics/objects/2d/capsule.js | 63 - dist/physics/objects/2d/capsule.js.map | 1 - dist/physics/objects/2d/line.d.ts | 18 - dist/physics/objects/2d/line.d.ts.map | 1 - dist/physics/objects/2d/line.js | 52 - dist/physics/objects/2d/line.js.map | 1 - dist/physics/objects/2d/object2-d.d.ts | 13 - dist/physics/objects/2d/object2-d.d.ts.map | 1 - dist/physics/objects/2d/object2-d.js | 3 - dist/physics/objects/2d/object2-d.js.map | 1 - dist/physics/objects/2d/ray-2d.d.ts | 53 - dist/physics/objects/2d/ray-2d.d.ts.map | 1 - dist/physics/objects/2d/ray-2d.js | 127 - dist/physics/objects/2d/ray-2d.js.map | 1 - dist/physics/objects/2d/rect.d.ts | 23 - dist/physics/objects/2d/rect.d.ts.map | 1 - dist/physics/objects/2d/rect.js | 105 - dist/physics/objects/2d/rect.js.map | 1 - dist/physics/objects/2d/sphere.d.ts | 21 - dist/physics/objects/2d/sphere.d.ts.map | 1 - dist/physics/objects/2d/sphere.js | 107 - dist/physics/objects/2d/sphere.js.map | 1 - dist/physics/objects/2d/triangle.d.ts | 21 - dist/physics/objects/2d/triangle.d.ts.map | 1 - dist/physics/objects/2d/triangle.js | 48 - dist/physics/objects/2d/triangle.js.map | 1 - dist/physics/objects/index.d.ts | 4 - dist/physics/objects/index.d.ts.map | 1 - dist/physics/objects/index.js | 16 - dist/physics/objects/index.js.map | 1 - dist/physics/objects/object-convertors.d.ts | 4 - .../objects/object-convertors.d.ts.map | 1 - dist/physics/objects/object-convertors.js | 32 - dist/physics/objects/object-convertors.js.map | 1 - dist/tests/abstract-database.fixture.d.ts | 8 - dist/tests/abstract-database.fixture.d.ts.map | 1 - dist/tests/abstract-database.fixture.js | 29 - dist/tests/abstract-database.fixture.js.map | 1 - dist/tests/abstract.fixture.d.ts | 6 - dist/tests/abstract.fixture.d.ts.map | 1 - dist/tests/abstract.fixture.js | 12 - dist/tests/abstract.fixture.js.map | 1 - dist/tests/abstract.mapper.d.ts | 5 - dist/tests/abstract.mapper.d.ts.map | 1 - dist/tests/abstract.mapper.js | 10 - dist/tests/abstract.mapper.js.map | 1 - dist/tests/paginate.model.d.ts | 8 - dist/tests/paginate.model.d.ts.map | 1 - dist/tests/paginate.model.js | 21 - dist/tests/paginate.model.js.map | 1 - dist/tsconfig.cjs.tsbuildinfo | 3420 --------------- dist/types/helpers/min-max-2d.interface.d.ts | 16 - .../helpers/min-max-2d.interface.d.ts.map | 1 - dist/types/helpers/min-max-2d.interface.js | 3 - .../types/helpers/min-max-2d.interface.js.map | 1 - dist/types/helpers/min-max-3d.interface.d.ts | 18 - .../helpers/min-max-3d.interface.d.ts.map | 1 - dist/types/helpers/min-max-3d.interface.js | 3 - .../types/helpers/min-max-3d.interface.js.map | 1 - dist/types/helpers/pos-size-2d.d.ts | 10 - dist/types/helpers/pos-size-2d.d.ts.map | 1 - dist/types/helpers/pos-size-2d.js | 3 - dist/types/helpers/pos-size-2d.js.map | 1 - dist/types/helpers/pos-size-3d.d.ts | 10 - dist/types/helpers/pos-size-3d.d.ts.map | 1 - dist/types/helpers/pos-size-3d.js | 3 - dist/types/helpers/pos-size-3d.js.map | 1 - dist/types/helpers/xywh.d.ts | 10 - dist/types/helpers/xywh.d.ts.map | 1 - dist/types/helpers/xywh.js | 3 - dist/types/helpers/xywh.js.map | 1 - dist/types/helpers/xyzwhd.d.ts | 12 - dist/types/helpers/xyzwhd.d.ts.map | 1 - dist/types/helpers/xyzwhd.js | 3 - dist/types/helpers/xyzwhd.js.map | 1 - dist/types/horizontal-align.type.d.ts | 2 - dist/types/horizontal-align.type.d.ts.map | 1 - dist/types/horizontal-align.type.js | 3 - dist/types/horizontal-align.type.js.map | 1 - dist/types/index.d.ts | 23 - dist/types/index.d.ts.map | 1 - dist/types/index.js | 35 - dist/types/index.js.map | 1 - dist/types/key-value.interface.d.ts | 5 - dist/types/key-value.interface.d.ts.map | 1 - dist/types/key-value.interface.js | 3 - dist/types/key-value.interface.js.map | 1 - dist/types/nested-string-map.interface.d.ts | 4 - .../nested-string-map.interface.d.ts.map | 1 - dist/types/nested-string-map.interface.js | 3 - dist/types/nested-string-map.interface.js.map | 1 - dist/types/object-entry.interface.d.ts | 3 - dist/types/object-entry.interface.d.ts.map | 1 - dist/types/object-entry.interface.js | 3 - dist/types/object-entry.interface.js.map | 1 - dist/types/optional.type.d.ts | 4 - dist/types/optional.type.d.ts.map | 1 - dist/types/optional.type.js | 3 - dist/types/optional.type.js.map | 1 - dist/types/prop.type.d.ts | 2 - dist/types/prop.type.d.ts.map | 1 - dist/types/prop.type.js | 3 - dist/types/prop.type.js.map | 1 - dist/types/property-decorator.type.d.ts | 2 - dist/types/property-decorator.type.d.ts.map | 1 - dist/types/property-decorator.type.js | 3 - dist/types/property-decorator.type.js.map | 1 - dist/types/ray2D.d.ts | 6 - dist/types/ray2D.d.ts.map | 1 - dist/types/ray2D.js | 3 - dist/types/ray2D.js.map | 1 - dist/types/ray3D.d.ts | 6 - dist/types/ray3D.d.ts.map | 1 - dist/types/ray3D.js | 3 - dist/types/ray3D.js.map | 1 - dist/types/round-data.type.d.ts | 7 - dist/types/round-data.type.d.ts.map | 1 - dist/types/round-data.type.js | 3 - dist/types/round-data.type.js.map | 1 - dist/types/size.interaface.d.ts | 5 - dist/types/size.interaface.d.ts.map | 1 - dist/types/size.interaface.js | 3 - dist/types/size.interaface.js.map | 1 - dist/types/string-map.interface.d.ts | 4 - dist/types/string-map.interface.d.ts.map | 1 - dist/types/string-map.interface.js | 3 - dist/types/string-map.interface.js.map | 1 - dist/types/text-options.interface.d.ts | 10 - dist/types/text-options.interface.d.ts.map | 1 - dist/types/text-options.interface.js | 3 - dist/types/text-options.interface.js.map | 1 - dist/types/type.interface.d.ts | 5 - dist/types/type.interface.d.ts.map | 1 - dist/types/type.interface.js | 3 - dist/types/type.interface.js.map | 1 - dist/types/unit-number.type.d.ts | 5 - dist/types/unit-number.type.d.ts.map | 1 - dist/types/unit-number.type.js | 3 - dist/types/unit-number.type.js.map | 1 - dist/types/vertical-align.type.d.ts | 2 - dist/types/vertical-align.type.d.ts.map | 1 - dist/types/vertical-align.type.js | 3 - dist/types/vertical-align.type.js.map | 1 - dist/utils/DomUtils.d.ts | 99 - dist/utils/DomUtils.d.ts.map | 1 - dist/utils/DomUtils.js | 191 - dist/utils/DomUtils.js.map | 1 - dist/utils/FileUtils.d.ts | 11 - dist/utils/FileUtils.d.ts.map | 1 - dist/utils/FileUtils.js | 116 - dist/utils/FileUtils.js.map | 1 - dist/utils/Runtime.d.ts | 14 - dist/utils/Runtime.d.ts.map | 1 - dist/utils/Runtime.js | 100 - dist/utils/Runtime.js.map | 1 - dist/utils/analytics-utils.d.ts | 49 - dist/utils/analytics-utils.d.ts.map | 1 - dist/utils/analytics-utils.js | 55 - dist/utils/analytics-utils.js.map | 1 - dist/utils/array-utils.d.ts | 122 - dist/utils/array-utils.d.ts.map | 1 - dist/utils/array-utils.js | 212 - dist/utils/array-utils.js.map | 1 - dist/utils/coerce-util.d.ts | 2 - dist/utils/coerce-util.d.ts.map | 1 - dist/utils/coerce-util.js | 8 - dist/utils/coerce-util.js.map | 1 - dist/utils/color-utils.d.ts | 11 - dist/utils/color-utils.d.ts.map | 1 - dist/utils/color-utils.js | 105 - dist/utils/color-utils.js.map | 1 - dist/utils/date-utils.d.ts | 2 - dist/utils/date-utils.d.ts.map | 1 - dist/utils/date-utils.js | 14 - dist/utils/date-utils.js.map | 1 - dist/utils/html-utils.d.ts | 36 - dist/utils/html-utils.d.ts.map | 1 - dist/utils/html-utils.js | 171 - dist/utils/html-utils.js.map | 1 - dist/utils/image-utils.d.ts | 5 - dist/utils/image-utils.d.ts.map | 1 - dist/utils/image-utils.js | 49 - dist/utils/image-utils.js.map | 1 - dist/utils/index.d.ts | 20 - dist/utils/index.d.ts.map | 1 - dist/utils/index.js | 32 - dist/utils/index.js.map | 1 - dist/utils/input-utils.d.ts | 5 - dist/utils/input-utils.d.ts.map | 1 - dist/utils/input-utils.js | 25 - dist/utils/input-utils.js.map | 1 - dist/utils/math-utils.d.ts | 28 - dist/utils/math-utils.d.ts.map | 1 - dist/utils/math-utils.js | 113 - dist/utils/math-utils.js.map | 1 - dist/utils/misc-utils.d.ts | 51 - dist/utils/misc-utils.d.ts.map | 1 - dist/utils/misc-utils.js | 145 - dist/utils/misc-utils.js.map | 1 - dist/utils/net-client-utils.d.ts | 5 - dist/utils/net-client-utils.d.ts.map | 1 - dist/utils/net-client-utils.js | 116 - dist/utils/net-client-utils.js.map | 1 - dist/utils/net-server-utils.d.ts | 13 - dist/utils/net-server-utils.d.ts.map | 1 - dist/utils/net-server-utils.js | 89 - dist/utils/net-server-utils.js.map | 1 - dist/utils/object-utils.d.ts | 64 - dist/utils/object-utils.d.ts.map | 1 - dist/utils/object-utils.js | 208 - dist/utils/object-utils.js.map | 1 - dist/utils/parser-utils.d.ts | 2 - dist/utils/parser-utils.d.ts.map | 1 - dist/utils/parser-utils.js | 13 - dist/utils/parser-utils.js.map | 1 - dist/utils/process-utils.d.ts | 15 - dist/utils/process-utils.d.ts.map | 1 - dist/utils/process-utils.js | 35 - dist/utils/process-utils.js.map | 1 - dist/utils/random-utils.d.ts | 5 - dist/utils/random-utils.d.ts.map | 1 - dist/utils/random-utils.js | 24 - dist/utils/random-utils.js.map | 1 - dist/utils/reflection-utils.d.ts | 11 - dist/utils/reflection-utils.d.ts.map | 1 - dist/utils/reflection-utils.js | 88 - dist/utils/reflection-utils.js.map | 1 - dist/utils/sorted-array-utils.d.ts | 43 - dist/utils/sorted-array-utils.d.ts.map | 1 - dist/utils/sorted-array-utils.js | 181 - dist/utils/sorted-array-utils.js.map | 1 - dist/utils/string-checkers.d.ts | 18 - dist/utils/string-checkers.d.ts.map | 1 - dist/utils/string-checkers.js | 78 - dist/utils/string-checkers.js.map | 1 - dist/utils/string-utils.d.ts | 100 - dist/utils/string-utils.d.ts.map | 1 - dist/utils/string-utils.js | 264 -- dist/utils/string-utils.js.map | 1 - dist/utils/svg-utils.d.ts | 3 - dist/utils/svg-utils.d.ts.map | 1 - dist/utils/svg-utils.js | 20 - dist/utils/svg-utils.js.map | 1 - dist/utils/time-utils.d.ts | 9 - dist/utils/time-utils.d.ts.map | 1 - dist/utils/time-utils.js | 118 - dist/utils/time-utils.js.map | 1 - dist/validators/index.d.ts | 2 - dist/validators/index.d.ts.map | 1 - dist/validators/index.js | 14 - dist/validators/index.js.map | 1 - dist/validators/misc-validators.d.ts | 14 - dist/validators/misc-validators.d.ts.map | 1 - dist/validators/misc-validators.js | 85 - dist/validators/misc-validators.js.map | 1 - dist/web.d.ts | 12 - dist/web.d.ts.map | 1 - dist/web.js | 36 - dist/web.js.map | 1 - package.json | 6 +- src/tsconfig.cjs.json | 2 +- src/tsconfig.esm5.json | 2 +- 1591 files changed, 5 insertions(+), 48269 deletions(-) delete mode 100644 dist/GUtils.d.ts delete mode 100644 dist/GUtils.d.ts.map delete mode 100644 dist/GUtils.js delete mode 100644 dist/GUtils.js.map delete mode 100644 dist/MockData.d.ts delete mode 100644 dist/MockData.d.ts.map delete mode 100644 dist/MockData.js delete mode 100644 dist/MockData.js.map delete mode 100644 dist/_esm/GUtils.js delete mode 100644 dist/_esm/GUtils.js.map delete mode 100644 dist/_esm/MockData.js delete mode 100644 dist/_esm/MockData.js.map delete mode 100644 dist/_esm/common.js delete mode 100644 dist/_esm/common.js.map delete mode 100644 dist/_esm/components/bidirectional-graph.js delete mode 100644 dist/_esm/components/bidirectional-graph.js.map delete mode 100644 dist/_esm/components/file-manager.js delete mode 100644 dist/_esm/components/file-manager.js.map delete mode 100644 dist/_esm/components/g-map.js delete mode 100644 dist/_esm/components/g-map.js.map delete mode 100644 dist/_esm/components/index.js delete mode 100644 dist/_esm/components/index.js.map delete mode 100644 dist/_esm/components/key-value-counter.js delete mode 100644 dist/_esm/components/key-value-counter.js.map delete mode 100644 dist/_esm/components/logger/g-logger-callback-holder.js delete mode 100644 dist/_esm/components/logger/g-logger-callback-holder.js.map delete mode 100644 dist/_esm/components/logger/g-logger-default-formatter.js delete mode 100644 dist/_esm/components/logger/g-logger-default-formatter.js.map delete mode 100644 dist/_esm/components/logger/g-logger-instance.js delete mode 100644 dist/_esm/components/logger/g-logger-instance.js.map delete mode 100644 dist/_esm/components/logger/g-logger-priority.js delete mode 100644 dist/_esm/components/logger/g-logger-priority.js.map delete mode 100644 dist/_esm/components/logger/g-logger.js delete mode 100644 dist/_esm/components/logger/g-logger.js.map delete mode 100644 dist/_esm/components/number-counter.js delete mode 100644 dist/_esm/components/number-counter.js.map delete mode 100644 dist/_esm/components/paginator.js delete mode 100644 dist/_esm/components/paginator.js.map delete mode 100644 dist/_esm/config/gtools-config.interface.js delete mode 100644 dist/_esm/config/gtools-config.interface.js.map delete mode 100644 dist/_esm/config/gtools-config.js delete mode 100644 dist/_esm/config/gtools-config.js.map delete mode 100644 dist/_esm/constants.js delete mode 100644 dist/_esm/constants.js.map delete mode 100644 dist/_esm/decorators/deprecated.decorator.js delete mode 100644 dist/_esm/decorators/deprecated.decorator.js.map delete mode 100644 dist/_esm/decorators/final-class.decorator.js delete mode 100644 dist/_esm/decorators/final-class.decorator.js.map delete mode 100644 dist/_esm/decorators/index.js delete mode 100644 dist/_esm/decorators/index.js.map delete mode 100644 dist/_esm/decorators/mapper.decorator.js delete mode 100644 dist/_esm/decorators/mapper.decorator.js.map delete mode 100644 dist/_esm/decorators/singleton.decorator.js delete mode 100644 dist/_esm/decorators/singleton.decorator.js.map delete mode 100644 dist/_esm/decorators/watch.decorator.js delete mode 100644 dist/_esm/decorators/watch.decorator.js.map delete mode 100644 dist/_esm/dom/canvas-camera.js delete mode 100644 dist/_esm/dom/canvas-camera.js.map delete mode 100644 dist/_esm/dom/canvas-drawer-advanced.js delete mode 100644 dist/_esm/dom/canvas-drawer-advanced.js.map delete mode 100644 dist/_esm/dom/canvas-drawer.js delete mode 100644 dist/_esm/dom/canvas-drawer.js.map delete mode 100644 dist/_esm/dom/canvas-manager.js delete mode 100644 dist/_esm/dom/canvas-manager.js.map delete mode 100644 dist/_esm/dom/canvas-misc-utilts.js delete mode 100644 dist/_esm/dom/canvas-misc-utilts.js.map delete mode 100644 dist/_esm/dom/canvas-utils.js delete mode 100644 dist/_esm/dom/canvas-utils.js.map delete mode 100644 dist/_esm/dom/dom-get.js delete mode 100644 dist/_esm/dom/dom-get.js.map delete mode 100644 dist/_esm/dom/drawer.js delete mode 100644 dist/_esm/dom/drawer.js.map delete mode 100644 dist/_esm/dom/element-builder.js delete mode 100644 dist/_esm/dom/element-builder.js.map delete mode 100644 dist/_esm/dom/types/canvas-shadow-config.js delete mode 100644 dist/_esm/dom/types/canvas-shadow-config.js.map delete mode 100644 dist/_esm/enums/button.enum.js delete mode 100644 dist/_esm/enums/button.enum.js.map delete mode 100644 dist/_esm/enums/days.enum.js delete mode 100644 dist/_esm/enums/days.enum.js.map delete mode 100644 dist/_esm/enums/encodings.enum.js delete mode 100644 dist/_esm/enums/encodings.enum.js.map delete mode 100644 dist/_esm/enums/file-types.enum.js delete mode 100644 dist/_esm/enums/file-types.enum.js.map delete mode 100644 dist/_esm/enums/http-status-codes.enum.js delete mode 100644 dist/_esm/enums/http-status-codes.enum.js.map delete mode 100644 dist/_esm/enums/index.js delete mode 100644 dist/_esm/enums/index.js.map delete mode 100644 dist/_esm/enums/keys.enum.js delete mode 100644 dist/_esm/enums/keys.enum.js.map delete mode 100644 dist/_esm/errors/index.js delete mode 100644 dist/_esm/errors/index.js.map delete mode 100644 dist/_esm/errors/missing-parameter.error.js delete mode 100644 dist/_esm/errors/missing-parameter.error.js.map delete mode 100644 dist/_esm/errors/no-database-connection.error.js delete mode 100644 dist/_esm/errors/no-database-connection.error.js.map delete mode 100644 dist/_esm/errors/not-browser.exception.js delete mode 100644 dist/_esm/errors/not-browser.exception.js.map delete mode 100644 dist/_esm/errors/null-pointer.exception.js delete mode 100644 dist/_esm/errors/null-pointer.exception.js.map delete mode 100644 dist/_esm/errors/wrong-parameter.exception.js delete mode 100644 dist/_esm/errors/wrong-parameter.exception.js.map delete mode 100644 dist/_esm/errors/wrong-type.exception.js delete mode 100644 dist/_esm/errors/wrong-type.exception.js.map delete mode 100644 dist/_esm/index.js delete mode 100644 dist/_esm/index.js.map delete mode 100644 dist/_esm/math/index.js delete mode 100644 dist/_esm/math/index.js.map delete mode 100644 dist/_esm/math/mat4.js delete mode 100644 dist/_esm/math/mat4.js.map delete mode 100644 dist/_esm/math/simple-vector-xz.js delete mode 100644 dist/_esm/math/simple-vector-xz.js.map delete mode 100644 dist/_esm/math/simple-vector2.js delete mode 100644 dist/_esm/math/simple-vector2.js.map delete mode 100644 dist/_esm/math/simple-vector3.js delete mode 100644 dist/_esm/math/simple-vector3.js.map delete mode 100644 dist/_esm/math/simple-vector4.js delete mode 100644 dist/_esm/math/simple-vector4.js.map delete mode 100644 dist/_esm/math/vector.js delete mode 100644 dist/_esm/math/vector.js.map delete mode 100644 dist/_esm/math/vector2.js delete mode 100644 dist/_esm/math/vector2.js.map delete mode 100644 dist/_esm/math/vector2f.js delete mode 100644 dist/_esm/math/vector2f.js.map delete mode 100644 dist/_esm/math/vector3.js delete mode 100644 dist/_esm/math/vector3.js.map delete mode 100644 dist/_esm/math/vector4.js delete mode 100644 dist/_esm/math/vector4.js.map delete mode 100644 dist/_esm/misc/ajax.js delete mode 100644 dist/_esm/misc/ajax.js.map delete mode 100644 dist/_esm/misc/file-size-formatter.js delete mode 100644 dist/_esm/misc/file-size-formatter.js.map delete mode 100644 dist/_esm/misc/index.js delete mode 100644 dist/_esm/misc/index.js.map delete mode 100644 dist/_esm/misc/runtime-validators.js delete mode 100644 dist/_esm/misc/runtime-validators.js.map delete mode 100644 dist/_esm/misc/simple-loop.js delete mode 100644 dist/_esm/misc/simple-loop.js.map delete mode 100644 dist/_esm/misc/slovak-stemmer.js delete mode 100644 dist/_esm/misc/slovak-stemmer.js.map delete mode 100644 dist/_esm/models/color.model.js delete mode 100644 dist/_esm/models/color.model.js.map delete mode 100644 dist/_esm/models/countries/country.interface.js delete mode 100644 dist/_esm/models/countries/country.interface.js.map delete mode 100644 dist/_esm/models/countries/country.model.js delete mode 100644 dist/_esm/models/countries/country.model.js.map delete mode 100644 dist/_esm/models/data-structures/binary-queue.js delete mode 100644 dist/_esm/models/data-structures/binary-queue.js.map delete mode 100644 dist/_esm/models/data-structures/binary-tree.js delete mode 100644 dist/_esm/models/data-structures/binary-tree.js.map delete mode 100644 dist/_esm/models/data-structures/g43-collection.js delete mode 100644 dist/_esm/models/data-structures/g43-collection.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid-filters.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid-filters.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map delete mode 100644 dist/_esm/models/data-structures/grid-accessor/index.js delete mode 100644 dist/_esm/models/data-structures/grid-accessor/index.js.map delete mode 100644 dist/_esm/models/data-structures/list/abstract-linked-list.js delete mode 100644 dist/_esm/models/data-structures/list/abstract-linked-list.js.map delete mode 100644 dist/_esm/models/data-structures/list/bi-directional-linked-list.js delete mode 100644 dist/_esm/models/data-structures/list/bi-directional-linked-list.js.map delete mode 100644 dist/_esm/models/data-structures/list/index.js delete mode 100644 dist/_esm/models/data-structures/list/index.js.map delete mode 100644 dist/_esm/models/data-structures/list/linked-list-entry.js delete mode 100644 dist/_esm/models/data-structures/list/linked-list-entry.js.map delete mode 100644 dist/_esm/models/data-structures/list/list.js delete mode 100644 dist/_esm/models/data-structures/list/list.js.map delete mode 100644 dist/_esm/models/data-structures/list/one-directional-linked-list.js delete mode 100644 dist/_esm/models/data-structures/list/one-directional-linked-list.js.map delete mode 100644 dist/_esm/models/data-structures/list/sorted-array-list.js delete mode 100644 dist/_esm/models/data-structures/list/sorted-array-list.js.map delete mode 100644 dist/_esm/models/data-structures/list/test-list.js delete mode 100644 dist/_esm/models/data-structures/list/test-list.js.map delete mode 100644 dist/_esm/models/data-structures/priority-queue.js delete mode 100644 dist/_esm/models/data-structures/priority-queue.js.map delete mode 100644 dist/_esm/models/data-structures/quad-tree/quad-tree.js delete mode 100644 dist/_esm/models/data-structures/quad-tree/quad-tree.js.map delete mode 100644 dist/_esm/models/gender.model.js delete mode 100644 dist/_esm/models/gender.model.js.map delete mode 100644 dist/_esm/models/index.js delete mode 100644 dist/_esm/models/index.js.map delete mode 100644 dist/_esm/models/path-2d.js delete mode 100644 dist/_esm/models/path-2d.js.map delete mode 100644 dist/_esm/models/path/a-star/a-star.js delete mode 100644 dist/_esm/models/path/a-star/a-star.js.map delete mode 100644 dist/_esm/models/path/a-star/a-star_download.js delete mode 100644 dist/_esm/models/path/a-star/a-star_download.js.map delete mode 100644 dist/_esm/models/path/a-star/graph_download.js delete mode 100644 dist/_esm/models/path/a-star/graph_download.js.map delete mode 100644 dist/_esm/models/path/a-star/grid-node_download.js delete mode 100644 dist/_esm/models/path/a-star/grid-node_download.js.map delete mode 100644 dist/_esm/models/path/djikstra/djikstra.js delete mode 100644 dist/_esm/models/path/djikstra/djikstra.js.map delete mode 100644 dist/_esm/models/path/nearest-item.js delete mode 100644 dist/_esm/models/path/nearest-item.js.map delete mode 100644 dist/_esm/models/range.js delete mode 100644 dist/_esm/models/range.js.map delete mode 100644 dist/_esm/models/selection/selection-holder.js delete mode 100644 dist/_esm/models/selection/selection-holder.js.map delete mode 100644 dist/_esm/models/selection/selection.js delete mode 100644 dist/_esm/models/selection/selection.js.map delete mode 100644 dist/_esm/models/sorting/bucket-sort.js delete mode 100644 dist/_esm/models/sorting/bucket-sort.js.map delete mode 100644 dist/_esm/models/sorting/counting-sort.js delete mode 100644 dist/_esm/models/sorting/counting-sort.js.map delete mode 100644 dist/_esm/models/sorting/heap-sort.js delete mode 100644 dist/_esm/models/sorting/heap-sort.js.map delete mode 100644 dist/_esm/models/sorting/index.js delete mode 100644 dist/_esm/models/sorting/index.js.map delete mode 100644 dist/_esm/models/sorting/insertion-sort.js delete mode 100644 dist/_esm/models/sorting/insertion-sort.js.map delete mode 100644 dist/_esm/models/sorting/merge-sort.js delete mode 100644 dist/_esm/models/sorting/merge-sort.js.map delete mode 100644 dist/_esm/models/sorting/quick-sort.js delete mode 100644 dist/_esm/models/sorting/quick-sort.js.map delete mode 100644 dist/_esm/models/sorting/radix-sort.js delete mode 100644 dist/_esm/models/sorting/radix-sort.js.map delete mode 100644 dist/_esm/models/transform-2d.js delete mode 100644 dist/_esm/models/transform-2d.js.map delete mode 100644 dist/_esm/node.js delete mode 100644 dist/_esm/node.js.map delete mode 100644 dist/_esm/physics/bounders-2d.js delete mode 100644 dist/_esm/physics/bounders-2d.js.map delete mode 100644 dist/_esm/physics/bounding-boxes/AABB3.js delete mode 100644 dist/_esm/physics/bounding-boxes/AABB3.js.map delete mode 100644 dist/_esm/physics/closest-2d.js delete mode 100644 dist/_esm/physics/closest-2d.js.map delete mode 100644 dist/_esm/physics/closest-3d.js delete mode 100644 dist/_esm/physics/closest-3d.js.map delete mode 100644 dist/_esm/physics/collisions-2d.js delete mode 100644 dist/_esm/physics/collisions-2d.js.map delete mode 100644 dist/_esm/physics/collisions-3d.js delete mode 100644 dist/_esm/physics/collisions-3d.js.map delete mode 100644 dist/_esm/physics/distances-2d.js delete mode 100644 dist/_esm/physics/distances-2d.js.map delete mode 100644 dist/_esm/physics/distances-3d.js delete mode 100644 dist/_esm/physics/distances-3d.js.map delete mode 100644 dist/_esm/physics/index.js delete mode 100644 dist/_esm/physics/index.js.map delete mode 100644 dist/_esm/physics/intersects-2d.js delete mode 100644 dist/_esm/physics/intersects-2d.js.map delete mode 100644 dist/_esm/physics/intersects-3d.js delete mode 100644 dist/_esm/physics/intersects-3d.js.map delete mode 100644 dist/_esm/physics/objects/2d/capsule.js delete mode 100644 dist/_esm/physics/objects/2d/capsule.js.map delete mode 100644 dist/_esm/physics/objects/2d/line.js delete mode 100644 dist/_esm/physics/objects/2d/line.js.map delete mode 100644 dist/_esm/physics/objects/2d/object2-d.js delete mode 100644 dist/_esm/physics/objects/2d/object2-d.js.map delete mode 100644 dist/_esm/physics/objects/2d/ray-2d.js delete mode 100644 dist/_esm/physics/objects/2d/ray-2d.js.map delete mode 100644 dist/_esm/physics/objects/2d/rect.js delete mode 100644 dist/_esm/physics/objects/2d/rect.js.map delete mode 100644 dist/_esm/physics/objects/2d/sphere.js delete mode 100644 dist/_esm/physics/objects/2d/sphere.js.map delete mode 100644 dist/_esm/physics/objects/2d/triangle.js delete mode 100644 dist/_esm/physics/objects/2d/triangle.js.map delete mode 100644 dist/_esm/physics/objects/index.js delete mode 100644 dist/_esm/physics/objects/index.js.map delete mode 100644 dist/_esm/physics/objects/object-convertors.js delete mode 100644 dist/_esm/physics/objects/object-convertors.js.map delete mode 100644 dist/_esm/tests/abstract-database.fixture.js delete mode 100644 dist/_esm/tests/abstract-database.fixture.js.map delete mode 100644 dist/_esm/tests/abstract.fixture.js delete mode 100644 dist/_esm/tests/abstract.fixture.js.map delete mode 100644 dist/_esm/tests/abstract.mapper.js delete mode 100644 dist/_esm/tests/abstract.mapper.js.map delete mode 100644 dist/_esm/tests/paginate.model.js delete mode 100644 dist/_esm/tests/paginate.model.js.map delete mode 100644 dist/_esm/tsconfig.esm.tsbuildinfo delete mode 100644 dist/_esm/tsconfig.types.tsbuildinfo delete mode 100644 dist/_esm/types/helpers/min-max-2d.interface.js delete mode 100644 dist/_esm/types/helpers/min-max-2d.interface.js.map delete mode 100644 dist/_esm/types/helpers/min-max-3d.interface.js delete mode 100644 dist/_esm/types/helpers/min-max-3d.interface.js.map delete mode 100644 dist/_esm/types/helpers/pos-size-2d.js delete mode 100644 dist/_esm/types/helpers/pos-size-2d.js.map delete mode 100644 dist/_esm/types/helpers/pos-size-3d.js delete mode 100644 dist/_esm/types/helpers/pos-size-3d.js.map delete mode 100644 dist/_esm/types/helpers/xywh.js delete mode 100644 dist/_esm/types/helpers/xywh.js.map delete mode 100644 dist/_esm/types/helpers/xyzwhd.js delete mode 100644 dist/_esm/types/helpers/xyzwhd.js.map delete mode 100644 dist/_esm/types/horizontal-align.type.js delete mode 100644 dist/_esm/types/horizontal-align.type.js.map delete mode 100644 dist/_esm/types/index.js delete mode 100644 dist/_esm/types/index.js.map delete mode 100644 dist/_esm/types/key-value.interface.js delete mode 100644 dist/_esm/types/key-value.interface.js.map delete mode 100644 dist/_esm/types/nested-string-map.interface.js delete mode 100644 dist/_esm/types/nested-string-map.interface.js.map delete mode 100644 dist/_esm/types/object-entry.interface.js delete mode 100644 dist/_esm/types/object-entry.interface.js.map delete mode 100644 dist/_esm/types/optional.type.js delete mode 100644 dist/_esm/types/optional.type.js.map delete mode 100644 dist/_esm/types/prop.type.js delete mode 100644 dist/_esm/types/prop.type.js.map delete mode 100644 dist/_esm/types/property-decorator.type.js delete mode 100644 dist/_esm/types/property-decorator.type.js.map delete mode 100644 dist/_esm/types/ray2D.js delete mode 100644 dist/_esm/types/ray2D.js.map delete mode 100644 dist/_esm/types/ray3D.js delete mode 100644 dist/_esm/types/ray3D.js.map delete mode 100644 dist/_esm/types/round-data.type.js delete mode 100644 dist/_esm/types/round-data.type.js.map delete mode 100644 dist/_esm/types/size.interaface.js delete mode 100644 dist/_esm/types/size.interaface.js.map delete mode 100644 dist/_esm/types/string-map.interface.js delete mode 100644 dist/_esm/types/string-map.interface.js.map delete mode 100644 dist/_esm/types/text-options.interface.js delete mode 100644 dist/_esm/types/text-options.interface.js.map delete mode 100644 dist/_esm/types/type.interface.js delete mode 100644 dist/_esm/types/type.interface.js.map delete mode 100644 dist/_esm/types/unit-number.type.js delete mode 100644 dist/_esm/types/unit-number.type.js.map delete mode 100644 dist/_esm/types/vertical-align.type.js delete mode 100644 dist/_esm/types/vertical-align.type.js.map delete mode 100644 dist/_esm/utils/DomUtils.js delete mode 100644 dist/_esm/utils/DomUtils.js.map delete mode 100644 dist/_esm/utils/FileUtils.js delete mode 100644 dist/_esm/utils/FileUtils.js.map delete mode 100644 dist/_esm/utils/Runtime.js delete mode 100644 dist/_esm/utils/Runtime.js.map delete mode 100644 dist/_esm/utils/analytics-utils.js delete mode 100644 dist/_esm/utils/analytics-utils.js.map delete mode 100644 dist/_esm/utils/array-utils.js delete mode 100644 dist/_esm/utils/array-utils.js.map delete mode 100644 dist/_esm/utils/coerce-util.js delete mode 100644 dist/_esm/utils/coerce-util.js.map delete mode 100644 dist/_esm/utils/color-utils.js delete mode 100644 dist/_esm/utils/color-utils.js.map delete mode 100644 dist/_esm/utils/date-utils.js delete mode 100644 dist/_esm/utils/date-utils.js.map delete mode 100644 dist/_esm/utils/html-utils.js delete mode 100644 dist/_esm/utils/html-utils.js.map delete mode 100644 dist/_esm/utils/image-utils.js delete mode 100644 dist/_esm/utils/image-utils.js.map delete mode 100644 dist/_esm/utils/index.js delete mode 100644 dist/_esm/utils/index.js.map delete mode 100644 dist/_esm/utils/input-utils.js delete mode 100644 dist/_esm/utils/input-utils.js.map delete mode 100644 dist/_esm/utils/math-utils.js delete mode 100644 dist/_esm/utils/math-utils.js.map delete mode 100644 dist/_esm/utils/misc-utils.js delete mode 100644 dist/_esm/utils/misc-utils.js.map delete mode 100644 dist/_esm/utils/net-client-utils.js delete mode 100644 dist/_esm/utils/net-client-utils.js.map delete mode 100644 dist/_esm/utils/net-server-utils.js delete mode 100644 dist/_esm/utils/net-server-utils.js.map delete mode 100644 dist/_esm/utils/object-utils.js delete mode 100644 dist/_esm/utils/object-utils.js.map delete mode 100644 dist/_esm/utils/parser-utils.js delete mode 100644 dist/_esm/utils/parser-utils.js.map delete mode 100644 dist/_esm/utils/process-utils.js delete mode 100644 dist/_esm/utils/process-utils.js.map delete mode 100644 dist/_esm/utils/random-utils.js delete mode 100644 dist/_esm/utils/random-utils.js.map delete mode 100644 dist/_esm/utils/reflection-utils.js delete mode 100644 dist/_esm/utils/reflection-utils.js.map delete mode 100644 dist/_esm/utils/sorted-array-utils.js delete mode 100644 dist/_esm/utils/sorted-array-utils.js.map delete mode 100644 dist/_esm/utils/string-checkers.js delete mode 100644 dist/_esm/utils/string-checkers.js.map delete mode 100644 dist/_esm/utils/string-utils.js delete mode 100644 dist/_esm/utils/string-utils.js.map delete mode 100644 dist/_esm/utils/svg-utils.js delete mode 100644 dist/_esm/utils/svg-utils.js.map delete mode 100644 dist/_esm/utils/time-utils.js delete mode 100644 dist/_esm/utils/time-utils.js.map delete mode 100644 dist/_esm/validators/index.js delete mode 100644 dist/_esm/validators/index.js.map delete mode 100644 dist/_esm/validators/misc-validators.js delete mode 100644 dist/_esm/validators/misc-validators.js.map delete mode 100644 dist/_esm/web.js delete mode 100644 dist/_esm/web.js.map delete mode 100644 dist/_esm5/GUtils.js delete mode 100644 dist/_esm5/GUtils.js.map delete mode 100644 dist/_esm5/MockData.js delete mode 100644 dist/_esm5/MockData.js.map delete mode 100644 dist/_esm5/common.js delete mode 100644 dist/_esm5/common.js.map delete mode 100644 dist/_esm5/components/bidirectional-graph.js delete mode 100644 dist/_esm5/components/bidirectional-graph.js.map delete mode 100644 dist/_esm5/components/file-manager.js delete mode 100644 dist/_esm5/components/file-manager.js.map delete mode 100644 dist/_esm5/components/g-map.js delete mode 100644 dist/_esm5/components/g-map.js.map delete mode 100644 dist/_esm5/components/index.js delete mode 100644 dist/_esm5/components/index.js.map delete mode 100644 dist/_esm5/components/key-value-counter.js delete mode 100644 dist/_esm5/components/key-value-counter.js.map delete mode 100644 dist/_esm5/components/logger/g-logger-callback-holder.js delete mode 100644 dist/_esm5/components/logger/g-logger-callback-holder.js.map delete mode 100644 dist/_esm5/components/logger/g-logger-default-formatter.js delete mode 100644 dist/_esm5/components/logger/g-logger-default-formatter.js.map delete mode 100644 dist/_esm5/components/logger/g-logger-instance.js delete mode 100644 dist/_esm5/components/logger/g-logger-instance.js.map delete mode 100644 dist/_esm5/components/logger/g-logger-priority.js delete mode 100644 dist/_esm5/components/logger/g-logger-priority.js.map delete mode 100644 dist/_esm5/components/logger/g-logger.js delete mode 100644 dist/_esm5/components/logger/g-logger.js.map delete mode 100644 dist/_esm5/components/number-counter.js delete mode 100644 dist/_esm5/components/number-counter.js.map delete mode 100644 dist/_esm5/components/paginator.js delete mode 100644 dist/_esm5/components/paginator.js.map delete mode 100644 dist/_esm5/config/gtools-config.interface.js delete mode 100644 dist/_esm5/config/gtools-config.interface.js.map delete mode 100644 dist/_esm5/config/gtools-config.js delete mode 100644 dist/_esm5/config/gtools-config.js.map delete mode 100644 dist/_esm5/constants.js delete mode 100644 dist/_esm5/constants.js.map delete mode 100644 dist/_esm5/decorators/deprecated.decorator.js delete mode 100644 dist/_esm5/decorators/deprecated.decorator.js.map delete mode 100644 dist/_esm5/decorators/final-class.decorator.js delete mode 100644 dist/_esm5/decorators/final-class.decorator.js.map delete mode 100644 dist/_esm5/decorators/index.js delete mode 100644 dist/_esm5/decorators/index.js.map delete mode 100644 dist/_esm5/decorators/mapper.decorator.js delete mode 100644 dist/_esm5/decorators/mapper.decorator.js.map delete mode 100644 dist/_esm5/decorators/singleton.decorator.js delete mode 100644 dist/_esm5/decorators/singleton.decorator.js.map delete mode 100644 dist/_esm5/decorators/watch.decorator.js delete mode 100644 dist/_esm5/decorators/watch.decorator.js.map delete mode 100644 dist/_esm5/dom/canvas-camera.js delete mode 100644 dist/_esm5/dom/canvas-camera.js.map delete mode 100644 dist/_esm5/dom/canvas-drawer-advanced.js delete mode 100644 dist/_esm5/dom/canvas-drawer-advanced.js.map delete mode 100644 dist/_esm5/dom/canvas-drawer.js delete mode 100644 dist/_esm5/dom/canvas-drawer.js.map delete mode 100644 dist/_esm5/dom/canvas-manager.js delete mode 100644 dist/_esm5/dom/canvas-manager.js.map delete mode 100644 dist/_esm5/dom/canvas-misc-utilts.js delete mode 100644 dist/_esm5/dom/canvas-misc-utilts.js.map delete mode 100644 dist/_esm5/dom/canvas-utils.js delete mode 100644 dist/_esm5/dom/canvas-utils.js.map delete mode 100644 dist/_esm5/dom/dom-get.js delete mode 100644 dist/_esm5/dom/dom-get.js.map delete mode 100644 dist/_esm5/dom/drawer.js delete mode 100644 dist/_esm5/dom/drawer.js.map delete mode 100644 dist/_esm5/dom/element-builder.js delete mode 100644 dist/_esm5/dom/element-builder.js.map delete mode 100644 dist/_esm5/dom/types/canvas-shadow-config.js delete mode 100644 dist/_esm5/dom/types/canvas-shadow-config.js.map delete mode 100644 dist/_esm5/enums/button.enum.js delete mode 100644 dist/_esm5/enums/button.enum.js.map delete mode 100644 dist/_esm5/enums/days.enum.js delete mode 100644 dist/_esm5/enums/days.enum.js.map delete mode 100644 dist/_esm5/enums/encodings.enum.js delete mode 100644 dist/_esm5/enums/encodings.enum.js.map delete mode 100644 dist/_esm5/enums/file-types.enum.js delete mode 100644 dist/_esm5/enums/file-types.enum.js.map delete mode 100644 dist/_esm5/enums/http-status-codes.enum.js delete mode 100644 dist/_esm5/enums/http-status-codes.enum.js.map delete mode 100644 dist/_esm5/enums/index.js delete mode 100644 dist/_esm5/enums/index.js.map delete mode 100644 dist/_esm5/enums/keys.enum.js delete mode 100644 dist/_esm5/enums/keys.enum.js.map delete mode 100644 dist/_esm5/errors/index.js delete mode 100644 dist/_esm5/errors/index.js.map delete mode 100644 dist/_esm5/errors/missing-parameter.error.js delete mode 100644 dist/_esm5/errors/missing-parameter.error.js.map delete mode 100644 dist/_esm5/errors/no-database-connection.error.js delete mode 100644 dist/_esm5/errors/no-database-connection.error.js.map delete mode 100644 dist/_esm5/errors/not-browser.exception.js delete mode 100644 dist/_esm5/errors/not-browser.exception.js.map delete mode 100644 dist/_esm5/errors/null-pointer.exception.js delete mode 100644 dist/_esm5/errors/null-pointer.exception.js.map delete mode 100644 dist/_esm5/errors/wrong-parameter.exception.js delete mode 100644 dist/_esm5/errors/wrong-parameter.exception.js.map delete mode 100644 dist/_esm5/errors/wrong-type.exception.js delete mode 100644 dist/_esm5/errors/wrong-type.exception.js.map delete mode 100644 dist/_esm5/index.js delete mode 100644 dist/_esm5/index.js.map delete mode 100644 dist/_esm5/math/index.js delete mode 100644 dist/_esm5/math/index.js.map delete mode 100644 dist/_esm5/math/mat4.js delete mode 100644 dist/_esm5/math/mat4.js.map delete mode 100644 dist/_esm5/math/simple-vector-xz.js delete mode 100644 dist/_esm5/math/simple-vector-xz.js.map delete mode 100644 dist/_esm5/math/simple-vector2.js delete mode 100644 dist/_esm5/math/simple-vector2.js.map delete mode 100644 dist/_esm5/math/simple-vector3.js delete mode 100644 dist/_esm5/math/simple-vector3.js.map delete mode 100644 dist/_esm5/math/simple-vector4.js delete mode 100644 dist/_esm5/math/simple-vector4.js.map delete mode 100644 dist/_esm5/math/vector.js delete mode 100644 dist/_esm5/math/vector.js.map delete mode 100644 dist/_esm5/math/vector2.js delete mode 100644 dist/_esm5/math/vector2.js.map delete mode 100644 dist/_esm5/math/vector2f.js delete mode 100644 dist/_esm5/math/vector2f.js.map delete mode 100644 dist/_esm5/math/vector3.js delete mode 100644 dist/_esm5/math/vector3.js.map delete mode 100644 dist/_esm5/math/vector4.js delete mode 100644 dist/_esm5/math/vector4.js.map delete mode 100644 dist/_esm5/misc/ajax.js delete mode 100644 dist/_esm5/misc/ajax.js.map delete mode 100644 dist/_esm5/misc/file-size-formatter.js delete mode 100644 dist/_esm5/misc/file-size-formatter.js.map delete mode 100644 dist/_esm5/misc/index.js delete mode 100644 dist/_esm5/misc/index.js.map delete mode 100644 dist/_esm5/misc/runtime-validators.js delete mode 100644 dist/_esm5/misc/runtime-validators.js.map delete mode 100644 dist/_esm5/misc/simple-loop.js delete mode 100644 dist/_esm5/misc/simple-loop.js.map delete mode 100644 dist/_esm5/misc/slovak-stemmer.js delete mode 100644 dist/_esm5/misc/slovak-stemmer.js.map delete mode 100644 dist/_esm5/models/color.model.js delete mode 100644 dist/_esm5/models/color.model.js.map delete mode 100644 dist/_esm5/models/countries/country.interface.js delete mode 100644 dist/_esm5/models/countries/country.interface.js.map delete mode 100644 dist/_esm5/models/countries/country.model.js delete mode 100644 dist/_esm5/models/countries/country.model.js.map delete mode 100644 dist/_esm5/models/data-structures/binary-queue.js delete mode 100644 dist/_esm5/models/data-structures/binary-queue.js.map delete mode 100644 dist/_esm5/models/data-structures/binary-tree.js delete mode 100644 dist/_esm5/models/data-structures/binary-tree.js.map delete mode 100644 dist/_esm5/models/data-structures/g43-collection.js delete mode 100644 dist/_esm5/models/data-structures/g43-collection.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid-filters.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid-filters.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/index.js delete mode 100644 dist/_esm5/models/data-structures/grid-accessor/index.js.map delete mode 100644 dist/_esm5/models/data-structures/list/abstract-linked-list.js delete mode 100644 dist/_esm5/models/data-structures/list/abstract-linked-list.js.map delete mode 100644 dist/_esm5/models/data-structures/list/bi-directional-linked-list.js delete mode 100644 dist/_esm5/models/data-structures/list/bi-directional-linked-list.js.map delete mode 100644 dist/_esm5/models/data-structures/list/index.js delete mode 100644 dist/_esm5/models/data-structures/list/index.js.map delete mode 100644 dist/_esm5/models/data-structures/list/linked-list-entry.js delete mode 100644 dist/_esm5/models/data-structures/list/linked-list-entry.js.map delete mode 100644 dist/_esm5/models/data-structures/list/list.js delete mode 100644 dist/_esm5/models/data-structures/list/list.js.map delete mode 100644 dist/_esm5/models/data-structures/list/one-directional-linked-list.js delete mode 100644 dist/_esm5/models/data-structures/list/one-directional-linked-list.js.map delete mode 100644 dist/_esm5/models/data-structures/list/sorted-array-list.js delete mode 100644 dist/_esm5/models/data-structures/list/sorted-array-list.js.map delete mode 100644 dist/_esm5/models/data-structures/list/test-list.js delete mode 100644 dist/_esm5/models/data-structures/list/test-list.js.map delete mode 100644 dist/_esm5/models/data-structures/priority-queue.js delete mode 100644 dist/_esm5/models/data-structures/priority-queue.js.map delete mode 100644 dist/_esm5/models/data-structures/quad-tree/quad-tree.js delete mode 100644 dist/_esm5/models/data-structures/quad-tree/quad-tree.js.map delete mode 100644 dist/_esm5/models/gender.model.js delete mode 100644 dist/_esm5/models/gender.model.js.map delete mode 100644 dist/_esm5/models/index.js delete mode 100644 dist/_esm5/models/index.js.map delete mode 100644 dist/_esm5/models/path-2d.js delete mode 100644 dist/_esm5/models/path-2d.js.map delete mode 100644 dist/_esm5/models/path/a-star/a-star.js delete mode 100644 dist/_esm5/models/path/a-star/a-star.js.map delete mode 100644 dist/_esm5/models/path/a-star/a-star_download.js delete mode 100644 dist/_esm5/models/path/a-star/a-star_download.js.map delete mode 100644 dist/_esm5/models/path/a-star/graph_download.js delete mode 100644 dist/_esm5/models/path/a-star/graph_download.js.map delete mode 100644 dist/_esm5/models/path/a-star/grid-node_download.js delete mode 100644 dist/_esm5/models/path/a-star/grid-node_download.js.map delete mode 100644 dist/_esm5/models/path/djikstra/djikstra.js delete mode 100644 dist/_esm5/models/path/djikstra/djikstra.js.map delete mode 100644 dist/_esm5/models/path/nearest-item.js delete mode 100644 dist/_esm5/models/path/nearest-item.js.map delete mode 100644 dist/_esm5/models/range.js delete mode 100644 dist/_esm5/models/range.js.map delete mode 100644 dist/_esm5/models/selection/selection-holder.js delete mode 100644 dist/_esm5/models/selection/selection-holder.js.map delete mode 100644 dist/_esm5/models/selection/selection.js delete mode 100644 dist/_esm5/models/selection/selection.js.map delete mode 100644 dist/_esm5/models/sorting/bucket-sort.js delete mode 100644 dist/_esm5/models/sorting/bucket-sort.js.map delete mode 100644 dist/_esm5/models/sorting/counting-sort.js delete mode 100644 dist/_esm5/models/sorting/counting-sort.js.map delete mode 100644 dist/_esm5/models/sorting/heap-sort.js delete mode 100644 dist/_esm5/models/sorting/heap-sort.js.map delete mode 100644 dist/_esm5/models/sorting/index.js delete mode 100644 dist/_esm5/models/sorting/index.js.map delete mode 100644 dist/_esm5/models/sorting/insertion-sort.js delete mode 100644 dist/_esm5/models/sorting/insertion-sort.js.map delete mode 100644 dist/_esm5/models/sorting/merge-sort.js delete mode 100644 dist/_esm5/models/sorting/merge-sort.js.map delete mode 100644 dist/_esm5/models/sorting/quick-sort.js delete mode 100644 dist/_esm5/models/sorting/quick-sort.js.map delete mode 100644 dist/_esm5/models/sorting/radix-sort.js delete mode 100644 dist/_esm5/models/sorting/radix-sort.js.map delete mode 100644 dist/_esm5/models/transform-2d.js delete mode 100644 dist/_esm5/models/transform-2d.js.map delete mode 100644 dist/_esm5/node.js delete mode 100644 dist/_esm5/node.js.map delete mode 100644 dist/_esm5/physics/bounders-2d.js delete mode 100644 dist/_esm5/physics/bounders-2d.js.map delete mode 100644 dist/_esm5/physics/bounding-boxes/AABB3.js delete mode 100644 dist/_esm5/physics/bounding-boxes/AABB3.js.map delete mode 100644 dist/_esm5/physics/closest-2d.js delete mode 100644 dist/_esm5/physics/closest-2d.js.map delete mode 100644 dist/_esm5/physics/closest-3d.js delete mode 100644 dist/_esm5/physics/closest-3d.js.map delete mode 100644 dist/_esm5/physics/collisions-2d.js delete mode 100644 dist/_esm5/physics/collisions-2d.js.map delete mode 100644 dist/_esm5/physics/collisions-3d.js delete mode 100644 dist/_esm5/physics/collisions-3d.js.map delete mode 100644 dist/_esm5/physics/distances-2d.js delete mode 100644 dist/_esm5/physics/distances-2d.js.map delete mode 100644 dist/_esm5/physics/distances-3d.js delete mode 100644 dist/_esm5/physics/distances-3d.js.map delete mode 100644 dist/_esm5/physics/index.js delete mode 100644 dist/_esm5/physics/index.js.map delete mode 100644 dist/_esm5/physics/intersects-2d.js delete mode 100644 dist/_esm5/physics/intersects-2d.js.map delete mode 100644 dist/_esm5/physics/intersects-3d.js delete mode 100644 dist/_esm5/physics/intersects-3d.js.map delete mode 100644 dist/_esm5/physics/objects/2d/capsule.js delete mode 100644 dist/_esm5/physics/objects/2d/capsule.js.map delete mode 100644 dist/_esm5/physics/objects/2d/line.js delete mode 100644 dist/_esm5/physics/objects/2d/line.js.map delete mode 100644 dist/_esm5/physics/objects/2d/object2-d.js delete mode 100644 dist/_esm5/physics/objects/2d/object2-d.js.map delete mode 100644 dist/_esm5/physics/objects/2d/ray-2d.js delete mode 100644 dist/_esm5/physics/objects/2d/ray-2d.js.map delete mode 100644 dist/_esm5/physics/objects/2d/rect.js delete mode 100644 dist/_esm5/physics/objects/2d/rect.js.map delete mode 100644 dist/_esm5/physics/objects/2d/sphere.js delete mode 100644 dist/_esm5/physics/objects/2d/sphere.js.map delete mode 100644 dist/_esm5/physics/objects/2d/triangle.js delete mode 100644 dist/_esm5/physics/objects/2d/triangle.js.map delete mode 100644 dist/_esm5/physics/objects/index.js delete mode 100644 dist/_esm5/physics/objects/index.js.map delete mode 100644 dist/_esm5/physics/objects/object-convertors.js delete mode 100644 dist/_esm5/physics/objects/object-convertors.js.map delete mode 100644 dist/_esm5/tests/abstract-database.fixture.js delete mode 100644 dist/_esm5/tests/abstract-database.fixture.js.map delete mode 100644 dist/_esm5/tests/abstract.fixture.js delete mode 100644 dist/_esm5/tests/abstract.fixture.js.map delete mode 100644 dist/_esm5/tests/abstract.mapper.js delete mode 100644 dist/_esm5/tests/abstract.mapper.js.map delete mode 100644 dist/_esm5/tests/paginate.model.js delete mode 100644 dist/_esm5/tests/paginate.model.js.map delete mode 100644 dist/_esm5/tsconfig.esm5.tsbuildinfo delete mode 100644 dist/_esm5/types/helpers/min-max-2d.interface.js delete mode 100644 dist/_esm5/types/helpers/min-max-2d.interface.js.map delete mode 100644 dist/_esm5/types/helpers/min-max-3d.interface.js delete mode 100644 dist/_esm5/types/helpers/min-max-3d.interface.js.map delete mode 100644 dist/_esm5/types/helpers/pos-size-2d.js delete mode 100644 dist/_esm5/types/helpers/pos-size-2d.js.map delete mode 100644 dist/_esm5/types/helpers/pos-size-3d.js delete mode 100644 dist/_esm5/types/helpers/pos-size-3d.js.map delete mode 100644 dist/_esm5/types/helpers/xywh.js delete mode 100644 dist/_esm5/types/helpers/xywh.js.map delete mode 100644 dist/_esm5/types/helpers/xyzwhd.js delete mode 100644 dist/_esm5/types/helpers/xyzwhd.js.map delete mode 100644 dist/_esm5/types/horizontal-align.type.js delete mode 100644 dist/_esm5/types/horizontal-align.type.js.map delete mode 100644 dist/_esm5/types/index.js delete mode 100644 dist/_esm5/types/index.js.map delete mode 100644 dist/_esm5/types/key-value.interface.js delete mode 100644 dist/_esm5/types/key-value.interface.js.map delete mode 100644 dist/_esm5/types/nested-string-map.interface.js delete mode 100644 dist/_esm5/types/nested-string-map.interface.js.map delete mode 100644 dist/_esm5/types/object-entry.interface.js delete mode 100644 dist/_esm5/types/object-entry.interface.js.map delete mode 100644 dist/_esm5/types/optional.type.js delete mode 100644 dist/_esm5/types/optional.type.js.map delete mode 100644 dist/_esm5/types/prop.type.js delete mode 100644 dist/_esm5/types/prop.type.js.map delete mode 100644 dist/_esm5/types/property-decorator.type.js delete mode 100644 dist/_esm5/types/property-decorator.type.js.map delete mode 100644 dist/_esm5/types/ray2D.js delete mode 100644 dist/_esm5/types/ray2D.js.map delete mode 100644 dist/_esm5/types/ray3D.js delete mode 100644 dist/_esm5/types/ray3D.js.map delete mode 100644 dist/_esm5/types/round-data.type.js delete mode 100644 dist/_esm5/types/round-data.type.js.map delete mode 100644 dist/_esm5/types/size.interaface.js delete mode 100644 dist/_esm5/types/size.interaface.js.map delete mode 100644 dist/_esm5/types/string-map.interface.js delete mode 100644 dist/_esm5/types/string-map.interface.js.map delete mode 100644 dist/_esm5/types/text-options.interface.js delete mode 100644 dist/_esm5/types/text-options.interface.js.map delete mode 100644 dist/_esm5/types/type.interface.js delete mode 100644 dist/_esm5/types/type.interface.js.map delete mode 100644 dist/_esm5/types/unit-number.type.js delete mode 100644 dist/_esm5/types/unit-number.type.js.map delete mode 100644 dist/_esm5/types/vertical-align.type.js delete mode 100644 dist/_esm5/types/vertical-align.type.js.map delete mode 100644 dist/_esm5/utils/DomUtils.js delete mode 100644 dist/_esm5/utils/DomUtils.js.map delete mode 100644 dist/_esm5/utils/FileUtils.js delete mode 100644 dist/_esm5/utils/FileUtils.js.map delete mode 100644 dist/_esm5/utils/Runtime.js delete mode 100644 dist/_esm5/utils/Runtime.js.map delete mode 100644 dist/_esm5/utils/analytics-utils.js delete mode 100644 dist/_esm5/utils/analytics-utils.js.map delete mode 100644 dist/_esm5/utils/array-utils.js delete mode 100644 dist/_esm5/utils/array-utils.js.map delete mode 100644 dist/_esm5/utils/coerce-util.js delete mode 100644 dist/_esm5/utils/coerce-util.js.map delete mode 100644 dist/_esm5/utils/color-utils.js delete mode 100644 dist/_esm5/utils/color-utils.js.map delete mode 100644 dist/_esm5/utils/date-utils.js delete mode 100644 dist/_esm5/utils/date-utils.js.map delete mode 100644 dist/_esm5/utils/html-utils.js delete mode 100644 dist/_esm5/utils/html-utils.js.map delete mode 100644 dist/_esm5/utils/image-utils.js delete mode 100644 dist/_esm5/utils/image-utils.js.map delete mode 100644 dist/_esm5/utils/index.js delete mode 100644 dist/_esm5/utils/index.js.map delete mode 100644 dist/_esm5/utils/input-utils.js delete mode 100644 dist/_esm5/utils/input-utils.js.map delete mode 100644 dist/_esm5/utils/math-utils.js delete mode 100644 dist/_esm5/utils/math-utils.js.map delete mode 100644 dist/_esm5/utils/misc-utils.js delete mode 100644 dist/_esm5/utils/misc-utils.js.map delete mode 100644 dist/_esm5/utils/net-client-utils.js delete mode 100644 dist/_esm5/utils/net-client-utils.js.map delete mode 100644 dist/_esm5/utils/net-server-utils.js delete mode 100644 dist/_esm5/utils/net-server-utils.js.map delete mode 100644 dist/_esm5/utils/object-utils.js delete mode 100644 dist/_esm5/utils/object-utils.js.map delete mode 100644 dist/_esm5/utils/parser-utils.js delete mode 100644 dist/_esm5/utils/parser-utils.js.map delete mode 100644 dist/_esm5/utils/process-utils.js delete mode 100644 dist/_esm5/utils/process-utils.js.map delete mode 100644 dist/_esm5/utils/random-utils.js delete mode 100644 dist/_esm5/utils/random-utils.js.map delete mode 100644 dist/_esm5/utils/reflection-utils.js delete mode 100644 dist/_esm5/utils/reflection-utils.js.map delete mode 100644 dist/_esm5/utils/sorted-array-utils.js delete mode 100644 dist/_esm5/utils/sorted-array-utils.js.map delete mode 100644 dist/_esm5/utils/string-checkers.js delete mode 100644 dist/_esm5/utils/string-checkers.js.map delete mode 100644 dist/_esm5/utils/string-utils.js delete mode 100644 dist/_esm5/utils/string-utils.js.map delete mode 100644 dist/_esm5/utils/svg-utils.js delete mode 100644 dist/_esm5/utils/svg-utils.js.map delete mode 100644 dist/_esm5/utils/time-utils.js delete mode 100644 dist/_esm5/utils/time-utils.js.map delete mode 100644 dist/_esm5/validators/index.js delete mode 100644 dist/_esm5/validators/index.js.map delete mode 100644 dist/_esm5/validators/misc-validators.js delete mode 100644 dist/_esm5/validators/misc-validators.js.map delete mode 100644 dist/_esm5/web.js delete mode 100644 dist/_esm5/web.js.map delete mode 100644 dist/common.d.ts delete mode 100644 dist/common.d.ts.map delete mode 100644 dist/common.js delete mode 100644 dist/common.js.map delete mode 100644 dist/components/bidirectional-graph.d.ts delete mode 100644 dist/components/bidirectional-graph.d.ts.map delete mode 100644 dist/components/bidirectional-graph.js delete mode 100644 dist/components/bidirectional-graph.js.map delete mode 100644 dist/components/file-manager.d.ts delete mode 100644 dist/components/file-manager.d.ts.map delete mode 100644 dist/components/file-manager.js delete mode 100644 dist/components/file-manager.js.map delete mode 100644 dist/components/g-map.d.ts delete mode 100644 dist/components/g-map.d.ts.map delete mode 100644 dist/components/g-map.js delete mode 100644 dist/components/g-map.js.map delete mode 100644 dist/components/index.d.ts delete mode 100644 dist/components/index.d.ts.map delete mode 100644 dist/components/index.js delete mode 100644 dist/components/index.js.map delete mode 100644 dist/components/key-value-counter.d.ts delete mode 100644 dist/components/key-value-counter.d.ts.map delete mode 100644 dist/components/key-value-counter.js delete mode 100644 dist/components/key-value-counter.js.map delete mode 100644 dist/components/logger/g-logger-callback-holder.d.ts delete mode 100644 dist/components/logger/g-logger-callback-holder.d.ts.map delete mode 100644 dist/components/logger/g-logger-callback-holder.js delete mode 100644 dist/components/logger/g-logger-callback-holder.js.map delete mode 100644 dist/components/logger/g-logger-default-formatter.d.ts delete mode 100644 dist/components/logger/g-logger-default-formatter.d.ts.map delete mode 100644 dist/components/logger/g-logger-default-formatter.js delete mode 100644 dist/components/logger/g-logger-default-formatter.js.map delete mode 100644 dist/components/logger/g-logger-instance.d.ts delete mode 100644 dist/components/logger/g-logger-instance.d.ts.map delete mode 100644 dist/components/logger/g-logger-instance.js delete mode 100644 dist/components/logger/g-logger-instance.js.map delete mode 100644 dist/components/logger/g-logger-priority.d.ts delete mode 100644 dist/components/logger/g-logger-priority.d.ts.map delete mode 100644 dist/components/logger/g-logger-priority.js delete mode 100644 dist/components/logger/g-logger-priority.js.map delete mode 100644 dist/components/logger/g-logger.d.ts delete mode 100644 dist/components/logger/g-logger.d.ts.map delete mode 100644 dist/components/logger/g-logger.js delete mode 100644 dist/components/logger/g-logger.js.map delete mode 100644 dist/components/number-counter.d.ts delete mode 100644 dist/components/number-counter.d.ts.map delete mode 100644 dist/components/number-counter.js delete mode 100644 dist/components/number-counter.js.map delete mode 100644 dist/components/paginator.d.ts delete mode 100644 dist/components/paginator.d.ts.map delete mode 100644 dist/components/paginator.js delete mode 100644 dist/components/paginator.js.map delete mode 100644 dist/config/gtools-config.d.ts delete mode 100644 dist/config/gtools-config.d.ts.map delete mode 100644 dist/config/gtools-config.interface.d.ts delete mode 100644 dist/config/gtools-config.interface.d.ts.map delete mode 100644 dist/config/gtools-config.interface.js delete mode 100644 dist/config/gtools-config.interface.js.map delete mode 100644 dist/config/gtools-config.js delete mode 100644 dist/config/gtools-config.js.map delete mode 100644 dist/constants.d.ts delete mode 100644 dist/constants.d.ts.map delete mode 100644 dist/constants.js delete mode 100644 dist/constants.js.map delete mode 100644 dist/decorators/deprecated.decorator.d.ts delete mode 100644 dist/decorators/deprecated.decorator.d.ts.map delete mode 100644 dist/decorators/deprecated.decorator.js delete mode 100644 dist/decorators/deprecated.decorator.js.map delete mode 100644 dist/decorators/final-class.decorator.d.ts delete mode 100644 dist/decorators/final-class.decorator.d.ts.map delete mode 100644 dist/decorators/final-class.decorator.js delete mode 100644 dist/decorators/final-class.decorator.js.map delete mode 100644 dist/decorators/index.d.ts delete mode 100644 dist/decorators/index.d.ts.map delete mode 100644 dist/decorators/index.js delete mode 100644 dist/decorators/index.js.map delete mode 100644 dist/decorators/mapper.decorator.d.ts delete mode 100644 dist/decorators/mapper.decorator.d.ts.map delete mode 100644 dist/decorators/mapper.decorator.js delete mode 100644 dist/decorators/mapper.decorator.js.map delete mode 100644 dist/decorators/singleton.decorator.d.ts delete mode 100644 dist/decorators/singleton.decorator.d.ts.map delete mode 100644 dist/decorators/singleton.decorator.js delete mode 100644 dist/decorators/singleton.decorator.js.map delete mode 100644 dist/decorators/watch.decorator.d.ts delete mode 100644 dist/decorators/watch.decorator.d.ts.map delete mode 100644 dist/decorators/watch.decorator.js delete mode 100644 dist/decorators/watch.decorator.js.map delete mode 100644 dist/dom/canvas-camera.d.ts delete mode 100644 dist/dom/canvas-camera.d.ts.map delete mode 100644 dist/dom/canvas-camera.js delete mode 100644 dist/dom/canvas-camera.js.map delete mode 100644 dist/dom/canvas-drawer-advanced.d.ts delete mode 100644 dist/dom/canvas-drawer-advanced.d.ts.map delete mode 100644 dist/dom/canvas-drawer-advanced.js delete mode 100644 dist/dom/canvas-drawer-advanced.js.map delete mode 100644 dist/dom/canvas-drawer.d.ts delete mode 100644 dist/dom/canvas-drawer.d.ts.map delete mode 100644 dist/dom/canvas-drawer.js delete mode 100644 dist/dom/canvas-drawer.js.map delete mode 100644 dist/dom/canvas-manager.d.ts delete mode 100644 dist/dom/canvas-manager.d.ts.map delete mode 100644 dist/dom/canvas-manager.js delete mode 100644 dist/dom/canvas-manager.js.map delete mode 100644 dist/dom/canvas-misc-utilts.d.ts delete mode 100644 dist/dom/canvas-misc-utilts.d.ts.map delete mode 100644 dist/dom/canvas-misc-utilts.js delete mode 100644 dist/dom/canvas-misc-utilts.js.map delete mode 100644 dist/dom/canvas-utils.d.ts delete mode 100644 dist/dom/canvas-utils.d.ts.map delete mode 100644 dist/dom/canvas-utils.js delete mode 100644 dist/dom/canvas-utils.js.map delete mode 100644 dist/dom/dom-get.d.ts delete mode 100644 dist/dom/dom-get.d.ts.map delete mode 100644 dist/dom/dom-get.js delete mode 100644 dist/dom/dom-get.js.map delete mode 100644 dist/dom/drawer.d.ts delete mode 100644 dist/dom/drawer.d.ts.map delete mode 100644 dist/dom/drawer.js delete mode 100644 dist/dom/drawer.js.map delete mode 100644 dist/dom/element-builder.d.ts delete mode 100644 dist/dom/element-builder.d.ts.map delete mode 100644 dist/dom/element-builder.js delete mode 100644 dist/dom/element-builder.js.map delete mode 100644 dist/dom/types/canvas-shadow-config.d.ts delete mode 100644 dist/dom/types/canvas-shadow-config.d.ts.map delete mode 100644 dist/dom/types/canvas-shadow-config.js delete mode 100644 dist/dom/types/canvas-shadow-config.js.map delete mode 100644 dist/enums/button.enum.d.ts delete mode 100644 dist/enums/button.enum.d.ts.map delete mode 100644 dist/enums/button.enum.js delete mode 100644 dist/enums/button.enum.js.map delete mode 100644 dist/enums/days.enum.d.ts delete mode 100644 dist/enums/days.enum.d.ts.map delete mode 100644 dist/enums/days.enum.js delete mode 100644 dist/enums/days.enum.js.map delete mode 100644 dist/enums/encodings.enum.d.ts delete mode 100644 dist/enums/encodings.enum.d.ts.map delete mode 100644 dist/enums/encodings.enum.js delete mode 100644 dist/enums/encodings.enum.js.map delete mode 100644 dist/enums/file-types.enum.d.ts delete mode 100644 dist/enums/file-types.enum.d.ts.map delete mode 100644 dist/enums/file-types.enum.js delete mode 100644 dist/enums/file-types.enum.js.map delete mode 100644 dist/enums/http-status-codes.enum.d.ts delete mode 100644 dist/enums/http-status-codes.enum.d.ts.map delete mode 100644 dist/enums/http-status-codes.enum.js delete mode 100644 dist/enums/http-status-codes.enum.js.map delete mode 100644 dist/enums/index.d.ts delete mode 100644 dist/enums/index.d.ts.map delete mode 100644 dist/enums/index.js delete mode 100644 dist/enums/index.js.map delete mode 100644 dist/enums/keys.enum.d.ts delete mode 100644 dist/enums/keys.enum.d.ts.map delete mode 100644 dist/enums/keys.enum.js delete mode 100644 dist/enums/keys.enum.js.map delete mode 100644 dist/errors/index.d.ts delete mode 100644 dist/errors/index.d.ts.map delete mode 100644 dist/errors/index.js delete mode 100644 dist/errors/index.js.map delete mode 100644 dist/errors/missing-parameter.error.d.ts delete mode 100644 dist/errors/missing-parameter.error.d.ts.map delete mode 100644 dist/errors/missing-parameter.error.js delete mode 100644 dist/errors/missing-parameter.error.js.map delete mode 100644 dist/errors/no-database-connection.error.d.ts delete mode 100644 dist/errors/no-database-connection.error.d.ts.map delete mode 100644 dist/errors/no-database-connection.error.js delete mode 100644 dist/errors/no-database-connection.error.js.map delete mode 100644 dist/errors/not-browser.exception.d.ts delete mode 100644 dist/errors/not-browser.exception.d.ts.map delete mode 100644 dist/errors/not-browser.exception.js delete mode 100644 dist/errors/not-browser.exception.js.map delete mode 100644 dist/errors/null-pointer.exception.d.ts delete mode 100644 dist/errors/null-pointer.exception.d.ts.map delete mode 100644 dist/errors/null-pointer.exception.js delete mode 100644 dist/errors/null-pointer.exception.js.map delete mode 100644 dist/errors/wrong-parameter.exception.d.ts delete mode 100644 dist/errors/wrong-parameter.exception.d.ts.map delete mode 100644 dist/errors/wrong-parameter.exception.js delete mode 100644 dist/errors/wrong-parameter.exception.js.map delete mode 100644 dist/errors/wrong-type.exception.d.ts delete mode 100644 dist/errors/wrong-type.exception.d.ts.map delete mode 100644 dist/errors/wrong-type.exception.js delete mode 100644 dist/errors/wrong-type.exception.js.map delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.d.ts.map delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 dist/math/index.d.ts delete mode 100644 dist/math/index.d.ts.map delete mode 100644 dist/math/index.js delete mode 100644 dist/math/index.js.map delete mode 100644 dist/math/mat4.d.ts delete mode 100644 dist/math/mat4.d.ts.map delete mode 100644 dist/math/mat4.js delete mode 100644 dist/math/mat4.js.map delete mode 100644 dist/math/simple-vector-xz.d.ts delete mode 100644 dist/math/simple-vector-xz.d.ts.map delete mode 100644 dist/math/simple-vector-xz.js delete mode 100644 dist/math/simple-vector-xz.js.map delete mode 100644 dist/math/simple-vector2.d.ts delete mode 100644 dist/math/simple-vector2.d.ts.map delete mode 100644 dist/math/simple-vector2.js delete mode 100644 dist/math/simple-vector2.js.map delete mode 100644 dist/math/simple-vector3.d.ts delete mode 100644 dist/math/simple-vector3.d.ts.map delete mode 100644 dist/math/simple-vector3.js delete mode 100644 dist/math/simple-vector3.js.map delete mode 100644 dist/math/simple-vector4.d.ts delete mode 100644 dist/math/simple-vector4.d.ts.map delete mode 100644 dist/math/simple-vector4.js delete mode 100644 dist/math/simple-vector4.js.map delete mode 100644 dist/math/vector.d.ts delete mode 100644 dist/math/vector.d.ts.map delete mode 100644 dist/math/vector.js delete mode 100644 dist/math/vector.js.map delete mode 100644 dist/math/vector2.d.ts delete mode 100644 dist/math/vector2.d.ts.map delete mode 100644 dist/math/vector2.js delete mode 100644 dist/math/vector2.js.map delete mode 100644 dist/math/vector2f.d.ts delete mode 100644 dist/math/vector2f.d.ts.map delete mode 100644 dist/math/vector2f.js delete mode 100644 dist/math/vector2f.js.map delete mode 100644 dist/math/vector3.d.ts delete mode 100644 dist/math/vector3.d.ts.map delete mode 100644 dist/math/vector3.js delete mode 100644 dist/math/vector3.js.map delete mode 100644 dist/math/vector4.d.ts delete mode 100644 dist/math/vector4.d.ts.map delete mode 100644 dist/math/vector4.js delete mode 100644 dist/math/vector4.js.map delete mode 100644 dist/misc/ajax.d.ts delete mode 100644 dist/misc/ajax.d.ts.map delete mode 100644 dist/misc/ajax.js delete mode 100644 dist/misc/ajax.js.map delete mode 100644 dist/misc/file-size-formatter.d.ts delete mode 100644 dist/misc/file-size-formatter.d.ts.map delete mode 100644 dist/misc/file-size-formatter.js delete mode 100644 dist/misc/file-size-formatter.js.map delete mode 100644 dist/misc/index.d.ts delete mode 100644 dist/misc/index.d.ts.map delete mode 100644 dist/misc/index.js delete mode 100644 dist/misc/index.js.map delete mode 100644 dist/misc/runtime-validators.d.ts delete mode 100644 dist/misc/runtime-validators.d.ts.map delete mode 100644 dist/misc/runtime-validators.js delete mode 100644 dist/misc/runtime-validators.js.map delete mode 100644 dist/misc/simple-loop.d.ts delete mode 100644 dist/misc/simple-loop.d.ts.map delete mode 100644 dist/misc/simple-loop.js delete mode 100644 dist/misc/simple-loop.js.map delete mode 100644 dist/misc/slovak-stemmer.d.ts delete mode 100644 dist/misc/slovak-stemmer.d.ts.map delete mode 100644 dist/misc/slovak-stemmer.js delete mode 100644 dist/misc/slovak-stemmer.js.map delete mode 100644 dist/models/color.model.d.ts delete mode 100644 dist/models/color.model.d.ts.map delete mode 100644 dist/models/color.model.js delete mode 100644 dist/models/color.model.js.map delete mode 100644 dist/models/countries/country.interface.d.ts delete mode 100644 dist/models/countries/country.interface.d.ts.map delete mode 100644 dist/models/countries/country.interface.js delete mode 100644 dist/models/countries/country.interface.js.map delete mode 100644 dist/models/countries/country.model.d.ts delete mode 100644 dist/models/countries/country.model.d.ts.map delete mode 100644 dist/models/countries/country.model.js delete mode 100644 dist/models/countries/country.model.js.map delete mode 100644 dist/models/data-structures/binary-queue.d.ts delete mode 100644 dist/models/data-structures/binary-queue.d.ts.map delete mode 100644 dist/models/data-structures/binary-queue.js delete mode 100644 dist/models/data-structures/binary-queue.js.map delete mode 100644 dist/models/data-structures/binary-tree.d.ts delete mode 100644 dist/models/data-structures/binary-tree.d.ts.map delete mode 100644 dist/models/data-structures/binary-tree.js delete mode 100644 dist/models/data-structures/binary-tree.js.map delete mode 100644 dist/models/data-structures/g43-collection.d.ts delete mode 100644 dist/models/data-structures/g43-collection.d.ts.map delete mode 100644 dist/models/data-structures/g43-collection.js delete mode 100644 dist/models/data-structures/g43-collection.js.map delete mode 100644 dist/models/data-structures/grid-accessor/grid-filters.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/grid-filters.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/grid-filters.js delete mode 100644 dist/models/data-structures/grid-accessor/grid-filters.js.map delete mode 100644 dist/models/data-structures/grid-accessor/grid2-accessor.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/grid2-accessor.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/grid2-accessor.js delete mode 100644 dist/models/data-structures/grid-accessor/grid2-accessor.js.map delete mode 100644 dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/grid2-block-accessor.js delete mode 100644 dist/models/data-structures/grid-accessor/grid2-block-accessor.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js delete mode 100644 dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map delete mode 100644 dist/models/data-structures/grid-accessor/index.d.ts delete mode 100644 dist/models/data-structures/grid-accessor/index.d.ts.map delete mode 100644 dist/models/data-structures/grid-accessor/index.js delete mode 100644 dist/models/data-structures/grid-accessor/index.js.map delete mode 100644 dist/models/data-structures/list/abstract-linked-list.d.ts delete mode 100644 dist/models/data-structures/list/abstract-linked-list.d.ts.map delete mode 100644 dist/models/data-structures/list/abstract-linked-list.js delete mode 100644 dist/models/data-structures/list/abstract-linked-list.js.map delete mode 100644 dist/models/data-structures/list/bi-directional-linked-list.d.ts delete mode 100644 dist/models/data-structures/list/bi-directional-linked-list.d.ts.map delete mode 100644 dist/models/data-structures/list/bi-directional-linked-list.js delete mode 100644 dist/models/data-structures/list/bi-directional-linked-list.js.map delete mode 100644 dist/models/data-structures/list/index.d.ts delete mode 100644 dist/models/data-structures/list/index.d.ts.map delete mode 100644 dist/models/data-structures/list/index.js delete mode 100644 dist/models/data-structures/list/index.js.map delete mode 100644 dist/models/data-structures/list/linked-list-entry.d.ts delete mode 100644 dist/models/data-structures/list/linked-list-entry.d.ts.map delete mode 100644 dist/models/data-structures/list/linked-list-entry.js delete mode 100644 dist/models/data-structures/list/linked-list-entry.js.map delete mode 100644 dist/models/data-structures/list/list.d.ts delete mode 100644 dist/models/data-structures/list/list.d.ts.map delete mode 100644 dist/models/data-structures/list/list.js delete mode 100644 dist/models/data-structures/list/list.js.map delete mode 100644 dist/models/data-structures/list/one-directional-linked-list.d.ts delete mode 100644 dist/models/data-structures/list/one-directional-linked-list.d.ts.map delete mode 100644 dist/models/data-structures/list/one-directional-linked-list.js delete mode 100644 dist/models/data-structures/list/one-directional-linked-list.js.map delete mode 100644 dist/models/data-structures/list/sorted-array-list.d.ts delete mode 100644 dist/models/data-structures/list/sorted-array-list.d.ts.map delete mode 100644 dist/models/data-structures/list/sorted-array-list.js delete mode 100644 dist/models/data-structures/list/sorted-array-list.js.map delete mode 100644 dist/models/data-structures/list/test-list.d.ts delete mode 100644 dist/models/data-structures/list/test-list.d.ts.map delete mode 100644 dist/models/data-structures/list/test-list.js delete mode 100644 dist/models/data-structures/list/test-list.js.map delete mode 100644 dist/models/data-structures/priority-queue.d.ts delete mode 100644 dist/models/data-structures/priority-queue.d.ts.map delete mode 100644 dist/models/data-structures/priority-queue.js delete mode 100644 dist/models/data-structures/priority-queue.js.map delete mode 100644 dist/models/data-structures/quad-tree/quad-tree.d.ts delete mode 100644 dist/models/data-structures/quad-tree/quad-tree.d.ts.map delete mode 100644 dist/models/data-structures/quad-tree/quad-tree.js delete mode 100644 dist/models/data-structures/quad-tree/quad-tree.js.map delete mode 100644 dist/models/gender.model.d.ts delete mode 100644 dist/models/gender.model.d.ts.map delete mode 100644 dist/models/gender.model.js delete mode 100644 dist/models/gender.model.js.map delete mode 100644 dist/models/index.d.ts delete mode 100644 dist/models/index.d.ts.map delete mode 100644 dist/models/index.js delete mode 100644 dist/models/index.js.map delete mode 100644 dist/models/path-2d.d.ts delete mode 100644 dist/models/path-2d.d.ts.map delete mode 100644 dist/models/path-2d.js delete mode 100644 dist/models/path-2d.js.map delete mode 100644 dist/models/path/a-star/a-star.d.ts delete mode 100644 dist/models/path/a-star/a-star.d.ts.map delete mode 100644 dist/models/path/a-star/a-star.js delete mode 100644 dist/models/path/a-star/a-star.js.map delete mode 100644 dist/models/path/a-star/a-star_download.d.ts delete mode 100644 dist/models/path/a-star/a-star_download.d.ts.map delete mode 100644 dist/models/path/a-star/a-star_download.js delete mode 100644 dist/models/path/a-star/a-star_download.js.map delete mode 100644 dist/models/path/a-star/graph_download.d.ts delete mode 100644 dist/models/path/a-star/graph_download.d.ts.map delete mode 100644 dist/models/path/a-star/graph_download.js delete mode 100644 dist/models/path/a-star/graph_download.js.map delete mode 100644 dist/models/path/a-star/grid-node_download.d.ts delete mode 100644 dist/models/path/a-star/grid-node_download.d.ts.map delete mode 100644 dist/models/path/a-star/grid-node_download.js delete mode 100644 dist/models/path/a-star/grid-node_download.js.map delete mode 100644 dist/models/path/djikstra/djikstra.d.ts delete mode 100644 dist/models/path/djikstra/djikstra.d.ts.map delete mode 100644 dist/models/path/djikstra/djikstra.js delete mode 100644 dist/models/path/djikstra/djikstra.js.map delete mode 100644 dist/models/path/nearest-item.d.ts delete mode 100644 dist/models/path/nearest-item.d.ts.map delete mode 100644 dist/models/path/nearest-item.js delete mode 100644 dist/models/path/nearest-item.js.map delete mode 100644 dist/models/range.d.ts delete mode 100644 dist/models/range.d.ts.map delete mode 100644 dist/models/range.js delete mode 100644 dist/models/range.js.map delete mode 100644 dist/models/selection/selection-holder.d.ts delete mode 100644 dist/models/selection/selection-holder.d.ts.map delete mode 100644 dist/models/selection/selection-holder.js delete mode 100644 dist/models/selection/selection-holder.js.map delete mode 100644 dist/models/selection/selection.d.ts delete mode 100644 dist/models/selection/selection.d.ts.map delete mode 100644 dist/models/selection/selection.js delete mode 100644 dist/models/selection/selection.js.map delete mode 100644 dist/models/sorting/bucket-sort.d.ts delete mode 100644 dist/models/sorting/bucket-sort.d.ts.map delete mode 100644 dist/models/sorting/bucket-sort.js delete mode 100644 dist/models/sorting/bucket-sort.js.map delete mode 100644 dist/models/sorting/counting-sort.d.ts delete mode 100644 dist/models/sorting/counting-sort.d.ts.map delete mode 100644 dist/models/sorting/counting-sort.js delete mode 100644 dist/models/sorting/counting-sort.js.map delete mode 100644 dist/models/sorting/heap-sort.d.ts delete mode 100644 dist/models/sorting/heap-sort.d.ts.map delete mode 100644 dist/models/sorting/heap-sort.js delete mode 100644 dist/models/sorting/heap-sort.js.map delete mode 100644 dist/models/sorting/index.d.ts delete mode 100644 dist/models/sorting/index.d.ts.map delete mode 100644 dist/models/sorting/index.js delete mode 100644 dist/models/sorting/index.js.map delete mode 100644 dist/models/sorting/insertion-sort.d.ts delete mode 100644 dist/models/sorting/insertion-sort.d.ts.map delete mode 100644 dist/models/sorting/insertion-sort.js delete mode 100644 dist/models/sorting/insertion-sort.js.map delete mode 100644 dist/models/sorting/merge-sort.d.ts delete mode 100644 dist/models/sorting/merge-sort.d.ts.map delete mode 100644 dist/models/sorting/merge-sort.js delete mode 100644 dist/models/sorting/merge-sort.js.map delete mode 100644 dist/models/sorting/quick-sort.d.ts delete mode 100644 dist/models/sorting/quick-sort.d.ts.map delete mode 100644 dist/models/sorting/quick-sort.js delete mode 100644 dist/models/sorting/quick-sort.js.map delete mode 100644 dist/models/sorting/radix-sort.d.ts delete mode 100644 dist/models/sorting/radix-sort.d.ts.map delete mode 100644 dist/models/sorting/radix-sort.js delete mode 100644 dist/models/sorting/radix-sort.js.map delete mode 100644 dist/models/transform-2d.d.ts delete mode 100644 dist/models/transform-2d.d.ts.map delete mode 100644 dist/models/transform-2d.js delete mode 100644 dist/models/transform-2d.js.map delete mode 100644 dist/node.d.ts delete mode 100644 dist/node.d.ts.map delete mode 100644 dist/node.js delete mode 100644 dist/node.js.map delete mode 100644 dist/physics/bounders-2d.d.ts delete mode 100644 dist/physics/bounders-2d.d.ts.map delete mode 100644 dist/physics/bounders-2d.js delete mode 100644 dist/physics/bounders-2d.js.map delete mode 100644 dist/physics/bounding-boxes/AABB3.d.ts delete mode 100644 dist/physics/bounding-boxes/AABB3.d.ts.map delete mode 100644 dist/physics/bounding-boxes/AABB3.js delete mode 100644 dist/physics/bounding-boxes/AABB3.js.map delete mode 100644 dist/physics/closest-2d.d.ts delete mode 100644 dist/physics/closest-2d.d.ts.map delete mode 100644 dist/physics/closest-2d.js delete mode 100644 dist/physics/closest-2d.js.map delete mode 100644 dist/physics/closest-3d.d.ts delete mode 100644 dist/physics/closest-3d.d.ts.map delete mode 100644 dist/physics/closest-3d.js delete mode 100644 dist/physics/closest-3d.js.map delete mode 100644 dist/physics/collisions-2d.d.ts delete mode 100644 dist/physics/collisions-2d.d.ts.map delete mode 100644 dist/physics/collisions-2d.js delete mode 100644 dist/physics/collisions-2d.js.map delete mode 100644 dist/physics/collisions-3d.d.ts delete mode 100644 dist/physics/collisions-3d.d.ts.map delete mode 100644 dist/physics/collisions-3d.js delete mode 100644 dist/physics/collisions-3d.js.map delete mode 100644 dist/physics/distances-2d.d.ts delete mode 100644 dist/physics/distances-2d.d.ts.map delete mode 100644 dist/physics/distances-2d.js delete mode 100644 dist/physics/distances-2d.js.map delete mode 100644 dist/physics/distances-3d.d.ts delete mode 100644 dist/physics/distances-3d.d.ts.map delete mode 100644 dist/physics/distances-3d.js delete mode 100644 dist/physics/distances-3d.js.map delete mode 100644 dist/physics/index.d.ts delete mode 100644 dist/physics/index.d.ts.map delete mode 100644 dist/physics/index.js delete mode 100644 dist/physics/index.js.map delete mode 100644 dist/physics/intersects-2d.d.ts delete mode 100644 dist/physics/intersects-2d.d.ts.map delete mode 100644 dist/physics/intersects-2d.js delete mode 100644 dist/physics/intersects-2d.js.map delete mode 100644 dist/physics/intersects-3d.d.ts delete mode 100644 dist/physics/intersects-3d.d.ts.map delete mode 100644 dist/physics/intersects-3d.js delete mode 100644 dist/physics/intersects-3d.js.map delete mode 100644 dist/physics/objects/2d/capsule.d.ts delete mode 100644 dist/physics/objects/2d/capsule.d.ts.map delete mode 100644 dist/physics/objects/2d/capsule.js delete mode 100644 dist/physics/objects/2d/capsule.js.map delete mode 100644 dist/physics/objects/2d/line.d.ts delete mode 100644 dist/physics/objects/2d/line.d.ts.map delete mode 100644 dist/physics/objects/2d/line.js delete mode 100644 dist/physics/objects/2d/line.js.map delete mode 100644 dist/physics/objects/2d/object2-d.d.ts delete mode 100644 dist/physics/objects/2d/object2-d.d.ts.map delete mode 100644 dist/physics/objects/2d/object2-d.js delete mode 100644 dist/physics/objects/2d/object2-d.js.map delete mode 100644 dist/physics/objects/2d/ray-2d.d.ts delete mode 100644 dist/physics/objects/2d/ray-2d.d.ts.map delete mode 100644 dist/physics/objects/2d/ray-2d.js delete mode 100644 dist/physics/objects/2d/ray-2d.js.map delete mode 100644 dist/physics/objects/2d/rect.d.ts delete mode 100644 dist/physics/objects/2d/rect.d.ts.map delete mode 100644 dist/physics/objects/2d/rect.js delete mode 100644 dist/physics/objects/2d/rect.js.map delete mode 100644 dist/physics/objects/2d/sphere.d.ts delete mode 100644 dist/physics/objects/2d/sphere.d.ts.map delete mode 100644 dist/physics/objects/2d/sphere.js delete mode 100644 dist/physics/objects/2d/sphere.js.map delete mode 100644 dist/physics/objects/2d/triangle.d.ts delete mode 100644 dist/physics/objects/2d/triangle.d.ts.map delete mode 100644 dist/physics/objects/2d/triangle.js delete mode 100644 dist/physics/objects/2d/triangle.js.map delete mode 100644 dist/physics/objects/index.d.ts delete mode 100644 dist/physics/objects/index.d.ts.map delete mode 100644 dist/physics/objects/index.js delete mode 100644 dist/physics/objects/index.js.map delete mode 100644 dist/physics/objects/object-convertors.d.ts delete mode 100644 dist/physics/objects/object-convertors.d.ts.map delete mode 100644 dist/physics/objects/object-convertors.js delete mode 100644 dist/physics/objects/object-convertors.js.map delete mode 100644 dist/tests/abstract-database.fixture.d.ts delete mode 100644 dist/tests/abstract-database.fixture.d.ts.map delete mode 100644 dist/tests/abstract-database.fixture.js delete mode 100644 dist/tests/abstract-database.fixture.js.map delete mode 100644 dist/tests/abstract.fixture.d.ts delete mode 100644 dist/tests/abstract.fixture.d.ts.map delete mode 100644 dist/tests/abstract.fixture.js delete mode 100644 dist/tests/abstract.fixture.js.map delete mode 100644 dist/tests/abstract.mapper.d.ts delete mode 100644 dist/tests/abstract.mapper.d.ts.map delete mode 100644 dist/tests/abstract.mapper.js delete mode 100644 dist/tests/abstract.mapper.js.map delete mode 100644 dist/tests/paginate.model.d.ts delete mode 100644 dist/tests/paginate.model.d.ts.map delete mode 100644 dist/tests/paginate.model.js delete mode 100644 dist/tests/paginate.model.js.map delete mode 100644 dist/tsconfig.cjs.tsbuildinfo delete mode 100644 dist/types/helpers/min-max-2d.interface.d.ts delete mode 100644 dist/types/helpers/min-max-2d.interface.d.ts.map delete mode 100644 dist/types/helpers/min-max-2d.interface.js delete mode 100644 dist/types/helpers/min-max-2d.interface.js.map delete mode 100644 dist/types/helpers/min-max-3d.interface.d.ts delete mode 100644 dist/types/helpers/min-max-3d.interface.d.ts.map delete mode 100644 dist/types/helpers/min-max-3d.interface.js delete mode 100644 dist/types/helpers/min-max-3d.interface.js.map delete mode 100644 dist/types/helpers/pos-size-2d.d.ts delete mode 100644 dist/types/helpers/pos-size-2d.d.ts.map delete mode 100644 dist/types/helpers/pos-size-2d.js delete mode 100644 dist/types/helpers/pos-size-2d.js.map delete mode 100644 dist/types/helpers/pos-size-3d.d.ts delete mode 100644 dist/types/helpers/pos-size-3d.d.ts.map delete mode 100644 dist/types/helpers/pos-size-3d.js delete mode 100644 dist/types/helpers/pos-size-3d.js.map delete mode 100644 dist/types/helpers/xywh.d.ts delete mode 100644 dist/types/helpers/xywh.d.ts.map delete mode 100644 dist/types/helpers/xywh.js delete mode 100644 dist/types/helpers/xywh.js.map delete mode 100644 dist/types/helpers/xyzwhd.d.ts delete mode 100644 dist/types/helpers/xyzwhd.d.ts.map delete mode 100644 dist/types/helpers/xyzwhd.js delete mode 100644 dist/types/helpers/xyzwhd.js.map delete mode 100644 dist/types/horizontal-align.type.d.ts delete mode 100644 dist/types/horizontal-align.type.d.ts.map delete mode 100644 dist/types/horizontal-align.type.js delete mode 100644 dist/types/horizontal-align.type.js.map delete mode 100644 dist/types/index.d.ts delete mode 100644 dist/types/index.d.ts.map delete mode 100644 dist/types/index.js delete mode 100644 dist/types/index.js.map delete mode 100644 dist/types/key-value.interface.d.ts delete mode 100644 dist/types/key-value.interface.d.ts.map delete mode 100644 dist/types/key-value.interface.js delete mode 100644 dist/types/key-value.interface.js.map delete mode 100644 dist/types/nested-string-map.interface.d.ts delete mode 100644 dist/types/nested-string-map.interface.d.ts.map delete mode 100644 dist/types/nested-string-map.interface.js delete mode 100644 dist/types/nested-string-map.interface.js.map delete mode 100644 dist/types/object-entry.interface.d.ts delete mode 100644 dist/types/object-entry.interface.d.ts.map delete mode 100644 dist/types/object-entry.interface.js delete mode 100644 dist/types/object-entry.interface.js.map delete mode 100644 dist/types/optional.type.d.ts delete mode 100644 dist/types/optional.type.d.ts.map delete mode 100644 dist/types/optional.type.js delete mode 100644 dist/types/optional.type.js.map delete mode 100644 dist/types/prop.type.d.ts delete mode 100644 dist/types/prop.type.d.ts.map delete mode 100644 dist/types/prop.type.js delete mode 100644 dist/types/prop.type.js.map delete mode 100644 dist/types/property-decorator.type.d.ts delete mode 100644 dist/types/property-decorator.type.d.ts.map delete mode 100644 dist/types/property-decorator.type.js delete mode 100644 dist/types/property-decorator.type.js.map delete mode 100644 dist/types/ray2D.d.ts delete mode 100644 dist/types/ray2D.d.ts.map delete mode 100644 dist/types/ray2D.js delete mode 100644 dist/types/ray2D.js.map delete mode 100644 dist/types/ray3D.d.ts delete mode 100644 dist/types/ray3D.d.ts.map delete mode 100644 dist/types/ray3D.js delete mode 100644 dist/types/ray3D.js.map delete mode 100644 dist/types/round-data.type.d.ts delete mode 100644 dist/types/round-data.type.d.ts.map delete mode 100644 dist/types/round-data.type.js delete mode 100644 dist/types/round-data.type.js.map delete mode 100644 dist/types/size.interaface.d.ts delete mode 100644 dist/types/size.interaface.d.ts.map delete mode 100644 dist/types/size.interaface.js delete mode 100644 dist/types/size.interaface.js.map delete mode 100644 dist/types/string-map.interface.d.ts delete mode 100644 dist/types/string-map.interface.d.ts.map delete mode 100644 dist/types/string-map.interface.js delete mode 100644 dist/types/string-map.interface.js.map delete mode 100644 dist/types/text-options.interface.d.ts delete mode 100644 dist/types/text-options.interface.d.ts.map delete mode 100644 dist/types/text-options.interface.js delete mode 100644 dist/types/text-options.interface.js.map delete mode 100644 dist/types/type.interface.d.ts delete mode 100644 dist/types/type.interface.d.ts.map delete mode 100644 dist/types/type.interface.js delete mode 100644 dist/types/type.interface.js.map delete mode 100644 dist/types/unit-number.type.d.ts delete mode 100644 dist/types/unit-number.type.d.ts.map delete mode 100644 dist/types/unit-number.type.js delete mode 100644 dist/types/unit-number.type.js.map delete mode 100644 dist/types/vertical-align.type.d.ts delete mode 100644 dist/types/vertical-align.type.d.ts.map delete mode 100644 dist/types/vertical-align.type.js delete mode 100644 dist/types/vertical-align.type.js.map delete mode 100644 dist/utils/DomUtils.d.ts delete mode 100644 dist/utils/DomUtils.d.ts.map delete mode 100644 dist/utils/DomUtils.js delete mode 100644 dist/utils/DomUtils.js.map delete mode 100644 dist/utils/FileUtils.d.ts delete mode 100644 dist/utils/FileUtils.d.ts.map delete mode 100644 dist/utils/FileUtils.js delete mode 100644 dist/utils/FileUtils.js.map delete mode 100644 dist/utils/Runtime.d.ts delete mode 100644 dist/utils/Runtime.d.ts.map delete mode 100644 dist/utils/Runtime.js delete mode 100644 dist/utils/Runtime.js.map delete mode 100644 dist/utils/analytics-utils.d.ts delete mode 100644 dist/utils/analytics-utils.d.ts.map delete mode 100644 dist/utils/analytics-utils.js delete mode 100644 dist/utils/analytics-utils.js.map delete mode 100644 dist/utils/array-utils.d.ts delete mode 100644 dist/utils/array-utils.d.ts.map delete mode 100644 dist/utils/array-utils.js delete mode 100644 dist/utils/array-utils.js.map delete mode 100644 dist/utils/coerce-util.d.ts delete mode 100644 dist/utils/coerce-util.d.ts.map delete mode 100644 dist/utils/coerce-util.js delete mode 100644 dist/utils/coerce-util.js.map delete mode 100644 dist/utils/color-utils.d.ts delete mode 100644 dist/utils/color-utils.d.ts.map delete mode 100644 dist/utils/color-utils.js delete mode 100644 dist/utils/color-utils.js.map delete mode 100644 dist/utils/date-utils.d.ts delete mode 100644 dist/utils/date-utils.d.ts.map delete mode 100644 dist/utils/date-utils.js delete mode 100644 dist/utils/date-utils.js.map delete mode 100644 dist/utils/html-utils.d.ts delete mode 100644 dist/utils/html-utils.d.ts.map delete mode 100644 dist/utils/html-utils.js delete mode 100644 dist/utils/html-utils.js.map delete mode 100644 dist/utils/image-utils.d.ts delete mode 100644 dist/utils/image-utils.d.ts.map delete mode 100644 dist/utils/image-utils.js delete mode 100644 dist/utils/image-utils.js.map delete mode 100644 dist/utils/index.d.ts delete mode 100644 dist/utils/index.d.ts.map delete mode 100644 dist/utils/index.js delete mode 100644 dist/utils/index.js.map delete mode 100644 dist/utils/input-utils.d.ts delete mode 100644 dist/utils/input-utils.d.ts.map delete mode 100644 dist/utils/input-utils.js delete mode 100644 dist/utils/input-utils.js.map delete mode 100644 dist/utils/math-utils.d.ts delete mode 100644 dist/utils/math-utils.d.ts.map delete mode 100644 dist/utils/math-utils.js delete mode 100644 dist/utils/math-utils.js.map delete mode 100644 dist/utils/misc-utils.d.ts delete mode 100644 dist/utils/misc-utils.d.ts.map delete mode 100644 dist/utils/misc-utils.js delete mode 100644 dist/utils/misc-utils.js.map delete mode 100644 dist/utils/net-client-utils.d.ts delete mode 100644 dist/utils/net-client-utils.d.ts.map delete mode 100644 dist/utils/net-client-utils.js delete mode 100644 dist/utils/net-client-utils.js.map delete mode 100644 dist/utils/net-server-utils.d.ts delete mode 100644 dist/utils/net-server-utils.d.ts.map delete mode 100644 dist/utils/net-server-utils.js delete mode 100644 dist/utils/net-server-utils.js.map delete mode 100644 dist/utils/object-utils.d.ts delete mode 100644 dist/utils/object-utils.d.ts.map delete mode 100644 dist/utils/object-utils.js delete mode 100644 dist/utils/object-utils.js.map delete mode 100644 dist/utils/parser-utils.d.ts delete mode 100644 dist/utils/parser-utils.d.ts.map delete mode 100644 dist/utils/parser-utils.js delete mode 100644 dist/utils/parser-utils.js.map delete mode 100644 dist/utils/process-utils.d.ts delete mode 100644 dist/utils/process-utils.d.ts.map delete mode 100644 dist/utils/process-utils.js delete mode 100644 dist/utils/process-utils.js.map delete mode 100644 dist/utils/random-utils.d.ts delete mode 100644 dist/utils/random-utils.d.ts.map delete mode 100644 dist/utils/random-utils.js delete mode 100644 dist/utils/random-utils.js.map delete mode 100644 dist/utils/reflection-utils.d.ts delete mode 100644 dist/utils/reflection-utils.d.ts.map delete mode 100644 dist/utils/reflection-utils.js delete mode 100644 dist/utils/reflection-utils.js.map delete mode 100644 dist/utils/sorted-array-utils.d.ts delete mode 100644 dist/utils/sorted-array-utils.d.ts.map delete mode 100644 dist/utils/sorted-array-utils.js delete mode 100644 dist/utils/sorted-array-utils.js.map delete mode 100644 dist/utils/string-checkers.d.ts delete mode 100644 dist/utils/string-checkers.d.ts.map delete mode 100644 dist/utils/string-checkers.js delete mode 100644 dist/utils/string-checkers.js.map delete mode 100644 dist/utils/string-utils.d.ts delete mode 100644 dist/utils/string-utils.d.ts.map delete mode 100644 dist/utils/string-utils.js delete mode 100644 dist/utils/string-utils.js.map delete mode 100644 dist/utils/svg-utils.d.ts delete mode 100644 dist/utils/svg-utils.d.ts.map delete mode 100644 dist/utils/svg-utils.js delete mode 100644 dist/utils/svg-utils.js.map delete mode 100644 dist/utils/time-utils.d.ts delete mode 100644 dist/utils/time-utils.d.ts.map delete mode 100644 dist/utils/time-utils.js delete mode 100644 dist/utils/time-utils.js.map delete mode 100644 dist/validators/index.d.ts delete mode 100644 dist/validators/index.d.ts.map delete mode 100644 dist/validators/index.js delete mode 100644 dist/validators/index.js.map delete mode 100644 dist/validators/misc-validators.d.ts delete mode 100644 dist/validators/misc-validators.d.ts.map delete mode 100644 dist/validators/misc-validators.js delete mode 100644 dist/validators/misc-validators.js.map delete mode 100644 dist/web.d.ts delete mode 100644 dist/web.d.ts.map delete mode 100644 dist/web.js delete mode 100644 dist/web.js.map diff --git a/dist/GUtils.d.ts b/dist/GUtils.d.ts deleted file mode 100644 index 91385ec7..00000000 --- a/dist/GUtils.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export * from "./enums"; -export * from "./config/gtools-config.interface"; -export * from "./config/gtools-config"; -export * from "./decorators"; -export * from "./dom/canvas-manager"; -export * from "./dom/canvas-utils"; -export * from "./dom/dom-get"; -export * from "./dom/types/canvas-shadow-config"; -export * from "./components"; -export * from "./errors"; -export * from "./validators"; -export * from "./misc"; -export * from "./math"; -export * from "./physics"; -export * from "./models"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -export * from "./types"; -export * from "./utils"; -//# sourceMappingURL=GUtils.d.ts.map \ No newline at end of file diff --git a/dist/GUtils.d.ts.map b/dist/GUtils.d.ts.map deleted file mode 100644 index 8ffb630f..00000000 --- a/dist/GUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GUtils.d.ts","sourceRoot":"","sources":["../src/GUtils.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AAMjD,cAAc,cAAc,CAAC;AAE7B,cAAc,UAAU,CAAC;AAEzB,cAAc,cAAc,CAAC;AAE7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,UAAU,CAAC;AAEzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/GUtils.js b/dist/GUtils.js deleted file mode 100644 index 8afa594c..00000000 --- a/dist/GUtils.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./enums"), exports); -__exportStar(require("./config/gtools-config.interface"), exports); -__exportStar(require("./config/gtools-config"), exports); -__exportStar(require("./decorators"), exports); -__exportStar(require("./dom/canvas-manager"), exports); -__exportStar(require("./dom/canvas-utils"), exports); -__exportStar(require("./dom/dom-get"), exports); -__exportStar(require("./dom/types/canvas-shadow-config"), exports); -__exportStar(require("./components"), exports); -__exportStar(require("./errors"), exports); -__exportStar(require("./validators"), exports); -__exportStar(require("./misc"), exports); -__exportStar(require("./math"), exports); -__exportStar(require("./physics"), exports); -__exportStar(require("./models"), exports); -__exportStar(require("./tests/abstract-database.fixture"), exports); -__exportStar(require("./tests/abstract.fixture"), exports); -__exportStar(require("./tests/abstract.mapper"), exports); -__exportStar(require("./tests/paginate.model"), exports); -__exportStar(require("./types"), exports); -__exportStar(require("./utils"), exports); -//# sourceMappingURL=GUtils.js.map \ No newline at end of file diff --git a/dist/GUtils.js.map b/dist/GUtils.js.map deleted file mode 100644 index 67ef168f..00000000 --- a/dist/GUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GUtils.js","sourceRoot":"","sources":["../src/GUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AAExB,mEAAiD;AACjD,yDAAuC;AAEvC,+CAA6B;AAC7B,uDAAqC;AACrC,qDAAmC;AACnC,gDAA8B;AAC9B,mEAAiD;AAMjD,+CAA6B;AAE7B,2CAAyB;AAEzB,+CAA6B;AAE7B,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAE1B,2CAAyB;AAEzB,oEAAkD;AAClD,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC;AAEvC,0CAAwB;AACxB,0CAAwB"} \ No newline at end of file diff --git a/dist/MockData.d.ts b/dist/MockData.d.ts deleted file mode 100644 index 32aaccdd..00000000 --- a/dist/MockData.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export declare class MockData { - static readonly timesHHmmss: string[]; - static readonly timesHHmm: string[]; - static readonly timesHmm: string[]; - static readonly invalidTimes: string[]; - static readonly charactersString = "+=\u00A7,.-?:_\"!)/()<>*'$[]}{*&^%$#@!/\\|#&@{}^'`][~|\u20AC\u00B6\u2190\u2193\u2192\u00BA\u2019\u2018\u00A9><\u00A7\u00AE\u00AA`\u2190'\u2193&\u00D7\u00F7|\u00F7\u00D7"; - static readonly characters: string[]; - static readonly charactersCaseAbleString = "\u00FE\u00DE\u0131\u0166\u0167\u014AE\u0110\u0111N\u03A9"; - static readonly charactersCaseAble: string[]; - static readonly charactersEmpty: string[]; - static readonly charactersNotEmpty: string[]; - static readonly numbersString = "0123456789"; - static readonly numbers: string[]; - static readonly randomArray: unknown[]; - static readonly stringHelloWorldIAmComputer: string[]; - static readonly upperSnakeCase: string[]; - static readonly lowerSnakeCase: string[]; - static readonly upperCamelCase: string[]; - static readonly lowerCamelCase: string[]; - static readonly randomStrings: string[]; - static readonly man: string[]; - static readonly woman: string[]; - static readonly nothing: string[]; - static readonly phoneNumbers: string[]; - static readonly emails: string[]; - static readonly notEmails: string[]; - static functionSum(a: number, b: number): number; -} -//# sourceMappingURL=MockData.d.ts.map \ No newline at end of file diff --git a/dist/MockData.d.ts.map b/dist/MockData.d.ts.map deleted file mode 100644 index 619a4cad..00000000 --- a/dist/MockData.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MockData.d.ts","sourceRoot":"","sources":["../src/MockData.ts"],"names":[],"mappings":"AACA,qBAAa,QAAQ;IACjB,gBAAuB,WAAW,EAAE,MAAM,EAAE,CAM1C;IAEF,gBAAuB,SAAS,EAAE,MAAM,EAAE,CAOxC;IAEF,gBAAuB,QAAQ,EAAE,MAAM,EAAE,CAIvC;IAEF,gBAAuB,YAAY,EAAE,MAAM,EAAE,CAU3C;IAEF,gBAAuB,gBAAgB,8KAA+E;IAEtH,gBAAuB,UAAU,WAAuC;IAExE,gBAAuB,wBAAwB,8DAAiB;IAEhE,gBAAuB,kBAAkB,EAAE,MAAM,EAAE,CAA+C;IAElG,gBAAuB,eAAe,EAAE,MAAM,EAAE,CAW9C;IAEF,gBAAuB,kBAAkB,EAAE,MAAM,EAAE,CAkBjD;IAEF,gBAAuB,aAAa,gBAAgB;IAEpD,gBAAuB,OAAO,WAAoC;IAElE,gBAAuB,WAAW,EAAE,OAAO,EAAE,CAgB3C;IAEF,gBAAuB,2BAA2B,EAAE,MAAM,EAAE,CAU1D;IAEF,gBAAuB,cAAc,EAAE,MAAM,EAAE,CAG7C;IAEF,gBAAuB,cAAc,EAAE,MAAM,EAAE,CAG7C;IAEF,gBAAuB,cAAc,EAAE,MAAM,EAAE,CAG7C;IAEF,gBAAuB,cAAc,EAAE,MAAM,EAAE,CAG7C;IAEF,gBAAuB,aAAa,EAAE,MAAM,EAAE,CAM5C;IAEF,gBAAuB,GAAG,WAA6D;IAEvF,gBAAuB,KAAK,WAAiF;IAE7G,gBAAuB,OAAO,EAAE,MAAM,EAAE,CAOtC;IAEF,gBAAuB,YAAY,EAAE,MAAM,EAAE,CAe3C;IAEF,gBAAuB,MAAM,EAAE,MAAM,EAAE,CAmBrC;IAEF,gBAAuB,SAAS,EAAE,MAAM,EAAE,CAUxC;WAEY,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;CAO1D"} \ No newline at end of file diff --git a/dist/MockData.js b/dist/MockData.js deleted file mode 100644 index a113d8b6..00000000 --- a/dist/MockData.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MockData = void 0; -var MockData = (function () { - function MockData() { - } - MockData.functionSum = function (a, b) { - if (isNaN(a) || isNaN(b)) { - throw new Error("Wrong params"); - } - return a + b; - }; - MockData.timesHHmmss = [ - "12:00:00", - "01:09:09", - "23:59:59", - "00:59:59", - "23:01:01", - ]; - MockData.timesHHmm = [ - "12:53", - "12:00", - "01:09", - "23:59", - "00:59", - "23:01", - ]; - MockData.timesHmm = [ - "1:59", - "9:09", - "9:09", - ]; - MockData.invalidTimes = [ - "24:00", - "24:13:56", - "12:61", - "12:60", - "12:59:60", - "30:61", - "12:12:61", - "12:61:61", - "30:61:61", - ]; - MockData.charactersString = "+=§,.-?:_\"!)/()<>*'$[]}{*&^%$#@!/\\|#&@{}^'`][~|€¶←↓→º’‘©><§®ª`←'↓&×÷|÷×"; - MockData.characters = MockData.charactersString.split(""); - MockData.charactersCaseAbleString = "þÞıŦŧŊEĐđNΩ"; - MockData.charactersCaseAble = MockData.charactersCaseAbleString.split(""); - MockData.charactersEmpty = [ - " ", - " ", - "", - " ", - "\t", - "\xa0", - "\t \xa0\t \xa0", - " ", - "\t\t", - "\xa0\xa0", - ]; - MockData.charactersNotEmpty = [ - " 3 ", - "a", - "0", - "[]", - "A", - "{}", - ".", - "123", - "gabriel", - "Ich bin Hanz", - "@", - "00000000000000000000", - "\\", - "/", - "********", - "______", - ]; - MockData.numbersString = "0123456789"; - MockData.numbers = MockData.numbersString.split(""); - MockData.randomArray = [ - "a", - 1, - 2.32, - true, - function (a, b) { return a + b; }, - {}, - null, - undefined, - Infinity, - NaN, - { - a: "aa", - b: "bb", - }, - ["a", 1, true], - ]; - MockData.stringHelloWorldIAmComputer = [ - "Hello world i am computer", - "HelloWorldIAmComputer", - "helloWorldIAmComputer", - "hello_world_i_am_computer", - "HELLO_WORLD_I_AM_COMPUTER", - "--------Hello world---i am computer____", - "hello_World i Am-computer", - "hello_World i Am-computer-------", - "-_Hello___world-i--AM computer", - ]; - MockData.upperSnakeCase = [ - "HELLO_WORLD", - "HELLO_MY_NAME_IS_CHOSE", - ]; - MockData.lowerSnakeCase = [ - "hello_world", - "hello_my_name_is_chose", - ]; - MockData.upperCamelCase = [ - "HelloWorld", - "HelloMyNameIsChose", - ]; - MockData.lowerCamelCase = [ - "helloWorld", - "helloMyNameIsChose", - ]; - MockData.randomStrings = __spreadArrays(MockData.stringHelloWorldIAmComputer, MockData.upperSnakeCase, MockData.lowerSnakeCase, MockData.upperCamelCase, MockData.lowerCamelCase); - MockData.man = ["Muž", "muz", "MAN", "m", "boY", "chLaPec", "M", "male"]; - MockData.woman = ["Žena", "zena", "WOMAN", "w", "z", "GiRl", "Dievča", "woman", "female", "f"]; - MockData.nothing = __spreadArrays(MockData.charactersEmpty, MockData.randomStrings, MockData.numbers, MockData.characters, MockData.charactersCaseAble, MockData.charactersNotEmpty); - MockData.phoneNumbers = [ - "+421905123456", - "00421905123456", - "0905123456", - "+421 905 123 456", - "00421905 123 456", - "0905 123 456", - "(123) 456-7890", - "(123)456-7890", - "(048)99-99-999", - "123-456-7890", - "123.456.7890", - "1234567890", - "+31636363634", - "075-63546725", - ]; - MockData.emails = [ - "abc@def.com", - "my@name.is.chorche.com", - "foo.bar@machine.subdomain.example.museum", - "Abc@example.com", - "Abc.123@example.com", - "user+mailbox/department=shipping@example.com", - "\"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual\"@strange.example.com", - "!#$%&'*+-/=?^_`.{|}~@example.com", - "\"()<>[]:,;@\\\"!#$%&'-/=?^_`{}| ~.a\"@example.org", - "\"Abc@def\"@example.com", - "\"Fred Bloggs\"@example.com", - "\"Joe.\\Blow\"@example.com", - ]; - MockData.notEmails = __spreadArrays([ - "Abc.example.com", - "A@b@c@example.com", - "a\"b(c)d,e:f;gi[j\\k]l@example.com", - "just\"not\"right@example.com", - "this is\"notallowed@example.com", - "this still\"not\\allowed@example.com", - "john..doe@example.com", - "john.doe@example..com" - ], MockData.randomStrings); - return MockData; -}()); -exports.MockData = MockData; -//# sourceMappingURL=MockData.js.map \ No newline at end of file diff --git a/dist/MockData.js.map b/dist/MockData.js.map deleted file mode 100644 index e6bdb3b8..00000000 --- a/dist/MockData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MockData.js","sourceRoot":"","sources":["../src/MockData.ts"],"names":[],"mappings":";;;;;;;;;;AACA;IAAA;IAiNA,CAAC;IAPiB,oBAAW,GAAzB,UAA0B,CAAS,EAAE,CAAS;QAC1C,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SACnC;QAED,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IA/MsB,oBAAW,GAAa;QAC3C,UAAU;QACV,UAAU;QACV,UAAU;QACV,UAAU;QACV,UAAU;KACb,CAAC;IAEqB,kBAAS,GAA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ACd,cAAc;QACd,YAAY;QACZ,cAAc;QACd,cAAc;KACjB,CAAC;IAEqB,eAAM,GAAa;QACtC,aAAa;QACb,wBAAwB;QACxB,0CAA0C;QAC1C,iBAAiB;QAIjB,qBAAqB;QACrB,8CAA8C;QAC9C,0EAA0E;QAC1E,kCAAkC;QAClC,oDAAoD;QACpD,yBAAyB;QACzB,6BAA6B;QAC7B,4BAA4B;KAI/B,CAAC;IAEqB,kBAAS;QAC5B,iBAAiB;QACjB,mBAAmB;QACnB,uCAAuC;QACvC,8BAA8B;QAC9B,iCAAiC;QACjC,sCAAsC;QACtC,uBAAuB;QACvB,uBAAuB;OACpB,QAAQ,CAAC,aAAa,EAC3B;IASN,eAAC;CAAA,AAjND,IAiNC;AAjNY,4BAAQ"} \ No newline at end of file diff --git a/dist/_esm/GUtils.js b/dist/_esm/GUtils.js deleted file mode 100644 index 60145d2c..00000000 --- a/dist/_esm/GUtils.js +++ /dev/null @@ -1,22 +0,0 @@ -export * from "./enums"; -export * from "./config/gtools-config.interface"; -export * from "./config/gtools-config"; -export * from "./decorators"; -export * from "./dom/canvas-manager"; -export * from "./dom/canvas-utils"; -export * from "./dom/dom-get"; -export * from "./dom/types/canvas-shadow-config"; -export * from "./components"; -export * from "./errors"; -export * from "./validators"; -export * from "./misc"; -export * from "./math"; -export * from "./physics"; -export * from "./models"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -export * from "./types"; -export * from "./utils"; -//# sourceMappingURL=GUtils.js.map \ No newline at end of file diff --git a/dist/_esm/GUtils.js.map b/dist/_esm/GUtils.js.map deleted file mode 100644 index 05aeecf7..00000000 --- a/dist/_esm/GUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GUtils.js","sourceRoot":"","sources":["../../src/GUtils.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AAMjD,cAAc,cAAc,CAAC;AAE7B,cAAc,UAAU,CAAC;AAEzB,cAAc,cAAc,CAAC;AAE7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,UAAU,CAAC;AAEzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/_esm/MockData.js b/dist/_esm/MockData.js deleted file mode 100644 index f999cd14..00000000 --- a/dist/_esm/MockData.js +++ /dev/null @@ -1,178 +0,0 @@ -export class MockData { - static functionSum(a, b) { - if (isNaN(a) || isNaN(b)) { - throw new Error("Wrong params"); - } - return a + b; - } -} -MockData.timesHHmmss = [ - "12:00:00", - "01:09:09", - "23:59:59", - "00:59:59", - "23:01:01", -]; -MockData.timesHHmm = [ - "12:53", - "12:00", - "01:09", - "23:59", - "00:59", - "23:01", -]; -MockData.timesHmm = [ - "1:59", - "9:09", - "9:09", -]; -MockData.invalidTimes = [ - "24:00", - "24:13:56", - "12:61", - "12:60", - "12:59:60", - "30:61", - "12:12:61", - "12:61:61", - "30:61:61", -]; -MockData.charactersString = "+=§,.-?:_\"!)/()<>*'$[]}{*&^%$#@!/\\|#&@{}^'`][~|€¶←↓→º’‘©><§®ª`←'↓&×÷|÷×"; -MockData.characters = MockData.charactersString.split(""); -MockData.charactersCaseAbleString = "þÞıŦŧŊEĐđNΩ"; -MockData.charactersCaseAble = MockData.charactersCaseAbleString.split(""); -MockData.charactersEmpty = [ - " ", - " ", - "", - " ", - "\t", - "\xa0", - "\t \xa0\t \xa0", - " ", - "\t\t", - "\xa0\xa0", -]; -MockData.charactersNotEmpty = [ - " 3 ", - "a", - "0", - "[]", - "A", - "{}", - ".", - "123", - "gabriel", - "Ich bin Hanz", - "@", - "00000000000000000000", - "\\", - "/", - "********", - "______", -]; -MockData.numbersString = "0123456789"; -MockData.numbers = MockData.numbersString.split(""); -MockData.randomArray = [ - "a", - 1, - 2.32, - true, - (a, b) => a + b, - {}, - null, - undefined, - Infinity, - NaN, - { - a: "aa", - b: "bb", - }, - ["a", 1, true], -]; -MockData.stringHelloWorldIAmComputer = [ - "Hello world i am computer", - "HelloWorldIAmComputer", - "helloWorldIAmComputer", - "hello_world_i_am_computer", - "HELLO_WORLD_I_AM_COMPUTER", - "--------Hello world---i am computer____", - "hello_World i Am-computer", - "hello_World i Am-computer-------", - "-_Hello___world-i--AM computer", -]; -MockData.upperSnakeCase = [ - "HELLO_WORLD", - "HELLO_MY_NAME_IS_CHOSE", -]; -MockData.lowerSnakeCase = [ - "hello_world", - "hello_my_name_is_chose", -]; -MockData.upperCamelCase = [ - "HelloWorld", - "HelloMyNameIsChose", -]; -MockData.lowerCamelCase = [ - "helloWorld", - "helloMyNameIsChose", -]; -MockData.randomStrings = [ - ...MockData.stringHelloWorldIAmComputer, - ...MockData.upperSnakeCase, - ...MockData.lowerSnakeCase, - ...MockData.upperCamelCase, - ...MockData.lowerCamelCase, -]; -MockData.man = ["Muž", "muz", "MAN", "m", "boY", "chLaPec", "M", "male"]; -MockData.woman = ["Žena", "zena", "WOMAN", "w", "z", "GiRl", "Dievča", "woman", "female", "f"]; -MockData.nothing = [ - ...MockData.charactersEmpty, - ...MockData.randomStrings, - ...MockData.numbers, - ...MockData.characters, - ...MockData.charactersCaseAble, - ...MockData.charactersNotEmpty, -]; -MockData.phoneNumbers = [ - "+421905123456", - "00421905123456", - "0905123456", - "+421 905 123 456", - "00421905 123 456", - "0905 123 456", - "(123) 456-7890", - "(123)456-7890", - "(048)99-99-999", - "123-456-7890", - "123.456.7890", - "1234567890", - "+31636363634", - "075-63546725", -]; -MockData.emails = [ - "abc@def.com", - "my@name.is.chorche.com", - "foo.bar@machine.subdomain.example.museum", - "Abc@example.com", - "Abc.123@example.com", - "user+mailbox/department=shipping@example.com", - "\"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual\"@strange.example.com", - "!#$%&'*+-/=?^_`.{|}~@example.com", - "\"()<>[]:,;@\\\"!#$%&'-/=?^_`{}| ~.a\"@example.org", - "\"Abc@def\"@example.com", - "\"Fred Bloggs\"@example.com", - "\"Joe.\\Blow\"@example.com", -]; -MockData.notEmails = [ - "Abc.example.com", - "A@b@c@example.com", - "a\"b(c)d,e:f;gi[j\\k]l@example.com", - "just\"not\"right@example.com", - "this is\"notallowed@example.com", - "this still\"not\\allowed@example.com", - "john..doe@example.com", - "john.doe@example..com", - ...MockData.randomStrings, -]; -//# sourceMappingURL=MockData.js.map \ No newline at end of file diff --git a/dist/_esm/MockData.js.map b/dist/_esm/MockData.js.map deleted file mode 100644 index bd6e9efb..00000000 --- a/dist/_esm/MockData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MockData.js","sourceRoot":"","sources":["../../src/MockData.ts"],"names":[],"mappings":"AACA,MAAM,OAAO,QAAQ;IA0MV,MAAM,CAAC,WAAW,CAAC,CAAS,EAAE,CAAS;QAC1C,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SACnC;QAED,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;;AA/MsB,oBAAW,GAAa;IAC3C,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACb,CAAC;AAEqB,kBAAS,GAAa;IACzC,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;CACV,CAAC;AAEqB,iBAAQ,GAAa;IACxC,MAAM;IACN,MAAM;IACN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c;CACjB,CAAC;AAEqB,eAAM,GAAa;IACtC,aAAa;IACb,wBAAwB;IACxB,0CAA0C;IAC1C,iBAAiB;IAIjB,qBAAqB;IACrB,8CAA8C;IAC9C,0EAA0E;IAC1E,kCAAkC;IAClC,oDAAoD;IACpD,yBAAyB;IACzB,6BAA6B;IAC7B,4BAA4B;CAI/B,CAAC;AAEqB,kBAAS,GAAa;IACzC,iBAAiB;IACjB,mBAAmB;IACnB,uCAAuC;IACvC,8BAA8B;IAC9B,iCAAiC;IACjC,sCAAsC;IACtC,uBAAuB;IACvB,uBAAuB;IACvB,GAAG,QAAQ,CAAC,aAAa;CAC5B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/common.js b/dist/_esm/common.js deleted file mode 100644 index 1d3c83f3..00000000 --- a/dist/_esm/common.js +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./utils/string-checkers"; -export { Gender } from "./models/gender.model"; -export * from "./enums/encodings.enum"; -export * from "./enums/file-types.enum"; -export * from "./enums/http-status-codes.enum"; -export * from "./enums/keys.enum"; -export * from "./components/key-value-counter"; -export * from "./components/number-counter"; -export * from "./components/file-manager"; -export * from "./components/paginator"; -export * from "./math/vector2f"; -export { initConfig } from "./config/gtools-config"; -export * from "./types/key-value.interface"; -export * from "./types/string-map.interface"; -export * from "./types/size.interaface"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/_esm/common.js.map b/dist/_esm/common.js.map deleted file mode 100644 index ae9ff747..00000000 --- a/dist/_esm/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AAIxC,OAAO,EAAc,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAIlC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AAIvC,cAAc,iBAAiB,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AAIxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/components/bidirectional-graph.js b/dist/_esm/components/bidirectional-graph.js deleted file mode 100644 index 35f9f3c7..00000000 --- a/dist/_esm/components/bidirectional-graph.js +++ /dev/null @@ -1,88 +0,0 @@ -export class BidirectionalGraph { - constructor(comparator = (a, b) => a === b) { - this.comparator = comparator; - this.map = new Map(); - } - get numberOfVertices() { - return this.map.size; - } - cleanUp() { - this.map.clear(); - } - getEdges() { - const result = []; - const processedKeys = []; - this.map.forEach((value, vertexA) => { - value.forEach((vertexB) => { - if (processedKeys.some((v) => this.comparator(v, vertexB))) { - return; - } - result.push([vertexA, vertexB]); - }); - processedKeys.push(vertexA); - }); - return result; - } - hasVertex(item) { - return this.map.has(item); - } - removeVertex(vertex, force = false) { - const itemValues = this.map.get(vertex); - if (!itemValues) { - return; - } - if (!force && itemValues.length) { - console.warn("Vertex contains connections"); - return; - } - this.map.delete(vertex); - itemValues.forEach((point) => { - this.map.set(point, this.require(point).filter((p) => !this.comparator(p, vertex))); - }); - } - removeDisconnectedVertices() { - this.map.forEach((value, key) => { - if (!value.length) { - this.map.delete(key); - } - }); - } - require(item) { - return this.map.get(item) || []; - } - addVertex(...items) { - items.forEach((item) => { - if (this.map.has(item)) { - return; - } - this.map.set(item, []); - }); - } - disconnect(itemA, itemB) { - const aValues = this.require(itemA); - if (!(aValues === null || aValues === void 0 ? void 0 : aValues.length)) { - return; - } - this.map.set(itemA, aValues.filter((v) => !this.comparator(itemB, v))); - this.map.set(itemB, this.require(itemB).filter((v) => !this.comparator(itemA, v))); - } - connect(itemA, ...items) { - if (!items.length) { - return; - } - const aValues = this.map.get(itemA) || []; - const missingPoints = items.filter((p) => !aValues.some((v) => this.comparator(v, p))); - this.map.set(itemA, [...aValues, ...missingPoints]); - missingPoints.forEach((itemB) => { - this.map.set(itemB, [...this.require(itemB), itemA]); - }); - } - areConnected(itemA, itemB) { - const aValues = this.map.get(itemA); - if (!aValues) { - return false; - } - return aValues.some((v) => this.comparator(itemB, v)); - } -} -//# sourceMappingURL=bidirectional-graph.js.map \ No newline at end of file diff --git a/dist/_esm/components/bidirectional-graph.js.map b/dist/_esm/components/bidirectional-graph.js.map deleted file mode 100644 index b01c552e..00000000 --- a/dist/_esm/components/bidirectional-graph.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bidirectional-graph.js","sourceRoot":"","sources":["../../../src/components/bidirectional-graph.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAkB;IAG3B,YAAoC,aAAsC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAF3E,QAAG,GAAG,IAAI,GAAG,EAAU,CAAC;IAGxC,CAAC;IAED,IAAW,gBAAgB;QACvB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;IACzB,CAAC;IAEM,OAAO;QACV,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,QAAQ;QACX,MAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,MAAM,aAAa,GAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,KAAK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,OAAO;SACV;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAE1C,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAEvF,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC;QAEpD,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,YAAY,CAAC,KAAQ,EAAE,KAAQ;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/file-manager.js b/dist/_esm/components/file-manager.js deleted file mode 100644 index 68f3666f..00000000 --- a/dist/_esm/components/file-manager.js +++ /dev/null @@ -1,69 +0,0 @@ -import { FileTypes } from "../enums"; -export class FileManager { - constructor() { - this.input = document.createElement("input"); - this.input.setAttribute("type", "file"); - this.input.setAttribute("value", "files"); - this.input.setAttribute("class", "hide"); - this.link = document.createElement("a"); - this.link.setAttribute("class", "hide"); - this.link.setAttribute("href", ""); - } - saveFile(name, text, type = FileTypes.TXT) { - this.link.href = URL.createObjectURL(new Blob([text], { type })); - this.link.download = name; - this.link.click(); - } - saveImage(name, image) { - this.link.href = typeof image === "string" ? image : image.src; - this.link.download = name; - this.link.click(); - } - loadImage(func) { - this.input.multiple = false; - this.input.accept = "image/*"; - this.input.onchange = (event) => { - const files = event.target.files; - if (files.length <= 0) { - return; - } - const reader = new FileReader(); - reader.onload = () => { - const image = new Image(); - image.src = reader.result; - func(image, files[0]); - }; - reader.readAsDataURL(files[0]); - }; - this.input.click(); - } - loadFile(func, encoding) { - this.input.multiple = false; - this.input.onchange = (e) => { - const reader = new FileReader(); - const files = e.target.files; - if (files && files.length > 0) { - reader.onload = () => func(String(reader.result), files[0]); - reader.readAsText(files[0], encoding); - } - }; - this.input.click(); - } - loadFiles(func) { - this.input.multiple = true; - this.input.onchange = (e) => func(e.target.files); - this.input.click(); - } - loadBinaryFile(func) { - this.input.onchange = (event) => { - const reader = new FileReader(); - const files = event.target.files; - if (files && files.length > 0) { - reader.onload = () => func(reader.result, files[0].name); - reader.readAsBinaryString(files[0]); - } - }; - this.input.click(); - } -} -//# sourceMappingURL=file-manager.js.map \ No newline at end of file diff --git a/dist/_esm/components/file-manager.js.map b/dist/_esm/components/file-manager.js.map deleted file mode 100644 index 363b3dd6..00000000 --- a/dist/_esm/components/file-manager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-manager.js","sourceRoot":"","sources":["../../../src/components/file-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,OAAO,WAAW;IAUpB;QACI,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,YAA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AAC,QAAQ,GAAG,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAOM,cAAc,CAAC,IAAqE;QACtF,IAAI,CAAC,KAAa,CAAC,QAAQ,GAAG,CAAC,KAAiB,EAAE,EAAE;YACjD,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;YAChC,MAAM,KAAK,GAAK,KAAK,CAAC,MAA2B,CAAC,KAAK,CAAC;YACxD,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC3B,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBACzD,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACvC;QACL,CAAC,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/g-map.js b/dist/_esm/components/g-map.js deleted file mode 100644 index 655f868b..00000000 --- a/dist/_esm/components/g-map.js +++ /dev/null @@ -1,14 +0,0 @@ -export class GMap extends Map { - get(key, defaultValue) { - return super.get(key) || defaultValue; - } - getOrCreate(key, defaultValue) { - const result = super.get(key); - if (result) { - return result; - } - this.set(key, defaultValue); - return defaultValue; - } -} -//# sourceMappingURL=g-map.js.map \ No newline at end of file diff --git a/dist/_esm/components/g-map.js.map b/dist/_esm/components/g-map.js.map deleted file mode 100644 index 7c02d028..00000000 --- a/dist/_esm/components/g-map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-map.js","sourceRoot":"","sources":["../../../src/components/g-map.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,IAAW,SAAQ,GAAS;IAC9B,GAAG,CAAC,GAAM,EAAE,YAAgB;QAC/B,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC;IAC1C,CAAC;IAEM,WAAW,CAAC,GAAM,EAAE,YAAe;QACtC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,MAAM,EAAE;YACR,OAAO,MAAM,CAAC;SACjB;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAE5B,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/index.js b/dist/_esm/components/index.js deleted file mode 100644 index cac7bd25..00000000 --- a/dist/_esm/components/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export * from "./file-manager"; -export * from "./logger/g-logger"; -export * from "./g-map"; -export * from "./key-value-counter"; -export * from "./number-counter"; -export * from "./paginator"; -export * from "./bidirectional-graph"; -export { GLoggerPriority } from "./logger/g-logger-priority"; -export { GLoggerDefaultFormatter, SimpleColorFormatter } from "./logger/g-logger-default-formatter"; -export { GLoggerCallbackHolder } from "./logger/g-logger-callback-holder"; -export { GLoggerInstance } from "./logger/g-logger-instance"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/components/index.js.map b/dist/_esm/components/index.js.map deleted file mode 100644 index 0f62fe56..00000000 --- a/dist/_esm/components/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/components/key-value-counter.js b/dist/_esm/components/key-value-counter.js deleted file mode 100644 index 2cb01310..00000000 --- a/dist/_esm/components/key-value-counter.js +++ /dev/null @@ -1,50 +0,0 @@ -export class KeyValueCounter { - constructor() { - this.data = {}; - this.results = []; - this.processed = false; - } - add(item) { - if (item in this.data) { - this.data[item]++; - } - else { - this.data[item] = 1; - } - if (this.processed) { - this.processed = false; - } - } - addAll(items) { - items.forEach(this.add, this); - } - getAll() { - if (!this.processed) { - this.process(); - } - return this.results; - } - getTopN(count) { - if (!this.processed) { - this.process(); - } - return this.results.slice(0, count); - } - getCount() { - return this.getAll().length; - } - process() { - for (const key in this.data) { - if (!this.data.hasOwnProperty(key)) { - continue; - } - this.results.push({ - key, - count: this.data[key], - }); - } - this.results.sort((a, b) => b.count - a.count); - this.processed = true; - } -} -//# sourceMappingURL=key-value-counter.js.map \ No newline at end of file diff --git a/dist/_esm/components/key-value-counter.js.map b/dist/_esm/components/key-value-counter.js.map deleted file mode 100644 index 874f9d43..00000000 --- a/dist/_esm/components/key-value-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value-counter.js","sourceRoot":"","sources":["../../../src/components/key-value-counter.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,eAAe;IAA5B;QACqB,SAAI,GAA8B,EAAE,CAAC;QACrC,YAAO,GAA2B,EAAE,CAAC;QAC9C,cAAS,GAAkC,KAAK,CAAC;IAkD7D,CAAC;IAhDU,GAAG,CAAC,IAAY;QACnB,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;SACrB;aAAM;YAC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ger/g-logger-callback-holder.js deleted file mode 100644 index 27c996d6..00000000 --- a/dist/_esm/components/logger/g-logger-callback-holder.js +++ /dev/null @@ -1,44 +0,0 @@ -import { SimpleColorFormatter } from "./g-logger-default-formatter"; -import { GLoggerPriority } from "./g-logger-priority"; -export class GLoggerCallbackHolder { - constructor(callbacks) { - this.callbacks = callbacks; - } - copy() { - return new GLoggerCallbackHolder(this.callbacks); - } - static createConsoleCallbacks(formatter = new SimpleColorFormatter()) { - return new GLoggerCallbackHolder({ - [GLoggerPriority.LOG]: (message, context) => console.log(...formatter.formatColored(GLoggerPriority.LOG, message, context)), - [GLoggerPriority.WARN]: (message, context) => console.warn(...formatter.formatColored(GLoggerPriority.WARN, message, context)), - [GLoggerPriority.ERROR]: (message, context) => console.error(...formatter.formatColored(GLoggerPriority.ERROR, message, context)), - [GLoggerPriority.SUCCESS]: (message, context) => console.log(...formatter.formatColored(GLoggerPriority.SUCCESS, message, context)), - [GLoggerPriority.VERBOSE]: (message, context) => console.log(...formatter.formatColored(GLoggerPriority.VERBOSE, message, context)), - }); - } - static createArrayCallbacks(array, options = {}) { - const mapper = options.mapper || ((priority, messages, context) => [priority, messages, context]); - const appendToArray = (priority, messages, context) => { - array.push(mapper(priority, messages, context)); - }; - return new GLoggerCallbackHolder({ - [GLoggerPriority.LOG]: (message, context) => appendToArray(GLoggerPriority.LOG, message, context), - [GLoggerPriority.WARN]: (message, context) => appendToArray(GLoggerPriority.WARN, message, context), - [GLoggerPriority.ERROR]: (message, context) => appendToArray(GLoggerPriority.ERROR, message, context), - [GLoggerPriority.SUCCESS]: (message, context) => appendToArray(GLoggerPriority.SUCCESS, message, context), - [GLoggerPriority.VERBOSE]: (message, context) => appendToArray(GLoggerPriority.VERBOSE, message, context), - }); - } - setCallback(priority, callback) { - this.callbacks[priority] = callback; - } - set(holder) { - Object.values(GLoggerPriority).forEach((priority) => { - this.setCallback(priority, holder.getCallback(priority)); - }); - } - getCallback(priority) { - return this.callbacks[priority]; - } -} -//# sourceMappingURL=g-logger-callback-holder.js.map \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-callback-holder.js.map b/dist/_esm/components/logger/g-logger-callback-holder.js.map deleted file mode 100644 index 9c4769c0..00000000 --- a/dist/_esm/components/logger/g-logger-callback-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-callback-holder.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-callback-holder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,OAAO,qBAAqB;IAC9B,YAAqC,SAAwD;QAAxD,cAAS,GAAT,SAAS,CAA+C;IAC7F,CAAC;IAEM,IAAI;QACP,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,sBAAsB,CAAC,SAAS,GAAG,IAAI,oBAAoB,EAAE;QACvE,OAAO,IAAI,qBAAqB,CAAC;YAO7B,CAAC,eAAe,CAAC,GAAG,CAAC,EAAM,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACnJ,CAAC,eAAe,CAAC,IAAI,CAAC,EAAK,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACrJ,CAAC,eAAe,CAAC,KAAK,CAAC,EAAI,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,EAAE,OAA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AI,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;YAC3H,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;YAC7H,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,OAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;SAChI,CAAC,CAAC;IACP,CAAC;IAmBM,WAAW,CAAC,QAAyB,EAAE,QAAyB;QACnE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IACxC,CAAC;IAEM,GAAG,CAAC,MAA6B;QACpC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAChD,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,WAAW,CAAC,QAAyB;QACxC,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-default-formatter.js b/dist/_esm/components/logger/g-logger-default-formatter.js deleted file mode 100644 index 5e6f68de..00000000 --- a/dist/_esm/components/logger/g-logger-default-formatter.js +++ /dev/null @@ -1,152 +0,0 @@ -import { dateAgo, randomItem, template } from "../../utils"; -export class ColorGenerator { - constructor() { - this.useDifferentColorsForContexts = true; - this.contextColorMap = {}; - } - getColorForContext(context, defaultColor) { - if (!this.useDifferentColorsForContexts) { - return defaultColor; - } - if (context in this.contextColorMap) { - return this.contextColorMap[context]; - } - const createColor = () => `#${new Array(6).fill("").map(() => randomItem("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D")).join("")}`; - return this.contextColorMap[context] = createColor(); - } -} -export class SimpleColorFormatter { - constructor(pattern = "[{{priority}}] {{context}}: {{data}}") { - this.pattern = pattern; - this.colorGenerator = new ColorGenerator(); - this.colorMap = { - priority: "red", - context: "blue", - data: "black", - default: "black", - }; - } - format(priority, data, context) { - const dataPlaceholders = data.map((item) => { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - const text = template(this.pattern, { - priority: "%s", - context: "%s", - data: dataPlaceholders.join(" "), - }); - const logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, (match) => { - switch (match) { - case "priority": - logFragments.push(priority); - break; - case "context": - logFragments.push(context || ""); - break; - case "data": - logFragments.push(...data); - break; - } - return match; - }); - return logFragments.join(", "); - } - formatColored(priority, data, context) { - const dataPlaceholders = data.map((item) => { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - const text = template(this.pattern, { - priority: "%c%s%c", - context: "%c%s%c", - data: `%c${dataPlaceholders.join(" ")}%c`, - }); - const logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, (match) => { - switch (match) { - case "priority": - logFragments.push(`color: ${this.colorMap[match]}`); - logFragments.push(priority); - logFragments.push(`color: ${this.colorMap.default}`); - break; - case "context": - logFragments.push(`color: ${this.colorGenerator.getColorForContext(context || "root", "black")}`); - logFragments.push(context || ""); - logFragments.push(`color: ${this.colorMap.default}`); - break; - case "data": - logFragments.push(`color: ${this.colorMap[match]}`); - logFragments.push(...data); - logFragments.push(`color: ${this.colorMap.default}`); - break; - } - return match; - }); - return logFragments; - } -} -export class GLoggerDefaultFormatter { - constructor() { - this.showPriority = false; - this.showContext = true; - this.showTime = false; - this.showTimeOffset = false; - this.colors = {}; - this.colorGenerator = new ColorGenerator(); - this.lastFormatTime = Date.now(); - } - formatColored(priority, data, context) { - const result = [this.getOutputArray(priority, data, context).join(" ")]; - if (this.showPriority) { - result.push(`color: ${this.colors.priority || "blue"}`); - } - if (this.showContext && context) { - result.push(`color: ${this.colorGenerator.getColorForContext(context, this.colors.context || "red")}`); - } - if (this.showTime) { - result.push(`color: ${this.colors.time || "green"}`); - } - if (this.showTimeOffset) { - result.push(`color: ${this.colors.timeOffset || "green"}`); - } - result.push(`color: ${this.colors.textColor || "black"}`); - return result; - } - format(priority, data, context) { - return this.getOutputArray(priority, data, context).join(" "); - } - getOutputArray(priority, data, context) { - const partials = []; - if (this.showPriority) { - partials.push(`[${priority}]`); - } - if (this.showContext && context) { - partials.push(context + ":"); - } - if (this.showTime) { - partials.push(`[${new Date().toISOString()}]`); - } - if (this.showTimeOffset) { - const now = Date.now(); - partials.push(`${dateAgo(now - this.lastFormatTime)}`); - this.lastFormatTime = now; - } - partials.push(...data.map(String)); - return partials; - } -} -//# sourceMappingURL=g-logger-default-formatter.js.map \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-default-formatter.js.map b/dist/_esm/components/logger/g-logger-default-formatter.js.map deleted file mode 100644 index fffe4332..00000000 --- a/dist/_esm/components/logger/g-logger-default-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-default-formatter.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-default-formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5D,MAAM,OAAO,cAAc;IAA3B;QACW,kCAA6B,GAA8B,IAAI,CAAC;QACtD,oBAAe,GAAkC,EAAE,CAAC;IAiBzE,CAAC;IAfU,kBAAkB,CAAC,OAAe,EAAE,YAAoB;QAC3D,IAAI,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrC,OAAO,YAAY,CAAC;SACvB;QAED,IAAI,OAAO,IAA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AAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClE,CAAC;IAGO,cAAc,CAAC,QAAyB,EAAE,IAAe,EAAE,OAAgB;QAC/E,MAAM,QAAQ,GAAa,EAAE,CAAC;QAE9B,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,OAAO,EAAE;YAC7B,QAAQ,CAAC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC;SAChC;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;SAClD;QAED,IAAI,IAAI,CAAC,cAAc,EAAE;YACrB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YACvB,QAAQ,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACvD,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;SAC7B;QACD,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;QAEnC,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-instance.js b/dist/_esm/components/logger/g-logger-instance.js deleted file mode 100644 index 85f40f4a..00000000 --- a/dist/_esm/components/logger/g-logger-instance.js +++ /dev/null @@ -1,45 +0,0 @@ -import { GLoggerPriority } from "./g-logger-priority"; -export class GLoggerInstance { - constructor(loggerCallbacks, context) { - this.loggerCallbacks = loggerCallbacks; - this.context = context; - } - static localPrint(type, data, callbacks, context) { - callbacks.getCallback(type)(data, context); - } - static getContextString(context) { - var _a; - if (typeof context === "string") { - return context; - } - if (typeof ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name) === "string") { - return context.constructor.name; - } - if (typeof (context === null || context === void 0 ? void 0 : context.name) === "string") { - return context.name; - } - return undefined; - } - setLogCallback(priority, callback) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.setCallback(priority, callback); - } - setLogCallbacks(callbackHolder) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.set(callbackHolder); - } - print(type, context = "", ...data) { - const realContext = GLoggerInstance.getContextString(context); - GLoggerInstance.localPrint(type, data, this.loggerCallbacks, realContext); - } - log(...messages) { - this.print(GLoggerPriority.LOG, this.context, ...messages); - } - warn(...messages) { - this.print(GLoggerPriority.WARN, this.context, ...messages); - } - error(...messages) { - this.print(GLoggerPriority.ERROR, this.context, ...messages); - } -} -//# sourceMappingURL=g-logger-instance.js.map \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-instance.js.map b/dist/_esm/components/logger/g-logger-instance.js.map deleted file mode 100644 index ec36ecdc..00000000 --- a/dist/_esm/components/logger/g-logger-instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-instance.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-instance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,OAAgB,eAAe;IAqBjC,YACuB,eAAsC,EACzC,OAA4B;QADzB,oBAAe,GAAf,eAAe,CAAuB;QACzC,YAAO,GAAP,OAAO,CAAqB;IAEhD,CAAC;IAxBS,MAAM,CAAC,UAAU,CAAC,IAAqB,EAAE,IAAe,EAAE,SAAgC,EAAE,OAAgB;QAClH,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAES,MAAM,CAAC,gBAAgB,CAAC,OAA4B;;QAC1D,IAAI,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AE,IAAI,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC;IACjE,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-priority.js b/dist/_esm/components/logger/g-logger-priority.js deleted file mode 100644 index c96d0fdf..00000000 --- a/dist/_esm/components/logger/g-logger-priority.js +++ /dev/null @@ -1,9 +0,0 @@ -export var GLoggerPriority; -(function (GLoggerPriority) { - GLoggerPriority["LOG"] = "LOG"; - GLoggerPriority["WARN"] = "WARN"; - GLoggerPriority["ERROR"] = "ERROR"; - GLoggerPriority["VERBOSE"] = "VERBOSE"; - GLoggerPriority["SUCCESS"] = "SUCCESS"; -})(GLoggerPriority || (GLoggerPriority = {})); -//# sourceMappingURL=g-logger-priority.js.map \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger-priority.js.map b/dist/_esm/components/logger/g-logger-priority.js.map deleted file mode 100644 index dbd9ae49..00000000 --- a/dist/_esm/components/logger/g-logger-priority.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-priority.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-priority.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,8BAAe,CAAA;IACf,gCAAgB,CAAA;IAChB,kCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B"} \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger.js b/dist/_esm/components/logger/g-logger.js deleted file mode 100644 index e7546688..00000000 --- a/dist/_esm/components/logger/g-logger.js +++ /dev/null @@ -1,57 +0,0 @@ -import { GLoggerCallbackHolder } from "./g-logger-callback-holder"; -import { GLoggerInstance } from "./g-logger-instance"; -import { GLoggerPriority } from "./g-logger-priority"; -export class GLogger extends GLoggerInstance { - constructor(context, callbacks = GLogger.staticCallbacks.copy()) { - super(callbacks, context); - } - static setCallbacks(callbackHolder) { - GLogger.staticCallbacks.set(callbackHolder); - } - static getLine(steps = 2) { - const error = new Error(); - if (error.stack) { - const results = error.stack.split("\n")[steps].trim().match(/\(.*\)/); - if (results && results[0]) { - return "at " + results[0]; - } - } - return ""; - } - static createClassLogger(context, parent) { - var _a, _b; - if (parent) { - return parent.extends((context === null || context === void 0 ? void 0 : context.name) || ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name)); - } - return new GLogger((_b = context === null || context === void 0 ? void 0 : context.constructor) === null || _b === void 0 ? void 0 : _b.name); - } - static createArrayLogger(array, context, mapper) { - return new GLogger(context, GLoggerCallbackHolder.createArrayCallbacks(array, { mapper })); - } - static print(type, context = "", ...data) { - const realContext = GLogger.getContextString(context); - const result = realContext && realContext.match(GLogger.skipRegexp); - if (result) { - return; - } - GLoggerInstance.localPrint(type, data, GLogger.staticCallbacks, realContext); - } - static log(message, context) { - GLogger.print(GLoggerPriority.LOG, context, ...(Array.isArray(message) ? message : [message])); - } - static error(message, context) { - GLogger.print(GLoggerPriority.ERROR, context, ...(Array.isArray(message) ? message : [message])); - } - static warn(message, context) { - GLogger.print(GLoggerPriority.WARN, context, ...(Array.isArray(message) ? message : [message])); - } - extends(subContext) { - const currentContext = GLogger.getContextString(this.context); - const subContextNameContext = GLogger.getContextString(subContext); - return new GLogger(currentContext ? `${currentContext}:${subContextNameContext}` : subContextNameContext, this.loggerCallbacks.copy()); - } -} -GLogger.skipContexts = ["renderWorldStatic", "CanvasDirective", "WorldRendererService", "viewport", "WorldInputService"]; -GLogger.skipRegexp = new RegExp(`${GLogger.skipContexts.join("|")}`, "gi"); -GLogger.staticCallbacks = GLoggerCallbackHolder.createConsoleCallbacks(); -//# sourceMappingURL=g-logger.js.map \ No newline at end of file diff --git a/dist/_esm/components/logger/g-logger.js.map b/dist/_esm/components/logger/g-logger.js.map deleted file mode 100644 index 60012ec9..00000000 --- a/dist/_esm/components/logger/g-logger.js.map +++ /dev/null @@ -1 +0,0 @@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AO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC;IASM,OAAO,CAAC,UAAe;QAC1B,MAAM,cAAc,GAAU,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,MAAM,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAEnE,OAAO,IAAI,OAAO,CACd,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,IAAI,qBAAqB,EAAE,CAAC,CAAC,CAAC,qBAAqB,EACrF,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAC9B,CAAC;IACN,CAAC;;AArEuB,oBAAY,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,UAAU,EAAE,mBAAmB,CAAC,CAAC;AACjH,kBAAU,GAAK,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AACrE,uBAAe,GAAG,qBAAqB,CAAC,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/components/number-counter.js b/dist/_esm/components/number-counter.js deleted file mode 100644 index 79ab0552..00000000 --- a/dist/_esm/components/number-counter.js +++ /dev/null @@ -1,30 +0,0 @@ -export class NumberCounter { - constructor() { - this.min = Infinity; - this.max = -Infinity; - this.sum = 0; - this.numbers = []; - } - add(value) { - this.numbers.push(value); - this.min = Math.min(this.min, value); - this.max = Math.max(this.max, value); - this.sum += value; - } - getMin() { - return this.min; - } - getMax() { - return this.max; - } - getCount() { - return this.numbers.length; - } - getAverage() { - return this.sum / this.numbers.length; - } - addAll(items) { - items.forEach(this.add, this); - } -} -//# sourceMappingURL=number-counter.js.map \ No newline at end of file diff --git a/dist/_esm/components/number-counter.js.map b/dist/_esm/components/number-counter.js.map deleted file mode 100644 index 675810ff..00000000 --- a/dist/_esm/components/number-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"number-counter.js","sourceRoot":"","sources":["../../../src/components/number-counter.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IAA1B;QACY,QAAG,GAA0B,QAAQ,CAAC;QACtC,QAAG,GAA0B,CAAC,QAAQ,CAAC;QACvC,QAAG,GAA0B,CAAC,CAAC;QACtB,YAAO,GAAa,EAAE,CAAC;IA6B5C,CAAC;IA3BU,GAAG,CAAC,KAAa;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,KAAe;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/components/paginator.js b/dist/_esm/components/paginator.js deleted file mode 100644 index f4ea3885..00000000 --- a/dist/_esm/components/paginator.js +++ /dev/null @@ -1,75 +0,0 @@ -import { GToolsConfig } from "../config/gtools-config"; -export class Paginator { - constructor(allItems, itemsPerPage = GToolsConfig.PAGE_LIMIT) { - this.allItems = allItems; - this.itemsPerPage = itemsPerPage; - this.actualPage = 0; - this.lastPage = allItems ? Math.floor(allItems.length / this.itemsPerPage) : 0; - this.actList = this._reCalcList(); - } - getActualPage() { - return this.actualPage + 1; - } - getPages() { - return this.lastPage + 1; - } - getPagesAround() { - if (this.actualPage < 2) { - return [1, 2, 3, 4, 5]; - } - if (this.actualPage > this.lastPage - 3) { - return [ - this.lastPage - 3, - this.lastPage - 2, - this.lastPage - 1, - this.lastPage, - this.lastPage + 1, - ]; - } - return [ - this.actualPage - 1, - this.actualPage, - this.actualPage + 1, - this.actualPage + 2, - this.actualPage + 3, - ]; - } - getList() { - return this.actList; - } - goToNext() { - if (this.actualPage < this.lastPage) { - this.actualPage++; - return this._reCalcList(); - } - return this.getList(); - } - gotTo(page) { - if (page >= 0 && page <= this.lastPage) { - this.actualPage = page; - return this._reCalcList(); - } - return this.getList(); - } - goToPrev() { - if (this.actualPage > 0) { - this.actualPage--; - return this._reCalcList(); - } - return this.getList(); - } - goToFirst() { - this.actualPage = 0; - return this._reCalcList(); - } - goToLast() { - this.actualPage = this.lastPage; - return this._reCalcList(); - } - _reCalcList() { - const start = this.actualPage * this.itemsPerPage; - this.actList = this.allItems ? this.allItems.slice(start, start + this.itemsPerPage) : []; - return this.actList; - } -} -//# sourceMappingURL=paginator.js.map \ No newline at end of file diff --git a/dist/_esm/components/paginator.js.map b/dist/_esm/components/paginator.js.map deleted file mode 100644 index 3c439122..00000000 --- a/dist/_esm/components/paginator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginator.js","sourceRoot":"","sources":["../../../src/components/paginator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,OAAO,SAAS;IAKlB,YAAoC,QAAa,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/gtools-config.interface.js deleted file mode 100644 index b7d53552..00000000 --- a/dist/_esm/config/gtools-config.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=gtools-config.interface.js.map \ No newline at end of file diff --git a/dist/_esm/config/gtools-config.interface.js.map b/dist/_esm/config/gtools-config.interface.js.map deleted file mode 100644 index c352b213..00000000 --- a/dist/_esm/config/gtools-config.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.interface.js","sourceRoot":"","sources":["../../../src/config/gtools-config.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/config/gtools-config.js b/dist/_esm/config/gtools-config.js deleted file mode 100644 index 1cf9bbc3..00000000 --- a/dist/_esm/config/gtools-config.js +++ /dev/null @@ -1,31 +0,0 @@ -let config; -const checkConfig = () => { - if (!config) { - return { - URL_API: "", - LANGUAGE: "", - VERSION: "", - PAGE_LIMIT: 0, - }; - } - return config; -}; -export class ClassGToolsConfig { - get URL_API() { - return checkConfig().URL_API; - } - get PAGE_LIMIT() { - return checkConfig().PAGE_LIMIT; - } - get LANGUAGE() { - return checkConfig().LANGUAGE; - } - get VERSION() { - return checkConfig().VERSION; - } -} -export function initConfig(appConfig) { - config = appConfig; -} -export const GToolsConfig = new ClassGToolsConfig(); -//# sourceMappingURL=gtools-config.js.map \ No newline at end of file diff --git a/dist/_esm/config/gtools-config.js.map b/dist/_esm/config/gtools-config.js.map deleted file mode 100644 index 0e0fb8f2..00000000 --- a/dist/_esm/config/gtools-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.js","sourceRoot":"","sources":["../../../src/config/gtools-config.ts"],"names":[],"mappings":"AAEA,IAAI,MAA6B,CAAC;AAElC,MAAM,WAAW,GAAG,GAA0B,EAAE;IAC5C,IAAI,CAAC,MAAM,EAAE;QACT,OAAO;YACH,OAAO,EAAK,EAAE;YACd,QAAQ,EAAI,EAAE;YACd,OAAO,EAAK,EAAE;YACd,UAAU,EAAE,CAAC;SAChB,CAAC;KACL;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAYF,MAAM,OAAO,iBAAiB;IAC1B,IAAW,OAAO;QACd,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;IACjC,CAAC;IAED,IAAW,UAAU;QACjB,OAAO,WAAW,EAAE,CAAC,UAAU,CAAC;IACpC,CAAC;IAED,IAAW,QAAQ;QACf,OAAO,WAAW,EAAE,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,IAAW,OAAO;QACd,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;IACjC,CAAC;CAEJ;AAED,MAAM,UAAU,UAAU,CAAC,SAAgC;IACvD,MAAM,GAAG,SAAS,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/constants.js b/dist/_esm/constants.js deleted file mode 100644 index 4d6ba0c8..00000000 --- a/dist/_esm/constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export const ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS = true; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/_esm/constants.js.map b/dist/_esm/constants.js.map deleted file mode 100644 index df9a30d3..00000000 --- a/dist/_esm/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/deprecated.decorator.js b/dist/_esm/decorators/deprecated.decorator.js deleted file mode 100644 index 7ff54cbf..00000000 --- a/dist/_esm/decorators/deprecated.decorator.js +++ /dev/null @@ -1,10 +0,0 @@ -export function Deprecated(value) { - return (target, propertyKey, descriptor) => { - const oldMethod = target[propertyKey]; - descriptor.value = (...args) => { - console.warn("Method " + target.constructor.name + "." + propertyKey + " is deprecated. " + (value || "")); - return oldMethod.apply(target, args); - }; - }; -} -//# sourceMappingURL=deprecated.decorator.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/deprecated.decorator.js.map b/dist/_esm/decorators/deprecated.decorator.js.map deleted file mode 100644 index 9ef8be3e..00000000 --- a/dist/_esm/decorators/deprecated.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deprecated.decorator.js","sourceRoot":"","sources":["../../../src/decorators/deprecated.decorator.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,KAAc;IACrC,OAAO,CAAC,MAAW,EAAE,WAAmB,EAAE,UAA8B,EAAO,EAAE;QAC7E,MAAM,SAAS,GAAI,MAAM,CAAC,WAAW,CAAC,CAAC;QACvC,UAAU,CAAC,KAAK,GAAG,CAAC,GAAG,IAAW,EAAO,EAAE;YACvC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,WAAW,GAAG,kBAAkB,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;YAE3G,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC,CAAC;IACN,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/final-class.decorator.js b/dist/_esm/decorators/final-class.decorator.js deleted file mode 100644 index 3617db05..00000000 --- a/dist/_esm/decorators/final-class.decorator.js +++ /dev/null @@ -1,11 +0,0 @@ -export function FinalClass(target) { - return class Final extends target { - constructor(...args) { - if (new.target !== Final) { - throw new Error("Cannot inherit from final class"); - } - super(...args); - } - }; -} -//# sourceMappingURL=final-class.decorator.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/final-class.decorator.js.map b/dist/_esm/decorators/final-class.decorator.js.map deleted file mode 100644 index 83355a89..00000000 --- a/dist/_esm/decorators/final-class.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"final-class.decorator.js","sourceRoot":"","sources":["../../../src/decorators/final-class.decorator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAA2D,MAAS;IAC1F,OAAO,MAAM,KAAM,SAAQ,MAAM;QAC7B,YAAmB,GAAG,IAAW;YAC7B,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACnB,CAAC;KACJ,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/index.js b/dist/_esm/decorators/index.js deleted file mode 100644 index 3597ddcf..00000000 --- a/dist/_esm/decorators/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./deprecated.decorator"; -export * from "./final-class.decorator"; -export * from "./mapper.decorator"; -export * from "./singleton.decorator"; -export * from "./watch.decorator"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/index.js.map b/dist/_esm/decorators/index.js.map deleted file mode 100644 index 294849b0..00000000 --- a/dist/_esm/decorators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/mapper.decorator.js b/dist/_esm/decorators/mapper.decorator.js deleted file mode 100644 index 7869ae41..00000000 --- a/dist/_esm/decorators/mapper.decorator.js +++ /dev/null @@ -1,28 +0,0 @@ -export function Mapper(params = {}, prefix = "_") { - return (target, key) => { - if (!delete target[key]) { - return; - } - const descriptor = { - enumerable: true, - configurable: true, - }; - const newName = prefix + key; - if (params) { - if (typeof params.onGet === "function") { - descriptor.get = () => params.onGet && params.onGet(target[newName]); - } - else { - descriptor.get = () => target[newName]; - } - if (typeof params.onSet === "function") { - descriptor.set = (newVal) => target[newName] = params.onSet && params.onSet(newVal); - } - else { - descriptor.set = (value) => target[newName] = value; - } - } - Object.defineProperty(target, key, descriptor); - }; -} -//# sourceMappingURL=mapper.decorator.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/mapper.decorator.js.map b/dist/_esm/decorators/mapper.decorator.js.map deleted file mode 100644 index 461dc3ef..00000000 --- a/dist/_esm/decorators/mapper.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapper.decorator.js","sourceRoot":"","sources":["../../../src/decorators/mapper.decorator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,SAA6E,EAAE,EAAE,MAAM,GAAG,GAAG;IAChH,OAAO,CAAC,MAAW,EAAE,GAAW,EAAO,EAAE;QACrC,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,MAAM,UAAU,GAAuB;YACnC,UAAU,EAAI,IAAI;YAClB,YAAY,EAAE,IAAI;SACrB,CAAC;QACF,MAAM,OAAO,GAA0B,MAAM,GAAG,GAAG,CAAC;QACpD,IAAI,MAAM,EAAE;YACR,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;aACxE;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;aAC1C;YAED,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;aAC5F;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;aACvD;SACJ;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/singleton.decorator.js b/dist/_esm/decorators/singleton.decorator.js deleted file mode 100644 index ef32a046..00000000 --- a/dist/_esm/decorators/singleton.decorator.js +++ /dev/null @@ -1,14 +0,0 @@ -const instances = {}; -export function Singleton(constructor) { - const className = constructor.name; - return class extends constructor { - constructor(...args) { - super(...args); - if (instances[className]) { - throw new Error("Instance of " + className + " is already created"); - } - instances[className] = this; - } - }; -} -//# sourceMappingURL=singleton.decorator.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/singleton.decorator.js.map b/dist/_esm/decorators/singleton.decorator.js.map deleted file mode 100644 index 4a083eb6..00000000 --- a/dist/_esm/decorators/singleton.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"singleton.decorator.js","sourceRoot":"","sources":["../../../src/decorators/singleton.decorator.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAiC,EAAE,CAAC;AAEnD,MAAM,UAAU,SAAS,CAAuC,WAAc;IAC1E,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;IAEnC,OAAO,KAAM,SAAQ,WAAW;QAC5B,YAAmB,GAAG,IAAW;YAC7B,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YACf,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,cAAc,GAAG,SAAS,GAAG,qBAAqB,CAAC,CAAC;aACvE;YACD,SAAS,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;QAChC,CAAC;KACJ,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/decorators/watch.decorator.js b/dist/_esm/decorators/watch.decorator.js deleted file mode 100644 index 2463f0c9..00000000 --- a/dist/_esm/decorators/watch.decorator.js +++ /dev/null @@ -1,21 +0,0 @@ -export function Watch(onSet, options) { - const prefix = options && options.prefix || "_"; - return (target, key) => { - const setter = (newVal) => { - if (onSet) { - target[prefix + key] = onSet(newVal, target[prefix + key]); - } - target[prefix + key] = newVal; - }; - if (!delete target[key]) { - return; - } - Object.defineProperty(target, key, { - get: () => target[prefix + key], - set: setter, - enumerable: options && typeof options.enumerable === "boolean" ? options.enumerable : true, - configurable: options && typeof options.configurable === "boolean" ? options.configurable : true, - }); - }; -} -//# sourceMappingURL=watch.decorator.js.map \ No newline at end of file diff --git a/dist/_esm/decorators/watch.decorator.js.map b/dist/_esm/decorators/watch.decorator.js.map deleted file mode 100644 index bae6044e..00000000 --- a/dist/_esm/decorators/watch.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"watch.decorator.js","sourceRoot":"","sources":["../../../src/decorators/watch.decorator.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,KAAK,CAAC,KAA6C,EAAE,OAAsB;IACvF,MAAM,MAAM,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;IAEhD,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAChC,MAAM,MAAM,GAAG,CAAC,MAAW,EAAQ,EAAE;YACjC,IAAI,KAAK,EAAE;gBACP,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;aAC9D;YACD,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC;QAClC,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/B,GAAG,EAAW,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;YACxC,GAAG,EAAW,MAAM;YACpB,UAAU,EAAI,OAAO,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI;YAC5F,YAAY,EAAE,OAAO,IAAI,OAAO,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;SACnG,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/dom/canvas-camera.js b/dist/_esm/dom/canvas-camera.js deleted file mode 100644 index 7e8e0754..00000000 --- a/dist/_esm/dom/canvas-camera.js +++ /dev/null @@ -1,90 +0,0 @@ -const defaultCameraViewport = { - left: 0, - right: 0, - top: 0, - bottom: 0, - width: 0, - height: 0, - scale: [1, 1], -}; -export class CanvasCamera { - constructor(context, settings) { - var _a; - this.context = context; - this.settings = settings; - this.distance = 1000; - this.lookAt = [0, 0]; - this.viewport = Object.assign({}, defaultCameraViewport); - this.fieldOfView = (_a = this.settings.fieldOfView) !== null && _a !== void 0 ? _a : Math.PI / 4; - this.aspectRatio = this.context.canvas.width / this.context.canvas.height; - this.addListeners(); - this.updateViewport(); - } - begin() { - this.context.save(); - this.applyScale(); - this.applyTranslation(); - } - end() { - this.context.restore(); - } - applyScale() { - this.context.scale(this.viewport.scale[0], this.viewport.scale[1]); - } - applyTranslation() { - this.context.translate(-this.viewport.left, -this.viewport.top); - } - updateViewport() { - this.viewport.width = this.distance * Math.tan(this.fieldOfView); - this.viewport.height = this.viewport.width / this.aspectRatio; - this.viewport.left = this.lookAt[0] - (this.viewport.width / 2); - this.viewport.top = this.lookAt[1] - (this.viewport.height / 2); - this.viewport.right = this.viewport.left + this.viewport.width; - this.viewport.bottom = this.viewport.top + this.viewport.height; - this.viewport.scale[0] = this.context.canvas.width / this.viewport.width; - this.viewport.scale[1] = this.context.canvas.height / this.viewport.height; - } - zoomTo(zoom) { - this.distance = zoom; - this.updateViewport(); - } - moveTo(x, y) { - this.lookAt[0] = x; - this.lookAt[1] = y; - this.updateViewport(); - } - screenToWorld(x, y, obj = { x: 0, y: 0 }) { - obj = obj || {}; - obj.x = (x / this.viewport.scale[0]) + this.viewport.left; - obj.y = (y / this.viewport.scale[1]) + this.viewport.top; - return obj; - } - worldToScreen(x, y, obj = { x: 0, y: 0 }) { - obj.x = (x - this.viewport.left) * (this.viewport.scale[0]); - obj.y = (y - this.viewport.top) * (this.viewport.scale[1]); - return obj; - } - addListeners() { - window.onwheel = (e) => { - if (e.ctrlKey) { - let zoomLevel = this.distance - (e.deltaY * 20); - if (zoomLevel <= 1) { - zoomLevel = 1; - } - this.zoomTo(zoomLevel); - } - else { - const x = this.lookAt[0] + (e.deltaX * 2); - const y = this.lookAt[1] + (e.deltaY * 2); - this.moveTo(x, y); - } - }; - window.addEventListener("keydown", (e) => { - if (e.key === "r") { - this.zoomTo(1000); - this.moveTo(0, 0); - } - }); - } -} -//# sourceMappingURL=canvas-camera.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-camera.js.map b/dist/_esm/dom/canvas-camera.js.map deleted file mode 100644 index 0d98aaa3..00000000 --- a/dist/_esm/dom/canvas-camera.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-camera.js","sourceRoot":"","sources":["../../../src/dom/canvas-camera.ts"],"names":[],"mappings":"AAiBA,MAAM,qBAAqB,GAAyB;IAChD,IAAI,EAAI,CAAC;IACT,KAAK,EAAG,CAAC;IACT,GAAG,EAAK,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAG,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAG,CAAC,CAAC,EAAE,CAAC,CAAC;CACjB,CAAC;AA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AI,SAAS,IAAI,CAAC,EAAE;oBAChB,SAAS,GAAG,CAAC,CAAC;iBACjB;gBAED,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1B;iBAAM;gBAEH,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAE1C,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC;QAGF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YACrC,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;gBACf,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAClB,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/dom/canvas-drawer-advanced.js b/dist/_esm/dom/canvas-drawer-advanced.js deleted file mode 100644 index b657554f..00000000 --- a/dist/_esm/dom/canvas-drawer-advanced.js +++ /dev/null @@ -1,57 +0,0 @@ -import { CanvasDrawer } from "./canvas-drawer"; -import { CanvasManager } from "./canvas-manager"; -export class CanvasDrawerAdvanced { - constructor(context) { - this.context = context; - this.drawer = new CanvasDrawer(this.context); - } - renderRect(location, options) { - var _a; - this.prepareShadow(options.shadow); - this.prepareOpacity(options.opacity); - if (options.fill) { - this.prepareShadow(options.fill.shadow); - this.prepareOpacity(options.fill.opacity); - if (options.fill.fillImage) { - this.drawer.drawImage(options.fill.fillImage); - } - if (options.fill.fillColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.fill.fillColor); - } - } - if (options.stroke) { - this.prepareShadow(options.stroke.shadow); - this.prepareOpacity(options.stroke.opacity); - this.prepareDashed(options.stroke.lineDash); - if (options.stroke.joinType) { - this.context.lineJoin = options.stroke.joinType; - } - if (options.stroke.lineCap) { - this.context.lineCap = options.stroke.lineCap; - } - if (!isNaN((_a = options.stroke.width) !== null && _a !== void 0 ? _a : NaN)) { - this.context.lineWidth = options.stroke.width; - } - if (options.stroke.strokeColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.stroke.strokeColor); - } - } - } - prepareShadow(shadow) { - var _a, _b, _c, _d; - if (shadow) { - CanvasManager.setShadow(this.context, (_a = shadow.x) !== null && _a !== void 0 ? _a : 0, (_b = shadow.y) !== null && _b !== void 0 ? _b : 0, (_c = shadow.color) !== null && _c !== void 0 ? _c : "black", (_d = shadow.blur) !== null && _d !== void 0 ? _d : 5); - } - } - prepareDashed(dashes) { - if (Array.isArray(dashes)) { - CanvasManager.setLineDash(this.context, ...dashes); - } - } - prepareOpacity(opacity) { - if (!isNaN(opacity !== null && opacity !== void 0 ? opacity : NaN)) { - this.context.globalAlpha = opacity; - } - } -} -//# sourceMappingURL=canvas-drawer-advanced.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-drawer-advanced.js.map b/dist/_esm/dom/canvas-drawer-advanced.js.map deleted file mode 100644 index 0cc25b02..00000000 --- a/dist/_esm/dom/canvas-drawer-advanced.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer-advanced.js","sourceRoot":"","sources":["../../../src/dom/canvas-drawer-advanced.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA0BjD,MAAM,OAAO,oBAAoB;IAG7B,YAAoC,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;QAFpD,WAAM,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,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O,CAAC,MAAM,CAAC,OAAO,CAAC;aACjD;YAED,IAAI,CAAC,KAAK,OAAC,OAAO,CAAC,MAAM,CAAC,KAAK,mCAAI,GAAG,CAAC,EAAE;gBACrC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,KAAe,CAAC;aAC3D;YACD,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE;gBAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;aACpG;SACJ;IACL,CAAC;IAEO,aAAa,CAAC,MAA2B;;QAC7C,IAAI,MAAM,EAAE;YACR,aAAa,CAAC,SAAS,CACnB,IAAI,CAAC,OAAO,QACZ,MAAM,CAAC,CAAC,mCAAI,CAAC,QACb,MAAM,CAAC,CAAC,mCAAI,CAAC,QACb,MAAM,CAAC,KAAK,mCAAI,OAAO,QACvB,MAAM,CAAC,IAAI,mCAAI,CAAC,CACnB,CAAC;SACL;IACL,CAAC;IAEO,aAAa,CAAC,MAAiB;QACnC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACvB,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;SACtD;IACL,CAAC;IAEO,cAAc,CAAC,OAAgB;QACnC,IAAI,CAAC,KAAK,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,GAAG,CAAC,EAAE;YACxB,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,OAAiB,CAAC;SAChD;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/dom/canvas-drawer.js b/dist/_esm/dom/canvas-drawer.js deleted file mode 100644 index c33aaa61..00000000 --- a/dist/_esm/dom/canvas-drawer.js +++ /dev/null @@ -1,175 +0,0 @@ -import { makeRoundedRect } from "./canvas-misc-utilts"; -const PI2 = Math.PI * 2; -export class CanvasDrawer { - constructor(context) { - this.context = context; - } - fillRoundedRect(x, y, w, h, round, color) { - if (color) { - this.context.fillStyle = color; - } - makeRoundedRect(this.context, x, y, w, h, round); - this.context.fill(); - } - strokeRoundedRect(x, y, w, h, round, color, width = NaN) { - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - makeRoundedRect(this.context, x, y, w, h, round); - this.context.stroke(); - } - fillRect(x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - this.context.strokeRect(x, y, w, h); - } - strokeRect(x, y, w, h, color, width = NaN) { - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.strokeRect(x, y, w, h); - } - fillArc(x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - const halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - } - strokeArc(x, y, w, h, color, width = NaN) { - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - const halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - } - fillPath(points, color, close = false) { - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - this.context.moveTo(points[0].x, points[0].y); - for (let i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.fill(); - } - drawPath(points, color, width = NaN, close = false) { - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(points[0].x, points[0].y); - for (let i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.stroke(); - } - drawImage(image, x = 0, y = x, w = NaN, h = w) { - if (isNaN(w) || isNaN(h)) { - this.context.drawImage(image, x, y); - return; - } - this.context.drawImage(image, x, y, w, h); - } - drawLine(x1, y1, x2, y2, color, width = NaN) { - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(x1, y1); - this.context.lineTo(x2, y2); - this.context.stroke(); - } - drawText(text, x, y, w, h, textOptions) { - this.context.fillStyle = textOptions.fontColor; - this.context.font = textOptions.fontSize + "px " + textOptions.font; - let realX = x; - let realY = y; - if (textOptions.verticalAlign === "top") { - this.context.textBaseline = "top"; - } - else if (textOptions.verticalAlign === "center") { - this.context.textBaseline = "middle"; - realY += h / 2; - } - else if (textOptions.verticalAlign === "bottom") { - this.context.textBaseline = "bottom"; - realY += h; - } - if (textOptions.horizontalAlign === "left") { - this.context.textAlign = "left"; - } - else if (textOptions.horizontalAlign === "center") { - this.context.textAlign = "center"; - realX += w / 2; - } - else if (textOptions.horizontalAlign === "right") { - this.context.textAlign = "right"; - realX += w; - } - this.context.fillText(text, realX, realY, w); - } - clear(resetTransform = true) { - if (resetTransform) { - this.context.save(); - this.context.resetTransform(); - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - this.context.restore(); - return; - } - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - } - startDrawingLine(x, y) { - this.context.moveTo(x, y); - } - addPointToLine(x, y, stroke = true) { - this.context.lineTo(x, y); - if (stroke) { - this.context.stroke(); - } - } -} -//# sourceMappingURL=canvas-drawer.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-drawer.js.map b/dist/_esm/dom/canvas-drawer.js.map deleted file mode 100644 index bf3c7204..00000000 --- a/dist/_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AAO,CAAC,OAAO,EAAE,CAAC;YAEvB,OAAO;SACV;QACD,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxF,CAAC;IAEM,gBAAgB,CAAC,CAAS,EAAE,CAAS;QACxC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,cAAc,CAAC,CAAS,EAAE,CAAS,EAAE,MAAM,GAAG,IAAI;QACrD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAE1B,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SACzB;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/dom/canvas-manager.js b/dist/_esm/dom/canvas-manager.js deleted file mode 100644 index 5e333c8f..00000000 --- a/dist/_esm/dom/canvas-manager.js +++ /dev/null @@ -1,111 +0,0 @@ -import { NotBrowserException } from "../errors"; -class AbstractCanvasManager { - constructor(arg1, arg2, arg3) { - if (arg1 instanceof HTMLCanvasElement) { - this.localCanvas = arg1; - if (arg2 && arg3) { - this.setCanvasSize(arg2, arg3); - } - } - else if (arg1 instanceof HTMLImageElement) { - this.localCanvas = CanvasManager.imageToCanvas(arg1); - } - else { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - this.localCanvas = document.createElement("canvas"); - if (arg1 && arg2) { - this.setCanvasSize(arg1, arg2); - } - } - this.localContext = this.localCanvas.getContext("2d"); - } - get canvas() { - return this.localCanvas; - } - get context() { - return this.localContext; - } - setTransform(transform) { - this.setTransformRaw(transform.offset.x, transform.offset.y, transform.scale); - } - setTransformRaw(translationX, translationY, scaleX, scaleY = scaleX) { - if (this.localContext) { - CanvasManager.setTransformRaw(this.localContext, translationX, translationY, scaleX, scaleY); - } - } - getImage() { - return CanvasManager.canvasToImage(this.localCanvas); - } - setShadow(x, y, color, blur) { - if (this.localContext) { - CanvasManager.setShadow(this.localContext, x, y, color, blur); - } - } - show(format = "image/png") { - window.open(this.localCanvas.toDataURL(format), "_blank"); - } - clearCanvas() { - if (this.localContext) { - CanvasManager.clearCanvas(this.localContext); - } - } - setCanvasSize(width = window.innerWidth, height = window.innerHeight) { - CanvasManager.setCanvasSize(this.localCanvas, width, height); - } - appendTo(element) { - element.appendChild(this.localCanvas); - return element; - } -} -export class CanvasManager extends AbstractCanvasManager { - static clearCanvas(ctx) { - ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); - } - static setCanvasSize(canvas, width = window.innerWidth, height = window.innerHeight) { - canvas.width = width; - canvas.height = height; - } - static setShadow(ctx, x, y, color, blur) { - ctx.shadowColor = color; - ctx.shadowBlur = blur; - ctx.shadowOffsetX = x; - ctx.shadowOffsetY = y; - } - static imageToCanvas(image) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - const canvas = document.createElement("canvas"); - canvas.width = image.width; - canvas.height = image.height; - const ctx = canvas.getContext("2d"); - if (ctx) { - ctx.drawImage(image, 0, 0); - } - return canvas; - } - static setLineDash(ctx, ...args) { - if (typeof ctx.setLineDash === "function") { - ctx.setLineDash(args); - } - } - static calcTextWidth(ctx, value, font) { - if (font) { - ctx.font = font; - } - return ctx.measureText(value).width; - } - static setTransformRaw(ctx, translationX, translationY, scaleX, scaleY = scaleX) { - ctx.setTransform(scaleX, 0, 0, scaleY, translationX, translationY); - } - static canvasToImage(canvas, format = "image/png") { - const image = new Image(); - image.src = canvas.toDataURL(format); - image.width = canvas.width; - image.height = canvas.height; - return image; - } -} -//# sourceMappingURL=canvas-manager.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-manager.js.map b/dist/_esm/dom/canvas-manager.js.map deleted file mode 100644 index ac145312..00000000 --- a/dist/_esm/dom/canvas-manager.js.map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AAC;SACzB;IACL,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,GAA6B,EAAE,KAAa,EAAE,IAAa;QACnF,IAAI,IAAI,EAAE;YACN,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;SACnB;QAED,OAAO,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,eAAe,CACzB,GAA6B,EAC7B,YAAoB,EACpB,YAAoB,EACpB,MAAc,EACd,MAAM,GAAG,MAAM;QAEf,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACvE,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,MAAyB,EAAE,MAAM,GAAG,WAAW;QACvE,MAAM,KAAK,GAAI,IAAI,KAAK,EAAE,CAAC;QAC3B,KAAK,CAAC,GAAG,GAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACxC,KAAK,CAAC,KAAK,GAAI,MAAM,CAAC,KAAK,CAAC;QAC5B,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAE7B,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/dom/canvas-misc-utilts.js b/dist/_esm/dom/canvas-misc-utilts.js deleted file mode 100644 index 3fd62579..00000000 --- a/dist/_esm/dom/canvas-misc-utilts.js +++ /dev/null @@ -1,18 +0,0 @@ -export function makeRoundedRect(context, x, y, w, h, radius) { - const tr = typeof radius === "number" ? radius : (typeof radius.tr === "number" ? radius.tr : 0); - const tl = typeof radius === "number" ? radius : (typeof radius.tl === "number" ? radius.tl : 0); - const br = typeof radius === "number" ? radius : (typeof radius.br === "number" ? radius.br : 0); - const bl = typeof radius === "number" ? radius : (typeof radius.bl === "number" ? radius.bl : 0); - context.beginPath(); - context.moveTo(x + tl, y); - context.lineTo(x + w - tr, y); - context.quadraticCurveTo(x + w, y, x + w, y + tr); - context.lineTo(x + w, y + h - br); - context.quadraticCurveTo(x + w, y + h, x + w - br, y + h); - context.lineTo(x + bl, y + h); - context.quadraticCurveTo(x, y + h, x, y + h - bl); - context.lineTo(x, y + tl); - context.quadraticCurveTo(x, y, x + tl, y); - context.closePath(); -} -//# sourceMappingURL=canvas-misc-utilts.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-misc-utilts.js.map b/dist/_esm/dom/canvas-misc-utilts.js.map deleted file mode 100644 index 21b2e8ff..00000000 --- a/dist/_esm/dom/canvas-misc-utilts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-misc-utilts.js","sourceRoot":"","sources":["../../../src/dom/canvas-misc-utilts.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAC3B,OAAiC,EACjC,CAAS,EACT,CAAS,EACT,CAAS,EACT,CAAS,EACT,MAAiB;IACjB,MAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,MAAM,EAAE,GAAG,OA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891eef..00000000 --- a/dist/_esm/dom/canvas-utils.js +++ /dev/null @@ -1,157 +0,0 @@ -import { CanvasManager } from "./canvas-manager"; -function setShadow(context, config) { - if (config) { - CanvasManager.setShadow(context, config.x, config.y, config.color, config.blur); - } - else { - CanvasManager.setShadow(context, 0, 0, "black", 0); - } -} -function process(res) { - if (res.shadow) { - setShadow(res.ctx, res.shadow); - } - if (res.bgImage) { - res.ctx.save(); - res.ctx.clip(); - if (res.bgImage instanceof HTMLImageElement) { - res.ctx.drawImage(res.bgImage, res.x, res.y, res.width, res.height); - } - else { - res.ctx.drawImage(res.bgImage.img, res.bgImage.x, res.bgImage.y, res.bgImage.w, res.bgImage.h, res.x, res.y, res.width, res.height); - } - res.ctx.restore(); - } - else if (res.fill) { - res.ctx.fillStyle = res.fillColor; - res.ctx.fill(); - } - if (res.shadow) { - setShadow(res.ctx); - } - res.ctx.lineCap = res.lineCap; - res.ctx.lineJoin = res.joinType; - if (typeof res.ctx.setLineDash === "function") { - res.ctx.setLineDash(res.lineDash); - } - if (!res.draw) { - return; - } - res.ctx.lineWidth = res.borderWidth; - res.ctx.strokeStyle = res.borderColor; - res.ctx.stroke(); -} -function initDef(obj) { - return { - borderColor: "black", - borderWidth: 1, - center: false, - ctx: obj.ctx, - draw: typeof obj.borderColor !== "undefined" || typeof obj.borderWidth !== "undefined", - endAngle: Math.PI * 2, - fill: typeof obj.fillColor !== "undefined", - fillColor: "white", - height: 0, - joinType: "bevel", - lineCap: "round", - lineDash: [], - offset: null, - radius: { - tl: 0, - tr: 0, - br: 0, - bl: 0, - }, - startAngle: 0, - width: 0, - x: 0, - y: 0, - }; -} -function remakePosAndSize(def, obj) { - const res = $.extend(def, obj); - const checkAttribute = (attrName, partA, partB) => { - if (typeof res[attrName] === "undefined") { - return; - } - const value = res[attrName]; - if (!isNaN(value)) { - res[partA] = value; - res[partB] = value; - } - else if (Array.isArray(value)) { - res[partA] = value[0]; - res[partB] = value[1]; - } - else { - res[partA] = value; - res[partB] = value; - } - }; - checkAttribute("size", "width", "size"); - checkAttribute("position", "x", "y"); - if (res.center) { - res.x -= res.width >> 1; - res.y -= res.height >> 1; - } - return res; -} -function checkPosAndSize(obj, name) { - if ((typeof obj.x === "undefined" || typeof obj.y === "undefined") && typeof obj.position === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_POSITION: " + name); - } - if ((typeof obj.width === "undefined" || typeof obj.height === "undefined") && typeof obj.size === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_SIZE: " + name); - } - if (obj.width <= 0 || obj.height <= 0) { - console.error("MSG_TRY_DRAW_WITH_NEG_POSITION: " + name); - } - return initDef(obj); -} -export class CanvasUtils { - static doArc(obj) { - const res = remakePosAndSize(checkPosAndSize(obj, "Arc"), obj); - res.ctx.beginPath(); - if (typeof res.ctx.ellipse === "function") { - res.ctx.ellipse(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1, 0, res.startAngle, res.endAngle); - } - else { - res.ctx.rect(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1); - } - process(res); - } - static doRect(obj) { - const def = checkPosAndSize(obj, "Rect"); - if (typeof obj.radius !== "undefined") { - if (!isNaN(obj.radius)) { - obj.radius = { - bl: obj.radius, - br: obj.radius, - tl: obj.radius, - tr: obj.radius, - }; - } - else { - for (const key in def.radius) { - if (def.radius.hasOwnProperty(key)) { - obj.radius[key] = obj.radius[key] || def.radius[key]; - } - } - } - } - const res = remakePosAndSize(def, obj); - res.ctx.beginPath(); - res.ctx.moveTo(res.x + res.radius.tl, res.y); - res.ctx.lineTo(res.x + res.width - res.radius.tr, res.y); - res.ctx.quadraticCurveTo(res.x + res.width, res.y, res.x + res.width, res.y + res.radius.tr); - res.ctx.lineTo(res.x + res.width, res.y + res.height - res.radius.br); - res.ctx.quadraticCurveTo(res.x + res.width, res.y + res.height, res.x + res.width - res.radius.br, res.y + res.height); - res.ctx.lineTo(res.x + res.radius.bl, res.y + res.height); - res.ctx.quadraticCurveTo(res.x, res.y + res.height, res.x, res.y + res.height - res.radius.bl); - res.ctx.lineTo(res.x, res.y + res.radius.tl); - res.ctx.quadraticCurveTo(res.x, res.y, res.x + res.radius.tl, res.y); - res.ctx.closePath(); - process(res); - } -} -//# sourceMappingURL=canvas-utils.js.map \ No newline at end of file diff --git a/dist/_esm/dom/canvas-utils.js.map b/dist/_esm/dom/canvas-utils.js.map deleted file mode 100644 index d945c31e..00000000 --- a/dist/_esm/dom/canvas-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-utils.js","sourceRoot":"","sources":["../../../src/dom/canvas-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAyCjD,SAAS,SAAS,CAAC,OAAiC,EAAE,MAA2B;IAC7E,IAAI,MAAM,EAAE;QACR,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;KACnF;SAAM;QACH,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;KACtD;AACL,CAAC;AAED,SAAS,OAAO,CAAC,GAAiB;IAC9B,IAAI,GAAG,CAAC,MAAM,EAAE;QACZ,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;KAClC;IACD,IAAI,GAAG,CAAC,OAAO,EAAE;QACb,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACf,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACf,IAAI,GAAG,CAAC,OAAO,YAAY,gBAAgB,EAAE;YACzC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAA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dist/_esm/dom/dom-get.js +++ /dev/null @@ -1,22 +0,0 @@ -let localContext = typeof document !== "undefined" ? document : null; -export class DomGet { - static setContext(context) { - localContext = context; - } - static byClass(className, context = localContext) { - return context.getElementsByClassName(className); - } - static byLink(link, context = localContext) { - return context.querySelectorAll(`a[attr="${link}"]`); - } - static byId(id, context = localContext) { - return context.getElementById(id); - } - static byName(name, context = localContext) { - return context.getElementsByName(name); - } - static byTag(tagName, context = localContext) { - return context.getElementsByTagName(tagName); - } -} -//# sourceMappingURL=dom-get.js.map \ No newline at end of file diff --git a/dist/_esm/dom/dom-get.js.map b/dist/_esm/dom/dom-get.js.map deleted file mode 100644 index f76e3803..00000000 --- a/dist/_esm/dom/dom-get.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom-get.js","sourceRoot":"","sources":["../../../src/dom/dom-get.ts"],"names":[],"mappings":"AAEA,IAAI,YAAY,GAAoB,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AAEtF,MAAM,OAAO,MAAM;IAKR,MAAM,CAAC,UAAU,CAAC,OAAiB;QACtC,YAAY,GAAG,OAAO,CAAC;IAC3B,CAAC;IAQM,MAAM,CAAC,OAAO,CAAC,SAAiB,EAAE,UAAoB,YAAwB;QACjF,OAAO,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAQM,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,gBAAgB,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC;IACzD,CAAC;IAQM,MAAM,CAAC,IAAI,CAAC,EAAU,EAAE,UAAoB,YAAwB;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAQM,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAQM,MAAM,CAAC,KAAK,CAAC,OAAe,EAAE,UAAoB,YAAwB;QAC7E,OAAO,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAQ,CAAC;IACxD,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/dom/drawer.js b/dist/_esm/dom/drawer.js deleted file mode 100644 index 28c01a9c..00000000 --- a/dist/_esm/dom/drawer.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=drawer.js.map \ No newline at end of file diff --git a/dist/_esm/dom/drawer.js.map b/dist/_esm/dom/drawer.js.map deleted file mode 100644 index 224b5528..00000000 --- a/dist/_esm/dom/drawer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../src/dom/drawer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/dom/element-builder.js b/dist/_esm/dom/element-builder.js deleted file mode 100644 index 94490931..00000000 --- a/dist/_esm/dom/element-builder.js +++ /dev/null @@ -1,86 +0,0 @@ -let localContext = document; -export class ElementBuilder { - constructor(elementName, parent) { - this.elementName = elementName; - this.parent = parent; - this.styles = {}; - this.attributes = {}; - this.contentBuffer = []; - } - static setContext(context) { - localContext = context; - } - static start(elementName) { - return new ElementBuilder(elementName); - } - child(elementName) { - return new ElementBuilder(elementName, this); - } - reset() { - this.styles = {}; - this.attributes = {}; - delete this.result; - return this.clearContent(); - } - style(key, value) { - this.styles.key = value; - return this; - } - attribute(key, value) { - this.attributes.key = value; - return this; - } - content(newContent) { - return this.clearContent().addContent(newContent); - } - addContent(newContent) { - this.contentBuffer.push(newContent); - return this; - } - clearContent() { - this.contentBuffer.splice(0, this.contentBuffer.length); - return this; - } - finish() { - if (!this.parent) { - throw new Error("Parent must be set"); - } - return this.parent.addContent(this.build()); - } - build() { - this.result = localContext.createElement(this.elementName); - this.contentBuffer.forEach((content) => { - if (typeof content === "string") { - this.result.innerHTML += content; - } - else { - this.result.appendChild(content); - } - }); - return this.result; - } - id(id) { - return this.attribute("id", id); - } - clazz(clazz) { - return this.attribute("class", clazz); - } - buildAndAppendTo(parent) { - parent.appendChild(this.build()); - return this; - } - get() { - return this.result; - } -} -ElementBuilder.start("div").attribute("class", "main-class").attribute("id", "main-id").build(); -ElementBuilder.start("div").clazz("main-class").id("main-id").build(); -ElementBuilder.start("table") - .id("main-table") - .child("tr").clazz("table-row") - .child("td").clazz("table-column") - .content("hello world") - .finish() - .finish() - .buildAndAppendTo(document.body); -//# sourceMappingURL=element-builder.js.map \ No newline at end of file diff --git a/dist/_esm/dom/element-builder.js.map b/dist/_esm/dom/element-builder.js.map deleted file mode 100644 index 8b1946ba..00000000 --- a/dist/_esm/dom/element-builder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element-builder.js","sourceRoot":"","sources":["../../../src/dom/element-builder.ts"],"names":[],"mappings":"AAIA,IAAI,YAAY,GAAa,QAAQ,CAAC;AAEtC,MAAM,OAAO,cAAc;IAMvB,YAAqC,WAAmB,EAAmB,MAAuB;QAA7D,gBAAW,GAAX,WAAW,CAAQ;QAAmB,WAAM,GAAN,MAAM,CAAiB;QAJ1F,WAAM,GAA6C,EAAE,CAAC;QACtD,eAAU,GAAyC,EAAE,CAAC;QAC7C,kBAAa,GAA6B,EAAE,CAAC;IAG9D,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,OAAiB;QACtC,YAAY,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAmB;QACnC,OAAO,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3C,CAAC;IAEM,KAAK,CAAC,WAAmB;QAC5B,OAAO,IAAI,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,MAAM,GAAO,EAAE,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC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CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;aACrD;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,EAAE,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK,CAAC,KAAa;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAEM,gBAAgB,CAAC,MAAmB;QACvC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAEjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG;QACN,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;CACJ;AAED,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;AAChG,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;AAEtE,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC;KACxB,EAAE,CAAC,YAAY,CAAC;KAChB,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;KAC9B,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;KACjC,OAAO,CAAC,aAAa,CAAC;KACtB,MAAM,EAAE;KACR,MAAM,EAAE;KACR,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/dom/types/canvas-shadow-config.js b/dist/_esm/dom/types/canvas-shadow-config.js deleted file mode 100644 index 54d73b0a..00000000 --- a/dist/_esm/dom/types/canvas-shadow-config.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=canvas-shadow-config.js.map \ No newline at end of file diff --git a/dist/_esm/dom/types/canvas-shadow-config.js.map b/dist/_esm/dom/types/canvas-shadow-config.js.map deleted file mode 100644 index bbe37ac1..00000000 --- a/dist/_esm/dom/types/canvas-shadow-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-shadow-config.js","sourceRoot":"","sources":["../../../../src/dom/types/canvas-shadow-config.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/enums/button.enum.js b/dist/_esm/enums/button.enum.js deleted file mode 100644 index 385c2626..00000000 --- a/dist/_esm/enums/button.enum.js +++ /dev/null @@ -1,9 +0,0 @@ -export var Button; -(function (Button) { - Button[Button["LEFT"] = 0] = "LEFT"; - Button[Button["MIDDLE"] = 1] = "MIDDLE"; - Button[Button["RIGHT"] = 2] = "RIGHT"; - Button[Button["BACK"] = 3] = "BACK"; - Button[Button["FORWARD"] = 4] = "FORWARD"; -})(Button || (Button = {})); -//# sourceMappingURL=button.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/button.enum.js.map b/dist/_esm/enums/button.enum.js.map deleted file mode 100644 index dc7317c0..00000000 --- a/dist/_esm/enums/button.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"button.enum.js","sourceRoot":"","sources":["../../../src/enums/button.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAMX;AAND,WAAY,MAAM;IACd,mCAAW,CAAA;IACX,uCAAW,CAAA;IACX,qCAAW,CAAA;IACX,mCAAW,CAAA;IACX,yCAAW,CAAA;AACf,CAAC,EANW,MAAM,KAAN,MAAM,QAMjB"} \ No newline at end of file diff --git a/dist/_esm/enums/days.enum.js b/dist/_esm/enums/days.enum.js deleted file mode 100644 index b84295d7..00000000 --- a/dist/_esm/enums/days.enum.js +++ /dev/null @@ -1,11 +0,0 @@ -export var Days; -(function (Days) { - Days["MON"] = "MON"; - Days["TUE"] = "TUE"; - Days["WED"] = "WED"; - Days["THU"] = "THU"; - Days["FRI"] = "FRI"; - Days["SAT"] = "SAT"; - Days["SUN"] = "SUN"; -})(Days || (Days = {})); -//# sourceMappingURL=days.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/days.enum.js.map b/dist/_esm/enums/days.enum.js.map deleted file mode 100644 index 195912e9..00000000 --- a/dist/_esm/enums/days.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"days.enum.js","sourceRoot":"","sources":["../../../src/enums/days.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAQX;AARD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;AACf,CAAC,EARW,IAAI,KAAJ,IAAI,QAQf"} \ No newline at end of file diff --git a/dist/_esm/enums/encodings.enum.js b/dist/_esm/enums/encodings.enum.js deleted file mode 100644 index a8a5571e..00000000 --- a/dist/_esm/enums/encodings.enum.js +++ /dev/null @@ -1,9 +0,0 @@ -export var Encodings; -(function (Encodings) { - Encodings["UTF8"] = "utf8"; - Encodings["UTF16"] = "utf16"; - Encodings["UNICODE"] = "unicode"; - Encodings["ASCII"] = "ascii"; - Encodings["UCS2"] = "ucs2"; -})(Encodings || (Encodings = {})); -//# sourceMappingURL=encodings.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/encodings.enum.js.map b/dist/_esm/enums/encodings.enum.js.map deleted file mode 100644 index 2bef6f74..00000000 --- a/dist/_esm/enums/encodings.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodings.enum.js","sourceRoot":"","sources":["../../../src/enums/encodings.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAQjB,0BAAgB,CAAA;IAChB,4BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAiB,CAAA;IACjB,0BAAgB,CAAA;AACpB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB"} \ No newline at end of file diff --git a/dist/_esm/enums/file-types.enum.js b/dist/_esm/enums/file-types.enum.js deleted file mode 100644 index dc27282c..00000000 --- a/dist/_esm/enums/file-types.enum.js +++ /dev/null @@ -1,15 +0,0 @@ -export var FileTypes; -(function (FileTypes) { - FileTypes["CSS"] = "text/css"; - FileTypes["HTML"] = "text/html"; - FileTypes["JS"] = "application/javascript"; - FileTypes["MP3"] = "audio/mpeg"; - FileTypes["MP4"] = "video/mp4"; - FileTypes["OGG"] = "application/ogg"; - FileTypes["OGV"] = "video/ogg"; - FileTypes["OGA"] = "audio/ogg"; - FileTypes["TXT"] = "text/plain"; - FileTypes["WAV"] = "audio/x-wav"; - FileTypes["WEBM"] = "video/webm"; -})(FileTypes || (FileTypes = {})); -//# sourceMappingURL=file-types.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/file-types.enum.js.map b/dist/_esm/enums/file-types.enum.js.map deleted file mode 100644 index bb175d1e..00000000 --- a/dist/_esm/enums/file-types.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-types.enum.js","sourceRoot":"","sources":["../../../src/enums/file-types.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAYX;AAZD,WAAY,SAAS;IACjB,6BAAiB,CAAA;IACjB,+BAAkB,CAAA;IAClB,0CAA+B,CAAA;IAC/B,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,oCAAwB,CAAA;IACxB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,+BAAmB,CAAA;IACnB,gCAAoB,CAAA;IACpB,gCAAmB,CAAA;AACvB,CAAC,EAZW,SAAS,KAAT,SAAS,QAYpB"} \ No newline at end of file diff --git a/dist/_esm/enums/http-status-codes.enum.js b/dist/_esm/enums/http-status-codes.enum.js deleted file mode 100644 index 69eb3033..00000000 --- a/dist/_esm/enums/http-status-codes.enum.js +++ /dev/null @@ -1,46 +0,0 @@ -export var HttpStatusCodes; -(function (HttpStatusCodes) { - HttpStatusCodes[HttpStatusCodes["CONTINUE"] = 100] = "CONTINUE"; - HttpStatusCodes[HttpStatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS"; - HttpStatusCodes[HttpStatusCodes["OK"] = 200] = "OK"; - HttpStatusCodes[HttpStatusCodes["CREATED"] = 201] = "CREATED"; - HttpStatusCodes[HttpStatusCodes["ACCEPTED"] = 202] = "ACCEPTED"; - HttpStatusCodes[HttpStatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION"; - HttpStatusCodes[HttpStatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT"; - HttpStatusCodes[HttpStatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT"; - HttpStatusCodes[HttpStatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT"; - HttpStatusCodes[HttpStatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES"; - HttpStatusCodes[HttpStatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY"; - HttpStatusCodes[HttpStatusCodes["FOUND"] = 302] = "FOUND"; - HttpStatusCodes[HttpStatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER"; - HttpStatusCodes[HttpStatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED"; - HttpStatusCodes[HttpStatusCodes["USE_PROXY"] = 305] = "USE_PROXY"; - HttpStatusCodes[HttpStatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT"; - HttpStatusCodes[HttpStatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST"; - HttpStatusCodes[HttpStatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED"; - HttpStatusCodes[HttpStatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN"; - HttpStatusCodes[HttpStatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND"; - HttpStatusCodes[HttpStatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED"; - HttpStatusCodes[HttpStatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE"; - HttpStatusCodes[HttpStatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["CONFLICT"] = 409] = "CONFLICT"; - HttpStatusCodes[HttpStatusCodes["GONE"] = 410] = "GONE"; - HttpStatusCodes[HttpStatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_ENTITY_TOO_LARGE"] = 413] = "REQUEST_ENTITY_TOO_LARGE"; - HttpStatusCodes[HttpStatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG"; - HttpStatusCodes[HttpStatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE"; - HttpStatusCodes[HttpStatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE"; - HttpStatusCodes[HttpStatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED"; - HttpStatusCodes[HttpStatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY"; - HttpStatusCodes[HttpStatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS"; - HttpStatusCodes[HttpStatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR"; - HttpStatusCodes[HttpStatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED"; - HttpStatusCodes[HttpStatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY"; - HttpStatusCodes[HttpStatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE"; - HttpStatusCodes[HttpStatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED"; -})(HttpStatusCodes || (HttpStatusCodes = {})); -//# sourceMappingURL=http-status-codes.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/http-status-codes.enum.js.map b/dist/_esm/enums/http-status-codes.enum.js.map deleted file mode 100644 index 2832691a..00000000 --- a/dist/_esm/enums/http-status-codes.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-status-codes.enum.js","sourceRoot":"","sources":["../../../src/enums/http-status-codes.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eA2CX;AA3CD,WAAY,eAAe;IACvB,+DAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,mDAAqC,CAAA;IACrC,6DAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,mEAAqC,CAAA;IACrC,yEAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,2EAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,uDAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,+FAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,2FAAqC,CAAA;IACrC,6GAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,mGAAqC,CAAA;AACzC,CAAC,EA3CW,eAAe,KAAf,eAAe,QA2C1B"} \ No newline at end of file diff --git a/dist/_esm/enums/index.js b/dist/_esm/enums/index.js deleted file mode 100644 index dfd4cb36..00000000 --- a/dist/_esm/enums/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./button.enum"; -export * from "./days.enum"; -export * from "./encodings.enum"; -export * from "./file-types.enum"; -export * from "./http-status-codes.enum"; -export * from "./keys.enum"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/enums/index.js.map b/dist/_esm/enums/index.js.map deleted file mode 100644 index 1f5e5416..00000000 --- a/dist/_esm/enums/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/_esm/enums/keys.enum.js b/dist/_esm/enums/keys.enum.js deleted file mode 100644 index 30ada693..00000000 --- a/dist/_esm/enums/keys.enum.js +++ /dev/null @@ -1,61 +0,0 @@ -export var Keys; -(function (Keys) { - Keys["ARROW_UP"] = "ArrowUp"; - Keys["ARROW_DOWN"] = "ArrowDown"; - Keys["ARROW_LEFT"] = "ArrowLeft"; - Keys["ARROW_RIGHT"] = "ArrowRight"; - Keys["DELETE"] = "Delete"; - Keys["CONTROL"] = "ControlLeft"; - Keys["SHIFT"] = "ShiftLeft"; - Keys["PAGE_UP"] = "PageUp"; - Keys["PAGE_DOWN"] = "PageDown"; - Keys["ESCAPE"] = "Escape"; - Keys["SPACE"] = "Space"; - Keys["ENTER"] = "Enter"; - Keys["W"] = "KeyW"; - Keys["F"] = "KeyF"; - Keys["A"] = "KeyA"; - Keys["P"] = "KeyP"; - Keys["S"] = "KeyS"; - Keys["D"] = "KeyD"; - Keys["R"] = "KeyR"; - Keys["Y"] = "KeyY"; - Keys["Z"] = "KeyZ"; - Keys["X"] = "KeyX"; - Keys["V"] = "KeyV"; - Keys["C"] = "KeyC"; - Keys["O"] = "KeyO"; - Keys["H"] = "KeyH"; - Keys["L"] = "KeyL"; - Keys["DIGIT_1"] = "Digit1"; - Keys["DIGIT_2"] = "Digit2"; - Keys["DIGIT_3"] = "Digit3"; - Keys["DIGIT_4"] = "Digit4"; - Keys["DIGIT_5"] = "Digit5"; - Keys["DIGIT_6"] = "Digit6"; - Keys["DIGIT_7"] = "Digit7"; - Keys["DIGIT_8"] = "Digit8"; - Keys["DIGIT_9"] = "Digit9"; - Keys["DIGIT_0"] = "Digit0"; -})(Keys || (Keys = {})); -export class KeysOld { -} -KeysOld.ENTER = 13; -KeysOld.TAB = 9; -KeysOld.W = 87; -KeysOld.A = 65; -KeysOld.S = 83; -KeysOld.D = 68; -KeysOld.Q = 81; -KeysOld.E = 69; -KeysOld.F = 70; -KeysOld.LCONTROL = 17; -KeysOld.ESCAPE = 27; -KeysOld.LALT = 18; -KeysOld.LSHIFT = 16; -KeysOld.SPACE = 32; -KeysOld.ARROW_UP = 38; -KeysOld.ARROW_DOWN = 40; -KeysOld.ARROW_RIGHT = 39; -KeysOld.ARROW_LEFT = 37; -//# sourceMappingURL=keys.enum.js.map \ No newline at end of file diff --git a/dist/_esm/enums/keys.enum.js.map b/dist/_esm/enums/keys.enum.js.map deleted file mode 100644 index 8e86855a..00000000 --- a/dist/_esm/enums/keys.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keys.enum.js","sourceRoot":"","sources":["../../../src/enums/keys.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAuCX;AAvCD,WAAY,IAAI;IACZ,4BAAuB,CAAA;IACvB,gCAAyB,CAAA;IACzB,gCAAyB,CAAA;IACzB,kCAA0B,CAAA;IAC1B,yBAAsB,CAAA;IACtB,+BAA2B,CAAA;IAC3B,2BAAyB,CAAA;IACzB,0BAAsB,CAAA;IACtB,8BAAwB,CAAA;IACxB,yBAAsB,CAAA;IACtB,uBAAqB,CAAA;IACrB,uBAAqB,CAAA;IACrB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IAEpB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;AAC1B,CAAC,EAvCW,IAAI,KAAJ,IAAI,QAuCf;AAED,MAAM,OAAO,OAAO;;AACO,aAAK,GAAS,EAAE,CAAC;AACjB,WAAG,GAAW,CAAC,CAAC;AAChB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,SAAC,GAAa,EAAE,CAAC;AACjB,gBAAQ,GAAM,EAAE,CAAC;AACjB,cAAM,GAAQ,EAAE,CAAC;AACjB,YAAI,GAAU,EAAE,CAAC;AACjB,cAAM,GAAQ,EAAE,CAAC;AACjB,aAAK,GAAS,EAAE,CAAC;AACjB,gBAAQ,GAAM,EAAE,CAAC;AACjB,kBAAU,GAAI,EAAE,CAAC;AACjB,mBAAW,GAAG,EAAE,CAAC;AACjB,kBAAU,GAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/errors/index.js b/dist/_esm/errors/index.js deleted file mode 100644 index 86232aad..00000000 --- a/dist/_esm/errors/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./not-browser.exception"; -export * from "./null-pointer.exception"; -export * from "./wrong-parameter.exception"; -export * from "./missing-parameter.error"; -export * from "./no-database-connection.error"; -export * from "./wrong-type.exception"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/errors/index.js.map b/dist/_esm/errors/index.js.map deleted file mode 100644 index 69dc34c3..00000000 --- a/dist/_esm/errors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/errors/missing-parameter.error.js b/dist/_esm/errors/missing-parameter.error.js deleted file mode 100644 index b998ef1e..00000000 --- a/dist/_esm/errors/missing-parameter.error.js +++ /dev/null @@ -1,6 +0,0 @@ -export class MissingParameterError extends Error { - constructor(parameterName) { - super(`Parameter ${parameterName} must be defined`); - } -} -//# sourceMappingURL=missing-parameter.error.js.map \ No newline at end of file diff --git a/dist/_esm/errors/missing-parameter.error.js.map b/dist/_esm/errors/missing-parameter.error.js.map deleted file mode 100644 index 9d68163b..00000000 --- a/dist/_esm/errors/missing-parameter.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"missing-parameter.error.js","sourceRoot":"","sources":["../../../src/errors/missing-parameter.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC5C,YAAmB,aAAqB;QACpC,KAAK,CAAC,aAAa,aAAa,kBAAkB,CAAC,CAAC;IACxD,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/errors/no-database-connection.error.js b/dist/_esm/errors/no-database-connection.error.js deleted file mode 100644 index dedfd472..00000000 --- a/dist/_esm/errors/no-database-connection.error.js +++ /dev/null @@ -1,6 +0,0 @@ -export class NoDatabaseConnectionError extends Error { - constructor() { - super("Database connection is no established"); - } -} -//# sourceMappingURL=no-database-connection.error.js.map \ No newline at end of file diff --git a/dist/_esm/errors/no-database-connection.error.js.map b/dist/_esm/errors/no-database-connection.error.js.map deleted file mode 100644 index c3a2fc5a..00000000 --- a/dist/_esm/errors/no-database-connection.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-database-connection.error.js","sourceRoot":"","sources":["../../../src/errors/no-database-connection.error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAChD;QACI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACnD,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/errors/not-browser.exception.js b/dist/_esm/errors/not-browser.exception.js deleted file mode 100644 index 2523c366..00000000 --- a/dist/_esm/errors/not-browser.exception.js +++ /dev/null @@ -1,10 +0,0 @@ -function getText(text) { - return text ? `: ${text}` : ""; -} -export class NotBrowserException extends Error { - constructor(text) { - super(`App is not running in browser${getText(text)}!`); - Object.setPrototypeOf(this, NotBrowserException.prototype); - } -} -//# sourceMappingURL=not-browser.exception.js.map \ No newline at end of file diff --git a/dist/_esm/errors/not-browser.exception.js.map b/dist/_esm/errors/not-browser.exception.js.map deleted file mode 100644 index 94d41adb..00000000 --- a/dist/_esm/errors/not-browser.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not-browser.exception.js","sourceRoot":"","sources":["../../../src/errors/not-browser.exception.ts"],"names":[],"mappings":"AAAA,SAAS,OAAO,CAAC,IAAa;IAC1B,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACnC,CAAC;AAED,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC1C,YAAmB,IAAa;QAC5B,KAAK,CAAC,gCAAgC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAExD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/errors/null-pointer.exception.js b/dist/_esm/errors/null-pointer.exception.js deleted file mode 100644 index 5c13520d..00000000 --- a/dist/_esm/errors/null-pointer.exception.js +++ /dev/null @@ -1,7 +0,0 @@ -export class NullPointerException extends Error { - constructor(text) { - super("Null pointer exception at line" + (typeof text === "string" ? ": " + text : "!")); - Object.setPrototypeOf(this, NullPointerException.prototype); - } -} -//# sourceMappingURL=null-pointer.exception.js.map \ No newline at end of file diff --git a/dist/_esm/errors/null-pointer.exception.js.map b/dist/_esm/errors/null-pointer.exception.js.map deleted file mode 100644 index b6d4fc79..00000000 --- a/dist/_esm/errors/null-pointer.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"null-pointer.exception.js","sourceRoot":"","sources":["../../../src/errors/null-pointer.exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC3C,YAAmB,IAAa;QAC5B,KAAK,CAAC,gCAAgC,GAAG,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAEzF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/errors/wrong-parameter.exception.js b/dist/_esm/errors/wrong-parameter.exception.js deleted file mode 100644 index 7e50ba2a..00000000 --- a/dist/_esm/errors/wrong-parameter.exception.js +++ /dev/null @@ -1,7 +0,0 @@ -export class WrongParameterException extends Error { - constructor(text) { - super(`Wrong parameter exception at line${typeof text === "string" ? ": " + text : "!"}`); - Object.setPrototypeOf(this, WrongParameterException.prototype); - } -} -//# sourceMappingURL=wrong-parameter.exception.js.map \ No newline at end of file diff --git a/dist/_esm/errors/wrong-parameter.exception.js.map b/dist/_esm/errors/wrong-parameter.exception.js.map deleted file mode 100644 index 7c2f3e61..00000000 --- a/dist/_esm/errors/wrong-parameter.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-parameter.exception.js","sourceRoot":"","sources":["../../../src/errors/wrong-parameter.exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAC9C,YAAmB,IAAa;QAC5B,KAAK,CAAC,oCAAoC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;QAE1F,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACnE,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/errors/wrong-type.exception.js b/dist/_esm/errors/wrong-type.exception.js deleted file mode 100644 index 98d8ccbb..00000000 --- a/dist/_esm/errors/wrong-type.exception.js +++ /dev/null @@ -1,7 +0,0 @@ -export class WrongTypeException extends Error { - constructor(requiredType, text) { - super(`Wrong type exception at line. ${typeof requiredType} must be ${requiredType}${typeof text === "string" ? ": " + text : "!"}`); - Object.setPrototypeOf(this, WrongTypeException.prototype); - } -} -//# sourceMappingURL=wrong-type.exception.js.map \ No newline at end of file diff --git a/dist/_esm/errors/wrong-type.exception.js.map b/dist/_esm/errors/wrong-type.exception.js.map deleted file mode 100644 index dfbc8f43..00000000 --- a/dist/_esm/errors/wrong-type.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-type.exception.js","sourceRoot":"","sources":["../../../src/errors/wrong-type.exception.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IACzC,YAAmB,YAAoB,EAAE,IAAa;QAClD,KAAK,CAAC,iCAAiC,OAAO,YAAY,YAAY,YAAY,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;QAErI,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/index.js b/dist/_esm/index.js deleted file mode 100644 index ecf3dce5..00000000 --- a/dist/_esm/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./GUtils"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/index.js.map b/dist/_esm/index.js.map deleted file mode 100644 index fa90f699..00000000 --- a/dist/_esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/_esm/math/index.js b/dist/_esm/math/index.js deleted file mode 100644 index 57bcc404..00000000 --- a/dist/_esm/math/index.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./simple-vector2"; -export * from "./simple-vector3"; -export * from "./simple-vector4"; -export * from "./simple-vector-xz"; -export * from "./vector"; -export * from "./vector2"; -export * from "./vector2f"; -export * from "./vector3"; -export * from "./vector4"; -export * from "./mat4"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/math/index.js.map b/dist/_esm/math/index.js.map deleted file mode 100644 index 2e4794f1..00000000 --- a/dist/_esm/math/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/_esm/math/mat4.js b/dist/_esm/math/mat4.js deleted file mode 100644 index 6d544f14..00000000 --- a/dist/_esm/math/mat4.js +++ /dev/null @@ -1,22 +0,0 @@ -export class SimpleMat4 { - constructor(data) { - this.data = data; - } - set(x, y, value) { - this.data[x][y] = value; - } - get(x, y) { - return this.data[x][y]; - } -} -export class Mat4 extends SimpleMat4 { - static createViewMatrix() { - } - static createTransformMatrix() { - } - static createPerspectiveMatrix() { - } - static createOrthographicMatrix() { - } -} -//# sourceMappingURL=mat4.js.map \ No newline at end of file diff --git a/dist/_esm/math/mat4.js.map b/dist/_esm/math/mat4.js.map deleted file mode 100644 index 49f2d0fe..00000000 --- a/dist/_esm/math/mat4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mat4.js","sourceRoot":"","sources":["../../../src/math/mat4.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,UAAU;IACnB,YAAoC,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IACpD,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,KAAa;QAC1C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC5B,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;CACJ;AAED,MAAM,OAAO,IAAK,SAAQ,UAAU;IACzB,MAAM,CAAC,gBAAgB;IAE9B,CAAC;IACM,MAAM,CAAC,qBAAqB;IAEnC,CAAC;IACM,MAAM,CAAC,uBAAuB;IAErC,CAAC;IACM,MAAM,CAAC,wBAAwB;IAEtC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/math/simple-vector-xz.js b/dist/_esm/math/simple-vector-xz.js deleted file mode 100644 index 17fa8bfa..00000000 --- a/dist/_esm/math/simple-vector-xz.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector-xz.js.map \ No newline at end of file diff --git a/dist/_esm/math/simple-vector-xz.js.map b/dist/_esm/math/simple-vector-xz.js.map deleted file mode 100644 index f5b15bcd..00000000 --- a/dist/_esm/math/simple-vector-xz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector-xz.js","sourceRoot":"","sources":["../../../src/math/simple-vector-xz.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/math/simple-vector2.js b/dist/_esm/math/simple-vector2.js deleted file mode 100644 index 3d97cf37..00000000 --- a/dist/_esm/math/simple-vector2.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector2.js.map \ No newline at end of file diff --git a/dist/_esm/math/simple-vector2.js.map b/dist/_esm/math/simple-vector2.js.map deleted file mode 100644 index 231adae2..00000000 --- a/dist/_esm/math/simple-vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector2.js","sourceRoot":"","sources":["../../../src/math/simple-vector2.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/math/simple-vector3.js b/dist/_esm/math/simple-vector3.js deleted file mode 100644 index 6b245b7a..00000000 --- a/dist/_esm/math/simple-vector3.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector3.js.map \ No newline at end of file diff --git a/dist/_esm/math/simple-vector3.js.map b/dist/_esm/math/simple-vector3.js.map deleted file mode 100644 index 2abade96..00000000 --- a/dist/_esm/math/simple-vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector3.js","sourceRoot":"","sources":["../../../src/math/simple-vector3.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/math/simple-vector4.js b/dist/_esm/math/simple-vector4.js deleted file mode 100644 index faf846ec..00000000 --- a/dist/_esm/math/simple-vector4.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector4.js.map \ No newline at end of file diff --git a/dist/_esm/math/simple-vector4.js.map b/dist/_esm/math/simple-vector4.js.map deleted file mode 100644 index 1897e5cf..00000000 --- a/dist/_esm/math/simple-vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector4.js","sourceRoot":"","sources":["../../../src/math/simple-vector4.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/math/vector.js b/dist/_esm/math/vector.js deleted file mode 100644 index 04d90936..00000000 --- a/dist/_esm/math/vector.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=vector.js.map \ No newline at end of file diff --git a/dist/_esm/math/vector.js.map b/dist/_esm/math/vector.js.map deleted file mode 100644 index ff47315e..00000000 --- a/dist/_esm/math/vector.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../../src/math/vector.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/math/vector2.js b/dist/_esm/math/vector2.js deleted file mode 100644 index c5142b1a..00000000 --- a/dist/_esm/math/vector2.js +++ /dev/null @@ -1,193 +0,0 @@ -import { Range } from "../models"; -export class Vector2 { - constructor(x = 0, y = 0) { - this.x = x; - this.y = y; - } - static get ZERO() { - return new Vector2(0, 0); - } - static get UP() { - return new Vector2(0, 1); - } - static get LEFT() { - return new Vector2(-1, 0); - } - static get BOTTOM() { - return new Vector2(0, -1); - } - static get RIGHT() { - return new Vector2(1, 0); - } - static get ONE() { - return new Vector2(1, 1); - } - get avg() { - return this.sum / 2; - } - get sum() { - return this.x + this.y; - } - static fromArray(val) { - return new Vector2(val[0], val[1]); - } - get length() { - return Vector2.size(this); - } - static equals(vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y; - } - static sub(vecA, vecB, result = new Vector2()) { - return result.setData(vecA.x - vecB.x, vecA.y - vecB.y); - } - static dot(vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y; - } - static lerp(start, end, ratio) { - const dir = Vector2.sub(end, start); - return Vector2.mulNum(dir, ratio, dir).add(start); - } - static getAbs(vec, result = new Vector2()) { - return result.setData(Math.abs(vec.x), Math.abs(vec.y)); - } - static from(valA, valB = valA) { - return new Vector2(valA, valB); - } - static isVisible(obsX, obsY, angle, cutOff, px, py) { - return angle - Math.atan2(py - obsY, px - obsX) <= cutOff; - } - static createOutlineRange(points) { - const min = { - x: Infinity, - y: Infinity, - }; - const max = { - x: -Infinity, - y: -Infinity, - }; - points.forEach((p) => { - if (p.x < min.x) { - min.x = p.x; - } - if (p.y < min.y) { - min.y = p.y; - } - if (p.x > max.x) { - max.x = p.x; - } - if (p.y > max.y) { - max.y = p.y; - } - }); - return new Range(min, max); - } - static angleBetweenPoints(obsX, obsY, px1, py1, px2, py2) { - return Math.atan2(py1 - obsY, px1 - obsX) - Math.atan2(py2 - obsY, px2 - obsX); - } - static isVector(item) { - return item && !isNaN(item.x) && !isNaN(item.y); - } - static sum(vecA, vecB, result = new Vector2()) { - return result.setData(vecA.x + vecB.x, vecA.y + vecB.y); - } - static min(vecA, vecB, result = new Vector2()) { - return result.setData(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y)); - } - static max(vecA, vecB, result = new Vector2()) { - return result.setData(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y)); - } - static dist(vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2)); - } - static size(vec) { - return Math.sqrt(vec.x * vec.x + vec.y * vec.y); - } - static fromVec(vec) { - return new Vector2(vec.x, vec.y); - } - isZero() { - return this.x === 0 && this.y === 0; - } - clone() { - return new Vector2(this.x, this.y); - } - getNormalized(result = this.clone()) { - return Vector2.normalize(this, result); - } - normalize() { - const length = Vector2.size(this); - this.x /= length; - this.y /= length; - return this; - } - static normalize(vec, result = vec) { - const length = Vector2.size(vec); - result.x = vec.x / length; - result.y = vec.y / length; - return result; - } - static mulNum(vecA, val, result = new Vector2()) { - return result.setData(vecA.x * val, vecA.y * val); - } - static addNum(vecA, val, result = new Vector2()) { - return result.setData(vecA.x + val, vecA.y + val); - } - mul(value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - } - return this; - } - add(value) { - if (typeof value === "number") { - this.x += value; - this.y += value; - } - else { - this.x += value.x; - this.y += value.y; - } - return this; - } - sub(value) { - if (typeof value === "number") { - this.x -= value; - this.y -= value; - } - else { - this.x -= value.x; - this.y -= value.y; - } - return this; - } - div(value) { - if (typeof value === "number") { - this.x /= value; - this.y /= value; - } - else { - this.x /= value.x; - this.y /= value.y; - } - return this; - } - setData(x, y) { - this.x = x; - this.y = y; - return this; - } - set(vec) { - this.x = vec.x; - this.y = vec.y; - return this; - } -} -//# sourceMappingURL=vector2.js.map \ No newline at end of file diff --git a/dist/_esm/math/vector2.js.map b/dist/_esm/math/vector2.js.map deleted file mode 100644 index c6d54bd3..00000000 --- a/dist/_esm/math/vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2.js","sourceRoot":"","sources":["../../../src/math/vector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGlC,MAAM,OAAO,OAAO;IAChB,YAA0B,IAAI,CAAC,EACL,IAAI,CAAC;QADL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAEM,MAAM,KAAK,IAAI;QAClB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,CAAC;IAEM,MAAM,KAAK,EAAE;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,CAAC;IAEM,MAAM,KAAK,IAAI;QAClB,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,KAAK,MAAM;QACpB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,KAAK,KAAK;QACnB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,CAAC;IAEM,MAAM,KAAK,GAAG;QACjB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;IACxB,CAAC;IAED,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,GAAoC;QACxD,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,C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,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;SACrB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,KAA6B;QACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC;YAChB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC;SAEnB;aAAM;YACH,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;SACrB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,KAA6B;QACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC;YAChB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC;SAEnB;aAAM;YACH,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;SACrB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,CAAS,EAAE,CAAS;QAC/B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,GAAkB;QACzB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/math/vector2f.js b/dist/_esm/math/vector2f.js deleted file mode 100644 index 540e985a..00000000 --- a/dist/_esm/math/vector2f.js +++ /dev/null @@ -1,55 +0,0 @@ -const process = (op, arg1, arg2) => { - if (typeof arg2 === "number") { - op(arg1, arg2); - } - else if (typeof arg1 === "number") { - op(arg1, arg1); - } - else { - op(arg1.x, arg1.y); - } -}; -export class Vector2f { - constructor(x, y) { - this.y = 0; - this.x = 0; - this.x = x; - this.y = y; - } - set(arg1, arg2) { - process((x, y) => { - this.x = x; - this.y = y; - }, arg1, arg2); - return this; - } - add(arg1, arg2) { - process((x, y) => { - this.x += x; - this.y += y; - }, arg1, arg2); - return this; - } - div(arg1, arg2) { - process((x, y) => { - this.x /= x; - this.y /= y; - }, arg1, arg2); - return this; - } - mul(arg1, arg2) { - process((x, y) => { - this.x *= x; - this.y *= y; - }, arg1, arg2); - return this; - } - sub(arg1, arg2) { - process((x, y) => { - this.x -= x; - this.y -= y; - }, arg1, arg2); - return this; - } -} -//# sourceMappingURL=vector2f.js.map \ No newline at end of file diff --git a/dist/_esm/math/vector2f.js.map b/dist/_esm/math/vector2f.js.map deleted file mode 100644 index 320b9cc8..00000000 --- a/dist/_esm/math/vector2f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2f.js","sourceRoot":"","sources":["../../../src/math/vector2f.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG,CACZ,EAAkC,EAClC,IAAuB,EACvB,IAAa,EACT,EAAE;IACN,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC1B,EAAE,CAAC,IAAc,EAAE,IAAI,CAAC,CAAC;KAC5B;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACjC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAClB;SAAM;QACH,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;KACtB;AACL,CAAC,CAAC;AAKF,MAAM,OAAO,QAAQ;IAWjB,YAAmB,CAAS,EAAE,CAAS;QAPhC,MAAC,GAAG,CAAC,CAAC;QAKN,MAAC,GAAG,CAAC,CAAC;QAGT,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC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AAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/math/vector3.js b/dist/_esm/math/vector3.js deleted file mode 100644 index 0bdbb415..00000000 --- a/dist/_esm/math/vector3.js +++ /dev/null @@ -1,193 +0,0 @@ -import { Vector2 } from "./vector2"; -export class Vector3 { - constructor(x = 0, y = 0, z = 0) { - this.x = x; - this.y = y; - this.z = z; - } - static get UP() { - return new Vector3(0, 1, 0); - } - static get ZERO() { - return new Vector3(0, 0, 0); - } - static get ONE() { - return new Vector3(1, 1, 1); - } - get avg() { - return (this.x + this.y + this.z) / 3; - } - static lengthOf(vector) { - return Math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z); - } - get length() { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); - } - static equals(vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z; - } - static sub(vecA, vecB) { - return new Vector3(vecA.x - vecB.x, vecA.y - vecB.y, vecA.z - vecB.z); - } - static add(vecA, vecB) { - return new Vector3(vecA.x + vecB.x, vecA.y + vecB.y, vecA.z + vecB.z); - } - static sum(vecA, vecB, result = new Vector3()) { - result.x = vecA.x + vecB.x; - result.y = vecA.y + vecB.y; - result.z = vecA.z + vecB.z; - return result; - } - static sumNum(vecA, val, result = new Vector3()) { - result.x = vecA.x + val; - result.y = vecA.y + val; - result.z = vecA.z + val; - return result; - } - static dot(vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y + vecA.z * vecB.z; - } - static mul(vecA, vecB, result = new Vector3()) { - result.x = vecA.x * vecB.x; - result.y = vecA.y * vecB.y; - result.z = vecA.z * vecB.z; - return result; - } - static mulNum(vecA, val, result = new Vector3()) { - result.x = vecA.x * val; - result.y = vecA.y * val; - result.z = vecA.z * val; - return result; - } - static min(vecA, vecB, result = new Vector3()) { - result.x = Math.min(vecA.x, vecB.x); - result.y = Math.min(vecA.y, vecB.y); - result.z = Math.min(vecA.z, vecB.z); - return result; - } - static max(vecA, vecB, result = new Vector3()) { - result.x = Math.max(vecA.x, vecB.x); - result.y = Math.max(vecA.y, vecB.y); - result.z = Math.max(vecA.z, vecB.z); - return result; - } - static createFromSphericalCoords(radius, phi, theta) { - const sinPhiRadius = Math.sin(phi) * radius; - const x = sinPhiRadius * Math.sin(theta); - const y = Math.cos(phi) * radius; - const z = sinPhiRadius * Math.cos(theta); - return new Vector3(x, y, z); - } - static distSqrt(vecA, vecB) { - return Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2) + Math.pow(vecA.z - vecB.z, 2); - } - static dist(vecA, vecB) { - return Math.sqrt(Vector3.distSqrt(vecA, vecB)); - } - static normalize(vec) { - const length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z); - vec.x /= length; - vec.y /= length; - vec.z /= length; - return vec; - } - static from(valA, valB = valA, valC = valA) { - return new Vector3(valA, valB, valC); - } - static fromVec(vec) { - return new Vector3(vec.x, vec.y, vec.z); - } - static fromArray(value) { - return new Vector3(value[0], value[1], value[2]); - } - static isVector(item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z); - } - toArray() { - return [this.x, this.y, this.z]; - } - sum() { - return this.x + this.y + this.z; - } - getNormalized() { - return this.clone().normalize(); - } - clone() { - return new Vector3(this.x, this.y, this.z); - } - normalize() { - const length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - return this; - } - mul(value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - } - return this; - } - add(vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - return this; - } - cross(v) { - const localX = this.y * v.z - this.z * v.y; - const localY = this.z * v.x - this.x * v.z; - const localZ = this.x * v.y - this.y * v.x; - return new Vector3(localX, localY, localZ); - } - dot(v) { - return this.x * v.x + this.y * v.y + this.z * v.z; - } - sub(vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - return this; - } - setData(x, y, z) { - this.x = x; - this.y = y; - this.z = z; - return this; - } - set(vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - return this; - } - get xy() { - return new Vector2(this.x, this.y); - } - get yx() { - return new Vector2(this.y, this.x); - } - get yz() { - return new Vector2(this.y, this.z); - } - get zy() { - return new Vector2(this.z, this.y); - } - get xz() { - return new Vector2(this.x, this.z); - } - get zx() { - return new Vector2(this.z, this.x); - } -} -//# sourceMappingURL=vector3.js.map \ No newline at end of file diff --git a/dist/_esm/math/vector3.js.map b/dist/_esm/math/vector3.js.map deleted file mode 100644 index cc8b72af..00000000 --- a/dist/_esm/math/vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector3.js","sourceRoot":"","sources":["../../../src/math/vector3.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,OAAO;IAChB,YAA0B,IAAI,CAAC,EACL,IAAI,CAAC,EACL,IAAI,CAAC;QAFL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAEM,MAAM,KAAK,EAAE;QAChB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM,KAAK,IAAI;QAClB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM,KAAK,GAAG;QACjB,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,IAAW,GAAG;QACV,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,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AAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAW,EAAE;QACT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAW,EAAE;QACT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAW,EAAE;QACT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAW,EAAE;QACT,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/math/vector4.js b/dist/_esm/math/vector4.js deleted file mode 100644 index 5bc1d4ac..00000000 --- a/dist/_esm/math/vector4.js +++ /dev/null @@ -1,116 +0,0 @@ -export class Vector4 { - constructor(x = 0, y = 0, z = 0, w = 0) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - static get ZERO() { - return new Vector4(0, 0, 0, 0); - } - static get ONE() { - return new Vector4(1, 1, 1, 1); - } - static fromArray(val) { - return new Vector4(val[0], val[1], val[2], val[3]); - } - static from(valA, valB = valA, valC = valB, valD = valC) { - return new Vector4(valA, valB, valC, valD); - } - get avg() { - return (this.x + this.y + this.z + this.w) / 4; - } - get length() { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); - } - static equals(vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z && vecA.w === vecB.w; - } - static min(vecA, vecB) { - return new Vector4(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y), Math.min(vecA.z, vecB.z), Math.min(vecA.w, vecB.w)); - } - static max(vecA, vecB) { - return new Vector4(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y), Math.max(vecA.z, vecB.z), Math.max(vecA.w, vecB.w)); - } - static dist(vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + - Math.pow(vecA.y - vecB.y, 2) + - Math.pow(vecA.z - vecB.z, 2) + - Math.pow(vecA.w - vecB.w, 2)); - } - static normalize(vec) { - const length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z + vec.w * vec.w); - vec.x /= length; - vec.y /= length; - vec.z /= length; - vec.w /= length; - return vec; - } - static isVector(item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z) && !isNaN(item.w); - } - toArray() { - return [this.x, this.y, this.z, this.w]; - } - getNormalized() { - return this.clone().normalize(); - } - clone() { - return new Vector4(this.x, this.y, this.z, this.w); - } - normalize() { - const length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - this.w /= length; - return this; - } - mul(value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - this.w *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - this.w *= value.w; - } - return this; - } - add(vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - this.w += vec.w; - return this; - } - sub(vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - this.w -= vec.w; - return this; - } - setData(x, y, z, w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - return this; - } - set(vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - this.w = vec.w; - return this; - } -} -//# sourceMappingURL=vector4.js.map \ No newline at end of file diff --git a/dist/_esm/math/vector4.js.map b/dist/_esm/math/vector4.js.map deleted file mode 100644 index a447cbab..00000000 --- a/dist/_esm/math/vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector4.js","sourceRoot":"","sources":["../../../src/math/vector4.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAChB,YAA0B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C,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,GAAkB;QACzB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;QACrD,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,GAAkB;QACzB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/misc/ajax.js b/dist/_esm/misc/ajax.js deleted file mode 100644 index 277b2ace..00000000 --- a/dist/_esm/misc/ajax.js +++ /dev/null @@ -1,21 +0,0 @@ -class AjaxWrapper { - constructor(ajaxHandler) { - this.ajaxHandler = ajaxHandler; - } -} -export function ajax({ method = "GET", url, onResponse, content, headers = {}, }) { - const request = new XMLHttpRequest(); - request.onreadystatechange = () => { - if (!(request.readyState === 4 && (request.status === 200 || request.status === 201))) { - return; - } - if (typeof onResponse === "function") { - onResponse(request.responseText); - } - }; - request.open(method, url, true); - Object.entries(headers).forEach((entry) => request.setRequestHeader(entry[0], entry[1])); - request.send(content); - return new AjaxWrapper(request); -} -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/dist/_esm/misc/ajax.js.map b/dist/_esm/misc/ajax.js.map deleted file mode 100644 index d639a5c0..00000000 --- a/dist/_esm/misc/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../../src/misc/ajax.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW;IACb,YAAoC,WAA2B;QAA3B,gBAAW,GAAX,WAAW,CAAgB;IAC/D,CAAC;CACJ;AAED,MAAM,UAAU,IAAI,CAAC,EACjB,MAAM,GAAG,KAAK,EACd,GAAG,EACH,UAAU,EACV,OAAO,EACP,OAAO,GAAG,EAAE,GACH;IACT,MAAM,OAAO,GAAgB,IAAI,cAAc,EAAE,CAAC;IAClD,OAAO,CAAC,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE;YACnF,OAAO;SACV;QACD,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACpC;IACL,CAAC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEtB,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/misc/file-size-formatter.js b/dist/_esm/misc/file-size-formatter.js deleted file mode 100644 index c66e8e92..00000000 --- a/dist/_esm/misc/file-size-formatter.js +++ /dev/null @@ -1,14 +0,0 @@ -const FILE_SIZE_UNITS = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; -const FILE_SIZE_UNITS_LONG = ["Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Pettabytes", "Exabytes", "Zettabytes", "Yottabytes"]; -export function formatFileSize(sizeInBytes, longForm = false) { - const units = longForm - ? FILE_SIZE_UNITS_LONG - : FILE_SIZE_UNITS; - let power = Math.round(Math.log(sizeInBytes) / Math.log(1024)); - power = Math.min(power, units.length - 1); - const size = sizeInBytes / Math.pow(1024, power); - const formattedSize = Math.round(size * 100) / 100; - const unit = units[power]; - return size ? `${formattedSize} ${unit}` : "0"; -} -//# sourceMappingURL=file-size-formatter.js.map \ No newline at end of file diff --git a/dist/_esm/misc/file-size-formatter.js.map b/dist/_esm/misc/file-size-formatter.js.map deleted file mode 100644 index 4255480b..00000000 --- a/dist/_esm/misc/file-size-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-size-formatter.js","sourceRoot":"","sources":["../../../src/misc/file-size-formatter.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnF,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAEpI,MAAM,UAAU,cAAc,CAAC,WAAmB,EAAE,QAAQ,GAAG,KAAK;IAChE,MAAM,KAAK,GAAG,QAAQ;QAClB,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,eAAe,CAAC;IAEtB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,KAAK,GAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE9C,MAAM,IAAI,GAAY,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1D,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IACnD,MAAM,IAAI,GAAY,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnC,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AACnD,CAAC"} \ No newline at end of file diff --git a/dist/_esm/misc/index.js b/dist/_esm/misc/index.js deleted file mode 100644 index 48dfc598..00000000 --- a/dist/_esm/misc/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./slovak-stemmer"; -export * from "./ajax"; -export * from "./file-size-formatter"; -export * from "./simple-loop"; -export * from "./runtime-validators"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/misc/index.js.map b/dist/_esm/misc/index.js.map deleted file mode 100644 index ee30370a..00000000 --- a/dist/_esm/misc/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/misc/runtime-validators.js b/dist/_esm/misc/runtime-validators.js deleted file mode 100644 index 17ff2285..00000000 --- a/dist/_esm/misc/runtime-validators.js +++ /dev/null @@ -1,13 +0,0 @@ -export const getAsString = (key) => { - if (typeof key !== "string") { - throw new Error(`Variable with value ${key} is not a string`); - } - return key; -}; -export const getAsNumber = (key) => { - if (typeof key !== "number") { - throw new Error(`Variable with value ${key} is not a number`); - } - return key; -}; -//# sourceMappingURL=runtime-validators.js.map \ No newline at end of file diff --git a/dist/_esm/misc/runtime-validators.js.map b/dist/_esm/misc/runtime-validators.js.map deleted file mode 100644 index 7597f447..00000000 --- a/dist/_esm/misc/runtime-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime-validators.js","sourceRoot":"","sources":["../../../src/misc/runtime-validators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAU,EAAE;IAC5C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,kBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAQ,EAAU,EAAE;IAC5C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,kBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/misc/simple-loop.js b/dist/_esm/misc/simple-loop.js deleted file mode 100644 index cbfe3dca..00000000 --- a/dist/_esm/misc/simple-loop.js +++ /dev/null @@ -1,16 +0,0 @@ -export function simpleLoop(callback, requiredFps = 60) { - let start; - let req; - const requiredDuration = 1000 / requiredFps; - const tick = (time) => { - const duration = time - start; - start = time; - req = requestAnimationFrame(tick); - callback((duration / requiredDuration) || 1); - }; - req = requestAnimationFrame(tick); - return { - stop: () => cancelAnimationFrame(req), - }; -} -//# sourceMappingURL=simple-loop.js.map \ No newline at end of file diff --git a/dist/_esm/misc/simple-loop.js.map b/dist/_esm/misc/simple-loop.js.map deleted file mode 100644 index ed0a4846..00000000 --- a/dist/_esm/misc/simple-loop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-loop.js","sourceRoot":"","sources":["../../../src/misc/simple-loop.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,QAAiC,EAAE,WAAW,GAAG,EAAE;IAC1E,IAAI,KAAa,CAAC;IAClB,IAAI,GAAW,CAAC;IAChB,MAAM,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;IAC5C,MAAM,IAAI,GAAG,CAAC,IAAY,EAAQ,EAAE;QAChC,MAAM,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC;QAC9B,KAAK,GAAG,IAAI,CAAC;QACb,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAClC,QAAQ,CAAC,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC;IACF,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO;QACH,IAAI,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,GAAG,CAAC;KACvC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/misc/slovak-stemmer.js b/dist/_esm/misc/slovak-stemmer.js deleted file mode 100644 index 48ee52ed..00000000 --- a/dist/_esm/misc/slovak-stemmer.js +++ /dev/null @@ -1,178 +0,0 @@ -function removePredpona(char) { - if (char.length > 6 && char.startsWith("naj")) { - return char.substr(3, char.length); - } - return char; -} -function removeCase(key) { - const len = key.length; - if (len > 9 && key.endsWith("ejšieho") - || key.endsWith("ejšiemu")) { - return key.substring(0, len - 7); - } - if (len > 8 && (key.endsWith("ejších") || - key.endsWith("encoch") || - key.endsWith("ejšími") || - key.endsWith("encami"))) { - return key.substring(0, len - 6); - } - if (len > 7 && (key.endsWith("ejšia") || - key.endsWith("atami") || - key.endsWith("atách") || - key.endsWith("eniec") || - key.endsWith("encom") || - key.endsWith("ejšom") || - key.endsWith("ejším") || - key.endsWith("ejšej") || - key.endsWith("ejšou") || - key.endsWith("ejšiu") || - key.endsWith("ejšie"))) { - return key.substring(0, len - 5); - } - if (len > 6 && - (key.endsWith("eťom") || - key.endsWith("iami") || - key.endsWith("atám") || - key.endsWith("aťom") || - key.endsWith("ovia") || - key.endsWith("iach") || - key.endsWith("atám") || - key.endsWith("ence") || - key.endsWith("ieho") || - key.endsWith("iemu") || - key.endsWith("ieme") || - key.endsWith("iete") || - key.endsWith("ejší") || - key.endsWith("enie"))) { - return key.substring(0, len - 4); - } - if (len > 5 && - (key.endsWith("ich") || - key.endsWith("eho") || - key.endsWith("ych") || - key.endsWith("ích") || - key.endsWith("ého") || - key.endsWith("emi") || - key.endsWith("ému") || - key.endsWith("emu") || - key.endsWith("ími") || - key.endsWith("imi") || - key.endsWith("ách") || - key.endsWith("ých") || - key.endsWith("ami") || - key.endsWith("ovi") || - key.endsWith("ieť") || - key.endsWith("ieš") || - key.endsWith("ejú") || - key.endsWith("ajú") || - key.endsWith("ujú") || - key.endsWith("ejú") || - key.endsWith("eme") || - key.endsWith("íte") || - key.endsWith("íme") || - key.endsWith("ými") || - key.endsWith("ymi") || - key.endsWith("ach") || - key.endsWith("iam") || - key.endsWith("iac") || - key.endsWith("ite") || - key.endsWith("ili") || - key.endsWith("ila") || - key.endsWith("ilo") || - key.endsWith("ime") || - key.endsWith("och"))) { - return key.substring(0, len - 3); - } - if (len > 4 && - (key.endsWith("ím") || - key.endsWith("ám") || - key.endsWith("am") || - key.endsWith("us") || - key.endsWith("ým") || - key.endsWith("ym") || - key.endsWith("mi") || - key.endsWith("ou") || - key.endsWith("om") || - key.endsWith("ej") || - key.endsWith("ov") || - key.endsWith("ia") || - key.endsWith("ie") || - key.endsWith("iu") || - key.endsWith("im") || - key.endsWith("ho") || - key.endsWith("mu") || - key.endsWith("me") || - key.endsWith("te") || - key.endsWith("ať") || - key.endsWith("aš") || - key.endsWith("úť") || - key.endsWith("iť") || - key.endsWith("íš") || - key.endsWith("iš") || - key.endsWith("il") || - key.endsWith("úc") || - key.endsWith("eš"))) { - return key.substring(0, len - 2); - } - if (len > 3) { - switch (key[len - 1]) { - case "a": - case "e": - case "i": - case "o": - case "u": - case "ú": - case "y": - case "á": - case "é": - case "í": - case "ý": - return key.substring(0, len - 1); - } - } - return key; -} -function removePossessives(s) { - const len = s.length; - if (len > 5 && s.endsWith("in") || - s.endsWith("ov")) { - return s.substr(0, len - 2); - } - return s; -} -function normalize(s) { - const len = s.length; - switch (s[len - 1]) { - case "c": - case "č": - return s.replace(/./g, (e, i) => i === len - 1 ? e : "k"); - case "ľ": - return s.replace(/./g, (e, i) => i === len - 1 ? e : "l"); - case "ň": - return s.replace(/./g, (e, i) => i === len - 1 ? e : "n"); - case "ť": - return s.replace(/./g, (e, i) => i === len - 1 ? e : "t"); - } - if (len > 3 && s[len - 3] === "i" && (s[len - 2] === "e" || s[len - 2] === "a" || s[len - 2] === "u")) { - return s.replace(/./g, (e, i) => { - if (i === len - 3) { - return s[len - 2]; - } - if (i === len - 2) { - return s[len - 1]; - } - return e; - }); - } - return s; -} -export class SlovakStemmer { - static steme(word) { - const result = removePossessives(removeCase(removePredpona(word))); - if (result.length) { - return normalize(result); - } - return result; - } -} -//# sourceMappingURL=slovak-stemmer.js.map \ No newline at end of file diff --git a/dist/_esm/misc/slovak-stemmer.js.map b/dist/_esm/misc/slovak-stemmer.js.map deleted file mode 100644 index 950ff1a2..00000000 --- a/dist/_esm/misc/slovak-stemmer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"slovak-stemmer.js","sourceRoot":"","sources":["../../../src/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GAAG,CAAC,EAAE;gBACf,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;aACrB;YAED,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;KACN;IAED,OAAO,CAAC,CAAC;AACb,CAAC;AAED,MAAM,OAAO,aAAa;IACf,MAAM,CAAC,KAAK,CAAC,IAAY;QAC5B,MAAM,MAAM,GAAG,iBAAiB,CAAC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,MAAM,CAAC,MAAM,EAAE;YACf,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;SAC5B;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/color.model.js b/dist/_esm/models/color.model.js deleted file mode 100644 index e19cea68..00000000 --- a/dist/_esm/models/color.model.js +++ /dev/null @@ -1,53 +0,0 @@ -import { hex2rgb, int2rgb, rgb2hex, rgb2int } from "../utils"; -function checkColorValue(value) { - console.assert(value >= 0); - console.assert(value <= 255); -} -export class Color { - constructor(red, green, blue, alpha = 255) { - this.red = red; - this.green = green; - this.blue = blue; - this.alpha = alpha; - checkColorValue(red); - checkColorValue(green); - checkColorValue(blue); - checkColorValue(alpha); - } - get rgb() { - return [this.red, this.green, this.blue]; - } - get rgbString() { - return `rgb(${this.red}, ${this.green}, ${this.blue})`; - } - get rgba() { - return [this.red, this.green, this.blue, this.alpha]; - } - get hex() { - return rgb2hex(Math.floor(this.red), Math.floor(this.green), Math.floor(this.blue)); - } - get int() { - return rgb2int(this.red, this.green, this.blue); - } - static fromHex(color) { - const value = hex2rgb(color); - return new Color(...value); - } - static fromInt(color) { - const value = int2rgb(color); - return new Color(...value); - } - normalized() { - if (this.red > 1 || this.green > 1 || this.blue > 1 || this.alpha > 1) { - return new Color(this.red / 255, this.green / 255, this.blue / 255, this.alpha / 255); - } - return this; - } -} -Color.BLACK = new Color(0, 0, 0); -Color.WHITE = new Color(255, 255, 255); -Color.GRAY = new Color(128, 128, 128); -Color.RED = new Color(255, 0, 0); -Color.GREEN = new Color(0, 255, 0); -Color.BLUE = new Color(0, 0, 255); -//# sourceMappingURL=color.model.js.map \ No newline at end of file diff --git a/dist/_esm/models/color.model.js.map b/dist/_esm/models/color.model.js.map deleted file mode 100644 index 7a628b84..00000000 --- a/dist/_esm/models/color.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color.model.js","sourceRoot":"","sources":["../../../src/models/color.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE9D,SAAS,eAAe,CAAC,KAAa;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,OAAO,KAAK;IAQd,YAAmC,GAAW,EACX,KAAa,EACb,IAAY,EACZ,QAAQ,GAAG;QAHX,QAAG,GAAH,GAAG,CAAQ;QACX,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAM;QAC1C,eAAe,CAAC,GAAG,CAAC,CAAC;QACrB,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,eAAe,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,IAAW,GAAG;QACV,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,SAAS;QAChB,OAAO,OAAO,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC;IAC3D,CAAC;IAED,IAAW,IAAI;QACX,OAAO,CAAC,IAAI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CAAC,CAAC,CAAC;AAC3B,WAAK,GAAG,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,UAAI,GAAI,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,SAAG,GAAK,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7B,WAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAC7B,UAAI,GAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/countries/country.interface.js b/dist/_esm/models/countries/country.interface.js deleted file mode 100644 index eeaed329..00000000 --- a/dist/_esm/models/countries/country.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=country.interface.js.map \ No newline at end of file diff --git a/dist/_esm/models/countries/country.interface.js.map b/dist/_esm/models/countries/country.interface.js.map deleted file mode 100644 index 4c9fb17a..00000000 --- a/dist/_esm/models/countries/country.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.interface.js","sourceRoot":"","sources":["../../../../src/models/countries/country.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/countries/country.model.js b/dist/_esm/models/countries/country.model.js deleted file mode 100644 index 78f730ff..00000000 --- a/dist/_esm/models/countries/country.model.js +++ /dev/null @@ -1,15 +0,0 @@ -import { toBasicForm } from "gtools/utils"; -const data = require("./countries.data.json"); -const countries = {}; -data.forEach((country) => countries[country.key] = country); -export class Country { - static getByKey(key) { - const finalKey = key.toUpperCase(); - return countries[finalKey] || data.find((country) => country.key === finalKey) || null; - } - static find(key) { - const finalKey = toBasicForm(key); - return data.find((country) => country.key.toLowerCase() === finalKey || country.patterns.some((pattern) => finalKey.indexOf(pattern) >= 0)) || null; - } -} -//# sourceMappingURL=country.model.js.map \ No newline at end of file diff --git a/dist/_esm/models/countries/country.model.js.map b/dist/_esm/models/countries/country.model.js.map deleted file mode 100644 index 39a8061f..00000000 --- a/dist/_esm/models/countries/country.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.model.js","sourceRoot":"","sources":["../../../../src/models/countries/country.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,MAAM,IAAI,GAAkB,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAG7D,MAAM,SAAS,GAAmC,EAAE,CAAC;AACrD,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;AAK5D,MAAM,OAAO,OAAO;IAOT,MAAM,CAAC,QAAQ,CAAC,GAAW;QAC9B,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;QAEnC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,IAAI,IAAI,CAAC;IAC3F,CAAC;IAQM,MAAM,CAAC,IAAI,CAAC,GAAW;QAC1B,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACxJ,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/binary-queue.js b/dist/_esm/models/data-structures/binary-queue.js deleted file mode 100644 index f8f58a30..00000000 --- a/dist/_esm/models/data-structures/binary-queue.js +++ /dev/null @@ -1,87 +0,0 @@ -export class BinaryHeap { - constructor(scoreFunction) { - this.scoreFunction = scoreFunction; - this.content = []; - } - push(element) { - this.content.push(element); - this.sinkDown(this.content.length - 1); - } - pop() { - const result = this.content[0]; - const end = this.content.pop(); - if (this.content.length > 0) { - this.content[0] = end; - this.bubbleUp(0); - } - return result; - } - remove(node) { - const i = this.content.indexOf(node); - const end = this.content.pop(); - if (i !== this.content.length - 1) { - this.content[i] = end; - if (this.scoreFunction(end) < this.scoreFunction(node)) { - this.sinkDown(i); - } - else { - this.bubbleUp(i); - } - } - } - size() { - return this.content.length; - } - rescoreElement(node) { - this.sinkDown(this.content.indexOf(node)); - } - sinkDown(n) { - const element = this.content[n]; - while (n > 0) { - const parentN = ((n + 1) >> 1) - 1; - const parent = this.content[parentN]; - if (this.scoreFunction(element) < this.scoreFunction(parent)) { - this.content[parentN] = element; - this.content[n] = parent; - n = parentN; - } - else { - break; - } - } - } - bubbleUp(n) { - const length = this.content.length; - const element = this.content[n]; - const elemScore = this.scoreFunction(element); - while (true) { - const child2N = (n + 1) << 1; - const child1N = child2N - 1; - let swap = null; - let child1Score; - if (child1N < length) { - const child1 = this.content[child1N]; - child1Score = this.scoreFunction(child1); - if (child1Score < elemScore) { - swap = child1N; - } - } - if (child2N < length) { - const child2 = this.content[child2N]; - const child2Score = this.scoreFunction(child2); - if (child2Score < (swap === null ? elemScore : child1Score)) { - swap = child2N; - } - } - if (swap !== null) { - this.content[n] = this.content[swap]; - this.content[swap] = element; - n = swap; - } - else { - break; - } - } - } -} -//# sourceMappingURL=binary-queue.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/binary-queue.js.map b/dist/_esm/models/data-structures/binary-queue.js.map deleted file mode 100644 index 02e036f4..00000000 --- a/dist/_esm/models/data-structures/binary-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-queue.js","sour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I,WAAW,CAAC;YAEhB,IAAI,OAAO,GAAG,MAAM,EAAE;gBAElB,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACrC,WAAW,GAAI,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;gBAG1C,IAAI,WAAW,GAAG,SAAS,EAAE;oBACzB,IAAI,GAAG,OAAO,CAAC;iBAClB;aACJ;YAGD,IAAI,OAAO,GAAG,MAAM,EAAE;gBAClB,MAAM,MAAM,GAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC1C,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;gBAE/C,IAAI,WAAW,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;oBACzD,IAAI,GAAG,OAAO,CAAC;iBAClB;aACJ;YAGD,IAAI,IAAI,KAAK,IAAI,EAAE;gBACf,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;gBAC7B,CAAC,GAAoB,IAAI,CAAC;aAC7B;iBAAM;gBACH,MAAM;aACT;SACJ;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/binary-tree.js b/dist/_esm/models/data-structures/binary-tree.js deleted file mode 100644 index 9d85efb1..00000000 --- a/dist/_esm/models/data-structures/binary-tree.js +++ /dev/null @@ -1,156 +0,0 @@ -class Node { - constructor(val) { - this.val = val; - this.leftChild = null; - this.rightChild = null; - } -} -export class BinarySearchTree { - constructor(rootValue) { - this._length = 0; - this.root = new Node(rootValue); - } - get length() { - return this._length; - } - clear() { - this._length = 0; - this.root = null; - } - addInternally(currentNode, newValue) { - if (currentNode === null) { - currentNode = new Node(newValue); - } - else if (newValue < currentNode.val) { - currentNode.leftChild = this.addInternally(currentNode.leftChild, newValue); - } - else { - currentNode.rightChild = this.addInternally(currentNode.rightChild, newValue); - } - this._length++; - return currentNode; - } - add(newValue) { - if (!this.root) { - this.root = new Node(newValue); - return; - } - this.addInternally(this.root, newValue); - } - forEach(callback) { - this.forEachInternally(this.root, callback); - } - forEachOrderedInternally(currentNode, callback, order) { - if (!currentNode) { - return; - } - if (order === "PRE") { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.leftChild, callback, order); - if (!order) { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.rightChild, callback, order); - if (order === "POST") { - callback(currentNode.val, NaN); - } - } - forEachInternally(currentNode, callback) { - if (!currentNode) { - return; - } - this.forEachInternally(currentNode.leftChild, callback); - callback(currentNode.val, NaN); - this.forEachInternally(currentNode.rightChild, callback); - } - searchInternally(currentNode, value) { - if (currentNode) { - if (value === currentNode.val) { - return currentNode; - } - if (value < currentNode.val) { - return this.searchInternally(currentNode.leftChild, value); - } - return this.searchInternally(currentNode.rightChild, value); - } - return null; - } - search(value) { - return this.searchInternally(this.root, value); - } - contains(value) { - return !!this.search(value); - } - remove(value) { - const removed = this.removeInternally(this.root, value); - if (removed) { - this._length--; - } - return removed; - } - removeInternally(currentNode, value) { - var _a, _b; - if (!currentNode) { - return false; - } - let parentNode = null; - while (currentNode && (currentNode.val !== value)) { - parentNode = currentNode; - if (value < currentNode.val) { - currentNode = currentNode.leftChild; - } - else { - currentNode = currentNode.rightChild; - } - } - if (currentNode === null) { - return false; - } - if (!currentNode.leftChild && !currentNode.rightChild) { - if (currentNode.val === ((_a = this.root) === null || _a === void 0 ? void 0 : _a.val)) { - this.root = null; - return true; - } - if (currentNode.val < parentNode.val) { - parentNode.leftChild = null; - return true; - } - parentNode.rightChild = null; - return true; - } - if (!currentNode.rightChild) { - if (currentNode.val === ((_b = this.root) === null || _b === void 0 ? void 0 : _b.val)) { - this.root = currentNode.leftChild; - return true; - } - if (currentNode.leftChild.val < parentNode.val) { - parentNode.leftChild = currentNode.leftChild; - return true; - } - parentNode.rightChild = currentNode.leftChild; - return true; - } - if (!currentNode.leftChild) { - if (currentNode.val === this.root.val) { - this.root = currentNode.rightChild; - return true; - } - if (currentNode.rightChild.val < parentNode.val) { - parentNode.leftChild = currentNode.rightChild; - return true; - } - parentNode.rightChild = currentNode.rightChild; - return true; - } - let minRight = currentNode.rightChild; - while (minRight.leftChild !== null) { - minRight = minRight.leftChild; - } - const temp = minRight.val; - this.removeInternally(this.root, minRight.val); - currentNode.val = temp; - return true; - } -} -//# sourceMappingURL=binary-tree.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/binary-tree.js.map b/dist/_esm/models/data-structures/binary-tree.js.map deleted file mode 100644 index d9ef79c0..00000000 --- a/dist/_esm/models/data-structures/binary-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-tree.js","sourceRoot":"","sources":["../../../../src/models/data-structures/binary-tree.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI;IAIN,YAA0B,GAAM;QAAN,QAAG,GAAH,GAAG,CAAG;QAHzB,cAAS,GAAoB,IAAI,CAAC;QAClC,eAAU,GAAmB,IAAI,CAAC;IAGzC,CAAC;CACJ;AAKD,MAAM,OAAO,gBAAgB;IAQzB,YAAmB,SAAY;QANvB,YAAO,GAAG,CAAC,CAAC;QAOhB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAND,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAMM,KAAK;QACR,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAM,IAAI,CAAC;IACxB,CAAC;IAEO,aAAa,CAAC,WAA2B,EAAE,QAAW;QAC1D,IAAI,WAAW,KAAK,IAAI,EAAE;YACtB,WAAW,GAAG,IAAI,IAAI,CAAC,QAAQ,CA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AI,CAAC;aACf;YACD,UAAW,CAAC,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC;YAE/C,OAAO,IAAI,CAAC;SAEf;QACD,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE;YACxB,IAAI,WAAW,CAAC,GAAG,KAAK,IAAI,CAAC,IAAK,CAAC,GAAG,EAAE;gBACpC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC;gBAEnC,OAAO,IAAI,CAAC;aACf;YACD,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,GAAG,UAAW,CAAC,GAAG,EAAE;gBAC9C,UAAW,CAAC,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC;gBAE/C,OAAO,IAAI,CAAC;aACf;YACD,UAAW,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;YAEhD,OAAO,IAAI,CAAC;SAEf;QACD,IAAI,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC;QACtC,OAAO,QAAQ,CAAC,SAAS,KAAK,IAAI,EAAE;YAChC,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC;SACjC;QACD,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,WAAW,CAAC,GAAG,GAAG,IAAI,CAAC;QAEvB,OAAO,IAAI,CAAC;IAEhB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/g43-collection.js b/dist/_esm/models/data-structures/g43-collection.js deleted file mode 100644 index e501334d..00000000 --- a/dist/_esm/models/data-structures/g43-collection.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=g43-collection.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/g43-collection.js.map b/dist/_esm/models/data-structures/g43-collection.js.map deleted file mode 100644 index 226a3492..00000000 --- a/dist/_esm/models/data-structures/g43-collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g43-collection.js","sourceRoot":"","sources":["../../../../src/models/data-structures/g43-collection.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid-filters.js b/dist/_esm/models/data-structures/grid-accessor/grid-filters.js deleted file mode 100644 index c849fa01..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid-filters.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid-filters.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid-filters.js.map b/dist/_esm/models/data-structures/grid-accessor/grid-filters.js.map deleted file mode 100644 index 1ca7584b..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid-filters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-filters.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid-filters.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js b/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js deleted file mode 100644 index cf82b0a3..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js +++ /dev/null @@ -1,38 +0,0 @@ -import { Grid2BlockAccessor } from "./grid2-block-accessor"; -export class Grid2Accessor { - constructor(holder) { - this.holder = holder; - this.around4Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - ]; - this.around8Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - { x: +1, y: +1 }, - { x: +1, y: -1 }, - { x: -1, y: +1 }, - { x: -1, y: -1 }, - ]; - } - get(position) { - return this.holder.get(position.x, position.y); - } - getAccessor(position) { - return new Grid2BlockAccessor(this.holder, position); - } - getRandomAround(position, radius, condition) { - return this.holder.getAroundData(position.x, position.y, radius).sort(Math.random).find(condition); - } - getRandomBlock(filter) { - return this.holder.getRandomBlock(filter); - } - checkEveryFromPosAndSize(position, size, condition) { - return this.holder.getArea(position, size).every(condition); - } -} -//# sourceMappingURL=grid2-accessor.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js.map b/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js.map deleted file mode 100644 index 90d8de95..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid2-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-accessor.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid2-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,MAAM,OAAO,aAAa;IAkBtB,YACqB,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QAlB1B,mBAAc,GAAG;YAC9B,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;SACjB,CAAC;QACe,mBAAc,GAAG;YAC9B,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;SACjB,CAAC;IAKF,CAAC;IAEM,GAAG,CAAC,QAAuB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW,CAAC,QAAuB;QACtC,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IACM,eAAe,CAAC,QAAuB,EAAE,MAAc,EAAE,SAA8B;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvG,CAAC;IAEM,cAAc,CAAC,MAA8B;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAEM,wBAAwB,CAAC,QAAuB,EAAE,IAAmB,EAAE,SAAiC;QAC3G,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;CAEJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js b/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js deleted file mode 100644 index ad5348fc..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js +++ /dev/null @@ -1,25 +0,0 @@ -export class Grid2BlockAccessor { - constructor(holder, position) { - this.holder = holder; - this.position = position; - } - check(filter) { - return filter(this.holder.get(this.position.x, this.position.y)); - } - getByOffset(x = 0, y = 0) { - return new Grid2BlockAccessor(this.holder, { x: this.position.x + x, y: this.position.y - y }); - } - get top() { - return this.getByOffset(0, -1); - } - get bottom() { - return this.getByOffset(0, 1); - } - get left() { - return this.getByOffset(-1, 0); - } - get right() { - return this.getByOffset(1, 0); - } -} -//# sourceMappingURL=grid2-block-accessor.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js.map b/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js.map deleted file mode 100644 index 1fcf17fe..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/grid2-block-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-block-accessor.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,kBAAkB;IAC3B,YACqB,MAAsB,EACtB,QAAuB;QADvB,WAAM,GAAN,MAAM,CAAgB;QACtB,aAAQ,GAAR,QAAQ,CAAe;IAE5C,CAAC;IAEM,KAAK,CAAC,MAA8B;QACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAM,CAAC,CAAC;IAC1E,CAAC;IAEM,WAAW,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;QAC3B,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;IACjG,CAAC;IAED,IAAW,GAAG;QACV,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js deleted file mode 100644 index db03628a..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js +++ /dev/null @@ -1,277 +0,0 @@ -import { Vector2 } from "../../../../math"; -function getMapIndex(x, y, width) { - return y * width + x; -} -function getCoordinates(index, width) { - return { - x: index % width, - y: Math.floor(index / width), - }; -} -export class Grid2ArrayHolder { - constructor(size, data) { - this.size = size; - this.data = data; - } - get length() { - return this.data.length; - } - static initEmpty(x, y, defaultValue = null) { - const size = x * y; - const result = new Array(size); - for (let i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid2ArrayHolder({ x, y }, result); - } - static initWithProvider(x, y, provider) { - const size = x * y; - const result = new Array(size); - for (let i = 0; i < size; i++) { - result[i] = provider(x, y); - } - return new Grid2ArrayHolder({ x, y }, result); - } - setData(data) { - if (data.length !== this.data.length) { - throw new Error("Array with new data mush be same size"); - } - this.data.length = 0; - this.data.push(...data); - } - get(x, y) { - return this.data[this.getIndex(x, y)]; - } - set(x, y, value) { - this.data[this.getIndex(x, y)] = value; - } - delete(x, y) { - this.data[this.getIndex(x, y)] = undefined; - } - getIndex(x, y) { - return getMapIndex(x, y, this.size.x); - } - getCoordinates(index) { - return getCoordinates(index, this.size.x); - } - getAroundData(x, y, size = 1) { - const center = { x, y }; - const minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - const maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "block").filter((e) => Vector2.dist(e.coordinates, center) <= size); - } - getAround(x, y, size = 1) { - return this.getAroundData(x, y, size).map((e) => e.item); - } - getAroundSQ(x, y, size = 1) { - const minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - const maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "data"); - } - getBetween(pointA, pointB) { - const min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - }; - const max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - }, "data"); - } - getNearest(x, y, condition) { - let Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - const data = {}; - const result = []; - const current = [[this.getIndex(x, y)]]; - while (!result.length) { - const actualLevel = current.shift(); - const nextLevel = []; - actualLevel.forEach((actual) => { - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - return; - } - const coordinates = this.getCoordinates(actual); - if (condition(this.data[actual])) { - data[actual] = Statuses.ADDED; - result.push({ coordinates, item: this.data[actual] }); - } - else { - data[actual] = Statuses.FALSE; - nextLevel.push(...this.getAround4(coordinates.x, coordinates.y)); - } - }); - current.push(nextLevel); - } - return result; - } - expandConditionally(x, y, condition) { - let Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - const data = {}; - const current = [this.getIndex(x, y)]; - const result = []; - while (current.length) { - const actual = current.shift(); - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - continue; - } - if (condition(this.data[actual])) { - data[actual] = Statuses.ADDED; - const coordinates = this.getCoordinates(actual); - result.push({ coordinates, item: this.data[actual] }); - current.push(...this.getAround4(coordinates.x, coordinates.y)); - } - else { - data[actual] = Statuses.FALSE; - } - } - return result; - } - getAround4(x, y) { - const centerIndex = this.getIndex(x, y); - const result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - } - getAround4Index(centerIndex) { - const { x, y } = this.getCoordinates(centerIndex); - const result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - } - getArea(position, size) { - return this.getAreaInternally(position, size, "data"); - } - getAreaInternally(position, size, select) { - const result = new Array(size.x * size.y); - let counter = 0; - let y = position.y; - if (select === "block") { - for (let i = 0; i < size.y; i++) { - let currentIndex = this.getIndex(position.x, y); - for (let j = 0; j < size.x; j++) { - result[counter++] = { - index: currentIndex, - item: this.data[currentIndex++], - coordinates: { y, x: position.x + j }, - }; - } - y++; - } - return result; - } - for (let i = 0; i < size.y; i++) { - let currentIndex = this.getIndex(position.x, y); - for (let j = 0; j < size.x; j++) { - result[counter++] = currentIndex++; - } - y++; - } - if (select === "indices") { - return result; - } - return result.map((index) => this.data[index]); - } - forEach(callback) { - for (let i = 0; i < this.data.length; i++) { - if (callback(this.data[i], i % this.size.x, Math.floor(i / this.size.x)) === false) { - return false; - } - } - return true; - } - getRandomBlockOfSize(size, filter) { - while (true) { - const randomIndex = Math.floor(Math.random() * this.data.length); - const blocks = this.getArea(this.getCoordinates(randomIndex), size); - if (blocks.every((item) => filter(item))) { - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - } - } - getRandomBlock(filter) { - while (true) { - const randomIndex = Math.floor(Math.random() * this.data.length); - const item = this.data[randomIndex]; - if (!filter || filter(item)) { - return { - item, - coordinates: this.getCoordinates(randomIndex), - }; - } - } - } - getRandomBlock2(filter) { - if (!filter) { - const randomIndex = Math.floor(Math.random() * this.data.length); - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - const sortedArray = this.data.map((item, index) => ({ item, index })).sort(() => Math.random() - 0.5); - const result = sortedArray.find((e) => filter(e.item)); - if (!result) { - return; - } - return { - item: result.item, - coordinates: this.getCoordinates(result.index), - }; - } -} -//# sourceMappingURL=grid2-array-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map deleted file mode 100644 index 269282a7..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-array-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE1D,SAAS,WAAW,CAAC,CAAS,EAAE,CAAS,EAAE,KAAa;IACpD,OAAO,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,cAAc,CAAC,KAAa,EAAE,KAAa;IAChD,OAAO;QACH,CAAC,EAAE,KAAK,GAAG,KAAK;QAChB,CAAC,EAAE,IAAI,CAAC,KAA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O;YACH,IAAI,EAAS,MAAM,CAAC,IAAI;YACxB,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC;SACjD,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js deleted file mode 100644 index cf74f427..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js +++ /dev/null @@ -1,33 +0,0 @@ -import { hash2Numbers } from "../../../../utils/math-utils"; -export class Grid2HashHolder { - constructor() { - this.data = {}; - } - get length() { - return Object.keys(this.data).length; - } - get(x, y) { - var _a; - return (_a = this.data[hash2Numbers(x, y)]) === null || _a === void 0 ? void 0 : _a.value; - } - set(x, y, value) { - this.data[hash2Numbers(x, y)] = { x, y, value }; - } - forEach(callback) { - Object.values(this.data).forEach((item) => (callback(item.value, item.x, item.y))); - return true; - } - getArea(position, size) { - throw new Error("Not implemented"); - } - delete(x, y) { - delete this.data[hash2Numbers(x, y)]; - } - getAroundData(x, y, size) { - throw new Error("Not implemented"); - } - getRandomBlock(filter) { - throw new Error("Not implemented"); - } -} -//# sourceMappingURL=grid2-hash-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map deleted file mode 100644 index b6fc30a3..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-hash-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,OAAO,eAAe;IAA5B;QACqB,SAAI,GAA0D,EAAE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grid2-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js deleted file mode 100644 index 98a14655..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid2-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map deleted file mode 100644 index 2e2ff341..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js deleted file mode 100644 index 7a98cdc7..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js +++ /dev/null @@ -1,53 +0,0 @@ -export class Grid2MapHolder { - constructor(data) { - this.data = data; - this.length = this.data.length * this.data[0].length; - } - static initEmpty(x, y, defaultValue = null) { - const result = new Array(x); - for (let i = 0; i < x; i++) { - result[i] = new Array(y); - for (let j = 0; j < y; j++) { - result[i][j] = defaultValue; - } - } - return new Grid2MapHolder(result); - } - static initWithProvider(x, y, provider) { - const result = new Array(x); - for (let i = 0; i < x; i++) { - result[i] = new Array(y); - for (let j = 0; j < y; j++) { - result[i][j] = provider(x, y); - } - } - return new Grid2MapHolder(result); - } - get(x, y) { - return this.data[x][y]; - } - set(x, y, value) { - this.data[x][y] = value; - } - delete(x, y) { - this.data[x][y] = undefined; - } - forEach(callback) { - for (let i = 0; i < this.data.length; i++) { - for (let j = 0; j < this.data[i].length; j++) { - callback(this.data[i][j], i, j); - } - } - return true; - } - getArea(position, size) { - throw new Error("Not implemented"); - } - getAroundData(x, y, size) { - throw new Error("Not implemented"); - } - getRandomBlock(filter) { - throw new Error("Not implemented"); - } -} -//# sourceMappingURL=grid2-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map deleted file mode 100644 index 6d7cf17b..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-map-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,cAAc;IAGvB,YAAmC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAF9B,WAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAGhE,CAAC;IAEM,MAAM,CAAC,SAAS,CAAI,CAAS,EAAE,CAAS,EAAE,eAAkB,IAAoB;QACnF,MAAM,MAAM,GAAG,IAAI,KAAK,CAAM,CAAC,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,CAAC;YAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBACxB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;aAC/B;SACJ;QAED,OAAO,IAAI,cAAc,CAAI,MAAM,CAAC,CAAC;IACzC,CAAC;IAEM,MAAM,CAAC,gBAAgB,CAAI,CAAS,EAAE,CAAS,EAAE,QAAqC;QACzF,MAA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;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,aAAa,CAAC,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,cAAc,CAAC,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js deleted file mode 100644 index 28d1766c..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js +++ /dev/null @@ -1,43 +0,0 @@ -import { getOrSetProperty } from "../../../../utils/object-utils"; -export class Grid2ObjectHolder { - constructor() { - this.data = {}; - this._length = 0; - } - get(x, y) { - const row = getOrSetProperty(this.data, x, {}); - return row[y]; - } - remove(x, y) { - const row = getOrSetProperty(this.data, x, {}); - if (row[y]) { - this._length--; - } - delete row[y]; - } - forEach(callback) { - Object.entries(this.data).forEach(([x, chunkRows]) => { - Object.entries(chunkRows).forEach(([y, chunk]) => { - callback(chunk, +x, +y); - }); - }); - return true; - } - set(x, y, value) { - const row = getOrSetProperty(this.data, x, {}); - if (typeof row[y] === "undefined") { - this._length++; - } - row[y] = value; - } - getArea(position, size) { - throw new Error("Not implemented"); - } - getAroundData(x, y, size) { - throw new Error("Not implemented"); - } - getRandomBlock(filter) { - throw new Error("Not implemented"); - } -} -//# sourceMappingURL=grid2-object-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map deleted file mode 100644 index 0d5f71d4..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,OAAO,iBAAiB;IAA9B;QACqB,SAAI,GAAwC,EAAE,CAAC;QACxD,YAAO,GAA8C,CAAC,CAAC;IA+CnE,CAAC;IA7CU,GAAG,CAAC,CAAS,EAAE,CAAS;QAC3B,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE/C,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,CAAS,EAAE,CAAS;QAC9B,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACR,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QACD,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAEM,OAAO,CAAC,QAAiD;QAC5D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE;YACjD,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE;gBAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE/C,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IACnB,CAAC;IAEM,OAAO,CAAC,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,aAAa,CAAC,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,cAAc,CAAC,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js deleted file mode 100644 index 923ec0da..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js +++ /dev/null @@ -1,41 +0,0 @@ -export class Grid2ObjectMapHolder { - constructor() { - this.chunks = new Map(); - } - get length() { - let length = 0; - this.chunks.forEach((value) => length += value.size); - return length; - } - get(x, y) { - var _a; - return (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.get(y); - } - remove(x, y) { - var _a, _b; - return (_b = (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.delete(y)) !== null && _b !== void 0 ? _b : false; - } - forEach(callback) { - this.chunks.forEach((row, x) => row.forEach((item, y) => callback(item, x, y))); - return true; - } - set(x, y, value) { - const row = this.chunks.get(x); - if (row) { - row.set(y, value); - } - else { - this.chunks.set(x, new Map([[y, value]])); - } - } - getArea(position, size) { - return []; - } - getAroundData(x, y, size) { - return []; - } - getRandomBlock(filter) { - return; - } -} -//# sourceMappingURL=grid2-object-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map deleted file mode 100644 index 6c196916..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-map-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,oBAAoB;IAAjC;QACqB,WAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;IA4ChE,CAAC;IA1CG,IAAW,MAAM;QACb,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;QAErD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS;;QAC3B,aAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,0CAAE,GAAG,CAAC,CAAC,EAAE;IACtC,CAAC;IAEM,MAAM,CAAC,CAAS,EAAE,CAAS;;QAC9B,mBAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC,CAAC,oCAAK,KAAK,CAAC;IAClD,CAAC;IAEM,OAAO,CAAC,QAAiD;QAC5D,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAEhF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAE/B,IAAI,GAAG,EAAE;YACL,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SACrB;aAAM;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAC7C;IACL,CAAC;IAEM,OAAO,CAAC,QAAuB,EAAE,IAAmB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,aAAa,CAAC,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,cAAc,CAAC,MAA+B;QACjD,OAAO;IACX,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js deleted file mode 100644 index f3b56d9f..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js +++ /dev/null @@ -1,31 +0,0 @@ -export class Grid2StringHolder { - constructor() { - this.data = {}; - } - get length() { - return Object.keys(this.data).length; - } - get(x, y) { - return this.data[`${x}_${y}`].value; - } - set(x, y, value) { - this.data[`${x}_${y}`] = { x, y, value }; - } - forEach(callback) { - Object.values(this.data).forEach((item) => (callback(item.value, item.x, item.y))); - return true; - } - getArea(position, size) { - throw new Error("Not implemented"); - } - delete(x, y) { - delete this.data[`${x}_${y}`]; - } - getAroundData(x, y, size) { - throw new Error("Not implemented"); - } - getRandomBlock(filter) { - throw new Error("Not implemented"); - } -} -//# sourceMappingURL=grid2-string-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map deleted file mode 100644 index 28ad526f..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-string-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IAA9B;QACqB,SAAI,GAA0D,EAAE,CAAC;IAmCtF,CAAC;IAjCG,IAAW,MAAM;QACb,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IACzC,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC;IACxC,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAC,CAAC;IAC3C,CAAC;IAEM,OAAO,CAAC,QAAkD;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEnF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,CAAS,EAAE,CAAS;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;IAEM,aAAa,CAAC,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,cAAc,CAAC,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js deleted file mode 100644 index 080d967a..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js +++ /dev/null @@ -1,68 +0,0 @@ -import "mocha"; -import { Grid2ArrayHolder } from "./grid2-array-holder"; -import { Grid2HashHolder } from "./grid2-hash-holder"; -import { Grid2MapHolder } from "./grid2-map-holder"; -import { Grid2ObjectHolder } from "./grid2-object-holder"; -import { Grid2ObjectMapHolder } from "./grid2-object-map-holder"; -import { Grid2StringHolder } from "./grid2-string-holder"; -describe("Grid2", () => { - describe("default", () => { - const size = { x: 256, y: 256 }; - const arrayHolder = Grid2ArrayHolder.initEmpty(size.x, size.y, 0); - const mapHolder = Grid2MapHolder.initEmpty(size.x, size.y, 0); - const hashHolder = new Grid2HashHolder(); - const objectHolder = new Grid2ObjectHolder(); - const stringHolder = new Grid2StringHolder(); - const objectMapHolder = new Grid2ObjectMapHolder(); - const sorts = [ - arrayHolder, - mapHolder, - objectHolder, - objectMapHolder, - stringHolder, - ]; - const createArray = () => { - const result = new Array(size.x); - for (let i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (let j = 0; j < size.y; j++) { - result[i][j] = Math.random(); - } - } - return result; - }; - it("It should test adding", () => { - sorts.forEach((holder) => { - const testArr = createArray(); - const start = Date.now(); - testArr.forEach((row, x) => { - row.forEach((item, y) => { - holder.set(x, y, item); - }); - }); - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", () => { - sorts.forEach((holder) => { - const start = Date.now(); - for (let x = 0; x < size.x; x++) { - for (let y = 0; y < size.y; y++) { - holder.get(x, y); - } - } - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", () => { - sorts.forEach((holder) => { - const start = Date.now(); - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid2.perf.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map deleted file mode 100644 index a9b387e7..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2.perf.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QAErB,MAAM,IAAI,GAAc,EAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAC,CAAC;QACzC,MAAM,WAAW,GAAO,gBAAgB,CAAC,SAAS,CA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K,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAIzB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js deleted file mode 100644 index e9217f48..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js +++ /dev/null @@ -1,45 +0,0 @@ -export function getIndex(x, y, z, width, height = width) { - return x + (z * width) + (y * width * height); -} -export function getCoordinates(index, width, height = width) { - return { - x: index % width, - y: Math.floor(index / (width * height)), - z: (index / width) % width, - }; -} -export class Grid3ArrayHolder { - constructor(size, data) { - this.size = size; - this.data = data; - } - getIndex(x, y, z) { - return getIndex(x, y, z, this.size.x); - } - getCoordinates(index) { - return getCoordinates(index, this.size.x); - } - static initEmpty(x, y, z, defaultValue = null) { - const size = x * y * z; - const result = new Array(size); - for (let i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid3ArrayHolder({ x, y, z }, result); - } - get(x, y, z) { - return this.data[this.getIndex(x, y, z)]; - } - set(x, y, z, value) { - this.data[this.getIndex(x, y, z)] = value; - } - forEach(callback) { - for (let i = 0; i < this.data.length; i++) { - const coordinates = this.getCoordinates(i); - if (callback(this.data[i], coordinates.x, coordinates.y, coordinates.z) === false) { - return; - } - } - } -} -//# sourceMappingURL=grid3-array-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map deleted file mode 100644 index e993ce89..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-array-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAa,EAAE,MAAM,GAAG,KAAK;IACnF,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,KAAa,EAAE,MAAM,GAAG,KAAK;IACvE,OAAO;QACH,CAAC,EAAE,KAAK,GAAG,KAAK;QAChB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;QACvC,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK;KAC7B,CAAC;AACN,CAAC;AAKD,MAAM,OAAO,gBAAgB;IACzB,YAAoC,IAAmB,EAAmB,IAAS;QAA/C,SAAI,GAAJ,IAAI,CAAe;QAAmB,SAAI,GAAJ,IAAI,CAAK;IACnF,CAAC;IAEO,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS;QAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEO,cAAc,CAAC,KAAa;QAChC,OAAO,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,SAAS,CAAI,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,eAAkB,IAAoB;QAC9F,MAAM,IAAI,GAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACzB,MAAM,MAAM,GAAG,IAAI,KAAK,CAAI,IAAI,CAAC,CAAC;QAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YAC3B,MAAM,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;SAC5B;QAED,OAAO,IAAI,gBAAgB,CAAI,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAC,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAQ;QAChD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC9C,CAAC;IAEM,OAAO,CAAC,QAAsE;QACjF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;YAC3C,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE;gBAC/E,OAAO;aACV;SACJ;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js deleted file mode 100644 index d93b8ca5..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js +++ /dev/null @@ -1,33 +0,0 @@ -import { hash3Numbers } from "../../../../utils/math-utils"; -export class Grid3HashHolder { - constructor(cacheForIteration = false) { - this.cacheForIteration = cacheForIteration; - this.data = {}; - this.values = []; - } - get(x, y, z) { - var _a; - return (_a = this.data[hash3Numbers(x, y, z)]) === null || _a === void 0 ? void 0 : _a.value; - } - set(x, y, z, value) { - this.data[hash3Numbers(x, y, z)] = { value, x, y, z }; - if (this.cacheForIteration) { - this.values = Object.values(this.data); - } - } - delete(x, y, z) { - delete this.data[hash3Numbers(x, y, z)]; - if (this.cacheForIteration) { - this.values = Object.values(this.values); - } - } - forEach(callback) { - if (this.cacheForIteration) { - this.values.forEach((item) => callback(item.value, item.x, item.y, item.z)); - } - else { - Object.values(this.data).forEach((item) => (callback(item.value, item.x, item.y, item.z))); - } - } -} -//# sourceMappingURL=grid3-hash-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map deleted file mode 100644 index e5a4c2f8..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-hash-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,MAAM,OAAO,eAAe;IAGxB,YAAoC,oBAAoB,KAAK;QAAzB,sBAAiB,GAAjB,iBAAiB,CAAQ;QAF5C,SAAI,GAAqE,EAAE,CAAC;QACrF,WAAM,GAAgF,EAAE,CAAC;IAEjG,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS;;QACtC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AC,CAAC,CAAC,CAAC,CAAC;SAC9F;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js deleted file mode 100644 index 277db859..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid3-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map deleted file mode 100644 index de8f994e..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js deleted file mode 100644 index 97886a52..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js +++ /dev/null @@ -1,106 +0,0 @@ -export class Grid3MapHolder { - constructor(data) { - this.data = data; - } - static initEmpty(x, y, z, defaultValue = null) { - const result = new Array(x); - for (let i = 0; i < x; i++) { - const resA = new Array(y); - for (let j = 0; j < y; j++) { - const resB = new Array(z); - for (let k = 0; k < z; k++) { - resB[k] = defaultValue; - } - resA[j] = resB; - } - result[i] = resA; - } - return new Grid3MapHolder(result); - } - get(x, y, z) { - var _a, _b; - return (_b = (_a = this.data[x]) === null || _a === void 0 ? void 0 : _a[y]) === null || _b === void 0 ? void 0 : _b[z]; - } - set(x, y, z, value) { - this.data[x][y][z] = value; - } - getBetween(pointA, pointB) { - const min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - z: Math.min(pointA.z, pointB.z), - }; - const max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - z: Math.max(pointA.z, pointB.z), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - z: max.z - min.z + 1, - }, "data"); - } - getArea(position, size) { - return this.getAreaInternally(position, size, "data"); - } - setData(data) { - this.data.splice(0, this.data.length); - Object.assign(this.data, data); - } - getAreaInternally(position, size, select) { - const result = []; - if (select === "block") { - for (let i = 0; i < size.x; i++) { - for (let j = 0; j < size.y; j++) { - for (let k = 0; k < size.z; k++) { - const x = i + position.x; - const y = j + position.y; - const z = k + position.z; - result.push({ - item: this.data[x][y][z], - coordinates: { x, y, z }, - }); - } - } - } - return result; - } - for (let i = 0; i < size.x; i++) { - for (let j = 0; j < size.y; j++) { - for (let k = 0; k < size.z; k++) { - const x = i + position.x; - const y = j + position.y; - const z = k + position.z; - result.push(this.data[x][y][z]); - } - } - } - return result; - } - forEach(callback) { - for (let i = 0; i < this.data.length; i++) { - for (let j = 0; j < this.data[i].length; j++) { - for (let k = 0; k < this.data[i][j].length; k++) { - callback(this.data[i][j][k], i, j, k); - } - } - } - } - getRandomBlock(filter) { - while (true) { - const x = Math.floor(Math.random() * this.data.length); - const y = Math.floor(Math.random() * this.data[x].length); - const z = Math.floor(Math.random() * this.data[x][y].length); - const item = this.data[x][y][z]; - if (filter && !filter(item)) { - continue; - } - return { - item, - coordinates: { x, y, z }, - }; - } - } -} -//# sourceMappingURL=grid3-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map deleted file mode 100644 index 2ba270b0..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-map-holder.js","sourceRoot":"","sources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GAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAChE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAEhC,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;gBACzB,SAAS;aACZ;YAED,OAAO;gBACH,IAAI;gBACJ,WAAW,EAAE,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAC;aACzB,CAAC;SACL;IACL,CAAC;CAEJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js deleted file mode 100644 index 8a4b0287..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js +++ /dev/null @@ -1,26 +0,0 @@ -import { getOrSetProperty } from "../../../../utils/object-utils"; -export class Grid3ObjectHolder { - constructor() { - this.data = {}; - } - get(x, y, z) { - const row = getOrSetProperty(this.data, x, {}); - const column = getOrSetProperty(row, y, {}); - return column[z]; - } - set(x, y, z, value) { - const row = getOrSetProperty(this.data, x, {}); - const column = getOrSetProperty(row, y, {}); - column[z] = value; - } - forEach(callback) { - Object.entries(this.data).forEach(([x, chunkRows]) => { - Object.entries(chunkRows).forEach(([y, chunk]) => { - Object.entries(chunk).forEach(([z, item]) => { - callback(item, +x, +y, +z); - }); - }); - }); - } -} -//# sourceMappingURL=grid3-object-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map deleted file mode 100644 index 9a9bdc15..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-object-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,OAAO,iBAAiB;IAA9B;QACqB,SAAI,GAAyD,EAAE,CAAC;IAyBrF,CAAC;IAvBU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS;QACtC,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IAEM,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAQ;QAChD,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE5C,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,OAAO,CAAC,QAA4D;QACvE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE;YACjD,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE;gBAC7C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE;oBACxC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js deleted file mode 100644 index 80799b7f..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js +++ /dev/null @@ -1,71 +0,0 @@ -import "mocha"; -import { Grid3ArrayHolder } from "./grid3-array-holder"; -import { Grid3HashHolder } from "./grid3-hash-holder"; -import { Grid3MapHolder } from "./grid3-map-holder"; -import { Grid3ObjectHolder } from "./grid3-object-holder"; -describe("Grid3", () => { - describe("default", () => { - const sizeOne = 128; - const size = { x: sizeOne, y: sizeOne, z: sizeOne }; - const arrayHolder = Grid3ArrayHolder.initEmpty(size.x, size.y, size.z, 0); - const mapHolder = Grid3MapHolder.initEmpty(size.x, size.y, size.z, 0); - const objectHolder = new Grid3ObjectHolder(); - const hashHolder = new Grid3HashHolder(); - const sorts = [ - arrayHolder, - objectHolder, - mapHolder, - ]; - const createArray = () => { - const result = new Array(size.x); - for (let i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (let j = 0; j < size.y; j++) { - result[i][j] = new Array(size.z); - for (let k = 0; k < size.z; k++) { - result[i][j][k] = Math.random(); - } - } - } - return result; - }; - it("It should test adding", () => { - sorts.forEach((holder) => { - const testArr = createArray(); - const start = Date.now(); - testArr.forEach((row, x) => { - row.forEach((column, y) => { - column.forEach((item, z) => { - holder.set(x, y, z, item); - }); - }); - }); - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", () => { - sorts.forEach((holder) => { - const start = Date.now(); - for (let x = 0; x < size.x; x++) { - for (let y = 0; y < size.y; y++) { - for (let z = 0; z < size.z; z++) { - holder.get(x, y, z); - } - } - } - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", () => { - sorts.forEach((holder) => { - const start = Date.now(); - holder.forEach(() => null); - const diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid3.perf.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map b/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map deleted file mode 100644 index 65f913ad..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3.perf.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QAErB,MAAM,OAAO,GAAQ,GAAG,CAAC;QACzB,MAAM,IAAI,GAAW,EAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAC,CAAC;QAC1D,MAAM,WAAW,GAAI,gBAAgB,CAAC,SAAS,CAAS,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnF,MAAM,SAAS,GAAM,cAAc,CAAC,SAAS,CAAS,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CA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IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;YAChC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACrB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAEzB,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;gBAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/index.js b/dist/_esm/models/data-structures/grid-accessor/index.js deleted file mode 100644 index 4ff4ab69..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export * from "./grid-filters"; -export * from "./grid2-accessor"; -export * from "./grid2-block-accessor"; -export * from "./holders-2d/grid2-array-holder"; -export * from "./holders-2d/grid2-hash-holder"; -export * from "./holders-2d/grid2-holder"; -export * from "./holders-2d/grid2-map-holder"; -export * from "./holders-2d/grid2-object-holder"; -export * from "./holders-3d/grid3-array-holder"; -export * from "./holders-3d/grid3-hash-holder"; -export * from "./holders-3d/grid3-holder"; -export * from "./holders-3d/grid3-map-holder"; -export * from "./holders-3d/grid3-object-holder"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/grid-accessor/index.js.map b/dist/_esm/models/data-structures/grid-accessor/index.js.map deleted file mode 100644 index daabde5c..00000000 --- a/dist/_esm/models/data-structures/grid-accessor/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AAEjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/abstract-linked-list.js b/dist/_esm/models/data-structures/list/abstract-linked-list.js deleted file mode 100644 index 0a8f5b64..00000000 --- a/dist/_esm/models/data-structures/list/abstract-linked-list.js +++ /dev/null @@ -1,51 +0,0 @@ -export class AbstractLinkedList { - constructor() { - this.first = null; - this.localLength = 0; - } - get length() { - return this.localLength; - } - [Symbol.iterator]() { - let current = this.first; - return { - [Symbol.iterator]() { - return this; - }, - next() { - if (current) { - const value = current.item; - current = current.next; - return { - value, - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - }; - } - get empty() { - return this.localLength === 0; - } - contains(item) { - for (let current = this.first; current; current = current.next) { - if (current.item === item) { - return true; - } - } - return false; - } - toArray() { - const newArray = new Array(this.localLength); - let i = 0; - for (let current = this.first; current; current = current.next) { - newArray[i++] = current.item; - } - return newArray; - } -} -//# sourceMappingURL=abstract-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/abstract-linked-list.js.map b/dist/_esm/models/data-structures/list/abstract-linked-list.js.map deleted file mode 100644 index a02fdc90..00000000 --- a/dist/_esm/models/data-structures/list/abstract-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-linked-list.js","s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AG,OAAO,CAAC,IAAI,EAAE;YAC5D,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;SAChC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/bi-directional-linked-list.js b/dist/_esm/models/data-structures/list/bi-directional-linked-list.js deleted file mode 100644 index 104398f5..00000000 --- a/dist/_esm/models/data-structures/list/bi-directional-linked-list.js +++ /dev/null @@ -1,73 +0,0 @@ -import { AbstractLinkedList } from "./abstract-linked-list"; -import { BiDirectionalLinkedListEntry } from "./linked-list-entry"; -export class BiDirectionalLinkedList extends AbstractLinkedList { - constructor() { - super(...arguments); - this.last = null; - } - add(item) { - const newItem = new BiDirectionalLinkedListEntry(item); - if (this.empty) { - this.first = newItem; - } - else { - this.last.next = newItem; - } - newItem.prev = this.last; - this.last = newItem; - this.localLength++; - return true; - } - forEach(callback) { - let act = this.first; - let index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - } - forEachReverse(callback) { - let act = this.last; - let index = this.length - 1; - while (act) { - callback(act.item, index--); - act = act.prev; - } - } - clear() { - this.first = null; - this.last = null; - this.localLength = 0; - } - remove(item) { - if (this.empty) { - return false; - } - if (this.length === 1) { - this.clear(); - return true; - } - for (let current = this.first; current; current = current.next) { - if (current.item === item) { - if (current === this.first) { - this.first = current.next; - current.next.prev = null; - this.localLength--; - return true; - } - if (current === this.last) { - this.last = current.prev; - current.prev.next = null; - this.localLength--; - return true; - } - current.prev.next = current.next; - current.next.prev = current.prev; - this.localLength--; - return true; - } - } - return true; - } -} -//# sourceMappingURL=bi-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/bi-directional-linked-list.js.map b/dist/_esm/models/data-structures/list/bi-directional-linked-list.js.map deleted file mode 100644 index 126af44c..00000000 --- a/dist/_esm/models/data-structures/list/bi-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bi-directional-linked-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/bi-directional-linked-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAGnE,MAAM,OAAO,uBAA2B,SAAQ,kBAAsD;IAAtG;;QACY,SAAI,GAA2C,IAAI,CAAC;IA+EhE,CAAC;IA7EU,GAAG,CAAC,IAAO;QACd,MAAM,OAAO,GAAG,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;SACxB;aAAM;YACH,IAAI,CAAC,IAAK,CAAC,IAAI,GAAG,OAAO,CAAC;SAC7B;QAED,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAM,OAAO,CAAC;QAEvB,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,CAAC;IACM,cAAc,CAAC,QAA6C;QAC/D,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACpB,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5B,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,C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a/dist/_esm/models/data-structures/list/index.js b/dist/_esm/models/data-structures/list/index.js deleted file mode 100644 index 4df318ec..00000000 --- a/dist/_esm/models/data-structures/list/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./abstract-linked-list"; -export * from "./bi-directional-linked-list"; -export * from "./linked-list-entry"; -export * from "./list"; -export * from "./one-directional-linked-list"; -export * from "./sorted-array-list"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/index.js.map b/dist/_esm/models/data-structures/list/index.js.map deleted file mode 100644 index 3f2a57ba..00000000 --- a/dist/_esm/models/data-structures/list/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/linked-list-entry.js b/dist/_esm/models/data-structures/list/linked-list-entry.js deleted file mode 100644 index 42b7eced..00000000 --- a/dist/_esm/models/data-structures/list/linked-list-entry.js +++ /dev/null @@ -1,14 +0,0 @@ -export class OneDirectionalLinkedListEntry { - constructor(item) { - this.item = item; - this.next = null; - } -} -export class BiDirectionalLinkedListEntry { - constructor(item) { - this.item = item; - this.prev = null; - this.next = null; - } -} -//# sourceMappingURL=linked-list-entry.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/linked-list-entry.js.map b/dist/_esm/models/data-structures/list/linked-list-entry.js.map deleted file mode 100644 index 03f58c7e..00000000 --- a/dist/_esm/models/data-structures/list/linked-list-entry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"linked-list-entry.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/linked-list-entry.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,6BAA6B;IAGtC,YAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAFnC,SAAI,GAA4C,IAAI,CAAC;IAG5D,CAAC;CACJ;AAED,MAAM,OAAO,4BAA4B;IAIrC,YAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAHnC,SAAI,GAA2C,IAAI,CAAC;QACpD,SAAI,GAA2C,IAAI,CAAC;IAG3D,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/list.js b/dist/_esm/models/data-structures/list/list.js deleted file mode 100644 index 990d791c..00000000 --- a/dist/_esm/models/data-structures/list/list.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/list.js.map b/dist/_esm/models/data-structures/list/list.js.map deleted file mode 100644 index 257e55f3..00000000 --- a/dist/_esm/models/data-structures/list/list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/list.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/one-directional-linked-list.js b/dist/_esm/models/data-structures/list/one-directional-linked-list.js deleted file mode 100644 index 8dc04625..00000000 --- a/dist/_esm/models/data-structures/list/one-directional-linked-list.js +++ /dev/null @@ -1,40 +0,0 @@ -import { AbstractLinkedList } from "./abstract-linked-list"; -import { OneDirectionalLinkedListEntry } from "./linked-list-entry"; -export class OneDirectionalLinkedList extends AbstractLinkedList { - add(item) { - const newFirst = new OneDirectionalLinkedListEntry(item); - newFirst.next = this.first; - this.first = newFirst; - this.localLength++; - return true; - } - forEach(callback) { - let act = this.first; - let index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - } - clear() { - this.first = null; - this.localLength = 0; - } - remove(item) { - var _a; - for (let current = this.first; current; current = current.next) { - if (current === this.first && current.item === item) { - this.first = current.next; - this.localLength--; - return true; - } - if (((_a = current.next) === null || _a === void 0 ? void 0 : _a.item) === item) { - current.next = current.next.next; - this.localLength--; - return true; - } - } - return false; - } -} -//# sourceMappingURL=one-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/one-directional-linked-list.js.map b/dist/_esm/models/data-structures/list/one-directional-linked-list.js.map deleted file mode 100644 index 8aa510fb..00000000 --- a/dist/_esm/models/data-structures/list/one-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"one-directional-linked-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/one-directional-linked-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGpE,MAAM,OAAO,wBAA4B,SAAQ,kBAAuD;IAC7F,GAAG,CAAC,IAAO;QACd,MAAM,QAAQ,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzD,QAAQ,CAAC,IAAI,GAAI,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAO,QAAQ,CAAC;QAE1B,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO,CAAC,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,KAAK,GAAS,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,IAAO;;QACjB,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,IAAI,OAAO,KAAK,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE;gBACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;gBAC1B,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;YAED,IAAI,OAAA,OAAO,CAAC,IAAI,0CAAE,IAAI,MAAK,IAAI,EAAE;gBAC7B,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;gBACjC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/sorted-array-list.js b/dist/_esm/models/data-structures/list/sorted-array-list.js deleted file mode 100644 index 31cf56cd..00000000 --- a/dist/_esm/models/data-structures/list/sorted-array-list.js +++ /dev/null @@ -1,52 +0,0 @@ -import { binarySearch, sortedInsert, sortedRemove } from "../../../utils/sorted-array-utils"; -export class SortedArrayList { - constructor(comparator) { - this.comparator = comparator; - this.data = []; - } - forEach(callback) { - this.data.forEach(callback); - } - [Symbol.iterator]() { - let current = 0; - return { - [Symbol.iterator]() { - return this; - }, - next: () => { - if (current < this.data.length) { - return { - value: this.data[current++], - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - }; - } - get length() { - return this.data.length; - } - get empty() { - return this.data.length === 0; - } - add(item) { - return sortedInsert(this.data, item, this.comparator) >= 0; - } - clear() { - this.data.splice(0, this.data.length); - } - contains(item) { - return binarySearch(this.data, item, this.comparator) >= 0; - } - remove(item) { - return !!sortedRemove(this.data, item, this.comparator); - } - toArray() { - return [...this.data]; - } -} -//# sourceMappingURL=sorted-array-list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/sorted-array-list.js.map b/dist/_esm/models/data-structures/list/sorted-array-list.js.map deleted file mode 100644 index 7f61442b..00000000 --- a/dist/_esm/models/data-structures/list/sorted-array-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/sorted-array-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAG7F,MAAM,OAAO,eAAe;IAGxB,YAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAFrD,SAAI,GAAQ,EAAE,CAAC;IAGhC,CAAC;IAEM,OAAO,CAAC,QAA6C;QACxD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC;QACpB,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB,OAAO;YACH,CAAC,MAAM,CAAC,QAAQ,CAAC;gBACb,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,IAAI,EAAE,GAAsB,EAAE;gBAC1B,IAAI,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;oBAC5B,OAAO;wBACH,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;wBAC3B,IAAI,EAAG,KAAK;qBACf,CAAC;iBACL;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAG,IAAI;iBACd,CAAC;YACN,CAAC;SACJ,CAAC;IACN,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAClC,CAAC;IAEM,GAAG,CAAC,IAAO;QACd,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAEM,QAAQ,CAAC,IAAO;QACnB,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAEM,MAAM,CAAC,IAAO;QACjB,OAAO,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;IAEM,OAAO;QACV,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/test-list.js b/dist/_esm/models/data-structures/list/test-list.js deleted file mode 100644 index d4574b11..00000000 --- a/dist/_esm/models/data-structures/list/test-list.js +++ /dev/null @@ -1,44 +0,0 @@ -import { deepEqual } from "gtools/utils"; -export function testList(list, testOrder = false) { - list.clear(); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(deepEqual(list.toArray(), [])); - list.add("b"); - console.assert(!list.empty); - console.assert(list.length === 1); - console.assert(deepEqual(list.toArray(), ["b"])); - console.assert(!list.contains("a")); - console.assert(list.contains("b")); - console.assert(!list.contains("c")); - list.add("a"); - list.add("c"); - list.add("e"); - list.add("d"); - const tmpList = []; - for (const item of list) { - tmpList.push(item); - } - const listArray = list.toArray(); - console.assert(listArray.length === tmpList.length); - tmpList.forEach((item) => { - console.assert(listArray.indexOf(item) >= 0); - }); - console.assert(list.length === 5); - if (testOrder) { - console.assert(deepEqual(list.toArray(), ["a", "b", "c", "d", "e"])); - } - list.remove("b"); - list.remove("d"); - console.assert(list.length === 3); - if (testOrder) { - console.assert(deepEqual(list.toArray(), ["a", "c", "e"])); - } - list.remove("a"); - list.remove("c"); - list.remove("e"); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(deepEqual(list.toArray(), [])); -} -//# sourceMappingURL=test-list.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/list/test-list.js.map b/dist/_esm/models/data-structures/list/test-list.js.map deleted file mode 100644 index c87ae6c5..00000000 --- a/dist/_esm/models/data-structures/list/test-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"test-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/test-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,UAAU,QAAQ,CAAC,IAAkB,EAAE,SAAS,GAAG,KAAK;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEd,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAElC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEjD,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;I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AE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KAC9D;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/priority-queue.js b/dist/_esm/models/data-structures/priority-queue.js deleted file mode 100644 index d3531b23..00000000 --- a/dist/_esm/models/data-structures/priority-queue.js +++ /dev/null @@ -1,66 +0,0 @@ -const leftChild = (index) => index * 2 + 1; -const rightChild = (index) => index * 2 + 2; -const getParentIndex = (index) => Math.floor((index - 1) / 2); -export class PriorityQueue { - constructor(comparator) { - this.comparator = comparator; - this.heap = []; - } - static createMaxQueue(valueExtractor) { - return new PriorityQueue((a, b) => valueExtractor(a) > valueExtractor(b)); - } - static createMinQueue(valueExtractor) { - return new PriorityQueue((a, b) => valueExtractor(a) < valueExtractor(b)); - } - swap(indexOne, indexTwo) { - const tmp = this.heap[indexOne]; - this.heap[indexOne] = this.heap[indexTwo]; - this.heap[indexTwo] = tmp; - } - peek() { - return this.heap[0]; - } - get length() { - return this.heap.length; - } - contains(item) { - return this.heap.some((e) => this.comparator(e, item)); - } - clear() { - this.heap = []; - } - forEach(callback) { - this.heap.forEach(callback); - } - add(element) { - this.heap.push(element); - let index = this.heap.length - 1; - while (index !== 0 && this.comparator(this.heap[index], this.heap[getParentIndex(index)])) { - this.swap(index, getParentIndex(index)); - index = getParentIndex(index); - } - } - pop() { - const root = this.heap.shift(); - this.heap.unshift(this.heap[this.heap.length - 1]); - this.heap.pop(); - this.heapify(0); - return root; - } - heapify(index) { - const left = leftChild(index); - const right = rightChild(index); - let smallest = index; - if (left < this.heap.length && this.comparator(this.heap[left], this.heap[smallest])) { - smallest = left; - } - if (right < this.heap.length && this.comparator(this.heap[right], this.heap[smallest])) { - smallest = right; - } - if (smallest !== index) { - this.swap(smallest, index); - this.heapify(smallest); - } - } -} -//# sourceMappingURL=priority-queue.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/priority-queue.js.map b/dist/_esm/models/data-structures/priority-queue.js.map deleted file mode 100644 index 7491833b..00000000 --- a/dist/_esm/models/data-structures/priority-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priority-queue.js","sourceRoot":"","sources":["../../../../src/models/data-structures/priority-queue.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAQ,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC;AAChE,MAAM,UAAU,GAAO,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC;AAChE,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9E,MAAM,OAAO,aAAa;IAGtB,YAAoC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;QAF/D,SAAI,GAAQ,EAAE,CAAC;IAGvB,CAAC;IAEM,MAAM,CAAC,cAAc,CAAI,cAAoC;QAChE,OAAO,IAAI,aAAa,CAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAEM,MAAM,CAAC,cAAc,CAAI,cAAoC;QAChE,OAAO,IAAI,aAAa,CAAI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AC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/data-structures/quad-tree/quad-tree.js b/dist/_esm/models/data-structures/quad-tree/quad-tree.js deleted file mode 100644 index 13909844..00000000 --- a/dist/_esm/models/data-structures/quad-tree/quad-tree.js +++ /dev/null @@ -1,162 +0,0 @@ -export class Point { - constructor(x, y) { - this.x = x; - this.y = y; - } - lte(point) { - return this.x <= point.x && this.y <= point.y; - } - gte(point) { - return this.x >= point.x && this.y >= point.y; - } - equals(point) { - return this.x === point.x && this.y === point.y; - } -} -export class Box { - constructor(low, high) { - this.low = low; - this.high = high; - } - contains(point) { - return this.low.lte(point) && this.high.gte(point); - } - overlaps(box) { - if (this.high.x < box.low.x) { - return false; - } - if (this.low.x > box.high.x) { - return false; - } - if (this.high.y < box.low.y) { - return false; - } - if (this.low.y > box.high.y) { - return false; - } - return true; - } - containsBox(box) { - return this.contains(box.low) && this.contains(box.high); - } - split() { - return [ - new Box(this.low, new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, this.low.y), new Point(this.high.x, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2), this.high), - new Box(new Point(this.low.x, (this.low.y + this.high.y) / 2), new Point((this.low.x + this.high.x) / 2, this.high.y)), - ]; - } -} -export class QuadTree { - constructor(box, max = 10) { - this.box = box; - this.max = max; - this.children = null; - this.value = []; - } - insert(point, value) { - var _a; - if (!this.box.contains(point)) { - return this; - } - if (this.children === null && this.value.length < this.max) { - for (const item of this.value) { - if (item.point.equals(point)) { - item.value = value; - return; - } - } - this.value.push({ point, value }); - return this; - } - if (this.children === null) { - this.subdivide(); - } - (_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach((child) => { - child.insert(point, value); - }); - this.value = []; - return this; - } - subdivide() { - this.children = this.box.split().map((child) => new QuadTree(child, this.max)); - this.value.forEach((item) => { - var _a; - (_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach((child) => { - child.insert(item.point, item.value); - }); - }); - } - queryRange(box) { - const result = []; - this._queryRangeRec(box, result); - return result; - } - _queryRangeRec(box, result) { - if (!this.box.overlaps(box)) { - return; - } - let i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (box.contains(this.value[i].point)) { - result.push(this.value[i]); - } - } - return; - } - if (this.children === null) { - return; - } - this.children.forEach((child) => { - child._queryRangeRec(box, result); - }); - } - queryPoint(point) { - if (!this.box.contains(point)) { - return null; - } - if (this.value.length > 0) { - const result = this.value.find((item) => item.point.equals(point)); - if (result) { - return result.value; - } - } - if (this.children !== null) { - for (const child of this.children) { - const result = child.queryPoint(point); - if (result) { - return result; - } - } - } - return null; - } - removePoint(point) { - if (!this.box.contains(point)) { - return; - } - let i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (this.value[i].point.equals(point)) { - this.value.splice(i, 1); - return; - } - } - return; - } - if (this.children !== null) { - for (i = 0; i < this.children.length; i++) { - this.children[i].removePoint(point); - } - } - return; - } - clear() { - this.children = null; - this.value = []; - } -} -//# sourceMappingURL=quad-tree.js.map \ No newline at end of file diff --git a/dist/_esm/models/data-structures/quad-tree/quad-tree.js.map b/dist/_esm/models/data-structures/quad-tree/quad-tree.js.map deleted file mode 100644 index 97237810..00000000 --- a/dist/_esm/models/data-structures/quad-tree/quad-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quad-tree.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/quad-tree/quad-tree.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,KAAK;IACd,YACoB,CAAS,EACT,CAAS;QADT,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;IAE7B,CAAC;IAEM,GAAG,CAAC,KAAoB;QAC3B,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IACl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aACJ;YAED,OAAO;SACV;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACvC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACvC;SACJ;QAED,OAAO;IACX,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK,GAAM,EAAE,CAAC;IACvB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/gender.model.js b/dist/_esm/models/gender.model.js deleted file mode 100644 index b1feb484..00000000 --- a/dist/_esm/models/gender.model.js +++ /dev/null @@ -1,24 +0,0 @@ -const maleRegexp = /^(male|man|muz|boy|chlapec|m)$/g; -const femaleRegexp = /^(female|woman|zena|girl|dievca|f|w|z)$/g; -export var Gender; -(function (Gender) { - Gender["MAN"] = "MAN"; - Gender["WOMAN"] = "WOMAN"; -})(Gender || (Gender = {})); -export function parseGender(gender) { - if (!gender) { - return null; - } - const genderLowerCase = gender.trim().toLowerCase().replace("ž", "z").replace("č", "c"); - if (genderLowerCase.match(maleRegexp)) { - return Gender.MAN; - } - if (genderLowerCase.match(femaleRegexp)) { - return Gender.WOMAN; - } - return null; -} -export class GenderClass { -} -GenderClass.parse = parseGender; -//# sourceMappingURL=gender.model.js.map \ No newline at end of file diff --git a/dist/_esm/models/gender.model.js.map b/dist/_esm/models/gender.model.js.map deleted file mode 100644 index e818aaae..00000000 --- a/dist/_esm/models/gender.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gender.model.js","sourceRoot":"","sources":["../../../src/models/gender.model.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,GAAK,iCAAiC,CAAC;AACvD,MAAM,YAAY,GAAG,0CAA0C,CAAC;AAEhE,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,qBAAa,CAAA;IACb,yBAAe,CAAA;AACnB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAED,MAAM,UAAU,WAAW,CAAC,MAAc;IACtC,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,IAAI,CAAC;KACf;IACD,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxF,IAAI,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;QACnC,OAAO,MAAM,CAAC,GAAG,CAAC;KACrB;IAED,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;QACrC,OAAO,MAAM,CAAC,KAAK,CAAC;KACvB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAMD,MAAM,OAAO,WAAW;;AAON,iBAAK,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/index.js b/dist/_esm/models/index.js deleted file mode 100644 index 637217d5..00000000 --- a/dist/_esm/models/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export * from "./gender.model"; -export * from "./color.model"; -export * from "./transform-2d"; -export * from "./range"; -export * from "./path-2d"; -export * from "./path/djikstra/djikstra"; -export * from "./sorting"; -export * from "./data-structures/priority-queue"; -export * from "./data-structures/binary-queue"; -export * from "./data-structures/binary-tree"; -export * from "./data-structures/quad-tree/quad-tree"; -export * from "./data-structures/grid-accessor"; -export * from "./data-structures/list"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/models/index.js.map b/dist/_esm/models/index.js.map deleted file mode 100644 index abb3727a..00000000 --- a/dist/_esm/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,WAAW,CAAC;AAE1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,uCAAuC,CAAC;AAEtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/path-2d.js b/dist/_esm/models/path-2d.js deleted file mode 100644 index b881dad1..00000000 --- a/dist/_esm/models/path-2d.js +++ /dev/null @@ -1,21 +0,0 @@ -export class Path2D { - constructor(points) { - this.points = points; - if (points.length < 2) { - throw new Error("Cannot create path with less than 2 points"); - } - } - get length() { - return this.points.length; - } - get first() { - return this.points[0]; - } - get last() { - return this.points[this.points.length - 1]; - } - getPoint(index) { - return this.points[index]; - } -} -//# sourceMappingURL=path-2d.js.map \ No newline at end of file diff --git a/dist/_esm/models/path-2d.js.map b/dist/_esm/models/path-2d.js.map deleted file mode 100644 index 805a30ed..00000000 --- a/dist/_esm/models/path-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"path-2d.js","sourceRoot":"","sources":["../../../src/models/path-2d.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,MAAM;IACf,YAAsC,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;QACtD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SACjE;IACL,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,IAAW,KAAK;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC;IAEM,QAAQ,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/a-star.js b/dist/_esm/models/path/a-star/a-star.js deleted file mode 100644 index d296993e..00000000 --- a/dist/_esm/models/path/a-star/a-star.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -//# sourceMappingURL=a-star.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/a-star.js.map b/dist/_esm/models/path/a-star/a-star.js.map deleted file mode 100644 index d854efee..00000000 --- a/dist/_esm/models/path/a-star/a-star.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/a-star.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/a-star_download.js b/dist/_esm/models/path/a-star/a-star_download.js deleted file mode 100644 index fcfa45f6..00000000 --- a/dist/_esm/models/path/a-star/a-star_download.js +++ /dev/null @@ -1,82 +0,0 @@ -import { BinaryHeap } from "../../data-structures/binary-queue"; -const pathTo = (node) => { - let curr = node; - const path = []; - while (curr.parent) { - path.unshift(curr); - curr = curr.parent; - } - return path; -}; -const getHeap = () => new BinaryHeap((node) => node.f); -const astar = { - search(graph, start, end, options = {}) { - graph.cleanDirty(); - options = options || {}; - const heuristic = options.heuristic || astar.heuristics.manhattan; - const closest = options.closest || false; - const openHeap = getHeap(); - let closestNode = start; - start.h = heuristic(start, end); - graph.markDirty(start); - openHeap.push(start); - while (openHeap.size() > 0) { - const currentNode = openHeap.pop(); - if (currentNode === end) { - return pathTo(currentNode); - } - currentNode.closed = true; - const neighbors = graph.neighbors(currentNode); - for (let i = 0, il = neighbors.length; i < il; ++i) { - const neighbor = neighbors[i]; - if (neighbor.closed || neighbor.isWall()) { - continue; - } - const gScore = currentNode.g + neighbor.getCost(currentNode); - const beenVisited = neighbor.visited; - if (!beenVisited || gScore < neighbor.g) { - neighbor.visited = true; - neighbor.parent = currentNode; - neighbor.h = neighbor.h || heuristic(neighbor, end); - neighbor.g = gScore; - neighbor.f = neighbor.g + neighbor.h; - graph.markDirty(neighbor); - if (closest) { - if (neighbor.h < closestNode.h || (neighbor.h === closestNode.h && neighbor.g < closestNode.g)) { - closestNode = neighbor; - } - } - if (!beenVisited) { - openHeap.push(neighbor); - } - else { - openHeap.rescoreElement(neighbor); - } - } - } - } - if (closest) { - return pathTo(closestNode); - } - return []; - }, - heuristics: { - manhattan(pos0, pos1) { - const d1 = Math.abs(pos1.x - pos0.x); - const d2 = Math.abs(pos1.y - pos0.y); - return d1 + d2; - }, - diagonal(pos0, pos1) { - const D = 1; - const D2 = Math.sqrt(2); - const d1 = Math.abs(pos1.x - pos0.x); - const d2 = Math.abs(pos1.y - pos0.y); - return (D * (d1 + d2)) + ((D2 - (2 * D)) * Math.min(d1, d2)); - }, - }, - cleanNode(node) { - node.cleanUp(); - }, -}; -export { astar }; -//# sourceMappingURL=a-star_download.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/a-star_download.js.map b/dist/_esm/models/path/a-star/a-star_download.js.map deleted file mode 100644 index b2851e2d..00000000 --- a/dist/_esm/models/path/a-star/a-star_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star_download.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/a-star_download.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,MAAM,MAAM,GAAG,CAAC,IAAc,EAAc,EAAE;IAC1C,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC,MAAM,EAAE;QAChB,IAAI,CAAC,OAAO,CAAC,I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OAAO,EAAE,CAAC;IACd,CAAC;IAED,UAAU,EAAE;QACR,SAAS,CAAC,IAAmB,EAAE,IAAmB;YAC9C,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErC,OAAO,EAAE,GAAG,EAAE,CAAC;QACnB,CAAC;QACD,QAAQ,CAAC,IAAmB,EAAE,IAAmB;YAC7C,MAAM,CAAC,GAAI,CAAC,CAAC;YACb,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACxB,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErC,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACjE,CAAC;KACJ;IACD,SAAS,CAAC,IAAc;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;CACJ,CAAC;AAKF,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/graph_download.js b/dist/_esm/models/path/a-star/graph_download.js deleted file mode 100644 index 666cb789..00000000 --- a/dist/_esm/models/path/a-star/graph_download.js +++ /dev/null @@ -1,87 +0,0 @@ -import { astar } from "./a-star_download"; -import { GridNode } from "./grid-node_download"; -export class Graph { - constructor(gridIn, options = {}) { - this.options = options; - this.nodes = []; - this.grid = []; - this.dirtyNodes = []; - for (let x = 0; x < gridIn.length; x++) { - this.grid[x] = []; - const row = gridIn[x]; - for (let y = 0; y < row.length; y++) { - const node = new GridNode(x, y, row[y]); - this.grid[x][y] = node; - this.nodes.push(node); - } - } - this.init(); - } - get diagonal() { - return !!this.options.diagonal; - } - get(x, y) { - return this.grid[x][y]; - } - init() { - this.dirtyNodes = []; - for (const item of this.nodes) { - astar.cleanNode(item); - } - } - cleanDirty() { - for (const item of this.dirtyNodes) { - astar.cleanNode(item); - } - this.dirtyNodes = []; - } - markDirty(node) { - this.dirtyNodes.push(node); - } - neighbors(node) { - const ret = []; - const x = node.x; - const y = node.y; - const grid = this.grid; - if (grid[x - 1] && grid[x - 1][y]) { - ret.push(grid[x - 1][y]); - } - if (grid[x + 1] && grid[x + 1][y]) { - ret.push(grid[x + 1][y]); - } - if (grid[x] && grid[x][y - 1]) { - ret.push(grid[x][y - 1]); - } - if (grid[x] && grid[x][y + 1]) { - ret.push(grid[x][y + 1]); - } - if (this.diagonal) { - if (grid[x - 1] && grid[x - 1][y - 1]) { - ret.push(grid[x - 1][y - 1]); - } - if (grid[x + 1] && grid[x + 1][y - 1]) { - ret.push(grid[x + 1][y - 1]); - } - if (grid[x - 1] && grid[x - 1][y + 1]) { - ret.push(grid[x - 1][y + 1]); - } - if (grid[x + 1] && grid[x + 1][y + 1]) { - ret.push(grid[x + 1][y + 1]); - } - } - return ret; - } - toString() { - const graphString = []; - const nodes = this.grid; - for (const row of nodes) { - const rowDebug = []; - for (const item of row) { - rowDebug.push(item.weight); - } - graphString.push(rowDebug.join(" ")); - } - return graphString.join("\n"); - } -} -//# sourceMappingURL=graph_download.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/graph_download.js.map b/dist/_esm/models/path/a-star/graph_download.js.map deleted file mode 100644 index 361bfe08..00000000 --- a/dist/_esm/models/path/a-star/graph_download.js.map +++ /dev/null @@ -1 +0,0 @@ -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AC,CAAC;aAChC;SACJ;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,QAAQ;QACX,MAAM,WAAW,GAAG,EAAE,CAAC;QACvB,MAAM,KAAK,GAAS,IAAI,CAAC,IAAI,CAAC;QAC9B,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;YACrB,MAAM,QAAQ,GAAG,EAAE,CAAC;YACpB,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE;gBACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC9B;YACD,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACxC;QAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/grid-node_download.js b/dist/_esm/models/path/a-star/grid-node_download.js deleted file mode 100644 index 8d48bbdc..00000000 --- a/dist/_esm/models/path/a-star/grid-node_download.js +++ /dev/null @@ -1,34 +0,0 @@ -export class GridNode { - constructor(x, y, weight) { - this.x = x; - this.y = y; - this.weight = weight; - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - } - cleanUp() { - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - } - toString() { - return `[${this.x} ${this.y}]`; - } - getCost(fromNeighbor) { - if (fromNeighbor && fromNeighbor.x !== this.x && fromNeighbor.y !== this.y) { - return this.weight * 1.41421; - } - return this.weight; - } - isWall() { - return this.weight === 0; - } -} -//# sourceMappingURL=grid-node_download.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/a-star/grid-node_download.js.map b/dist/_esm/models/path/a-star/grid-node_download.js.map deleted file mode 100644 index 9525cfc1..00000000 --- a/dist/_esm/models/path/a-star/grid-node_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-node_download.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/grid-node_download.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,QAAQ;IAUjB,YACoB,CAAS,EACT,CAAS,EACT,MAAc;QAFd,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;QACT,WAAM,GAAN,MAAM,CAAQ;QAZ3B,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QAEN,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,KAAK,CAAC;QAEf,WAAM,GAAoB,IAAI,CAAC;IAOtC,CAAC;IAEM,OAAO;QACV,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,IAAI,CAAC;IACxB,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC;IACnC,CAAC;IAEM,OAAO,CAAC,YAAsB;QAEjC,IAAI,YAAY,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;YACxE,OAAO,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;SAChC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAC7B,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/path/djikstra/djikstra.js b/dist/_esm/models/path/djikstra/djikstra.js deleted file mode 100644 index 9edce31c..00000000 --- a/dist/_esm/models/path/djikstra/djikstra.js +++ /dev/null @@ -1,77 +0,0 @@ -export class DjikstraVertex { - constructor(name, nodes, weight) { - this.name = name; - this.nodes = nodes; - this.weight = weight; - } -} -export class Dijkstra { - constructor() { - this.vertices = {}; - } - addVertex(vertex) { - this.vertices[vertex.name] = vertex; - } - removeVertex(vertexName) { - delete this.vertices[vertexName]; - } - getVertex(vertexName) { - return this.vertices[vertexName]; - } - requireVertex(name, vertexWeight = 0) { - const result = this.getVertex(name); - if (result) { - return result; - } - const newVertex = new DjikstraVertex(name, [], 0); - this.addVertex(newVertex); - return newVertex; - } - findPointsOfShortestWay(start, finish, weight) { - let nextVertex = finish; - const arrayWithVertex = []; - while (nextVertex !== start) { - let minWeight = Number.MAX_VALUE; - let minVertex = ""; - this.vertices[nextVertex].nodes.forEach((node) => { - if (node.weight + this.vertices[node.nameOfVertex].weight < minWeight) { - minWeight = this.vertices[node.nameOfVertex].weight; - minVertex = node.nameOfVertex; - } - }); - arrayWithVertex.push(minVertex); - nextVertex = minVertex; - } - return arrayWithVertex; - } - findShortestWay(start, finish) { - const nodes = {}; - Object.values(this.vertices).forEach((vertex) => { - if (vertex.name === start) { - vertex.weight = 0; - } - else { - vertex.weight = Number.MAX_VALUE; - } - nodes[vertex.name] = vertex.weight; - }); - while (Object.keys(nodes).length !== 0) { - const sortedVisitedByWeight = Object.keys(nodes).sort((a, b) => this.vertices[a].weight - this.vertices[b].weight); - const currentVertex = this.vertices[sortedVisitedByWeight[0]]; - for (const j of currentVertex.nodes) { - const calculateWeight = currentVertex.weight + j.weight; - if (calculateWeight < this.vertices[j.nameOfVertex].weight) { - this.vertices[j.nameOfVertex].weight = calculateWeight; - } - } - delete nodes[sortedVisitedByWeight[0]]; - } - const finishWeight = this.vertices[finish].weight; - const arrayWithVertex = this.findPointsOfShortestWay(start, finish, finishWeight).reverse(); - return { - distance: finishWeight, - nodes: [...arrayWithVertex, finish], - }; - } -} -//# sourceMappingURL=djikstra.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/djikstra/djikstra.js.map b/dist/_esm/models/path/djikstra/djikstra.js.map deleted file mode 100644 index 65720061..00000000 --- a/dist/_esm/models/path/djikstra/djikstra.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"djikstra.js","sourceRoot":"","sources":["../../../../../src/models/path/djikstra/djikstra.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,cAAc;IACvB,YACoB,IAAY,EACZ,KAGb,EACI,MAAc;QALL,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;QACI,WAAM,GAAN,MAAM,CAAQ;IAEzB,CAAC;CACJ;AAED,MAAM,OAAO,QAAQ;IAGjB;QACI,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAEM,SAAS,CAAC,MAAsB;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IACxC,CAAC;IAEM,YAAY,CAAC,UAAkB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IACM,SAAS,CAAC,UAAkB;QAC/B,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAEM,aAAa,CAAC,IAAY,EAAE,YAAY,GAAG,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,MAAM,EAAE;YACR,OAAO,MAAM,CAAC;SACjB;QAED,MAAM,SAAS,GAAG,IAAI,cAAc,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAClD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAE1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAEM,uBAAuB,CAAC,KAAa,EAAE,MAAc,EAAE,MAAc;QACxE,IAAI,UAAU,GAAoB,MAAM,CAAC;QACzC,MAAM,eAAe,GAAa,EAAE,CAAC;QACrC,OA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EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAC7H,MAAM,aAAa,GAAqB,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;YAChF,KAAK,MAAM,CAAC,IAAI,aAAa,CAAC,KAAK,EAAE;gBACjC,MAAM,eAAe,GAAW,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;gBAChE,IAAI,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE;oBACxD,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,eAAe,CAAC;iBAC1D;aACJ;YACD,OAAO,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;SAC1C;QACD,MAAM,YAAY,GAAgB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;QAC/D,MAAM,eAAe,GAAa,IAAI,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;QAEtG,OAAO;YACH,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,CAAC,GAAG,eAAe,EAAE,MAAM,CAAC;SACtC,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/path/nearest-item.js b/dist/_esm/models/path/nearest-item.js deleted file mode 100644 index f0786dc5..00000000 --- a/dist/_esm/models/path/nearest-item.js +++ /dev/null @@ -1,63 +0,0 @@ -import { PriorityQueue } from "../data-structures/priority-queue"; -export class NearestVertex { - constructor(name, type, nodes) { - this.name = name; - this.type = type; - this.nodes = nodes; - } -} -export class NearestItem { - constructor() { - this.vertices = {}; - } - addVertex(vertex) { - this.vertices[vertex.name] = vertex; - } - getVertex(vertex) { - return this.vertices[vertex.name]; - } - removeVertex(vertex) { - delete this.vertices[vertex.name]; - } - requireVertex(name, type) { - const result = this.vertices[name]; - if (result) { - return result; - } - const newVertex = new NearestVertex(name, type, []); - this.addVertex(newVertex); - return newVertex; - } - getNearestItem(name, searchedType) { - const resultVertices = []; - const queue = PriorityQueue.createMinQueue((value) => value.weight); - const visitedVertices = {}; - queue.add({ - weight: 0, - vertices: [this.vertices[name]], - }); - while (queue.length) { - const currentItem = queue.pop(); - const currentVertex = currentItem.vertices[currentItem.vertices.length - 1]; - if (currentVertex.type === searchedType) { - return { - distance: currentItem.weight, - nodes: currentItem.vertices.map((e) => e.name), - }; - } - visitedVertices[currentVertex.name] = true; - currentVertex.nodes.forEach((path) => { - if (visitedVertices[path.name]) { - return; - } - queue.add({ - weight: currentItem.weight + path.weight, - vertices: [...currentItem.vertices, this.vertices[path.name]], - }); - }); - resultVertices.push(currentVertex); - } - return null; - } -} -//# sourceMappingURL=nearest-item.js.map \ No newline at end of file diff --git a/dist/_esm/models/path/nearest-item.js.map b/dist/_esm/models/path/nearest-item.js.map deleted file mode 100644 index 36a642b2..00000000 --- a/dist/_esm/models/path/nearest-item.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nearest-item.js","sourceRoot":"","sources":["../../../../src/models/path/nearest-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,MAAM,OAAO,aAAa;IACtB,YACoB,IAAY,EACZ,IAAY,EACZ,KAGb;QALa,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;IAEP,CAAC;CACJ;AAOD,MAAM,OAAO,WAAW;IAAxB;QACY,aAAQ,GAAqC,EAAE,CAAC;IAiE5D,CAAC;IA/DU,SAAS,CAAC,MAAqB;QAClC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,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K,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;iBACjD,CAAC;aACL;YAED,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YAE3C,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACjC,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC5B,OAAO;iBACV;gBAED,KAAK,CAAC,GAAG,CAAC;oBACN,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;oBACxC,QAAQ,EAAE,CAAC,GAAG,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBAChE,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SACtC;QAED,OAAO,IAAW,CAAC;IACvB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/range.js b/dist/_esm/models/range.js deleted file mode 100644 index 4e2b69a9..00000000 --- a/dist/_esm/models/range.js +++ /dev/null @@ -1,60 +0,0 @@ -import { randomFloatBetween, randomIntBetween } from "../utils"; -import { Color } from "./color.model"; -export class Range { - constructor(min, max = min) { - this.min = min; - this.max = max; - } - static random(range) { - return randomFloatBetween(range.min, range.max); - } - static randomVector2i(range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - }; - } - static randomVector3i(range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - z: randomIntBetween(range.min.z, range.max.z), - }; - } - static randomVector4i(range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - z: randomIntBetween(range.min.z, range.max.z), - w: randomIntBetween(range.min.w, range.max.w), - }; - } - static randomVector2f(range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - }; - } - static randomVector3f(range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - z: randomFloatBetween(range.min.z, range.max.z), - }; - } - static randomVector4f(range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - z: randomFloatBetween(range.min.z, range.max.z), - w: randomFloatBetween(range.min.w, range.max.w), - }; - } - static randomColorF(range) { - return new Color(randomFloatBetween(range.min.red, range.max.red), randomFloatBetween(range.min.green, range.max.green), randomFloatBetween(range.min.blue, range.max.blue), randomFloatBetween(range.min.alpha, range.max.alpha)); - } - static randomColorI(range) { - return new Color(randomIntBetween(range.min.red, range.max.red), randomIntBetween(range.min.green, range.max.green), randomIntBetween(range.min.blue, range.max.blue), randomIntBetween(range.min.alpha, range.max.alpha)); - } -} -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/dist/_esm/models/range.js.map b/dist/_esm/models/range.js.map deleted file mode 100644 index 8be96f1b..00000000 --- a/dist/_esm/models/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/models/range.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,OAAO,KAAK;IACd,YAAmC,GAAM,EAAkB,MAAS,GAAG;QAApC,QAAG,GAAH,GAAG,CAAG;QAAkB,QAAG,GAAH,GAAG,CAAS;IACvE,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,KAAoB;QACrC,OAAO,kBAAkB,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IACM,MAAM,CAAC,cAAc,CAAC,KAA2B;QACpD,OAAO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GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EACpD,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAClD,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CACvD,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,KAAmB;QAC1C,OAAO,IAAI,KAAK,CACZ,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAC9C,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAClD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAChD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CACrD,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/selection/selection-holder.js b/dist/_esm/models/selection/selection-holder.js deleted file mode 100644 index 70ddaf9b..00000000 --- a/dist/_esm/models/selection/selection-holder.js +++ /dev/null @@ -1,40 +0,0 @@ -export class SelectionHolder { - constructor(comparator = (a, b) => a === b) { - this.comparator = comparator; - this.selectedValues = []; - } - isSelected(item) { - return this.selectedValues.some((actualItem) => this.comparator(actualItem, item)); - } - emit(data) { - this.selectedValues = data; - if (typeof this.onChange === "function") { - this.onChange(); - } - } - select(...items) { - this.emit([...this.selectedValues, ...items]); - } - unselectAll() { - this.emit([]); - } - selectOnly(...items) { - this.emit([...items]); - } - unselect(item) { - const newSelectedValues = [...this.selectedValues]; - const index = this.selectedValues.findIndex((actualItem) => this.comparator(actualItem, item)); - if (index < 0) { - return; - } - newSelectedValues.splice(index, 1); - this.emit(newSelectedValues); - } - get selected() { - return this.selectedValues; - } - get length() { - return this.selectedValues.length; - } -} -//# sourceMappingURL=selection-holder.js.map \ No newline at end of file diff --git a/dist/_esm/models/selection/selection-holder.js.map b/dist/_esm/models/selection/selection-holder.js.map deleted file mode 100644 index 60599215..00000000 --- a/dist/_esm/models/selection/selection-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection-holder.js","sourceRoot":"","sources":["../../../../src/models/selection/selection-holder.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAe;IAIxB,YAAoC,aAAsC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAHnF,mBAAc,GAAiB,EAAE,CAAC;IAI1C,CAAC;IAEM,UAAU,CAAC,IAAO;QACrB,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;IACvF,CAAC;IAEO,IAAI,CAAC,IAAkB;QAC3B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAE3B,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;SACnB;IACL,CAAC;IAEM,MAAM,CAAC,GAAG,KAAU;QACvB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,WAAW;QACd,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAEM,UAAU,CAAC,GAAG,KAAU;QAC3B,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IAC1B,CAAC;IAEM,QAAQ,CAAC,IAAO;QACnB,MAAM,iBAAiB,GAAG,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;QACnD,MAAM,KAAK,GAAe,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,EAAE,CACnE,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,CACpC,CAAC;QACF,IAAI,KAAK,GAAG,CAAC,EAAE;YACX,OAAO;SACV;QACD,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjC,CAAC;IAED,IAAW,QAAQ;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;IACtC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/selection/selection.js b/dist/_esm/models/selection/selection.js deleted file mode 100644 index 46114f09..00000000 --- a/dist/_esm/models/selection/selection.js +++ /dev/null @@ -1,112 +0,0 @@ -import { SelectionHolder } from "./selection-holder"; -export class Selection { - constructor(allValues = [], options = { - mode: "single", - unselectable: false, - }) { - this.allValues = allValues; - this.options = options; - this.selectionHolder = new SelectionHolder(); - this.selection = Object.defineProperties({}, { - isSelected: { value: (item) => this.selectionHolder.isSelected(item) }, - selected: { - get: () => this.selectionHolder.selected, - }, - length: { - get: () => this.selectionHolder.length, - }, - }); - } - click(item, options = {}) { - switch (this.options.mode) { - case "single": - return this.processSingleClick(item); - case "multi": - return this.processMultiClick(item); - case "multi-control": - return this.processMultiControlClick(item, !!options.ctrlDown); - case "multi-continuous": - return this.processMultiContinuousClick(item, !!options.shiftDown); - } - } - setValues(values) { - this.allValues = values; - } - setOptions(options) { - this.options.mode = options.mode || this.options.mode; - this.options.unselectable = typeof options.unselectable === "boolean" ? options.unselectable : this.options.unselectable; - } - processSingleClick(item) { - if (this.selectionHolder.isSelected(item)) { - if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.selectOnly(item); - } - } - processMultiClick(item) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.unselect(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.select(item); - } - } - processMultiControlClick(item, isCtrlDown) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - if (isCtrlDown) { - this.selectionHolder.unselect(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isCtrlDown) { - this.selectionHolder.select(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - } - processMultiContinuousClick(item, isShiftDown) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.selectOnly(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isShiftDown) { - if (this.selectionHolder.length === 0) { - this.selectionHolder.select(item); - } - else { - const selectedIndices = this.selectionHolder.selected.map((actualItem) => this.allValues.indexOf(actualItem)); - const minIndex = Math.min(this.allValues.indexOf(item), ...selectedIndices); - const maxIndex = Math.max(this.allValues.indexOf(item), ...selectedIndices); - this.selectionHolder.selectOnly(...this.allValues.slice(minIndex, maxIndex + 1)); - } - } - else { - this.selectionHolder.selectOnly(item); - } - } - } -} -//# sourceMappingURL=selection.js.map \ No newline at end of file diff --git a/dist/_esm/models/selection/selection.js.map b/dist/_esm/models/selection/selection.js.map deleted file mode 100644 index 064df7ba..00000000 --- a/dist/_esm/models/selection/selection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../../src/models/selection/selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AASrD,MAAM,OAAO,SAAS;IAYlB,YACY,YAA0B,EAA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E,GAAG,eAAe,CAAC,CAAC;oBAC5E,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;iBACpF;aACJ;iBAAM;gBACH,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aACzC;SACJ;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/bucket-sort.js b/dist/_esm/models/sorting/bucket-sort.js deleted file mode 100644 index 4398f3ed..00000000 --- a/dist/_esm/models/sorting/bucket-sort.js +++ /dev/null @@ -1,18 +0,0 @@ -export class BucketSort { - sort(a, maxValue) { - const bucket = new Array(maxValue + 1); - for (let i = 0; i < bucket.length; i++) { - bucket[i] = 0; - } - for (const item of a) { - bucket[item]++; - } - let outPos = 0; - for (let i = 0; i < bucket.length; i++) { - for (let j = 0; j < bucket[i]; j++) { - a[outPos++] = i; - } - } - } -} -//# sourceMappingURL=bucket-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/bucket-sort.js.map b/dist/_esm/models/sorting/bucket-sort.js.map deleted file mode 100644 index 88c6c0ee..00000000 --- a/dist/_esm/models/sorting/bucket-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bucket-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/bucket-sort.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACZ,IAAI,CAAC,CAAW,EAAE,QAAgB;QACrC,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;QAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACjB;QAED,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE;YAClB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;SAClB;QAED,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;aACnB;SACJ;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/counting-sort.js b/dist/_esm/models/sorting/counting-sort.js deleted file mode 100644 index d153ca5e..00000000 --- a/dist/_esm/models/sorting/counting-sort.js +++ /dev/null @@ -1,14 +0,0 @@ -export class CountingSort { - sort(a, low, high) { - const counts = new Array(high - low + 1); - for (const x of a) { - counts[x - low]++; - } - let current = 0; - for (let i = 0; i < counts.length; i++) { - a.fill(current, current + counts[i], i + low); - current += counts[i]; - } - } -} -//# sourceMappingURL=counting-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/counting-sort.js.map b/dist/_esm/models/sorting/counting-sort.js.map deleted file mode 100644 index 61ba598d..00000000 --- a/dist/_esm/models/sorting/counting-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counting-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/counting-sort.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,YAAY;IACd,IAAI,CAAC,CAAW,EAAE,GAAW,EAAE,IAAY;QAE9C,MAAM,MAAM,GAAG,IAAI,KAAK,CAAS,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;QACjD,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;YAEf,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;SACrB;QACD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAEpC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;YAE9C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;SACxB;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/heap-sort.js b/dist/_esm/models/sorting/heap-sort.js deleted file mode 100644 index cce8c23d..00000000 --- a/dist/_esm/models/sorting/heap-sort.js +++ /dev/null @@ -1,47 +0,0 @@ -export class HeapSort { - constructor(comparator) { - this.comparator = comparator; - this.n = 0; - this.left = 0; - this.right = 0; - this.largest = 0; - this.tmp = null; - } - sort(array) { - this.buildHeap(array); - for (let i = this.n; i > 0; i--) { - this.exchange(array, 0, i); - this.n--; - this.maxHeap(array, 0); - } - } - buildHeap(a) { - this.n = a.length - 1; - for (let i = this.n / 2; i >= 0; i--) { - this.maxHeap(a, i); - } - } - maxHeap(a, i) { - this.left = 2 * i; - this.right = 2 * i + 1; - if (this.left <= this.n && this.comparator(a[this.left], a[i]) > 0) { - this.largest = this.left; - } - else { - this.largest = i; - } - if (this.right <= this.n && this.comparator(a[this.right], a[this.largest]) > 0) { - this.largest = this.right; - } - if (this.largest !== i) { - this.exchange(a, i, this.largest); - this.maxHeap(a, this.largest); - } - } - exchange(a, i, j) { - this.tmp = a[i]; - a[i] = a[j]; - a[j] = this.tmp; - } -} -//# sourceMappingURL=heap-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/heap-sort.js.map b/dist/_esm/models/sorting/heap-sort.js.map deleted file mode 100644 index 719b4685..00000000 --- a/dist/_esm/models/sorting/heap-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"heap-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/heap-sort.ts"],"names":[],"mappings":"AAGA,MA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,IAAI,CAAC,IAAI,CAAC;SAC5B;aAAM;YACH,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;SACpB;QAED,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE;YAC7E,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;SAC7B;QAED,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE;YACpB,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;SACjC;IACL,CAAC;IAEO,QAAQ,CAAC,CAAM,EAAE,CAAS,EAAE,CAAS;QACzC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC,CAAC,GAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC,CAAC,GAAO,IAAI,CAAC,GAAG,CAAC;IACxB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/index.js b/dist/_esm/models/sorting/index.js deleted file mode 100644 index b940ed13..00000000 --- a/dist/_esm/models/sorting/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./bucket-sort"; -export * from "./counting-sort"; -export * from "./heap-sort"; -export * from "./insertion-sort"; -export * from "./merge-sort"; -export * from "./quick-sort"; -export * from "./radix-sort"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/index.js.map b/dist/_esm/models/sorting/index.js.map deleted file mode 100644 index e00b8754..00000000 --- a/dist/_esm/models/sorting/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/sorting/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/insertion-sort.js b/dist/_esm/models/sorting/insertion-sort.js deleted file mode 100644 index 259579f2..00000000 --- a/dist/_esm/models/sorting/insertion-sort.js +++ /dev/null @@ -1,23 +0,0 @@ -export class InsertionSort { - constructor(comparator) { - this.comparator = comparator; - } - sort(list) { - for (let i = 1; i < list.length; i++) { - const item = list[i]; - if (this.comparator(item, list[i - 1]) < 0) { - this.sortUpLowToHigh(list, i); - } - } - } - sortUpLowToHigh(list, i) { - const item = list[i]; - let attemptPos = i - 1; - while (attemptPos !== 0 && this.comparator(list[attemptPos - 1], item) > 0) { - attemptPos--; - } - list.splice(i, 1); - list.splice(attemptPos, 0, item); - } -} -//# sourceMappingURL=insertion-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/insertion-sort.js.map b/dist/_esm/models/sorting/insertion-sort.js.map deleted file mode 100644 index d5cfbacb..00000000 --- a/dist/_esm/models/sorting/insertion-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"insertion-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/insertion-sort.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IACtB,YAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;IACtE,CAAC;IAEM,IAAI,CAAC,IAAS;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACxC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACjC;SACJ;IACL,CAAC;IAEO,eAAe,CAAC,IAAS,EAAE,CAAS;QACxC,MAAM,IAAI,GAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,OAAO,UAAU,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACxE,UAAU,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/merge-sort.js b/dist/_esm/models/sorting/merge-sort.js deleted file mode 100644 index 129861f8..00000000 --- a/dist/_esm/models/sorting/merge-sort.js +++ /dev/null @@ -1,42 +0,0 @@ -export class MergeSort { - constructor(comparator) { - this.comparator = comparator; - this.array = []; - this.tempMergeArray = []; - } - sort(array) { - this.array = array; - this.tempMergeArray = new Array(array.length); - this.doMergeSort(0, array.length - 1); - } - doMergeSort(lowerIndex, higherIndex) { - if (lowerIndex >= higherIndex) { - return; - } - const middle = Math.floor(lowerIndex + (higherIndex - lowerIndex) / 2); - this.doMergeSort(lowerIndex, middle); - this.doMergeSort(middle + 1, higherIndex); - this.mergeParts(lowerIndex, middle, higherIndex); - } - mergeParts(lowerIndex, middle, higherIndex) { - for (let index = lowerIndex; index <= higherIndex; index++) { - this.tempMergeArray[index] = this.array[index]; - } - let i = lowerIndex; - let j = middle + 1; - let k = lowerIndex; - while (i <= middle && j <= higherIndex) { - if (this.comparator(this.tempMergeArray[i], this.tempMergeArray[j]) <= 0) { - this.array[k] = this.tempMergeArray[i++]; - } - else { - this.array[k] = this.tempMergeArray[j++]; - } - k++; - } - while (i <= middle) { - this.array[k++] = this.tempMergeArray[i++]; - } - } -} -//# sourceMappingURL=merge-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/merge-sort.js.map b/dist/_esm/models/sorting/merge-sort.js.map deleted file mode 100644 index e890f053..00000000 --- a/dist/_esm/models/sorting/merge-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/merge-sort.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;IAIlB,YAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAiB,EAAE,CAAC;QACzB,mBAAc,GAAQ,EAAE,CAAC;IAGjC,CAAC;IAEM,IAAI,CAAC,KAAU;QAClB,IAAI,CAAC,KAAK,GAAY,KAAK,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,CAAI,KAAK,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEO,WAAW,CAAC,UAAkB,EAAE,WAAmB;QACvD,IAAI,UAAU,IAAI,WAAW,EAAE;YAC3B,OAAO;SACV;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;QACvE,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;QAC1C,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IACrD,CAAC;IAEO,UAAU,CAAC,UAAkB,EAAE,MAAc,EAAE,WAAmB;QACtE,KAAK,IAAI,KAAK,GAAG,UAAU,EAAE,KAAK,IAAI,WAAW,EAAE,KAAK,EAAE,EAAE;YACxD,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAClD;QAED,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,OAAO,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,WAAW,EAAE;YACpC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;gBACtE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;iBAAM;gBACH,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;YACD,CAAC,EAAE,CAAC;SACP;QACD,OAAO,CAAC,IAAI,MAAM,EAAE;YAChB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;SAC9C;IAEL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/quick-sort.js b/dist/_esm/models/sorting/quick-sort.js deleted file mode 100644 index a2107d39..00000000 --- a/dist/_esm/models/sorting/quick-sort.js +++ /dev/null @@ -1,42 +0,0 @@ -export class QuickSort { - constructor(comparator) { - this.comparator = comparator; - this.array = []; - this.tmpValue = null; - } - sort(array) { - if (!(array === null || array === void 0 ? void 0 : array.length)) { - return; - } - this.array = array; - this.quickSort(0, array.length - 1); - } - quickSort(lowerIndex, higherIndex) { - let i = lowerIndex; - let j = higherIndex; - const pivot = this.array[~~(lowerIndex + (higherIndex - lowerIndex) / 2)]; - while (i <= j) { - while (this.comparator(this.array[i], pivot) < 0) { - i++; - } - while (this.comparator(this.array[j], pivot) > 0) { - j--; - } - if (i <= j) { - this.exchangeNumbers(i++, j--); - } - } - if (lowerIndex < j) { - this.quickSort(lowerIndex, j); - } - if (i < higherIndex) { - this.quickSort(i, higherIndex); - } - } - exchangeNumbers(i, j) { - this.tmpValue = this.array[i]; - this.array[i] = this.array[j]; - this.array[j] = this.tmpValue; - } -} -//# sourceMappingURL=quick-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/quick-sort.js.map b/dist/_esm/models/sorting/quick-sort.js.map deleted file mode 100644 index ee849053..00000000 --- a/dist/_esm/models/sorting/quick-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quick-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/quick-sort.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;IAIlB,YAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAgB,EAAE,CAAC;QACxB,aAAQ,GAAa,IAAI,CAAC;IAGlC,CAAC;IAEM,IAAI,CAAC,KAAU;QAClB,IAAI,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA,EAAE;YAChB,OAAO;SACV;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACxC,CAAC;IAEO,SAAS,CAAC,UAAkB,EAAE,WAAmB;QACrD,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,IAAI,CAAC,GAAG,WAAW,CAAC;QAEpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1E,OAAO,CAAC,IAAI,CAAC,EAAE;YACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YACD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YAED,IAAI,CAAC,IAAI,CAAC,EAAE;gBACR,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;aAClC;SACJ;QAED,IAAI,UAAU,GAAG,CAAC,EAAE;YAChB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;SACjC;QACD,IAAI,CAAC,GAAG,WAAW,EAAE;YACjB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;SAClC;IACL,CAAC;IAEO,eAAe,CAAC,CAAS,EAAE,CAAS;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/sorting/radix-sort.js b/dist/_esm/models/sorting/radix-sort.js deleted file mode 100644 index 6df45952..00000000 --- a/dist/_esm/models/sorting/radix-sort.js +++ /dev/null @@ -1,59 +0,0 @@ -export class RadixSort { - constructor(mapper) { - this.mapper = mapper; - } - sort(a) { - let m = a[0]; - let exp = 1; - const b = new Array(a.length); - for (let i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - const mValue = this.mapper(m); - while (mValue / exp > 0) { - const bucket = new Array(10); - for (let i = 0; i < a.length; i++) { - bucket[(this.mapper(a[i]) / exp) % 10]++; - } - for (let i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (let i = a.length - 1; i >= 0; i--) { - b[--bucket[(this.mapper(a[i]) / exp) % 10]] = a[i]; - } - for (let i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - } - sort2(a) { - let m = a[0]; - let exp = 1; - const b = new Array(a.length); - for (let i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - while (m / exp > 0) { - const bucket = new Array(10); - for (let i = 0; i < a.length; i++) { - bucket[(a[i] / exp) % 10]++; - } - for (let i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (let i = a.length - 1; i >= 0; i--) { - b[--bucket[(a[i] / exp) % 10]] = a[i]; - } - for (let i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - } -} -//# sourceMappingURL=radix-sort.js.map \ No newline at end of file diff --git a/dist/_esm/models/sorting/radix-sort.js.map b/dist/_esm/models/sorting/radix-sort.js.map deleted file mode 100644 index 7eb3ff60..00000000 --- a/dist/_esm/models/sorting/radix-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"radix-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/radix-sort.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,SAAS;IAClB,YAAoC,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAC/D,CAAC;IACM,IAAI,CAAC,CAAM;QACd,IAAI,CAAC,GAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,MAAM,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QACjC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,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC/B,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACf;YACD,GAAG,IAAI,EAAE,CAAC;SACb;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/models/transform-2d.js b/dist/_esm/models/transform-2d.js deleted file mode 100644 index da1dbf63..00000000 --- a/dist/_esm/models/transform-2d.js +++ /dev/null @@ -1,11 +0,0 @@ -export function getDefaultTransform2D() { - return { - offset: { - x: 0, - y: 0, - }, - scale: 1, - rotation: 0, - }; -} -//# sourceMappingURL=transform-2d.js.map \ No newline at end of file diff --git a/dist/_esm/models/transform-2d.js.map b/dist/_esm/models/transform-2d.js.map deleted file mode 100644 index d79c3cd1..00000000 --- a/dist/_esm/models/transform-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-2d.js","sourceRoot":"","sources":["../../../src/models/transform-2d.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,qBAAqB;IACjC,OAAO;QACH,MAAM,EAAI;YACN,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACP;QACD,KAAK,EAAK,CAAC;QACX,QAAQ,EAAE,CAAC;KACd,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/node.js b/dist/_esm/node.js deleted file mode 100644 index ce551e78..00000000 --- a/dist/_esm/node.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./utils/array-utils"; -export * from "./utils/FileUtils"; -export * from "./utils/math-utils"; -export * from "./utils/misc-utils"; -export * from "./utils/object-utils"; -export * from "./utils/string-utils"; -export * from "./utils/time-utils"; -export * from "./misc/slovak-stemmer"; -export * from "./dom/canvas-manager"; -export * from "./dom/dom-get"; -//# sourceMappingURL=node.js.map \ No newline at end of file diff --git a/dist/_esm/node.js.map b/dist/_esm/node.js.map deleted file mode 100644 index 815534b2..00000000 --- a/dist/_esm/node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,uBAAuB,CAAC;AAMtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/bounders-2d.js b/dist/_esm/physics/bounders-2d.js deleted file mode 100644 index 7a135b8b..00000000 --- a/dist/_esm/physics/bounders-2d.js +++ /dev/null @@ -1,50 +0,0 @@ -export function fixXYWH(minMax, xywh) { - const result = { x: xywh.x, y: xywh.y }; - if (xywh.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (xywh.x + xywh.w > minMax.max.x) { - result.x = minMax.max.x - xywh.w; - } - if (xywh.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (xywh.y + xywh.h > minMax.max.y) { - result.y = minMax.max.y - xywh.h; - } - return result; -} -export function fixPosSize(minMax, target) { - const result = Object.assign({}, target.position); - if (target.position.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (target.position.x + target.size.x > minMax.max.x) { - result.x = minMax.max.x - target.size.x; - } - if (target.position.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (target.position.y + target.size.y > minMax.max.y) { - result.y = minMax.max.y - target.size.y; - } - return result; -} -export function fixSphere(minMax, sphere) { - const result = Object.assign({}, sphere.center); - const halfRadius = sphere.radius / 2; - if (sphere.center.x - halfRadius < minMax.min.x) { - result.x = minMax.min.x + halfRadius; - } - else if (sphere.center.x + halfRadius > minMax.max.x) { - result.x = minMax.max.x - halfRadius; - } - if (sphere.center.y - halfRadius < minMax.min.y) { - result.y = minMax.min.y + halfRadius; - } - else if (sphere.center.y + halfRadius > minMax.max.y) { - result.y = minMax.max.y - halfRadius; - } - return result; -} -//# sourceMappingURL=bounders-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/bounders-2d.js.map b/dist/_esm/physics/bounders-2d.js.map deleted file mode 100644 index 5739c10e..00000000 --- a/dist/_esm/physics/bounders-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bounders-2d.js","sourceRoot":"","sources":["../../../src/physics/bounders-2d.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,OAAO,CAAC,MAAgB,EAAE,IAAU;IAChD,MAAM,MAAM,GAAG,EAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAC,CAAC;IAEtC,IAAI,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;KACpC;IAED,IAAI,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;KACpC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAgB,EAAE,MAAiB;IAC1D,MAAM,MAAM,qB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AAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACpD,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;IAED,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QAC7C,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;SAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACpD,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/bounding-boxes/AABB3.js b/dist/_esm/physics/bounding-boxes/AABB3.js deleted file mode 100644 index 185dde28..00000000 --- a/dist/_esm/physics/bounding-boxes/AABB3.js +++ /dev/null @@ -1,169 +0,0 @@ -import { Vector2 } from "../../math"; -export class AABB3 { - constructor(min, max) { - this.min = min; - this.max = max; - } - rayCast(result, ray, maxFraction = Infinity) { - let tmin = -Infinity; - let tmax = Infinity; - const p = ray.from; - const d = ray.direction; - const absD = Vector2.getAbs(d); - const normal = Vector2.ZERO; - for (let f = "x"; f !== null; f = (f === "x" ? "y" : null)) { - if (absD.x < Number.EPSILON) { - if (p[f] < this.min[f] || this.max[f] < p[f]) { - return false; - } - } - else { - const invD = 1 / d[f]; - let t1 = (this.min[f] - p[f]) * invD; - let t2 = (this.max[f] - p[f]) * invD; - let s = -1; - if (t1 > t2) { - const temp = t1; - t1 = t2; - t2 = temp; - s = 1; - } - if (t1 > tmin) { - normal.setData(0, 0); - normal[f] = s; - tmin = t1; - } - tmax = Math.min(tmax, t2); - if (tmin > tmax) { - return false; - } - } - } - if (tmin < 0 || maxFraction < tmin) { - return false; - } - result.fraction = tmin; - result.normal.set(normal); - return true; - } - expandByScalar(distance) { - this.min.x -= distance; - this.min.y -= distance; - this.min.z -= distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - } - expandByVector(vec) { - this.min.x -= vec.x; - this.min.y -= vec.y; - this.min.z -= vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - } - expandByPoint(point) { - this.min.x = Math.min(this.min.x, point.x); - this.min.y = Math.min(this.min.y, point.y); - this.min.z = Math.min(this.min.z, point.z); - this.max.x = Math.max(this.max.x, point.x); - this.max.y = Math.max(this.max.y, point.y); - this.max.z = Math.max(this.max.z, point.z); - } - expandBtAABB(other) { - this.min.x = Math.min(this.min.x, other.min.x); - this.min.y = Math.min(this.min.y, other.min.y); - this.min.z = Math.min(this.min.z, other.min.z); - this.max.x = Math.max(this.max.x, other.max.x); - this.max.y = Math.max(this.max.y, other.max.y); - this.max.z = Math.max(this.max.z, other.max.z); - } - moveByScalar(distance) { - this.min.x += distance; - this.min.y += distance; - this.min.z += distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - } - getCenter() { - return { - x: (this.max.x + this.min.x) / 2, - y: (this.max.y + this.min.y) / 2, - z: (this.max.z + this.min.z) / 2, - }; - } - getSize() { - return { - x: this.max.x - this.min.x, - y: this.max.y - this.min.y, - z: this.max.z - this.min.z, - }; - } - getVolume() { - const size = this.getSize(); - return size.x * size.y * size.z; - } - moveByVector(vec) { - this.min.x += vec.x; - this.min.y += vec.y; - this.min.z += vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - } - getMinMax() { - return { - min: this.min, - max: this.max, - }; - } - static fromPosAndSize(pos, size) { - return new AABB3({ - x: pos.x, - y: pos.y, - z: pos.z, - }, { - x: pos.x + size.x, - y: pos.y + size.y, - z: pos.z + size.z, - }); - } - getPosition() { - return { - x: this.min.x, - y: this.min.y, - z: this.min.z, - }; - } - static fromCenterAndSize(center, size) { - const halfSize = { - x: size.x / 2, - y: size.y / 2, - z: size.z / 2, - }; - return new AABB3({ - x: center.x + halfSize.x, - y: center.y + halfSize.y, - z: center.z + halfSize.z, - }, { - x: center.x - halfSize.x, - y: center.y - halfSize.y, - z: center.z - halfSize.z, - }); - } - moveCenterTo(center) { - const offset = { - x: center.x - (this.max.x + this.min.x) / 2, - y: center.y - (this.max.y + this.min.y) / 2, - z: center.z - (this.max.z + this.min.z) / 2, - }; - this.min.x += offset.x; - this.min.y += offset.y; - this.min.z += offset.z; - this.max.x += offset.x; - this.max.y += offset.y; - this.max.z += offset.z; - } -} -//# sourceMappingURL=AABB3.js.map \ No newline at end of file diff --git a/dist/_esm/physics/bounding-boxes/AABB3.js.map b/dist/_esm/physics/bounding-boxes/AABB3.js.map deleted file mode 100644 index cc7a6477..00000000 --- a/dist/_esm/physics/bounding-boxes/AABB3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AABB3.js","sourceRoot":"","sources":["../../../../src/physics/bounding-boxes/AABB3.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,OAAO,EAAE,MAAM,YAAY,CAAC;AAGpD,MAAM,OAAO,KAAK;IACd,YAAsC,GAAkB,EAAqB,GAAkB;QAAzD,QAAG,GAAH,GAAG,CAAe;QAAqB,QAAG,GAAH,GAAG,CAAe;IAC/F,CAAC;IAEM,OAAO,CAAC,MAAqB,EAAE,GAAY,EAAE,WAAW,GAAG,QAAQ;QAGtE,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC;QACrB,IAAI,IAAI,GAAG,QAAQ,CAAC;QAEpB,MAAM,CAAC,GAAM,GAAG,CAAC,IAAI,CAAC;QACtB,MAAM,CAAC,GAAM,GAAG,CAAC,SAAS,CAAC;QAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAE/B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;QAG5B,KAAK,IAAI,CAAC,GAAc,G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AE,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;SAC9C,CAAC;QAEF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;IAC3B,CAAC;CAEJ"} \ No newline at end of file diff --git a/dist/_esm/physics/closest-2d.js b/dist/_esm/physics/closest-2d.js deleted file mode 100644 index 890e7b75..00000000 --- a/dist/_esm/physics/closest-2d.js +++ /dev/null @@ -1,22 +0,0 @@ -export function pointLine2dClosest(sx1, sy1, sx2, sy2, px, py) { - const xDelta = sx2 - sx1; - const yDelta = sy2 - sy1; - const u = ((px - sx1) * xDelta + (py - sy1) * yDelta) / (xDelta * xDelta + yDelta * yDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - }; -} -//# sourceMappingURL=closest-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/closest-2d.js.map b/dist/_esm/physics/closest-2d.js.map deleted file mode 100644 index 2185b4ca..00000000 --- a/dist/_esm/physics/closest-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-2d.js","sourceRoot":"","sources":["../../../src/physics/closest-2d.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAC9B,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU;IAEV,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE5F,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/closest-3d.js b/dist/_esm/physics/closest-3d.js deleted file mode 100644 index b7aeeb77..00000000 --- a/dist/_esm/physics/closest-3d.js +++ /dev/null @@ -1,27 +0,0 @@ -export function getClosestPointOnLine(sx1, sy1, sz1, sx2, sy2, sz2, px, py, pz) { - const xDelta = sx2 - sx1; - const yDelta = sy2 - sy1; - const zDelta = sz2 - sz1; - let u = ((px - sx1) * xDelta + (py - sy1) * yDelta + (pz - sz1) * zDelta); - u /= (xDelta * xDelta + yDelta * yDelta + zDelta * zDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - z: sz1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - z: sz2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - z: sz1 + u * zDelta, - }; -} -//# sourceMappingURL=closest-3d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/closest-3d.js.map b/dist/_esm/physics/closest-3d.js.map deleted file mode 100644 index 9457d47d..00000000 --- a/dist/_esm/physics/closest-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-3d.js","sourceRoot":"","sources":["../../../src/physics/closest-3d.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CACjC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU,EACV,EAAU;IAEV,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC1E,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3D,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IACD,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/collisions-2d.js b/dist/_esm/physics/collisions-2d.js deleted file mode 100644 index 2bfb2f4c..00000000 --- a/dist/_esm/physics/collisions-2d.js +++ /dev/null @@ -1,127 +0,0 @@ -import { distance2dPointPoint } from "./distances-2d"; -export function circleRect2dCollision(cPosX, cPosY, cRadius, rPosX, rPosY, rSizeX, rSizeY) { - const circleDistanceX = Math.abs(cPosX - rPosX); - const circleDistanceY = Math.abs(cPosY - rPosY); - if (circleDistanceX > rSizeX / 2 + cRadius) { - return false; - } - if (circleDistanceY > rSizeY / 2 + cRadius) { - return false; - } - if (circleDistanceX <= rSizeX / 2) { - return true; - } - if (circleDistanceY <= rSizeY / 2) { - return true; - } - const cornerDistanceSQ = Math.pow(circleDistanceX - rPosX / 2, 2) + - Math.pow(circleDistanceY - rPosY / 2, 2); - return cornerDistanceSQ <= Math.pow(cRadius, 2); -} -export function lineRectangle2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) { - return pointRect2dCollision(aStartX, aStartY, bPosX, bPosY, bSizeX, bSizeY) || - pointRect2dCollision(aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bPosX + bSizeX, bPosY + bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX + bSizeX, bPosY, bPosX, bPosY + bSizeY); -} -export function lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bStartX, bStartY, bEndX, bEndY) { - const denominator = (aEndX - aStartX) * (bEndY - bStartY) - (aEndY - aStartY) * (bEndX - bStartX); - const numerator1 = (aStartY - bStartY) * (bEndX - bStartX) - (aStartX - bStartX) * (bEndY - bStartY); - const numerator2 = (aStartY - bStartY) * (aEndX - aStartX) - (aStartX - bStartX) * (aEndY - aStartY); - if (denominator === 0) { - return numerator1 === 0 && numerator2 === 0; - } - const r = numerator1 / denominator; - const s = numerator2 / denominator; - return r >= 0 && r <= 1 && (s >= 0 && s <= 1); -} -export function lineLine2dCollision2(a, b, c, d, p, q, r, s) { - const det = (c - a) * (s - q) - (r - p) * (d - b); - if (det === 0) { - return false; - } - const lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det; - const gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det; - return (0 < lambda && lambda < 1) && (0 < gamma && gamma < 1); -} -export function rectRect2dCollision(ax, ay, aw, ah, bx, by, bw, bh) { - return bx + bw >= ax && by + bh >= ay && bx <= ax + aw && by <= ay + ah; -} -export function circleCircle2dCollision(aX, aY, aRadius, bX, bY, bRadius) { - return distance2dPointPoint(aX, aY, bX, bY) <= aRadius + bRadius; -} -export function pointRect2dCollision(pointX, pointY, rectX, rectY, rectW, rectH) { - return pointX >= rectX && - pointY >= rectY && - pointX <= rectX + rectW && - pointY <= rectY + rectH; -} -export function pointRectMinMax2dCollision(pointX, pointY, minX, minY, maxX, maxY) { - return pointX >= minX && - pointY >= minY && - pointX <= maxX && - pointY <= maxY; -} -export function pointCircle2dCollision(pointX, pointY, circleX, circleY, circleRadius) { - return distance2dPointPoint(pointX, pointY, circleX, circleY) <= circleRadius; -} -export function pointPolygon2dCollision2(x, y, vs) { - let inside = false; - let i = 0; - let j = vs.length - 1; - for (; i < vs.length; j = i++) { - const xi = vs[i][0]; - const yi = vs[i][1]; - const xj = vs[j][0]; - const yj = vs[j][1]; - const intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi); - if (intersect) { - inside = !inside; - } - } - return inside; -} -export function pointMultiPolygon2dCollision(pointX, pointY, polys, ignoreBoundary = false) { - const multipolygon = [polys]; - const pt = [pointX, pointY]; - let insidePoly = false; - for (let i = 0; i < multipolygon.length && !insidePoly; i++) { - if (pointPolygon2dCollision(pt, multipolygon[i][0], ignoreBoundary)) { - let inHole = false; - let k = 1; - while (k < multipolygon[i].length && !inHole) { - if (pointPolygon2dCollision(pt, multipolygon[i][k], !ignoreBoundary)) { - inHole = true; - } - k++; - } - if (!inHole) { - insidePoly = true; - } - } - } - return insidePoly; -} -export function pointPolygon2dCollision(pt, ring, ignoreBoundary) { - let isInside = false; - if (ring[0][0] === ring[ring.length - 1][0] && - ring[0][1] === ring[ring.length - 1][1]) { - ring = ring.slice(0, ring.length - 1); - } - for (let i = 0, j = ring.length - 1; i < ring.length; j = i++) { - const xi = ring[i][0]; - const yi = ring[i][1]; - const xj = ring[j][0]; - const yj = ring[j][1]; - const onBoundary = pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0 && (xi - pt[0]) * (xj - pt[0]) <= 0 && (yi - pt[1]) * (yj - pt[1]) <= 0; - if (onBoundary) { - return !ignoreBoundary; - } - const intersect = yi > pt[1] !== yj > pt[1] && pt[0] < ((xj - xi) * (pt[1] - yi)) / (yj - yi) + xi; - if (intersect) { - isInside = !isInside; - } - } - return isInside; -} -//# sourceMappingURL=collisions-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/collisions-2d.js.map b/dist/_esm/physics/collisions-2d.js.map deleted file mode 100644 index 0a90d665..00000000 --- a/dist/_esm/physics/collisions-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-2d.js","sourceRoot":"","sources":["../../../src/physics/collisions-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,UAAU,qBAAqB,CACjC,KAAa,EACb,KAAa,EACb,OAAe,EACf,KAAa,EACb,KAAa,EACb,MAAc,EACd,MAAc;IAEd,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;IAChD,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;IAEhD,IAAI,eAAe,GAAG,MAAM,GAAG,CAAC,GAAG,OAAO,EAAE;QACxC,OAAO,KAAK,CAAC;KAChB;IACD,IAAI,eAAe,GAAG,M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AAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QACnG,IAAI,SAAS,EAAE;YACX,QAAQ,GAAG,CAAC,QAAQ,CAAC;SACxB;KACJ;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/collisions-3d.js b/dist/_esm/physics/collisions-3d.js deleted file mode 100644 index 8b246418..00000000 --- a/dist/_esm/physics/collisions-3d.js +++ /dev/null @@ -1,201 +0,0 @@ -import { Vector3 } from "../math"; -import { getClosestPointOnLine } from "./closest-3d"; -import { circleRect2dCollision } from "./collisions-2d"; -import { distance2dPointPoint } from "./distances-2d"; -import { pointLine3dDistance, pointPoint3dDistance } from "./distances-3d"; -import { intersection3dVectorSquare } from "./intersects-3d"; -export function collision3dSphereSphere(ax, ay, az, aRadius, bx, by, bz, bRadius) { - const dist = pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= aRadius + bRadius; -} -export function collision3dPointSphere(ax, ay, az, bx, by, bz, bRadius) { - const dist = pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= bRadius; -} -export function collision3dLineSphere(ax, ay, az, bx, by, bz, sx, sy, sz, sr) { - return pointLine3dDistance(ax, ay, az, bx, by, bz, sx, sy, sz) < sr; -} -export var IntersectionType; -(function (IntersectionType) { - IntersectionType["OUTSIDE"] = "OUTSIDE"; - IntersectionType["INSIDE"] = "INSIDE"; - IntersectionType["ONE_INTERSECTION"] = "ONE_INTERSECTION"; - IntersectionType["TWO_INTERSECTION"] = "TWO_INTERSECTION"; -})(IntersectionType || (IntersectionType = {})); -export function collision3dLineBox2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, minX, minY, minZ, maxX, maxY, maxZ, result) { - const dirX = p1X - p0X; - const dirY = p1Y - p0Y; - const dirZ = p1Z - p0Z; - const invDirX = 1 / dirX; - const invDirY = 1 / dirY; - const invDirZ = 1 / dirZ; - let tNear; - let tFar; - let tymin; - let tymax; - let tzmin; - let tzmax; - if (invDirX >= 0) { - tNear = (minX - p0X) * invDirX; - tFar = (maxX - p0X) * invDirX; - } - else { - tNear = (maxX - p0X) * invDirX; - tFar = (minX - p0X) * invDirX; - } - if (invDirY >= 0) { - tymin = (minY - p0Y) * invDirY; - tymax = (maxY - p0Y) * invDirY; - } - else { - tymin = (maxY - p0Y) * invDirY; - tymax = (minY - p0Y) * invDirY; - } - if (tNear > tymax || tymin > tFar) { - return IntersectionType.OUTSIDE; - } - if (invDirZ >= 0) { - tzmin = (minZ - p0Z) * invDirZ; - tzmax = (maxZ - p0Z) * invDirZ; - } - else { - tzmin = (maxZ - p0Z) * invDirZ; - tzmax = (minZ - p0Z) * invDirZ; - } - if (tNear > tzmax || tzmin > tFar) { - return IntersectionType.OUTSIDE; - } - tNear = tymin > tNear || isNaN(tNear) ? tymin : tNear; - tFar = tymax < tFar || isNaN(tFar) ? tymax : tFar; - tNear = tzmin > tNear ? tzmin : tNear; - tFar = tzmax < tFar ? tzmax : tFar; - let type = IntersectionType.OUTSIDE; - if (tNear < tFar && tNear <= 1 && tFar >= 0) { - if (tNear > 0 && tFar > 1) { - tFar = tNear; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar < 1) { - tNear = tFar; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar > 1) { - type = IntersectionType.INSIDE; - } - else { - type = IntersectionType.TWO_INTERSECTION; - } - result.x = tNear; - result.y = tFar; - } - return type; -} -export function collision3dBoxBoxMinMax(ax, ay, az, aWidth, aHeight, aDepth, minX, minY, minZ, maxX, maxY, maxZ) { - return ax + aWidth > minX && ax < maxX - && ay + aHeight > minY && ay < maxY - && az + aDepth > minZ && az < maxZ; -} -export function collision3dMinMaxMinMax(minAX, minAY, minAZ, maxAX, maxAY, maxAZ, minBX, minBY, minBZ, maxBX, maxBY, maxBZ) { - return maxAX > minBX && minAX < maxBX - && maxAY > minBY && minAY < maxBY - && maxAZ > minBZ && minAZ < maxBZ; -} -export function collision3dPointBox(bx, by, bz, ax, ay, az, aWidth, aHeight, aDepth) { - return ax < bx && ax + aWidth > bx - && ay < by && ay + aHeight > by - && az < bz && az + aDepth > bz; -} -export function collision3dPointBoxMinMax(bPosX, bPosY, bPosZ, minX, minY, minZ, maxX, maxY, maxZ) { - return bPosX >= minX && bPosX <= maxX - && bPosY >= minY && bPosY >= minY - && bPosZ >= minZ && bPosZ <= maxZ; -} -export function collision3dLineBox(a1x, a1y, a1z, a2x, a2y, a2z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - return intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ - bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ - bSizeZ); -} -export function collision3dLineSphere2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, centerX, centerY, centerZ, radiusSquared) { - let dX = p1X - p0X; - let dY = p1Y - p0Y; - let dZ = p1Z - p0Z; - const nom = (centerX - p0X) * dX + (centerY - p0Y) * dY + (centerZ - p0Z) * dZ; - const den = dX * dX + dY * dY + dZ * dZ; - const u = nom / den; - if (u < 0) { - dX = p0X - centerX; - dY = p0Y - centerY; - dZ = p0Z - centerZ; - } - else if (u > 1) { - dX = p1X - centerX; - dY = p1Y - centerY; - dZ = p1Z - centerZ; - } - else { - const pX = p0X + u * dX; - const pY = p0Y + u * dY; - const pZ = p0Z + u * dZ; - dX = pX - centerX; - dY = pY - centerY; - dZ = pZ - centerZ; - } - const dist = dX * dX + dY * dY + dZ * dZ; - return dist <= radiusSquared; -} -export function collision3dBoxBox(ax, ay, az, aw, ah, ad, bx, by, bz, bw, bh, bd) { - return ax + aw > bx && bx + bw > ax && - ay + ah > by && by + bh > ay && - az + ad > bz && bz + bd > az; -} -export function collision3dPointEllipsoid(ax, ay, az, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - const aposNewX = ax - bPosX; - const aposNewY = ay - bPosY; - const aposNewZ = az - bPosZ; - const xa = (aposNewX * aposNewX) / (bSizeX * bSizeX); - const yb = (aposNewY * aposNewY) / (bSizeY * bSizeY); - const zc = (aposNewZ * aposNewZ) / (bSizeZ * bSizeZ); - return xa + yb + zc <= 1; -} -export function collision3dLineEllipsoid(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - const point = getClosestPointOnLine(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ); - return collision3dPointEllipsoid(point.x, point.y, point.z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ); -} -export function collision3dPointCylinder(ax, ay, az, bx, by, bz, bRadius, bHeight) { - const conditionOne = ay > by && ay < by + bHeight; - const conditionTwo = distance2dPointPoint(ax, az, bx, bz) < bRadius; - return conditionOne && conditionTwo; -} -export function collision3dBoxCylinder(ax, ay, az, aSizeX, aSizeY, aSizeZ, bx, by, bz, bRadius, bHeight) { - if (ay < by + bHeight || ay + aSizeY > by) { - return false; - } - return circleRect2dCollision(bx, bz, bRadius, ax, az, aSizeX, aSizeZ); -} -export function collision3dSphereCylinder(ax, ay, az, aRadius, bx, by, bz, bRadius, bHeight) { - const conditionOne = ay + aRadius > by && ay - aRadius < by + bHeight; - const conditionTwo = distance2dPointPoint(ax, az, bx, bz) < aRadius + bRadius; - return conditionOne && conditionTwo; -} -export function collision3dSphereBoxMinMax(centerX, centerY, centerZ, radiusSquared, minX, minY, minZ, maxX, maxY, maxZ) { - let radius2 = radiusSquared; - const func = (val) => { - let d = 0; - if (val.z < val.x) { - d = val.z - val.x; - } - else if (val.z > val.y) { - d = val.z - val.y; - } - return d * d; - }; - const params = new Vector3(); - radius2 -= func(params.setData(minX, maxX, centerX)); - radius2 -= func(params.setData(minY, maxY, centerY)); - radius2 -= func(params.setData(minZ, maxZ, centerZ)); - return radius2 >= 0; -} -//# sourceMappingURL=collisions-3d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/collisions-3d.js.map b/dist/_esm/physics/collisions-3d.js.map deleted file mode 100644 index 1dd2f2bb..00000000 --- a/dist/_esm/physics/collisions-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-3d.js","sourceRoot":"","sources":["../../../src/physics/coll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AAC;IACF,MAAM,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;IAC7B,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAErD,OAAO,OAAO,IAAI,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/distances-2d.js b/dist/_esm/physics/distances-2d.js deleted file mode 100644 index ec6b766d..00000000 --- a/dist/_esm/physics/distances-2d.js +++ /dev/null @@ -1,53 +0,0 @@ -export function distance2dPointPoint(ax, ay, bx, by) { - return Math.sqrt(distance2dPointPointSqr(ax, ay, bx, by)); -} -export function distance2dPointPointSqr(ax, ay, bx, by) { - const distX = ax - bx; - const distY = ay - by; - return distX * distX + distY * distY; -} -export function distance2dCircleCircle(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br - ar, 0); -} -export function distance2dCircleCircleSqr(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br - ar); -} -export function distance2dPointCircle(ax, ay, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br, 0); -} -export function distance2dPointCircleSqr(ax, ay, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br, 0); -} -export function distance2dPointLine(aX, aY, bX, bY, pX, pY) { - return Math.sqrt(distance2dPointLineSqr(aX, aY, bX, bY, pX, pY)); -} -export function distance2dPointLineSqr(aX, aY, bX, bY, pX, pY) { - const A = pX - aX; - const B = pY - aY; - const C = bX - aX; - const D = bY - aY; - const dot = A * C + B * D; - const lengthSquare = C * C + D * D; - let param = -1; - if (lengthSquare !== 0) { - param = dot / lengthSquare; - } - let xx; - let yy; - if (param < 0) { - xx = aX; - yy = aY; - } - else if (param > 1) { - xx = bX; - yy = bY; - } - else { - xx = aX + param * C; - yy = aY + param * D; - } - const dx = pX - xx; - const dy = pY - yy; - return dx * dx + dy * dy; -} -//# sourceMappingURL=distances-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/distances-2d.js.map b/dist/_esm/physics/distances-2d.js.map deleted file mode 100644 index 7af72f61..00000000 --- a/dist/_esm/physics/distances-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-2d.js","sourceRoot":"","sources":["../../../src/physics/distances-2d.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC/E,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAClF,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IAEtB,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,yBAAyB,CACrC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,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,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,KAAK,GAAY,CAAC,CAAC,CAAC;IACxB,IAAI,YAAY,KAAK,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,GAAG,YAAY,CAAC;KAC9B;IAED,IAAI,EAAU,CAAC;IACf,IAAI,EAAU,CAAC;IAEf,IAAI,KAAK,GAAG,CAAC,EAAE;QACX,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QAClB,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM;QACH,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;QACpB,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;KACvB;IAED,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAEnB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/distances-3d.js b/dist/_esm/physics/distances-3d.js deleted file mode 100644 index 37cebb60..00000000 --- a/dist/_esm/physics/distances-3d.js +++ /dev/null @@ -1,52 +0,0 @@ -import { Vector3 } from "../math"; -export function pointPoint3dDistance(ax, ay, az, bx, by, bz) { - return Math.sqrt(pointPointSqr3dDistance(ax, ay, az, bx, by, bz)); -} -export function pointPointSqr3dDistance(ax, ay, az, bx, by, bz) { - const distX = ax - bx; - const distY = ay - by; - const distZ = az - bz; - return distX * distX + distY * distY + distZ * distZ; -} -export function pointLine3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ) { - const aSubBx = aStartX - aEndX; - const aSubBy = aStartY - aEndY; - const aSubBz = aStartZ - aEndZ; - const pSubBx = bCenterX - aEndX; - const pSubBy = bCenterY - aEndY; - const pSubBz = bCenterZ - aEndZ; - const dotA = aSubBx * pSubBx + aSubBy * pSubBy + aSubBz * pSubBz; - if (dotA < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aEndX, aEndY, aEndZ); - } - const bSubAx = aEndX - aStartX; - const bSubAy = aEndY - aStartY; - const bSubAz = aEndZ - aStartZ; - const pSubAx = bCenterX - aStartX; - const pSubAy = bCenterY - aStartY; - const pSubAz = bCenterZ - aStartZ; - const dotB = bSubAx * pSubAx + bSubAy * pSubAy + bSubAz * pSubAz; - if (dotB < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aStartX, aStartY, aStartZ); - } - return vectorPoint3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ); -} -export function pointNormalPlane3dDistance(aNormal, aPoint, bPoint) { - const d = -Vector3.mul(aNormal, aPoint, new Vector3()).sum(); - return Math.abs((Vector3.mul(aNormal, bPoint, new Vector3()).sum() + d) / Math.sqrt(Vector3.mul(aNormal, aNormal, new Vector3()).sum())); -} -export function vectorPoint3dDistance(startX, startY, startZ, endX, endY, endZ, pointX, pointY, pointZ) { - const startSubEndX = startX - endX; - const startSubEndY = startY - endY; - const startSubEndZ = startZ - endZ; - const endSubPointX = endX - pointX; - const endSubPointY = endY - pointY; - const endSubPointZ = endZ - pointZ; - const crossX = startSubEndY * endSubPointZ - startSubEndZ * endSubPointY; - const crossY = startSubEndZ * endSubPointX - startSubEndX * endSubPointZ; - const crossZ = startSubEndX * endSubPointY - startSubEndY * endSubPointX; - const length1 = Math.sqrt(crossX * crossX + crossY * crossY + crossZ * crossZ); - const length2 = Math.sqrt(startSubEndX * startSubEndX + startSubEndY * startSubEndY + startSubEndZ * startSubEndZ); - return length1 / length2; -} -//# sourceMappingURL=distances-3d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/distances-3d.js.map b/dist/_esm/physics/distances-3d.js.map deleted file mode 100644 index ad56fe27..00000000 --- a/dist/_esm/physics/distances-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-3d.js","sourceRoot":"","sources":["../../../src/physics/distances-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,UAAU,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACvG,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC1G,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,MAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IAEtB,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,OAAe,EACf,OAAe,EACf,OAAe,EACf,KAAa,EACb,KAAa,EACb,KAAa,EACb,QAAgB,EAChB,QAAgB,EAChB,QAAgB;IAEhB,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,MAAM,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAChC,MAAM,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAChC,MAAM,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAChC,MAAM,IAAI,GAAK,MAAM,G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,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAC7I,CAAC;AAMD,MAAM,UAAU,qBAAqB,CACjC,MAAc,EACd,MAAc,EACd,MAAc,EACd,IAAY,EACZ,IAAY,EACZ,IAAY,EACZ,MAAc,EACd,MAAc,EACd,MAAc;IAEd,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;IAEnC,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;IACnC,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;IACnC,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;IAEnC,MAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzE,MAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzE,MAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IAEzE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAC/E,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC,CAAC;IAEnH,OAAO,OAAO,GAAG,OAAO,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/index.js b/dist/_esm/physics/index.js deleted file mode 100644 index c08ddf46..00000000 --- a/dist/_esm/physics/index.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./closest-2d"; -export * from "./closest-3d"; -export * from "./collisions-2d"; -export * from "./collisions-3d"; -export * from "./distances-2d"; -export * from "./distances-3d"; -export * from "./bounders-2d"; -export * from "./objects"; -export * from "./intersects-2d"; -export * from "./intersects-3d"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/physics/index.js.map b/dist/_esm/physics/index.js.map deleted file mode 100644 index 0c29ed49..00000000 --- a/dist/_esm/physics/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/physics/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/intersects-2d.js b/dist/_esm/physics/intersects-2d.js deleted file mode 100644 index 412c2063..00000000 --- a/dist/_esm/physics/intersects-2d.js +++ /dev/null @@ -1,17 +0,0 @@ -export function intersection2dLineLine(x1, y1, x2, y2, x3, y3, x4, y4) { - const denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1); - if (denom === 0) { - return null; - } - const numeA = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3); - const numeB = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3); - const uA = numeA / denom; - const uB = numeB / denom; - if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) { - const x = x1 + uA * (x2 - x1); - const y = y1 + uA * (y2 - y1); - return { x, y }; - } - return null; -} -//# sourceMappingURL=intersects-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/intersects-2d.js.map b/dist/_esm/physics/intersects-2d.js.map deleted file mode 100644 index 649ccbf7..00000000 --- a/dist/_esm/physics/intersects-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-2d.js","sourceRoot":"","sources":["../../../src/physics/intersects-2d.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAI,KAAK,KAAK,CAAC,EAAE;QACb,OAAO,IAAI,CAAC;KACf;IAED,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAE5D,MAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IACzB,MAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IAEzB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QAC1C,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAE9B,OAAO,EAAC,CAAC,EAAE,CAAC,EAAC,CAAC;KACjB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/intersects-3d.js b/dist/_esm/physics/intersects-3d.js deleted file mode 100644 index 0c41696c..00000000 --- a/dist/_esm/physics/intersects-3d.js +++ /dev/null @@ -1,32 +0,0 @@ -import { Vector3 } from "../math"; -export function intersection3dVectorSquare(r1x, r1y, r1z, r2x, r2y, r2z, s1x, s1y, s1z, s2x, s2y, s2z, s3x, s3y, s3z) { - return intersection3dVectorSquare_2(new Vector3(r1x, r1y, r1z), new Vector3(r2x, r2y, r2z), new Vector3(s1x, s1y, s1z), new Vector3(s2x, s2y, s2z), new Vector3(s3x, s3y, s3z)); -} -export function intersection3dVectorSquare_2(R1, R2, S1, S2, S3, limit = 1e-6) { - const dS21 = Vector3.sub(S2, S1); - const dS31 = Vector3.sub(S3, S1); - const squareNormal = dS21.cross(dS31); - const dR = Vector3.sub(R1, R2); - const ndotdR = squareNormal.dot(dR); - if (Math.abs(ndotdR) < limit) { - return false; - } - const t = -squareNormal.dot(Vector3.sub(R1, S1)) / ndotdR; - const M = Vector3.sub(R1, dR.mul(t)); - const dMS1 = M.sub(S1); - const u = dMS1.dot(dS21); - const v = dMS1.dot(dS31); - return (u >= 0 && u <= dS21.dot(dS21) && v >= 0 && v <= dS31.dot(dS31)); -} -export function intersection3dPlaneLine(planePointX, planePointY, planePointZ, planeNormalX, planeNormalY, planeNormalZ, linePointX, linePointY, linePointZ, lineDirectionX, lineDirectionY, lineDirectionZ, limit) { - return intersection3dPlaneLineIntersectionAdvanced(new Vector3(planePointX, planePointY, planePointZ), new Vector3(planeNormalX, planeNormalY, planeNormalZ), new Vector3(linePointX, linePointY, linePointZ), new Vector3(lineDirectionX, lineDirectionY, lineDirectionZ), limit); -} -export function intersection3dPlaneLineIntersectionAdvanced(planePoint, planeNormal, linePoint, lineDirection, limit = 1e-6) { - lineDirection.normalize(); - if (planeNormal.dot(lineDirection) < limit) { - return null; - } - const t = (planeNormal.dot(planePoint) - planeNormal.dot(linePoint)) / planeNormal.dot(lineDirection); - return linePoint.add(lineDirection.mul(t)); -} -//# sourceMappingURL=intersects-3d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/intersects-3d.js.map b/dist/_esm/physics/intersects-3d.js.map deleted file mode 100644 index 7491df0e..00000000 --- a/dist/_esm/physics/intersects-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-3d.js","sourceRoot":"","sources":["../../../src/physics/intersects-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,OAAO,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,UAAU,0BAA0B,CACtC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW;IAEX,OAAO,4BAA4B,CAC/B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAC7B,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,4BAA4B,CACxC,EAAiB,EACjB,EAAiB,EACjB,EAAiB,EACjB,EAAiB,EACjB,EAAiB,EACjB,KAAK,GAAG,IAAI;IAEZ,MAAM,IAAI,GAAW,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,MAAM,IAAI,GAAW,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;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AAO,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,EACrD,IAAI,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EAC/C,IAAI,OAAO,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,EAC3D,KAAK,CACR,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,2CAA2C,CACvD,UAAmB,EACnB,WAAoB,EACpB,SAAkB,EAClB,aAAsB,EACtB,KAAK,GAAG,IAAI;IAEZ,aAAa,CAAC,SAAS,EAAE,CAAC;IAC1B,IAAI,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE;QACxC,OAAO,IAAI,CAAC;KACf;IAED,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAEtG,OAAO,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/capsule.js b/dist/_esm/physics/objects/2d/capsule.js deleted file mode 100644 index bc3bfb64..00000000 --- a/dist/_esm/physics/objects/2d/capsule.js +++ /dev/null @@ -1,38 +0,0 @@ -import { Vector2 } from "gtools/math"; -export class Capsule { - constructor(start, end, radius) { - this.start = start; - this.end = end; - this.radius = radius; - } - get boundingRadius() { - return this.radius + this.length / 2; - } - get area() { - return Math.PI * this.radius * this.radius + this.radius * 2 * this.length; - } - get circuit() { - return 2 * Math.PI * this.radius + 2 * Vector2.dist(this.start, this.end); - } - toMinMax() { - throw new Error("Not implemented"); - } - get momentOfInertia() { - const boxI = (w, h) => w * h * (Math.pow(w, 2) + Math.pow(h, 2)) / 12; - const semiA = (r) => Math.PI * Math.pow(r, 2) / 2; - const semiI = (r) => ((Math.PI / 4) - (8 / (9 * Math.PI))) * Math.pow(r, 4); - const semiC = (r) => (4 * r) / (3 * Math.PI); - const capsuleA = (l, r) => l * 2 * r + Math.PI * Math.pow(r, 2); - const capsuleI = (l, r) => { - const d = l / 2 + semiC(r); - return boxI(l, 2 * r) + 2 * (semiI(r) + semiA(r) * Math.pow(d, 2)); - }; - const length = this.length; - const area = capsuleA(length, this.radius); - return (area > 0) ? capsuleI(length, this.radius) / area : 0; - } - get length() { - return Vector2.dist(this.start, this.end); - } -} -//# sourceMappingURL=capsule.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/capsule.js.map b/dist/_esm/physics/objects/2d/capsule.js.map deleted file mode 100644 index c164633e..00000000 --- a/dist/_esm/physics/objects/2d/capsule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"capsule.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/capsule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,OAAO,OAAO;IAChB,YACqB,KAAoB,EACpB,GAAkB,EAClB,MAAc;QAFd,UAAK,GAAL,KAAK,CAAe;QACpB,QAAG,GAAH,GAAG,CAAe;QAClB,WAAM,GAAN,MAAM,CAAQ;IAEnC,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;IAC/E,CAAC;IAED,IAAW,OAAO;QACd,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAA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AAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACvE,CAAC,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,IAAI,GAAK,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAE7C,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,IAAW,MAAM;QACb,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/line.js b/dist/_esm/physics/objects/2d/line.js deleted file mode 100644 index 39ede7ae..00000000 --- a/dist/_esm/physics/objects/2d/line.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Vector2 } from "gtools/math"; -export class Line { - constructor(pointA, pointB) { - this.pointA = pointA; - this.pointB = pointB; - } - get length() { - return Vector2.dist(this.pointA, this.pointB); - } - angle() { - return Math.atan2(this.pointB.y - this.pointA.y, this.pointB.x - this.pointA.x); - } - get boundingRadius() { - return this.length / 2; - } - static fromPoints(aX, aY, bX, bY) { - return new Line({ - x: aX, - y: aY, - }, { - x: bX, - y: bY, - }); - } - get momentOfInertia() { - return Math.pow(this.length, 2) / 12; - } - toMinMax() { - return { - min: Vector2.min(this.pointA, this.pointB), - max: Vector2.max(this.pointA, this.pointB), - }; - } -} -//# sourceMappingURL=line.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/line.js.map b/dist/_esm/physics/objects/2d/line.js.map deleted file mode 100644 index f5b16a6c..00000000 --- a/dist/_esm/physics/objects/2d/line.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,OAAO,IAAI;IACb,YAAmC,MAAqB,EACrB,MAAqB;QADrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;IACxD,CAAC;IAED,IAAW,MAAM;QACb,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IAIM,KAAK;QACR,OAAO,IAAI,CAAC,KAAK,CACb,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAC7B,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAChC,CAAC;IACN,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3B,CAAC;IAGM,MAAM,CAAC,UAAU,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;QACnE,OAAO,IAAI,IAAI,CACX;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,EACD;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,CACJ,CAAC;IACN,CAAC;IAED,IAAW,eAAe;QACtB,OAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;IAC1C,CAAC;IAEM,QAAQ;QACX,OAAO;YACH,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YAC1C,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;SAC7C,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/object2-d.js b/dist/_esm/physics/objects/2d/object2-d.js deleted file mode 100644 index 538f5e81..00000000 --- a/dist/_esm/physics/objects/2d/object2-d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=object2-d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/object2-d.js.map b/dist/_esm/physics/objects/2d/object2-d.js.map deleted file mode 100644 index c55619e3..00000000 --- a/dist/_esm/physics/objects/2d/object2-d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object2-d.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/object2-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/ray-2d.js b/dist/_esm/physics/objects/2d/ray-2d.js deleted file mode 100644 index 61eb7363..00000000 --- a/dist/_esm/physics/objects/2d/ray-2d.js +++ /dev/null @@ -1,101 +0,0 @@ -import { Vector2 } from "../../../math"; -export class Ray2D { - constructor(origin, direction, length = Infinity) { - this.origin = origin; - this.direction = direction; - this.length = length; - } - get end() { - return Vector2.from(this.direction.x, this.direction.y).mul(this.length).add(this.origin); - } - static fromLine(start, end) { - const direction = Vector2.sub(end, start); - const length = direction.length; - return new Ray2D(start, Vector2.normalize(direction), length); - } -} -export var RayMode; -(function (RayMode) { - RayMode["ANY"] = "ANY"; - RayMode["CLOSEST"] = "CLOSEST"; - RayMode["ALL"] = "ALL"; -})(RayMode || (RayMode = {})); -export class RaycastResult { - constructor() { - this.normal = new Vector2(); - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - } - reset() { - this.normal.setData(0, 0); - this.shape = null; - this.body = null; - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - } - getHitDistance(ray) { - return Vector2.dist(ray.from, ray.to) * this.fraction; - } - hasHit() { - return this.fraction !== -1; - } - getHitPoint(ray) { - return Vector2.lerp(ray.from, ray.to, this.fraction); - } - stop() { - this.isStopped = true; - } - shouldStop(ray) { - return this.isStopped || (this.fraction !== -1 && ray.mode === RayMode.ANY); - } - set(normal, shape, body, fraction, faceIndex) { - this.normal.set(normal); - this.shape = shape; - this.body = body; - this.fraction = fraction; - this.faceIndex = faceIndex; - } -} -export class RayCast { - constructor(ray) { - this.ray = ray; - this.checkCollisionResponse = true; - this.skipBackfaces = false; - this.collisionMask = -1; - this.collisionGroup = -1; - this.mode = RayMode.ANY; - } - get from() { - return this.ray.origin; - } - get to() { - return this.ray.end; - } - get direction() { - return this.ray.direction; - } - reportIntersection(result, fraction, normal, faceIndex) { - const shape = null; - const body = null; - if (this.skipBackfaces && Vector2.dot(normal, this.ray.direction) > 0) { - return; - } - switch (this.mode) { - case RayMode.ALL: - result.set(normal, shape, body, fraction, faceIndex); - this.callback && this.callback(result); - break; - case RayMode.CLOSEST: - if (fraction < result.fraction || !result.hasHit()) { - result.set(normal, shape, body, fraction, faceIndex); - } - break; - case RayMode.ANY: - result.set(normal, shape, body, fraction, faceIndex); - break; - } - } -} -//# sourceMappingURL=ray-2d.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/ray-2d.js.map b/dist/_esm/physics/objects/2d/ray-2d.js.map deleted file mode 100644 index 101d7e06..00000000 --- a/dist/_esm/physics/objects/2d/ray-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray-2d.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/ray-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,OAAO,KAAK;IACd,YACoB,MAAqB,EACrB,SAAwB,EACxB,SAAS,QAAQ;QAFjB,WAAM,GAAN,MAAM,CAAe;QACrB,cAAS,GAAT,SAAS,CAAe;QACxB,WAAM,GAAN,MAAM,CAAW;IAErC,CAAC;IAED,IAAW,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C,MAAM,CAAC;IAC3B,CAAC;IAED,IAAW,EAAE;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACxB,CAAC;IACD,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;IAC9B,CAAC;IAKM,kBAAkB,CAAC,MAAqB,EAAE,QAAgB,EAAE,MAAqB,EAAE,SAAiB;QACvG,MAAM,KAAK,GAAG,IAAI,CAAC;QACnB,MAAM,IAAI,GAAI,IAAI,CAAC;QAGnB,IAAI,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACnE,OAAO;SACV;QAED,QAAQ,IAAI,CAAC,IAAI,EAAE;YAEf,KAAK,OAAO,CAAC,GAAG;gBACZ,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;gBACF,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBACvC,MAAM;YAEV,KAAK,OAAO,CAAC,OAAO;gBAGhB,IAAI,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE;oBAChD,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;iBACL;gBACD,MAAM;YAEV,KAAK,OAAO,CAAC,GAAG;gBAGZ,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;gBACF,MAAM;SACb;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/rect.js b/dist/_esm/physics/objects/2d/rect.js deleted file mode 100644 index 68e1a759..00000000 --- a/dist/_esm/physics/objects/2d/rect.js +++ /dev/null @@ -1,78 +0,0 @@ -import { Vector2 } from "../../../math"; -import { convertPosSizeToMinMax } from "../object-convertors"; -export class Rect { - constructor(position, size) { - this.position = position; - this.size = size; - } - get area() { - return this.size.x * this.size.y; - } - get momentOfInertia() { - return (this.size.x * this.size.x + this.size.y * this.size.y) / 12; - } - get boundingRadius() { - return Math.sqrt(this.size.x * this.size.x + this.size.y * this.size.y) / 2; - } - get circuit() { - return this.size.x + this.size.x + this.size.y + this.size.y; - } - toMinMax() { - return convertPosSizeToMinMax(this); - } - static fromSphere({ radius, center }) { - return Rect.fromMinMax({ - min: { - x: center.x - radius, - y: center.y - radius, - }, - max: { - x: center.x + radius, - y: center.y + radius, - }, - }); - } - static fromRay({ origin, direction, length }, realLength = length) { - if (realLength === Infinity) { - throw new Error("Cannot create rectangle from infinite ray"); - } - const end = { - x: origin.x + direction.x * realLength, - y: origin.y + direction.y * realLength, - }; - return Rect.fromMinMax({ - min: { - x: Math.min(end.x, origin.x), - y: Math.min(end.y, origin.y), - }, - max: { - x: Math.max(end.x, origin.x), - y: Math.max(end.y, origin.y), - }, - }); - } - static fromPoints(points, offsetX = 0, offsetY = offsetX) { - const range = Vector2.createOutlineRange(points); - if (!offsetX && !offsetY) { - return Rect.fromMinMax(range); - } - return Rect.fromMinMax({ - min: { - x: range.min.x - offsetX, - y: range.min.y - offsetY, - }, - max: { - x: range.max.x + offsetX, - y: range.max.y + offsetY, - }, - }); - } - static fromMinMax({ min, max }) { - const size = { - x: max.x - min.x, - y: max.y - min.y, - }; - return new Rect(Object.assign({}, min), size); - } -} -//# sourceMappingURL=rect.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/rect.js.map b/dist/_esm/physics/objects/2d/rect.js.map deleted file mode 100644 index 412a12e7..00000000 --- a/dist/_esm/physics/objects/2d/rect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rect.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/rect.ts"],"names":[],"mappings":"AAAA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AAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;SACjC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;YACnB,GAAG,EAAE;gBACD,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;gBACxB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;aAC3B;YACD,GAAG,EAAE;gBACD,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;gBACxB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,EAAC,GAAG,EAAE,GAAG,EAAW;QACzC,MAAM,IAAI,GAAG;YACT,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB,CAAC;QAEF,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/sphere.js b/dist/_esm/physics/objects/2d/sphere.js deleted file mode 100644 index 69692148..00000000 --- a/dist/_esm/physics/objects/2d/sphere.js +++ /dev/null @@ -1,83 +0,0 @@ -import { Vector2 } from "../../../math"; -import { convertPosSizeToMinMax } from "../object-convertors"; -export class Sphere { - constructor(radius, center) { - this.radius = radius; - this.center = center; - } - get circuit() { - return 2 * Math.PI * this.radius; - } - get momentOfInertia() { - const r = this.radius; - return r * r / 2; - } - get boundingRadius() { - return this.radius; - } - get area() { - return Math.PI * this.radius * this.radius; - } - static fromMinMax({ min, max }, chooseSize = "max") { - const center = { - x: (min.x + max.x) / 2, - y: (min.y + max.y) / 2, - }; - const sizeX = max.x - min.x; - const sizeY = max.y - min.y; - const radius = chooseSize === "min" ? Math.min(sizeX, sizeY) : Math.max(sizeX, sizeY); - return new Sphere(radius, center); - } - static fromPosSize(posSize, chooseSize = "max") { - return Sphere.fromMinMax(convertPosSizeToMinMax(posSize), chooseSize); - } - toMinMax() { - return { - min: Vector2.addNum(this.center, -this.radius), - max: Vector2.addNum(this.center, this.radius), - }; - } - raycast(result, ray) { - const from = ray.from; - const to = ray.to; - const r = this.radius; - const position = new Vector2(this.center.x, this.center.y); - const a = Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2); - const b = 2 * ((to.x - from.x) * (from.x - position.x) + (to.y - from.y) * (from.y - position.y)); - const c = Math.pow(from.x - position.x, 2) + Math.pow(from.y - position.y, 2) - Math.pow(r, 2); - const delta = Math.pow(b, 2) - 4 * a * c; - const intersectionPoint = new Vector2(); - const normal = new Vector2(); - if (delta < 0) { - return; - } - if (delta === 0) { - intersectionPoint.set(Vector2.lerp(from, to, delta)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, delta, normal, -1); - } - else { - const sqrtDelta = Math.sqrt(delta); - const inv2a = 1 / (2 * a); - const d1 = (-b - sqrtDelta) * inv2a; - const d2 = (-b + sqrtDelta) * inv2a; - if (d1 >= 0 && d1 <= 1) { - intersectionPoint.set(Vector2.lerp(from, to, d1)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, d1, normal, -1); - if (result.shouldStop(ray)) { - return; - } - } - if (d2 >= 0 && d2 <= 1) { - intersectionPoint.set(Vector2.lerp(from, to, d2)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, d2, normal, -1); - } - } - } -} -//# sourceMappingURL=sphere.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/sphere.js.map b/dist/_esm/physics/objects/2d/sphere.js.map deleted file mode 100644 index 68a1b946..00000000 --- a/dist/_esm/physics/objects/2d/sphere.js.map +++ /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,CAAC,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC;YAC3C,MAAM,EAAE,GAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC;YAE3C,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;gBACpB,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;gBAElD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;gBACjD,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAElC,GAAG,CAAC,kBAAkB,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;gBAE/C,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBACxB,OAAO;iBACV;aACJ;YAED,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;gBACpB,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;gBAElD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;gBACjD,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAElC,GAAG,CAAC,kBAAkB,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;aAClD;SACJ;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/triangle.js b/dist/_esm/physics/objects/2d/triangle.js deleted file mode 100644 index 52f2968d..00000000 --- a/dist/_esm/physics/objects/2d/triangle.js +++ /dev/null @@ -1,27 +0,0 @@ -import { Vector2 } from "gtools/math"; -export class Triangle { - constructor(pointA, pointB, pointC) { - this.pointA = pointA; - this.pointB = pointB; - this.pointC = pointC; - } - get area() { - return (((this.pointB.x - this.pointA.x) * (this.pointC.y - this.pointA.y)) - - ((this.pointC.x - this.pointA.x) * (this.pointB.y - this.pointA.y))) * 0.5; - } - get boundingRadius() { - return Math.max(Vector2.dist(this.pointA, this.pointB), Vector2.dist(this.pointB, this.pointC), Vector2.dist(this.pointA, this.pointC)) / 2; - } - get circuit() { - return Vector2.dist(this.pointA, this.pointB) + - Vector2.dist(this.pointB, this.pointC) + - Vector2.dist(this.pointA, this.pointC); - } - get momentOfInertia() { - throw new Error("Not implemented"); - } - toMinMax() { - return Vector2.createOutlineRange([this.pointA, this.pointB, this.pointC]); - } -} -//# sourceMappingURL=triangle.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/2d/triangle.js.map b/dist/_esm/physics/objects/2d/triangle.js.map deleted file mode 100644 index 94e14d5c..00000000 --- a/dist/_esm/physics/objects/2d/triangle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triangle.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,OAAO,QAAQ;IACjB,YACqB,MAAqB,EACrB,MAAqB,EACrB,MAAqB;QAFrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;IAE1C,CAAC;IAED,IAAW,IAAI;QACX,OAAO,CACH,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACtE,GAAG,GAAG,CAAC;IACZ,CAAC;IAED,IAAW,cAAc;QACrB,OAAO,IAAI,CAAC,GAAG,CACX,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EACtC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EACtC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CACzC,GAAG,CAAC,CAAC;IAEV,CAAC;IAED,IAAW,OAAO;QACd,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAKD,IAAW,eAAe;QACtB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,QAAQ;QACX,OAAO,OAAO,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/E,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/index.js b/dist/_esm/physics/objects/index.js deleted file mode 100644 index 15c4bc26..00000000 --- a/dist/_esm/physics/objects/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./2d/rect"; -export * from "./2d/sphere"; -export * from "./object-convertors"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/index.js.map b/dist/_esm/physics/objects/index.js.map deleted file mode 100644 index eb510272..00000000 --- a/dist/_esm/physics/objects/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/physics/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/physics/objects/object-convertors.js b/dist/_esm/physics/objects/object-convertors.js deleted file mode 100644 index 7cdee0a1..00000000 --- a/dist/_esm/physics/objects/object-convertors.js +++ /dev/null @@ -1,25 +0,0 @@ -export function convertMinMaxToPosSize({ min, max }) { - return { - position: { - x: min.x, - y: min.y, - }, - size: { - x: max.x - min.x, - y: max.y - min.y, - }, - }; -} -export function convertPosSizeToMinMax({ position, size }) { - return { - min: { - x: position.x, - y: position.y, - }, - max: { - x: position.x + size.x, - y: position.y + size.y, - }, - }; -} -//# sourceMappingURL=object-convertors.js.map \ No newline at end of file diff --git a/dist/_esm/physics/objects/object-convertors.js.map b/dist/_esm/physics/objects/object-convertors.js.map deleted file mode 100644 index bfe786d1..00000000 --- a/dist/_esm/physics/objects/object-convertors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-convertors.js","sourceRoot":"","sources":["../../../../src/physics/objects/object-convertors.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAAC,EAAC,GAAG,EAAE,GAAG,EAAW;IACvD,OAAO;QACH,QAAQ,EAAE;YACN,CAAC,EAAE,GAAG,CAAC,CAAC;YACR,CAAC,EAAE,GAAG,CAAC,CAAC;SACX;QACD,IAAI,EAAE;YACF,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB;KACJ,CAAC;AACN,CAAC;AACD,MAAM,UAAU,sBAAsB,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAY;IAC9D,OAAO;QACH,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC;YACb,CAAC,EAAE,QAAQ,CAAC,CAAC;SAChB;QACD,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YACtB,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;SACzB;KACJ,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm/tests/abstract-database.fixture.js b/dist/_esm/tests/abstract-database.fixture.js deleted file mode 100644 index 7742d002..00000000 --- a/dist/_esm/tests/abstract-database.fixture.js +++ /dev/null @@ -1,9 +0,0 @@ -import { AbstractFixture } from "./abstract.fixture"; -export class AbstractDatabaseFixture extends AbstractFixture { - constructor(list, mapper) { - super(list); - this.listDto = list.map(mapper.mapToDto, mapper); - this.detailDto = this.listDto[0]; - } -} -//# sourceMappingURL=abstract-database.fixture.js.map \ No newline at end of file diff --git a/dist/_esm/tests/abstract-database.fixture.js.map b/dist/_esm/tests/abstract-database.fixture.js.map deleted file mode 100644 index f1b7d8fe..00000000 --- a/dist/_esm/tests/abstract-database.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-database.fixture.js","sourceRoot":"","sources":["../../../src/tests/abstract-database.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,MAAM,OAAgB,uBAAqC,SAAQ,eAAoB;IAInF,YAAsB,IAAW,EAAE,MAAmC;QAClE,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,OAAO,GAAK,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/tests/abstract.fixture.js b/dist/_esm/tests/abstract.fixture.js deleted file mode 100644 index f10290db..00000000 --- a/dist/_esm/tests/abstract.fixture.js +++ /dev/null @@ -1,7 +0,0 @@ -export class AbstractFixture { - constructor(list) { - this.list = list; - this.detail = list[0]; - } -} -//# sourceMappingURL=abstract.fixture.js.map \ No newline at end of file diff --git a/dist/_esm/tests/abstract.fixture.js.map b/dist/_esm/tests/abstract.fixture.js.map deleted file mode 100644 index 97ec378e..00000000 --- a/dist/_esm/tests/abstract.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.fixture.js","sourceRoot":"","sources":["../../../src/tests/abstract.fixture.ts"],"names":[],"mappings":"AAAA,MAAM,OAAgB,eAAe;IAGjC,YAAsC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/tests/abstract.mapper.js b/dist/_esm/tests/abstract.mapper.js deleted file mode 100644 index 110609b4..00000000 --- a/dist/_esm/tests/abstract.mapper.js +++ /dev/null @@ -1,3 +0,0 @@ -export class AbstractMapper { -} -//# sourceMappingURL=abstract.mapper.js.map \ No newline at end of file diff --git a/dist/_esm/tests/abstract.mapper.js.map b/dist/_esm/tests/abstract.mapper.js.map deleted file mode 100644 index 410d5fae..00000000 --- a/dist/_esm/tests/abstract.mapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.mapper.js","sourceRoot":"","sources":["../../../src/tests/abstract.mapper.ts"],"names":[],"mappings":"AAAA,MAAM,OAAgB,cAAc;CAInC"} \ No newline at end of file diff --git a/dist/_esm/tests/paginate.model.js b/dist/_esm/tests/paginate.model.js deleted file mode 100644 index fc07531b..00000000 --- a/dist/_esm/tests/paginate.model.js +++ /dev/null @@ -1,14 +0,0 @@ -export class PaginateModel { - constructor(count = PaginateModel.ITEMS_PER_PAGE, offset = 0) { - this.limit = +count; - this.offset = +offset; - } - static validate(paginate) { - if (!paginate) { - return new PaginateModel(); - } - return new PaginateModel(isNaN(paginate.limit) ? PaginateModel.ITEMS_PER_PAGE : paginate.limit, isNaN(paginate.offset) ? 0 : paginate.offset); - } -} -PaginateModel.ITEMS_PER_PAGE = 10; -//# sourceMappingURL=paginate.model.js.map \ No newline at end of file diff --git a/dist/_esm/tests/paginate.model.js.map b/dist/_esm/tests/paginate.model.js.map deleted file mode 100644 index 783a8cf6..00000000 --- a/dist/_esm/tests/paginate.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginate.model.js","sourceRoot":"","sources":["../../../src/tests/paginate.model.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAa;IAKtB,YAAmB,KAAK,GAAG,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,CAAC;QAC/D,IAAI,CAAC,KAAK,GAAI,CAAC,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,QAAwB;QAC3C,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,IAAI,aAAa,EAAE,CAAC;SAC9B;QAED,OAAO,IAAI,aAAa,CACpB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EACrE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAC/C,CAAC;IACN,CAAC;;AAlBa,4BAAc,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/tsconfig.esm.tsbuildinfo b/dist/_esm/tsconfig.esm.tsbuildinfo deleted file mode 100644 index 335df72a..00000000 --- a/dist/_esm/tsconfig.esm.tsbuildinfo +++ /dev/null @@ -1,3780 +0,0 @@ -{ - "program": { - "fileInfos": { - "../../node_modules/typescript/lib/lib.es5.d.ts": { - "version": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "signature": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.d.ts": { - "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2016.d.ts": { - "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2017.d.ts": { - "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2018.d.ts": { - "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.dom.d.ts": { - "version": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "signature": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.core.d.ts": { - "version": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "signature": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { - "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { - "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { - "version": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "signature": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { - "version": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "signature": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { - "version": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "signature": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { - "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { - "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { - "version": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "signature": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { - "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.object.d.ts": { - "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { - "version": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "signature": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.string.d.ts": { - "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { - "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { - "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { - "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { - "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { - "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { - "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { - "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { - "version": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "signature": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { - "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "affectsGlobalScope": true - }, - "../../node_modules/tslib/tslib.d.ts": { - "version": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "signature": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "affectsGlobalScope": false - }, - "../../src/enums/button.enum.ts": { - "version": "50c86b5e00222387bfb7ff7a2c9ccc762947134a33777a75ae5538192f7f0bd6", - "signature": "357fbf6edfd6d4f5e2f4a883a1766e9284bc65595a9c21cef39dfccd7305f648", - "affectsGlobalScope": false - }, - "../../src/enums/days.enum.ts": { - "version": "bddca260222d9bced7ace11ff9eaef229387a2a46d78142af4164d18e5f49bbb", - "signature": "4b653e7dba3ff8e0438f85fd6ed37c56fb6f747cc83e764f1620c8ec7db7649f", - "affectsGlobalScope": false - }, - "../../src/enums/encodings.enum.ts": { - "version": "3bdf87d3b2d15129abc87ed545543cf68ced22d958779f45d03214e6b4414e13", - "signature": "95fbe4ec96c0b9eac9fd35fd431c1cc11f67082709b7558cfe7429b5b57ba64a", - "affectsGlobalScope": false - }, - "../../src/enums/file-types.enum.ts": { - "version": "4a555a8dcb615ae92031c999c8d67d28fabfb15eb450e0004696ae3a52fe1fc4", - "signature": "48601b16415287ce515b4069827b954f79c3ed1aaf9356dcb1ec97b72b2527fe", - "affectsGlobalScope": false - }, - "../../src/enums/http-status-codes.enum.ts": { - "version": "18cd245a404949328db6ad30f9329b5b770ee2b2a132d49aa08fb989af9139c2", - "signature": "5ae271fc0ca310f7c8151a228dcc2db47a30b55ada389272881662f088dfedeb", - "affectsGlobalScope": false - }, - "../../src/enums/keys.enum.ts": { - "version": "83901b0fd0917145eca09e4aa2abd8d8bab37ad6d13aae029263fe4b07a63516", - "signature": "ce18b139714a54f9786d8779b39cb0d48e3d7f0d88408c612155846c0de8f2f7", - "affectsGlobalScope": false - }, - "../../src/enums/index.ts": { - "version": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "signature": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.interface.ts": { - "version": "e6e113eadb1ccaaae2e957e8de27034dfb13482e63ccf39fb05437bcbe1eecfb", - "signature": "86ed1beceb38e1af1bb7ec598db14a491e07a8b1d8ad479a5df6edc1c6231e27", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.ts": { - "version": "5810ad019f74c6261146aa2e0d9a0de42f2d0797e440d5c69528fb77e20d68cf", - "signature": "cd0a8bbee4c1af364206cbec7fc471dc238edb40d1f04f856691c042bcf8a323", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector2.ts": { - "version": "d4d6ff7da12f4962aaba6f91a555d1400daa8606752489267c925bee578ff16a", - "signature": "38b51082ed2d0f1e705b3a89d065dac8186e595ab15367004db1627fbc1cbe4e", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector3.ts": { - "version": "8fc7d99d317738030fef5e8879d62147fa8c8d592ceb7467e319b7aea4ccf2ed", - "signature": "884a2b1d52b4d040fa53b8ec8a25f94f4d8ac9a90e68c37c3b225044c35c71e1", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector4.ts": { - "version": "25044c1276889db43155f523aa265089776a944cf015bcf2c4a5612e04462221", - "signature": "0287860853f48f9d38f275000a66f84960dae622ee07bf479c5f3372851fb10f", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector-xz.ts": { - "version": "e69a9ec9c1cc9e8a2f2eb4ba03004277657eae50a29397028e3e9b0baf6d1db7", - "signature": "7ceb21ba1e1525d5906df1e8b9aa68ec219abd6bb9f6150adbc83f9f6a311378", - "affectsGlobalScope": false - }, - "../../src/math/vector.ts": { - "version": "6b89380b6e3149d20d0ca39499b73a29a9b1afa867ac38c6460e8104abec5720", - "signature": "ed564b28801d51e6448d794401b6d9476e55f479b9e19e14ce5d07a407fe607f", - "affectsGlobalScope": false - }, - "../../src/models/gender.model.ts": { - "version": "c0156a95eaa6dcee76503a6bbe3a59e7e062d50327d3182425dd6a7cb6ee451a", - "signature": "714f3b5c4b8480f89e190efec48fe8bab94b22315a686a1524ac62585c16c7dc", - "affectsGlobalScope": false - }, - "../../src/utils/analytics-utils.ts": { - "version": "8f5deea470c150bbfbd6a22d0a9085ef2d7de3c823b5ce10eb20c1bf40bc0e7b", - "signature": "f16cda2102a252a1b7125383579338ac618c8e89c4f14fabfac49cc5653b4865", - "affectsGlobalScope": false - }, - "../../src/utils/array-utils.ts": { - "version": "0a3fbbae03181f578627838ee3644e5dde88ff68ac875a728e587760a6b2a9ff", - "signature": "5e3e18271dc1c1bfe3222c25b45cac9e1502c7b21016a47cbba3ec7e976aeec1", - "affectsGlobalScope": false - }, - "../../src/utils/coerce-util.ts": { - "version": "ac3e2db41f1a56ad772ebf21936fb24707b8d0a53af7120ad21de28521808753", - "signature": "3aaf01dd98093fd4ef879a5f99085ea0167cf4c86c550f79d469cf0155911cd4", - "affectsGlobalScope": false - }, - "../../src/utils/random-utils.ts": { - "version": "96e92fedd1be573dcfb4daa243dfc72a3c368958dd9ff1911d1fd57299fa6b29", - "signature": "7fac6144ce84a39f446b61eadcda61cb0af9b9da06ef2374fe6c91b301bd1272", - "affectsGlobalScope": false - }, - "../../src/utils/math-utils.ts": { - "version": "d381be6ba051c5ac4bca040587c2c4705f4b3439666a4e1867ce625a3a45e75e", - "signature": "224ab6ead2e690aaa38f89767b28777acf6c733b4459ca4c223c72a102730aea", - "affectsGlobalScope": false - }, - "../../src/utils/color-utils.ts": { - "version": "b1a7daa04816a62243e8a9de44d83e2f14fea57868f372fb34cc4b70fb97fed2", - "signature": "057993534c988f4a46b9aad2b8a5e1698ac87a35ac30ecb13bf0a4853cf68760", - "affectsGlobalScope": false - }, - "../../src/utils/date-utils.ts": { - "version": "a8d6342d0b8c2f7197f82d48a6ffa7df900024fb77262e2b1e485e7f2072126d", - "signature": "6d1b6f491a48bf845fca87057eb17a74164488c8879a0c4f051794d6a818e239", - "affectsGlobalScope": false - }, - "../../src/constants.ts": { - "version": "eef8f7f75d5446d4800b4cd903cef08b5688eec7a3cd154672d58c07ba9fd2e1", - "signature": "6206c715117e5baf07cf492519cc4e20b9de983cc5aeecd383f21d49dcd848e5", - "affectsGlobalScope": false - }, - "../../src/utils/html-utils.ts": { - "version": "97c3a73a8814fe6771fd0b8da9f9bc1cc8390733a0f6250b0dd39cb07acceb0c", - "signature": "066eef6e1a0c48ed649caf7c6babd5abb95226e5153e6dcb3efaf090d38b98a2", - "affectsGlobalScope": false - }, - "../../src/utils/image-utils.ts": { - "version": "07de68ef3da9195d4bcb19f3caa51533eec574e0bea13653422df940626e5d4a", - "signature": "e912699c22f69c3b2f62cba5b34aab381a9a191d271fd2802c55afe5fdb1b65e", - "affectsGlobalScope": false - }, - "../../src/utils/misc-utils.ts": { - "version": "aa906aad39fbb9a96e590c0a3f6bec7463c6d725747605dd17ffd4592839627a", - "signature": "0bb79967b16de2d62e750a9c5727c5258c0932ebd9c7e26084c3e974f56409b7", - "affectsGlobalScope": false - }, - "../../src/utils/time-utils.ts": { - "version": "a3a92fa449c14364c40afc22015f329ff4c59e9fe7c8c58f2cbe41181d3477c9", - "signature": "a92b28a616d6f4587fe85e8da1d494b941c26abf5804c3667c3e48be49998816", - "affectsGlobalScope": false - }, - "../../src/utils/sorted-array-utils.ts": { - "version": "1416a4fce6896efe303e94a1c286783631ab4d9be50ba7e0d4276e34fcad61df", - "signature": "e1691429dc711ca2dde4464972f7d134422374a589d8bc0943276e7c89a731f0", - "affectsGlobalScope": false - }, - "../../src/utils/input-utils.ts": { - "version": "87ee8b0e6ef48c43e01aff4529f8c2d77edd0ca5ede2125cc7e993bcd1df5b1f", - "signature": "b773a1db1447ad901b3959f7ebf9dec66ef5c54ee71b84d5a0d00beae95d07a9", - "affectsGlobalScope": false - }, - "../../src/utils/object-utils.ts": { - "version": "86955e6e55d3d74525667034238431f630585c24b46574d6e3026073b024e2f4", - "signature": "7354537a868d8db11316b7ecbbd79680f4a236b1edad9f1d65dbb52d133fe415", - "affectsGlobalScope": false - }, - "../../src/utils/parser-utils.ts": { - "version": "e3d8d06a5f58a2e70f21bbc54f64929883fd62cab6a3002ee508b3e564230d61", - "signature": "2410ea7c356f48e75a706195428e733904e53c2dc96d69cc1ee4ee8ef0df05d9", - "affectsGlobalScope": false - }, - "../../src/utils/process-utils.ts": { - "version": "e37d49bb6877656ab1cb17ac45762cffa2bafe3996cc642f9ddffaf53e51056e", - "signature": "55a13238f3ab9f5c277bf2370c7a93fc5a7b5d6735675297d4b284e2829a17d1", - "affectsGlobalScope": false - }, - "../../src/utils/reflection-utils.ts": { - "version": "a67fb26f92fa18df700eff0a831cd6b8be2186d68ee5c42781c6bd5b243a10d6", - "signature": "e3208d46a8ed13ac223e6f8134da360682f06c43bebb74b45bacb6901e543c01", - "affectsGlobalScope": false - }, - "../../src/validators/misc-validators.ts": { - "version": "f8a70f820a5cab033987717bc2aec3efc4b26bc8065d9d905b37e4a82b84f58c", - "signature": "91980d7ad79023a898afb63323530c75c7750cc9edab3b966f50010c145d24d6", - "affectsGlobalScope": false - }, - "../../src/utils/string-checkers.ts": { - "version": "187e5ffc9e612af3378833d7aabddb8f322140be491e1f4fc7e2fd3fe88b09a6", - "signature": "da699f0dd9860fe47044464afcbb21cfedded1c9a47a97ddd9f05d46860522d6", - "affectsGlobalScope": false - }, - "../../src/utils/string-utils.ts": { - "version": "d91538e7f3b7bad31500d2560d9c6a9c0db8e05a9ce7b61d3fa4197fc214f3d6", - "signature": "6bbf2a79575477f413b697c41ec2159bf57cce295ed85e5b7e299188d9711622", - "affectsGlobalScope": false - }, - "../../src/utils/svg-utils.ts": { - "version": "8dc63882eb4946c49b8c315b7dcb8b86ade9ec3209d734797d3edb0051c9790d", - "signature": "132eb56f2336282750f83ea9fb2c8979ec2b4c98d20e728b76f8484c1983894d", - "affectsGlobalScope": false - }, - "../../src/utils/index.ts": { - "version": "abf2ab6a696c7583e874db156ae487c8c944b563f2f1c4af493bfebe828b094c", - "signature": "28bbcec9fef8585bfaa13a5afbd11c4ade3a5c1b30878c27512742be51e14118", - "affectsGlobalScope": false - }, - "../../src/models/color.model.ts": { - "version": "776ee2acf248a92bc52e0706bf35a963a2d80511572b1afa14923163396390c1", - "signature": "aff357a9a89f0c7b85b8d0c5061731af7505ef541ab980bf356e4586529f9304", - "affectsGlobalScope": false - }, - "../../src/models/transform-2d.ts": { - "version": "13719834050bd0e27ae58038ae4a6f428db75a52e5c3de530eb82e79d3a1c7ff", - "signature": "aacdf251efa1e5c9a1ceaa58f84ee68e6db05a08807c7c62eea0fd462bd3f9c7", - "affectsGlobalScope": false - }, - "../../src/models/range.ts": { - "version": "92f02406cb8b2237c7b6a3015df0a315e2a040d5c68d7a54951110e6a4519037", - "signature": "f0361570883ac73a6dbbe01cbcb471e27cfa190584d9aba1d3639617b9b27230", - "affectsGlobalScope": false - }, - "../../src/models/path-2d.ts": { - "version": "4231db73734d02129ed02a6a05fc82e3bec213344223fc1c1d4a583b756c1b2b", - "signature": "99ef7180919cc31f0e7c4dd5d81d2f41eba5c15dab215a75d30180f4ac0bbb82", - "affectsGlobalScope": false - }, - "../../src/models/path/djikstra/djikstra.ts": { - "version": "ada966ef7a16ee7fd377515d18a7a934734026ff85538ad22465ef6fc2599e70", - "signature": "dcc5fec32da18167a6a2eeac0c1ba1cbc4dd293fffab77e8d21e8905182f208c", - "affectsGlobalScope": false - }, - "../../src/models/sorting/bucket-sort.ts": { - "version": "7456e8e54c6fc6adf53fb80383c80266cd7d589216303e130747e0e6afa4c40f", - "signature": "97af01927d229d5d49d6fc4c4d46f4f601132b97b4684780ce52fef4640650fb", - "affectsGlobalScope": false - }, - "../../src/models/sorting/counting-sort.ts": { - "version": "09950cd35aaa17810cbde1ded879d17cb3819f4910d93b7f1a980ab274c00c47", - "signature": "1c477c1dbdace75d884e2faaca94d7482bb09c162804716e1ecad65447582c2b", - "affectsGlobalScope": false - }, - "../../src/models/sorting/heap-sort.ts": { - "version": "9d334ddf33fb83502bacc1017d2f12369fe71c2ebf710c3afdd2699028e44087", - "signature": "630f14e5e499ef5d5f1586068a5a4292990bfc530f2611d871b70437ba71256a", - "affectsGlobalScope": false - }, - "../../src/models/sorting/insertion-sort.ts": { - "version": "b33d5bf0f475a14465b1b42adbdf66d85922162921356cbb9da19fa8e8ef8f77", - "signature": "dda38ae26d2f43e25a69c76f03165a460e0532ca729547ab0d1980b418e53d37", - "affectsGlobalScope": false - }, - "../../src/models/sorting/merge-sort.ts": { - "version": "5e3f40dec0d5bb3fb6920fa13e8708f74b28b3f7cf0113e9f6b25746033ba83b", - "signature": "93c771a7938f5415b498f35ffafd1ecf5552303be140d0d1016c6d3fcf94d4f2", - "affectsGlobalScope": false - }, - "../../src/models/sorting/quick-sort.ts": { - "version": "5b24474867613b601d4f75837021a8cae6a615175a7fe75b1b370e545bfa1223", - "signature": "4a3e314336fe8b3a0da4df3a46250984c0c63fd4c83eb0c800a77730e5340576", - "affectsGlobalScope": false - }, - "../../src/models/sorting/radix-sort.ts": { - "version": "de22ad70b194787bbc13c6d31d9656c9460bc82814a8cdd699b0008438068c4e", - "signature": "1dd8e87a920201f78246875539d750572442351d8c819b498c46eb17bcbfa4be", - "affectsGlobalScope": false - }, - "../../src/models/sorting/index.ts": { - "version": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "signature": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/g43-collection.ts": { - "version": "3491c6d39311fbe4fc3bcbe1ec5fb8bef395ef0662091e9ad4c254e741d3d202", - "signature": "6a3dbd63b33ad6af0c049e9bb949cae11375bbc0aa3e157197b2b416d3cdec80", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/priority-queue.ts": { - "version": "f065b3f3566f3b354be2b5e7fae311719af9efcd64e8ae9d819e21349de633ed", - "signature": "e59a1132446be69ceec38ed1fecefd092365a2d26922e3c9138b5a84cc06ba6e", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-queue.ts": { - "version": "2b5bf36ed31e60402bc51b5ea793a638e3fa42d83d8fe0de3812508a49574e5f", - "signature": "e448ca5920dff37a1a39653848f69d9cb38ac533bb574afb4b8c56de7831a149", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-tree.ts": { - "version": "ff4401d8052ee4f7c325c971add9788a75512562410abac1be7df15ee41cc6f7", - "signature": "8057c79c325359294c01e10128eb255d1e23f383496e9e1c8ac70f90e0bbb7a0", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/quad-tree/quad-tree.ts": { - "version": "91245f2d3f1f4473a55a8a9aa86fe26961a576a27c1cb400cbae453d571e178c", - "signature": "d640f0eeda4021c66c1e2bf5e9066f6435c48ca338fba266f66f498fbcdb5418", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": { - "version": "8fa132202258e51203aa89aedfdc7cf6cecfd1da59681b0409e6efc5decdcc58", - "signature": "e5aff4adb33c5aecd93fba3e3161a30d7910445c5983b976ea5f262cd9085fe2", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": { - "version": "07a8b76963bb23ab2b00ada85c87498ee71632399ee0c845742c35376b722cd5", - "signature": "b339503e7cbe900de0526f42342633a464dbad618c373293a15f3ca995d07631", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": { - "version": "de50505542440d115e784036ac4ec7fd2773527d9a08584b047b954b7c77ca35", - "signature": "8aa93210ec89f2a1a5246e43b1f045c6f86865d2f627eebfa09409d72cafa762", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid-filters.ts": { - "version": "cb0bc6a63d71271e1f3d4c7c1ebb2d1bb29124a3ab33ee0eec35d2221ce941a1", - "signature": "ab7dcd1168a23b50c2ea1d190244130d0a0b8f422ccede6b180ab18a86af3fa7", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": { - "version": "96a463327277ce295d2a9ca78f31c2d74ffd15983957190c3fae2b3ca9081126", - "signature": "94a20cdb32c9a8a5819b9401e1bb95af366bcc05b3c6e6356ac6bd47dadd19ec", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": { - "version": "29d80a04115c8635e6b0b24ecc98f7e16ce58d4c0b8a37063207434e94eb98cf", - "signature": "f249d93fd0d9da3c6f5887a7c8a5fda1ecfd8af1301a9b7872dafc4cdecf0e24", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": { - "version": "86de318f728a60ca3bf5401a67408101cd98f77525a2d65d10598d81b3ddf188", - "signature": "0fc33a551fb7744d0eef4c40cf2731388f59f44121355b3c3500450189f43265", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": { - "version": "824986806ea8d9f18c11ce093e65c999fae5ce390dd7e33814b0797d6a246c06", - "signature": "e0fbd7048f44fdcd7dd56f20dcf931fd7457e41425ca06e1a015999d3702734d", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": { - "version": "c755274560b257a713c780ba8590bdff31d9d29c47ba4cfc85886ad2cda52c8c", - "signature": "1af16b4f587f08a9500636b75dfc434fd4c7dc18b1c98d2d9caa1a338648956b", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": { - "version": "598165b4196d328977dff28960441dbfc039e4a9098e0efa97cc82920a9dda4d", - "signature": "f9cdf170f7d0e1b9f46f07683109fa3b5dfc822f5d30324cc8b46078a42bee3a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": { - "version": "bf6eda0dc000371278644110ca27282397bc8a8ad82fd85cb88e335a6f75a496", - "signature": "8a1fd266929ab3cf53371a7c1b717c2eb84b4ef047601d2cf449617b0c8fb90e", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": { - "version": "51f0b9c0aa74388752a0d63292601271fbd257eccc83544d5447374624e641e7", - "signature": "534686a8904822637fd9a6d927639713a022112c4236ae9538765ca6cec23910", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": { - "version": "24929a70c0258a058d34ee0b72aef8fb6514f3e49d45daf191a9b190228fc713", - "signature": "5cf90fa058553cdfebe7d7dcd90ec458870cbf88c0135ea45fe6f3e8f6712382", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/index.ts": { - "version": "2bdb43e0b9ea7d462087cac6200de24c66125fa06bae506ce10daa1b5729b18e", - "signature": "7c98072d94cc4ad693a11c195a961857c9041cae0db42352fda68e732ff86d94", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/abstract-linked-list.ts": { - "version": "be75ae95c781328fa24ccb2bc41b16f90a30300e8939524517405ee4a0761da7", - "signature": "7c54b172a294a0570b9c9a899584657dff8ba681c73e421bb9196f25c6cbf447", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/linked-list-entry.ts": { - "version": "e53c7c0c413705bb052cd7b357709f7a467e4b1370894d04a01c6158fffca91b", - "signature": "67465698c48aa367337f2462317f0cffffe35fad41f461ad698b9df519400f70", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/list.ts": { - "version": "7eef19e3ee169f7911e044bac2fbd0c91fd2a362d61283b56c346478a7381eb9", - "signature": "2c051e5ab0bef0bc0c682b21378db49d5bd89cc1febc1fa72af9793e6273dc14", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/bi-directional-linked-list.ts": { - "version": "1437ecf610ae51b56ac43db4a65a8a965eaaacdaf8c6a2a0b99bfeb02b6b41c9", - "signature": "12dbcd0a59507177a27a51ddddf41277cb26f57602b95c81904f5bbdebfa67b4", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/one-directional-linked-list.ts": { - "version": "476a322328b312c8b5aa856adec99f4f004da34d29bcab2502b12a0e41c9cf1f", - "signature": "b4676081c53323149ef89408cbba62e0c7abcacdb76ff1f41bf101c4ec8019ee", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/sorted-array-list.ts": { - "version": "94fa42fe048888659c39f29d35b892d6cb54734e08dc5aad30ad7b41806124a6", - "signature": "40ec3e93fc1bf2cadf20863dabce10d76c5fccc0f9f8684a4466d3925adb6204", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/index.ts": { - "version": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "signature": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "affectsGlobalScope": false - }, - "../../src/models/index.ts": { - "version": "d2da69f5e5dd6b37e959fd863a802128dcac9cc2fbe98b3bbb51a5dcb4c0794f", - "signature": "df8689b1080d4d4cfdde1f31b6b7ea8d753f4b46a7d9d131c8ca1988a9b11b60", - "affectsGlobalScope": false - }, - "../../src/math/vector2.ts": { - "version": "d0eb17a32cd6e3248b0cec4687cbaf8128c1ee8554611cb50e38b80cb8319cac", - "signature": "962b5952f2e8639f056e5b77ab990c7d73ce8f675433bba5e8481e81fcc9079b", - "affectsGlobalScope": false - }, - "../../src/math/vector2f.ts": { - "version": "0b5821c94c6d8dd5c8aaa3527f3e3a236f0cc53038b1ce71e20c8e45e4728207", - "signature": "a1b318776c0473f523ff369a8350511c269aff650d7e2a50fbb961ffd4981848", - "affectsGlobalScope": false - }, - "../../src/math/vector3.ts": { - "version": "0d403a453b972a684c05fdbabfb5b70c7e389905d1f9d4a483ea0fd351c39558", - "signature": "55d7e0e90e70c571f6282c2a2cf7d8ab145ff46d3c4728793ee001992568eecb", - "affectsGlobalScope": false - }, - "../../src/math/vector4.ts": { - "version": "d1871cd97f10f4462513e1ae61643563ad9f4ae3b6b1ddd2bc018d75219f6420", - "signature": "0ffef5cb77a17fe28a0ca6b28dcf2357b5e23f1096c341bf7420607545896b8c", - "affectsGlobalScope": false - }, - "../../src/math/mat4.ts": { - "version": "c4095c8789d6fa82bb277e0bc001b6441243804a8f02d3ec6aaf761877043b4c", - "signature": "209eaf230089927380d1d264db1cdb07056573b6849795f7a5fc99771b63d552", - "affectsGlobalScope": false - }, - "../../src/math/index.ts": { - "version": "4258d5499ff9f2e172bc3610870a934e344badf88e240240b26e1e3a542675d1", - "signature": "63b0eef4c9792504d1eaef92d614fe2d7f12bd3d500d7e33c37e2e5a07c77d65", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-2d.interface.ts": { - "version": "9d51a573f378e14c274418a605f66c21c430fe4cc7b021144d90993fbdcd63d0", - "signature": "ade565f39670710be3e5b076faeb6746f9db5b7e403316c101ade466f25c9aa2", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-3d.interface.ts": { - "version": "109172f30136e4a2883cef0d4744a6a9eff312e7b51a408ccd5bef44d3b84247", - "signature": "855f4dd6b62df6dc1c60d542cdcf0b51def2b735eb7010f22247efd5b7daf034", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xywh.ts": { - "version": "04bf6473f1eac63f9a79cc38e67709d4c805c54e2fc5af322e16fa1f3b07444d", - "signature": "15e87df320d6cdd970d63692cf2aff06872df87832ee40a4a6ef2b2220fcddf1", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xyzwhd.ts": { - "version": "4380cd1db1f0a315cafef3dc0d1cae48e0c5548bfd92077fe803d29a3db6993c", - "signature": "9ac9ded8a43336d4f2a4f0a0e2358dfa1ad9ba32b5458f327a847d87175f1374", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-2d.ts": { - "version": "95a7b1acee9e3fe6ed3fdc75291255e2c74c5387e0d0b50aad2657b9fa9b66b1", - "signature": "4748d9a2c21bb4d6df6220ce86bb3886009d72cf9524369ac17ed20bbc10a3ca", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-3d.ts": { - "version": "1a09dc77656bf3fda15451f1185b29f4b7f1794424fe806b253c58bc7234f5a4", - "signature": "49c4ae94c87f582936792dad6cc64e96ffcba0a6464e60a45f645d4cae22bf33", - "affectsGlobalScope": false - }, - "../../src/types/horizontal-align.type.ts": { - "version": "d06ba169f6324ee50312674700ba9ee696ac17c0c08212f27f99e75bea5993fe", - "signature": "fda93671fd83980a94ab38048cf2eb1780c0bcfe7db4f97c3103b7076fb34765", - "affectsGlobalScope": false - }, - "../../src/types/key-value.interface.ts": { - "version": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "signature": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "affectsGlobalScope": false - }, - "../../src/types/nested-string-map.interface.ts": { - "version": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "signature": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "affectsGlobalScope": false - }, - "../../src/types/object-entry.interface.ts": { - "version": "d3b9f85cd2d7253362168e060b8885d3d8a19d189ade6e0c10cf1e93d18e23d8", - "signature": "a552777985330cc98b0eec4d6bcb2de6ac8f11de46cc9a713022f694b9e9843d", - "affectsGlobalScope": false - }, - "../../src/types/optional.type.ts": { - "version": "6997dfaba3a558195a3cc79dead1c37ce3d997a61ed7ed84620a374fee6b0836", - "signature": "845ab0b08b564e517cf09bf70c12224980c90048e1744720b2ac19117314e60d", - "affectsGlobalScope": false - }, - "../../src/types/prop.type.ts": { - "version": "661af54a97b7b109ac73573ab3a225407099a23a63bf03ff3b5345e7e0a5a6f9", - "signature": "b1315a2ee2da0cb7ab6a1a6dbe1bcb1035b1a287640a6b370b5d8c201b19f866", - "affectsGlobalScope": false - }, - "../../src/types/property-decorator.type.ts": { - "version": "c4e5ecc5e5f701b9312c0f936c9e2ef84e475eb132018417d67432e393e43fdd", - "signature": "3dde93e76ac376c7f7fc9e3e9b2f71dcd586d6b58a4bc224a54c8fe4f79f2963", - "affectsGlobalScope": false - }, - "../../src/types/ray2d.ts": { - "version": "99e3cf17e8d6c9df593bdaa44193233da0e7d07b58cd88c2d34c2eb154f7aac6", - "signature": "f920c4be30195aa7d6857635352f2b3d15c4e9defee5998b78b6e04ce861b739", - "affectsGlobalScope": false - }, - "../../src/types/ray3d.ts": { - "version": "7eabde7d54f900db71c2d174506d4c10dbca9a08154fea4228e7cf8d921ce532", - "signature": "9c6b270ae159c7c5e79122d37b8bbe06d17e6a3861bd334714aedc987b1dd2d5", - "affectsGlobalScope": false - }, - "../../src/types/round-data.type.ts": { - "version": "b3491a4f6737e390c14ecad6ecdd65c6dec6fc48da8c0e1466dae90d5640b6e2", - "signature": "80fbbfeb93fe88fb8d858a350b02fe6aa4423503aeb5dbf3090e3a7412bc1dc8", - "affectsGlobalScope": false - }, - "../../src/types/size.interaface.ts": { - "version": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "signature": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "affectsGlobalScope": false - }, - "../../src/types/string-map.interface.ts": { - "version": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "signature": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "affectsGlobalScope": false - }, - "../../src/types/vertical-align.type.ts": { - "version": "16c78f374aa3023e0cc2cd2f07d17c50449a00003a71fa62f62bf9a026dc19c8", - "signature": "da8264e53a7ebd72060051e86af1f9a75269dcb074b4a1a4a3e79345960a44d2", - "affectsGlobalScope": false - }, - "../../src/types/text-options.interface.ts": { - "version": "e484dc0310cb9eeebe96571fc6bf1966f5d2bdf1bb4e4bd6b2dc612f2938f323", - "signature": "651002f3fa3d848be716e5629d60a82d8e54860ff31c0566d518ec9abec5e124", - "affectsGlobalScope": false - }, - "../../src/types/type.interface.ts": { - "version": "9e3cca0b8b220ab9b2e7156ef114dd57e3af8c45825cceecbf1039101cf92f91", - "signature": "5229e30a8070892ff53abbbfeed68c8501c8aa20e9d9d3058e413285add0a540", - "affectsGlobalScope": false - }, - "../../src/types/unit-number.type.ts": { - "version": "79bc140a34c49381a3a4cc0dc92f5843b9d36e1e17075a79c7f2529555b927c4", - "signature": "1ece0739292250136df033f718d3ae572989eff650e18015f79e0c0c0e66ab2f", - "affectsGlobalScope": false - }, - "../../src/types/index.ts": { - "version": "661d955487f751a303b88bbddb52ebc9306fed67e9f92022cd8686787718ffea", - "signature": "5e78289f84211e154a1f54213c4928913bcbe7fea15dcfdc9c2311bbf215793a", - "affectsGlobalScope": false - }, - "../../src/decorators/deprecated.decorator.ts": { - "version": "8ab122563b7c824c2dac645a344f797bcaeac7c0932d81a4186232d5a7becdb0", - "signature": "6694bd27111fff2d5c9db6c60bfa2f6da9de398bf5ee9678b50b17e9f65b241a", - "affectsGlobalScope": false - }, - "../../src/decorators/final-class.decorator.ts": { - "version": "af9bbd0c0f43d0928d56fe4a9bbe391f230bd7f7b5b1862c3006fd60f0ad6c70", - "signature": "a47b07a689396df20a7b6da401a04399e847a779ad6028ca344ddd16a7edcfa1", - "affectsGlobalScope": false - }, - "../../src/decorators/mapper.decorator.ts": { - "version": "7c4b9c096895327b2a8d16d72b221370408bc6ecc9bd4ffd65f233b74cb885e7", - "signature": "abedd024cc1a57e2886282d60fd011dbb9e9dc14bb33abe66c959029efc921d4", - "affectsGlobalScope": false - }, - "../../src/decorators/singleton.decorator.ts": { - "version": "27948b31c1aad486b9b96fcf44519c895d3ea5289c0a3b20a318c255f09cc73a", - "signature": "84926c3e0db086e60a26337f0abb38449ac83cfdeb555588dbce0663d6ca7ba3", - "affectsGlobalScope": false - }, - "../../src/decorators/watch.decorator.ts": { - "version": "7f7ef493115bd5df9e207bb648f0b8317c213c87e67f9ba01241c116d37602d4", - "signature": "8d1a7fe3bdebc1b00243625a08e839653f19b591fc85ef02377a846293b334c4", - "affectsGlobalScope": false - }, - "../../src/decorators/index.ts": { - "version": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "signature": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "affectsGlobalScope": false - }, - "../../src/errors/not-browser.exception.ts": { - "version": "7ac9a7cc60ae78bc4170a03c03af39fb03ffa79f1b1e47f7fe5e69a830d14a28", - "signature": "cecb037f713162767a6345d5b74fcc6f50ee2cbbf52d27cdd6dc6777fe94bba4", - "affectsGlobalScope": false - }, - "../../src/errors/null-pointer.exception.ts": { - "version": "5e4c28420df4a6cbafad6d11832de5f435badbafb7deecd0278c8222e1cffd67", - "signature": "84f2239b5c384d12bc122aeab17d6147720a2c05a45e7c60e8c760d600aca3c9", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-parameter.exception.ts": { - "version": "0a6beec39c8e46002f99f858b3d8427d7a413b01d5d7e0e6d7b32c86fe7317c7", - "signature": "0eb0fefbebefe664a50256f24e670a6fdbb61682a15434e5111d28eccde6c972", - "affectsGlobalScope": false - }, - "../../src/errors/missing-parameter.error.ts": { - "version": "98c39b59e0dc611b25b773a0be984859f57c7b3e4eeeb4e91e1a81656d1c544f", - "signature": "1462d6fdae79ddb9d35fbe2d91646e000373f944b08d6c716a95c8368a32453b", - "affectsGlobalScope": false - }, - "../../src/errors/no-database-connection.error.ts": { - "version": "2e6a228de7228ac55c73a72006b1c9b62fda994e59787377825000faa3349741", - "signature": "1b419fef46fb80a50d79b3b1a75535d91f33cabeee68487282c79bf9b74b8f3d", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-type.exception.ts": { - "version": "eec78e492e246937c13113dd1349e2ccf495dc44a853ccbaea7c758b1e8b7fc3", - "signature": "de45bfece05ace8859827e8b7ec9e24553387b4662632ccea825d82ff05493f8", - "affectsGlobalScope": false - }, - "../../src/errors/index.ts": { - "version": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "signature": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-manager.ts": { - "version": "704a103f3a2ab7f645caee9d1458c81ce4778f376869e400ec5f901d2b57eb07", - "signature": "38df54fe86efdedd2c8a9dfec356e5f0d535eb03892ed26675b10957ba01b71c", - "affectsGlobalScope": false - }, - "../../src/dom/types/canvas-shadow-config.ts": { - "version": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "signature": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-utils.ts": { - "version": "0388fe6cdbe24e3e657d2acb6209086e28339c8a5ac4f9826d50a359caf2c697", - "signature": "dba894fb04c7175a0949fd1c4b6359ce7adc52810aaac833e5cdcc813d496615", - "affectsGlobalScope": false - }, - "../../src/dom/dom-get.ts": { - "version": "01869a90d48283a227656b7b8432ece2b78e4740989a923e5f9a6fd01c40d8ed", - "signature": "3d2f3580b512794b58d4c27077641c7ba15e6969de3a45ccffe25769c366b0ba", - "affectsGlobalScope": false - }, - "../../src/components/file-manager.ts": { - "version": "4ac2f4b362b3a4697d7ff17cf13211bb2cc688c76dc4a98b568b8dbf94a25ad8", - "signature": "43961df2c2fff0fb28d34607cb14fa4bf7eaa6706fa47bd97633577d4b84441e", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-priority.ts": { - "version": "fc0cd570131b61e553eb24277b28ee885323a13599a4bd549f12091491d38513", - "signature": "16f9614ec07e7ce3f5903cf15fe47b95c76e65ca53f0b2ae8411ac972d6fa3cc", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-default-formatter.ts": { - "version": "e2969d84a9dff58e2ed1ded0bf3b3504054164456595d3ddd04c5ab01b55e06f", - "signature": "40986e5798b7a98ba2c646d6c84bd9213fc619300375e1af45332945b6ca7d64", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-callback-holder.ts": { - "version": "6dd9141ab5ff84dfb270ced5b06b2724434ebbf9b88110e9dc4fdf0b1408825f", - "signature": "cf7500bb9afe40afb60618ef88e22685082eda4351ece51ad6085c9940fb02cb", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-instance.ts": { - "version": "e7baa1c085fcc280bce17bccdaa67f76e355ecc4e0e4784655e9441e9337a2d0", - "signature": "a66693f3e0aa4f3b99361943fb36b458073acc0614c0140540ca13f23e4bcc29", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger.ts": { - "version": "0abfbc222e7aa1222e93ceb0bd99f161e5e3a8f2e5039007e2efe6e1cd9f2a54", - "signature": "a4f518f2914c1cddffa0ccba8f82facc3fe791cd4fdb40c16368f24aa7effe29", - "affectsGlobalScope": false - }, - "../../src/components/g-map.ts": { - "version": "6403a6e7b80fe9689dfdd8cc4866687d7a3847d14755d7cb39980d0c5af7d967", - "signature": "b6d1ffc0e87b2b5a5e6964847ae9e2b77fa9b1934053a38c94a3ed85d93ef669", - "affectsGlobalScope": false - }, - "../../src/components/key-value-counter.ts": { - "version": "dfecbf131b84c1629d1c43286e64d42e3987204f98aca41d0f32909a85b65a68", - "signature": "bd506792e3d0f86c1b148870a530470c37c0234319114953473dbe73a84940ec", - "affectsGlobalScope": false - }, - "../../src/components/number-counter.ts": { - "version": "ad78c0b6bef281b4ca28e4eadc7e6fc399e67f08a2322497930cac5ae559ac82", - "signature": "3ccf0c0de44729cc182e1f6aad37c7bf3562dc9b3ccc339e7b10e1ea3592cab1", - "affectsGlobalScope": false - }, - "../../src/components/paginator.ts": { - "version": "1ae846e1f799abb1ffdc26539894217991dd4a2c1a885baf291ba0b0851af312", - "signature": "fec09413ee4e53b7534333443ae2cafce7f5a21cd817369f46293fbb39194dcf", - "affectsGlobalScope": false - }, - "../../src/components/bidirectional-graph.ts": { - "version": "39ee7b58ac907fff42acfcd04711a51d782ed1ad4f9affc4abf3447b24158e2b", - "signature": "75c0f524b8a9d4bd571ce0c68ab80c1d831259b9654b02fc35cfa64f3cffc612", - "affectsGlobalScope": false - }, - "../../src/components/index.ts": { - "version": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "signature": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "affectsGlobalScope": false - }, - "../../src/validators/index.ts": { - "version": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "signature": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "affectsGlobalScope": false - }, - "../../src/misc/slovak-stemmer.ts": { - "version": "6d5b2710b30af486ecd78c384281e5c4b25b6f5050f67402a8fb0afee709ea56", - "signature": "97ef5ec860c7355db6cf7c1ee5a8adcdfd86ceb3e5165803961f56b3757d8647", - "affectsGlobalScope": false - }, - "../../src/misc/ajax.ts": { - "version": "6a24655e92cf6b5c79334bca1070de293462e2886d9724e498925114732a1554", - "signature": "47e4fcd63be64c766df7e9d0445e6794e277ba4e31a88483ae8c209203af921a", - "affectsGlobalScope": false - }, - "../../src/misc/file-size-formatter.ts": { - "version": "10d25383ee7fcd8aef05c6ffc59c1b38c105ee737c8e470b6fbc23b59e4b78f4", - "signature": "a60ae53946c945ed78bfdad82c0f0b69af9033ef7a59632a2381ec1e60d00717", - "affectsGlobalScope": false - }, - "../../src/misc/simple-loop.ts": { - "version": "55f3539e92174fd5608777e34178e9dd157aee2be3e8b792890baccedfd83bf7", - "signature": "d5cdadaff8c2dd309daa8dbbe3c0dd7cb3e171b28ea8f35130d474d48f123e16", - "affectsGlobalScope": false - }, - "../../src/misc/runtime-validators.ts": { - "version": "eaa40834d14246581c556e6e0e246610e8a11de53b7cab941fce5af6c3dbe602", - "signature": "d0e256ede4130bfa23543f342bffbb84019ebedffadb5a0dace8b99bfa756739", - "affectsGlobalScope": false - }, - "../../src/misc/index.ts": { - "version": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "signature": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "affectsGlobalScope": false - }, - "../../src/physics/closest-2d.ts": { - "version": "083451549e5d2866a406baecfae5bc6d83d9b9d355061a3950f46fe26b3dd26d", - "signature": "33d797af592edeb1eb2e343cdf22e4321707257e9832641240150ac742875f5e", - "affectsGlobalScope": false - }, - "../../src/physics/closest-3d.ts": { - "version": "65c1b49820c1db877ce527535e6bd1e5acc9af0d24f691d4bb91c813e156b562", - "signature": "6daa9238a5defd6245e97bb12cbb74c14146a0b3e93c74311feb01246ef6a26f", - "affectsGlobalScope": false - }, - "../../src/physics/distances-2d.ts": { - "version": "b0151f7046ff0444d1f2382a3f58fbe663920c6565ad0219be52ee265ec2ee79", - "signature": "ef5b2120ebfce476d2295100363146af7a3cccb939a01c235a418d41360e45d3", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-2d.ts": { - "version": "06144ab2cc324d688c3e83d3078f9bc8e86f4cf0ba59de534d442810263b072d", - "signature": "5cbeca0bb58b5504c2573890a3f710cb386fcd2b2260ad39508f57f92e023f80", - "affectsGlobalScope": false - }, - "../../src/physics/distances-3d.ts": { - "version": "5cacf11412f8d5c6791b0aad3323482bd995233aa2ca1b8ef93185a991f29ae3", - "signature": "391950cd497a146f3bb33ec37aeb6821bad9e6d594383d8cf104c8e2c92df569", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-3d.ts": { - "version": "c16ac35d28ebb83f247eb5c6aab289e818218e231ae4e8347b421e121651152b", - "signature": "4a5c737cec4c5e97ac063fd7a7bb79823a12e3a158d208153ef421993a9827b6", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-3d.ts": { - "version": "e9070b9f5b4255f97935125c7cdeb53823bae23ede5afdd7932b8069f76d886f", - "signature": "6ede89f2bc636d58fc256d3e44014f9d65285f0505ce4dba4e713d5efdd3e81b", - "affectsGlobalScope": false - }, - "../../src/physics/objects/object-convertors.ts": { - "version": "5cfe350a5a71db156ae34cdebb9659eab327dd19e6477dadd06e2d2579adb186", - "signature": "57bd6f64232764990bb1d877c29c8c4b3cc77cd78267d47b65fddbb73997afa4", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/ray-2d.ts": { - "version": "985de7949c35d39c15fd4d6b244a3f70feabed52054ce21bf0b67740cf16afd0", - "signature": "3000b6e35b3fecb95a4c268c6bf225b0bf2415e949f347a68727cb2f77adcdc8", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/object2-d.ts": { - "version": "9452670a2067e2a1f31316fa9051e0d6be7caa13870e18eb280291a491e6900c", - "signature": "dd7fb9327c53dfcb289884fe0344d94c97ee63a1616191632703cdf071d89c77", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/sphere.ts": { - "version": "7fa784ed4b1b7f6144cf3921edb7bc797d82b74397157e92311f28ffa2a766f0", - "signature": "2fb382a291e244f73d43ad20f46a99786f5bce47a4a52f88d0ada278b06d25de", - "affectsGlobalScope": false - }, - "../../src/physics/bounders-2d.ts": { - "version": "d477990b0e1a0ac464bfcda31561fb3b334580bbce81217815ab0c0c73bea4a8", - "signature": "34411f5ca9c07bc8264fbca05f9778ef816c6c01317405794d162b5c33dc11fb", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/rect.ts": { - "version": "d10f001dc7fcb86dd3b1314da4cb15d1c6bad835b3728d8f631a02d77ca0bcae", - "signature": "886ece4475d033c76ca56099404a6ff3eb212e4b985a2d39761d19c84e152a94", - "affectsGlobalScope": false - }, - "../../src/physics/objects/index.ts": { - "version": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "signature": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-2d.ts": { - "version": "4323af0c0af0ba6ea021ed5e28975db23be983eff8d6e018765c594fa52a3a37", - "signature": "d3cbba6a7adfa0ce84b393f9df210ffb259d7b34078daa0ca6b354d98286e418", - "affectsGlobalScope": false - }, - "../../src/physics/index.ts": { - "version": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "signature": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.fixture.ts": { - "version": "6f75fc70576fee07afd8ac355436f9c045fbee5d72004e6125ea6d22c7b8979e", - "signature": "ce94af9d0980c8e834150dd9c4090f51ea51867140420e5494b51470c48a77d1", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.mapper.ts": { - "version": "8295eb4539f238dba561098741feea64af34ba11058d61c640410d7fca16bc2f", - "signature": "02c3356891ac37b8cc8db91a1f1f3ec58f5e002cf0e425b909d3e212f7cad0cb", - "affectsGlobalScope": false - }, - "../../src/tests/abstract-database.fixture.ts": { - "version": "91adb8c41b44915cc262e32a88c0747ae9551e7e272e898dda04f5a3759a3c47", - "signature": "3d9d147c31ba4bad323cca97e4e5dfe10c2d7b10a6422da98a1923dd4336787d", - "affectsGlobalScope": false - }, - "../../src/tests/paginate.model.ts": { - "version": "e7ba927d5a8c8653c7f3416b7e9c6b7246e329bef258b3d03b0020b9075c2708", - "signature": "86f823fd364c395ef3eee14e7b377296c523d2846e7ddb85388a01fc609db2ac", - "affectsGlobalScope": false - }, - "../../src/gutils.ts": { - "version": "12b68468830f1c6169062eae3030671eae3a97bc0e3c574065810ef68d356f65", - "signature": "79b9cdaa38e363129b0aca2a79a301789ea09ceeb69747c74e0bfda3202aed68", - "affectsGlobalScope": false - }, - "../../src/mockdata.ts": { - "version": "90c9877cd2e693edf94f8392f615a2e4927733ace7a1c072454f6aa9b52aa3f7", - "signature": "69456433797556ac60f72c60226e7589f86e1af8bc833c1157cc713adbc7de18", - "affectsGlobalScope": false - }, - "../../src/common.ts": { - "version": "4ed4fb6cbd50c20471f867f405dc6a05023956b0e7bbc69d41f948785294d46a", - "signature": "b054c6aded2ec2b4c3e98da3b613e66ddc528ebd840c606bbe7f94b2be84ebd1", - "affectsGlobalScope": false - }, - "../../src/index.ts": { - "version": "830adf9f6d6531c5159fc4f4148fa383a9e100411732b17a44d1e2039137973d", - "signature": "213e8b02b44c33d262dccc853629e9f2e505a7f644d5f10fb6358d3755d67dd5", - "affectsGlobalScope": false - }, - "../../src/utils/fileutils.ts": { - "version": "4417956f5fcda4969f0491aee842ebf83b9f7a11334825c8a6bd715c013a28fc", - "signature": "8ae96f6f0a7b3ac77a6f9b9498f0852f65d72a2e075e2a2edcdce519df2084bd", - "affectsGlobalScope": false - }, - "../../src/node.ts": { - "version": "9485d520ccfe74c26606276355e3396cab9ffc508a3f23e6204fe019a6055fb1", - "signature": "4fd53277b23af7187f1044ac011feaefc4cf3369f639accb7816b1d23c50e0e6", - "affectsGlobalScope": false - }, - "../../src/utils/domutils.ts": { - "version": "fce9cb6be46acbc59599c5402d3b957fbdd1f1adf1313d71da746e40f6732748", - "signature": "84c29941630a7ff933926990ba86721a24fe4324657525c3fde6e57450eea613", - "affectsGlobalScope": false - }, - "../../src/web.ts": { - "version": "b38301821dcde1763e53ff6abb7b93d872ce87e9659e51df891c44dd222bb9f3", - "signature": "0aacf4428ad5f748eed087e113f83b8ea7fa88c4f9e7734a884c0a1751ae9bf4", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-camera.ts": { - "version": "9438ea841f924cc78350099aebf81d06b739ad80abc7400e17a56c6f290216c3", - "signature": "f8776af88c918a6752dfb6f91cfed753817c2302e8961065a32ef4d3671ecf30", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-misc-utilts.ts": { - "version": "4bd7748a9263f42c74088869b563af32f1049ac8888077bfef37c913dc7748b8", - "signature": "a0f436ac0bc6d56c9559e7976cc1badea7c296b023b7034db6af0f53af3b1210", - "affectsGlobalScope": false - }, - "../../src/dom/drawer.ts": { - "version": "ec7b4797ff8a62aceecd60adb122ffa79a7efd8c161d8e9949f2d77c09715de3", - "signature": "bcc65583f6a3709e4d3994cf3c95b2cba3488be5b02146f5017b050d0539675c", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer.ts": { - "version": "d2b05e002b13d3a498582a417c22a6fa9dd305f0c6120294443827dc1ae39be6", - "signature": "ea3cd09e41390c96971ba5182d1879adb4b75b3cd0c6fc381dcddb7f13a48fe1", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer-advanced.ts": { - "version": "108154eec4375866544b8b590592bdd9544121838a98cfc72bdc19391edc74eb", - "signature": "8379b8a60762750d76d3d5a4a142639af2cd224908d605a5801865bce5452aa8", - "affectsGlobalScope": false - }, - "../../src/dom/element-builder.ts": { - "version": "f77bf02ac480cc5619af127394a55bc29dc1c1316460d56c888fdc1c52b4c9ac", - "signature": "d75b4f87328adcb411a0483f140575d4e360982d57e8ce3791dc5c4c37a2d103", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.interface.ts": { - "version": "5d0c6b9dad60dde0fb8e3703bde5d6c93912da4786a5ce9d23675ccd9154b885", - "signature": "7989797f0d8fdf465436c35c4312d0b1ad68e02329f46174b4f2e11b1f3270cb", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.model.ts": { - "version": "ddd91a1b4bcedd7dfa467e5d61160ecb03e3ffc1dfbd3d8d6ecf11ab7300bfce", - "signature": "67ecaf5354bbaa4b5bd6a0868c97d2ed404e981840f986aefe2c92f074dc7ddb", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": { - "version": "973392b476ce717b24accaf327ab93d6b8fdb8b3900cc460f1770cd7720a2cfe", - "signature": "1c02d1c6ffe3e006a77ec1951955b9a8803a6f31e92e9ab4bf2ce0182891a1d3", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": { - "version": "59ac9d02f3adb87bc6753d263bfeefe1548d07f373bd574b58cbea05b4e2d5a2", - "signature": "3fb6574da6d5c3a4a2830d14c950b5346136b7125bdab011d9d89e051071095f", - "affectsGlobalScope": false - }, - "../../node_modules/@types/mocha/index.d.ts": { - "version": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "signature": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "affectsGlobalScope": true - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": { - "version": "1e29c7fb52b89d69500edf01dbd3c4248a09f30cc33f85d13e951af55ad5b4f8", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": { - "version": "504d4a8c02830dc7ea9d80f22af6f0a225cdab817f46d7bb3193a3053f87aa11", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/test-list.ts": { - "version": "44726fcd1f6f7102248e882e318f7778b5a1527244680c26f04e2f6f7fc50c91", - "signature": "38d3a1989f758c08cec83245796865fd64101a0969e5fb8f8773688b0e5adbd2", - "affectsGlobalScope": false - }, - "../../src/models/path/nearest-item.ts": { - "version": "4646a4b85e4ff83c29baf51a234126ca299e22fb8a90bfab32a8db950331f102", - "signature": "5197c86ccd3aafc3751bb9f190770574c128096d53a0f346662b6865dc012531", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star.ts": { - "version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/grid-node_download.ts": { - "version": "cda59720c81e8c9f62f06e0786c079e1df21a9bc3886f2b7cb97ad362340cdd8", - "signature": "5b2fd1cf8bce1994ad8288b444fe47b504b0bd43444cb03c83ec7e71261418ee", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/graph_download.ts": { - "version": "52e49884568177fcf39efd49781fc1a6673f6df37eb8728b81a9779f7a93d3f9", - "signature": "40b3f2a8f10d4dc70ef53e5518108bee8e9edd6d1a090a1df5df840eb3b23d18", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star_download.ts": { - "version": "5a4893e97ce499c8ea1ec1369216272990535c708473159c8b1b097a9bc648d3", - "signature": "5890a91fd6c99e3163faf05051d8be78a740aa51bfd4b6b08107e7a6293c80fe", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection-holder.ts": { - "version": "0fe6a52cb242aa6e455dcb096dbad449b647397d9fefbeb3784f9b901c614186", - "signature": "f7583833a39194d273f475fbb608aa0bcfed8a31b45a4d068cc235c0481f21c2", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection.ts": { - "version": "31a79b56fece18fa9b6fb2bf561fd1adc217334743bdf886db2d1c196dcd0b7d", - "signature": "32b66b1d55f5f5e262c494e7088b4d96664bee6e43c19f692d88843339a42a99", - "affectsGlobalScope": false - }, - "../../src/physics/bounding-boxes/aabb3.ts": { - "version": "efe80cf839597d19fe42b5618905862e2c435e192366c5313760e45fe69521b5", - "signature": "a3b949bf8b44a4fe34f08efba79a27fc7d5cf9e19192342970f76027f521ffa9", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/capsule.ts": { - "version": "d1f952b2ef4bd0a6947301f69141d84934e7c3c28056926fb90cf89fb70c29f6", - "signature": "72657a17bef86c97c10a8f90125c0823dd7ccdbad32afbdf37a43f1f4ab1553c", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/line.ts": { - "version": "d649540f390bef131b1c0380831a9086cd746c0f004d71c095590a55e149d3aa", - "signature": "c99648fb327ac35ae9eade9cef7e17a5272d349343a8375c82f87df9b9e39abc", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/triangle.ts": { - "version": "f8af68568738ce2e8087acb36753aeb5ac094e18bc8e5a3b384a5def43c49f8d", - "signature": "cfee0b2219fb8b5225953545e9c97bf290ad377c944f7b4b75d7f337b1f7742b", - "affectsGlobalScope": false - }, - "../../src/utils/runtime.ts": { - "version": "00edc406523038cce8911333f31690fe488a9ffa542c14e1e36efea9f0aabe45", - "signature": "28ed40676f5cbab9b602191089eb4e99518e3e44ec4dc6aa489a6a589bb0b307", - "affectsGlobalScope": false - }, - "../../src/utils/net-client-utils.ts": { - "version": "d5393a04c5ded9a06274e8560c68329329ce1266929e40c3b52fb1f7d6ebe9b1", - "signature": "32d6f2c32bb9683d9dfb89e63bff518d8d4418baa679f96cfce3c13ef221e2a1", - "affectsGlobalScope": false - }, - "../../src/utils/net-server-utils.ts": { - "version": "87d178e86d5e83f10f450fb797672a577c5afd130688409311d491ae7a413952", - "signature": "6fadafb88959fadb4f7bf2283e8bd38ac833776f103db811228248818a0dec72", - "affectsGlobalScope": false - }, - "../../node_modules/@types/chai/index.d.ts": { - "version": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "signature": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "affectsGlobalScope": true - }, - "../../node_modules/@types/eslint/helpers.d.ts": { - "version": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "signature": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "affectsGlobalScope": true - }, - "../../node_modules/@types/json-schema/index.d.ts": { - "version": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "signature": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "affectsGlobalScope": false - }, - "../../node_modules/@types/estree/index.d.ts": { - "version": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "signature": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint/index.d.ts": { - "version": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "signature": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint-scope/index.d.ts": { - "version": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "signature": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/json5/index.d.ts": { - "version": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "signature": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.d.ts": { - "version": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "signature": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/async_hooks.d.ts": { - "version": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "signature": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/buffer.d.ts": { - "version": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "signature": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/child_process.d.ts": { - "version": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "signature": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/cluster.d.ts": { - "version": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "signature": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/console.d.ts": { - "version": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "signature": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/constants.d.ts": { - "version": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "signature": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/crypto.d.ts": { - "version": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "signature": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dgram.d.ts": { - "version": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "signature": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dns.d.ts": { - "version": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "signature": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/domain.d.ts": { - "version": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "signature": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/events.d.ts": { - "version": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "signature": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/fs.d.ts": { - "version": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "signature": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/fs/promises.d.ts": { - "version": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "signature": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http.d.ts": { - "version": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "signature": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http2.d.ts": { - "version": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "signature": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/https.d.ts": { - "version": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "signature": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/inspector.d.ts": { - "version": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "signature": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/module.d.ts": { - "version": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "signature": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/net.d.ts": { - "version": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "signature": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/os.d.ts": { - "version": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "signature": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/path.d.ts": { - "version": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "signature": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/perf_hooks.d.ts": { - "version": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "signature": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/process.d.ts": { - "version": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "signature": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/punycode.d.ts": { - "version": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "signature": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/querystring.d.ts": { - "version": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "signature": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/readline.d.ts": { - "version": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "signature": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/repl.d.ts": { - "version": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "signature": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/stream.d.ts": { - "version": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "signature": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/string_decoder.d.ts": { - "version": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "signature": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/timers.d.ts": { - "version": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "signature": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tls.d.ts": { - "version": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "signature": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/trace_events.d.ts": { - "version": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "signature": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tty.d.ts": { - "version": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "signature": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/url.d.ts": { - "version": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "signature": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/util.d.ts": { - "version": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "signature": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/v8.d.ts": { - "version": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "signature": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/vm.d.ts": { - "version": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "signature": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/worker_threads.d.ts": { - "version": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "signature": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/zlib.d.ts": { - "version": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "signature": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.4/base.d.ts": { - "version": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "signature": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.global.d.ts": { - "version": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "signature": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/wasi.d.ts": { - "version": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "signature": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.6/base.d.ts": { - "version": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "signature": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/assert.d.ts": { - "version": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "signature": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/base.d.ts": { - "version": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "signature": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/index.d.ts": { - "version": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "affectsGlobalScope": false - } - }, - "options": { - "declaration": false, - "diagnostics": true, - "rootDir": "../../src", - "experimentalDecorators": true, - "outDir": "./", - "module": 99, - "noImplicitAny": true, - "strict": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "alwaysStrict": true, - "strictPropertyInitialization": true, - "target": 2, - "lib": [ - "lib.es2016.d.ts", - "lib.dom.d.ts" - ], - "moduleResolution": 2, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "baseUrl": "../..", - "paths": { - "gtools/utils": [ - "./src/utils" - ], - "gtools/math": [ - "./src/math" - ], - "gtools/errors": [ - "./src/errors" - ], - "gtools/enums": [ - "./src/enums" - ], - "gtools/models": [ - "./src/models" - ], - "gtools/types": [ - "./src/types" - ], - "gtools/physics": [ - "./src/physics" - ], - "gtools/components": [ - "./src/components" - ] - }, - "incremental": true, - "sourceMap": true, - "removeComments": true, - "pathsBasePath": "D:/Projects/gtools", - "noEmit": false, - "importHelpers": true, - "configFilePath": "../../src/tsconfig.esm.json" - }, - "referencedMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/bidirectional-graph.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/file-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/components/g-map.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/key-value-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/utils/index.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-priority.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/components/number-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/paginator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.ts" - ], - "../../src/config/gtools-config.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.interface.ts" - ], - "../../src/constants.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/decorators/final-class.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/mapper.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/singleton.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/dom-get.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/dom/drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/element-builder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/types/canvas-shadow-config.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/button.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/days.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/encodings.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/file-types.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/http-status-codes.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/enums/keys.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/errors/missing-parameter.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/no-database-connection.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/not-browser.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/null-pointer.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-parameter.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-type.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/gutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/mat4.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector-xz.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector2f.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/ajax.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/file-size-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/misc/runtime-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/simple-loop.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/slovak-stemmer.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/mockdata.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/color.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/index.ts" - ], - "../../src/models/countries/country.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/countries/country.interface.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/binary-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/g43-collection.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/abstract-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/linked-list-entry.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/sorted-array-utils.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/gender.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/grid-node_download.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/djikstra/djikstra.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/nearest-item.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/priority-queue.ts" - ], - "../../src/models/range.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/color.model.ts", - "../../src/utils/index.ts" - ], - "../../src/models/selection/selection-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/selection/selection.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/selection/selection-holder.ts" - ], - "../../src/models/sorting/bucket-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/counting-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/heap-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/sorting/insertion-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/merge-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/quick-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/radix-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/collisions-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/distances-2d.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-3d.ts" - ], - "../../src/physics/distances-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/tests/abstract.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/abstract.mapper.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/paginate.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/horizontal-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/key-value.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/nested-string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/key-value.interface.ts" - ], - "../../src/types/optional.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/prop.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/property-decorator.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/ray2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/round-data.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/size.interaface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/type.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/unit-number.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/vertical-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/analytics-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/coerce-util.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/color-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/utils/date-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/domutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/dom-get.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/types/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/fileutils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/string-utils.ts" - ], - "../../src/utils/html-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/constants.ts" - ], - "../../src/utils/image-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/utils/math-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/random-utils.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/net-client-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/parser-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/process-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/random-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/reflection-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/runtime.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/sorted-array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/string-checkers.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/utils/svg-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/time-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/validators/misc-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/web.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "exportedModulesMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/file-manager.ts": [ - "../../src/enums/index.ts" - ], - "../../src/components/index.ts": [ - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../src/config/gtools-config.interface.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/decorators/index.ts": [ - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/drawer.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/enums/index.ts": [ - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/errors/index.ts": [ - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/gutils.ts": [ - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector3.ts": [ - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/index.ts": [ - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../src/models/countries/country.interface.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/index.ts": [ - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../src/math/index.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/range.ts": [ - "../../src/math/index.ts", - "../../src/models/color.model.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/index.ts": [ - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../src/types/key-value.interface.ts" - ], - "../../src/types/ray2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/utils/domutils.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/utils/index.ts": [ - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../src/enums/index.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../src/validators/misc-validators.ts" - ], - "../../src/web.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../node_modules/@types/chai/index.d.ts", - "../../node_modules/@types/eslint-scope/index.d.ts", - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts", - "../../node_modules/@types/json5/index.d.ts", - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/base.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/index.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/wasi.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../node_modules/typescript/lib/lib.dom.d.ts", - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts", - "../../node_modules/typescript/lib/lib.es2015.core.d.ts", - "../../node_modules/typescript/lib/lib.es2015.d.ts", - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts", - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", - "../../node_modules/typescript/lib/lib.es2016.d.ts", - "../../node_modules/typescript/lib/lib.es2017.d.ts", - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2017.object.d.ts", - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", - "../../node_modules/typescript/lib/lib.es2017.string.d.ts", - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", - "../../node_modules/typescript/lib/lib.es2018.d.ts", - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", - "../../node_modules/typescript/lib/lib.es5.d.ts", - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts", - "../../src/common.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/index.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/constants.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/index.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts", - "../../src/dom/canvas-camera.ts", - "../../src/dom/canvas-drawer-advanced.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/drawer.ts", - "../../src/dom/element-builder.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/index.ts", - "../../src/enums/keys.enum.ts", - "../../src/errors/index.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts", - "../../src/gutils.ts", - "../../src/index.ts", - "../../src/math/index.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/index.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/mockdata.ts", - "../../src/models/color.model.ts", - "../../src/models/countries/country.interface.ts", - "../../src/models/countries/country.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/g43-collection.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts", - "../../src/models/data-structures/list/test-list.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/index.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/a-star/a-star.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/path/nearest-item.ts", - "../../src/models/range.ts", - "../../src/models/selection/selection-holder.ts", - "../../src/models/selection/selection.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/index.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts", - "../../src/models/transform-2d.ts", - "../../src/node.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/bounding-boxes/aabb3.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/index.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/2d/capsule.ts", - "../../src/physics/objects/2d/line.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/2d/triangle.ts", - "../../src/physics/objects/index.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/index.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/index.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/net-client-utils.ts", - "../../src/utils/net-server-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/runtime.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-checkers.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts", - "../../src/validators/index.ts", - "../../src/validators/misc-validators.ts", - "../../src/web.ts" - ] - }, - "version": "4.1.5" -} \ No newline at end of file diff --git a/dist/_esm/tsconfig.types.tsbuildinfo b/dist/_esm/tsconfig.types.tsbuildinfo deleted file mode 100644 index d1c166e8..00000000 --- a/dist/_esm/tsconfig.types.tsbuildinfo +++ /dev/null @@ -1,3784 +0,0 @@ -{ - "program": { - "fileInfos": { - "../../node_modules/typescript/lib/lib.es5.d.ts": { - "version": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "signature": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.d.ts": { - "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2016.d.ts": { - "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2017.d.ts": { - "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2018.d.ts": { - "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.dom.d.ts": { - "version": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "signature": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.core.d.ts": { - "version": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "signature": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { - "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { - "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { - "version": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "signature": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { - "version": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "signature": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { - "version": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "signature": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { - "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { - "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { - "version": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "signature": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { - "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.object.d.ts": { - "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { - "version": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "signature": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.string.d.ts": { - "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { - "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { - "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { - "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { - "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { - "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { - "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { - "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { - "version": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "signature": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { - "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "affectsGlobalScope": true - }, - "../../node_modules/tslib/tslib.d.ts": { - "version": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "signature": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "affectsGlobalScope": false - }, - "../../src/enums/button.enum.ts": { - "version": "50c86b5e00222387bfb7ff7a2c9ccc762947134a33777a75ae5538192f7f0bd6", - "signature": "37ec9932bb2b33281f62687a85984593aa37902b7cd8fcc24a40c14891d84331", - "affectsGlobalScope": false - }, - "../../src/enums/days.enum.ts": { - "version": "bddca260222d9bced7ace11ff9eaef229387a2a46d78142af4164d18e5f49bbb", - "signature": "80769f9d606552e7c7f32e2e4beb175968330c811dfd77d8e9d7ff3bc85dfe5f", - "affectsGlobalScope": false - }, - "../../src/enums/encodings.enum.ts": { - "version": "3bdf87d3b2d15129abc87ed545543cf68ced22d958779f45d03214e6b4414e13", - "signature": "5ba45b66c239c327fbb1bcf9bd6036ae2e7c9c3a87906ddfe09682c749412e92", - "affectsGlobalScope": false - }, - "../../src/enums/file-types.enum.ts": { - "version": "4a555a8dcb615ae92031c999c8d67d28fabfb15eb450e0004696ae3a52fe1fc4", - "signature": "3a187cfeacc603a0833377fd0eaf16354d012f8081c706cde552c51981f3fd21", - "affectsGlobalScope": false - }, - "../../src/enums/http-status-codes.enum.ts": { - "version": "18cd245a404949328db6ad30f9329b5b770ee2b2a132d49aa08fb989af9139c2", - "signature": "17df049e927e1f1ad50190e3f2baebcfd1732f72e575a347752ad84ddaa69f82", - "affectsGlobalScope": false - }, - "../../src/enums/keys.enum.ts": { - "version": "83901b0fd0917145eca09e4aa2abd8d8bab37ad6d13aae029263fe4b07a63516", - "signature": "9f44c8401adec3310a60a4d0296440a8f730c601cef629157185ecae75524a85", - "affectsGlobalScope": false - }, - "../../src/enums/index.ts": { - "version": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "signature": "c1e88d90a441786ceeffc441e90880e740bf7fd2d8bd756956b5139f7e1fb309", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.interface.ts": { - "version": "e6e113eadb1ccaaae2e957e8de27034dfb13482e63ccf39fb05437bcbe1eecfb", - "signature": "c8ce22a978c7e8068b4e86b9f55f79e97782087a9ef4b7cfe9c5a6808560495d", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.ts": { - "version": "5810ad019f74c6261146aa2e0d9a0de42f2d0797e440d5c69528fb77e20d68cf", - "signature": "d31b6d954765366415c75e097adf91068f00125af1975abfc6a78011d35e3c48", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector2.ts": { - "version": "d4d6ff7da12f4962aaba6f91a555d1400daa8606752489267c925bee578ff16a", - "signature": "a996d79f6e93e9af2d87cb8e25050489ed21ac09df2bd096b524ba3e92d8178f", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector3.ts": { - "version": "8fc7d99d317738030fef5e8879d62147fa8c8d592ceb7467e319b7aea4ccf2ed", - "signature": "7855d7e237553f941a4400c61826a8369e935fb426f77c58aa28405257a4fd78", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector4.ts": { - "version": "25044c1276889db43155f523aa265089776a944cf015bcf2c4a5612e04462221", - "signature": "6173269a03a0dcd213d47249f478496fb04e3d8ba9b02fb2fcf6a7cfabb70ec5", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector-xz.ts": { - "version": "e69a9ec9c1cc9e8a2f2eb4ba03004277657eae50a29397028e3e9b0baf6d1db7", - "signature": "9d39d62790fb86b9a9c41c3358140506e689ddab53584397c42517a5b748308a", - "affectsGlobalScope": false - }, - "../../src/math/vector.ts": { - "version": "6b89380b6e3149d20d0ca39499b73a29a9b1afa867ac38c6460e8104abec5720", - "signature": "b1e2a87d2d0f2f9f625177c655610e0b2ae8e91d62fc5f3213d33b304af4b992", - "affectsGlobalScope": false - }, - "../../src/models/gender.model.ts": { - "version": "c0156a95eaa6dcee76503a6bbe3a59e7e062d50327d3182425dd6a7cb6ee451a", - "signature": "f5eea43452757b9b3d9d5fadc81dcbecfa4f08793a7dd0c9f164a0495e427e46", - "affectsGlobalScope": false - }, - "../../src/utils/analytics-utils.ts": { - "version": "8f5deea470c150bbfbd6a22d0a9085ef2d7de3c823b5ce10eb20c1bf40bc0e7b", - "signature": "60a5a7d571d7ce26a2aa8f1ed1cdc0d880e497c8363a1ffecb57b6c2edbe6143", - "affectsGlobalScope": false - }, - "../../src/utils/array-utils.ts": { - "version": "0a3fbbae03181f578627838ee3644e5dde88ff68ac875a728e587760a6b2a9ff", - "signature": "7cdeb4ce6e20d4351d04cd90a80156a35eca224dc86c549b2a04e2d03447ee0b", - "affectsGlobalScope": false - }, - "../../src/utils/coerce-util.ts": { - "version": "ac3e2db41f1a56ad772ebf21936fb24707b8d0a53af7120ad21de28521808753", - "signature": "b1210255899c51d76a77c37d88853aed672bc743e6a1d1b897c5ef5cf49aeaca", - "affectsGlobalScope": false - }, - "../../src/utils/random-utils.ts": { - "version": "96e92fedd1be573dcfb4daa243dfc72a3c368958dd9ff1911d1fd57299fa6b29", - "signature": "29c9fa665c9923a9f9b0e95032bcea35ea8695e91bec1c6e46990810f5f81c02", - "affectsGlobalScope": false - }, - "../../src/utils/math-utils.ts": { - "version": "d381be6ba051c5ac4bca040587c2c4705f4b3439666a4e1867ce625a3a45e75e", - "signature": "e3a5107ccd2de28fe828650ebba320f8e5185198fd11ab18e721bc6984846381", - "affectsGlobalScope": false - }, - "../../src/utils/color-utils.ts": { - "version": "b1a7daa04816a62243e8a9de44d83e2f14fea57868f372fb34cc4b70fb97fed2", - "signature": "fbed4fd49a2acd8781c405f0dac9c870b28e7ce91d4a298d60db4f317e827d1c", - "affectsGlobalScope": false - }, - "../../src/utils/date-utils.ts": { - "version": "a8d6342d0b8c2f7197f82d48a6ffa7df900024fb77262e2b1e485e7f2072126d", - "signature": "433b77a7d79448b748fb081a7fd3f3ba12f175a11d71ddfa949a29f92346bcdc", - "affectsGlobalScope": false - }, - "../../src/constants.ts": { - "version": "eef8f7f75d5446d4800b4cd903cef08b5688eec7a3cd154672d58c07ba9fd2e1", - "signature": "1799ba2e32b20602e77fd026d03135b73a3f454d6f7d2247e4c92c188a521582", - "affectsGlobalScope": false - }, - "../../src/utils/html-utils.ts": { - "version": "97c3a73a8814fe6771fd0b8da9f9bc1cc8390733a0f6250b0dd39cb07acceb0c", - "signature": "b545c61079b13203c5fbe4eee9f70916d951c98ab62119735b3f18a3f3819749", - "affectsGlobalScope": false - }, - "../../src/utils/image-utils.ts": { - "version": "07de68ef3da9195d4bcb19f3caa51533eec574e0bea13653422df940626e5d4a", - "signature": "47912a28efec17df8f1f9a494d99b692c5d80062cbc51709141fd870325915b7", - "affectsGlobalScope": false - }, - "../../src/utils/misc-utils.ts": { - "version": "aa906aad39fbb9a96e590c0a3f6bec7463c6d725747605dd17ffd4592839627a", - "signature": "ea4a52f115efdd8417c87c849254ba13d11786047cd32ee9aa1366d648f76786", - "affectsGlobalScope": false - }, - "../../src/utils/time-utils.ts": { - "version": "a3a92fa449c14364c40afc22015f329ff4c59e9fe7c8c58f2cbe41181d3477c9", - "signature": "4f4f7823fc5271360cbe0214db2a7e85a4b7e01e5a5310b7d6524bc7c1c733c3", - "affectsGlobalScope": false - }, - "../../src/utils/sorted-array-utils.ts": { - "version": "1416a4fce6896efe303e94a1c286783631ab4d9be50ba7e0d4276e34fcad61df", - "signature": "27efd9e3ca5897a4c8367658b0e220bdaf08e3085e2a2bebf3e8a225af10e475", - "affectsGlobalScope": false - }, - "../../src/utils/input-utils.ts": { - "version": "87ee8b0e6ef48c43e01aff4529f8c2d77edd0ca5ede2125cc7e993bcd1df5b1f", - "signature": "3fb5355eea12a2fba57b1c8999f50a327185d95f3eef55e984c70be062615bba", - "affectsGlobalScope": false - }, - "../../src/utils/object-utils.ts": { - "version": "86955e6e55d3d74525667034238431f630585c24b46574d6e3026073b024e2f4", - "signature": "4e9cf5d4f05ecf9e3fd59781576bcb27649d92d2dd4d536c570f1d89080209b9", - "affectsGlobalScope": false - }, - "../../src/utils/parser-utils.ts": { - "version": "e3d8d06a5f58a2e70f21bbc54f64929883fd62cab6a3002ee508b3e564230d61", - "signature": "021679f2656204e4bf519c684d75c40a9e96f840b6d327e0b166ab0b8846b38c", - "affectsGlobalScope": false - }, - "../../src/utils/process-utils.ts": { - "version": "e37d49bb6877656ab1cb17ac45762cffa2bafe3996cc642f9ddffaf53e51056e", - "signature": "2c9f3f6b8bb9ecdadf80e2a64f3879ef0f4a69b98d04944c1427b2b1f71cd4c9", - "affectsGlobalScope": false - }, - "../../src/utils/reflection-utils.ts": { - "version": "a67fb26f92fa18df700eff0a831cd6b8be2186d68ee5c42781c6bd5b243a10d6", - "signature": "64e583a8a229e3a30958e2ec5eb9044bbd36fe9fb4b98400dfe5ddc39a0b6b2f", - "affectsGlobalScope": false - }, - "../../src/validators/misc-validators.ts": { - "version": "f8a70f820a5cab033987717bc2aec3efc4b26bc8065d9d905b37e4a82b84f58c", - "signature": "50e6239cbcded347426447118d1610791ddeaace789fc926cd500ddd7fff309e", - "affectsGlobalScope": false - }, - "../../src/utils/string-checkers.ts": { - "version": "187e5ffc9e612af3378833d7aabddb8f322140be491e1f4fc7e2fd3fe88b09a6", - "signature": "9f1f5c58e0751b2d1cb5ea60fa77fe749e900c63e27d1943cc4bbb96bf9400ea", - "affectsGlobalScope": false - }, - "../../src/utils/string-utils.ts": { - "version": "d91538e7f3b7bad31500d2560d9c6a9c0db8e05a9ce7b61d3fa4197fc214f3d6", - "signature": "b9af6ef74e4849b5eab28503be1805aa188f922190a6f539c369f0f1e4ab9774", - "affectsGlobalScope": false - }, - "../../src/utils/svg-utils.ts": { - "version": "8dc63882eb4946c49b8c315b7dcb8b86ade9ec3209d734797d3edb0051c9790d", - "signature": "c5551f55bd7bab1c5c54b434f856c0dbff98e7194d3c328d9e4e199921b1a5a9", - "affectsGlobalScope": false - }, - "../../src/utils/index.ts": { - "version": "abf2ab6a696c7583e874db156ae487c8c944b563f2f1c4af493bfebe828b094c", - "signature": "4cc14e6991148682e6caa62270e5dacf60755482294b9ec04417c681eff789bd", - "affectsGlobalScope": false - }, - "../../src/models/color.model.ts": { - "version": "776ee2acf248a92bc52e0706bf35a963a2d80511572b1afa14923163396390c1", - "signature": "e7ba40eb5a8e9af5a993dc3d457a5e913d53d0949632f7f2317ab9744284d418", - "affectsGlobalScope": false - }, - "../../src/models/transform-2d.ts": { - "version": "13719834050bd0e27ae58038ae4a6f428db75a52e5c3de530eb82e79d3a1c7ff", - "signature": "e8044512119f7c536bf356e9bbc54d4046cd4f5e836f5ec0b2fb95dc0b52a3bb", - "affectsGlobalScope": false - }, - "../../src/models/range.ts": { - "version": "92f02406cb8b2237c7b6a3015df0a315e2a040d5c68d7a54951110e6a4519037", - "signature": "3361ebfd1e40bbe1f932901cfb15c00976cabd576eb3b9ba18d61d51ca36b28d", - "affectsGlobalScope": false - }, - "../../src/models/path-2d.ts": { - "version": "4231db73734d02129ed02a6a05fc82e3bec213344223fc1c1d4a583b756c1b2b", - "signature": "44879c1fa7560a6b6a7d4def7acb1dabef3cc90501a52b9a0da51f739bfdabdf", - "affectsGlobalScope": false - }, - "../../src/models/path/djikstra/djikstra.ts": { - "version": "ada966ef7a16ee7fd377515d18a7a934734026ff85538ad22465ef6fc2599e70", - "signature": "7f11c98a6fbe680ee612647ecd55a25cf132554595ed28ce2128be7ec186d225", - "affectsGlobalScope": false - }, - "../../src/models/sorting/bucket-sort.ts": { - "version": "7456e8e54c6fc6adf53fb80383c80266cd7d589216303e130747e0e6afa4c40f", - "signature": "b2ffa618c586fd717ca2cc62f6721e98a22d5a788e1caae7d6242af55f212d03", - "affectsGlobalScope": false - }, - "../../src/models/sorting/counting-sort.ts": { - "version": "09950cd35aaa17810cbde1ded879d17cb3819f4910d93b7f1a980ab274c00c47", - "signature": "e0bbd1bb4b6ea50250404c014961fc0b45c63dca5d0ddbd218d3273f298081a3", - "affectsGlobalScope": false - }, - "../../src/models/sorting/heap-sort.ts": { - "version": "9d334ddf33fb83502bacc1017d2f12369fe71c2ebf710c3afdd2699028e44087", - "signature": "755e1bdb3e51301c8f3323415b45403e25d8d2f85a9bb288bcaae635f4e584dc", - "affectsGlobalScope": false - }, - "../../src/models/sorting/insertion-sort.ts": { - "version": "b33d5bf0f475a14465b1b42adbdf66d85922162921356cbb9da19fa8e8ef8f77", - "signature": "d65ae7307faf9175043397d03f98d7faa47fdee11b556e7c57313fe3ec414c7a", - "affectsGlobalScope": false - }, - "../../src/models/sorting/merge-sort.ts": { - "version": "5e3f40dec0d5bb3fb6920fa13e8708f74b28b3f7cf0113e9f6b25746033ba83b", - "signature": "74baf1c560e3cccc2fe1561f92186fc7100aa5bb8e9e455690912afe2d8b02f9", - "affectsGlobalScope": false - }, - "../../src/models/sorting/quick-sort.ts": { - "version": "5b24474867613b601d4f75837021a8cae6a615175a7fe75b1b370e545bfa1223", - "signature": "2a9880ccec049a39c7d92cf19bddcb6e0edd38ff11e98d00225750a17f0ca960", - "affectsGlobalScope": false - }, - "../../src/models/sorting/radix-sort.ts": { - "version": "de22ad70b194787bbc13c6d31d9656c9460bc82814a8cdd699b0008438068c4e", - "signature": "90ff4caebad0a4f43fc31562018a86de182385b6dc81d80dc7a3c96b4187f86a", - "affectsGlobalScope": false - }, - "../../src/models/sorting/index.ts": { - "version": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "signature": "3823fb200af0bb959d11494901b7c8c0e802c557ebf5abd45808b9fef0706f97", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/g43-collection.ts": { - "version": "3491c6d39311fbe4fc3bcbe1ec5fb8bef395ef0662091e9ad4c254e741d3d202", - "signature": "bd070614d87321ed0fe7ddb31c08f1a46b12b3c2b6df7f52e81b288da3ac7e72", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/priority-queue.ts": { - "version": "f065b3f3566f3b354be2b5e7fae311719af9efcd64e8ae9d819e21349de633ed", - "signature": "160e2a6df5e87681be40273f86757019a33fc88ae88903cb71e1f968db047e65", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-queue.ts": { - "version": "2b5bf36ed31e60402bc51b5ea793a638e3fa42d83d8fe0de3812508a49574e5f", - "signature": "398bcd1e632a4cb1e5144a1908e697e16a42cf044d49aa0bd89b83a76b913129", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-tree.ts": { - "version": "ff4401d8052ee4f7c325c971add9788a75512562410abac1be7df15ee41cc6f7", - "signature": "6ee9c25ef15fe499297c97774df130f3eabe347643b64b9956eac7c4c8d04d18", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/quad-tree/quad-tree.ts": { - "version": "91245f2d3f1f4473a55a8a9aa86fe26961a576a27c1cb400cbae453d571e178c", - "signature": "84a0595782725c28bc3e4f4e87bebb72052dc7e1f00c3b9af94467b2c9a4b1bf", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": { - "version": "8fa132202258e51203aa89aedfdc7cf6cecfd1da59681b0409e6efc5decdcc58", - "signature": "3248e141165d715509aa191a843842a082d7ffc3888354cb672c76db70c0d18f", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": { - "version": "07a8b76963bb23ab2b00ada85c87498ee71632399ee0c845742c35376b722cd5", - "signature": "27b8c069e3f5aba322ce2fe52f308215cc6548404b95836360b5a18c912960cf", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": { - "version": "de50505542440d115e784036ac4ec7fd2773527d9a08584b047b954b7c77ca35", - "signature": "1b972ecbbdd97d1254fd482652ea541ec4a09f99d7b63de715fa4574b16d05ab", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid-filters.ts": { - "version": "cb0bc6a63d71271e1f3d4c7c1ebb2d1bb29124a3ab33ee0eec35d2221ce941a1", - "signature": "d6b50273d8fca0f8a4124165c31d3491eef46c8e9eac210af53e3c86692996c8", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": { - "version": "96a463327277ce295d2a9ca78f31c2d74ffd15983957190c3fae2b3ca9081126", - "signature": "ed46026416482a14964912f04bf299a7b49f505e454c9617ed2bc0264454fcd8", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": { - "version": "29d80a04115c8635e6b0b24ecc98f7e16ce58d4c0b8a37063207434e94eb98cf", - "signature": "0c3cd0b7ca5ccf12e6fee10d026e4ab469f848a0e8f5b613c82fd35f2e6eda34", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": { - "version": "86de318f728a60ca3bf5401a67408101cd98f77525a2d65d10598d81b3ddf188", - "signature": "15638bec088d3b4dd238e534849b03d57e7dc66adb864389e3f5aef7e6766f3f", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": { - "version": "824986806ea8d9f18c11ce093e65c999fae5ce390dd7e33814b0797d6a246c06", - "signature": "ddeb79d47698130889baa38bf78d5a050532397910df89db0444456c1727ab84", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": { - "version": "c755274560b257a713c780ba8590bdff31d9d29c47ba4cfc85886ad2cda52c8c", - "signature": "7a6f0ad7d23e486c3576f2ddf9e0af6cae0479cb4597a0e397ac100fc67dba97", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": { - "version": "598165b4196d328977dff28960441dbfc039e4a9098e0efa97cc82920a9dda4d", - "signature": "73de7e11105270442cdfbfee4de12f205ceae98438cec2390e7b6e405eeeb6f0", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": { - "version": "bf6eda0dc000371278644110ca27282397bc8a8ad82fd85cb88e335a6f75a496", - "signature": "7b7c99e8b916da6690dd67c5f48a629b2a5d22d7c490e05983bf5e86185d5229", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": { - "version": "51f0b9c0aa74388752a0d63292601271fbd257eccc83544d5447374624e641e7", - "signature": "89493ab4b688007e3ddbab6ed1f0047625c8b3ec942d18a0c54b0a680ea18bee", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": { - "version": "24929a70c0258a058d34ee0b72aef8fb6514f3e49d45daf191a9b190228fc713", - "signature": "45e8dd938c8bb02ca8cf20c6dfae96f85de7078c2cd7eaef4763fec1c664af07", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/index.ts": { - "version": "2bdb43e0b9ea7d462087cac6200de24c66125fa06bae506ce10daa1b5729b18e", - "signature": "63d7be4c21ffe3f99714964e18ce59d82560fb131be06946e6944fa54f4235ec", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/abstract-linked-list.ts": { - "version": "be75ae95c781328fa24ccb2bc41b16f90a30300e8939524517405ee4a0761da7", - "signature": "02e3c701288e588e326613bf536a029fbadd971991635b0652d93fc657f276db", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/linked-list-entry.ts": { - "version": "e53c7c0c413705bb052cd7b357709f7a467e4b1370894d04a01c6158fffca91b", - "signature": "8c9b8da06bfee13b71a307730a2d1829ba0ca6ec2de8988ac4f9808e6ed10127", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/list.ts": { - "version": "7eef19e3ee169f7911e044bac2fbd0c91fd2a362d61283b56c346478a7381eb9", - "signature": "afce739f6a2755beb73c00e6614692177fa2de013603800591384d5a15f05249", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/bi-directional-linked-list.ts": { - "version": "1437ecf610ae51b56ac43db4a65a8a965eaaacdaf8c6a2a0b99bfeb02b6b41c9", - "signature": "a2cbc70d690f409af728a900bb889640afbaaae724cb07055dc0e85ca1572444", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/one-directional-linked-list.ts": { - "version": "476a322328b312c8b5aa856adec99f4f004da34d29bcab2502b12a0e41c9cf1f", - "signature": "e25a3c55776f6a6ff956517741e80ffb9887900b362671eaad237fc0a02142b7", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/sorted-array-list.ts": { - "version": "94fa42fe048888659c39f29d35b892d6cb54734e08dc5aad30ad7b41806124a6", - "signature": "075d828bd8c21cf180114caa462c1212f10130a7a02a21018e57c8853181f1cb", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/index.ts": { - "version": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "signature": "b471184b94fb83b4be4a94238c111345bd84b53044d142033e53294ede1d9ddd", - "affectsGlobalScope": false - }, - "../../src/models/index.ts": { - "version": "d2da69f5e5dd6b37e959fd863a802128dcac9cc2fbe98b3bbb51a5dcb4c0794f", - "signature": "68cef92fdc548dd9bc1da3391d337bc4f589bd837c76a37fefe7f3f2bcf5de63", - "affectsGlobalScope": false - }, - "../../src/math/vector2.ts": { - "version": "d0eb17a32cd6e3248b0cec4687cbaf8128c1ee8554611cb50e38b80cb8319cac", - "signature": "20aae37443f0dc77b5cef81c1f47c3d698f3dbc2a8560d5db3dcb763cfc7b829", - "affectsGlobalScope": false - }, - "../../src/math/vector2f.ts": { - "version": "0b5821c94c6d8dd5c8aaa3527f3e3a236f0cc53038b1ce71e20c8e45e4728207", - "signature": "085db384c52a643b88e91da8faf4556c10fd982d639c115a1574ee863f01a666", - "affectsGlobalScope": false - }, - "../../src/math/vector3.ts": { - "version": "0d403a453b972a684c05fdbabfb5b70c7e389905d1f9d4a483ea0fd351c39558", - "signature": "74934b4977835f2293ed492eed0071df867475193c986487b40bc5c1f87ff283", - "affectsGlobalScope": false - }, - "../../src/math/vector4.ts": { - "version": "d1871cd97f10f4462513e1ae61643563ad9f4ae3b6b1ddd2bc018d75219f6420", - "signature": "a34384e9a93489d805b18f29a32fe1eb405a3b5504840228b3a8473b058ddd68", - "affectsGlobalScope": false - }, - "../../src/math/mat4.ts": { - "version": "c4095c8789d6fa82bb277e0bc001b6441243804a8f02d3ec6aaf761877043b4c", - "signature": "ea071ca5fde84d3905e85112dca87642ef8e9a62064a9dd7d76ad2fd5e08f5ce", - "affectsGlobalScope": false - }, - "../../src/math/index.ts": { - "version": "4258d5499ff9f2e172bc3610870a934e344badf88e240240b26e1e3a542675d1", - "signature": "266c7fbc935cf8a4f65a9b675cd1e76525d9dbb66c19c2f0afcdcb80d8db5bef", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-2d.interface.ts": { - "version": "9d51a573f378e14c274418a605f66c21c430fe4cc7b021144d90993fbdcd63d0", - "signature": "980fb152d37f9d2bb46341d75de448ecf0a35a1338ed078886116b6a3591670b", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-3d.interface.ts": { - "version": "109172f30136e4a2883cef0d4744a6a9eff312e7b51a408ccd5bef44d3b84247", - "signature": "f03ec206dc09ddc7557756527b6de079f2a1159304683951f679555f8555b22b", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xywh.ts": { - "version": "04bf6473f1eac63f9a79cc38e67709d4c805c54e2fc5af322e16fa1f3b07444d", - "signature": "7a8886d495aa7836bab21029b0d5582ae30f2873e41129d903d1622fe996b13d", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xyzwhd.ts": { - "version": "4380cd1db1f0a315cafef3dc0d1cae48e0c5548bfd92077fe803d29a3db6993c", - "signature": "e424332ce7ad177696dcb24865689dc9a170ca0eef475c658ea2de4c8f41aaa4", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-2d.ts": { - "version": "95a7b1acee9e3fe6ed3fdc75291255e2c74c5387e0d0b50aad2657b9fa9b66b1", - "signature": "499b861bbd2f393a8815d0d8a4fb3c1551a1b760c998e96161dfda722084c373", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-3d.ts": { - "version": "1a09dc77656bf3fda15451f1185b29f4b7f1794424fe806b253c58bc7234f5a4", - "signature": "7ccf6fa6f24d638fe9d446b2379dd810b020ac7d3cdc881389bb6f21e244a36b", - "affectsGlobalScope": false - }, - "../../src/types/horizontal-align.type.ts": { - "version": "d06ba169f6324ee50312674700ba9ee696ac17c0c08212f27f99e75bea5993fe", - "signature": "1dd16797d5e107c4123fae9d8cc611707e714e64bbc6d24e786ca30d55bd82d0", - "affectsGlobalScope": false - }, - "../../src/types/key-value.interface.ts": { - "version": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "signature": "2581bafcc39a618186b3ae065d3a476cf7a2c1c412edf7eb6b5651399a1cc240", - "affectsGlobalScope": false - }, - "../../src/types/nested-string-map.interface.ts": { - "version": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "signature": "5c654199ec7087251c7029b035b65f5e981e89f16a45e7bbbc0bbde87bb33785", - "affectsGlobalScope": false - }, - "../../src/types/object-entry.interface.ts": { - "version": "d3b9f85cd2d7253362168e060b8885d3d8a19d189ade6e0c10cf1e93d18e23d8", - "signature": "3f99609603a6f8b50f342fce05d7ca6012b9d71018223967da7e64d0ccb6df7a", - "affectsGlobalScope": false - }, - "../../src/types/optional.type.ts": { - "version": "6997dfaba3a558195a3cc79dead1c37ce3d997a61ed7ed84620a374fee6b0836", - "signature": "d6d669daacd26a47d32d3df6713b9bde622bd6d21ea13540e5e77b4f9cbb3652", - "affectsGlobalScope": false - }, - "../../src/types/prop.type.ts": { - "version": "661af54a97b7b109ac73573ab3a225407099a23a63bf03ff3b5345e7e0a5a6f9", - "signature": "5fbd442bf06a7a6d1e27d4f571a38b3669facac4bc5772fb27ba07a35e7c104f", - "affectsGlobalScope": false - }, - "../../src/types/property-decorator.type.ts": { - "version": "c4e5ecc5e5f701b9312c0f936c9e2ef84e475eb132018417d67432e393e43fdd", - "signature": "3059b50c2c7a801e83a87b26bb328eacba2b1f7db4b4ced40498e53c836b3fda", - "affectsGlobalScope": false - }, - "../../src/types/ray2d.ts": { - "version": "99e3cf17e8d6c9df593bdaa44193233da0e7d07b58cd88c2d34c2eb154f7aac6", - "signature": "2ea8b7f30d0fa4d41569b9dfa15110aa63c3f21d11f126500071a9575caa71b2", - "affectsGlobalScope": false - }, - "../../src/types/ray3d.ts": { - "version": "7eabde7d54f900db71c2d174506d4c10dbca9a08154fea4228e7cf8d921ce532", - "signature": "5013431975fa04ae04e5f475ad9b3c9004913ce5b859c974c43adef820cd12b6", - "affectsGlobalScope": false - }, - "../../src/types/round-data.type.ts": { - "version": "b3491a4f6737e390c14ecad6ecdd65c6dec6fc48da8c0e1466dae90d5640b6e2", - "signature": "5293861947bc6aefc49ee70e6fa0cf8086077ca54f2d730b4cb1dbe93487f2eb", - "affectsGlobalScope": false - }, - "../../src/types/size.interaface.ts": { - "version": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "signature": "5b6303575160ade95b52f5b967996d45eebc9280785226f0704cb9b85063ac7b", - "affectsGlobalScope": false - }, - "../../src/types/string-map.interface.ts": { - "version": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "signature": "018b2b32a9fc74718a1e3da7277e13fcd6f0f2f8513ab0991e0fd4d75728b83c", - "affectsGlobalScope": false - }, - "../../src/types/vertical-align.type.ts": { - "version": "16c78f374aa3023e0cc2cd2f07d17c50449a00003a71fa62f62bf9a026dc19c8", - "signature": "4e9595a0a3372e022994484957f4fbb082e5109d0a3f642aad697b9d09222502", - "affectsGlobalScope": false - }, - "../../src/types/text-options.interface.ts": { - "version": "e484dc0310cb9eeebe96571fc6bf1966f5d2bdf1bb4e4bd6b2dc612f2938f323", - "signature": "61800ed0175bf7d2163b8f2b346c3ceb64185be64dcdd396073217060ff6953e", - "affectsGlobalScope": false - }, - "../../src/types/type.interface.ts": { - "version": "9e3cca0b8b220ab9b2e7156ef114dd57e3af8c45825cceecbf1039101cf92f91", - "signature": "93042c70eac24840b88127bd55b8ae3341b7dada37ca6d4698c4f80251ace9a0", - "affectsGlobalScope": false - }, - "../../src/types/unit-number.type.ts": { - "version": "79bc140a34c49381a3a4cc0dc92f5843b9d36e1e17075a79c7f2529555b927c4", - "signature": "397336eabf546c900d7503a876e5e57443346546298fcef03641713150a0dfa9", - "affectsGlobalScope": false - }, - "../../src/types/index.ts": { - "version": "661d955487f751a303b88bbddb52ebc9306fed67e9f92022cd8686787718ffea", - "signature": "b579aaf330454eee2e3675ef3985a7bda0fa062874f7bea90a946daaf4281e38", - "affectsGlobalScope": false - }, - "../../src/decorators/deprecated.decorator.ts": { - "version": "8ab122563b7c824c2dac645a344f797bcaeac7c0932d81a4186232d5a7becdb0", - "signature": "12581cd170fe8f28a1c36e9d235476ebc88cb249a7953c82c265dfbb7e5de324", - "affectsGlobalScope": false - }, - "../../src/decorators/final-class.decorator.ts": { - "version": "af9bbd0c0f43d0928d56fe4a9bbe391f230bd7f7b5b1862c3006fd60f0ad6c70", - "signature": "9ff077f142e865ff8c7f0542cb35fd684b2d9eaeaecfcc58cb742e7c76c5bc68", - "affectsGlobalScope": false - }, - "../../src/decorators/mapper.decorator.ts": { - "version": "7c4b9c096895327b2a8d16d72b221370408bc6ecc9bd4ffd65f233b74cb885e7", - "signature": "964a08723771b84aecff9f00bbfc4d0cd42115a5d1301872d85109c08d688a34", - "affectsGlobalScope": false - }, - "../../src/decorators/singleton.decorator.ts": { - "version": "27948b31c1aad486b9b96fcf44519c895d3ea5289c0a3b20a318c255f09cc73a", - "signature": "073dff4952e0616aa3d8447e288e027be25bb8d6040756ace02f9160fb456c25", - "affectsGlobalScope": false - }, - "../../src/decorators/watch.decorator.ts": { - "version": "7f7ef493115bd5df9e207bb648f0b8317c213c87e67f9ba01241c116d37602d4", - "signature": "3ba2426b2327039ed719694f03818f05a19f07ddf2b97b194c3bcf678b220a16", - "affectsGlobalScope": false - }, - "../../src/decorators/index.ts": { - "version": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "signature": "5b6a8eb4012e6a003a0eb47052fb864d73f59d924d4b23be619882eae4d3a2ef", - "affectsGlobalScope": false - }, - "../../src/errors/not-browser.exception.ts": { - "version": "7ac9a7cc60ae78bc4170a03c03af39fb03ffa79f1b1e47f7fe5e69a830d14a28", - "signature": "ed7d49a5cdd3af972ed97e20376faac771c6522f2ac50f21c8ba535636122b99", - "affectsGlobalScope": false - }, - "../../src/errors/null-pointer.exception.ts": { - "version": "5e4c28420df4a6cbafad6d11832de5f435badbafb7deecd0278c8222e1cffd67", - "signature": "679f4c9c604b9878a48ef85e68813c5138aff13fc69b1973cf1437080396d0ec", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-parameter.exception.ts": { - "version": "0a6beec39c8e46002f99f858b3d8427d7a413b01d5d7e0e6d7b32c86fe7317c7", - "signature": "a596aafe7b10173456ccf3940b63df7702bf826fec94ff4fa55c4cd4db45dae8", - "affectsGlobalScope": false - }, - "../../src/errors/missing-parameter.error.ts": { - "version": "98c39b59e0dc611b25b773a0be984859f57c7b3e4eeeb4e91e1a81656d1c544f", - "signature": "7def311c822451c808a8c8673a482ada351cc94121f5a25ee0125a75a0d7dccc", - "affectsGlobalScope": false - }, - "../../src/errors/no-database-connection.error.ts": { - "version": "2e6a228de7228ac55c73a72006b1c9b62fda994e59787377825000faa3349741", - "signature": "45d48ca163a28be4e32202af95f23c06cdbbd321862088e45b42b5f0a60c6c31", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-type.exception.ts": { - "version": "eec78e492e246937c13113dd1349e2ccf495dc44a853ccbaea7c758b1e8b7fc3", - "signature": "d56eea2c931aba277a4d0c592e70f15c140e2cf889f63e504f9f3540adafb38d", - "affectsGlobalScope": false - }, - "../../src/errors/index.ts": { - "version": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "signature": "130f94a653de0ded1b17308bcb8fc8cd10cf74969a6fbff8f1a30ed6ceb38f82", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-manager.ts": { - "version": "704a103f3a2ab7f645caee9d1458c81ce4778f376869e400ec5f901d2b57eb07", - "signature": "b39d338dba5e63a058efa90f14883b9c40d475694cfb7f72ca5249a08d7844ab", - "affectsGlobalScope": false - }, - "../../src/dom/types/canvas-shadow-config.ts": { - "version": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "signature": "fc98b98c0f66f57371e9a347ffcaa258d7ed4faed381276199b537a90d08b929", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-utils.ts": { - "version": "0388fe6cdbe24e3e657d2acb6209086e28339c8a5ac4f9826d50a359caf2c697", - "signature": "b37aa651d8e0f1d9375b7de30cf9537b16b9f24a12e44372dee7d05f0082dcf6", - "affectsGlobalScope": false - }, - "../../src/dom/dom-get.ts": { - "version": "01869a90d48283a227656b7b8432ece2b78e4740989a923e5f9a6fd01c40d8ed", - "signature": "c1bd3f21ea75a2bed1a468e33f0d54031b194ea974a1c49763d5620ccfdca13c", - "affectsGlobalScope": false - }, - "../../src/components/file-manager.ts": { - "version": "4ac2f4b362b3a4697d7ff17cf13211bb2cc688c76dc4a98b568b8dbf94a25ad8", - "signature": "fe5f7fe7d61d4fa5e649ac39988d234abb01674299e16cbf638f82a81a3519ed", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-priority.ts": { - "version": "fc0cd570131b61e553eb24277b28ee885323a13599a4bd549f12091491d38513", - "signature": "10b491053f804beaa35d71f0114d6aeb256b768a7060bfd4168c17cad6954832", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-default-formatter.ts": { - "version": "e2969d84a9dff58e2ed1ded0bf3b3504054164456595d3ddd04c5ab01b55e06f", - "signature": "58c7c56034ec13fc330f5f70ad981b5594eaa9cbcc48309fd21a1315fea098b3", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-callback-holder.ts": { - "version": "6dd9141ab5ff84dfb270ced5b06b2724434ebbf9b88110e9dc4fdf0b1408825f", - "signature": "2288b688744065387c9662d73ee1ac6873ec68275aa87defc0dce667f6526fa7", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-instance.ts": { - "version": "e7baa1c085fcc280bce17bccdaa67f76e355ecc4e0e4784655e9441e9337a2d0", - "signature": "5fa57b8131399ab7af1fe1c4b6661c3a79c9f0451b52f6d53550b834ea007637", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger.ts": { - "version": "0abfbc222e7aa1222e93ceb0bd99f161e5e3a8f2e5039007e2efe6e1cd9f2a54", - "signature": "3fa637bd51490fe98af5b5dba9eab674eb7c1b386aab63862a03847d6fc52455", - "affectsGlobalScope": false - }, - "../../src/components/g-map.ts": { - "version": "6403a6e7b80fe9689dfdd8cc4866687d7a3847d14755d7cb39980d0c5af7d967", - "signature": "55aa81e9bbd6963436a105fdca2991cca7395df12ffef299d4462a4dc4b85b1e", - "affectsGlobalScope": false - }, - "../../src/components/key-value-counter.ts": { - "version": "dfecbf131b84c1629d1c43286e64d42e3987204f98aca41d0f32909a85b65a68", - "signature": "f8017fa7d85acf303cd68c237cdf753da3a734043ac82fb547182331745ed112", - "affectsGlobalScope": false - }, - "../../src/components/number-counter.ts": { - "version": "ad78c0b6bef281b4ca28e4eadc7e6fc399e67f08a2322497930cac5ae559ac82", - "signature": "9b581584a16ee1f31201d552567fef34d45650754f229901ebe5f7ba9428f6e9", - "affectsGlobalScope": false - }, - "../../src/components/paginator.ts": { - "version": "1ae846e1f799abb1ffdc26539894217991dd4a2c1a885baf291ba0b0851af312", - "signature": "ac53fe116d01b1b4ebf4f1495abb8ac9367af749004f73333e4b7a97bc69355b", - "affectsGlobalScope": false - }, - "../../src/components/bidirectional-graph.ts": { - "version": "39ee7b58ac907fff42acfcd04711a51d782ed1ad4f9affc4abf3447b24158e2b", - "signature": "c827d2612b7a848845d67d46a70aebf5c1321711babe4ea10506618514d3b533", - "affectsGlobalScope": false - }, - "../../src/components/index.ts": { - "version": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "signature": "06ed276febcddc13ae275820994971af9bee5e8177049a9da8aca5d1c28d849d", - "affectsGlobalScope": false - }, - "../../src/validators/index.ts": { - "version": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "signature": "7952a92186c1751a4e3a95b3948decf894d9cc75a40d37cdcd38c70ce305b232", - "affectsGlobalScope": false - }, - "../../src/misc/slovak-stemmer.ts": { - "version": "6d5b2710b30af486ecd78c384281e5c4b25b6f5050f67402a8fb0afee709ea56", - "signature": "1b0bf24d21c9eaf45220dc244f2ba5c73f745adaa6d3abb830892116d80d56a0", - "affectsGlobalScope": false - }, - "../../src/misc/ajax.ts": { - "version": "6a24655e92cf6b5c79334bca1070de293462e2886d9724e498925114732a1554", - "signature": "800f5ba699069ae30f597a0cac7df176759146c82025e31cf5f3b8e8396f1637", - "affectsGlobalScope": false - }, - "../../src/misc/file-size-formatter.ts": { - "version": "10d25383ee7fcd8aef05c6ffc59c1b38c105ee737c8e470b6fbc23b59e4b78f4", - "signature": "4d7d003c632de4e14113e70f659f11211f439f3e90a5a46e3dea1c9229c81a07", - "affectsGlobalScope": false - }, - "../../src/misc/simple-loop.ts": { - "version": "55f3539e92174fd5608777e34178e9dd157aee2be3e8b792890baccedfd83bf7", - "signature": "f2d102996088bd8ba582f647a8ce7aa89adcac1b59167c3c43071ea1164a9ad9", - "affectsGlobalScope": false - }, - "../../src/misc/runtime-validators.ts": { - "version": "eaa40834d14246581c556e6e0e246610e8a11de53b7cab941fce5af6c3dbe602", - "signature": "d02ee3761f75537a4813eb024baa8e8b0bb243134fd5bb9ac0c79fb0eeb01dd4", - "affectsGlobalScope": false - }, - "../../src/misc/index.ts": { - "version": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "signature": "6fd509f5800febfec69cf71215d674c92647a3c4035808c25657ec7cb7157e84", - "affectsGlobalScope": false - }, - "../../src/physics/closest-2d.ts": { - "version": "083451549e5d2866a406baecfae5bc6d83d9b9d355061a3950f46fe26b3dd26d", - "signature": "4850b7cea79f6ae033a354653ffc78bfe90ff2bb6d5875efd721f8650b71ad62", - "affectsGlobalScope": false - }, - "../../src/physics/closest-3d.ts": { - "version": "65c1b49820c1db877ce527535e6bd1e5acc9af0d24f691d4bb91c813e156b562", - "signature": "6b1751054f0efec207bf720bedf6d31c124c0b40656c0a8f03828c5e4d044dca", - "affectsGlobalScope": false - }, - "../../src/physics/distances-2d.ts": { - "version": "b0151f7046ff0444d1f2382a3f58fbe663920c6565ad0219be52ee265ec2ee79", - "signature": "3186a21ab69d2cd22cb496c61a2856bd521e25284d509e0385ca0612636ebdf3", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-2d.ts": { - "version": "06144ab2cc324d688c3e83d3078f9bc8e86f4cf0ba59de534d442810263b072d", - "signature": "fe2abf59e64d2623dd3f33c6069adca318d3864e9be536b02d538e4a51c945ea", - "affectsGlobalScope": false - }, - "../../src/physics/distances-3d.ts": { - "version": "5cacf11412f8d5c6791b0aad3323482bd995233aa2ca1b8ef93185a991f29ae3", - "signature": "05660b58e1aa00097fff45326e1d86c61d3ab7798c73de6cfd9ae9a4142cb921", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-3d.ts": { - "version": "c16ac35d28ebb83f247eb5c6aab289e818218e231ae4e8347b421e121651152b", - "signature": "e5878dcba3ed2e21a6fc66c137a59b28a77eb56330774f732bfd10340550a85c", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-3d.ts": { - "version": "e9070b9f5b4255f97935125c7cdeb53823bae23ede5afdd7932b8069f76d886f", - "signature": "95cbefe15a7b5bb39ee387b7598c2989a645b21c66b67a73faee396b49936d8e", - "affectsGlobalScope": false - }, - "../../src/physics/objects/object-convertors.ts": { - "version": "5cfe350a5a71db156ae34cdebb9659eab327dd19e6477dadd06e2d2579adb186", - "signature": "5000989a5f70e969045766be3fa4b1f8aa32e1c19e7edac70543a9eb63872230", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/ray-2d.ts": { - "version": "985de7949c35d39c15fd4d6b244a3f70feabed52054ce21bf0b67740cf16afd0", - "signature": "853fda32bb3c223590d131ca46624e966a26fd2cb298fb4158b2047ceac7f339", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/object2-d.ts": { - "version": "9452670a2067e2a1f31316fa9051e0d6be7caa13870e18eb280291a491e6900c", - "signature": "2824d53d36a94cbf8ce469c0fbe5bf444f9e27be9d927e9fc0a9e5226b9b704c", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/sphere.ts": { - "version": "7fa784ed4b1b7f6144cf3921edb7bc797d82b74397157e92311f28ffa2a766f0", - "signature": "4763b4de7621ca5767a84963e88f8363fcdffa48fa059dec93712c82238b2083", - "affectsGlobalScope": false - }, - "../../src/physics/bounders-2d.ts": { - "version": "d477990b0e1a0ac464bfcda31561fb3b334580bbce81217815ab0c0c73bea4a8", - "signature": "3ce1b2e8e66e4b63326b619eb70083049181bbf1585fd4741a0c5be5b1c129bc", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/rect.ts": { - "version": "d10f001dc7fcb86dd3b1314da4cb15d1c6bad835b3728d8f631a02d77ca0bcae", - "signature": "f5a0a335a13f45f058431f15fc5abe2069301843392d913bdc63594661e056ee", - "affectsGlobalScope": false - }, - "../../src/physics/objects/index.ts": { - "version": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "signature": "25ba9b6b15f92298ad7a17ab774e061f22313a71ff439f7b0d5f4052711becc2", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-2d.ts": { - "version": "4323af0c0af0ba6ea021ed5e28975db23be983eff8d6e018765c594fa52a3a37", - "signature": "2886685a8ed119ddf48743da70557effd23df27f19882fd89777698a5f756ac9", - "affectsGlobalScope": false - }, - "../../src/physics/index.ts": { - "version": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "signature": "2ec854031b18a6a3595a39d70d10a75ca69f5466ce37173fd657e00032ffb636", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.fixture.ts": { - "version": "6f75fc70576fee07afd8ac355436f9c045fbee5d72004e6125ea6d22c7b8979e", - "signature": "eadabf14b970abd22bb0c756064eb3f62bcf1d418f552c650aabe60dc71f5a00", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.mapper.ts": { - "version": "8295eb4539f238dba561098741feea64af34ba11058d61c640410d7fca16bc2f", - "signature": "19f39a905ecbe61cdc1a3355cd2d67bbb950f8acb59fd13952fc3cf230f50a44", - "affectsGlobalScope": false - }, - "../../src/tests/abstract-database.fixture.ts": { - "version": "91adb8c41b44915cc262e32a88c0747ae9551e7e272e898dda04f5a3759a3c47", - "signature": "4c35cb5f7cd22fdc67c1f0359db7101851ca5ec614792f902a5c2e73f1206ff7", - "affectsGlobalScope": false - }, - "../../src/tests/paginate.model.ts": { - "version": "e7ba927d5a8c8653c7f3416b7e9c6b7246e329bef258b3d03b0020b9075c2708", - "signature": "917a20c55845414e4deed959b55c5fee4c4bf9f9e31bf21aeae5d387b5c33aee", - "affectsGlobalScope": false - }, - "../../src/gutils.ts": { - "version": "12b68468830f1c6169062eae3030671eae3a97bc0e3c574065810ef68d356f65", - "signature": "18ff5df310f05c80bbd03a989361f420db1adffcc50c588f4b340dac80fd3eb6", - "affectsGlobalScope": false - }, - "../../src/mockdata.ts": { - "version": "90c9877cd2e693edf94f8392f615a2e4927733ace7a1c072454f6aa9b52aa3f7", - "signature": "532645ebbc10a7b71c14b9640a4814090b73e4f41506a34821c9ed34c7fa8043", - "affectsGlobalScope": false - }, - "../../src/common.ts": { - "version": "4ed4fb6cbd50c20471f867f405dc6a05023956b0e7bbc69d41f948785294d46a", - "signature": "4fb3729a4d5d6b0a528d378b55a2977556160d0b641f60abd59822642ed92b85", - "affectsGlobalScope": false - }, - "../../src/index.ts": { - "version": "830adf9f6d6531c5159fc4f4148fa383a9e100411732b17a44d1e2039137973d", - "signature": "ec6c1edf20291bba7874b900eff1848d35ca4cb2d9eaf37e67d20114d314e5af", - "affectsGlobalScope": false - }, - "../../src/utils/fileutils.ts": { - "version": "4417956f5fcda4969f0491aee842ebf83b9f7a11334825c8a6bd715c013a28fc", - "signature": "eead743c662f5ec475679a67a9567c0ae63c1fe94260b2eaa74c4c4683c4ce0f", - "affectsGlobalScope": false - }, - "../../src/node.ts": { - "version": "9485d520ccfe74c26606276355e3396cab9ffc508a3f23e6204fe019a6055fb1", - "signature": "594ddb3b696019e039b29b40aae7e324b358e5d7f678157ffa9d23e0ad0b36d4", - "affectsGlobalScope": false - }, - "../../src/utils/domutils.ts": { - "version": "fce9cb6be46acbc59599c5402d3b957fbdd1f1adf1313d71da746e40f6732748", - "signature": "d2fceb4ba5b3120105ac97a3c56763d19d9bf846dcfed04a1e7e4377db7ef56a", - "affectsGlobalScope": false - }, - "../../src/web.ts": { - "version": "b38301821dcde1763e53ff6abb7b93d872ce87e9659e51df891c44dd222bb9f3", - "signature": "7950e6b04579c4cc70bc9050854cd33b41ae3d46611088f64b3d62c886e18640", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-camera.ts": { - "version": "9438ea841f924cc78350099aebf81d06b739ad80abc7400e17a56c6f290216c3", - "signature": "a7638e2683ba634883eab7cfec7b7594412b2f0d7f58304f25ac7bac27c8ab8b", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-misc-utilts.ts": { - "version": "4bd7748a9263f42c74088869b563af32f1049ac8888077bfef37c913dc7748b8", - "signature": "bbd4077b7956364849210b2ac0e3848279c4278869f008061fd0fd9c2f550483", - "affectsGlobalScope": false - }, - "../../src/dom/drawer.ts": { - "version": "ec7b4797ff8a62aceecd60adb122ffa79a7efd8c161d8e9949f2d77c09715de3", - "signature": "399ca9e1ad0553c02343dfa1f651be8aa5aed3d13b310e2338c80cf7151a2470", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer.ts": { - "version": "d2b05e002b13d3a498582a417c22a6fa9dd305f0c6120294443827dc1ae39be6", - "signature": "a6589b49a5855614f532e73a2e5914547aa7f2ac16e8672957272427a9d18275", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer-advanced.ts": { - "version": "108154eec4375866544b8b590592bdd9544121838a98cfc72bdc19391edc74eb", - "signature": "d4461309f71f1abb157d743bff22f81901e6cc7a1f55a5ded850f805c5160f52", - "affectsGlobalScope": false - }, - "../../src/dom/element-builder.ts": { - "version": "f77bf02ac480cc5619af127394a55bc29dc1c1316460d56c888fdc1c52b4c9ac", - "signature": "0045fe5554d529a05544818ea2ddcd9d6c55a4231634f7c8ad985663f8c95eaa", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.interface.ts": { - "version": "5d0c6b9dad60dde0fb8e3703bde5d6c93912da4786a5ce9d23675ccd9154b885", - "signature": "de0c9e1bdf2f9e8efe37bb5170b88cf83593b6d2606a8f540248cb0056929306", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.model.ts": { - "version": "ddd91a1b4bcedd7dfa467e5d61160ecb03e3ffc1dfbd3d8d6ecf11ab7300bfce", - "signature": "d2ab175a5459f8dbcbb0bcde106d45f9b4a6a2cbd3da0815a456a18fe915e9e5", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": { - "version": "973392b476ce717b24accaf327ab93d6b8fdb8b3900cc460f1770cd7720a2cfe", - "signature": "8182bf1a32dd4fe7b1c56af75d13e16e2ba767db3d657903342cb34aa5ee1a02", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": { - "version": "59ac9d02f3adb87bc6753d263bfeefe1548d07f373bd574b58cbea05b4e2d5a2", - "signature": "41ebdb0e816c6386943ed378d052402925a465128572348c016700cde12c9d48", - "affectsGlobalScope": false - }, - "../../node_modules/@types/mocha/index.d.ts": { - "version": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "signature": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "affectsGlobalScope": true - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": { - "version": "1e29c7fb52b89d69500edf01dbd3c4248a09f30cc33f85d13e951af55ad5b4f8", - "signature": "53ac14ad6796efa981ae625f11156b10ee89538b0f3432541a58d35a01518b72", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": { - "version": "504d4a8c02830dc7ea9d80f22af6f0a225cdab817f46d7bb3193a3053f87aa11", - "signature": "e2b0b7dfbda1a73d7333cd9a3a589d6049e4c047f8b93acb4d286c8b96d62602", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/test-list.ts": { - "version": "44726fcd1f6f7102248e882e318f7778b5a1527244680c26f04e2f6f7fc50c91", - "signature": "ad104c6212a6df889388ce233f3da21a8e9cf5f648baf5eb523c25d75202ddd6", - "affectsGlobalScope": false - }, - "../../src/models/path/nearest-item.ts": { - "version": "4646a4b85e4ff83c29baf51a234126ca299e22fb8a90bfab32a8db950331f102", - "signature": "d8b3409643006b82f7e4d91f00c99919627063cbcb313b936b72f670ea648350", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star.ts": { - "version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "signature": "7149f2187b5b59f3d7c92650945b1a57fdce522e9a6853158ed12ce84ae0992a", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/grid-node_download.ts": { - "version": "cda59720c81e8c9f62f06e0786c079e1df21a9bc3886f2b7cb97ad362340cdd8", - "signature": "4d62186451ad55b41e739871527b2ba89d2022e0a83f5347a7e96b9b6647dacd", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/graph_download.ts": { - "version": "52e49884568177fcf39efd49781fc1a6673f6df37eb8728b81a9779f7a93d3f9", - "signature": "72905379cd3392ffa151393173cdbecc69e8c80f3c42d4fd16cc91831347018b", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star_download.ts": { - "version": "5a4893e97ce499c8ea1ec1369216272990535c708473159c8b1b097a9bc648d3", - "signature": "3416634257948dd4ef4c1b29e2b54c3ebf3135249435032b5857938627437733", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection-holder.ts": { - "version": "0fe6a52cb242aa6e455dcb096dbad449b647397d9fefbeb3784f9b901c614186", - "signature": "2097616e7932808d5b631f14aae50805bf31aa8524995265bb26860708837f19", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection.ts": { - "version": "31a79b56fece18fa9b6fb2bf561fd1adc217334743bdf886db2d1c196dcd0b7d", - "signature": "0a50a5dff841885e5387e7e10faf903e7f4fca4542a82f1d12b043c91b05678e", - "affectsGlobalScope": false - }, - "../../src/physics/bounding-boxes/aabb3.ts": { - "version": "efe80cf839597d19fe42b5618905862e2c435e192366c5313760e45fe69521b5", - "signature": "1facf9e464ff8a4cb71e401a5ddf4eccd20d11e8e2fc2c2466b62de27fa03d03", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/capsule.ts": { - "version": "d1f952b2ef4bd0a6947301f69141d84934e7c3c28056926fb90cf89fb70c29f6", - "signature": "08288b9ebbcf16ed2ba13b9dd6f5c070d2aa6f919391e90872a0a53ad100ab27", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/line.ts": { - "version": "d649540f390bef131b1c0380831a9086cd746c0f004d71c095590a55e149d3aa", - "signature": "81447ed7773d58c119413001c4a92e39ecc73b7c7044dd4018ccb7e86cb993f0", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/triangle.ts": { - "version": "f8af68568738ce2e8087acb36753aeb5ac094e18bc8e5a3b384a5def43c49f8d", - "signature": "b91af1d55d2d17794aca1d86ef37f12278fa283c8367a0ef4d42f8840b1ffef0", - "affectsGlobalScope": false - }, - "../../src/utils/runtime.ts": { - "version": "00edc406523038cce8911333f31690fe488a9ffa542c14e1e36efea9f0aabe45", - "signature": "ac0ada4f06c31f9d70f9a5d81785fab37047b61be264267abfecd44e888a5eb4", - "affectsGlobalScope": false - }, - "../../src/utils/net-client-utils.ts": { - "version": "d5393a04c5ded9a06274e8560c68329329ce1266929e40c3b52fb1f7d6ebe9b1", - "signature": "a6b100402b964accdaf013b6833fd796d053c1693186484946c6f28144947d16", - "affectsGlobalScope": false - }, - "../../src/utils/net-server-utils.ts": { - "version": "87d178e86d5e83f10f450fb797672a577c5afd130688409311d491ae7a413952", - "signature": "a37724d72bdd7364eed7aba5c9ea7ed60029b301beafea83367562f93de0ba79", - "affectsGlobalScope": false - }, - "../../node_modules/@types/chai/index.d.ts": { - "version": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "signature": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "affectsGlobalScope": true - }, - "../../node_modules/@types/eslint/helpers.d.ts": { - "version": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "signature": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "affectsGlobalScope": true - }, - "../../node_modules/@types/json-schema/index.d.ts": { - "version": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "signature": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "affectsGlobalScope": false - }, - "../../node_modules/@types/estree/index.d.ts": { - "version": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "signature": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint/index.d.ts": { - "version": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "signature": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint-scope/index.d.ts": { - "version": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "signature": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/json5/index.d.ts": { - "version": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "signature": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.d.ts": { - "version": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "signature": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/async_hooks.d.ts": { - "version": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "signature": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/buffer.d.ts": { - "version": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "signature": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/child_process.d.ts": { - "version": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "signature": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/cluster.d.ts": { - "version": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "signature": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/console.d.ts": { - "version": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "signature": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/constants.d.ts": { - "version": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "signature": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/crypto.d.ts": { - "version": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "signature": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dgram.d.ts": { - "version": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "signature": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dns.d.ts": { - "version": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "signature": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/domain.d.ts": { - "version": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "signature": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/events.d.ts": { - "version": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "signature": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/fs.d.ts": { - "version": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "signature": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/fs/promises.d.ts": { - "version": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "signature": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http.d.ts": { - "version": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "signature": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http2.d.ts": { - "version": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "signature": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/https.d.ts": { - "version": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "signature": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/inspector.d.ts": { - "version": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "signature": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/module.d.ts": { - "version": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "signature": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/net.d.ts": { - "version": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "signature": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/os.d.ts": { - "version": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "signature": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/path.d.ts": { - "version": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "signature": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/perf_hooks.d.ts": { - "version": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "signature": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/process.d.ts": { - "version": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "signature": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/punycode.d.ts": { - "version": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "signature": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/querystring.d.ts": { - "version": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "signature": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/readline.d.ts": { - "version": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "signature": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/repl.d.ts": { - "version": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "signature": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/stream.d.ts": { - "version": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "signature": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/string_decoder.d.ts": { - "version": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "signature": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/timers.d.ts": { - "version": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "signature": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tls.d.ts": { - "version": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "signature": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/trace_events.d.ts": { - "version": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "signature": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tty.d.ts": { - "version": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "signature": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/url.d.ts": { - "version": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "signature": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/util.d.ts": { - "version": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "signature": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/v8.d.ts": { - "version": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "signature": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/vm.d.ts": { - "version": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "signature": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/worker_threads.d.ts": { - "version": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "signature": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/zlib.d.ts": { - "version": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "signature": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.4/base.d.ts": { - "version": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "signature": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.global.d.ts": { - "version": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "signature": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/wasi.d.ts": { - "version": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "signature": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.6/base.d.ts": { - "version": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "signature": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/assert.d.ts": { - "version": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "signature": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/base.d.ts": { - "version": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "signature": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/index.d.ts": { - "version": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "affectsGlobalScope": false - } - }, - "options": { - "declaration": true, - "diagnostics": true, - "rootDir": "../../src", - "experimentalDecorators": true, - "outDir": "./", - "module": 5, - "noImplicitAny": true, - "strict": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "alwaysStrict": true, - "strictPropertyInitialization": true, - "target": 99, - "lib": [ - "lib.es2016.d.ts", - "lib.dom.d.ts" - ], - "moduleResolution": 2, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "baseUrl": "../..", - "paths": { - "gtools/utils": [ - "./src/utils" - ], - "gtools/math": [ - "./src/math" - ], - "gtools/errors": [ - "./src/errors" - ], - "gtools/enums": [ - "./src/enums" - ], - "gtools/models": [ - "./src/models" - ], - "gtools/types": [ - "./src/types" - ], - "gtools/physics": [ - "./src/physics" - ], - "gtools/components": [ - "./src/components" - ] - }, - "incremental": true, - "sourceMap": true, - "removeComments": false, - "pathsBasePath": "D:/Projects/gtools", - "noEmit": false, - "importHelpers": true, - "composite": true, - "declarationMap": true, - "declarationDir": "..", - "emitDeclarationOnly": true, - "configFilePath": "../../src/tsconfig.types.json" - }, - "referencedMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/bidirectional-graph.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/file-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/components/g-map.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/key-value-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/utils/index.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-priority.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/components/number-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/paginator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.ts" - ], - "../../src/config/gtools-config.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.interface.ts" - ], - "../../src/constants.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/decorators/final-class.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/mapper.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/singleton.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/dom-get.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/dom/drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/element-builder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/types/canvas-shadow-config.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/button.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/days.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/encodings.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/file-types.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/http-status-codes.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/enums/keys.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/errors/missing-parameter.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/no-database-connection.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/not-browser.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/null-pointer.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-parameter.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-type.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/gutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/mat4.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector-xz.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector2f.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/ajax.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/file-size-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/misc/runtime-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/simple-loop.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/slovak-stemmer.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/mockdata.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/color.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/index.ts" - ], - "../../src/models/countries/country.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/countries/country.interface.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/binary-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/g43-collection.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/abstract-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/linked-list-entry.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/sorted-array-utils.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/gender.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/grid-node_download.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/djikstra/djikstra.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/nearest-item.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/priority-queue.ts" - ], - "../../src/models/range.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/color.model.ts", - "../../src/utils/index.ts" - ], - "../../src/models/selection/selection-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/selection/selection.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/selection/selection-holder.ts" - ], - "../../src/models/sorting/bucket-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/counting-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/heap-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/sorting/insertion-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/merge-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/quick-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/radix-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/collisions-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/distances-2d.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-3d.ts" - ], - "../../src/physics/distances-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/tests/abstract.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/abstract.mapper.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/paginate.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/horizontal-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/key-value.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/nested-string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/key-value.interface.ts" - ], - "../../src/types/optional.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/prop.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/property-decorator.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/ray2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/round-data.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/size.interaface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/type.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/unit-number.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/vertical-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/analytics-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/coerce-util.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/color-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/utils/date-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/domutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/dom-get.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/types/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/fileutils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/string-utils.ts" - ], - "../../src/utils/html-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/constants.ts" - ], - "../../src/utils/image-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/utils/math-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/random-utils.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/net-client-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/parser-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/process-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/random-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/reflection-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/runtime.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/sorted-array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/string-checkers.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/utils/svg-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/time-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/validators/misc-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/web.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "exportedModulesMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/file-manager.ts": [ - "../../src/enums/index.ts" - ], - "../../src/components/index.ts": [ - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../src/config/gtools-config.interface.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/decorators/index.ts": [ - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/drawer.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/enums/index.ts": [ - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/errors/index.ts": [ - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/gutils.ts": [ - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector3.ts": [ - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/index.ts": [ - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../src/models/countries/country.interface.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/index.ts": [ - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../src/math/index.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/range.ts": [ - "../../src/math/index.ts", - "../../src/models/color.model.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/index.ts": [ - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../src/types/key-value.interface.ts" - ], - "../../src/types/ray2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/utils/domutils.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/utils/index.ts": [ - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../src/enums/index.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../src/validators/misc-validators.ts" - ], - "../../src/web.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../node_modules/@types/chai/index.d.ts", - "../../node_modules/@types/eslint-scope/index.d.ts", - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts", - "../../node_modules/@types/json5/index.d.ts", - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/base.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/index.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/wasi.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../node_modules/typescript/lib/lib.dom.d.ts", - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts", - "../../node_modules/typescript/lib/lib.es2015.core.d.ts", - "../../node_modules/typescript/lib/lib.es2015.d.ts", - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts", - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", - "../../node_modules/typescript/lib/lib.es2016.d.ts", - "../../node_modules/typescript/lib/lib.es2017.d.ts", - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2017.object.d.ts", - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", - "../../node_modules/typescript/lib/lib.es2017.string.d.ts", - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", - "../../node_modules/typescript/lib/lib.es2018.d.ts", - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", - "../../node_modules/typescript/lib/lib.es5.d.ts", - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts", - "../../src/common.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/index.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/constants.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/index.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts", - "../../src/dom/canvas-camera.ts", - "../../src/dom/canvas-drawer-advanced.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/drawer.ts", - "../../src/dom/element-builder.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/index.ts", - "../../src/enums/keys.enum.ts", - "../../src/errors/index.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts", - "../../src/gutils.ts", - "../../src/index.ts", - "../../src/math/index.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/index.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/mockdata.ts", - "../../src/models/color.model.ts", - "../../src/models/countries/country.interface.ts", - "../../src/models/countries/country.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/g43-collection.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts", - "../../src/models/data-structures/list/test-list.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/index.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/a-star/a-star.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/path/nearest-item.ts", - "../../src/models/range.ts", - "../../src/models/selection/selection-holder.ts", - "../../src/models/selection/selection.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/index.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts", - "../../src/models/transform-2d.ts", - "../../src/node.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/bounding-boxes/aabb3.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/index.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/2d/capsule.ts", - "../../src/physics/objects/2d/line.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/2d/triangle.ts", - "../../src/physics/objects/index.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/index.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/index.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/net-client-utils.ts", - "../../src/utils/net-server-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/runtime.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-checkers.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts", - "../../src/validators/index.ts", - "../../src/validators/misc-validators.ts", - "../../src/web.ts" - ] - }, - "version": "4.1.5" -} \ No newline at end of file diff --git a/dist/_esm/types/helpers/min-max-2d.interface.js b/dist/_esm/types/helpers/min-max-2d.interface.js deleted file mode 100644 index bde698d8..00000000 --- a/dist/_esm/types/helpers/min-max-2d.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=min-max-2d.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/min-max-2d.interface.js.map b/dist/_esm/types/helpers/min-max-2d.interface.js.map deleted file mode 100644 index d3a3a57c..00000000 --- a/dist/_esm/types/helpers/min-max-2d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-2d.interface.js","sourceRoot":"","sources":["../../../../src/types/helpers/min-max-2d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/helpers/min-max-3d.interface.js b/dist/_esm/types/helpers/min-max-3d.interface.js deleted file mode 100644 index 554e70f4..00000000 --- a/dist/_esm/types/helpers/min-max-3d.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=min-max-3d.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/min-max-3d.interface.js.map b/dist/_esm/types/helpers/min-max-3d.interface.js.map deleted file mode 100644 index 7c1fafac..00000000 --- a/dist/_esm/types/helpers/min-max-3d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-3d.interface.js","sourceRoot":"","sources":["../../../../src/types/helpers/min-max-3d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/helpers/pos-size-2d.js b/dist/_esm/types/helpers/pos-size-2d.js deleted file mode 100644 index 0594757b..00000000 --- a/dist/_esm/types/helpers/pos-size-2d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=pos-size-2d.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/pos-size-2d.js.map b/dist/_esm/types/helpers/pos-size-2d.js.map deleted file mode 100644 index 1ee4891a..00000000 --- a/dist/_esm/types/helpers/pos-size-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-2d.js","sourceRoot":"","sources":["../../../../src/types/helpers/pos-size-2d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/helpers/pos-size-3d.js b/dist/_esm/types/helpers/pos-size-3d.js deleted file mode 100644 index af56e4d5..00000000 --- a/dist/_esm/types/helpers/pos-size-3d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=pos-size-3d.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/pos-size-3d.js.map b/dist/_esm/types/helpers/pos-size-3d.js.map deleted file mode 100644 index 2601d637..00000000 --- a/dist/_esm/types/helpers/pos-size-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-3d.js","sourceRoot":"","sources":["../../../../src/types/helpers/pos-size-3d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/helpers/xywh.js b/dist/_esm/types/helpers/xywh.js deleted file mode 100644 index 32ee0f5c..00000000 --- a/dist/_esm/types/helpers/xywh.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=xywh.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/xywh.js.map b/dist/_esm/types/helpers/xywh.js.map deleted file mode 100644 index d35e75a3..00000000 --- a/dist/_esm/types/helpers/xywh.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xywh.js","sourceRoot":"","sources":["../../../../src/types/helpers/xywh.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/helpers/xyzwhd.js b/dist/_esm/types/helpers/xyzwhd.js deleted file mode 100644 index 4945b2e2..00000000 --- a/dist/_esm/types/helpers/xyzwhd.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=xyzwhd.js.map \ No newline at end of file diff --git a/dist/_esm/types/helpers/xyzwhd.js.map b/dist/_esm/types/helpers/xyzwhd.js.map deleted file mode 100644 index 0ea18bdf..00000000 --- a/dist/_esm/types/helpers/xyzwhd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xyzwhd.js","sourceRoot":"","sources":["../../../../src/types/helpers/xyzwhd.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/horizontal-align.type.js b/dist/_esm/types/horizontal-align.type.js deleted file mode 100644 index fdc1e7f5..00000000 --- a/dist/_esm/types/horizontal-align.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=horizontal-align.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/horizontal-align.type.js.map b/dist/_esm/types/horizontal-align.type.js.map deleted file mode 100644 index 15fa83ad..00000000 --- a/dist/_esm/types/horizontal-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-align.type.js","sourceRoot":"","sources":["../../../src/types/horizontal-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/index.js b/dist/_esm/types/index.js deleted file mode 100644 index 21cd03c2..00000000 --- a/dist/_esm/types/index.js +++ /dev/null @@ -1,23 +0,0 @@ -export * from "./helpers/min-max-2d.interface"; -export * from "./helpers/min-max-3d.interface"; -export * from "./helpers/xywh"; -export * from "./helpers/xyzwhd"; -export * from "./helpers/pos-size-2d"; -export * from "./helpers/pos-size-3d"; -export * from "./horizontal-align.type"; -export * from "./key-value.interface"; -export * from "./nested-string-map.interface"; -export * from "./object-entry.interface"; -export * from "./optional.type"; -export * from "./prop.type"; -export * from "./property-decorator.type"; -export * from "./ray2D"; -export * from "./ray3D"; -export * from "./round-data.type"; -export * from "./size.interaface"; -export * from "./string-map.interface"; -export * from "./text-options.interface"; -export * from "./type.interface"; -export * from "./unit-number.type"; -export * from "./vertical-align.type"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/types/index.js.map b/dist/_esm/types/index.js.map deleted file mode 100644 index 53d8ea8b..00000000 --- a/dist/_esm/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/types/key-value.interface.js b/dist/_esm/types/key-value.interface.js deleted file mode 100644 index dfffadb5..00000000 --- a/dist/_esm/types/key-value.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=key-value.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/key-value.interface.js.map b/dist/_esm/types/key-value.interface.js.map deleted file mode 100644 index a9626015..00000000 --- a/dist/_esm/types/key-value.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value.interface.js","sourceRoot":"","sources":["../../../src/types/key-value.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/nested-string-map.interface.js b/dist/_esm/types/nested-string-map.interface.js deleted file mode 100644 index 44e321b5..00000000 --- a/dist/_esm/types/nested-string-map.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=nested-string-map.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/nested-string-map.interface.js.map b/dist/_esm/types/nested-string-map.interface.js.map deleted file mode 100644 index 38c3df6f..00000000 --- a/dist/_esm/types/nested-string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nested-string-map.interface.js","sourceRoot":"","sources":["../../../src/types/nested-string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/object-entry.interface.js b/dist/_esm/types/object-entry.interface.js deleted file mode 100644 index af880b73..00000000 --- a/dist/_esm/types/object-entry.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=object-entry.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/object-entry.interface.js.map b/dist/_esm/types/object-entry.interface.js.map deleted file mode 100644 index 029870e4..00000000 --- a/dist/_esm/types/object-entry.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-entry.interface.js","sourceRoot":"","sources":["../../../src/types/object-entry.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/optional.type.js b/dist/_esm/types/optional.type.js deleted file mode 100644 index d28af337..00000000 --- a/dist/_esm/types/optional.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=optional.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/optional.type.js.map b/dist/_esm/types/optional.type.js.map deleted file mode 100644 index b1934183..00000000 --- a/dist/_esm/types/optional.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optional.type.js","sourceRoot":"","sources":["../../../src/types/optional.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/prop.type.js b/dist/_esm/types/prop.type.js deleted file mode 100644 index dfcf3099..00000000 --- a/dist/_esm/types/prop.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=prop.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/prop.type.js.map b/dist/_esm/types/prop.type.js.map deleted file mode 100644 index 09ee67c3..00000000 --- a/dist/_esm/types/prop.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prop.type.js","sourceRoot":"","sources":["../../../src/types/prop.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/property-decorator.type.js b/dist/_esm/types/property-decorator.type.js deleted file mode 100644 index bced99c5..00000000 --- a/dist/_esm/types/property-decorator.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=property-decorator.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/property-decorator.type.js.map b/dist/_esm/types/property-decorator.type.js.map deleted file mode 100644 index 71b9bdac..00000000 --- a/dist/_esm/types/property-decorator.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property-decorator.type.js","sourceRoot":"","sources":["../../../src/types/property-decorator.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/ray2D.js b/dist/_esm/types/ray2D.js deleted file mode 100644 index 729bfced..00000000 --- a/dist/_esm/types/ray2D.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ray2D.js.map \ No newline at end of file diff --git a/dist/_esm/types/ray2D.js.map b/dist/_esm/types/ray2D.js.map deleted file mode 100644 index 5dcd1dc5..00000000 --- a/dist/_esm/types/ray2D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray2D.js","sourceRoot":"","sources":["../../../src/types/ray2D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/ray3D.js b/dist/_esm/types/ray3D.js deleted file mode 100644 index 52172fcc..00000000 --- a/dist/_esm/types/ray3D.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ray3D.js.map \ No newline at end of file diff --git a/dist/_esm/types/ray3D.js.map b/dist/_esm/types/ray3D.js.map deleted file mode 100644 index d991f6b9..00000000 --- a/dist/_esm/types/ray3D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray3D.js","sourceRoot":"","sources":["../../../src/types/ray3D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/round-data.type.js b/dist/_esm/types/round-data.type.js deleted file mode 100644 index 6427ea92..00000000 --- a/dist/_esm/types/round-data.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=round-data.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/round-data.type.js.map b/dist/_esm/types/round-data.type.js.map deleted file mode 100644 index c6bd987c..00000000 --- a/dist/_esm/types/round-data.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"round-data.type.js","sourceRoot":"","sources":["../../../src/types/round-data.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/size.interaface.js b/dist/_esm/types/size.interaface.js deleted file mode 100644 index b18ed447..00000000 --- a/dist/_esm/types/size.interaface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=size.interaface.js.map \ No newline at end of file diff --git a/dist/_esm/types/size.interaface.js.map b/dist/_esm/types/size.interaface.js.map deleted file mode 100644 index ee57b967..00000000 --- a/dist/_esm/types/size.interaface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"size.interaface.js","sourceRoot":"","sources":["../../../src/types/size.interaface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/string-map.interface.js b/dist/_esm/types/string-map.interface.js deleted file mode 100644 index cee7229d..00000000 --- a/dist/_esm/types/string-map.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=string-map.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/string-map.interface.js.map b/dist/_esm/types/string-map.interface.js.map deleted file mode 100644 index c8076955..00000000 --- a/dist/_esm/types/string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-map.interface.js","sourceRoot":"","sources":["../../../src/types/string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/text-options.interface.js b/dist/_esm/types/text-options.interface.js deleted file mode 100644 index e23bec0c..00000000 --- a/dist/_esm/types/text-options.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=text-options.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/text-options.interface.js.map b/dist/_esm/types/text-options.interface.js.map deleted file mode 100644 index c2d5874f..00000000 --- a/dist/_esm/types/text-options.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"text-options.interface.js","sourceRoot":"","sources":["../../../src/types/text-options.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/type.interface.js b/dist/_esm/types/type.interface.js deleted file mode 100644 index 757104b6..00000000 --- a/dist/_esm/types/type.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=type.interface.js.map \ No newline at end of file diff --git a/dist/_esm/types/type.interface.js.map b/dist/_esm/types/type.interface.js.map deleted file mode 100644 index 7cda4b25..00000000 --- a/dist/_esm/types/type.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.interface.js","sourceRoot":"","sources":["../../../src/types/type.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/unit-number.type.js b/dist/_esm/types/unit-number.type.js deleted file mode 100644 index 3452729c..00000000 --- a/dist/_esm/types/unit-number.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=unit-number.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/unit-number.type.js.map b/dist/_esm/types/unit-number.type.js.map deleted file mode 100644 index 6e59a7e9..00000000 --- a/dist/_esm/types/unit-number.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unit-number.type.js","sourceRoot":"","sources":["../../../src/types/unit-number.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/types/vertical-align.type.js b/dist/_esm/types/vertical-align.type.js deleted file mode 100644 index 54df0936..00000000 --- a/dist/_esm/types/vertical-align.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=vertical-align.type.js.map \ No newline at end of file diff --git a/dist/_esm/types/vertical-align.type.js.map b/dist/_esm/types/vertical-align.type.js.map deleted file mode 100644 index 928c2b68..00000000 --- a/dist/_esm/types/vertical-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vertical-align.type.js","sourceRoot":"","sources":["../../../src/types/vertical-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm/utils/DomUtils.js b/dist/_esm/utils/DomUtils.js deleted file mode 100644 index fd0f2b82..00000000 --- a/dist/_esm/utils/DomUtils.js +++ /dev/null @@ -1,161 +0,0 @@ -import { NotBrowserException } from "gtools/errors"; -import { DomGet } from "../dom/dom-get"; -import * as Checkers from "../validators/misc-validators"; -export class DomUtils { - static getWindowHeight() { - if (typeof window === "undefined") { - throw new NotBrowserException(); - } - return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; - } - static getWindowWidth() { - if (typeof window === "undefined") { - throw new NotBrowserException(); - } - return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - } - static text(element, text, append = true) { - if (append) { - element.textContent += text; - } - else { - element.textContent = text; - } - return element; - } - static html(element, html, append = true) { - if (append) { - if (typeof html === "string") { - element.innerHTML += html; - } - else if (Checkers.isElement(html)) { - element.appendChild(html); - } - } - else if (typeof html === "string") { - element.innerHTML = html; - } - else if (Checkers.isElement(html)) { - element.innerHTML = ""; - element.appendChild(html); - } - return element; - } - static class(element, name, force = false) { - if (Array.isArray(name)) { - for (const className of name) { - DomUtils.class(element, className, force); - } - } - else { - switch (name[0]) { - case "+": - element.classList.add(name.substring(1)); - break; - case "-": - element.classList.remove(name.substring(1)); - break; - case "/": - name = name.substring(1); - if (Checkers.isBoolean(force)) { - element.classList.toggle(name, force); - } - else { - element.classList.toggle(name); - } - break; - default: - return element.classList.contains(name); - } - } - return element; - } - static createElement(name, attr, cont, style) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - if (typeof name === "object") { - return DomUtils.createElement(name.name, name.attr || {}, name.cont || "", name.style); - } - const el = document.createElement(name); - if (typeof attr === "object") { - for (const key in attr) { - if (attr.hasOwnProperty(key)) { - el.setAttribute(key, attr[key]); - } - } - } - if (typeof style === "object") { - for (const key in style) { - if (style.hasOwnProperty(key)) { - el.style[key] = style[key]; - } - } - } - if (Array.isArray(cont)) { - cont.forEach((e) => { - DomUtils.html(el, e, true); - }); - } - else { - DomUtils.html(el, cont); - } - return el; - } - static remove(element) { - const parentElement = element.parentElement; - if (parentElement) { - parentElement.removeChild(element); - } - return element; - } - static position(element) { - let top = 0; - let left = 0; - do { - top += element.offsetTop || 0; - left += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return { - x: left, - y: top, - }; - } - static indexOf(element) { - let index = 0; - while (element) { - element = element.previousElementSibling; - index++; - } - return index; - } - static size(element) { - return { - height: element.offsetHeight, - width: element.offsetWidth, - }; - } - static serialize(form) { - const result = {}; - if (!Checkers.isElement(form)) { - return result; - } - if (form.tagName.toLowerCase() !== "form") { - return result; - } - const elements = DomGet.byTag("input"); - for (const key in elements) { - if (!elements.hasOwnProperty(key)) { - continue; - } - const e = elements[key]; - const name = e.getAttribute("name"); - if (name) { - result[name] = e.getAttribute("value"); - } - } - return result; - } -} -//# sourceMappingURL=DomUtils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/DomUtils.js.map b/dist/_esm/utils/DomUtils.js.map deleted file mode 100644 index 9a20beb8..00000000 --- a/dist/_esm/utils/DomUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DomUtils.js","sourceRoot":"","sources":["../../../src/utils/DomUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAS1D,MAAM,OAAO,QAAQ;IAMV,MAAM,CAAC,eAAe;QACzB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC/B,MAAM,IAAI,mBAAmB,EAAE,CAAC;SACnC;QAGD,OAAO,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;IACrG,CAAC;IAOM,MAAM,CAAC,cAAc;QACxB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC/B,MAAM,IAAI,mBAAmB,EAAE,CAAC;SACnC;QAGD,OAAO,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,eAAe,CAAC,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;IAClG,CAAC;IAUM,MAAM,CAAC,IAAI,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OAAO,EAAE;YACZ,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC;YACzC,KAAK,EAAE,CAAC;SACX;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAQM,MAAM,CAAC,IAAI,CAAC,OAAoB;QACnC,OAAO;YACH,MAAM,EAAE,OAAO,CAAC,YAAY;YAC5B,KAAK,EAAG,OAAO,CAAC,WAAW;SAC9B,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,IAAqB;QACzC,MAAM,MAAM,GAAc,EAAE,CAAC;QAE7B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;YAC3B,OAAO,MAAM,CAAC;SACjB;QAGD,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE;YACvC,OAAO,MAAM,CAAC;SACjB;QAGD,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAGvC,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;YACxB,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;gBAC/B,SAAS;aACZ;YACD,MAAM,CAAC,GAAY,QAAQ,CAAC,GAAG,CAAC,CAAC;YACjC,MAAM,IAAI,GAAS,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YAC1C,IAAI,IAAI,EAAE;gBACN,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,OAAO,CAAW,CAAC;aACpD;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/utils/FileUtils.js b/dist/_esm/utils/FileUtils.js deleted file mode 100644 index 485b5422..00000000 --- a/dist/_esm/utils/FileUtils.js +++ /dev/null @@ -1,89 +0,0 @@ -import * as fs from "fs"; -import * as path from "path"; -import { joinSingle } from "./string-utils"; -function walk(dir, done) { - const results = []; - fs.readdir(dir, (err, list) => { - if (err) { - return done(err); - } - let pending = list.length; - if (!pending) { - return done(null, results); - } - list.forEach((file) => { - file = path.resolve(dir, file); - fs.stat(file, (err1, stat) => { - if (stat && stat.isDirectory()) { - walk(file, (err2, res) => { - if (!res) { - return; - } - results.push(...res); - pending--; - if (!pending) { - done(null, results); - } - }); - } - else { - results.push(file); - pending--; - if (!pending) { - done(null, results); - } - } - }); - }); - }); -} -export class FileUtils { - static scanDirRecursive(dir) { - return new Promise((success, reject) => { - fs.stat(dir, (err0, stats) => { - if (err0) { - return reject(err0); - } - if (!stats.isDirectory()) { - return reject(dir + " is not directory"); - } - walk(dir, (err, data) => { - if (err) { - return reject(err); - } - success(data); - }); - }); - }); - } - static loadFileJSON(url, callback) { - FileUtils.loadFile(url, (err, data) => callback(err, JSON.parse(data))); - } - static loadFile(url, callback, encoding = "utf8") { - fs.readFile(url, encoding, callback); - } - static saveJsonFile(data, fileName) { - return FileUtils.saveFile(JSON.stringify(data), fileName); - } - static saveFile(data, fileName) { - return new Promise((success, reject) => { - fs.writeFile(fileName, data, (err) => { - err ? reject(err) : success("The file was saved!"); - }); - }); - } - static removeFile(fileName) { - return new Promise((success, reject) => { - fs.unlink(fileName, (err) => { - err ? reject(err) : success("The file was removed!"); - }); - }); - } - static checkExtension(name, extension) { - if (name.endsWith(extension)) { - return name; - } - return joinSingle(name, ".", extension); - } -} -//# sourceMappingURL=FileUtils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/FileUtils.js.map b/dist/_esm/utils/FileUtils.js.map deleted file mode 100644 index 976f7c6d..00000000 --- a/dist/_esm/utils/FileUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileUtils.js","sourceRoot":"","sources":["../../../src/utils/FileUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,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AAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;gBACjC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,QAAgB;QACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;gBACxB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YACzD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,IAAY,EAAE,SAAiB;QACxD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QAED,OAAO,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/utils/Runtime.js b/dist/_esm/utils/Runtime.js deleted file mode 100644 index 75c38056..00000000 --- a/dist/_esm/utils/Runtime.js +++ /dev/null @@ -1,72 +0,0 @@ -import { NullPointerException, WrongParameterException, WrongTypeException } from "gtools/errors"; -import * as Checkers from "../validators/misc-validators"; -let useRuntimeCheckers = true; -export class Runtime { - static useRuntimeExceptions(value) { - useRuntimeCheckers = value; - } - static notNull(obj) { - if (useRuntimeCheckers && obj === null) { - throw new NullPointerException(); - } - return obj; - } - static exists(obj) { - if (useRuntimeCheckers && (typeof obj !== "boolean" && !obj)) { - throw new Error("Variable "); - } - return obj; - } - static isArray(obj) { - if (useRuntimeCheckers && !Checkers.isArray(obj)) { - throw new WrongTypeException("Array"); - } - return obj; - } - static isString(obj) { - if (useRuntimeCheckers && !Checkers.isString(obj)) { - throw new WrongTypeException("string"); - } - return obj; - } - static isNumber(obj) { - if (useRuntimeCheckers && !Checkers.isNumber(obj)) { - throw new WrongTypeException("number"); - } - return obj; - } - static isFunction(obj) { - if (useRuntimeCheckers && !Checkers.isFunction(obj)) { - throw new WrongTypeException("function"); - } - return obj; - } - static checkFunction(func, args = [], thisArg = this) { - try { - func.apply(thisArg, args); - return true; - } - catch (e) { - return false; - } - } - static isBoolean(obj) { - if (useRuntimeCheckers && !Checkers.isBoolean(obj)) { - throw new WrongTypeException("boolean"); - } - return obj; - } - static min(obj, value) { - if (useRuntimeCheckers && obj <= value) { - throw new WrongParameterException(`Number ${obj} must be greater than ${value}`); - } - return obj; - } - static max(obj, value) { - if (useRuntimeCheckers && obj >= value) { - throw new WrongParameterException(`Number ${obj} must be lower than ${value}`); - } - return obj; - } -} -//# sourceMappingURL=Runtime.js.map \ No newline at end of file diff --git a/dist/_esm/utils/Runtime.js.map b/dist/_esm/utils/Runtime.js.map deleted file mode 100644 index a0633749..00000000 --- a/dist/_esm/utils/Runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../src/utils/Runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,IAAI,kBAAkB,GAAG,IAAI,CAAC;AAE9B,MAAM,OAAO,OAAO;IACT,MAAM,CAAC,oBAAoB,CAAC,KAAc;QAC7C,kBAAkB,GAAG,KAAK,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,OAAO,CAAI,GAAM;QAC3B,IAAI,kBAAkB,I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,IAAI;YACA,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAE1B,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,KAAK,CAAC;SAChB;IACL,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,GAAY;QAChC,IAAI,kBAAkB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YAChD,MAAM,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAC;SAC3C;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,GAAG,CAAC,GAAW,EAAE,KAAa;QACxC,IAAI,kBAAkB,IAAI,GAAG,IAAI,KAAK,EAAE;YACpC,MAAM,IAAI,uBAAuB,CAAC,UAAU,GAAG,0BAA0B,KAAK,EAAE,CAAC,CAAC;SACrF;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,MAAM,CAAC,GAAG,CAAC,GAAW,EAAE,KAAa;QACxC,IAAI,kBAAkB,IAAI,GAAG,IAAI,KAAK,EAAE;YACpC,MAAM,IAAI,uBAAuB,CAAC,UAAU,GAAG,wBAAwB,KAAK,EAAE,CAAC,CAAC;SACnF;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/_esm/utils/analytics-utils.js b/dist/_esm/utils/analytics-utils.js deleted file mode 100644 index 57887a52..00000000 --- a/dist/_esm/utils/analytics-utils.js +++ /dev/null @@ -1,40 +0,0 @@ -export function isIE() { - return navigator.userAgent.indexOf("MSIE") >= 0; -} -export function isIE6() { - return navigator.userAgent.indexOf("MSIE 6") >= 0; -} -export function isIE11() { - return !!navigator.userAgent.match(/Trident\/7\./); -} -export function isEdge() { - return !!navigator.userAgent.match(/Edge\//); -} -export function isSafari() { - return navigator.userAgent.indexOf("AppleWebKit/") >= 0 && - navigator.userAgent.indexOf("Chrome/") < 0 && - navigator.userAgent.indexOf("Edge/") < 0; -} -export function isIOS() { - return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g); -} -export function isChromeApp() { - var _a, _b, _c; - return (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.chrome) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.runtime; -} -export function isWin() { - return navigator.appVersion.indexOf("Win") > 0; -} -export function isMac() { - return navigator.appVersion.indexOf("Mac") > 0; -} -export function isChromeOs() { - return /\bCrOS\b/.test(navigator.userAgent); -} -export function isTouch() { - return "ontouchstart" in document.documentElement; -} -export function hasMouse() { - return "onmousemove" in document.documentElement; -} -//# sourceMappingURL=analytics-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/analytics-utils.js.map b/dist/_esm/utils/analytics-utils.js.map deleted file mode 100644 index f5bd1d5e..00000000 --- a/dist/_esm/utils/analytics-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analytics-utils.js","sourceRoot":"","sources":["../../../src/utils/analytics-utils.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,IAAI;IAChB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAKD,MAAM,UAAU,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AACvD,CAAC;AAKD,MAAM,UAAU,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,QAAQ;IACpB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC;QACnD,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;QAC1C,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAC9D,CAAC;AAKD,MAAM,UAAU,WAAW;;IACvB,yBAAQ,MAAc,0CAAE,MAAM,0CAAE,GAAG,0CAAE,OAAO,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAKD,MAAM,UAAU,UAAU;IACtB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAKD,MAAM,UAAU,OAAO;IACnB,OAAO,cAAc,IAAI,QAAQ,CAAC,eAAe,CAAC;AACtD,CAAC;AAKD,MAAM,UAAU,QAAQ;IACpB,OAAO,aAAa,IAAI,QAAQ,CAAC,eAAe,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/array-utils.js b/dist/_esm/utils/array-utils.js deleted file mode 100644 index 750af90b..00000000 --- a/dist/_esm/utils/array-utils.js +++ /dev/null @@ -1,182 +0,0 @@ -export function where(array, condition) { - if (!Array.isArray(array)) { - return array; - } - if (!condition || typeof condition !== "object") { - return []; - } - const result = []; - const conditionEntries = Object.entries(condition); - array.forEach((e) => { - const add = conditionEntries.some((conditionEntry) => e[conditionEntry[0]] === conditionEntry[1]); - if (add) { - result[result.length] = e; - } - }); - return result; -} -export function compareArrays(prev, act, comparator = (a, b) => a === b) { - if (prev.length !== act.length) { - return false; - } - for (let i = 0; i < prev.length; i++) { - if (!comparator(prev[i], act[i])) { - return false; - } - } - return true; -} -export function groupByLast(arr, key) { - return arr.reduce((acc, curr) => Object.assign({}, acc, { [curr[key]]: curr }), {}); -} -export function analyzeArrayChanges(prev, act, comparator = (a, b) => a === b) { - const existingPrevIndices = {}; - const toRemove = []; - const toAdd = []; - act.forEach((e) => { - const prevIndex = prev.findIndex((item) => comparator(e, item)); - if (prevIndex < 0) { - toAdd.push(e); - } - else { - existingPrevIndices[prevIndex] = true; - } - }); - prev.forEach((e, i) => { - if (i in existingPrevIndices) { - return; - } - toRemove.push(e); - }); - return { toAdd, toRemove }; -} -export function subArray(array, minIndex = 0, maxIndex = array.length - 1) { - if (!Array.isArray(array)) { - return array; - } - const result = []; - const final = array.length < maxIndex ? array.length - 1 : maxIndex; - for (let i = minIndex; i <= final; i++) { - result[result.length] = array[i]; - } - return result; -} -export function max(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce((a, b) => a > b ? a : b); -} -export function min(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce((a, b) => a < b ? a : b); -} -export function sum(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce((a, b) => a + b); -} -export function avg(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce((a, b) => a + b) / array.length; -} -export function join(array, delimiter, prefix = "", postfix = "") { - if (!Array.isArray(array)) { - return prefix + array + postfix; - } - return prefix + array.join(delimiter) + postfix; -} -export function getLast(array) { - if (!Array.isArray(array)) { - return array; - } - return array[array.length - 1]; -} -export function getRandomItem(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return null; - } - return array[Math.floor(Math.random() * array.length)]; -} -export function getNRandom(args, count) { - if (!Array.isArray(args)) { - return args; - } - if (args.length === 0 || count === 0) { - return []; - } - if (args.length <= count) { - return args; - } - if (Math.random() < 2) { - throw new Error("Not implemented because of infinity loop"); - } - const result = new Set(); - while (result.size <= count) { - const randomItem = getRandomItem(args); - if (randomItem) { - result.add(randomItem); - } - } - return Array.from(result); -} -export function makeUnique(array) { - if (!Array.isArray(array)) { - return array; - } - return Array.from(new Set(array)); -} -export function createFilledArray(length, provider) { - if (typeof provider === "function") { - return new Array(length).fill(null).map(() => provider()); - } - return new Array(length).fill(provider); -} -export function eachOther(arr, callback) { - arr.forEach((e, i) => { - for (let j = i + 1; j < arr.length; j++) { - callback(e, arr[j]); - } - }); -} -export function mergeArrays2(arr1, arr2, callback) { - const result = []; - arr1.forEach((item1) => { - arr2.forEach((item2) => { - result.push(callback(item1, item2)); - }); - }); - return result; -} -export function mergeArrays3(arr1, arr2, arr3, callback) { - const result = []; - arr1.forEach((item1) => { - arr2.forEach((item2) => { - arr3.forEach((item3) => { - result.push(callback(item1, item2, item3)); - }); - }); - }); - return result; -} -//# sourceMappingURL=array-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/array-utils.js.map b/dist/_esm/utils/array-utils.js.map deleted file mode 100644 index afa756ff..00000000 --- a/dist/_esm/utils/array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-utils.js","sourceRoot":"","sources":["../../../src/utils/array-utils.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,KAAK,CAAoC,KAAU,EAAE,SAAqB;IACtF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QAC7C,OAAO,EAAE,CAAC;KACb;IAED,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEnD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAChB,MAAM,GAAG,GAAG,gBAAgB,CAAC,I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,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACvB;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAGD,MAAM,UAAU,YAAY,CAAU,IAAS,EAAE,IAAS,EAAE,QAAmC;IAC3F,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACnB,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACnB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,YAAY,CAAa,IAAS,EAAE,IAAS,EAAE,IAAS,EAAE,QAA6C;IACnH,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACnB,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACnB,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBACnB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;YAC/C,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/coerce-util.js b/dist/_esm/utils/coerce-util.js deleted file mode 100644 index d7cdee15..00000000 --- a/dist/_esm/utils/coerce-util.js +++ /dev/null @@ -1,4 +0,0 @@ -export function coerceBooleanProperty(value) { - return value !== null && `${value}` !== "false"; -} -//# sourceMappingURL=coerce-util.js.map \ No newline at end of file diff --git a/dist/_esm/utils/coerce-util.js.map b/dist/_esm/utils/coerce-util.js.map deleted file mode 100644 index 6d0b1c2d..00000000 --- a/dist/_esm/utils/coerce-util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"coerce-util.js","sourceRoot":"","sources":["../../../src/utils/coerce-util.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAI,KAAQ;IAC7C,OAAO,KAAK,KAAK,IAAI,IAAI,GAAG,KAAK,EAAE,KAAK,OAAO,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/color-utils.js b/dist/_esm/utils/color-utils.js deleted file mode 100644 index 85f6e46f..00000000 --- a/dist/_esm/utils/color-utils.js +++ /dev/null @@ -1,92 +0,0 @@ -import { clamp } from "./math-utils"; -const colors = { - black: [0, 0, 0], - white: [255, 255, 255], - red: [255, 0, 0], - green: [0, 255, 0], - blue: [0, 0, 255], -}; -export function lerpColor(fromColor, toColor, progress) { - const red = progress * fromColor[0] + (1 - progress) * toColor[0]; - const green = progress * fromColor[1] + (1 - progress) * toColor[1]; - const blue = progress * fromColor[2] + (1 - progress) * toColor[2]; - const alpha = progress * fromColor[3] + (1 - progress) * toColor[3]; - return [ - clamp(red, 0, 255), - clamp(green, 0, 255), - clamp(blue, 0, 255), - clamp(alpha, 0, 255), - ]; -} -export function lerpHexaColor(a, b, amount) { - const ah = +a.replace("#", "0x"); - const ar = ah >> 16; - const ag = ah >> 8 & 0xFF; - const ab = ah & 0xFF; - const bh = +b.replace("#", "0x"); - const br = bh >> 16; - const bg = bh >> 8 & 0xFF; - const bb = bh & 0xFF; - const rr = ar + amount * (br - ar); - const rg = ag + amount * (bg - ag); - const rb = ab + amount * (bb - ab); - return "#" + ((1 << 24) + (rr << 16) + (rg << 8) + rb | 0).toString(16).slice(1); -} -export function hex2rgb(color) { - const num = parseInt(color.slice(1), 16); - return [num >> 16, num >> 8 & 0x00FF, num & 0x0000FF]; -} -export function shadeColor(color, percent) { - const num = hex2rgb(color); - const amt = Math.round(2.55 * percent); - const R = num[0] + amt; - const G = num[1] + amt; - const B = num[2] + amt; - return rgb2hex(R, G, B); -} -export function rgb2hex(R, G, B) { - return "#" + (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + - (G < 255 ? G < 1 ? 0 : G : 255) * 0x100 + - (B < 255 ? B < 1 ? 0 : B : 255)).toString(16).slice(1); -} -export function int2hex(val) { - const value = val.toString(16); - const result = "000000".substr(0, 6 - value.length) + value; - return "#" + result.toUpperCase(); -} -export function int2rgb(val) { - return [ - val >> 16, - val >> 8 & 0xFF, - val & 0xFF, - ]; -} -export function hex2int(val) { - return parseInt(val, 16); -} -export function rgb2int(R, G, B) { - return R << 16 | G << 8 & 0xFFFF | B; -} -export function parseColor(color) { - if (colors[color]) { - return colors[color]; - } - const hexaMatch = color.match(/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/); - if (hexaMatch) { - return [ - parseInt(hexaMatch[1], 16), - parseInt(hexaMatch[2], 16), - parseInt(hexaMatch[3], 16), - ]; - } - const rgbaMath = color.match(/rgba?\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3})( *, *\d*.?\d*)\)/); - if (rgbaMath) { - return [ - parseInt(rgbaMath[1], 10), - parseInt(rgbaMath[2], 10), - parseInt(rgbaMath[3], 10), - ]; - } - throw new Error("Cannot parse color: " + color); -} -//# sourceMappingURL=color-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/color-utils.js.map b/dist/_esm/utils/color-utils.js.map deleted file mode 100644 index cbf25446..00000000 --- a/dist/_esm/utils/color-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color-utils.js","sourceRoot":"","sources":["../../../src/utils/color-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAOrC,MAAM,MAAM,GAAkD;IAC1D,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;I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,CAAC;KACL;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/date-utils.js b/dist/_esm/utils/date-utils.js deleted file mode 100644 index 61149014..00000000 --- a/dist/_esm/utils/date-utils.js +++ /dev/null @@ -1,10 +0,0 @@ -export function isValidDate(obj) { - try { - const date = new Date(obj); - return !isNaN(date.getTime()); - } - catch (e) { - return false; - } -} -//# sourceMappingURL=date-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/date-utils.js.map b/dist/_esm/utils/date-utils.js.map deleted file mode 100644 index acc24463..00000000 --- a/dist/_esm/utils/date-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAmC,GAAM;IAChE,IAAI;QACA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAE3B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE;QACR,OAAO,KAAK,CAAC;KAChB;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/html-utils.js b/dist/_esm/utils/html-utils.js deleted file mode 100644 index 94c1a434..00000000 --- a/dist/_esm/utils/html-utils.js +++ /dev/null @@ -1,142 +0,0 @@ -import { ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS } from "../constants"; -export function elementToString(element) { - const classes = Array.from(element.classList).join("."); - const id = element.id ? "#" + element.id : ""; - const parent = element.parentElement ? elementToString(element.parentElement) + " > " : ""; - return parent + element.localName + id + (classes ? "." + classes : ""); -} -export function dragElement(element, headerSelector = ".header") { - let pos1 = 0; - let pos2 = 0; - let pos3 = 0; - let pos4 = 0; - const elementDrag = (e) => { - e = e || window.event; - e.preventDefault(); - pos1 = pos3 - e.clientX; - pos2 = pos4 - e.clientY; - pos3 = e.clientX; - pos4 = e.clientY; - element.style.top = element.offsetTop - pos2 + "px"; - element.style.left = element.offsetLeft - pos1 + "px"; - }; - const dragMouseDown = (e) => { - e = e || window.event; - e.preventDefault(); - pos3 = e.clientX; - pos4 = e.clientY; - document.onpointerup = closeDragElement; - document.onpointermove = elementDrag; - }; - const header = element.querySelector(headerSelector); - if (header) { - header.addEventListener("pointerdown", dragMouseDown); - } - else { - element.addEventListener("pointerdown", dragMouseDown); - } - function closeDragElement() { - document.onpointerup = null; - document.onpointermove = null; - } - return { - clear: () => { - if (header) { - header.removeEventListener("pointerdown", dragMouseDown); - } - else { - element.removeEventListener("pointerdown", dragMouseDown); - } - }, - }; -} -export function CreateImage(options) { - const result = CreateElement("img", options); - if (ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS) { - result.crossOrigin = "Anonymous"; - } - return result; -} -export function createCheckbox(label, onChange, checked = false) { - const inputElement = CreateElement("input", { - checked, - type: "checkbox", - onChange: () => onChange(inputElement.checked), - }); - return CreateElement("label", { - className: "checkbox-container", - children: [label, inputElement, CreateElement("span", { className: "checkmark" })], - }); -} -export function CreateElement(type, options) { - const result = document.createElement(type); - if (!options) { - return result; - } - Object.entries(options).forEach((entry) => { - switch (entry[0]) { - case "className": - result.className = entry[1]; - break; - case "onChange": - result.addEventListener("change", entry[1]); - break; - case "onClick": - result.addEventListener("click", entry[1]); - break; - case "checked": - result.checked = entry[1]; - break; - case "styles": - Object.entries(entry[1]).forEach((styleEntry) => { - result.style[styleEntry[0]] = styleEntry[1]; - }); - break; - case "children": - if (Array.isArray(entry[1])) { - result.append(...entry[1]); - } - else { - result.append(entry[1]); - } - break; - case "content": - if (entry[1]) { - result.innerHTML = entry[1]; - } - break; - default: - result.setAttribute(entry[0], entry[1]); - } - }); - return result; -} -export function chooseColorUsingDefaultInput(color = "#000000", onInput) { - return new Promise((success) => { - const input = CreateElement("input", { - type: "color", - className: "hidden", - value: color, - onInput: typeof onInput === "function" ? () => onInput(input.value) : undefined, - onChange: () => { - success(input.value); - document.body.removeChild(input); - }, - }); - document.body.appendChild(input); - input.click(); - }); -} -export function getOrCreate(parent, type, ...classes) { - const result = parent.querySelector(`${type}.${classes.join(".")}`); - if (result) { - return result; - } - return CreateElement(type, { className: classes.join(" ") }); -} -export function getOrCreateAndAppend(parent, type, ...classes) { - const result = getOrCreate(parent, type, ...classes); - parent.appendChild(result); - return result; -} -//# sourceMappingURL=html-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/html-utils.js.map b/dist/_esm/utils/html-utils.js.map deleted file mode 100644 index 14f675d0..00000000 --- a/dist/_esm/utils/html-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html-utils.js","sourceRoot":"","sources":["../../../src/utils/html-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,cAAc,CAAC;AAuBnE,MAAM,UAAU,eAAe,CAAC,OAAoB;IAChD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,MAAM,EAAE,GAAQ,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,MAAM,MAAM,GAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5F,OAAO,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAoB,EAAE,cAAc,GAAG,SAAS;IACxE,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI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AG,WAAW,CAAI,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,CAAC;IACxD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/image-utils.js b/dist/_esm/utils/image-utils.js deleted file mode 100644 index e05eb96d..00000000 --- a/dist/_esm/utils/image-utils.js +++ /dev/null @@ -1,41 +0,0 @@ -import { CreateElement, CreateImage } from "./html-utils"; -export function serializeImage(image) { - const canvas = CreateElement("canvas", { - width: image.width, - height: image.height, - }); - canvas.getContext("2d").drawImage(image, 0, 0); - return canvas.toDataURL("image/png"); -} -export function deserializeImage(image) { - return CreateImage({ - src: image, - }); -} -export function createImage(callback, width, height = width) { - const canvas = CreateElement("canvas", { - width, - height, - }); - callback(canvas.getContext("2d")); - return canvas; -} -export function imageAsPromise(src) { - return new Promise((success, reject) => { - const image = document.createElement("img"); - const callback = (e) => { - image.dataset.hasError = e ? "true" : "false"; - if (e.type === "error") { - reject(e); - return console.error("Error during loading image ", src); - } - image.removeEventListener("load", callback); - image.removeEventListener("error", callback); - success(image); - }; - image.addEventListener("load", callback); - image.addEventListener("error", callback); - image.src = src; - }); -} -//# sourceMappingURL=image-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/image-utils.js.map b/dist/_esm/utils/image-utils.js.map deleted file mode 100644 index e474fa70..00000000 --- a/dist/_esm/utils/image-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"image-utils.js","sourceRoot":"","sources":["../../../src/utils/image-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,UAAU,cAAc,CAAC,KAAuB;IAClD,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,EAAE;QACnC,KAAK,EAAG,KAAK,CAAC,KAAK;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;KACvB,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C;QACF,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACzC,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE1C,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/index.js b/dist/_esm/utils/index.js deleted file mode 100644 index 10b8e93a..00000000 --- a/dist/_esm/utils/index.js +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./analytics-utils"; -export * from "./array-utils"; -export * from "./coerce-util"; -export * from "./color-utils"; -export * from "./date-utils"; -export * from "./html-utils"; -export * from "./image-utils"; -export * from "./math-utils"; -export * from "./misc-utils"; -export * from "./time-utils"; -export * from "./sorted-array-utils"; -export * from "./input-utils"; -export * from "./object-utils"; -export * from "./parser-utils"; -export * from "./process-utils"; -export * from "./reflection-utils"; -export * from "./random-utils"; -export * from "./string-utils"; -export * from "./svg-utils"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/utils/index.js.map b/dist/_esm/utils/index.js.map deleted file mode 100644 index 2e93e94a..00000000 --- a/dist/_esm/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AAKrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/input-utils.js b/dist/_esm/utils/input-utils.js deleted file mode 100644 index db161902..00000000 --- a/dist/_esm/utils/input-utils.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Button } from "../enums"; -export function getButtonFromEvent(event) { - return getButtonFromEventButtons(event.button); -} -export function getButtonFromEventButtons(button) { - if (button === 0) { - return Button.LEFT; - } - if (button === 1) { - return Button.MIDDLE; - } - if (button === 2) { - return Button.RIGHT; - } -} -export function compareEventKey(event, key) { - return event.code === key; -} -//# sourceMappingURL=input-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/input-utils.js.map b/dist/_esm/utils/input-utils.js.map deleted file mode 100644 index 526a8072..00000000 --- a/dist/_esm/utils/input-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"input-utils.js","sourceRoot":"","sources":["../../../src/utils/input-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AAExC,MAAM,UAAU,kBAAkB,CAAC,KAAiB;IAChD,OAAO,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,MAA4B;IAClE,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,IAAI,CAAC;KACtB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,MAAM,CAAC;KACxB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,KAAK,CAAC;KACvB;AACL,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAoB,EAAE,GAAS;IAC3D,OAAO,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/math-utils.js b/dist/_esm/utils/math-utils.js deleted file mode 100644 index 16a2b117..00000000 --- a/dist/_esm/utils/math-utils.js +++ /dev/null @@ -1,73 +0,0 @@ -import * as Random from "./random-utils"; -export function pad(num, size) { - const s = "00000000000000" + num; - return s.substr(s.length - size); -} -export function roundToDecimals(num, decimals = 2, type = "round") { - const divider = parseInt(1 + new Array(decimals + 1).join("0"), 10); - return (Math[type](num * divider) / divider).toFixed(decimals); -} -export function hash2Numbers(x, y) { - const xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - const yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - return (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; -} -export function hash3Numbers(x, y, z) { - const xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - const yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - const zFinal = z >= 0 ? z * 2 : -z * 2 - 1; - const xyHash = (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; - return (xyHash + zFinal) * (xyHash + zFinal + 1) / 2 + zFinal; -} -export function clamp(value, min, max) { - return Math.max(min, Math.min(value, max)); -} -export function binomialCoefficient(n, k) { - let r = 1; - if (k > n) { - return 0; - } - for (let d = 1; d <= k; d++) { - r *= n; - n--; - r /= d; - } - return r; -} -export function lerp(a, b, val) { - return b * val + (1 - val) * a; -} -export function log2i(value) { - let r = 0; - while ((value >>= 1) > 0) { - r++; - } - return r; -} -export function lamp(min, max, scale) { - return clamp((max - min) * scale + min, min, max); -} -export function randomInt(min, max) { - return Random.randomIntBetween(min, max); -} -export function random(min, max) { - return Random.randomFloatBetween(min, max); -} -export function average(args) { - let sum = 0; - for (const item of args) { - sum += item; - } - return sum / args.length; -} -export function isPowerOf2(value) { - return (value & value - 1) === 0; -} -export function getDiff(num1, num2) { - return Math.abs(num1 - num2); -} -const ratio = 180 / Math.PI; -export function toDegrees(radians) { - return radians * ratio; -} -//# sourceMappingURL=math-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/math-utils.js.map b/dist/_esm/utils/math-utils.js.map deleted file mode 100644 index ea3ca09b..00000000 --- a/dist/_esm/utils/math-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"math-utils.js","sourceRoot":"","sources":["../../../src/utils/math-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,IAAY;IACzC,MAAM,CAAC,GAAG,gBAAgB,GAAG,GAAG,CAAC;IAEjC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAW,EAAE,QAAQ,GAAG,CAAC,EAAE,OAAmC,OAAO;IACjG,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAEpE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,CAAS,EAAE,CAAS;IAC7C,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE3C,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,GAAG,CA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,IAAY,EAAE,IAAY;IAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;AAE5B,MAAM,UAAU,SAAS,CAAC,OAAe;IACrC,OAAO,OAAO,GAAG,KAAK,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/misc-utils.js b/dist/_esm/utils/misc-utils.js deleted file mode 100644 index 24851f1a..00000000 --- a/dist/_esm/utils/misc-utils.js +++ /dev/null @@ -1,122 +0,0 @@ -export function parseCookies(cookies) { - const list = {}; - const data = cookies ? cookies.toString() - .split(";") : []; - data.forEach((cookie) => { - const parts = cookie.split("="); - const shiftPart = parts.shift(); - if (shiftPart) { - list[shiftPart.trim()] = decodeURI(parts.join("=")); - } - }); - return list; -} -export function isIn(obj, ...data) { - if (Array.isArray(data[0])) { - if (data[0].indexOf(obj) >= 0) { - return true; - } - } - else if (data.indexOf(obj) >= 0) { - return true; - } - return false; -} -export function parseJSONWithComments(content) { - return JSON.parse(content.replace(/\/\/.*\n/g, "")); -} -export function setCookie(name, value, days) { - const d = new Date(); - d.setTime(d.getTime() + days * 24 * 60 * 60 * 1000); - const finalCookies = `${name}=${value};expires=${d.toUTCString()}`; - if (typeof document !== "undefined") { - document.cookie = finalCookies; - } - return `${name}=${value}`; -} -export function getCookie(cname, source = typeof document !== "undefined" ? document.cookie : "") { - const name = cname + "="; - const ca = source.split(";"); - for (let c of ca) { - while (c.charAt(0) === " ") { - c = c.substring(1); - } - if (c.indexOf(name) === 0) { - return c.substring(name.length, c.length); - } - } - return ""; -} -export function parseParams(query = typeof window !== "undefined" ? window.location.search.substring(1) : "", separator = "&", delimiter = "=") { - const queryString = {}; - const vars = query.split(separator); - for (const pair of vars) { - const [key, value] = pair.split(delimiter); - if (typeof queryString[key] === "undefined") { - queryString[key] = decodeURIComponent(value); - } - else if (typeof queryString[key] === "string") { - queryString[key] = [queryString[key], decodeURIComponent(value)]; - } - else { - queryString[key].push(decodeURIComponent(value)); - } - } - return queryString; -} -export function objectToQueryParams(obj) { - let result = ""; - for (const objKey in obj) { - if (obj.hasOwnProperty(objKey)) { - result += `${result.length > 0 ? "&" : "?"}${objKey}=${obj[objKey]}`; - } - } - return result; -} -export function serialize(obj) { - for (const key in obj) { - if (obj.hasOwnProperty(key) && typeof obj[key] === "function") { - obj[key] = obj[key].toString(); - } - } - return JSON.stringify(obj); -} -export function parse(obj) { - const result = JSON.parse(obj); - for (const i in result) { - if (!result.hasOwnProperty(i) || - typeof result[i] !== "string" || !(result[i].indexOf("function (") === 0 || - result[i].match(/^\([_a-zA-Z0-9]+( *, *[_a-zA-Z0-9]+)*\) *=>/))) { - continue; - } - try { - eval("result[i] = " + result[i]); - } - catch (e) { - result[i] = e; - } - } - return result; -} -export function map(source, data) { - const destination = {}; - data.forEach((item) => { - if (item.mapFunction) { - if (item.attrD) { - destination[item.attrD] = item.mapFunction(source[item.attrS]); - } - else { - destination[item.attrS] = item.mapFunction(source[item.attrS]); - } - return; - } - if (item.attrD) { - destination[item.attrD] = source[item.attrS]; - } - else { - destination[item.attrS] = source[item.attrS]; - } - }); - return destination; -} -//# sourceMappingURL=misc-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/misc-utils.js.map b/dist/_esm/utils/misc-utils.js.map deleted file mode 100644 index 729af97b..00000000 --- a/dist/_esm/utils/misc-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-utils.js","sourceRoot":"","sources":["../../../src/utils/misc-utils.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,YAAY,CAAC,OAAe;IACxC,MAAM,IAAI,GAAc,EAAE,CAAC;IAC3B,MAAM,IAAI,GAAc,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE;SAC/C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,CAA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,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/net-client-utils.js b/dist/_esm/utils/net-client-utils.js deleted file mode 100644 index ff1036d1..00000000 --- a/dist/_esm/utils/net-client-utils.js +++ /dev/null @@ -1,70 +0,0 @@ -import { __awaiter } from "tslib"; -import { NotBrowserException } from "gtools/errors"; -import { CreateElement, CreateImage } from "./html-utils"; -export function uploadImage() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((success, reject) => { - const element = CreateElement("input", { - type: "file", - onChange: (event) => { - const reader = new FileReader(); - reader.onload = () => { - success(CreateImage({ - src: reader.result, - })); - }; - reader.onerror = reject; - reader.readAsDataURL(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - }); - }); -} -export function uploadFile() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((success) => { - const element = CreateElement("input", { - type: "file", - onChange: (event) => { - const reader = new FileReader(); - reader.onload = () => { - success(reader.result); - }; - reader.readAsText(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - }); - }); -} -export function clientDownloadFile(text, name) { - const element = CreateElement("a", { - href: "data:text/plain;charset=utf-8," + encodeURIComponent(text), - download: name, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); -} -export function includeFile(file) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - const script = document.createElement("script"); - if (!script) { - return; - } - script.src = file; - script.type = "text/javascript"; - script.defer = true; - document.head.appendChild(script); -} -//# sourceMappingURL=net-client-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/net-client-utils.js.map b/dist/_esm/utils/net-client-utils.js.map deleted file mode 100644 index 3ebfd4b7..00000000 --- a/dist/_esm/utils/net-client-utils.js.map +++ /dev/null @@ -1 +0,0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AAK,IAAI,CAAC;IACpB,MAAM,CAAC,IAAI,GAAI,iBAAiB,CAAC;IACjC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/net-server-utils.js b/dist/_esm/utils/net-server-utils.js deleted file mode 100644 index 77dc1e4e..00000000 --- a/dist/_esm/utils/net-server-utils.js +++ /dev/null @@ -1,79 +0,0 @@ -import { createWriteStream, readFile } from "fs"; -import { get as HttpGet, request as HttpRequest } from "http"; -import { request as HttpsRequest } from "https"; -export function serverDownloadFile(url, fileName) { - const file = createWriteStream(fileName); - HttpGet(url, (response) => response.pipe(file)); -} -export function getPublicIp() { - const options = { - host: "ipv4bot.whatismyipaddress.com", - port: 80, - path: "/", - }; - return new Promise((success, reject) => { - HttpGet(options, (res) => { - res.on("data", (chunk) => { - success(String(chunk)); - }); - }).on("error", reject); - }); -} -function tryParseUrl(url) { - if (url instanceof URL) { - return url; - } - try { - return new URL(url.toString()); - } - catch (e) { - return null; - } -} -function processClientRequest(url, req) { - return new Promise((success, reject) => { - const request = req(url, (res) => { - let data = ""; - res.on("data", (chunk) => { - data += chunk; - }); - res.on("end", () => { - success(data); - }); - }); - request.on("error", (e) => { - reject(e); - }); - request.end(); - }); -} -export function getContent(uri) { - const url = tryParseUrl(uri); - if (url) { - return getContentFromUrl(url); - } - return getContentFromFile(uri); -} -export function getContentFromUrl(url) { - if (url.protocol === "http") { - return processClientRequest(url.href, HttpRequest); - } - if (url.protocol === "https") { - return processClientRequest(url.href, HttpsRequest); - } - throw new Error("Unknown protocol " + url.protocol); -} -export function getContentFromFile(path, encoding = "utf8") { - return new Promise((success, reject) => { - readFile(path, { encoding }, (error, data) => { - if (error) { - return reject(error); - } - success(data); - }); - }); -} -export function getContentFrom(url) { - return getContent(url); -} -//# sourceMappingURL=net-server-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/net-server-utils.js.map b/dist/_esm/utils/net-server-utils.js.map deleted file mode 100644 index d11389c6..00000000 --- a/dist/_esm/utils/net-server-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-server-utils.js","sourceRoot":"","sources":["../../../src/utils/net-server-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC3D,OAAO,EAAE,GAAG,IAAI,OAAO,EAAmB,OAAO,IAAI,WAAW,EAAE,MAAM,MAAM,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,QAAgB;IAC5D,MAAM,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,WAAW;IACvB,MAAM,OAAO,GAAG;QACZ,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,GAAG;KACZ,CAAC;IAEF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACnC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACrB,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;gBACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,WAAW,CAAC,GAAa;IAC9B,IAAI,GAAG,YAAY,GAAG,EAAE;QACpB,OAAO,GAAG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CAAC,QAAQ,KAAK,OAAO,EAAE;QAC1B,OAAO,oBAAoB,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACvD;IAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAc,EAAE,WAAmB,MAAM;IACxE,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,QAAQ,CAAC,IAAI,EAAE,EAAC,QAAQ,EAAC,EAAE,CAAC,KAAmC,EAAE,IAAI,EAAE,EAAE;YACrE,IAAI,KAAK,EAAE;gBACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;aACxB;YAED,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAMD,MAAM,UAAU,cAAc,CAAC,GAAW;IACtC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/object-utils.js b/dist/_esm/utils/object-utils.js deleted file mode 100644 index 036ce1fb..00000000 --- a/dist/_esm/utils/object-utils.js +++ /dev/null @@ -1,174 +0,0 @@ -export function without(obj, items) { - return getObjectEntries(obj).filter((entry) => !items.includes(entry.key)) - .reduce((prev, entry) => { - prev[entry.key] = entry.value; - return prev; - }, {}); -} -export function deepEqual(objA, objB) { - var _a, _b, _c, _d; - if (typeof objA !== typeof objB) { - return false; - } - if (typeof objA === "object") { - if (!objA || !objB) { - return objA === objB; - } - if (((_b = (_a = objA) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== ((_d = (_c = objB) === null || _c === void 0 ? void 0 : _c.constructor) === null || _d === void 0 ? void 0 : _d.name)) { - return false; - } - const keys = Object.keys(objA); - if (keys.length !== Object.keys(objB).length) { - return false; - } - for (const key of keys) { - if (!deepEqual(objA[key], objB[key])) { - return false; - } - } - return true; - } - if (typeof objA === "number" && typeof objB === "number") { - if (isNaN(+objA) && isNaN(+objB)) { - return true; - } - } - return objA === objB; -} -export function deepCopy(source) { - var _a, _b; - if (typeof source === "object") { - if (Array.isArray(source)) { - return source.map((e) => deepCopy(e)); - } - if (((_b = (_a = source) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== "Object") { - throw new Error("This method cannot copy class instances"); - } - const result = {}; - Object.entries(source).forEach(([key, value]) => { - result[key] = deepCopy(value); - }); - return result; - } - if (typeof source === "function") { - throw new Error("This method cannot copy functions"); - } - return source; -} -export function getOrSetProperty(obj, index, value) { - const result = obj[index]; - if (result) { - return result; - } - obj[index] = value; - return value; -} -export function getObjectEntries(obj) { - const result = []; - for (const objKey in obj) { - if (!obj.hasOwnProperty(objKey)) { - continue; - } - result.push({ - key: objKey, - value: obj[objKey], - }); - } - return result; -} -export function getNestedProperty(object, propertyPath, separator = ".") { - if (typeof propertyPath === "string") { - return getNestedProperty(object, propertyPath.split(separator)); - } - return propertyPath.reduce((currentNestedPropertyValue, propertyName) => currentNestedPropertyValue ? currentNestedPropertyValue[propertyName] : undefined, object); -} -export function setNestedProperty(item, key, value) { - if (typeof key === "string") { - return setNestedProperty(item, key.split("."), value); - } - let obj = item; - for (let i = 0; i < key.length - 1; i++) { - obj = obj[key[i]]; - } - obj[key[key.length - 1]] = value; -} -export function createMergedObject(source, ...updates) { - return Object.assign({}, source, ...updates); -} -export function roughSizeOfObject(object) { - const objectList = []; - const stack = [object]; - let bytes = 0; - while (stack.length) { - const value = stack.pop(); - if (typeof value === "boolean") { - bytes += 4; - } - else if (typeof value === "string") { - bytes += value.length << 1; - } - else if (typeof value === "number") { - bytes += 8; - } - else if (typeof value === "object" && objectList.indexOf(value) === -1) { - objectList.push(value); - for (const key in value) { - if (value.hasOwnProperty(key)) { - stack.push(value[key]); - } - } - } - } - return bytes; -} -export function deepFreeze(o) { - Object.freeze(o); - const oIsFunction = typeof o === "function"; - const hasOwnProp = Object.prototype.hasOwnProperty; - let item = null; - Object.getOwnPropertyNames(o).forEach((prop) => { - item = o[prop]; - if (hasOwnProp.call(o, prop) && - (oIsFunction ? prop !== "caller" && prop !== "callee" && prop !== "arguments" : true) && - item !== null && (typeof item === "object" || typeof item === "function") - && !Object.isFrozen(item)) { - deepFreeze(item); - } - }); - return o; -} -export function size(object) { - let result = 0; - for (const i in object) { - if (object.hasOwnProperty(i)) { - result++; - } - } - return result; -} -export function isPlain(object) { - for (const index in object) { - if (object.hasOwnProperty(index) && typeof object[index] === "object") { - return false; - } - } - return true; -} -export function toBoolean(value) { - return value !== null && `${value}` !== "false"; -} -export function isNotInstance(value) { - return toBoolean(value) && value.constructor.name === "Object"; -} -export function makeFlat(list, propertyPath, separator = ".", skipUndefined = false) { - const propertyList = propertyPath.indexOf(separator) >= 0 ? propertyPath.split(separator) : [propertyPath]; - return list.reduce((acc, curr) => { - const value = propertyList.reduce((propVal, propertyName) => propVal ? propVal[propertyName] : undefined, curr); - if (typeof value === "undefined" && skipUndefined) { - return acc; - } - acc.push(value); - return acc; - }, []); -} -//# sourceMappingURL=object-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/object-utils.js.map b/dist/_esm/utils/object-utils.js.map deleted file mode 100644 index 9f598fb1..00000000 --- a/dist/_esm/utils/object-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-utils.js","sourceRoot":"","sources":["../../../src/utils/object-utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAoC,GAAM,EAAE,KAAkB;IACjF,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC7C,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC,K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,GAAG,EAAE,aAAa,GAAG,KAAK;IAC/F,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAE3G,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7B,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,OAAY,EAAE,YAAY,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACrH,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,aAAa,EAAE;YAC/C,OAAO,GAAG,CAAC;SACd;QACD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEhB,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAS,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/parser-utils.js b/dist/_esm/utils/parser-utils.js deleted file mode 100644 index ce207628..00000000 --- a/dist/_esm/utils/parser-utils.js +++ /dev/null @@ -1,9 +0,0 @@ -export function parseBooleanValue(key) { - if (key.match(/(1|true|yes|ano|áno)/i)) { - return true; - } - if (key.match(/(0|false|no|nie)/i)) { - return false; - } -} -//# sourceMappingURL=parser-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/parser-utils.js.map b/dist/_esm/utils/parser-utils.js.map deleted file mode 100644 index efcb3dc6..00000000 --- a/dist/_esm/utils/parser-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-utils.js","sourceRoot":"","sources":["../../../src/utils/parser-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAAC,GAAW;IACzC,IAAI,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC;KACf;IACD,IAAI,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KAChB;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/process-utils.js b/dist/_esm/utils/process-utils.js deleted file mode 100644 index 7380b135..00000000 --- a/dist/_esm/utils/process-utils.js +++ /dev/null @@ -1,26 +0,0 @@ -export function isTest() { - return process.env.NODE_ENV === "test"; -} -export function isProd() { - return process.env.NODE_ENV === "production"; -} -export function isDev() { - return process.env.NODE_ENV === "development" || !process.env.NODE_ENV; -} -export function setEnvironment(type) { -} -export function getProcessData() { - return { - memoryUsage: process.memoryUsage(), - cpuUsage: process.cpuUsage(), - upTime: process.uptime(), - version: process.version, - platform: process.platform, - }; -} -export function setDefaultEnvironment() { - if (!process.env.NODE_ENV) { - setEnvironment("development"); - } -} -//# sourceMappingURL=process-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/process-utils.js.map b/dist/_esm/utils/process-utils.js.map deleted file mode 100644 index 5a1cf67b..00000000 --- a/dist/_esm/utils/process-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"process-utils.js","sourceRoot":"","sources":["../../../src/utils/process-utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,KAAK;IACjB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3E,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,IAA2C;AAE1E,CAAC;AAED,MAAM,UAAU,cAAc;IAC1B,OAAO;QACH,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;QAClC,QAAQ,EAAK,OAAO,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAO,OAAO,CAAC,MAAM,EAAE;QAC7B,OAAO,EAAM,OAAO,CAAC,OAAO;QAC5B,QAAQ,EAAK,OAAO,CAAC,QAAQ;KAChC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB;IACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACvB,cAAc,CAAC,aAAa,CAAC,CAAC;KACjC;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/random-utils.js b/dist/_esm/utils/random-utils.js deleted file mode 100644 index 3ba65928..00000000 --- a/dist/_esm/utils/random-utils.js +++ /dev/null @@ -1,13 +0,0 @@ -export function randomFloatBetween(min, max) { - return min + Math.random() * (max - min); -} -export function randomIntBetween(min, max) { - return Math.round(randomFloatBetween(min, max)); -} -export function randomBoolean() { - return Math.random() < 0.5; -} -export function randomItem(...items) { - return items[Math.floor(Math.random() * items.length)]; -} -//# sourceMappingURL=random-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/random-utils.js.map b/dist/_esm/utils/random-utils.js.map deleted file mode 100644 index fa91c903..00000000 --- a/dist/_esm/utils/random-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"random-utils.js","sourceRoot":"","sources":["../../../src/utils/random-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,GAAW;IACvD,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,GAAW;IACrD,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,aAAa;IACzB,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,UAAU,CAAI,GAAG,KAAU;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/reflection-utils.js b/dist/_esm/utils/reflection-utils.js deleted file mode 100644 index eb6a3e1b..00000000 --- a/dist/_esm/utils/reflection-utils.js +++ /dev/null @@ -1,19 +0,0 @@ -import { __awaiter } from "tslib"; -export function createClass(name, args) { - const temp = Object.create(name.prototype); - name.apply(temp, args); - return temp; -} -export function createInstance(type, ...params) { - return new type(...params); -} -export function callFirstFunction(...functions) { - return __awaiter(this, void 0, void 0, function* () { - for (const func of functions) { - if (typeof func === "function") { - return yield func(); - } - } - }); -} -//# sourceMappingURL=reflection-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/reflection-utils.js.map b/dist/_esm/utils/reflection-utils.js.map deleted file mode 100644 index 16d09ee7..00000000 --- a/dist/_esm/utils/reflection-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reflection-utils.js","sourceRoot":"","sources":["../../../src/utils/reflection-utils.ts"],"names":[],"mappings":";AAOA,MAAM,UAAU,WAAW,CAAC,IAAS,EAAE,IAAW;IAC9C,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEvB,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,MAAM,UAAU,cAAc,CAA0C,IAAO,EAAE,GAAG,MAAgC;IAChH,OAAO,IAAI,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAgB,iBAAiB,CAAC,GAAG,SAAgB;;QACvD,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE;YAC1B,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;gBAE5B,OAAO,MAAM,IAAI,EAAE,CAAC;aACvB;SACJ;IACL,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/_esm/utils/sorted-array-utils.js b/dist/_esm/utils/sorted-array-utils.js deleted file mode 100644 index a0b396bd..00000000 --- a/dist/_esm/utils/sorted-array-utils.js +++ /dev/null @@ -1,167 +0,0 @@ -export function binarySearch(array, item, comparator) { - let m = 0; - let n = array.length - 1; - while (m <= n) { - const k = (n + m) >> 1; - const cmp = comparator(item, array[k]); - if (cmp > 0) { - m = k + 1; - } - else if (cmp < 0) { - n = k - 1; - } - else { - return k; - } - } - return ~m; -} -export function sortedFind(array, el, compare) { - const idx = binarySearch(array, el, compare); - if (idx < 0) { - return; - } - return array[idx]; -} -export function sortedInsert(array, value, compare) { - const idx = binarySearch(array, value, compare); - const newIdx = idx < 0 ? ~idx : idx; - array.splice(newIdx, 0, value); - return newIdx; -} -export function sortedInsertAll(array, values, compare, skipDuplicates = false) { - let actualIndex = 0; - for (const value of values) { - actualIndex = binarySearch(array.slice(actualIndex), value, compare); - if (skipDuplicates && actualIndex >= 0) { - break; - } - if (actualIndex < 0) { - actualIndex = ~actualIndex; - } - array.splice(actualIndex, 0, value); - } - return values.length; -} -export function sortedRemove(array, value, compare) { - const idx = binarySearch(array, value, compare); - if (idx < 0) { - return; - } - const r = array[idx]; - array.splice(idx, 1); - return r; -} -export function sortedPickAll(array, values, compare) { - let i1 = 0; - let i2 = 0; - const r = []; - while (i1 < values.length && i2 < array.length) { - const id = values[i1]; - const f = array[i2]; - const cmp = compare(id, f); - if (cmp > 0) { - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r.push(f); - ++i1; - ++i2; - } - } - return r; -} -export function SortedDifference(array, values, compare) { - let i1 = 0; - let i2 = 0; - const r = []; - while (i1 < values.length && i2 < array.length) { - const id = values[i1]; - const f = array[i2]; - const cmp = compare(id, f); - if (cmp > 0) { - r.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - ++i1; - ++i2; - } - } - while (i2 < array.length) { - const f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -export function SortedPartition(array, values, compare) { - let i1 = 0; - let i2 = 0; - const r1 = []; - const r2 = []; - while (i1 < values.length && i2 < array.length) { - const id = values[i1]; - const f = array[i2]; - const cmp = compare(id, f); - if (cmp > 0) { - r2.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r1.push(f); - ++i1; - ++i2; - } - } - while (i2 < array.length) { - const f = array[i2]; - r2.push(f); - ++i2; - } - return [r1, r2]; -} -export function sortedMerge(array, values, compare) { - let i1 = 0; - let i2 = 0; - const r = []; - while (i1 < values.length && i2 < array.length) { - const f1 = values[i1]; - const f2 = array[i2]; - const cmp = compare(f1, f2); - if (cmp > 0) { - r.push(f2); - ++i2; - } - else if (cmp < 0) { - r.push(f1); - ++i1; - } - else { - r.push(f1); - ++i1; - ++i2; - } - } - while (i1 < values.length) { - const f = values[i1]; - r.push(f); - ++i1; - } - while (i2 < array.length) { - const f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -//# sourceMappingURL=sorted-array-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/sorted-array-utils.js.map b/dist/_esm/utils/sorted-array-utils.js.map deleted file mode 100644 index a1530aa6..00000000 --- a/dist/_esm/utils/sorted-array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-utils.js","sourceRoot":"","sources":["../../../src/utils/sorted-array-utils.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,YAAY,CAAI,KAAmB,EAAE,IAAO,EAAE,UAAkC;IAC5F,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzB,OAAO,CAAC,IAAI,CAAC,EAAE;QACX,MAAM,CAAC,GAAK,CAAC,CAAC,GA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AE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;SACR;aAAM,IAAI,GAAG,GAAG,CAAC,EAAE;YAChB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;SACR;aAAM;YACH,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;YACL,EAAE,EAAE,CAAC;SACR;KACJ;IACD,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE;QACvB,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IACD,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE;QACtB,MAAM,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IAED,OAAO,CAAC,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/string-checkers.js b/dist/_esm/utils/string-checkers.js deleted file mode 100644 index e2f0349d..00000000 --- a/dist/_esm/utils/string-checkers.js +++ /dev/null @@ -1,47 +0,0 @@ -import * as MiscValidators from "../validators/misc-validators"; -const timeFormats = { - HH: "(2[0-3]|[01]\\d)", - H: "(2[0-3]|[01]?\\d)", - mm: "([0-5]\\d)", - m: "([0-5]?\\d)", - MM: "(0\\d|1[0-2]|\\d)", - M: "([1-9]|1[0-2])", - ss: "([0-5]\\d)", - s: "([0-5]?\\d)", - YYYY: "([1-9]\\d{3,3})", - YY: "(\\d{2,2})", - DD: "([0-3]\\d)", -}; -export function isCamelCase(text) { - return new RegExp("^[A-Z]?[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -export function isUpperCamelCase(text) { - return new RegExp("^([A-Z][a-z]*)*$", "g").test(text); -} -export function isLowerCamelCase(text) { - return new RegExp("^[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -export function isLowerSnakeCase(text) { - return new RegExp("^[a-z]*(_[a-z]*)*$", "g").test(text); -} -export function isUpperSnakeCase(text) { - return new RegExp("^[A-Z]*(_[A-Z]*)*$", "g").test(text); -} -export function isSnakeCase(text) { - return new RegExp("^([a-z]*|[A-Z]*)(_[a-zA-Z]*)*$", "g").test(text); -} -export function isTimeFormat(text, format) { - for (const key in timeFormats) { - if (timeFormats.hasOwnProperty(key)) { - format = format.replace(key, timeFormats[key]); - } - } - return new RegExp(`^${format}$`).test(text); -} -export function isValidPhoneNumber(num) { - return MiscValidators.isValidPhoneNumber(num); -} -export function isValidEmail(email) { - return MiscValidators.isValidEmail(email); -} -//# sourceMappingURL=string-checkers.js.map \ No newline at end of file diff --git a/dist/_esm/utils/string-checkers.js.map b/dist/_esm/utils/string-checkers.js.map deleted file mode 100644 index a7e0c40d..00000000 --- a/dist/_esm/utils/string-checkers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-checkers.js","sourceRoot":"","sources":["../../../src/utils/string-checkers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAEhE,MAAM,WAAW,GAA8B;IAC3C,EAAE,EAAI,kBAAkB;IACxB,CAAC,EAAK,mBAAmB;IACzB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,EAAE,EAAI,mBAAmB;IACzB,CAAC,EAAK,gBAAgB;IACtB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAI,YAAY;IAClB,EAAE,EAAI,YAAY;CACrB,CAAC;AAEF,MAAM,UAAU,WAAW,CAAC,IAAY;IACpC,OAAO,IAAI,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC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\ No newline at end of file diff --git a/dist/_esm/utils/string-utils.js b/dist/_esm/utils/string-utils.js deleted file mode 100644 index e8ed7ca6..00000000 --- a/dist/_esm/utils/string-utils.js +++ /dev/null @@ -1,202 +0,0 @@ -import { join } from "./array-utils"; -import * as StringCheckers from "./string-checkers"; -const accentedLowerCharacters = "ąàáäâãåæăćčĉďęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž"; -const normalLowerCharacters = "aaaaaaaaacccdeeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz"; -const accentedCharacters = accentedLowerCharacters + accentedLowerCharacters.toUpperCase(); -const normalCharacters = normalLowerCharacters + normalLowerCharacters.toUpperCase(); -export function removeAccentedCharacters(word) { - if (!word || !word.replace) { - return word; - } - return word.replace(/./g, (e) => { - const index = accentedCharacters.indexOf(e); - return index >= 0 ? normalCharacters[index] : e; - }); -} -export function cutUsing(text, maxLength, suffix = "...", lengthIncludeSuffix = true) { - if (text.length <= maxLength) { - return text; - } - return text.substr(0, maxLength - (lengthIncludeSuffix ? suffix.length - 1 : 0)) + suffix; -} -export function toUpperSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toUpperCase(); - } - if (StringCheckers.isUpperSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, (i, u, e) => e ? "_" + e : "") - .replace(/^_/, "") - .toUpperCase(); -} -export function toLowerSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toLowerCase(); - } - if (StringCheckers.isLowerSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, (i, u, e) => e ? "_" + e : "") - .replace(/^_/, "") - .toLowerCase(); -} -export function toLowerCamelCase(text) { - if (StringCheckers.isLowerCamelCase(text)) { - return text; - } - return text.trim() - .replace(/([a-z])([A-Z])([A-Z])/g, "$1$2_$3") - .replace(/([a-z])([A-Z])/g, "$1_$2") - .toLowerCase() - .replace(/(-|_| |\s)+(.)?/g, (math, sep, c) => c ? c.toUpperCase() : "") - .replace(/^./, (e) => e.toLowerCase()); -} -export function toUpperCamelCase(text) { - if (StringCheckers.isUpperCamelCase(text)) { - return text; - } - return toCapital(toLowerCamelCase(text)); -} -export function capitalize(text) { - return text.toLowerCase().replace(/^./, (char) => char.toUpperCase()); -} -export function toCapital(text) { - return text.replace(/^./, (e) => e.toUpperCase()); -} -export function getLastPart(text, divider = " ") { - if (!text || !text.split) { - return text; - } - const splitText = text.split(divider); - return splitText[splitText.length - 1]; -} -export function count(text, key) { - return (text.match(new RegExp(key, "g")) || []).length; -} -export function repeat(text, numberOfRepetitions) { - return new Array(numberOfRepetitions + 1).join(text); -} -export function removeAll(text, words) { - return text.replace(new RegExp(`(${words.join("|")})`, "g"), ""); -} -export function template(text, values, start = "{{", end = "}}") { - const updatedStart = start.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - const updatedEnd = end.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - return text.replace(new RegExp(`${updatedStart}(.+?)${updatedEnd}`, "g"), (math, key) => String(values[key])); -} -export function removeEmptyLines(content) { - return content.replace(/^\s*$(?:\r\n?|\n)/gm, ""); -} -export function between(text, key1, key2, trim = false) { - const processResult = (result) => trim ? result.trim() : result; - const startPos = text.indexOf(key1); - const endPos = text.indexOf(key2); - if (startPos < 0 && endPos >= 0) { - return processResult(text.substring(0, endPos)); - } - if (endPos < 0 && startPos >= 0) { - return processResult(text.substring(startPos + key1.length, text.length)); - } - return processResult(text.substring(startPos + key1.length, endPos)); -} -export function occurrences(text, key, overlapping = false) { - let index = text.indexOf(key); - let counter = 0; - const step = overlapping ? 1 : key.length; - while (index >= 0) { - counter++; - index = text.indexOf(key, index + step); - } - return counter; -} -export function collapseWhitespace(text) { - return text.replace(/[\s\uFEFF\xA0]{2,}/g, " "); -} -export function swapCase(text) { - return text.replace(/\S/g, (char) => { - const lowerCase = char.toLowerCase(); - return lowerCase === char ? char.toUpperCase() : lowerCase; - }); -} -export function format(text, values, placeHolder = "{}") { - const result = []; - let lastIndex; - let actualIndex = 0; - let counter = 0; - while (counter < values.length) { - lastIndex = actualIndex; - actualIndex = text.indexOf(placeHolder, actualIndex); - result.push(text.substring(lastIndex, actualIndex)); - result.push(values[counter++]); - actualIndex += placeHolder.length; - } - result.push(text.substring(actualIndex)); - return result.join(""); -} -export function transformToBasicFormat(text) { - return collapseWhitespace(removeAccentedCharacters(text).toLowerCase()).trim(); -} -export function getAsciiArray(thisArg) { - const result = []; - for (const letter of thisArg) { - result[result.length] = letter.charCodeAt(0); - } - return result; -} -export function toBasicForm(text) { - return removeAccentedCharacters(text.toLowerCase()); -} -export function contains(text, substring) { - return !!text && removeAccentedCharacters(text.toLowerCase()).indexOf(substring) >= 0; -} -export function joinSingle(prefix, divider, postfix) { - if (postfix.startsWith(divider) && prefix.endsWith(divider)) { - return prefix + postfix.substring(divider.length); - } - if (postfix.startsWith(divider) || prefix.endsWith(divider)) { - return prefix + postfix; - } - return prefix + divider + postfix; -} -export function joinString(data, delimiter = " ", prefix = "", postfix = "") { - return join(data, delimiter, prefix, postfix); -} -export function getFormattedNumber(num, prefix = "+421") { - num = num.replace(/[( )/-]/g, ""); - if (num.startsWith("+")) { - return num; - } - if (num.startsWith("00")) { - return num.substring(2); - } - if (num.startsWith("09") || num.startsWith("02")) { - return prefix + num.substring(1); - } - return num; -} -function fuzzy_match_simple(pattern, str) { - let patternIdx = 0; - let strIdx = 0; - const patternLength = pattern.length; - const strLength = str.length; - while (patternIdx !== patternLength && strIdx !== strLength) { - const patternChar = pattern.charAt(patternIdx) - .toLowerCase(); - const strChar = str.charAt(strIdx) - .toLowerCase(); - if (patternChar === strChar) { - ++patternIdx; - } - ++strIdx; - } - return patternLength !== 0 && strLength !== 0 && patternIdx === patternLength; -} -export function replaceForAll(content, values, placeHolder) { - return values.map((value) => content.replace(placeHolder, value)); -} -//# sourceMappingURL=string-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/string-utils.js.map b/dist/_esm/utils/string-utils.js.map deleted file mode 100644 index ea32e072..00000000 --- a/dist/_esm/utils/string-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../../src/utils/string-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAEpD,MAAM,uBAAuB,GAAG,4DAA4D,CAAC;AAC7F,MAAM,qBAAqB,GAAK,4DAA4D,CAAC;AAC7F,MAAM,kBAAkB,GAAQ,uBAAuB,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC;AAChG,MAAM,gBAAgB,GAAU,qBAAqB,GAAG,qBAAqB,CAAC,WAAW,EAAE,CAAC;AAoB5F,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACjD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACxB,OAAO,IAAI,CAAC;KACf;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAS,EAAE,EAAE;QACpC,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAE5C,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC;AASD,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,SAAiB,EAAE,MAAM,GAAG,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAChG,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;QAC1B,OAAO,IAAI,CAAC;KACf;IAED,OAAO,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,CAAC;QACnB,IAAI,WAAW,KAAK,OAAO,EAAE;YACzB,EAAE,UAAU,CAAC;SAChB;QACD,EAAE,MAAM,CAAC;KACZ;IAED,OAAO,aAAa,KAAK,CAAC,IAAI,SAAS,KAAK,CAAC,IAAI,UAAU,KAAK,aAAa,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,MAAgB,EAAE,WAAmB;IAChF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AACtE,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/svg-utils.js b/dist/_esm/utils/svg-utils.js deleted file mode 100644 index 7b784a61..00000000 --- a/dist/_esm/utils/svg-utils.js +++ /dev/null @@ -1,15 +0,0 @@ -const svgns = "http://www.w3.org/2000/svg"; -export function createSvg(type) { - return document.createElementNS(svgns, type); -} -export function getTransform(selectedElement) { - const transforms = selectedElement.transform.baseVal; - if (transforms.numberOfItems === 0 || - transforms.getItem(0).type !== SVGTransform.SVG_TRANSFORM_TRANSLATE) { - const translate = selectedElement.ownerSVGElement.createSVGTransform(); - translate.setTranslate(0, 0); - selectedElement.transform.baseVal.insertItemBefore(translate, 0); - } - return transforms.getItem(0); -} -//# sourceMappingURL=svg-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/svg-utils.js.map b/dist/_esm/utils/svg-utils.js.map deleted file mode 100644 index e5dd0fac..00000000 --- a/dist/_esm/utils/svg-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"svg-utils.js","sourceRoot":"","sources":["../../../src/utils/svg-utils.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,MAAM,UAAU,SAAS,CAAuC,IAAO;IACnE,OAAO,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,eAAmC;IAC5D,MAAM,UAAU,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC;IACrD,IAAI,UAAU,CAAC,aAAa,KAAK,CAAC;QAC9B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,uBAAuB,EAAE;QACrE,MAAM,SAAS,GAAI,eAAe,CAAC,eAAiC,CAAC,kBAAkB,EAAE,CAAC;QAC1F,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;KACpE;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/dist/_esm/utils/time-utils.js b/dist/_esm/utils/time-utils.js deleted file mode 100644 index f005e1a1..00000000 --- a/dist/_esm/utils/time-utils.js +++ /dev/null @@ -1,109 +0,0 @@ -const intervals = { - "year": 31536000, - "month": 2592000, - "week": 604800, - "day": 86400, - "hour": 3600, - "minute": 60, - "second": 1, -}; -const intervalEntries = Object.entries(intervals); -export function dateAgo(value) { - if (value) { - const seconds = Math.floor((+new Date() - +new Date(value)) / 1000); - if (seconds < 29) { - return "Just now"; - } - let counter; - for (const [key, interval] of intervalEntries) { - counter = Math.floor(seconds / interval); - if (counter <= 0) { - continue; - } - if (counter === 1) { - return `${counter} ${key} ago`; - } - return `${counter} ${key}s ago`; - } - } - return value; -} -export function formatTime(date, pattern) { - const toString = (time) => time < 10 ? "0" + time : "" + time; - const regex = new RegExp("(DD|MM|YYYY|YYY|YY|HH|mm|SS)", "g"); - const DD = toString(date.getDate()); - const MM = toString(date.getMonth() + 1); - const YYYY = date.getFullYear() + ""; - const YYY = YYYY.substr(1, 4); - const YY = YYY.substr(1, 4); - const HH = toString(date.getHours()); - const mm = toString(date.getMinutes()); - const SS = toString(date.getSeconds()); - return pattern.replace(regex, (e) => { - switch (e) { - case "DD": - return DD; - case "MM": - return MM; - case "YYYY": - return YYYY; - case "YYY": - return YYY; - case "YY": - return YY; - case "HH": - return HH; - case "mm": - return mm; - case "SS": - return SS; - default: - return e; - } - }); -} -export function createStopWatch() { - const start = Date.now(); - const getDiffMs = () => Date.now() - start; - return { - getDiffMs, - getDiff() { - return getDiffMs() + "ms"; - }, - }; -} -function setDate(date, opt) { - if (!date) { - return new Date(""); - } - if (!isNaN(opt.ms)) { - date.setMilliseconds(opt.ms); - } - if (!isNaN(opt.s)) { - date.setSeconds(opt.s); - } - if (!isNaN(opt.m)) { - date.setMinutes(opt.m); - } - if (!isNaN(opt.h)) { - date.setHours(opt.h); - } - return date; -} -export function getStartOfTheDay(date) { - return setDate(date, { - ms: 0, - s: 0, - m: 0, - h: 0, - }); -} -export function getEndOfTheDay(date) { - return setDate(date, { - ms: 999, - s: 59, - m: 59, - h: 23, - }); -} -//# sourceMappingURL=time-utils.js.map \ No newline at end of file diff --git a/dist/_esm/utils/time-utils.js.map b/dist/_esm/utils/time-utils.js.map deleted file mode 100644 index d3f2d276..00000000 --- a/dist/_esm/utils/time-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time-utils.js","sourceRoot":"","sources":["../../../src/utils/time-utils.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAsB;IACjC,MAAM,EAAI,QAAQ;IAClB,OAAO,EAAG,OAAO;IACjB,MAAM,EAAI,MAAM;IAChB,KAAK,EAAK,KAAK;IACf,MAAM,EAAI,IAAI;IACd,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAElD,MAAM,UAAU,OAAO,CAAC,KAA6B;IACjD,IAAI,KAAK,EAAE;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IA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,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QACf,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAC1B;IACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QACf,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAC1B;IACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QACf,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACxB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACvC,OAAO,OAAO,CAAC,IAAI,EAAE;QACjB,EAAE,EAAE,CAAC;QACL,CAAC,EAAG,CAAC;QACL,CAAC,EAAG,CAAC;QACL,CAAC,EAAG,CAAC;KACR,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAU;IACrC,OAAO,OAAO,CAAC,IAAI,EAAE;QACjB,EAAE,EAAE,GAAG;QACP,CAAC,EAAG,EAAE;QACN,CAAC,EAAG,EAAE;QACN,CAAC,EAAG,EAAE;KACT,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/dist/_esm/validators/index.js b/dist/_esm/validators/index.js deleted file mode 100644 index 9f66d8a9..00000000 --- a/dist/_esm/validators/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./misc-validators"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm/validators/index.js.map b/dist/_esm/validators/index.js.map deleted file mode 100644 index 02236383..00000000 --- a/dist/_esm/validators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/_esm/validators/misc-validators.js b/dist/_esm/validators/misc-validators.js deleted file mode 100644 index 46a40615..00000000 --- a/dist/_esm/validators/misc-validators.js +++ /dev/null @@ -1,69 +0,0 @@ -const validEmailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i; -const validPhoneNumberRegex = /^([+]|00)?[(]?[0-9]{3,4}[)]?[-\s.]?[0-9]{2,3}[-\s.]?[0-9]{2,6}([-\s.]?[0-9]{3})?$/im; -export function isFunction(arg) { - return typeof arg === "function"; -} -export function isString(arg) { - return typeof arg === "string"; -} -export function isObject(value) { - const type = typeof value; - return value !== null && (type === "object" || type === "function"); -} -export function isNumber(arg) { - return typeof arg === "number"; -} -export function isBoolean(arg) { - return typeof arg === "boolean"; -} -export function isArray(arg) { - return Array.isArray(arg); -} -export function isInt(arg) { - return typeof arg === "number" && arg % 1 === 0; -} -export function isFloat(arg) { - return typeof arg === "number" && arg % 1 !== 0; -} -export function isUndefined(arg) { - return typeof arg === "undefined"; -} -export function isElement(obj) { - try { - return obj instanceof HTMLElement; - } - catch (e) { - return isObject(obj) && - obj.nodeType === 1 && - isObject(obj.style) && - isObject(obj.ownerDocument); - } -} -export function isEmpty(value) { - if (value === null || value === undefined) { - return true; - } - if (typeof value === "string") { - return value.length === 0 || /^[\s\xa0]*$/.test(value); - } - if (Array.isArray(value)) { - return value.length === 0; - } - if (isObject(value)) { - return Object.keys(value).length === 0; - } - return false; -} -export function isValidPhoneNumber(num) { - if (!num) { - return false; - } - return validPhoneNumberRegex.test(num.trim()); -} -export function isValidEmail(email) { - if (!email) { - return false; - } - return validEmailRegex.test(email.trim()); -} -//# sourceMappingURL=misc-validators.js.map \ No newline at end of file diff --git a/dist/_esm/validators/misc-validators.js.map b/dist/_esm/validators/misc-validators.js.map deleted file mode 100644 index 8bd88395..00000000 --- a/dist/_esm/validators/misc-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-validators.js","sourceRoot":"","sources":["../../../src/validators/misc-validators.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAS,uJAAuJ,CAAC;AACtL,MAAM,qBAAqB,GAAG,qFAAqF,CAAC;AAEpH,MAAM,UAAU,UAAU,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAc,KAAc;IAChD,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAE1B,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,UAAU,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,GAAY;IAClC,OAAO,OAAO,GAAG,KAAK,SAAS,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,OAAO,CAAI,GAAY;IACnC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,GAAY;IAC9B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,GAAY;IAChC,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAa;IACrC,OAAO,OAAO,GAAG,KAAK,WAAW,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,GAAY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--- a/dist/_esm/web.js +++ /dev/null @@ -1,11 +0,0 @@ -export * as arrays from "./utils/array-utils"; -export * as math from "./utils/math-utils"; -export * as dom from "./utils/DomUtils"; -export * as misc from "./utils/misc-utils"; -export * as object from "./utils/object-utils"; -export * as string from "./utils/string-utils"; -export * as time from "./utils/time-utils"; -export { SlovakStemmer as stemmer } from "./misc/slovak-stemmer"; -export { CanvasManager as canvas } from "./dom/canvas-manager"; -export { DomGet as get } from "./dom/dom-get"; -//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/_esm/web.js.map b/dist/_esm/web.js.map deleted file mode 100644 index 785d4370..00000000 --- a/dist/_esm/web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/GUtils.js b/dist/_esm5/GUtils.js deleted file mode 100644 index 60145d2c..00000000 --- a/dist/_esm5/GUtils.js +++ /dev/null @@ -1,22 +0,0 @@ -export * from "./enums"; -export * from "./config/gtools-config.interface"; -export * from "./config/gtools-config"; -export * from "./decorators"; -export * from "./dom/canvas-manager"; -export * from "./dom/canvas-utils"; -export * from "./dom/dom-get"; -export * from "./dom/types/canvas-shadow-config"; -export * from "./components"; -export * from "./errors"; -export * from "./validators"; -export * from "./misc"; -export * from "./math"; -export * from "./physics"; -export * from "./models"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -export * from "./types"; -export * from "./utils"; -//# sourceMappingURL=GUtils.js.map \ No newline at end of file diff --git a/dist/_esm5/GUtils.js.map b/dist/_esm5/GUtils.js.map deleted file mode 100644 index 05aeecf7..00000000 --- a/dist/_esm5/GUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GUtils.js","sourceRoot":"","sources":["../../src/GUtils.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AAMjD,cAAc,cAAc,CAAC;AAE7B,cAAc,UAAU,CAAC;AAEzB,cAAc,cAAc,CAAC;AAE7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,cAAc,UAAU,CAAC;AAEzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/MockData.js b/dist/_esm5/MockData.js deleted file mode 100644 index 0f5843b2..00000000 --- a/dist/_esm5/MockData.js +++ /dev/null @@ -1,169 +0,0 @@ -import { __spreadArrays } from "tslib"; -var MockData = (function () { - function MockData() { - } - MockData.functionSum = function (a, b) { - if (isNaN(a) || isNaN(b)) { - throw new Error("Wrong params"); - } - return a + b; - }; - MockData.timesHHmmss = [ - "12:00:00", - "01:09:09", - "23:59:59", - "00:59:59", - "23:01:01", - ]; - MockData.timesHHmm = [ - "12:53", - "12:00", - "01:09", - "23:59", - "00:59", - "23:01", - ]; - MockData.timesHmm = [ - "1:59", - "9:09", - "9:09", - ]; - MockData.invalidTimes = [ - "24:00", - "24:13:56", - "12:61", - "12:60", - "12:59:60", - "30:61", - "12:12:61", - "12:61:61", - "30:61:61", - ]; - MockData.charactersString = "+=§,.-?:_\"!)/()<>*'$[]}{*&^%$#@!/\\|#&@{}^'`][~|€¶←↓→º’‘©><§®ª`←'↓&×÷|÷×"; - MockData.characters = MockData.charactersString.split(""); - MockData.charactersCaseAbleString = "þÞıŦŧŊEĐđNΩ"; - MockData.charactersCaseAble = MockData.charactersCaseAbleString.split(""); - MockData.charactersEmpty = [ - " ", - " ", - "", - " ", - "\t", - "\xa0", - "\t \xa0\t \xa0", - " ", - "\t\t", - "\xa0\xa0", - ]; - MockData.charactersNotEmpty = [ - " 3 ", - "a", - "0", - "[]", - "A", - "{}", - ".", - "123", - "gabriel", - "Ich bin Hanz", - "@", - "00000000000000000000", - "\\", - "/", - "********", - "______", - ]; - MockData.numbersString = "0123456789"; - MockData.numbers = MockData.numbersString.split(""); - MockData.randomArray = [ - "a", - 1, - 2.32, - true, - function (a, b) { return a + b; }, - {}, - null, - undefined, - Infinity, - NaN, - { - a: "aa", - b: "bb", - }, - ["a", 1, true], - ]; - MockData.stringHelloWorldIAmComputer = [ - "Hello world i am computer", - "HelloWorldIAmComputer", - "helloWorldIAmComputer", - "hello_world_i_am_computer", - "HELLO_WORLD_I_AM_COMPUTER", - "--------Hello world---i am computer____", - "hello_World i Am-computer", - "hello_World i Am-computer-------", - "-_Hello___world-i--AM computer", - ]; - MockData.upperSnakeCase = [ - "HELLO_WORLD", - "HELLO_MY_NAME_IS_CHOSE", - ]; - MockData.lowerSnakeCase = [ - "hello_world", - "hello_my_name_is_chose", - ]; - MockData.upperCamelCase = [ - "HelloWorld", - "HelloMyNameIsChose", - ]; - MockData.lowerCamelCase = [ - "helloWorld", - "helloMyNameIsChose", - ]; - MockData.randomStrings = __spreadArrays(MockData.stringHelloWorldIAmComputer, MockData.upperSnakeCase, MockData.lowerSnakeCase, MockData.upperCamelCase, MockData.lowerCamelCase); - MockData.man = ["Muž", "muz", "MAN", "m", "boY", "chLaPec", "M", "male"]; - MockData.woman = ["Žena", "zena", "WOMAN", "w", "z", "GiRl", "Dievča", "woman", "female", "f"]; - MockData.nothing = __spreadArrays(MockData.charactersEmpty, MockData.randomStrings, MockData.numbers, MockData.characters, MockData.charactersCaseAble, MockData.charactersNotEmpty); - MockData.phoneNumbers = [ - "+421905123456", - "00421905123456", - "0905123456", - "+421 905 123 456", - "00421905 123 456", - "0905 123 456", - "(123) 456-7890", - "(123)456-7890", - "(048)99-99-999", - "123-456-7890", - "123.456.7890", - "1234567890", - "+31636363634", - "075-63546725", - ]; - MockData.emails = [ - "abc@def.com", - "my@name.is.chorche.com", - "foo.bar@machine.subdomain.example.museum", - "Abc@example.com", - "Abc.123@example.com", - "user+mailbox/department=shipping@example.com", - "\"very.(),:;<>[]\".VERY.\"very@\\ \"very\".unusual\"@strange.example.com", - "!#$%&'*+-/=?^_`.{|}~@example.com", - "\"()<>[]:,;@\\\"!#$%&'-/=?^_`{}| ~.a\"@example.org", - "\"Abc@def\"@example.com", - "\"Fred Bloggs\"@example.com", - "\"Joe.\\Blow\"@example.com", - ]; - MockData.notEmails = __spreadArrays([ - "Abc.example.com", - "A@b@c@example.com", - "a\"b(c)d,e:f;gi[j\\k]l@example.com", - "just\"not\"right@example.com", - "this is\"notallowed@example.com", - "this still\"not\\allowed@example.com", - "john..doe@example.com", - "john.doe@example..com" - ], MockData.randomStrings); - return MockData; -}()); -export { MockData }; -//# sourceMappingURL=MockData.js.map \ No newline at end of file diff --git a/dist/_esm5/MockData.js.map b/dist/_esm5/MockData.js.map deleted file mode 100644 index 451af085..00000000 --- a/dist/_esm5/MockData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MockData.js","sourceRoot":"","sources":["../../src/MockData.ts"],"names":[],"mappings":";AACA;IAAA;IAiNA,CAAC;IAPiB,oBAAW,GAAzB,UAA0B,CAAS,EAAE,CAAS;QAC1C,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SACnC;QAED,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IA/MsB,oBAAW,GAAa;QAC3C,UAAU;QACV,UAAU;QACV,UAAU;QACV,UAAU;QACV,UAAU;KACb,CAAC;IAEqB,kBAAS,GAAa;QACzC,OAAO;QACP,OAAO;QACP,OAAO;QACP,OAAO;QACP,OAAO;QACP,OAAO;KACV,CAAC;IAEqB,iBAAQ,GAAa;QACxC,MAAM;QACN,MAAM;QACN,MAAM;KACT,CAAC;IAEqB,qBAAY,GAAa;QAC5C,OAAO;QACP,UAAU;QACV,OAAO;QACP,OAAO;QACP,UAAU;QACV,OAAO;QACP,UAAU;QACV,UAAU;QACV,UAAU;KACb,CAAC;IAEqB,yBAAgB,GAAG,2EAA2E,CAAC;IAE/F,mBAAU,GAAG,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEjD,iCAAwB,GAAG,aAAa,CAAC;IAEzC,2BAAkB,GAAa,QAAQ,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE3E,wBAAe,GAAa;QAC/C,OAAO;QACP,MAAM;QACN,EAAE;QACF,GAAG;QACH,IAAI;QACJ,MAAM;QACN,gBAAgB;QAChB,IAAI;QACJ,MAAM;QACN,UAAU;KACb,CAAC;IAEqB,2BAAkB,GAAa;QAClD,KAAK;QACL,GAAG;QACH,GAAG;QACH,IAAI;QACJ,GAAG;QACH,IAAI;QACJ,GAAG;QACH,KAAK;Q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,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;IAEtF,gBAAO,kBACvB,QAAQ,CAAC,eAAe,EACxB,QAAQ,CAAC,aAAa,EACtB,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,UAAU,EACnB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,kBAAkB,EAChC;IAEqB,qBAAY,GAAa;QAC5C,eAAe;QACf,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,kBAAkB;QAClB,cAAc;QACd,gBAAgB;QAChB,eAAe;QACf,gBAAgB;QAChB,cAAc;QACd,cAAc;QACd,YAAY;QACZ,cAAc;QACd,cAAc;KACjB,CAAC;IAEqB,eAAM,GAAa;QACtC,aAAa;QACb,wBAAwB;QACxB,0CAA0C;QAC1C,iBAAiB;QAIjB,qBAAqB;QACrB,8CAA8C;QAC9C,0EAA0E;QAC1E,kCAAkC;QAClC,oDAAoD;QACpD,yBAAyB;QACzB,6BAA6B;QAC7B,4BAA4B;KAI/B,CAAC;IAEqB,kBAAS;QAC5B,iBAAiB;QACjB,mBAAmB;QACnB,uCAAuC;QACvC,8BAA8B;QAC9B,iCAAiC;QACjC,sCAAsC;QACtC,uBAAuB;QACvB,uBAAuB;OACpB,QAAQ,CAAC,aAAa,EAC3B;IASN,eAAC;CAAA,AAjND,IAiNC;SAjNY,QAAQ"} \ No newline at end of file diff --git a/dist/_esm5/common.js b/dist/_esm5/common.js deleted file mode 100644 index 1d3c83f3..00000000 --- a/dist/_esm5/common.js +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./utils/string-checkers"; -export { Gender } from "./models/gender.model"; -export * from "./enums/encodings.enum"; -export * from "./enums/file-types.enum"; -export * from "./enums/http-status-codes.enum"; -export * from "./enums/keys.enum"; -export * from "./components/key-value-counter"; -export * from "./components/number-counter"; -export * from "./components/file-manager"; -export * from "./components/paginator"; -export * from "./math/vector2f"; -export { initConfig } from "./config/gtools-config"; -export * from "./types/key-value.interface"; -export * from "./types/string-map.interface"; -export * from "./types/size.interaface"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/_esm5/common.js.map b/dist/_esm5/common.js.map deleted file mode 100644 index ae9ff747..00000000 --- a/dist/_esm5/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AAIxC,OAAO,EAAc,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAIlC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AAIvC,cAAc,iBAAiB,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AAIxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/components/bidirectional-graph.js b/dist/_esm5/components/bidirectional-graph.js deleted file mode 100644 index 763ff4db..00000000 --- a/dist/_esm5/components/bidirectional-graph.js +++ /dev/null @@ -1,112 +0,0 @@ -import { __spreadArrays } from "tslib"; -var BidirectionalGraph = (function () { - function BidirectionalGraph(comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - this.comparator = comparator; - this.map = new Map(); - } - Object.defineProperty(BidirectionalGraph.prototype, "numberOfVertices", { - get: function () { - return this.map.size; - }, - enumerable: false, - configurable: true - }); - BidirectionalGraph.prototype.cleanUp = function () { - this.map.clear(); - }; - BidirectionalGraph.prototype.getEdges = function () { - var _this = this; - var result = []; - var processedKeys = []; - this.map.forEach(function (value, vertexA) { - value.forEach(function (vertexB) { - if (processedKeys.some(function (v) { return _this.comparator(v, vertexB); })) { - return; - } - result.push([vertexA, vertexB]); - }); - processedKeys.push(vertexA); - }); - return result; - }; - BidirectionalGraph.prototype.hasVertex = function (item) { - return this.map.has(item); - }; - BidirectionalGraph.prototype.removeVertex = function (vertex, force) { - var _this = this; - if (force === void 0) { force = false; } - var itemValues = this.map.get(vertex); - if (!itemValues) { - return; - } - if (!force && itemValues.length) { - console.warn("Vertex contains connections"); - return; - } - this.map.delete(vertex); - itemValues.forEach(function (point) { - _this.map.set(point, _this.require(point).filter(function (p) { return !_this.comparator(p, vertex); })); - }); - }; - BidirectionalGraph.prototype.removeDisconnectedVertices = function () { - var _this = this; - this.map.forEach(function (value, key) { - if (!value.length) { - _this.map.delete(key); - } - }); - }; - BidirectionalGraph.prototype.require = function (item) { - return this.map.get(item) || []; - }; - BidirectionalGraph.prototype.addVertex = function () { - var _this = this; - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - items.forEach(function (item) { - if (_this.map.has(item)) { - return; - } - _this.map.set(item, []); - }); - }; - BidirectionalGraph.prototype.disconnect = function (itemA, itemB) { - var _this = this; - var aValues = this.require(itemA); - if (!(aValues === null || aValues === void 0 ? void 0 : aValues.length)) { - return; - } - this.map.set(itemA, aValues.filter(function (v) { return !_this.comparator(itemB, v); })); - this.map.set(itemB, this.require(itemB).filter(function (v) { return !_this.comparator(itemA, v); })); - }; - BidirectionalGraph.prototype.connect = function (itemA) { - var _this = this; - var items = []; - for (var _i = 1; _i < arguments.length; _i++) { - items[_i - 1] = arguments[_i]; - } - if (!items.length) { - return; - } - var aValues = this.map.get(itemA) || []; - var missingPoints = items.filter(function (p) { return !aValues.some(function (v) { return _this.comparator(v, p); }); }); - this.map.set(itemA, __spreadArrays(aValues, missingPoints)); - missingPoints.forEach(function (itemB) { - _this.map.set(itemB, __spreadArrays(_this.require(itemB), [itemA])); - }); - }; - BidirectionalGraph.prototype.areConnected = function (itemA, itemB) { - var _this = this; - var aValues = this.map.get(itemA); - if (!aValues) { - return false; - } - return aValues.some(function (v) { return _this.comparator(itemB, v); }); - }; - return BidirectionalGraph; -}()); -export { BidirectionalGraph }; -//# sourceMappingURL=bidirectional-graph.js.map \ No newline at end of file diff --git a/dist/_esm5/components/bidirectional-graph.js.map b/dist/_esm5/components/bidirectional-graph.js.map deleted file mode 100644 index 5ddbe3db..00000000 --- a/dist/_esm5/components/bidirectional-graph.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bidirectional-graph.js","sourceRoot":"","sources":["../../../src/components/bidirectional-graph.ts"],"names":[],"mappings":";AAAA;IAGI,4BAAoC,UAAuD;QAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,CAAC,EAAP,CAAO;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAF3E,QAAG,GAAG,IAAI,GAAG,EAAU,CAAC;IAGxC,CAAC;IAED,sBAAW,gDAAgB;aAA3B;YACI,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QACzB,CAAC;;;OAAA;IAEM,oCAAO,GAAd;QACI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,qCAAQ,GAAf;QAAA,iBAeC;QAdG,IAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,IAAM,aAAa,GAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,UAAC,KAAK,EAAE,OAAO;YAC5B,KAAK,CAAC,OAAO,CAAC,UAAC,OAAO;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.js deleted file mode 100644 index 98c3e79f..00000000 --- a/dist/_esm5/components/file-manager.js +++ /dev/null @@ -1,72 +0,0 @@ -import { FileTypes } from "../enums"; -var FileManager = (function () { - function FileManager() { - this.input = document.createElement("input"); - this.input.setAttribute("type", "file"); - this.input.setAttribute("value", "files"); - this.input.setAttribute("class", "hide"); - this.link = document.createElement("a"); - this.link.setAttribute("class", "hide"); - this.link.setAttribute("href", ""); - } - FileManager.prototype.saveFile = function (name, text, type) { - if (type === void 0) { type = FileTypes.TXT; } - this.link.href = URL.createObjectURL(new Blob([text], { type: type })); - this.link.download = name; - this.link.click(); - }; - FileManager.prototype.saveImage = function (name, image) { - this.link.href = typeof image === "string" ? image : image.src; - this.link.download = name; - this.link.click(); - }; - FileManager.prototype.loadImage = function (func) { - this.input.multiple = false; - this.input.accept = "image/*"; - this.input.onchange = function (event) { - var files = event.target.files; - if (files.length <= 0) { - return; - } - var reader = new FileReader(); - reader.onload = function () { - var image = new Image(); - image.src = reader.result; - func(image, files[0]); - }; - reader.readAsDataURL(files[0]); - }; - this.input.click(); - }; - FileManager.prototype.loadFile = function (func, encoding) { - this.input.multiple = false; - this.input.onchange = function (e) { - var reader = new FileReader(); - var files = e.target.files; - if (files && files.length > 0) { - reader.onload = function () { return func(String(reader.result), files[0]); }; - reader.readAsText(files[0], encoding); - } - }; - this.input.click(); - }; - FileManager.prototype.loadFiles = function (func) { - this.input.multiple = true; - this.input.onchange = function (e) { return func(e.target.files); }; - this.input.click(); - }; - FileManager.prototype.loadBinaryFile = function (func) { - this.input.onchange = function (event) { - var reader = new FileReader(); - var files = event.target.files; - if (files && files.length > 0) { - reader.onload = function () { return func(reader.result, files[0].name); }; - reader.readAsBinaryString(files[0]); - } - }; - this.input.click(); - }; - return FileManager; -}()); -export { FileManager }; -//# sourceMappingURL=file-manager.js.map \ No newline at end of file diff --git a/dist/_esm5/components/file-manager.js.map b/dist/_esm5/components/file-manager.js.map deleted file mode 100644 index 2315fd43..00000000 --- a/dist/_esm5/components/file-manager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-manager.js","sourceRoot":"","sources":["../../../src/components/file-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;IAUI;QACI,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAEzC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IASM,8BAAQ,GAAf,UAAgB,IAAY,EAAE,IAAY,EAAE,IAA+B;QAA/B,qBAAA,EAAA,OAAkB,SAAS,CAAC,GAAG;QACvE,IAAI,CAAC,IAAI,CAAC,IAAI,GAAO,GAAG,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAC,IAAI,MAAA,EAAC,CAAC,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAQM,+BAAS,GAAhB,UAAiB,IAAY,EAAE,KAAgC;QAC3D,IAAI,CAAC,IAAI,CAAC,IAAI,GAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,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ode 100644 index 49eda3c3..00000000 --- a/dist/_esm5/components/g-map.js +++ /dev/null @@ -1,21 +0,0 @@ -import { __extends } from "tslib"; -var GMap = (function (_super) { - __extends(GMap, _super); - function GMap() { - return _super !== null && _super.apply(this, arguments) || this; - } - GMap.prototype.get = function (key, defaultValue) { - return _super.prototype.get.call(this, key) || defaultValue; - }; - GMap.prototype.getOrCreate = function (key, defaultValue) { - var result = _super.prototype.get.call(this, key); - if (result) { - return result; - } - this.set(key, defaultValue); - return defaultValue; - }; - return GMap; -}(Map)); -export { GMap }; -//# sourceMappingURL=g-map.js.map \ No newline at end of file diff --git a/dist/_esm5/components/g-map.js.map b/dist/_esm5/components/g-map.js.map deleted file mode 100644 index 924e5aad..00000000 --- a/dist/_esm5/components/g-map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-map.js","sourceRoot":"","sources":["../../../src/components/g-map.ts"],"names":[],"mappings":";AAAA;IAAgC,wBAAS;IAAzC;;IAcA,CAAC;IAbU,kBAAG,GAAV,UAAW,GAAM,EAAE,YAAgB;QAC/B,OAAO,iBAAM,GAAG,YAAC,GAAG,CAAC,IAAI,YAAY,CAAC;IAC1C,CAAC;IAEM,0BAAW,GAAlB,UAAmB,GAAM,EAAE,YAAe;QACtC,IAAM,MAAM,GAAG,iBAAM,GAAG,YAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,MAAM,EAAE;YACR,OAAO,MAAM,CAAC;SACjB;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAE5B,OAAO,YAAY,CAAC;IACxB,CAAC;IACL,WAAC;AAAD,CAAC,AAdD,CAAgC,GAAG,GAclC"} \ No newline at end of file diff --git a/dist/_esm5/components/index.js b/dist/_esm5/components/index.js deleted file mode 100644 index cac7bd25..00000000 --- a/dist/_esm5/components/index.js +++ /dev/null @@ -1,12 +0,0 @@ -export * from "./file-manager"; -export * from "./logger/g-logger"; -export * from "./g-map"; -export * from "./key-value-counter"; -export * from "./number-counter"; -export * from "./paginator"; -export * from "./bidirectional-graph"; -export { GLoggerPriority } from "./logger/g-logger-priority"; -export { GLoggerDefaultFormatter, SimpleColorFormatter } from "./logger/g-logger-default-formatter"; -export { GLoggerCallbackHolder } from "./logger/g-logger-callback-holder"; -export { GLoggerInstance } from "./logger/g-logger-instance"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/components/index.js.map b/dist/_esm5/components/index.js.map deleted file mode 100644 index 0f62fe56..00000000 --- a/dist/_esm5/components/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/components/key-value-counter.js b/dist/_esm5/components/key-value-counter.js deleted file mode 100644 index 89798c77..00000000 --- a/dist/_esm5/components/key-value-counter.js +++ /dev/null @@ -1,52 +0,0 @@ -var KeyValueCounter = (function () { - function KeyValueCounter() { - this.data = {}; - this.results = []; - this.processed = false; - } - KeyValueCounter.prototype.add = function (item) { - if (item in this.data) { - this.data[item]++; - } - else { - this.data[item] = 1; - } - if (this.processed) { - this.processed = false; - } - }; - KeyValueCounter.prototype.addAll = function (items) { - items.forEach(this.add, this); - }; - KeyValueCounter.prototype.getAll = function () { - if (!this.processed) { - this.process(); - } - return this.results; - }; - KeyValueCounter.prototype.getTopN = function (count) { - if (!this.processed) { - this.process(); - } - return this.results.slice(0, count); - }; - KeyValueCounter.prototype.getCount = function () { - return this.getAll().length; - }; - KeyValueCounter.prototype.process = function () { - for (var key in this.data) { - if (!this.data.hasOwnProperty(key)) { - continue; - } - this.results.push({ - key: key, - count: this.data[key], - }); - } - this.results.sort(function (a, b) { return b.count - a.count; }); - this.processed = true; - }; - return KeyValueCounter; -}()); -export { KeyValueCounter }; -//# sourceMappingURL=key-value-counter.js.map \ No newline at end of file diff --git a/dist/_esm5/components/key-value-counter.js.map b/dist/_esm5/components/key-value-counter.js.map deleted file mode 100644 index be6596fa..00000000 --- a/dist/_esm5/components/key-value-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value-counter.js","sourceRoot":"","sources":["../../../src/components/key-value-counter.ts"],"names":[],"mappings":"AAKA;IAAA;QACqB,SAAI,GAA8B,EAAE,CAAC;QACrC,YAAO,GAA2B,EAAE,CAAC;QAC9C,cAAS,GAAkC,KAAK,CAAC;IAkD7D,CAAC;IAhDU,6BAAG,GAAV,UAAW,IAAY;QACnB,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;SACrB;aAAM;YACH,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;QACD,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;SAC1B;IACL,CAAC;IAEM,gCAAM,GAAb,UAAc,KAAe;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAEM,gCAAM,GAAb;QACI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAEM,iCAAO,GAAd,UAAe,KAAa;QACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAEM,kCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC;IAChC,CAAC;IAEO,iCAAO,GAAf;QACI,KAAK,IAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE;YACzB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;gBAChC,SAAS;aACZ;YACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gBACd,GAAG,KAAA;gBACH,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;aACxB,CAAC,CAAC;SACN;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAjB,CAAiB,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AArDD,IAqDC"} \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-callback-holder.js b/dist/_esm5/components/logger/g-logger-callback-holder.js deleted file mode 100644 index 168bc473..00000000 --- a/dist/_esm5/components/logger/g-logger-callback-holder.js +++ /dev/null @@ -1,51 +0,0 @@ -import { SimpleColorFormatter } from "./g-logger-default-formatter"; -import { GLoggerPriority } from "./g-logger-priority"; -var GLoggerCallbackHolder = (function () { - function GLoggerCallbackHolder(callbacks) { - this.callbacks = callbacks; - } - GLoggerCallbackHolder.prototype.copy = function () { - return new GLoggerCallbackHolder(this.callbacks); - }; - GLoggerCallbackHolder.createConsoleCallbacks = function (formatter) { - var _a; - if (formatter === void 0) { formatter = new SimpleColorFormatter(); } - return new GLoggerCallbackHolder((_a = {}, - _a[GLoggerPriority.LOG] = function (message, context) { return console.log.apply(console, formatter.formatColored(GLoggerPriority.LOG, message, context)); }, - _a[GLoggerPriority.WARN] = function (message, context) { return console.warn.apply(console, formatter.formatColored(GLoggerPriority.WARN, message, context)); }, - _a[GLoggerPriority.ERROR] = function (message, context) { return console.error.apply(console, formatter.formatColored(GLoggerPriority.ERROR, message, context)); }, - _a[GLoggerPriority.SUCCESS] = function (message, context) { return console.log.apply(console, formatter.formatColored(GLoggerPriority.SUCCESS, message, context)); }, - _a[GLoggerPriority.VERBOSE] = function (message, context) { return console.log.apply(console, formatter.formatColored(GLoggerPriority.VERBOSE, message, context)); }, - _a)); - }; - GLoggerCallbackHolder.createArrayCallbacks = function (array, options) { - var _a; - if (options === void 0) { options = {}; } - var mapper = options.mapper || (function (priority, messages, context) { return [priority, messages, context]; }); - var appendToArray = function (priority, messages, context) { - array.push(mapper(priority, messages, context)); - }; - return new GLoggerCallbackHolder((_a = {}, - _a[GLoggerPriority.LOG] = function (message, context) { return appendToArray(GLoggerPriority.LOG, message, context); }, - _a[GLoggerPriority.WARN] = function (message, context) { return appendToArray(GLoggerPriority.WARN, message, context); }, - _a[GLoggerPriority.ERROR] = function (message, context) { return appendToArray(GLoggerPriority.ERROR, message, context); }, - _a[GLoggerPriority.SUCCESS] = function (message, context) { return appendToArray(GLoggerPriority.SUCCESS, message, context); }, - _a[GLoggerPriority.VERBOSE] = function (message, context) { return appendToArray(GLoggerPriority.VERBOSE, message, context); }, - _a)); - }; - GLoggerCallbackHolder.prototype.setCallback = function (priority, callback) { - this.callbacks[priority] = callback; - }; - GLoggerCallbackHolder.prototype.set = function (holder) { - var _this = this; - Object.values(GLoggerPriority).forEach(function (priority) { - _this.setCallback(priority, holder.getCallback(priority)); - }); - }; - GLoggerCallbackHolder.prototype.getCallback = function (priority) { - return this.callbacks[priority]; - }; - return GLoggerCallbackHolder; -}()); -export { GLoggerCallbackHolder }; -//# sourceMappingURL=g-logger-callback-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-callback-holder.js.map b/dist/_esm5/components/logger/g-logger-callback-holder.js.map deleted file mode 100644 index e5100e42..00000000 --- a/dist/_esm5/components/logger/g-logger-callback-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-callback-holder.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-callback-holder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IACI,+BAAqC,SAAwD;QAAxD,cAAS,GAAT,SAAS,CAA+C;IAC7F,CAAC;IAEM,oCAAI,GAAX;QACI,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAEa,4CAAsB,GAApC,UAAqC,SAAsC;;QAAtC,0BAAA,EAAA,gBAAgB,oBAAoB,EAAE;QACvE,OAAO,IAAI,qBAAqB;YAO5B,GAAC,eAAe,CAAC,GAAG,IAAO,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,OAAO,CAAC,GAAG,OAAX,OAAO,EAAQ,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,GAA7E,CAA8E;YACnJ,GAAC,eAAe,CAAC,IAAI,IAAM,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,OAAO,CAAC,IAAI,OAAZ,OAAO,EAAS,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,GAA/E,CAAgF;YACrJ,GAAC,eAAe,CAAC,KAAK,IAAK,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,OAAO,CAAC,KAAK,OAAb,OAAO,EAAU,SAAS,CAAC,aAAa,CA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AArD,CAAqD;YAC1H,GAAC,eAAe,CAAC,KAAK,IAAK,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,aAAa,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAtD,CAAsD;YAC3H,GAAC,eAAe,CAAC,OAAO,IAAG,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,aAAa,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAxD,CAAwD;YAC7H,GAAC,eAAe,CAAC,OAAO,IAAG,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,aAAa,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAxD,CAAwD;gBAC/H,CAAC;IACP,CAAC;IAmBM,2CAAW,GAAlB,UAAmB,QAAyB,EAAE,QAAyB;QACnE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC;IACxC,CAAC;IAEM,mCAAG,GAAV,UAAW,MAA6B;QAAxC,iBAIC;QAHG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAC5C,KAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,2CAAW,GAAlB,UAAmB,QAAyB;QACxC,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACL,4BAAC;AAAD,CAAC,AArED,IAqEC"} \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-default-formatter.js b/dist/_esm5/components/logger/g-logger-default-formatter.js deleted file mode 100644 index e8de1991..00000000 --- a/dist/_esm5/components/logger/g-logger-default-formatter.js +++ /dev/null @@ -1,162 +0,0 @@ -import { dateAgo, randomItem, template } from "../../utils"; -var ColorGenerator = (function () { - function ColorGenerator() { - this.useDifferentColorsForContexts = true; - this.contextColorMap = {}; - } - ColorGenerator.prototype.getColorForContext = function (context, defaultColor) { - if (!this.useDifferentColorsForContexts) { - return defaultColor; - } - if (context in this.contextColorMap) { - return this.contextColorMap[context]; - } - var createColor = function () { - return "#" + new Array(6).fill("").map(function () { return randomItem("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D"); }).join(""); - }; - return this.contextColorMap[context] = createColor(); - }; - return ColorGenerator; -}()); -export { ColorGenerator }; -var SimpleColorFormatter = (function () { - function SimpleColorFormatter(pattern) { - if (pattern === void 0) { pattern = "[{{priority}}] {{context}}: {{data}}"; } - this.pattern = pattern; - this.colorGenerator = new ColorGenerator(); - this.colorMap = { - priority: "red", - context: "blue", - data: "black", - default: "black", - }; - } - SimpleColorFormatter.prototype.format = function (priority, data, context) { - var dataPlaceholders = data.map(function (item) { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - var text = template(this.pattern, { - priority: "%s", - context: "%s", - data: dataPlaceholders.join(" "), - }); - var logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, function (match) { - switch (match) { - case "priority": - logFragments.push(priority); - break; - case "context": - logFragments.push(context || ""); - break; - case "data": - logFragments.push.apply(logFragments, data); - break; - } - return match; - }); - return logFragments.join(", "); - }; - SimpleColorFormatter.prototype.formatColored = function (priority, data, context) { - var _this = this; - var dataPlaceholders = data.map(function (item) { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - var text = template(this.pattern, { - priority: "%c%s%c", - context: "%c%s%c", - data: "%c" + dataPlaceholders.join(" ") + "%c", - }); - var logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, function (match) { - switch (match) { - case "priority": - logFragments.push("color: " + _this.colorMap[match]); - logFragments.push(priority); - logFragments.push("color: " + _this.colorMap.default); - break; - case "context": - logFragments.push("color: " + _this.colorGenerator.getColorForContext(context || "root", "black")); - logFragments.push(context || ""); - logFragments.push("color: " + _this.colorMap.default); - break; - case "data": - logFragments.push("color: " + _this.colorMap[match]); - logFragments.push.apply(logFragments, data); - logFragments.push("color: " + _this.colorMap.default); - break; - } - return match; - }); - return logFragments; - }; - return SimpleColorFormatter; -}()); -export { SimpleColorFormatter }; -var GLoggerDefaultFormatter = (function () { - function GLoggerDefaultFormatter() { - this.showPriority = false; - this.showContext = true; - this.showTime = false; - this.showTimeOffset = false; - this.colors = {}; - this.colorGenerator = new ColorGenerator(); - this.lastFormatTime = Date.now(); - } - GLoggerDefaultFormatter.prototype.formatColored = function (priority, data, context) { - var result = [this.getOutputArray(priority, data, context).join(" ")]; - if (this.showPriority) { - result.push("color: " + (this.colors.priority || "blue")); - } - if (this.showContext && context) { - result.push("color: " + this.colorGenerator.getColorForContext(context, this.colors.context || "red")); - } - if (this.showTime) { - result.push("color: " + (this.colors.time || "green")); - } - if (this.showTimeOffset) { - result.push("color: " + (this.colors.timeOffset || "green")); - } - result.push("color: " + (this.colors.textColor || "black")); - return result; - }; - GLoggerDefaultFormatter.prototype.format = function (priority, data, context) { - return this.getOutputArray(priority, data, context).join(" "); - }; - GLoggerDefaultFormatter.prototype.getOutputArray = function (priority, data, context) { - var partials = []; - if (this.showPriority) { - partials.push("[" + priority + "]"); - } - if (this.showContext && context) { - partials.push(context + ":"); - } - if (this.showTime) { - partials.push("[" + new Date().toISOString() + "]"); - } - if (this.showTimeOffset) { - var now = Date.now(); - partials.push("" + dateAgo(now - this.lastFormatTime)); - this.lastFormatTime = now; - } - partials.push.apply(partials, data.map(String)); - return partials; - }; - return GLoggerDefaultFormatter; -}()); -export { GLoggerDefaultFormatter }; -//# sourceMappingURL=g-logger-default-formatter.js.map \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-default-formatter.js.map b/dist/_esm5/components/logger/g-logger-default-formatter.js.map deleted file mode 100644 index 3934157d..00000000 --- a/dist/_esm5/components/logger/g-logger-default-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-default-formatter.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-default-formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5D;IAAA;QACW,kCAA6B,GAA8B,IAAI,CAAC;QACtD,oBAAe,GAAkC,EAAE,CAAC;IAiBzE,CAAC;IAfU,2CAAkB,GAAzB,UAA0B,OAAe,EAAE,YAAoB;QAC3D,IAAI,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrC,OAAO,YAAY,CAAC;SACvB;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;YACjC,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SACxC;QAED,IAAM,WAAW,GAAG;YAChB,OAAA,MAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,cAAM,OAAA,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAhF,CAAgF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAG;QAAhI,CAAgI,CACnI;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,WAAW,EAAE,CAAC;IACzD,CAAC;IACL,qBAAC;AAAD,CAAC,AAnBD,IAmBC;;AAED;IAQI,8BAAoC,OAAgD;QAAhD,wBAAA,EAAA,gDAAgD;QAAhD,YAAO,GAAP,OAAO,CAAyC;QAPnE,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;QACvC,aAAQ,GAAG;YACvB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,MAAM;YACf,I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,CAAC,IAAI,OAAb,QAAQ,EAAS,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAEnC,OAAO,QAAQ,CAAC;IACpB,CAAC;IACL,8BAAC;AAAD,CAAC,AA3DD,IA2DC"} \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-instance.js b/dist/_esm5/components/logger/g-logger-instance.js deleted file mode 100644 index 002247b7..00000000 --- a/dist/_esm5/components/logger/g-logger-instance.js +++ /dev/null @@ -1,65 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { GLoggerPriority } from "./g-logger-priority"; -var GLoggerInstance = (function () { - function GLoggerInstance(loggerCallbacks, context) { - this.loggerCallbacks = loggerCallbacks; - this.context = context; - } - GLoggerInstance.localPrint = function (type, data, callbacks, context) { - callbacks.getCallback(type)(data, context); - }; - GLoggerInstance.getContextString = function (context) { - var _a; - if (typeof context === "string") { - return context; - } - if (typeof ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name) === "string") { - return context.constructor.name; - } - if (typeof (context === null || context === void 0 ? void 0 : context.name) === "string") { - return context.name; - } - return undefined; - }; - GLoggerInstance.prototype.setLogCallback = function (priority, callback) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.setCallback(priority, callback); - }; - GLoggerInstance.prototype.setLogCallbacks = function (callbackHolder) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.set(callbackHolder); - }; - GLoggerInstance.prototype.print = function (type, context) { - if (context === void 0) { context = ""; } - var data = []; - for (var _i = 2; _i < arguments.length; _i++) { - data[_i - 2] = arguments[_i]; - } - var realContext = GLoggerInstance.getContextString(context); - GLoggerInstance.localPrint(type, data, this.loggerCallbacks, realContext); - }; - GLoggerInstance.prototype.log = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([GLoggerPriority.LOG, this.context], messages)); - }; - GLoggerInstance.prototype.warn = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([GLoggerPriority.WARN, this.context], messages)); - }; - GLoggerInstance.prototype.error = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([GLoggerPriority.ERROR, this.context], messages)); - }; - return GLoggerInstance; -}()); -export { GLoggerInstance }; -//# sourceMappingURL=g-logger-instance.js.map \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-instance.js.map b/dist/_esm5/components/logger/g-logger-instance.js.map deleted file mode 100644 index c925ffc8..00000000 --- a/dist/_esm5/components/logger/g-logger-instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-instance.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-instance.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IAqBI,yBACuB,eAAsC,EACzC,OAA4B;QADzB,oBAAe,GAAf,eAAe,CAAuB;QACzC,YAAO,GAAP,OAAO,CAAqB;IAEhD,CAAC;IAxBgB,0BAAU,GAA3B,UAA4B,IAAqB,EAAE,IAAe,EAAE,SAAgC,EAAE,OAAgB;QAClH,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAEgB,gCAAgB,GAAjC,UAAkC,OAA4B;;QAC1D,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC7B,OAAO,OAAO,CAAC;SAClB;QAED,IAAI,cAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,0CAAE,IAAI,CAAA,KAAK,QAAQ,EAAE;YAChD,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;SACnC;QAED,IAAI,QAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAA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AAI,kBAAO,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,GAAK,QAAQ,GAAE;IACjE,CAAC;IACL,sBAAC;AAAD,CAAC,AAnDD,IAmDC"} \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-priority.js b/dist/_esm5/components/logger/g-logger-priority.js deleted file mode 100644 index c96d0fdf..00000000 --- a/dist/_esm5/components/logger/g-logger-priority.js +++ /dev/null @@ -1,9 +0,0 @@ -export var GLoggerPriority; -(function (GLoggerPriority) { - GLoggerPriority["LOG"] = "LOG"; - GLoggerPriority["WARN"] = "WARN"; - GLoggerPriority["ERROR"] = "ERROR"; - GLoggerPriority["VERBOSE"] = "VERBOSE"; - GLoggerPriority["SUCCESS"] = "SUCCESS"; -})(GLoggerPriority || (GLoggerPriority = {})); -//# sourceMappingURL=g-logger-priority.js.map \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger-priority.js.map b/dist/_esm5/components/logger/g-logger-priority.js.map deleted file mode 100644 index dbd9ae49..00000000 --- a/dist/_esm5/components/logger/g-logger-priority.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-priority.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger-priority.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,8BAAe,CAAA;IACf,gCAAgB,CAAA;IAChB,kCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B"} \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger.js b/dist/_esm5/components/logger/g-logger.js deleted file mode 100644 index dfa7c479..00000000 --- a/dist/_esm5/components/logger/g-logger.js +++ /dev/null @@ -1,68 +0,0 @@ -import { __extends, __spreadArrays } from "tslib"; -import { GLoggerCallbackHolder } from "./g-logger-callback-holder"; -import { GLoggerInstance } from "./g-logger-instance"; -import { GLoggerPriority } from "./g-logger-priority"; -var GLogger = (function (_super) { - __extends(GLogger, _super); - function GLogger(context, callbacks) { - if (callbacks === void 0) { callbacks = GLogger.staticCallbacks.copy(); } - return _super.call(this, callbacks, context) || this; - } - GLogger.setCallbacks = function (callbackHolder) { - GLogger.staticCallbacks.set(callbackHolder); - }; - GLogger.getLine = function (steps) { - if (steps === void 0) { steps = 2; } - var error = new Error(); - if (error.stack) { - var results = error.stack.split("\n")[steps].trim().match(/\(.*\)/); - if (results && results[0]) { - return "at " + results[0]; - } - } - return ""; - }; - GLogger.createClassLogger = function (context, parent) { - var _a, _b; - if (parent) { - return parent.extends((context === null || context === void 0 ? void 0 : context.name) || ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name)); - } - return new GLogger((_b = context === null || context === void 0 ? void 0 : context.constructor) === null || _b === void 0 ? void 0 : _b.name); - }; - GLogger.createArrayLogger = function (array, context, mapper) { - return new GLogger(context, GLoggerCallbackHolder.createArrayCallbacks(array, { mapper: mapper })); - }; - GLogger.print = function (type, context) { - if (context === void 0) { context = ""; } - var data = []; - for (var _i = 2; _i < arguments.length; _i++) { - data[_i - 2] = arguments[_i]; - } - var realContext = GLogger.getContextString(context); - var result = realContext && realContext.match(GLogger.skipRegexp); - if (result) { - return; - } - GLoggerInstance.localPrint(type, data, GLogger.staticCallbacks, realContext); - }; - GLogger.log = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([GLoggerPriority.LOG, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.error = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([GLoggerPriority.ERROR, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.warn = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([GLoggerPriority.WARN, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.prototype.extends = function (subContext) { - var currentContext = GLogger.getContextString(this.context); - var subContextNameContext = GLogger.getContextString(subContext); - return new GLogger(currentContext ? currentContext + ":" + subContextNameContext : subContextNameContext, this.loggerCallbacks.copy()); - }; - GLogger.skipContexts = ["renderWorldStatic", "CanvasDirective", "WorldRendererService", "viewport", "WorldInputService"]; - GLogger.skipRegexp = new RegExp("" + GLogger.skipContexts.join("|"), "gi"); - GLogger.staticCallbacks = GLoggerCallbackHolder.createConsoleCallbacks(); - return GLogger; -}(GLoggerInstance)); -export { GLogger }; -//# sourceMappingURL=g-logger.js.map \ No newline at end of file diff --git a/dist/_esm5/components/logger/g-logger.js.map b/dist/_esm5/components/logger/g-logger.js.map deleted file mode 100644 index 2c91552b..00000000 --- a/dist/_esm5/components/logger/g-logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger.js","sourceRoot":"","sources":["../../../../src/components/logger/g-logger.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAStD;IAA6B,2BAAe;IAuDxC,iBACI,OAA4B,EAC5B,SAA0C;QAA1C,0BAAA,EAAA,YAAY,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE;eAE1C,kBAAM,SAAS,EAAE,OAAO,CAAC;IAC7B,CAAC;IAvDa,oBAAY,GAA1B,UAA2B,cAAqC;QAC5D,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;IAEa,eAAO,GAArB,UAAsB,KAAS;QAAT,sBAAA,EAAA,SAAS;QAC3B,IAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;QAC1B,IAAI,KAAK,CAAC,KAAK,EAAE;YACb,IAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACtE,IAAI,OAAO,IAAI,OAAO,CA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IACrE,uBAAe,GAAG,qBAAqB,CAAC,sBAAsB,EAAE,CAAC;IAoE7F,cAAC;CAAA,AAvED,CAA6B,eAAe,GAuE3C;SAvEY,OAAO"} \ No newline at end of file diff --git a/dist/_esm5/components/number-counter.js b/dist/_esm5/components/number-counter.js deleted file mode 100644 index 6ff4c1ad..00000000 --- a/dist/_esm5/components/number-counter.js +++ /dev/null @@ -1,32 +0,0 @@ -var NumberCounter = (function () { - function NumberCounter() { - this.min = Infinity; - this.max = -Infinity; - this.sum = 0; - this.numbers = []; - } - NumberCounter.prototype.add = function (value) { - this.numbers.push(value); - this.min = Math.min(this.min, value); - this.max = Math.max(this.max, value); - this.sum += value; - }; - NumberCounter.prototype.getMin = function () { - return this.min; - }; - NumberCounter.prototype.getMax = function () { - return this.max; - }; - NumberCounter.prototype.getCount = function () { - return this.numbers.length; - }; - NumberCounter.prototype.getAverage = function () { - return this.sum / this.numbers.length; - }; - NumberCounter.prototype.addAll = function (items) { - items.forEach(this.add, this); - }; - return NumberCounter; -}()); -export { NumberCounter }; -//# sourceMappingURL=number-counter.js.map \ No newline at end of file diff --git a/dist/_esm5/components/number-counter.js.map b/dist/_esm5/components/number-counter.js.map deleted file mode 100644 index e2fa2d35..00000000 --- a/dist/_esm5/components/number-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"number-counter.js","sourceRoot":"","sources":["../../../src/components/number-counter.ts"],"names":[],"mappings":"AAAA;IAAA;QACY,QAAG,GAA0B,QAAQ,CAAC;QACtC,QAAG,GAA0B,CAAC,QAAQ,CAAC;QACvC,QAAG,GAA0B,CAAC,CAAC;QACtB,YAAO,GAAa,EAAE,CAAC;IA6B5C,CAAC;IA3BU,2BAAG,GAAV,UAAW,KAAa;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC;IACtB,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,gCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;IAEM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC1C,CAAC;IAEM,8BAAM,GAAb,UAAc,KAAe;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IACL,oBAAC;AAAD,CAAC,AAjCD,IAiCC"} \ No newline at end of file diff --git a/dist/_esm5/components/paginator.js b/dist/_esm5/components/paginator.js deleted file mode 100644 index 4a15da8c..00000000 --- a/dist/_esm5/components/paginator.js +++ /dev/null @@ -1,78 +0,0 @@ -import { GToolsConfig } from "../config/gtools-config"; -var Paginator = (function () { - function Paginator(allItems, itemsPerPage) { - if (itemsPerPage === void 0) { itemsPerPage = GToolsConfig.PAGE_LIMIT; } - this.allItems = allItems; - this.itemsPerPage = itemsPerPage; - this.actualPage = 0; - this.lastPage = allItems ? Math.floor(allItems.length / this.itemsPerPage) : 0; - this.actList = this._reCalcList(); - } - Paginator.prototype.getActualPage = function () { - return this.actualPage + 1; - }; - Paginator.prototype.getPages = function () { - return this.lastPage + 1; - }; - Paginator.prototype.getPagesAround = function () { - if (this.actualPage < 2) { - return [1, 2, 3, 4, 5]; - } - if (this.actualPage > this.lastPage - 3) { - return [ - this.lastPage - 3, - this.lastPage - 2, - this.lastPage - 1, - this.lastPage, - this.lastPage + 1, - ]; - } - return [ - this.actualPage - 1, - this.actualPage, - this.actualPage + 1, - this.actualPage + 2, - this.actualPage + 3, - ]; - }; - Paginator.prototype.getList = function () { - return this.actList; - }; - Paginator.prototype.goToNext = function () { - if (this.actualPage < this.lastPage) { - this.actualPage++; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.gotTo = function (page) { - if (page >= 0 && page <= this.lastPage) { - this.actualPage = page; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.goToPrev = function () { - if (this.actualPage > 0) { - this.actualPage--; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.goToFirst = function () { - this.actualPage = 0; - return this._reCalcList(); - }; - Paginator.prototype.goToLast = function () { - this.actualPage = this.lastPage; - return this._reCalcList(); - }; - Paginator.prototype._reCalcList = function () { - var start = this.actualPage * this.itemsPerPage; - this.actList = this.allItems ? this.allItems.slice(start, start + this.itemsPerPage) : []; - return this.actList; - }; - return Paginator; -}()); -export { Paginator }; -//# sourceMappingURL=paginator.js.map \ No newline at end of file diff --git a/dist/_esm5/components/paginator.js.map b/dist/_esm5/components/paginator.js.map deleted file mode 100644 index ea1092f1..00000000 --- a/dist/_esm5/components/paginator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginator.js","sourceRoot":"","sources":["../../../src/components/paginator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;IAKI,mBAAoC,QAAa,EACb,YAAsC;QAAtC,6BAAA,EAAA,eAAe,YAAY,CAAC,UAAU;QADtC,aAAQ,GAAR,QAAQ,CAAK;QACb,iBAAY,GAAZ,YAAY,CAA0B;QAJlE,eAAU,GAAG,CAAC,CAAC;QAKnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;Q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AAI,IAAI,CAAC,QAAQ,EAAE;YACpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YAEvB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAEM,4BAAQ,GAAf;QACI,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE;YACrB,IAAI,CAAC,UAAU,EAAE,CAAC;YAElB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;SAC7B;QAED,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAEM,6BAAS,GAAhB;QACI,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QAEpB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAEM,4BAAQ,GAAf;QACI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEhC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAEO,+BAAW,GAAnB;QACI,IAAM,KAAK,GAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE1F,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACL,gBAAC;AAAD,CAAC,AA9FD,IA8FC"} \ No newline at end of file diff --git a/dist/_esm5/config/gtools-config.interface.js b/dist/_esm5/config/gtools-config.interface.js deleted file mode 100644 index b7d53552..00000000 --- a/dist/_esm5/config/gtools-config.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=gtools-config.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/config/gtools-config.interface.js.map b/dist/_esm5/config/gtools-config.interface.js.map deleted file mode 100644 index c352b213..00000000 --- a/dist/_esm5/config/gtools-config.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.interface.js","sourceRoot":"","sources":["../../../src/config/gtools-config.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/config/gtools-config.js b/dist/_esm5/config/gtools-config.js deleted file mode 100644 index 4f00cca6..00000000 --- a/dist/_esm5/config/gtools-config.js +++ /dev/null @@ -1,51 +0,0 @@ -var config; -var checkConfig = function () { - if (!config) { - return { - URL_API: "", - LANGUAGE: "", - VERSION: "", - PAGE_LIMIT: 0, - }; - } - return config; -}; -var ClassGToolsConfig = (function () { - function ClassGToolsConfig() { - } - Object.defineProperty(ClassGToolsConfig.prototype, "URL_API", { - get: function () { - return checkConfig().URL_API; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "PAGE_LIMIT", { - get: function () { - return checkConfig().PAGE_LIMIT; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "LANGUAGE", { - get: function () { - return checkConfig().LANGUAGE; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "VERSION", { - get: function () { - return checkConfig().VERSION; - }, - enumerable: false, - configurable: true - }); - return ClassGToolsConfig; -}()); -export { ClassGToolsConfig }; -export function initConfig(appConfig) { - config = appConfig; -} -export var GToolsConfig = new ClassGToolsConfig(); -//# sourceMappingURL=gtools-config.js.map \ No newline at end of file diff --git a/dist/_esm5/config/gtools-config.js.map b/dist/_esm5/config/gtools-config.js.map deleted file mode 100644 index e2f54707..00000000 --- a/dist/_esm5/config/gtools-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.js","sourceRoot":"","sources":["../../../src/config/gtools-config.ts"],"names":[],"mappings":"AAEA,IAAI,MAA6B,CAAC;AAElC,IAAM,WAAW,GAAG;IAChB,IAAI,CAAC,MAAM,EAAE;QACT,OAAO;YACH,OAAO,EAAK,EAAE;YACd,QAAQ,EAAI,EAAE;YACd,OAAO,EAAK,EAAE;YACd,UAAU,EAAE,CAAC;SAChB,CAAC;KACL;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAYF;IAAA;IAiBA,CAAC;IAhBG,sBAAW,sCAAO;aAAlB;YACI,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;QACjC,CAAC;;;OAAA;IAED,sBAAW,yCAAU;aAArB;YACI,OAAO,WAAW,EAAE,CAAC,UAAU,CAAC;QACpC,CAAC;;;OAAA;IAED,sBAAW,uCAAQ;aAAnB;YACI,OAAO,WAAW,EAAE,CAAC,QAAQ,CAAC;QAClC,CAAC;;;OAAA;IAED,sBAAW,sCAAO;aAAlB;YACI,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;QACjC,CAAC;;;OAAA;IAEL,wBAAC;AAAD,CAAC,AAjBD,IAiBC;;AAED,MAAM,UAAU,UAAU,CAAC,SAAgC;IACvD,MAAM,GAAG,SAAS,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,IAAI,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/constants.js b/dist/_esm5/constants.js deleted file mode 100644 index 75cc315e..00000000 --- a/dist/_esm5/constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export var ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS = true; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/_esm5/constants.js.map b/dist/_esm5/constants.js.map deleted file mode 100644 index f84e76ff..00000000 --- a/dist/_esm5/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,mCAAmC,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/deprecated.decorator.js b/dist/_esm5/decorators/deprecated.decorator.js deleted file mode 100644 index d9a979f5..00000000 --- a/dist/_esm5/decorators/deprecated.decorator.js +++ /dev/null @@ -1,14 +0,0 @@ -export function Deprecated(value) { - return function (target, propertyKey, descriptor) { - var oldMethod = target[propertyKey]; - descriptor.value = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - console.warn("Method " + target.constructor.name + "." + propertyKey + " is deprecated. " + (value || "")); - return oldMethod.apply(target, args); - }; - }; -} -//# sourceMappingURL=deprecated.decorator.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/deprecated.decorator.js.map b/dist/_esm5/decorators/deprecated.decorator.js.map deleted file mode 100644 index bb65dba8..00000000 --- a/dist/_esm5/decorators/deprecated.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deprecated.decorator.js","sourceRoot":"","sources":["../../../src/decorators/deprecated.decorator.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,KAAc;IACrC,OAAO,UAAC,MAAW,EAAE,WAAmB,EAAE,UAA8B;QACpE,IAAM,SAAS,GAAI,MAAM,CAAC,WAAW,CAAC,CAAC;QACvC,UAAU,CAAC,KAAK,GAAG;YAAC,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAC9B,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,WAAW,GAAG,kBAAkB,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;YAE3G,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC,CAAC;IACN,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/final-class.decorator.js b/dist/_esm5/decorators/final-class.decorator.js deleted file mode 100644 index 55ac3fa2..00000000 --- a/dist/_esm5/decorators/final-class.decorator.js +++ /dev/null @@ -1,21 +0,0 @@ -import { __extends } from "tslib"; -export function FinalClass(target) { - return (function (_super) { - __extends(Final, _super); - function Final() { - var _newTarget = this.constructor; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = this; - if (_newTarget !== Final) { - throw new Error("Cannot inherit from final class"); - } - _this = _super.apply(this, args) || this; - return _this; - } - return Final; - }(target)); -} -//# sourceMappingURL=final-class.decorator.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/final-class.decorator.js.map b/dist/_esm5/decorators/final-class.decorator.js.map deleted file mode 100644 index ea848d35..00000000 --- a/dist/_esm5/decorators/final-class.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"final-class.decorator.js","sourceRoot":"","sources":["../../../src/decorators/final-class.decorator.ts"],"names":[],"mappings":";AAAA,MAAM,UAAU,UAAU,CAA2D,MAAS;IAC1F;QAA2B,yBAAM;QAC7B;;YAAmB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAAjC,iBAKC;YAJG,IAAI,eAAe,KAAK,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,2BAAS,IAAI,UAAE;;QACnB,CAAC;QACL,YAAC;IAAD,CAAC,AAPM,CAAoB,MAAM,GAO/B;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/index.js b/dist/_esm5/decorators/index.js deleted file mode 100644 index 3597ddcf..00000000 --- a/dist/_esm5/decorators/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./deprecated.decorator"; -export * from "./final-class.decorator"; -export * from "./mapper.decorator"; -export * from "./singleton.decorator"; -export * from "./watch.decorator"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/index.js.map b/dist/_esm5/decorators/index.js.map deleted file mode 100644 index 294849b0..00000000 --- a/dist/_esm5/decorators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/mapper.decorator.js b/dist/_esm5/decorators/mapper.decorator.js deleted file mode 100644 index 40a51f9f..00000000 --- a/dist/_esm5/decorators/mapper.decorator.js +++ /dev/null @@ -1,30 +0,0 @@ -export function Mapper(params, prefix) { - if (params === void 0) { params = {}; } - if (prefix === void 0) { prefix = "_"; } - return function (target, key) { - if (!delete target[key]) { - return; - } - var descriptor = { - enumerable: true, - configurable: true, - }; - var newName = prefix + key; - if (params) { - if (typeof params.onGet === "function") { - descriptor.get = function () { return params.onGet && params.onGet(target[newName]); }; - } - else { - descriptor.get = function () { return target[newName]; }; - } - if (typeof params.onSet === "function") { - descriptor.set = function (newVal) { return target[newName] = params.onSet && params.onSet(newVal); }; - } - else { - descriptor.set = function (value) { return target[newName] = value; }; - } - } - Object.defineProperty(target, key, descriptor); - }; -} -//# sourceMappingURL=mapper.decorator.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/mapper.decorator.js.map b/dist/_esm5/decorators/mapper.decorator.js.map deleted file mode 100644 index 9f477172..00000000 --- a/dist/_esm5/decorators/mapper.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapper.decorator.js","sourceRoot":"","sources":["../../../src/decorators/mapper.decorator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,MAA+E,EAAE,MAAY;IAA7F,uBAAA,EAAA,WAA+E;IAAE,uBAAA,EAAA,YAAY;IAChH,OAAO,UAAC,MAAW,EAAE,GAAW;QAC5B,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,IAAM,UAAU,GAAuB;YACnC,UAAU,EAAI,IAAI;YAClB,YAAY,EAAE,IAAI;SACrB,CAAC;QACF,IAAM,OAAO,GAA0B,MAAM,GAAG,GAAG,CAAC;QACpD,IAAI,MAAM,EAAE;YACR,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,cAAM,OAAA,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAA7C,CAA6C,CAAC;aACxE;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,cAAM,OAAA,MAAM,CAAC,OAAO,CAAC,EAAf,CAAe,CAAC;aAC1C;YAED,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,UAAC,MAAW,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAtD,CAAsD,CAAC;aAC5F;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,UAAC,KAAK,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,EAAvB,CAAuB,CAAC;aACvD;SACJ;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/singleton.decorator.js b/dist/_esm5/decorators/singleton.decorator.js deleted file mode 100644 index 0e60ad17..00000000 --- a/dist/_esm5/decorators/singleton.decorator.js +++ /dev/null @@ -1,22 +0,0 @@ -import { __extends } from "tslib"; -var instances = {}; -export function Singleton(constructor) { - var className = constructor.name; - return (function (_super) { - __extends(class_1, _super); - function class_1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = _super.apply(this, args) || this; - if (instances[className]) { - throw new Error("Instance of " + className + " is already created"); - } - instances[className] = _this; - return _this; - } - return class_1; - }(constructor)); -} -//# sourceMappingURL=singleton.decorator.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/singleton.decorator.js.map b/dist/_esm5/decorators/singleton.decorator.js.map deleted file mode 100644 index a4e81fc9..00000000 --- a/dist/_esm5/decorators/singleton.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"singleton.decorator.js","sourceRoot":"","sources":["../../../src/decorators/singleton.decorator.ts"],"names":[],"mappings":";AAAA,IAAM,SAAS,GAAiC,EAAE,CAAC;AAEnD,MAAM,UAAU,SAAS,CAAuC,WAAc;IAC1E,IAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;IAEnC;QAAqB,2BAAW;QAC5B;YAAmB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAAjC,+BACa,IAAI,UAKhB;YAJG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,cAAc,GAAG,SAAS,GAAG,qBAAqB,CAAC,CAAC;aACvE;YACD,SAAS,CAAC,SAAS,CAAC,GAAG,KAAI,CAAC;;QAChC,CAAC;QACL,cAAC;IAAD,CAAC,AARM,CAAc,WAAW,GAQ9B;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/decorators/watch.decorator.js b/dist/_esm5/decorators/watch.decorator.js deleted file mode 100644 index 5390650e..00000000 --- a/dist/_esm5/decorators/watch.decorator.js +++ /dev/null @@ -1,21 +0,0 @@ -export function Watch(onSet, options) { - var prefix = options && options.prefix || "_"; - return function (target, key) { - var setter = function (newVal) { - if (onSet) { - target[prefix + key] = onSet(newVal, target[prefix + key]); - } - target[prefix + key] = newVal; - }; - if (!delete target[key]) { - return; - } - Object.defineProperty(target, key, { - get: function () { return target[prefix + key]; }, - set: setter, - enumerable: options && typeof options.enumerable === "boolean" ? options.enumerable : true, - configurable: options && typeof options.configurable === "boolean" ? options.configurable : true, - }); - }; -} -//# sourceMappingURL=watch.decorator.js.map \ No newline at end of file diff --git a/dist/_esm5/decorators/watch.decorator.js.map b/dist/_esm5/decorators/watch.decorator.js.map deleted file mode 100644 index bdb486c7..00000000 --- a/dist/_esm5/decorators/watch.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"watch.decorator.js","sourceRoot":"","sources":["../../../src/decorators/watch.decorator.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,KAAK,CAAC,KAA6C,EAAE,OAAsB;IACvF,IAAM,MAAM,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;IAEhD,OAAO,UAAC,MAAW,EAAE,GAAW;QAC5B,IAAM,MAAM,GAAG,UAAC,MAAW;YACvB,IAAI,KAAK,EAAE;gBACP,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;aAC9D;YACD,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC;QAClC,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/B,GAAG,EAAW,cAAM,OAAA,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAApB,CAAoB;YACxC,GAAG,EAAW,MAAM;YACpB,UAAU,EAAI,OAAO,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI;YAC5F,YAAY,EAAE,OAAO,IAAI,OAAO,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;SACnG,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-camera.js b/dist/_esm5/dom/canvas-camera.js deleted file mode 100644 index 068eae35..00000000 --- a/dist/_esm5/dom/canvas-camera.js +++ /dev/null @@ -1,95 +0,0 @@ -var defaultCameraViewport = { - left: 0, - right: 0, - top: 0, - bottom: 0, - width: 0, - height: 0, - scale: [1, 1], -}; -var CanvasCamera = (function () { - function CanvasCamera(context, settings) { - var _a; - this.context = context; - this.settings = settings; - this.distance = 1000; - this.lookAt = [0, 0]; - this.viewport = Object.assign({}, defaultCameraViewport); - this.fieldOfView = (_a = this.settings.fieldOfView) !== null && _a !== void 0 ? _a : Math.PI / 4; - this.aspectRatio = this.context.canvas.width / this.context.canvas.height; - this.addListeners(); - this.updateViewport(); - } - CanvasCamera.prototype.begin = function () { - this.context.save(); - this.applyScale(); - this.applyTranslation(); - }; - CanvasCamera.prototype.end = function () { - this.context.restore(); - }; - CanvasCamera.prototype.applyScale = function () { - this.context.scale(this.viewport.scale[0], this.viewport.scale[1]); - }; - CanvasCamera.prototype.applyTranslation = function () { - this.context.translate(-this.viewport.left, -this.viewport.top); - }; - CanvasCamera.prototype.updateViewport = function () { - this.viewport.width = this.distance * Math.tan(this.fieldOfView); - this.viewport.height = this.viewport.width / this.aspectRatio; - this.viewport.left = this.lookAt[0] - (this.viewport.width / 2); - this.viewport.top = this.lookAt[1] - (this.viewport.height / 2); - this.viewport.right = this.viewport.left + this.viewport.width; - this.viewport.bottom = this.viewport.top + this.viewport.height; - this.viewport.scale[0] = this.context.canvas.width / this.viewport.width; - this.viewport.scale[1] = this.context.canvas.height / this.viewport.height; - }; - CanvasCamera.prototype.zoomTo = function (zoom) { - this.distance = zoom; - this.updateViewport(); - }; - CanvasCamera.prototype.moveTo = function (x, y) { - this.lookAt[0] = x; - this.lookAt[1] = y; - this.updateViewport(); - }; - CanvasCamera.prototype.screenToWorld = function (x, y, obj) { - if (obj === void 0) { obj = { x: 0, y: 0 }; } - obj = obj || {}; - obj.x = (x / this.viewport.scale[0]) + this.viewport.left; - obj.y = (y / this.viewport.scale[1]) + this.viewport.top; - return obj; - }; - CanvasCamera.prototype.worldToScreen = function (x, y, obj) { - if (obj === void 0) { obj = { x: 0, y: 0 }; } - obj.x = (x - this.viewport.left) * (this.viewport.scale[0]); - obj.y = (y - this.viewport.top) * (this.viewport.scale[1]); - return obj; - }; - CanvasCamera.prototype.addListeners = function () { - var _this = this; - window.onwheel = function (e) { - if (e.ctrlKey) { - var zoomLevel = _this.distance - (e.deltaY * 20); - if (zoomLevel <= 1) { - zoomLevel = 1; - } - _this.zoomTo(zoomLevel); - } - else { - var x = _this.lookAt[0] + (e.deltaX * 2); - var y = _this.lookAt[1] + (e.deltaY * 2); - _this.moveTo(x, y); - } - }; - window.addEventListener("keydown", function (e) { - if (e.key === "r") { - _this.zoomTo(1000); - _this.moveTo(0, 0); - } - }); - }; - return CanvasCamera; -}()); -export { CanvasCamera }; -//# sourceMappingURL=canvas-camera.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-camera.js.map b/dist/_esm5/dom/canvas-camera.js.map deleted file mode 100644 index c6d4b0e9..00000000 --- a/dist/_esm5/dom/canvas-camera.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-camera.js","sourceRoot":"","sources":["../../../src/dom/canvas-camera.ts"],"names":[],"mappings":"AAiBA,IAAM,qBAAqB,GAAyB;IAChD,IAAI,EAAI,CAAC;IACT,KAAK,EAAG,CAAC;IACT,GAAG,EAAK,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAG,CAAC;IACT,MAAM,EAAE,CAAC;IACT,KAAK,EAAG,CAAC,CAAC,EAAE,CAAC,CAAC;CACjB,CAAC;AAEF;IAOI,sBAAoC,OAAiC,EAAmB,QAA8B;;QAAlF,YAAO,GAAP,OAAO,CAA0B;QAAmB,aAAQ,GAAR,QAAQ,CAAsB;QAN9G,aAAQ,GAAe,IAAI,CAAC;QACnB,WAAM,GAAQ,C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;iBACjB;gBAED,KAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1B;iBAAM;gBAEH,IAAM,CAAC,GAAG,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC1C,IAAM,CAAC,GAAG,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAE1C,KAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC;QAGF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,UAAC,CAAC;YACjC,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;gBACf,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAClB,KAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACL,mBAAC;AAAD,CAAC,AA/FD,IA+FC"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-drawer-advanced.js b/dist/_esm5/dom/canvas-drawer-advanced.js deleted file mode 100644 index 5491f662..00000000 --- a/dist/_esm5/dom/canvas-drawer-advanced.js +++ /dev/null @@ -1,60 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { CanvasDrawer } from "./canvas-drawer"; -import { CanvasManager } from "./canvas-manager"; -var CanvasDrawerAdvanced = (function () { - function CanvasDrawerAdvanced(context) { - this.context = context; - this.drawer = new CanvasDrawer(this.context); - } - CanvasDrawerAdvanced.prototype.renderRect = function (location, options) { - var _a; - this.prepareShadow(options.shadow); - this.prepareOpacity(options.opacity); - if (options.fill) { - this.prepareShadow(options.fill.shadow); - this.prepareOpacity(options.fill.opacity); - if (options.fill.fillImage) { - this.drawer.drawImage(options.fill.fillImage); - } - if (options.fill.fillColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.fill.fillColor); - } - } - if (options.stroke) { - this.prepareShadow(options.stroke.shadow); - this.prepareOpacity(options.stroke.opacity); - this.prepareDashed(options.stroke.lineDash); - if (options.stroke.joinType) { - this.context.lineJoin = options.stroke.joinType; - } - if (options.stroke.lineCap) { - this.context.lineCap = options.stroke.lineCap; - } - if (!isNaN((_a = options.stroke.width) !== null && _a !== void 0 ? _a : NaN)) { - this.context.lineWidth = options.stroke.width; - } - if (options.stroke.strokeColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.stroke.strokeColor); - } - } - }; - CanvasDrawerAdvanced.prototype.prepareShadow = function (shadow) { - var _a, _b, _c, _d; - if (shadow) { - CanvasManager.setShadow(this.context, (_a = shadow.x) !== null && _a !== void 0 ? _a : 0, (_b = shadow.y) !== null && _b !== void 0 ? _b : 0, (_c = shadow.color) !== null && _c !== void 0 ? _c : "black", (_d = shadow.blur) !== null && _d !== void 0 ? _d : 5); - } - }; - CanvasDrawerAdvanced.prototype.prepareDashed = function (dashes) { - if (Array.isArray(dashes)) { - CanvasManager.setLineDash.apply(CanvasManager, __spreadArrays([this.context], dashes)); - } - }; - CanvasDrawerAdvanced.prototype.prepareOpacity = function (opacity) { - if (!isNaN(opacity !== null && opacity !== void 0 ? opacity : NaN)) { - this.context.globalAlpha = opacity; - } - }; - return CanvasDrawerAdvanced; -}()); -export { CanvasDrawerAdvanced }; -//# sourceMappingURL=canvas-drawer-advanced.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-drawer-advanced.js.map b/dist/_esm5/dom/canvas-drawer-advanced.js.map deleted file mode 100644 index 23a61042..00000000 --- a/dist/_esm5/dom/canvas-drawer-advanced.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer-advanced.js","sourceRoot":"","sources":["../../../src/dom/canvas-drawer-advanced.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa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,OAAO,CAAC,WAAW,GAAG,OAAiB,CAAC;SAChD;IACL,CAAC;IACL,2BAAC;AAAD,CAAC,AAhED,IAgEC"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-drawer.js b/dist/_esm5/dom/canvas-drawer.js deleted file mode 100644 index 95d85b88..00000000 --- a/dist/_esm5/dom/canvas-drawer.js +++ /dev/null @@ -1,190 +0,0 @@ -import { makeRoundedRect } from "./canvas-misc-utilts"; -var PI2 = Math.PI * 2; -var CanvasDrawer = (function () { - function CanvasDrawer(context) { - this.context = context; - } - CanvasDrawer.prototype.fillRoundedRect = function (x, y, w, h, round, color) { - if (color) { - this.context.fillStyle = color; - } - makeRoundedRect(this.context, x, y, w, h, round); - this.context.fill(); - }; - CanvasDrawer.prototype.strokeRoundedRect = function (x, y, w, h, round, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - makeRoundedRect(this.context, x, y, w, h, round); - this.context.stroke(); - }; - CanvasDrawer.prototype.fillRect = function (x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - this.context.strokeRect(x, y, w, h); - }; - CanvasDrawer.prototype.strokeRect = function (x, y, w, h, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.strokeRect(x, y, w, h); - }; - CanvasDrawer.prototype.fillArc = function (x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - var halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - }; - CanvasDrawer.prototype.strokeArc = function (x, y, w, h, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - var halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - }; - CanvasDrawer.prototype.fillPath = function (points, color, close) { - if (close === void 0) { close = false; } - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - this.context.moveTo(points[0].x, points[0].y); - for (var i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.fill(); - }; - CanvasDrawer.prototype.drawPath = function (points, color, width, close) { - if (width === void 0) { width = NaN; } - if (close === void 0) { close = false; } - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(points[0].x, points[0].y); - for (var i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.stroke(); - }; - CanvasDrawer.prototype.drawImage = function (image, x, y, w, h) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = x; } - if (w === void 0) { w = NaN; } - if (h === void 0) { h = w; } - if (isNaN(w) || isNaN(h)) { - this.context.drawImage(image, x, y); - return; - } - this.context.drawImage(image, x, y, w, h); - }; - CanvasDrawer.prototype.drawLine = function (x1, y1, x2, y2, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(x1, y1); - this.context.lineTo(x2, y2); - this.context.stroke(); - }; - CanvasDrawer.prototype.drawText = function (text, x, y, w, h, textOptions) { - this.context.fillStyle = textOptions.fontColor; - this.context.font = textOptions.fontSize + "px " + textOptions.font; - var realX = x; - var realY = y; - if (textOptions.verticalAlign === "top") { - this.context.textBaseline = "top"; - } - else if (textOptions.verticalAlign === "center") { - this.context.textBaseline = "middle"; - realY += h / 2; - } - else if (textOptions.verticalAlign === "bottom") { - this.context.textBaseline = "bottom"; - realY += h; - } - if (textOptions.horizontalAlign === "left") { - this.context.textAlign = "left"; - } - else if (textOptions.horizontalAlign === "center") { - this.context.textAlign = "center"; - realX += w / 2; - } - else if (textOptions.horizontalAlign === "right") { - this.context.textAlign = "right"; - realX += w; - } - this.context.fillText(text, realX, realY, w); - }; - CanvasDrawer.prototype.clear = function (resetTransform) { - if (resetTransform === void 0) { resetTransform = true; } - if (resetTransform) { - this.context.save(); - this.context.resetTransform(); - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - this.context.restore(); - return; - } - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - }; - CanvasDrawer.prototype.startDrawingLine = function (x, y) { - this.context.moveTo(x, y); - }; - CanvasDrawer.prototype.addPointToLine = function (x, y, stroke) { - if (stroke === void 0) { stroke = true; } - this.context.lineTo(x, y); - if (stroke) { - this.context.stroke(); - } - }; - return CanvasDrawer; -}()); -export { CanvasDrawer }; -//# sourceMappingURL=canvas-drawer.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-drawer.js.map b/dist/_esm5/dom/canvas-drawer.js.map deleted file mode 100644 index a44455b2..00000000 --- a/dist/_esm5/dom/canvas-drawer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer.js","sourceRoot":"","sources":["../../../src/dom/canvas-drawer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,IAAM,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAExB;IACI,sBAAoC,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IACrE,CAAC;IAEM,sCAAe,GAAtB,UAAuB,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAgB,EAAE,KAAc;QAC/F,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,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C;IAEM,uCAAgB,GAAvB,UAAwB,CAAS,EAAE,CAAS;QACxC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;IAEM,qCAAc,GAArB,UAAsB,CAAS,EAAE,CAAS,EAAE,MAAa;QAAb,uBAAA,EAAA,aAAa;QACrD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAE1B,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SACzB;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAlOD,IAkOC"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-manager.js b/dist/_esm5/dom/canvas-manager.js deleted file mode 100644 index f217958a..00000000 --- a/dist/_esm5/dom/canvas-manager.js +++ /dev/null @@ -1,139 +0,0 @@ -import { __extends } from "tslib"; -import { NotBrowserException } from "../errors"; -var AbstractCanvasManager = (function () { - function AbstractCanvasManager(arg1, arg2, arg3) { - if (arg1 instanceof HTMLCanvasElement) { - this.localCanvas = arg1; - if (arg2 && arg3) { - this.setCanvasSize(arg2, arg3); - } - } - else if (arg1 instanceof HTMLImageElement) { - this.localCanvas = CanvasManager.imageToCanvas(arg1); - } - else { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - this.localCanvas = document.createElement("canvas"); - if (arg1 && arg2) { - this.setCanvasSize(arg1, arg2); - } - } - this.localContext = this.localCanvas.getContext("2d"); - } - Object.defineProperty(AbstractCanvasManager.prototype, "canvas", { - get: function () { - return this.localCanvas; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(AbstractCanvasManager.prototype, "context", { - get: function () { - return this.localContext; - }, - enumerable: false, - configurable: true - }); - AbstractCanvasManager.prototype.setTransform = function (transform) { - this.setTransformRaw(transform.offset.x, transform.offset.y, transform.scale); - }; - AbstractCanvasManager.prototype.setTransformRaw = function (translationX, translationY, scaleX, scaleY) { - if (scaleY === void 0) { scaleY = scaleX; } - if (this.localContext) { - CanvasManager.setTransformRaw(this.localContext, translationX, translationY, scaleX, scaleY); - } - }; - AbstractCanvasManager.prototype.getImage = function () { - return CanvasManager.canvasToImage(this.localCanvas); - }; - AbstractCanvasManager.prototype.setShadow = function (x, y, color, blur) { - if (this.localContext) { - CanvasManager.setShadow(this.localContext, x, y, color, blur); - } - }; - AbstractCanvasManager.prototype.show = function (format) { - if (format === void 0) { format = "image/png"; } - window.open(this.localCanvas.toDataURL(format), "_blank"); - }; - AbstractCanvasManager.prototype.clearCanvas = function () { - if (this.localContext) { - CanvasManager.clearCanvas(this.localContext); - } - }; - AbstractCanvasManager.prototype.setCanvasSize = function (width, height) { - if (width === void 0) { width = window.innerWidth; } - if (height === void 0) { height = window.innerHeight; } - CanvasManager.setCanvasSize(this.localCanvas, width, height); - }; - AbstractCanvasManager.prototype.appendTo = function (element) { - element.appendChild(this.localCanvas); - return element; - }; - return AbstractCanvasManager; -}()); -var CanvasManager = (function (_super) { - __extends(CanvasManager, _super); - function CanvasManager() { - return _super !== null && _super.apply(this, arguments) || this; - } - CanvasManager.clearCanvas = function (ctx) { - ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); - }; - CanvasManager.setCanvasSize = function (canvas, width, height) { - if (width === void 0) { width = window.innerWidth; } - if (height === void 0) { height = window.innerHeight; } - canvas.width = width; - canvas.height = height; - }; - CanvasManager.setShadow = function (ctx, x, y, color, blur) { - ctx.shadowColor = color; - ctx.shadowBlur = blur; - ctx.shadowOffsetX = x; - ctx.shadowOffsetY = y; - }; - CanvasManager.imageToCanvas = function (image) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - var canvas = document.createElement("canvas"); - canvas.width = image.width; - canvas.height = image.height; - var ctx = canvas.getContext("2d"); - if (ctx) { - ctx.drawImage(image, 0, 0); - } - return canvas; - }; - CanvasManager.setLineDash = function (ctx) { - var args = []; - for (var _i = 1; _i < arguments.length; _i++) { - args[_i - 1] = arguments[_i]; - } - if (typeof ctx.setLineDash === "function") { - ctx.setLineDash(args); - } - }; - CanvasManager.calcTextWidth = function (ctx, value, font) { - if (font) { - ctx.font = font; - } - return ctx.measureText(value).width; - }; - CanvasManager.setTransformRaw = function (ctx, translationX, translationY, scaleX, scaleY) { - if (scaleY === void 0) { scaleY = scaleX; } - ctx.setTransform(scaleX, 0, 0, scaleY, translationX, translationY); - }; - CanvasManager.canvasToImage = function (canvas, format) { - if (format === void 0) { format = "image/png"; } - var image = new Image(); - image.src = canvas.toDataURL(format); - image.width = canvas.width; - image.height = canvas.height; - return image; - }; - return CanvasManager; -}(AbstractCanvasManager)); -export { CanvasManager }; -//# sourceMappingURL=canvas-manager.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-manager.js.map b/dist/_esm5/dom/canvas-manager.js.map deleted file mode 100644 index d3c49583..00000000 --- a/dist/_esm5/dom/canvas-manager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-manager.js","sourceRoot":"","sources":["../../../src/dom/canvas-manager.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGhD;IAII,+BAAmB,IAA0C,EAAE,IAAY,EAAE,IAAY;QACrF,IAAI,IAAI,YAAY,iBAAiB,EAAE;YACnC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,IAAI,IAAI,IAAI,EAAE;gBACd,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aAClC;SACJ;aAAM,IAAI,IAAI,YAAY,gBAAgB,EAAE;YACzC,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SACxD;aAAM;YACH,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;gBACjC,MAAM,IAAI,mBAAmB,EAAE,CAAC;aACnC;YACD,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CA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AE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACvE,CAAC;IAEa,2BAAa,GAA3B,UAA4B,MAAyB,EAAE,MAAoB;QAApB,uBAAA,EAAA,oBAAoB;QACvE,IAAM,KAAK,GAAI,IAAI,KAAK,EAAE,CAAC;QAC3B,KAAK,CAAC,GAAG,GAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACxC,KAAK,CAAC,KAAK,GAAI,MAAM,CAAC,KAAK,CAAC;QAC5B,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAE7B,OAAO,KAAK,CAAC;IACjB,CAAC;IACL,oBAAC;AAAD,CAAC,AAhED,CAAmC,qBAAqB,GAgEvD"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-misc-utilts.js b/dist/_esm5/dom/canvas-misc-utilts.js deleted file mode 100644 index 547fec9b..00000000 --- a/dist/_esm5/dom/canvas-misc-utilts.js +++ /dev/null @@ -1,18 +0,0 @@ -export function makeRoundedRect(context, x, y, w, h, radius) { - var tr = typeof radius === "number" ? radius : (typeof radius.tr === "number" ? radius.tr : 0); - var tl = typeof radius === "number" ? radius : (typeof radius.tl === "number" ? radius.tl : 0); - var br = typeof radius === "number" ? radius : (typeof radius.br === "number" ? radius.br : 0); - var bl = typeof radius === "number" ? radius : (typeof radius.bl === "number" ? radius.bl : 0); - context.beginPath(); - context.moveTo(x + tl, y); - context.lineTo(x + w - tr, y); - context.quadraticCurveTo(x + w, y, x + w, y + tr); - context.lineTo(x + w, y + h - br); - context.quadraticCurveTo(x + w, y + h, x + w - br, y + h); - context.lineTo(x + bl, y + h); - context.quadraticCurveTo(x, y + h, x, y + h - bl); - context.lineTo(x, y + tl); - context.quadraticCurveTo(x, y, x + tl, y); - context.closePath(); -} -//# sourceMappingURL=canvas-misc-utilts.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-misc-utilts.js.map b/dist/_esm5/dom/canvas-misc-utilts.js.map deleted file mode 100644 index e7d30b3a..00000000 --- a/dist/_esm5/dom/canvas-misc-utilts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-misc-utilts.js","sourceRoot":"","sources":["../../../src/dom/canvas-misc-utilts.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAC3B,OAAiC,EACjC,CAAS,EACT,CAAS,EACT,CAAS,EACT,CAAS,EACT,MAAiB;IACjB,IAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,IAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,IAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,IAAM,EAAE,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjG,OAAO,CAAC,SAAS,EAAE,CAAC;IACpB,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EACjB,CAAC,CAAC,CAAC;IACP,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,EACrB,CAAC,CAAC,CAAC;IACP,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,EAC1B,CAAC,EACD,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAChB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,EAC1B,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,GAAG,EAAE,EACV,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EACjB,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,gBAAgB,CAAC,CAAC,EACtB,CAAC,GAAG,CAAC,EACL,CAAC,EACD,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,MAAM,CAAC,CAAC,EACZ,CAAC,GAAG,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,gBAAgB,CAAC,CAAC,EACtB,CAAC,EACD,CAAC,GAAG,EAAE,EACN,CAAC,CAAC,CAAC;IACP,OAAO,CAAC,SAAS,EAAE,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-utils.js b/dist/_esm5/dom/canvas-utils.js deleted file mode 100644 index c228b728..00000000 --- a/dist/_esm5/dom/canvas-utils.js +++ /dev/null @@ -1,161 +0,0 @@ -import { CanvasManager } from "./canvas-manager"; -function setShadow(context, config) { - if (config) { - CanvasManager.setShadow(context, config.x, config.y, config.color, config.blur); - } - else { - CanvasManager.setShadow(context, 0, 0, "black", 0); - } -} -function process(res) { - if (res.shadow) { - setShadow(res.ctx, res.shadow); - } - if (res.bgImage) { - res.ctx.save(); - res.ctx.clip(); - if (res.bgImage instanceof HTMLImageElement) { - res.ctx.drawImage(res.bgImage, res.x, res.y, res.width, res.height); - } - else { - res.ctx.drawImage(res.bgImage.img, res.bgImage.x, res.bgImage.y, res.bgImage.w, res.bgImage.h, res.x, res.y, res.width, res.height); - } - res.ctx.restore(); - } - else if (res.fill) { - res.ctx.fillStyle = res.fillColor; - res.ctx.fill(); - } - if (res.shadow) { - setShadow(res.ctx); - } - res.ctx.lineCap = res.lineCap; - res.ctx.lineJoin = res.joinType; - if (typeof res.ctx.setLineDash === "function") { - res.ctx.setLineDash(res.lineDash); - } - if (!res.draw) { - return; - } - res.ctx.lineWidth = res.borderWidth; - res.ctx.strokeStyle = res.borderColor; - res.ctx.stroke(); -} -function initDef(obj) { - return { - borderColor: "black", - borderWidth: 1, - center: false, - ctx: obj.ctx, - draw: typeof obj.borderColor !== "undefined" || typeof obj.borderWidth !== "undefined", - endAngle: Math.PI * 2, - fill: typeof obj.fillColor !== "undefined", - fillColor: "white", - height: 0, - joinType: "bevel", - lineCap: "round", - lineDash: [], - offset: null, - radius: { - tl: 0, - tr: 0, - br: 0, - bl: 0, - }, - startAngle: 0, - width: 0, - x: 0, - y: 0, - }; -} -function remakePosAndSize(def, obj) { - var res = $.extend(def, obj); - var checkAttribute = function (attrName, partA, partB) { - if (typeof res[attrName] === "undefined") { - return; - } - var value = res[attrName]; - if (!isNaN(value)) { - res[partA] = value; - res[partB] = value; - } - else if (Array.isArray(value)) { - res[partA] = value[0]; - res[partB] = value[1]; - } - else { - res[partA] = value; - res[partB] = value; - } - }; - checkAttribute("size", "width", "size"); - checkAttribute("position", "x", "y"); - if (res.center) { - res.x -= res.width >> 1; - res.y -= res.height >> 1; - } - return res; -} -function checkPosAndSize(obj, name) { - if ((typeof obj.x === "undefined" || typeof obj.y === "undefined") && typeof obj.position === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_POSITION: " + name); - } - if ((typeof obj.width === "undefined" || typeof obj.height === "undefined") && typeof obj.size === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_SIZE: " + name); - } - if (obj.width <= 0 || obj.height <= 0) { - console.error("MSG_TRY_DRAW_WITH_NEG_POSITION: " + name); - } - return initDef(obj); -} -var CanvasUtils = (function () { - function CanvasUtils() { - } - CanvasUtils.doArc = function (obj) { - var res = remakePosAndSize(checkPosAndSize(obj, "Arc"), obj); - res.ctx.beginPath(); - if (typeof res.ctx.ellipse === "function") { - res.ctx.ellipse(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1, 0, res.startAngle, res.endAngle); - } - else { - res.ctx.rect(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1); - } - process(res); - }; - CanvasUtils.doRect = function (obj) { - var def = checkPosAndSize(obj, "Rect"); - if (typeof obj.radius !== "undefined") { - if (!isNaN(obj.radius)) { - obj.radius = { - bl: obj.radius, - br: obj.radius, - tl: obj.radius, - tr: obj.radius, - }; - } - else { - for (var key in def.radius) { - if (def.radius.hasOwnProperty(key)) { - obj.radius[key] = obj.radius[key] || def.radius[key]; - } - } - } - } - var res = remakePosAndSize(def, obj); - res.ctx.beginPath(); - res.ctx.moveTo(res.x + res.radius.tl, res.y); - res.ctx.lineTo(res.x + res.width - res.radius.tr, res.y); - res.ctx.quadraticCurveTo(res.x + res.width, res.y, res.x + res.width, res.y + res.radius.tr); - res.ctx.lineTo(res.x + res.width, res.y + res.height - res.radius.br); - res.ctx.quadraticCurveTo(res.x + res.width, res.y + res.height, res.x + res.width - res.radius.br, res.y + res.height); - res.ctx.lineTo(res.x + res.radius.bl, res.y + res.height); - res.ctx.quadraticCurveTo(res.x, res.y + res.height, res.x, res.y + res.height - res.radius.bl); - res.ctx.lineTo(res.x, res.y + res.radius.tl); - res.ctx.quadraticCurveTo(res.x, res.y, res.x + res.radius.tl, res.y); - res.ctx.closePath(); - process(res); - }; - return CanvasUtils; -}()); -export { CanvasUtils }; -//# sourceMappingURL=canvas-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/canvas-utils.js.map b/dist/_esm5/dom/canvas-utils.js.map deleted file mode 100644 index 484ca564..00000000 --- a/dist/_esm5/dom/canvas-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-utils.js","sourceRoot":"","sources":["../../../src/dom/canvas-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAyCjD,SAAS,SAAS,CAAC,OAAiC,EAAE,MAA2B;IAC7E,IAAI,MAAM,EAAE;QACR,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;KACnF;SAAM;QACH,aAAa,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;KACtD;AACL,CAAC;AAED,SAAS,OAAO,CAAC,GAAiB;IAC9B,IAAI,GAAG,CAAC,MAAM,EAAE;QACZ,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;KAClC;IACD,IAAI,GAAG,CAAC,OAAO,EAAE;QACb,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACf,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QACf,IAAI,GAAG,CAAC,OAAO,YAAY,gBAAgB,EAAE;YACzC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;SACvE;aAAM;YACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAC7B,GAAG,CAAC,OAAO,CAAC,CAAC,EACb,GAAG,CAAC,OAAO,CAAC,CAAC,EACb,GAAG,CAAC,OAAO,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,CAAC,MAAc,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QAChI,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;QACnE,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,CAAC,CAAC;QACxG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,CAAC,CAAC;QACtD,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9E,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QAEpB,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IACL,kBAAC;AAAD,CAAC,AA3DD,IA2DC"} \ No newline at end of file diff --git a/dist/_esm5/dom/dom-get.js b/dist/_esm5/dom/dom-get.js deleted file mode 100644 index 6cb305be..00000000 --- a/dist/_esm5/dom/dom-get.js +++ /dev/null @@ -1,31 +0,0 @@ -var localContext = typeof document !== "undefined" ? document : null; -var DomGet = (function () { - function DomGet() { - } - DomGet.setContext = function (context) { - localContext = context; - }; - DomGet.byClass = function (className, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByClassName(className); - }; - DomGet.byLink = function (link, context) { - if (context === void 0) { context = localContext; } - return context.querySelectorAll("a[attr=\"" + link + "\"]"); - }; - DomGet.byId = function (id, context) { - if (context === void 0) { context = localContext; } - return context.getElementById(id); - }; - DomGet.byName = function (name, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByName(name); - }; - DomGet.byTag = function (tagName, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByTagName(tagName); - }; - return DomGet; -}()); -export { DomGet }; -//# sourceMappingURL=dom-get.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/dom-get.js.map b/dist/_esm5/dom/dom-get.js.map deleted file mode 100644 index c598377d..00000000 --- a/dist/_esm5/dom/dom-get.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom-get.js","sourceRoot":"","sources":["../../../src/dom/dom-get.ts"],"names":[],"mappings":"AAEA,IAAI,YAAY,GAAoB,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AAEtF;IAAA;IA0DA,CAAC;IArDiB,iBAAU,GAAxB,UAAyB,OAAiB;QACtC,YAAY,GAAG,OAAO,CAAC;IAC3B,CAAC;IAQa,cAAO,GAArB,UAAsB,SAAiB,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QACjF,OAAO,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAQa,aAAM,GAApB,UAAqB,IAAY,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,gBAAgB,CAAC,cAAW,IAAI,QAAI,CAAC,CAAC;IACzD,CAAC;IAQa,WAAI,GAAlB,UAAmB,EAAU,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAQa,aAAM,GAApB,UAAqB,IAAY,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAQa,YAAK,GAAnB,UAAoB,OAAe,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC7E,OAAO,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAQ,CAAC;IACxD,CAAC;IACL,aAAC;AAAD,CAAC,AA1DD,IA0DC"} \ No newline at end of file diff --git a/dist/_esm5/dom/drawer.js b/dist/_esm5/dom/drawer.js deleted file mode 100644 index 28c01a9c..00000000 --- a/dist/_esm5/dom/drawer.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=drawer.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/drawer.js.map b/dist/_esm5/dom/drawer.js.map deleted file mode 100644 index 224b5528..00000000 --- a/dist/_esm5/dom/drawer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../src/dom/drawer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/dom/element-builder.js b/dist/_esm5/dom/element-builder.js deleted file mode 100644 index d559c20e..00000000 --- a/dist/_esm5/dom/element-builder.js +++ /dev/null @@ -1,89 +0,0 @@ -var localContext = document; -var ElementBuilder = (function () { - function ElementBuilder(elementName, parent) { - this.elementName = elementName; - this.parent = parent; - this.styles = {}; - this.attributes = {}; - this.contentBuffer = []; - } - ElementBuilder.setContext = function (context) { - localContext = context; - }; - ElementBuilder.start = function (elementName) { - return new ElementBuilder(elementName); - }; - ElementBuilder.prototype.child = function (elementName) { - return new ElementBuilder(elementName, this); - }; - ElementBuilder.prototype.reset = function () { - this.styles = {}; - this.attributes = {}; - delete this.result; - return this.clearContent(); - }; - ElementBuilder.prototype.style = function (key, value) { - this.styles.key = value; - return this; - }; - ElementBuilder.prototype.attribute = function (key, value) { - this.attributes.key = value; - return this; - }; - ElementBuilder.prototype.content = function (newContent) { - return this.clearContent().addContent(newContent); - }; - ElementBuilder.prototype.addContent = function (newContent) { - this.contentBuffer.push(newContent); - return this; - }; - ElementBuilder.prototype.clearContent = function () { - this.contentBuffer.splice(0, this.contentBuffer.length); - return this; - }; - ElementBuilder.prototype.finish = function () { - if (!this.parent) { - throw new Error("Parent must be set"); - } - return this.parent.addContent(this.build()); - }; - ElementBuilder.prototype.build = function () { - var _this = this; - this.result = localContext.createElement(this.elementName); - this.contentBuffer.forEach(function (content) { - if (typeof content === "string") { - _this.result.innerHTML += content; - } - else { - _this.result.appendChild(content); - } - }); - return this.result; - }; - ElementBuilder.prototype.id = function (id) { - return this.attribute("id", id); - }; - ElementBuilder.prototype.clazz = function (clazz) { - return this.attribute("class", clazz); - }; - ElementBuilder.prototype.buildAndAppendTo = function (parent) { - parent.appendChild(this.build()); - return this; - }; - ElementBuilder.prototype.get = function () { - return this.result; - }; - return ElementBuilder; -}()); -export { ElementBuilder }; -ElementBuilder.start("div").attribute("class", "main-class").attribute("id", "main-id").build(); -ElementBuilder.start("div").clazz("main-class").id("main-id").build(); -ElementBuilder.start("table") - .id("main-table") - .child("tr").clazz("table-row") - .child("td").clazz("table-column") - .content("hello world") - .finish() - .finish() - .buildAndAppendTo(document.body); -//# sourceMappingURL=element-builder.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/element-builder.js.map b/dist/_esm5/dom/element-builder.js.map deleted file mode 100644 index f2f057d3..00000000 --- a/dist/_esm5/dom/element-builder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element-builder.js","sourceRoot":"","sources":["../../../src/dom/element-builder.ts"],"names":[],"mappings":"AAIA,IAAI,YAAY,GAAa,QAAQ,CAAC;AAEtC;IAMI,wBAAqC,WAAmB,EAAmB,MAAuB;QAA7D,gBAAW,GAAX,WAAW,CAAQ;QAAmB,WAAM,GAAN,MAAM,CAAiB;QAJ1F,WAAM,GAA6C,EAAE,CAAC;QACtD,eAAU,GAAyC,EAAE,CAAC;QAC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AAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;AAEtE,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC;KACxB,EAAE,CAAC,YAAY,CAAC;KAChB,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;KAC9B,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;KACjC,OAAO,CAAC,aAAa,CAAC;KACtB,MAAM,EAAE;KACR,MAAM,EAAE;KACR,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/dom/types/canvas-shadow-config.js b/dist/_esm5/dom/types/canvas-shadow-config.js deleted file mode 100644 index 54d73b0a..00000000 --- a/dist/_esm5/dom/types/canvas-shadow-config.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=canvas-shadow-config.js.map \ No newline at end of file diff --git a/dist/_esm5/dom/types/canvas-shadow-config.js.map b/dist/_esm5/dom/types/canvas-shadow-config.js.map deleted file mode 100644 index bbe37ac1..00000000 --- a/dist/_esm5/dom/types/canvas-shadow-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-shadow-config.js","sourceRoot":"","sources":["../../../../src/dom/types/canvas-shadow-config.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/enums/button.enum.js b/dist/_esm5/enums/button.enum.js deleted file mode 100644 index 385c2626..00000000 --- a/dist/_esm5/enums/button.enum.js +++ /dev/null @@ -1,9 +0,0 @@ -export var Button; -(function (Button) { - Button[Button["LEFT"] = 0] = "LEFT"; - Button[Button["MIDDLE"] = 1] = "MIDDLE"; - Button[Button["RIGHT"] = 2] = "RIGHT"; - Button[Button["BACK"] = 3] = "BACK"; - Button[Button["FORWARD"] = 4] = "FORWARD"; -})(Button || (Button = {})); -//# sourceMappingURL=button.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/button.enum.js.map b/dist/_esm5/enums/button.enum.js.map deleted file mode 100644 index dc7317c0..00000000 --- a/dist/_esm5/enums/button.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"button.enum.js","sourceRoot":"","sources":["../../../src/enums/button.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAMX;AAND,WAAY,MAAM;IACd,mCAAW,CAAA;IACX,uCAAW,CAAA;IACX,qCAAW,CAAA;IACX,mCAAW,CAAA;IACX,yCAAW,CAAA;AACf,CAAC,EANW,MAAM,KAAN,MAAM,QAMjB"} \ No newline at end of file diff --git a/dist/_esm5/enums/days.enum.js b/dist/_esm5/enums/days.enum.js deleted file mode 100644 index b84295d7..00000000 --- a/dist/_esm5/enums/days.enum.js +++ /dev/null @@ -1,11 +0,0 @@ -export var Days; -(function (Days) { - Days["MON"] = "MON"; - Days["TUE"] = "TUE"; - Days["WED"] = "WED"; - Days["THU"] = "THU"; - Days["FRI"] = "FRI"; - Days["SAT"] = "SAT"; - Days["SUN"] = "SUN"; -})(Days || (Days = {})); -//# sourceMappingURL=days.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/days.enum.js.map b/dist/_esm5/enums/days.enum.js.map deleted file mode 100644 index 195912e9..00000000 --- a/dist/_esm5/enums/days.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"days.enum.js","sourceRoot":"","sources":["../../../src/enums/days.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAQX;AARD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;AACf,CAAC,EARW,IAAI,KAAJ,IAAI,QAQf"} \ No newline at end of file diff --git a/dist/_esm5/enums/encodings.enum.js b/dist/_esm5/enums/encodings.enum.js deleted file mode 100644 index a8a5571e..00000000 --- a/dist/_esm5/enums/encodings.enum.js +++ /dev/null @@ -1,9 +0,0 @@ -export var Encodings; -(function (Encodings) { - Encodings["UTF8"] = "utf8"; - Encodings["UTF16"] = "utf16"; - Encodings["UNICODE"] = "unicode"; - Encodings["ASCII"] = "ascii"; - Encodings["UCS2"] = "ucs2"; -})(Encodings || (Encodings = {})); -//# sourceMappingURL=encodings.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/encodings.enum.js.map b/dist/_esm5/enums/encodings.enum.js.map deleted file mode 100644 index 2bef6f74..00000000 --- a/dist/_esm5/enums/encodings.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodings.enum.js","sourceRoot":"","sources":["../../../src/enums/encodings.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IAQjB,0BAAgB,CAAA;IAChB,4BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAiB,CAAA;IACjB,0BAAgB,CAAA;AACpB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB"} \ No newline at end of file diff --git a/dist/_esm5/enums/file-types.enum.js b/dist/_esm5/enums/file-types.enum.js deleted file mode 100644 index dc27282c..00000000 --- a/dist/_esm5/enums/file-types.enum.js +++ /dev/null @@ -1,15 +0,0 @@ -export var FileTypes; -(function (FileTypes) { - FileTypes["CSS"] = "text/css"; - FileTypes["HTML"] = "text/html"; - FileTypes["JS"] = "application/javascript"; - FileTypes["MP3"] = "audio/mpeg"; - FileTypes["MP4"] = "video/mp4"; - FileTypes["OGG"] = "application/ogg"; - FileTypes["OGV"] = "video/ogg"; - FileTypes["OGA"] = "audio/ogg"; - FileTypes["TXT"] = "text/plain"; - FileTypes["WAV"] = "audio/x-wav"; - FileTypes["WEBM"] = "video/webm"; -})(FileTypes || (FileTypes = {})); -//# sourceMappingURL=file-types.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/file-types.enum.js.map b/dist/_esm5/enums/file-types.enum.js.map deleted file mode 100644 index bb175d1e..00000000 --- a/dist/_esm5/enums/file-types.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-types.enum.js","sourceRoot":"","sources":["../../../src/enums/file-types.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAYX;AAZD,WAAY,SAAS;IACjB,6BAAiB,CAAA;IACjB,+BAAkB,CAAA;IAClB,0CAA+B,CAAA;IAC/B,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,oCAAwB,CAAA;IACxB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,+BAAmB,CAAA;IACnB,gCAAoB,CAAA;IACpB,gCAAmB,CAAA;AACvB,CAAC,EAZW,SAAS,KAAT,SAAS,QAYpB"} \ No newline at end of file diff --git a/dist/_esm5/enums/http-status-codes.enum.js b/dist/_esm5/enums/http-status-codes.enum.js deleted file mode 100644 index 69eb3033..00000000 --- a/dist/_esm5/enums/http-status-codes.enum.js +++ /dev/null @@ -1,46 +0,0 @@ -export var HttpStatusCodes; -(function (HttpStatusCodes) { - HttpStatusCodes[HttpStatusCodes["CONTINUE"] = 100] = "CONTINUE"; - HttpStatusCodes[HttpStatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS"; - HttpStatusCodes[HttpStatusCodes["OK"] = 200] = "OK"; - HttpStatusCodes[HttpStatusCodes["CREATED"] = 201] = "CREATED"; - HttpStatusCodes[HttpStatusCodes["ACCEPTED"] = 202] = "ACCEPTED"; - HttpStatusCodes[HttpStatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION"; - HttpStatusCodes[HttpStatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT"; - HttpStatusCodes[HttpStatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT"; - HttpStatusCodes[HttpStatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT"; - HttpStatusCodes[HttpStatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES"; - HttpStatusCodes[HttpStatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY"; - HttpStatusCodes[HttpStatusCodes["FOUND"] = 302] = "FOUND"; - HttpStatusCodes[HttpStatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER"; - HttpStatusCodes[HttpStatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED"; - HttpStatusCodes[HttpStatusCodes["USE_PROXY"] = 305] = "USE_PROXY"; - HttpStatusCodes[HttpStatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT"; - HttpStatusCodes[HttpStatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST"; - HttpStatusCodes[HttpStatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED"; - HttpStatusCodes[HttpStatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN"; - HttpStatusCodes[HttpStatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND"; - HttpStatusCodes[HttpStatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED"; - HttpStatusCodes[HttpStatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE"; - HttpStatusCodes[HttpStatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["CONFLICT"] = 409] = "CONFLICT"; - HttpStatusCodes[HttpStatusCodes["GONE"] = 410] = "GONE"; - HttpStatusCodes[HttpStatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_ENTITY_TOO_LARGE"] = 413] = "REQUEST_ENTITY_TOO_LARGE"; - HttpStatusCodes[HttpStatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG"; - HttpStatusCodes[HttpStatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE"; - HttpStatusCodes[HttpStatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE"; - HttpStatusCodes[HttpStatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED"; - HttpStatusCodes[HttpStatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY"; - HttpStatusCodes[HttpStatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS"; - HttpStatusCodes[HttpStatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR"; - HttpStatusCodes[HttpStatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED"; - HttpStatusCodes[HttpStatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY"; - HttpStatusCodes[HttpStatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE"; - HttpStatusCodes[HttpStatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED"; -})(HttpStatusCodes || (HttpStatusCodes = {})); -//# sourceMappingURL=http-status-codes.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/http-status-codes.enum.js.map b/dist/_esm5/enums/http-status-codes.enum.js.map deleted file mode 100644 index 2832691a..00000000 --- a/dist/_esm5/enums/http-status-codes.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-status-codes.enum.js","sourceRoot":"","sources":["../../../src/enums/http-status-codes.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eA2CX;AA3CD,WAAY,eAAe;IACvB,+DAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,mDAAqC,CAAA;IACrC,6DAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,mEAAqC,CAAA;IACrC,yEAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,2EAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,uDAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,+FAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,2FAAqC,CAAA;IACrC,6GAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,mGAAqC,CAAA;AACzC,CAAC,EA3CW,eAAe,KAAf,eAAe,QA2C1B"} \ No newline at end of file diff --git a/dist/_esm5/enums/index.js b/dist/_esm5/enums/index.js deleted file mode 100644 index dfd4cb36..00000000 --- a/dist/_esm5/enums/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./button.enum"; -export * from "./days.enum"; -export * from "./encodings.enum"; -export * from "./file-types.enum"; -export * from "./http-status-codes.enum"; -export * from "./keys.enum"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/index.js.map b/dist/_esm5/enums/index.js.map deleted file mode 100644 index 1f5e5416..00000000 --- a/dist/_esm5/enums/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/enums/keys.enum.js b/dist/_esm5/enums/keys.enum.js deleted file mode 100644 index 40f7f370..00000000 --- a/dist/_esm5/enums/keys.enum.js +++ /dev/null @@ -1,65 +0,0 @@ -export var Keys; -(function (Keys) { - Keys["ARROW_UP"] = "ArrowUp"; - Keys["ARROW_DOWN"] = "ArrowDown"; - Keys["ARROW_LEFT"] = "ArrowLeft"; - Keys["ARROW_RIGHT"] = "ArrowRight"; - Keys["DELETE"] = "Delete"; - Keys["CONTROL"] = "ControlLeft"; - Keys["SHIFT"] = "ShiftLeft"; - Keys["PAGE_UP"] = "PageUp"; - Keys["PAGE_DOWN"] = "PageDown"; - Keys["ESCAPE"] = "Escape"; - Keys["SPACE"] = "Space"; - Keys["ENTER"] = "Enter"; - Keys["W"] = "KeyW"; - Keys["F"] = "KeyF"; - Keys["A"] = "KeyA"; - Keys["P"] = "KeyP"; - Keys["S"] = "KeyS"; - Keys["D"] = "KeyD"; - Keys["R"] = "KeyR"; - Keys["Y"] = "KeyY"; - Keys["Z"] = "KeyZ"; - Keys["X"] = "KeyX"; - Keys["V"] = "KeyV"; - Keys["C"] = "KeyC"; - Keys["O"] = "KeyO"; - Keys["H"] = "KeyH"; - Keys["L"] = "KeyL"; - Keys["DIGIT_1"] = "Digit1"; - Keys["DIGIT_2"] = "Digit2"; - Keys["DIGIT_3"] = "Digit3"; - Keys["DIGIT_4"] = "Digit4"; - Keys["DIGIT_5"] = "Digit5"; - Keys["DIGIT_6"] = "Digit6"; - Keys["DIGIT_7"] = "Digit7"; - Keys["DIGIT_8"] = "Digit8"; - Keys["DIGIT_9"] = "Digit9"; - Keys["DIGIT_0"] = "Digit0"; -})(Keys || (Keys = {})); -var KeysOld = (function () { - function KeysOld() { - } - KeysOld.ENTER = 13; - KeysOld.TAB = 9; - KeysOld.W = 87; - KeysOld.A = 65; - KeysOld.S = 83; - KeysOld.D = 68; - KeysOld.Q = 81; - KeysOld.E = 69; - KeysOld.F = 70; - KeysOld.LCONTROL = 17; - KeysOld.ESCAPE = 27; - KeysOld.LALT = 18; - KeysOld.LSHIFT = 16; - KeysOld.SPACE = 32; - KeysOld.ARROW_UP = 38; - KeysOld.ARROW_DOWN = 40; - KeysOld.ARROW_RIGHT = 39; - KeysOld.ARROW_LEFT = 37; - return KeysOld; -}()); -export { KeysOld }; -//# sourceMappingURL=keys.enum.js.map \ No newline at end of file diff --git a/dist/_esm5/enums/keys.enum.js.map b/dist/_esm5/enums/keys.enum.js.map deleted file mode 100644 index 5c0192ce..00000000 --- a/dist/_esm5/enums/keys.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keys.enum.js","sourceRoot":"","sources":["../../../src/enums/keys.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,IAuCX;AAvCD,WAAY,IAAI;IACZ,4BAAuB,CAAA;IACvB,gCAAyB,CAAA;IACzB,gCAAyB,CAAA;IACzB,kCAA0B,CAAA;IAC1B,yBAAsB,CAAA;IACtB,+BAA2B,CAAA;IAC3B,2BAAyB,CAAA;IACzB,0BAAsB,CAAA;IACtB,8BAAwB,CAAA;IACxB,yBAAsB,CAAA;IACtB,uBAAqB,CAAA;IACrB,uBAAqB,CAAA;IACrB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IAEpB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;AAC1B,CAAC,EAvCW,IAAI,KAAJ,IAAI,QAuCf;AAED;IAAA;IAmBA,CAAC;IAlB0B,aAAK,GAAS,EAAE,CAAC;IACjB,WAAG,GAAW,CAAC,CAAC;IAChB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,gBAAQ,GAAM,EAAE,CAAC;IACjB,cAAM,GAAQ,EAAE,CAAC;IACjB,YAAI,GAAU,EAAE,CAAC;IACjB,cAAM,GAAQ,EAAE,CAAC;IACjB,aAAK,GAAS,EAAE,CAAC;IACjB,gBAAQ,GAAM,EAAE,CAAC;IACjB,kBAAU,GAAI,EAAE,CAAC;IACjB,mBAAW,GAAG,EAAE,CAAC;IACjB,kBAAU,GAAI,EAAE,CAAC;IAC5C,cAAC;CAAA,AAnBD,IAmBC;SAnBY,OAAO"} \ No newline at end of file diff --git a/dist/_esm5/errors/index.js b/dist/_esm5/errors/index.js deleted file mode 100644 index 86232aad..00000000 --- a/dist/_esm5/errors/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./not-browser.exception"; -export * from "./null-pointer.exception"; -export * from "./wrong-parameter.exception"; -export * from "./missing-parameter.error"; -export * from "./no-database-connection.error"; -export * from "./wrong-type.exception"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/index.js.map b/dist/_esm5/errors/index.js.map deleted file mode 100644 index 69dc34c3..00000000 --- a/dist/_esm5/errors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/errors/missing-parameter.error.js b/dist/_esm5/errors/missing-parameter.error.js deleted file mode 100644 index 8d574e74..00000000 --- a/dist/_esm5/errors/missing-parameter.error.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __extends } from "tslib"; -var MissingParameterError = (function (_super) { - __extends(MissingParameterError, _super); - function MissingParameterError(parameterName) { - return _super.call(this, "Parameter " + parameterName + " must be defined") || this; - } - return MissingParameterError; -}(Error)); -export { MissingParameterError }; -//# sourceMappingURL=missing-parameter.error.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/missing-parameter.error.js.map b/dist/_esm5/errors/missing-parameter.error.js.map deleted file mode 100644 index eae8d75f..00000000 --- a/dist/_esm5/errors/missing-parameter.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"missing-parameter.error.js","sourceRoot":"","sources":["../../../src/errors/missing-parameter.error.ts"],"names":[],"mappings":";AAAA;IAA2C,yCAAK;IAC5C,+BAAmB,aAAqB;eACpC,kBAAM,eAAa,aAAa,qBAAkB,CAAC;IACvD,CAAC;IACL,4BAAC;AAAD,CAAC,AAJD,CAA2C,KAAK,GAI/C"} \ No newline at end of file diff --git a/dist/_esm5/errors/no-database-connection.error.js b/dist/_esm5/errors/no-database-connection.error.js deleted file mode 100644 index 5b7231a8..00000000 --- a/dist/_esm5/errors/no-database-connection.error.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __extends } from "tslib"; -var NoDatabaseConnectionError = (function (_super) { - __extends(NoDatabaseConnectionError, _super); - function NoDatabaseConnectionError() { - return _super.call(this, "Database connection is no established") || this; - } - return NoDatabaseConnectionError; -}(Error)); -export { NoDatabaseConnectionError }; -//# sourceMappingURL=no-database-connection.error.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/no-database-connection.error.js.map b/dist/_esm5/errors/no-database-connection.error.js.map deleted file mode 100644 index 6b43bbf6..00000000 --- a/dist/_esm5/errors/no-database-connection.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-database-connection.error.js","sourceRoot":"","sources":["../../../src/errors/no-database-connection.error.ts"],"names":[],"mappings":";AAAA;IAA+C,6CAAK;IAChD;eACI,kBAAM,uCAAuC,CAAC;IAClD,CAAC;IACL,gCAAC;AAAD,CAAC,AAJD,CAA+C,KAAK,GAInD"} \ No newline at end of file diff --git a/dist/_esm5/errors/not-browser.exception.js b/dist/_esm5/errors/not-browser.exception.js deleted file mode 100644 index 06ee2d02..00000000 --- a/dist/_esm5/errors/not-browser.exception.js +++ /dev/null @@ -1,15 +0,0 @@ -import { __extends } from "tslib"; -function getText(text) { - return text ? ": " + text : ""; -} -var NotBrowserException = (function (_super) { - __extends(NotBrowserException, _super); - function NotBrowserException(text) { - var _this = _super.call(this, "App is not running in browser" + getText(text) + "!") || this; - Object.setPrototypeOf(_this, NotBrowserException.prototype); - return _this; - } - return NotBrowserException; -}(Error)); -export { NotBrowserException }; -//# sourceMappingURL=not-browser.exception.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/not-browser.exception.js.map b/dist/_esm5/errors/not-browser.exception.js.map deleted file mode 100644 index df6eabed..00000000 --- a/dist/_esm5/errors/not-browser.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not-browser.exception.js","sourceRoot":"","sources":["../../../src/errors/not-browser.exception.ts"],"names":[],"mappings":";AAAA,SAAS,OAAO,CAAC,IAAa;IAC1B,OAAO,IAAI,CAAC,CAAC,CAAC,OAAK,IAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACnC,CAAC;AAED;IAAyC,uCAAK;IAC1C,6BAAmB,IAAa;QAAhC,YACI,kBAAM,kCAAgC,OAAO,CAAC,IAAI,CAAC,MAAG,CAAC,SAG1D;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;;IAC/D,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAyC,KAAK,GAM7C"} \ No newline at end of file diff --git a/dist/_esm5/errors/null-pointer.exception.js b/dist/_esm5/errors/null-pointer.exception.js deleted file mode 100644 index 2074e86a..00000000 --- a/dist/_esm5/errors/null-pointer.exception.js +++ /dev/null @@ -1,12 +0,0 @@ -import { __extends } from "tslib"; -var NullPointerException = (function (_super) { - __extends(NullPointerException, _super); - function NullPointerException(text) { - var _this = _super.call(this, "Null pointer exception at line" + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, NullPointerException.prototype); - return _this; - } - return NullPointerException; -}(Error)); -export { NullPointerException }; -//# sourceMappingURL=null-pointer.exception.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/null-pointer.exception.js.map b/dist/_esm5/errors/null-pointer.exception.js.map deleted file mode 100644 index 2ec3db6b..00000000 --- a/dist/_esm5/errors/null-pointer.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"null-pointer.exception.js","sourceRoot":"","sources":["../../../src/errors/null-pointer.exception.ts"],"names":[],"mappings":";AAAA;IAA0C,wCAAK;IAC3C,8BAAmB,IAAa;QAAhC,YACI,kBAAM,gCAAgC,GAAG,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAG3F;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;;IAChE,CAAC;IACL,2BAAC;AAAD,CAAC,AAND,CAA0C,KAAK,GAM9C"} \ No newline at end of file diff --git a/dist/_esm5/errors/wrong-parameter.exception.js b/dist/_esm5/errors/wrong-parameter.exception.js deleted file mode 100644 index 0bfbd70e..00000000 --- a/dist/_esm5/errors/wrong-parameter.exception.js +++ /dev/null @@ -1,12 +0,0 @@ -import { __extends } from "tslib"; -var WrongParameterException = (function (_super) { - __extends(WrongParameterException, _super); - function WrongParameterException(text) { - var _this = _super.call(this, "Wrong parameter exception at line" + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, WrongParameterException.prototype); - return _this; - } - return WrongParameterException; -}(Error)); -export { WrongParameterException }; -//# sourceMappingURL=wrong-parameter.exception.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/wrong-parameter.exception.js.map b/dist/_esm5/errors/wrong-parameter.exception.js.map deleted file mode 100644 index ff054107..00000000 --- a/dist/_esm5/errors/wrong-parameter.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-parameter.exception.js","sourceRoot":"","sources":["../../../src/errors/wrong-parameter.exception.ts"],"names":[],"mappings":";AAAA;IAA6C,2CAAK;IAC9C,iCAAmB,IAAa;QAAhC,YACI,kBAAM,uCAAoC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAE,CAAC,SAG5F;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;;IACnE,CAAC;IACL,8BAAC;AAAD,CAAC,AAND,CAA6C,KAAK,GAMjD"} \ No newline at end of file diff --git a/dist/_esm5/errors/wrong-type.exception.js b/dist/_esm5/errors/wrong-type.exception.js deleted file mode 100644 index 602fd88b..00000000 --- a/dist/_esm5/errors/wrong-type.exception.js +++ /dev/null @@ -1,12 +0,0 @@ -import { __extends } from "tslib"; -var WrongTypeException = (function (_super) { - __extends(WrongTypeException, _super); - function WrongTypeException(requiredType, text) { - var _this = _super.call(this, "Wrong type exception at line. " + typeof requiredType + " must be " + requiredType + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, WrongTypeException.prototype); - return _this; - } - return WrongTypeException; -}(Error)); -export { WrongTypeException }; -//# sourceMappingURL=wrong-type.exception.js.map \ No newline at end of file diff --git a/dist/_esm5/errors/wrong-type.exception.js.map b/dist/_esm5/errors/wrong-type.exception.js.map deleted file mode 100644 index ab526896..00000000 --- a/dist/_esm5/errors/wrong-type.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-type.exception.js","sourceRoot":"","sources":["../../../src/errors/wrong-type.exception.ts"],"names":[],"mappings":";AAAA;IAAwC,sCAAK;IACzC,4BAAmB,YAAoB,EAAE,IAAa;QAAtD,YACI,kBAAM,mCAAiC,OAAO,YAAY,iBAAY,YAAY,IAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAE,CAAC,SAGvI;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;;IAC9D,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAwC,KAAK,GAM5C"} \ No newline at end of file diff --git a/dist/_esm5/index.js b/dist/_esm5/index.js deleted file mode 100644 index ecf3dce5..00000000 --- a/dist/_esm5/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./GUtils"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/index.js.map b/dist/_esm5/index.js.map deleted file mode 100644 index fa90f699..00000000 --- a/dist/_esm5/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/math/index.js b/dist/_esm5/math/index.js deleted file mode 100644 index 57bcc404..00000000 --- a/dist/_esm5/math/index.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./simple-vector2"; -export * from "./simple-vector3"; -export * from "./simple-vector4"; -export * from "./simple-vector-xz"; -export * from "./vector"; -export * from "./vector2"; -export * from "./vector2f"; -export * from "./vector3"; -export * from "./vector4"; -export * from "./mat4"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/math/index.js.map b/dist/_esm5/math/index.js.map deleted file mode 100644 index 2e4794f1..00000000 --- a/dist/_esm5/math/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/math/mat4.js b/dist/_esm5/math/mat4.js deleted file mode 100644 index a74c65fc..00000000 --- a/dist/_esm5/math/mat4.js +++ /dev/null @@ -1,31 +0,0 @@ -import { __extends } from "tslib"; -var SimpleMat4 = (function () { - function SimpleMat4(data) { - this.data = data; - } - SimpleMat4.prototype.set = function (x, y, value) { - this.data[x][y] = value; - }; - SimpleMat4.prototype.get = function (x, y) { - return this.data[x][y]; - }; - return SimpleMat4; -}()); -export { SimpleMat4 }; -var Mat4 = (function (_super) { - __extends(Mat4, _super); - function Mat4() { - return _super !== null && _super.apply(this, arguments) || this; - } - Mat4.createViewMatrix = function () { - }; - Mat4.createTransformMatrix = function () { - }; - Mat4.createPerspectiveMatrix = function () { - }; - Mat4.createOrthographicMatrix = function () { - }; - return Mat4; -}(SimpleMat4)); -export { Mat4 }; -//# sourceMappingURL=mat4.js.map \ No newline at end of file diff --git a/dist/_esm5/math/mat4.js.map b/dist/_esm5/math/mat4.js.map deleted file mode 100644 index 7b5dad54..00000000 --- a/dist/_esm5/math/mat4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mat4.js","sourceRoot":"","sources":["../../../src/math/mat4.ts"],"names":[],"mappings":";AAAA;IACI,oBAAoC,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IACpD,CAAC;IAEM,wBAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAa;QAC1C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC5B,CAAC;IAEM,wBAAG,GAAV,UAAW,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IACL,iBAAC;AAAD,CAAC,AAXD,IAWC;;AAED;IAA0B,wBAAU;IAApC;;IAaA,CAAC;IAZiB,qBAAgB,GAA9B;IAEA,CAAC;IACa,0BAAqB,GAAnC;IAEA,CAAC;IACa,4BAAuB,GAArC;IAEA,CAAC;IACa,6BAAwB,GAAtC;IAEA,CAAC;IACL,WAAC;AAAD,CAAC,AAbD,CAA0B,UAAU,GAanC"} \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector-xz.js b/dist/_esm5/math/simple-vector-xz.js deleted file mode 100644 index 17fa8bfa..00000000 --- a/dist/_esm5/math/simple-vector-xz.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector-xz.js.map \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector-xz.js.map b/dist/_esm5/math/simple-vector-xz.js.map deleted file mode 100644 index f5b15bcd..00000000 --- a/dist/_esm5/math/simple-vector-xz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector-xz.js","sourceRoot":"","sources":["../../../src/math/simple-vector-xz.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector2.js b/dist/_esm5/math/simple-vector2.js deleted file mode 100644 index 3d97cf37..00000000 --- a/dist/_esm5/math/simple-vector2.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector2.js.map \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector2.js.map b/dist/_esm5/math/simple-vector2.js.map deleted file mode 100644 index 231adae2..00000000 --- a/dist/_esm5/math/simple-vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector2.js","sourceRoot":"","sources":["../../../src/math/simple-vector2.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector3.js b/dist/_esm5/math/simple-vector3.js deleted file mode 100644 index 6b245b7a..00000000 --- a/dist/_esm5/math/simple-vector3.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector3.js.map \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector3.js.map b/dist/_esm5/math/simple-vector3.js.map deleted file mode 100644 index 2abade96..00000000 --- a/dist/_esm5/math/simple-vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector3.js","sourceRoot":"","sources":["../../../src/math/simple-vector3.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector4.js b/dist/_esm5/math/simple-vector4.js deleted file mode 100644 index faf846ec..00000000 --- a/dist/_esm5/math/simple-vector4.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=simple-vector4.js.map \ No newline at end of file diff --git a/dist/_esm5/math/simple-vector4.js.map b/dist/_esm5/math/simple-vector4.js.map deleted file mode 100644 index 1897e5cf..00000000 --- a/dist/_esm5/math/simple-vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector4.js","sourceRoot":"","sources":["../../../src/math/simple-vector4.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/math/vector.js b/dist/_esm5/math/vector.js deleted file mode 100644 index 04d90936..00000000 --- a/dist/_esm5/math/vector.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=vector.js.map \ No newline at end of file diff --git a/dist/_esm5/math/vector.js.map b/dist/_esm5/math/vector.js.map deleted file mode 100644 index ff47315e..00000000 --- a/dist/_esm5/math/vector.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../../src/math/vector.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/math/vector2.js b/dist/_esm5/math/vector2.js deleted file mode 100644 index 8ae8c2ae..00000000 --- a/dist/_esm5/math/vector2.js +++ /dev/null @@ -1,243 +0,0 @@ -import { Range } from "../models"; -var Vector2 = (function () { - function Vector2(x, y) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - this.x = x; - this.y = y; - } - Object.defineProperty(Vector2, "ZERO", { - get: function () { - return new Vector2(0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "UP", { - get: function () { - return new Vector2(0, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "LEFT", { - get: function () { - return new Vector2(-1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "BOTTOM", { - get: function () { - return new Vector2(0, -1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "RIGHT", { - get: function () { - return new Vector2(1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "ONE", { - get: function () { - return new Vector2(1, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2.prototype, "avg", { - get: function () { - return this.sum / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2.prototype, "sum", { - get: function () { - return this.x + this.y; - }, - enumerable: false, - configurable: true - }); - Vector2.fromArray = function (val) { - return new Vector2(val[0], val[1]); - }; - Object.defineProperty(Vector2.prototype, "length", { - get: function () { - return Vector2.size(this); - }, - enumerable: false, - configurable: true - }); - Vector2.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y; - }; - Vector2.sub = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x - vecB.x, vecA.y - vecB.y); - }; - Vector2.dot = function (vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y; - }; - Vector2.lerp = function (start, end, ratio) { - var dir = Vector2.sub(end, start); - return Vector2.mulNum(dir, ratio, dir).add(start); - }; - Vector2.getAbs = function (vec, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.abs(vec.x), Math.abs(vec.y)); - }; - Vector2.from = function (valA, valB) { - if (valB === void 0) { valB = valA; } - return new Vector2(valA, valB); - }; - Vector2.isVisible = function (obsX, obsY, angle, cutOff, px, py) { - return angle - Math.atan2(py - obsY, px - obsX) <= cutOff; - }; - Vector2.createOutlineRange = function (points) { - var min = { - x: Infinity, - y: Infinity, - }; - var max = { - x: -Infinity, - y: -Infinity, - }; - points.forEach(function (p) { - if (p.x < min.x) { - min.x = p.x; - } - if (p.y < min.y) { - min.y = p.y; - } - if (p.x > max.x) { - max.x = p.x; - } - if (p.y > max.y) { - max.y = p.y; - } - }); - return new Range(min, max); - }; - Vector2.angleBetweenPoints = function (obsX, obsY, px1, py1, px2, py2) { - return Math.atan2(py1 - obsY, px1 - obsX) - Math.atan2(py2 - obsY, px2 - obsX); - }; - Vector2.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y); - }; - Vector2.sum = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x + vecB.x, vecA.y + vecB.y); - }; - Vector2.min = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y)); - }; - Vector2.max = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y)); - }; - Vector2.dist = function (vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2)); - }; - Vector2.size = function (vec) { - return Math.sqrt(vec.x * vec.x + vec.y * vec.y); - }; - Vector2.fromVec = function (vec) { - return new Vector2(vec.x, vec.y); - }; - Vector2.prototype.isZero = function () { - return this.x === 0 && this.y === 0; - }; - Vector2.prototype.clone = function () { - return new Vector2(this.x, this.y); - }; - Vector2.prototype.getNormalized = function (result) { - if (result === void 0) { result = this.clone(); } - return Vector2.normalize(this, result); - }; - Vector2.prototype.normalize = function () { - var length = Vector2.size(this); - this.x /= length; - this.y /= length; - return this; - }; - Vector2.normalize = function (vec, result) { - if (result === void 0) { result = vec; } - var length = Vector2.size(vec); - result.x = vec.x / length; - result.y = vec.y / length; - return result; - }; - Vector2.mulNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x * val, vecA.y * val); - }; - Vector2.addNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x + val, vecA.y + val); - }; - Vector2.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - } - return this; - }; - Vector2.prototype.add = function (value) { - if (typeof value === "number") { - this.x += value; - this.y += value; - } - else { - this.x += value.x; - this.y += value.y; - } - return this; - }; - Vector2.prototype.sub = function (value) { - if (typeof value === "number") { - this.x -= value; - this.y -= value; - } - else { - this.x -= value.x; - this.y -= value.y; - } - return this; - }; - Vector2.prototype.div = function (value) { - if (typeof value === "number") { - this.x /= value; - this.y /= value; - } - else { - this.x /= value.x; - this.y /= value.y; - } - return this; - }; - Vector2.prototype.setData = function (x, y) { - this.x = x; - this.y = y; - return this; - }; - Vector2.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - return this; - }; - return Vector2; -}()); -export { Vector2 }; -//# sourceMappingURL=vector2.js.map \ No newline at end of file diff --git a/dist/_esm5/math/vector2.js.map b/dist/_esm5/math/vector2.js.map deleted file mode 100644 index b5d01b6a..00000000 --- a/dist/_esm5/math/vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2.js","sourceRoot":"","sources":["../../../src/math/vector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGlC;IACI,iBAA0B,CAAK,EACL,CAAK;QADL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QADL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,aAAE;aAApB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAkB,iBAAM;aAAxB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAkB,gBAAK;aAAvB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,cAAG;aAArB;YACI,OAAO,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AC;IAChB,CAAC;IAEM,yBAAO,GAAd,UAAe,CAAS,EAAE,CAAS;QAC/B,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qBAAG,GAAV,UAAW,GAAkB;QACzB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,cAAC;AAAD,CAAC,AA1PD,IA0PC"} \ No newline at end of file diff --git a/dist/_esm5/math/vector2f.js b/dist/_esm5/math/vector2f.js deleted file mode 100644 index 4b6a01ec..00000000 --- a/dist/_esm5/math/vector2f.js +++ /dev/null @@ -1,62 +0,0 @@ -var process = function (op, arg1, arg2) { - if (typeof arg2 === "number") { - op(arg1, arg2); - } - else if (typeof arg1 === "number") { - op(arg1, arg1); - } - else { - op(arg1.x, arg1.y); - } -}; -var Vector2f = (function () { - function Vector2f(x, y) { - this.y = 0; - this.x = 0; - this.x = x; - this.y = y; - } - Vector2f.prototype.set = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x = x; - _this.y = y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.add = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x += x; - _this.y += y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.div = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x /= x; - _this.y /= y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.mul = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x *= x; - _this.y *= y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.sub = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x -= x; - _this.y -= y; - }, arg1, arg2); - return this; - }; - return Vector2f; -}()); -export { Vector2f }; -//# sourceMappingURL=vector2f.js.map \ No newline at end of file diff --git a/dist/_esm5/math/vector2f.js.map b/dist/_esm5/math/vector2f.js.map deleted file mode 100644 index 4c964912..00000000 --- a/dist/_esm5/math/vector2f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2f.js","sourceRoot":"","sources":["../../../src/math/vector2f.ts"],"names":[],"mappings":"AAAA,IAAM,OAAO,GAAG,UACZ,EAAkC,EAClC,IAAuB,EACvB,IAAa;IAEb,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC1B,EAAE,CAAC,IAAc,EAAE,IAAI,CAAC,CAAC;KAC5B;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACjC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAClB;SAAM;QACH,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;KACtB;AACL,CAAC,CAAC;AAKF;IAWI,kBAAmB,CAAS,EAAE,CAAS;QAPhC,MAAC,GAAG,CAAC,CAAC;QAKN,MAAC,GAAG,CAAC,CAAC;QAGT,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IACf,CAAC;IASM,sBAAG,GAAV,UAAW,IAAuB,EAAE,IAAa;QAAjD,iBAOC;QANG,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,GAAG,CAAC,CAAC;YACX,KAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACf,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IASM,sBAAG,GAAV,UAAW,IAAuB,EAAE,IAAa;QAAjD,iBAOC;QANG,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IASM,sBAAG,GAAV,UAAW,IAAuB,EAAE,IAAa;QAAjD,iBAOC;QANG,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IASM,sBAAG,GAAV,UAAW,IAAuB,EAAE,IAAa;QAAjD,iBAOC;QANG,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IASM,sBAAG,GAAV,UAAW,IAAuB,EAAE,IAAa;QAAjD,iBAOC;QANG,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,eAAC;AAAD,CAAC,AA/FD,IA+FC"} \ No newline at end of file diff --git a/dist/_esm5/math/vector3.js b/dist/_esm5/math/vector3.js deleted file mode 100644 index a85a5003..00000000 --- a/dist/_esm5/math/vector3.js +++ /dev/null @@ -1,250 +0,0 @@ -import { Vector2 } from "./vector2"; -var Vector3 = (function () { - function Vector3(x, y, z) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - if (z === void 0) { z = 0; } - this.x = x; - this.y = y; - this.z = z; - } - Object.defineProperty(Vector3, "UP", { - get: function () { - return new Vector3(0, 1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3, "ZERO", { - get: function () { - return new Vector3(0, 0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3, "ONE", { - get: function () { - return new Vector3(1, 1, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "avg", { - get: function () { - return (this.x + this.y + this.z) / 3; - }, - enumerable: false, - configurable: true - }); - Vector3.lengthOf = function (vector) { - return Math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z); - }; - Object.defineProperty(Vector3.prototype, "length", { - get: function () { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); - }, - enumerable: false, - configurable: true - }); - Vector3.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z; - }; - Vector3.sub = function (vecA, vecB) { - return new Vector3(vecA.x - vecB.x, vecA.y - vecB.y, vecA.z - vecB.z); - }; - Vector3.add = function (vecA, vecB) { - return new Vector3(vecA.x + vecB.x, vecA.y + vecB.y, vecA.z + vecB.z); - }; - Vector3.sum = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x + vecB.x; - result.y = vecA.y + vecB.y; - result.z = vecA.z + vecB.z; - return result; - }; - Vector3.sumNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x + val; - result.y = vecA.y + val; - result.z = vecA.z + val; - return result; - }; - Vector3.dot = function (vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y + vecA.z * vecB.z; - }; - Vector3.mul = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x * vecB.x; - result.y = vecA.y * vecB.y; - result.z = vecA.z * vecB.z; - return result; - }; - Vector3.mulNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x * val; - result.y = vecA.y * val; - result.z = vecA.z * val; - return result; - }; - Vector3.min = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = Math.min(vecA.x, vecB.x); - result.y = Math.min(vecA.y, vecB.y); - result.z = Math.min(vecA.z, vecB.z); - return result; - }; - Vector3.max = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = Math.max(vecA.x, vecB.x); - result.y = Math.max(vecA.y, vecB.y); - result.z = Math.max(vecA.z, vecB.z); - return result; - }; - Vector3.createFromSphericalCoords = function (radius, phi, theta) { - var sinPhiRadius = Math.sin(phi) * radius; - var x = sinPhiRadius * Math.sin(theta); - var y = Math.cos(phi) * radius; - var z = sinPhiRadius * Math.cos(theta); - return new Vector3(x, y, z); - }; - Vector3.distSqrt = function (vecA, vecB) { - return Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2) + Math.pow(vecA.z - vecB.z, 2); - }; - Vector3.dist = function (vecA, vecB) { - return Math.sqrt(Vector3.distSqrt(vecA, vecB)); - }; - Vector3.normalize = function (vec) { - var length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z); - vec.x /= length; - vec.y /= length; - vec.z /= length; - return vec; - }; - Vector3.from = function (valA, valB, valC) { - if (valB === void 0) { valB = valA; } - if (valC === void 0) { valC = valA; } - return new Vector3(valA, valB, valC); - }; - Vector3.fromVec = function (vec) { - return new Vector3(vec.x, vec.y, vec.z); - }; - Vector3.fromArray = function (value) { - return new Vector3(value[0], value[1], value[2]); - }; - Vector3.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z); - }; - Vector3.prototype.toArray = function () { - return [this.x, this.y, this.z]; - }; - Vector3.prototype.sum = function () { - return this.x + this.y + this.z; - }; - Vector3.prototype.getNormalized = function () { - return this.clone().normalize(); - }; - Vector3.prototype.clone = function () { - return new Vector3(this.x, this.y, this.z); - }; - Vector3.prototype.normalize = function () { - var length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - return this; - }; - Vector3.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - } - return this; - }; - Vector3.prototype.add = function (vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - return this; - }; - Vector3.prototype.cross = function (v) { - var localX = this.y * v.z - this.z * v.y; - var localY = this.z * v.x - this.x * v.z; - var localZ = this.x * v.y - this.y * v.x; - return new Vector3(localX, localY, localZ); - }; - Vector3.prototype.dot = function (v) { - return this.x * v.x + this.y * v.y + this.z * v.z; - }; - Vector3.prototype.sub = function (vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - return this; - }; - Vector3.prototype.setData = function (x, y, z) { - this.x = x; - this.y = y; - this.z = z; - return this; - }; - Vector3.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - return this; - }; - Object.defineProperty(Vector3.prototype, "xy", { - get: function () { - return new Vector2(this.x, this.y); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "yx", { - get: function () { - return new Vector2(this.y, this.x); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "yz", { - get: function () { - return new Vector2(this.y, this.z); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "zy", { - get: function () { - return new Vector2(this.z, this.y); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "xz", { - get: function () { - return new Vector2(this.x, this.z); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "zx", { - get: function () { - return new Vector2(this.z, this.x); - }, - enumerable: false, - configurable: true - }); - return Vector3; -}()); -export { Vector3 }; -//# sourceMappingURL=vector3.js.map \ No newline at end of file diff --git a/dist/_esm5/math/vector3.js.map b/dist/_esm5/math/vector3.js.map deleted file mode 100644 index 8af502b8..00000000 --- a/dist/_esm5/math/vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector3.js","sourceRoot":"","sources":["../../../src/math/vector3.ts"],"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AAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IACL,cAAC;AAAD,CAAC,AA1PD,IA0PC"} \ No newline at end of file diff --git a/dist/_esm5/math/vector4.js b/dist/_esm5/math/vector4.js deleted file mode 100644 index 65bf13c0..00000000 --- a/dist/_esm5/math/vector4.js +++ /dev/null @@ -1,141 +0,0 @@ -var Vector4 = (function () { - function Vector4(x, y, z, w) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - if (z === void 0) { z = 0; } - if (w === void 0) { w = 0; } - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - Object.defineProperty(Vector4, "ZERO", { - get: function () { - return new Vector4(0, 0, 0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector4, "ONE", { - get: function () { - return new Vector4(1, 1, 1, 1); - }, - enumerable: false, - configurable: true - }); - Vector4.fromArray = function (val) { - return new Vector4(val[0], val[1], val[2], val[3]); - }; - Vector4.from = function (valA, valB, valC, valD) { - if (valB === void 0) { valB = valA; } - if (valC === void 0) { valC = valB; } - if (valD === void 0) { valD = valC; } - return new Vector4(valA, valB, valC, valD); - }; - Object.defineProperty(Vector4.prototype, "avg", { - get: function () { - return (this.x + this.y + this.z + this.w) / 4; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector4.prototype, "length", { - get: function () { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); - }, - enumerable: false, - configurable: true - }); - Vector4.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z && vecA.w === vecB.w; - }; - Vector4.min = function (vecA, vecB) { - return new Vector4(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y), Math.min(vecA.z, vecB.z), Math.min(vecA.w, vecB.w)); - }; - Vector4.max = function (vecA, vecB) { - return new Vector4(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y), Math.max(vecA.z, vecB.z), Math.max(vecA.w, vecB.w)); - }; - Vector4.dist = function (vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + - Math.pow(vecA.y - vecB.y, 2) + - Math.pow(vecA.z - vecB.z, 2) + - Math.pow(vecA.w - vecB.w, 2)); - }; - Vector4.normalize = function (vec) { - var length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z + vec.w * vec.w); - vec.x /= length; - vec.y /= length; - vec.z /= length; - vec.w /= length; - return vec; - }; - Vector4.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z) && !isNaN(item.w); - }; - Vector4.prototype.toArray = function () { - return [this.x, this.y, this.z, this.w]; - }; - Vector4.prototype.getNormalized = function () { - return this.clone().normalize(); - }; - Vector4.prototype.clone = function () { - return new Vector4(this.x, this.y, this.z, this.w); - }; - Vector4.prototype.normalize = function () { - var length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - this.w /= length; - return this; - }; - Vector4.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - this.w *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - this.w *= value.w; - } - return this; - }; - Vector4.prototype.add = function (vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - this.w += vec.w; - return this; - }; - Vector4.prototype.sub = function (vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - this.w -= vec.w; - return this; - }; - Vector4.prototype.setData = function (x, y, z, w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - return this; - }; - Vector4.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - this.w = vec.w; - return this; - }; - return Vector4; -}()); -export { Vector4 }; -//# sourceMappingURL=vector4.js.map \ No newline at end of file diff --git a/dist/_esm5/math/vector4.js.map b/dist/_esm5/math/vector4.js.map deleted file mode 100644 index f3e59fde..00000000 --- a/dist/_esm5/math/vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector4.js","sourceRoot":"","sources":["../../../src/math/vector4.ts"],"names":[],"mappings":"AAEA;IACI,iBAA0B,CAAK,EACL,CAAK,EACL,CAAK,EACL,CAAK;QAHL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QAHL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAkB,cAAG;aAArB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAEa,iBAAS,GAAvB,UAAwB,GAAoD;QACxE,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAEa,YAAI,GAAlB,UAAmB,IAAY,EAAE,IAAW,EAAE,IAAW,EAAE,IAAW;QAArC,qBAAA,EAAA,WAAW;QAAE,qBAAA,EAAA,WAAW;QAAE,q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AEX,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qBAAG,GAAV,UAAW,GAAkB;QACzB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,cAAC;AAAD,CAAC,AA1JD,IA0JC"} \ No newline at end of file diff --git a/dist/_esm5/misc/ajax.js b/dist/_esm5/misc/ajax.js deleted file mode 100644 index da4e9c88..00000000 --- a/dist/_esm5/misc/ajax.js +++ /dev/null @@ -1,23 +0,0 @@ -var AjaxWrapper = (function () { - function AjaxWrapper(ajaxHandler) { - this.ajaxHandler = ajaxHandler; - } - return AjaxWrapper; -}()); -export function ajax(_a) { - var _b = _a.method, method = _b === void 0 ? "GET" : _b, url = _a.url, onResponse = _a.onResponse, content = _a.content, _c = _a.headers, headers = _c === void 0 ? {} : _c; - var request = new XMLHttpRequest(); - request.onreadystatechange = function () { - if (!(request.readyState === 4 && (request.status === 200 || request.status === 201))) { - return; - } - if (typeof onResponse === "function") { - onResponse(request.responseText); - } - }; - request.open(method, url, true); - Object.entries(headers).forEach(function (entry) { return request.setRequestHeader(entry[0], entry[1]); }); - request.send(content); - return new AjaxWrapper(request); -} -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/ajax.js.map b/dist/_esm5/misc/ajax.js.map deleted file mode 100644 index 122d4239..00000000 --- a/dist/_esm5/misc/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../../src/misc/ajax.ts"],"names":[],"mappings":"AAQA;IACI,qBAAoC,WAA2B;QAA3B,gBAAW,GAAX,WAAW,CAAgB;IAC/D,CAAC;IACL,kBAAC;AAAD,CAAC,AAHD,IAGC;AAED,MAAM,UAAU,IAAI,CAAC,EAMR;QALT,cAAc,EAAd,MAAM,mBAAG,KAAK,KAAA,EACd,GAAG,SAAA,EACH,UAAU,gBAAA,EACV,OAAO,aAAA,EACP,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA;IAEZ,IAAM,OAAO,GAAgB,IAAI,cAAc,EAAE,CAAC;IAClD,OAAO,CAAC,kBAAkB,GAAG;QACzB,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE;YACnF,OAAO;SACV;QACD,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACpC;IACL,CAAC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAA5C,CAA4C,CAAC,CAAC;IACzF,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEtB,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/misc/file-size-formatter.js b/dist/_esm5/misc/file-size-formatter.js deleted file mode 100644 index 91342653..00000000 --- a/dist/_esm5/misc/file-size-formatter.js +++ /dev/null @@ -1,15 +0,0 @@ -var FILE_SIZE_UNITS = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; -var FILE_SIZE_UNITS_LONG = ["Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Pettabytes", "Exabytes", "Zettabytes", "Yottabytes"]; -export function formatFileSize(sizeInBytes, longForm) { - if (longForm === void 0) { longForm = false; } - var units = longForm - ? FILE_SIZE_UNITS_LONG - : FILE_SIZE_UNITS; - var power = Math.round(Math.log(sizeInBytes) / Math.log(1024)); - power = Math.min(power, units.length - 1); - var size = sizeInBytes / Math.pow(1024, power); - var formattedSize = Math.round(size * 100) / 100; - var unit = units[power]; - return size ? formattedSize + " " + unit : "0"; -} -//# sourceMappingURL=file-size-formatter.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/file-size-formatter.js.map b/dist/_esm5/misc/file-size-formatter.js.map deleted file mode 100644 index 1d69cfc5..00000000 --- a/dist/_esm5/misc/file-size-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-size-formatter.js","sourceRoot":"","sources":["../../../src/misc/file-size-formatter.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnF,IAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAEpI,MAAM,UAAU,cAAc,CAAC,WAAmB,EAAE,QAAgB;IAAhB,yBAAA,EAAA,gBAAgB;IAChE,IAAM,KAAK,GAAG,QAAQ;QAClB,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,eAAe,CAAC;IAEtB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,KAAK,GAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE9C,IAAM,IAAI,GAAY,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1D,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IACnD,IAAM,IAAI,GAAY,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnC,OAAO,IAAI,CAAC,CAAC,CAAI,aAAa,SAAI,IAAM,CAAC,CAAC,CAAC,GAAG,CAAC;AACnD,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/misc/index.js b/dist/_esm5/misc/index.js deleted file mode 100644 index 48dfc598..00000000 --- a/dist/_esm5/misc/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./slovak-stemmer"; -export * from "./ajax"; -export * from "./file-size-formatter"; -export * from "./simple-loop"; -export * from "./runtime-validators"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/index.js.map b/dist/_esm5/misc/index.js.map deleted file mode 100644 index ee30370a..00000000 --- a/dist/_esm5/misc/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/misc/runtime-validators.js b/dist/_esm5/misc/runtime-validators.js deleted file mode 100644 index e904fb0c..00000000 --- a/dist/_esm5/misc/runtime-validators.js +++ /dev/null @@ -1,13 +0,0 @@ -export var getAsString = function (key) { - if (typeof key !== "string") { - throw new Error("Variable with value " + key + " is not a string"); - } - return key; -}; -export var getAsNumber = function (key) { - if (typeof key !== "number") { - throw new Error("Variable with value " + key + " is not a number"); - } - return key; -}; -//# sourceMappingURL=runtime-validators.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/runtime-validators.js.map b/dist/_esm5/misc/runtime-validators.js.map deleted file mode 100644 index a98c35e7..00000000 --- a/dist/_esm5/misc/runtime-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime-validators.js","sourceRoot":"","sources":["../../../src/misc/runtime-validators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,GAAQ;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,yBAAuB,GAAG,qBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AACF,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,GAAQ;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,yBAAuB,GAAG,qBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/misc/simple-loop.js b/dist/_esm5/misc/simple-loop.js deleted file mode 100644 index 6ad25985..00000000 --- a/dist/_esm5/misc/simple-loop.js +++ /dev/null @@ -1,17 +0,0 @@ -export function simpleLoop(callback, requiredFps) { - if (requiredFps === void 0) { requiredFps = 60; } - var start; - var req; - var requiredDuration = 1000 / requiredFps; - var tick = function (time) { - var duration = time - start; - start = time; - req = requestAnimationFrame(tick); - callback((duration / requiredDuration) || 1); - }; - req = requestAnimationFrame(tick); - return { - stop: function () { return cancelAnimationFrame(req); }, - }; -} -//# sourceMappingURL=simple-loop.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/simple-loop.js.map b/dist/_esm5/misc/simple-loop.js.map deleted file mode 100644 index e755eb9a..00000000 --- a/dist/_esm5/misc/simple-loop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-loop.js","sourceRoot":"","sources":["../../../src/misc/simple-loop.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,QAAiC,EAAE,WAAgB;IAAhB,4BAAA,EAAA,gBAAgB;IAC1E,IAAI,KAAa,CAAC;IAClB,IAAI,GAAW,CAAC;IAChB,IAAM,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;IAC5C,IAAM,IAAI,GAAG,UAAC,IAAY;QACtB,IAAM,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC;QAC9B,KAAK,GAAG,IAAI,CAAC;QACb,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAClC,QAAQ,CAAC,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC;IACF,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO;QACH,IAAI,EAAC,cAAM,OAAA,oBAAoB,CAAC,GAAG,CAAC,EAAzB,CAAyB;KACvC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/misc/slovak-stemmer.js b/dist/_esm5/misc/slovak-stemmer.js deleted file mode 100644 index 9ee0d766..00000000 --- a/dist/_esm5/misc/slovak-stemmer.js +++ /dev/null @@ -1,182 +0,0 @@ -function removePredpona(char) { - if (char.length > 6 && char.startsWith("naj")) { - return char.substr(3, char.length); - } - return char; -} -function removeCase(key) { - var len = key.length; - if (len > 9 && key.endsWith("ejšieho") - || key.endsWith("ejšiemu")) { - return key.substring(0, len - 7); - } - if (len > 8 && (key.endsWith("ejších") || - key.endsWith("encoch") || - key.endsWith("ejšími") || - key.endsWith("encami"))) { - return key.substring(0, len - 6); - } - if (len > 7 && (key.endsWith("ejšia") || - key.endsWith("atami") || - key.endsWith("atách") || - key.endsWith("eniec") || - key.endsWith("encom") || - key.endsWith("ejšom") || - key.endsWith("ejším") || - key.endsWith("ejšej") || - key.endsWith("ejšou") || - key.endsWith("ejšiu") || - key.endsWith("ejšie"))) { - return key.substring(0, len - 5); - } - if (len > 6 && - (key.endsWith("eťom") || - key.endsWith("iami") || - key.endsWith("atám") || - key.endsWith("aťom") || - key.endsWith("ovia") || - key.endsWith("iach") || - key.endsWith("atám") || - key.endsWith("ence") || - key.endsWith("ieho") || - key.endsWith("iemu") || - key.endsWith("ieme") || - key.endsWith("iete") || - key.endsWith("ejší") || - key.endsWith("enie"))) { - return key.substring(0, len - 4); - } - if (len > 5 && - (key.endsWith("ich") || - key.endsWith("eho") || - key.endsWith("ych") || - key.endsWith("ích") || - key.endsWith("ého") || - key.endsWith("emi") || - key.endsWith("ému") || - key.endsWith("emu") || - key.endsWith("ími") || - key.endsWith("imi") || - key.endsWith("ách") || - key.endsWith("ých") || - key.endsWith("ami") || - key.endsWith("ovi") || - key.endsWith("ieť") || - key.endsWith("ieš") || - key.endsWith("ejú") || - key.endsWith("ajú") || - key.endsWith("ujú") || - key.endsWith("ejú") || - key.endsWith("eme") || - key.endsWith("íte") || - key.endsWith("íme") || - key.endsWith("ými") || - key.endsWith("ymi") || - key.endsWith("ach") || - key.endsWith("iam") || - key.endsWith("iac") || - key.endsWith("ite") || - key.endsWith("ili") || - key.endsWith("ila") || - key.endsWith("ilo") || - key.endsWith("ime") || - key.endsWith("och"))) { - return key.substring(0, len - 3); - } - if (len > 4 && - (key.endsWith("ím") || - key.endsWith("ám") || - key.endsWith("am") || - key.endsWith("us") || - key.endsWith("ým") || - key.endsWith("ym") || - key.endsWith("mi") || - key.endsWith("ou") || - key.endsWith("om") || - key.endsWith("ej") || - key.endsWith("ov") || - key.endsWith("ia") || - key.endsWith("ie") || - key.endsWith("iu") || - key.endsWith("im") || - key.endsWith("ho") || - key.endsWith("mu") || - key.endsWith("me") || - key.endsWith("te") || - key.endsWith("ať") || - key.endsWith("aš") || - key.endsWith("úť") || - key.endsWith("iť") || - key.endsWith("íš") || - key.endsWith("iš") || - key.endsWith("il") || - key.endsWith("úc") || - key.endsWith("eš"))) { - return key.substring(0, len - 2); - } - if (len > 3) { - switch (key[len - 1]) { - case "a": - case "e": - case "i": - case "o": - case "u": - case "ú": - case "y": - case "á": - case "é": - case "í": - case "ý": - return key.substring(0, len - 1); - } - } - return key; -} -function removePossessives(s) { - var len = s.length; - if (len > 5 && s.endsWith("in") || - s.endsWith("ov")) { - return s.substr(0, len - 2); - } - return s; -} -function normalize(s) { - var len = s.length; - switch (s[len - 1]) { - case "c": - case "č": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "k"; }); - case "ľ": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "l"; }); - case "ň": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "n"; }); - case "ť": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "t"; }); - } - if (len > 3 && s[len - 3] === "i" && (s[len - 2] === "e" || s[len - 2] === "a" || s[len - 2] === "u")) { - return s.replace(/./g, function (e, i) { - if (i === len - 3) { - return s[len - 2]; - } - if (i === len - 2) { - return s[len - 1]; - } - return e; - }); - } - return s; -} -var SlovakStemmer = (function () { - function SlovakStemmer() { - } - SlovakStemmer.steme = function (word) { - var result = removePossessives(removeCase(removePredpona(word))); - if (result.length) { - return normalize(result); - } - return result; - }; - return SlovakStemmer; -}()); -export { SlovakStemmer }; -//# sourceMappingURL=slovak-stemmer.js.map \ No newline at end of file diff --git a/dist/_esm5/misc/slovak-stemmer.js.map b/dist/_esm5/misc/slovak-stemmer.js.map deleted file mode 100644 index abb17484..00000000 --- a/dist/_esm5/misc/slovak-stemmer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"slovak-stemmer.js","sourceRoot":"","sources":["../../../src/misc/slovak-stemmer.ts"],"names":[],"mappings":"AAAA,SAAS,cAAc,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KACtC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;A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AC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnE,IAAI,MAAM,CAAC,MAAM,EAAE;YACf,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;SAC5B;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,oBAAC;AAAD,CAAC,AATD,IASC"} \ No newline at end of file diff --git a/dist/_esm5/models/color.model.js b/dist/_esm5/models/color.model.js deleted file mode 100644 index 0a61dd64..00000000 --- a/dist/_esm5/models/color.model.js +++ /dev/null @@ -1,77 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { hex2rgb, int2rgb, rgb2hex, rgb2int } from "../utils"; -function checkColorValue(value) { - console.assert(value >= 0); - console.assert(value <= 255); -} -var Color = (function () { - function Color(red, green, blue, alpha) { - if (alpha === void 0) { alpha = 255; } - this.red = red; - this.green = green; - this.blue = blue; - this.alpha = alpha; - checkColorValue(red); - checkColorValue(green); - checkColorValue(blue); - checkColorValue(alpha); - } - Object.defineProperty(Color.prototype, "rgb", { - get: function () { - return [this.red, this.green, this.blue]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "rgbString", { - get: function () { - return "rgb(" + this.red + ", " + this.green + ", " + this.blue + ")"; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "rgba", { - get: function () { - return [this.red, this.green, this.blue, this.alpha]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "hex", { - get: function () { - return rgb2hex(Math.floor(this.red), Math.floor(this.green), Math.floor(this.blue)); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "int", { - get: function () { - return rgb2int(this.red, this.green, this.blue); - }, - enumerable: false, - configurable: true - }); - Color.fromHex = function (color) { - var value = hex2rgb(color); - return new (Color.bind.apply(Color, __spreadArrays([void 0], value)))(); - }; - Color.fromInt = function (color) { - var value = int2rgb(color); - return new (Color.bind.apply(Color, __spreadArrays([void 0], value)))(); - }; - Color.prototype.normalized = function () { - if (this.red > 1 || this.green > 1 || this.blue > 1 || this.alpha > 1) { - return new Color(this.red / 255, this.green / 255, this.blue / 255, this.alpha / 255); - } - return this; - }; - Color.BLACK = new Color(0, 0, 0); - Color.WHITE = new Color(255, 255, 255); - Color.GRAY = new Color(128, 128, 128); - Color.RED = new Color(255, 0, 0); - Color.GREEN = new Color(0, 255, 0); - Color.BLUE = new Color(0, 0, 255); - return Color; -}()); -export { Color }; -//# sourceMappingURL=color.model.js.map \ No newline at end of file diff --git a/dist/_esm5/models/color.model.js.map b/dist/_esm5/models/color.model.js.map deleted file mode 100644 index b0509604..00000000 --- a/dist/_esm5/models/color.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color.model.js","sourceRoot":"","sources":["../../../src/models/color.model.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE9D,SAAS,eAAe,CAAC,KAAa;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;IAQI,eAAmC,GAAW,EACX,KAAa,EACb,IAAY,EACZ,KAAW;QAAX,sBAAA,EAAA,WAAW;QAHX,QAAG,GAAH,GAAG,CAAQ;QACX,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAM;QAC1C,eAAe,CAAC,GAAG,CAAC,CAAC;QACrB,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,eAAe,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,sBAAW,sBAAG;aAAd;YACI,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;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AAG,GAAG,GAAG,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;SACzF;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAvDsB,WAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3B,WAAK,GAAG,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,UAAI,GAAI,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,SAAG,GAAK,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,WAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAC7B,UAAI,GAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAmDxD,YAAC;CAAA,AAzDD,IAyDC;SAzDY,KAAK"} \ No newline at end of file diff --git a/dist/_esm5/models/countries/country.interface.js b/dist/_esm5/models/countries/country.interface.js deleted file mode 100644 index eeaed329..00000000 --- a/dist/_esm5/models/countries/country.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=country.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/models/countries/country.interface.js.map b/dist/_esm5/models/countries/country.interface.js.map deleted file mode 100644 index 4c9fb17a..00000000 --- a/dist/_esm5/models/countries/country.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.interface.js","sourceRoot":"","sources":["../../../../src/models/countries/country.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/countries/country.model.js b/dist/_esm5/models/countries/country.model.js deleted file mode 100644 index 49731fcb..00000000 --- a/dist/_esm5/models/countries/country.model.js +++ /dev/null @@ -1,19 +0,0 @@ -import { toBasicForm } from "gtools/utils"; -var data = require("./countries.data.json"); -var countries = {}; -data.forEach(function (country) { return countries[country.key] = country; }); -var Country = (function () { - function Country() { - } - Country.getByKey = function (key) { - var finalKey = key.toUpperCase(); - return countries[finalKey] || data.find(function (country) { return country.key === finalKey; }) || null; - }; - Country.find = function (key) { - var finalKey = toBasicForm(key); - return data.find(function (country) { return country.key.toLowerCase() === finalKey || country.patterns.some(function (pattern) { return finalKey.indexOf(pattern) >= 0; }); }) || null; - }; - return Country; -}()); -export { Country }; -//# sourceMappingURL=country.model.js.map \ No newline at end of file diff --git a/dist/_esm5/models/countries/country.model.js.map b/dist/_esm5/models/countries/country.model.js.map deleted file mode 100644 index b7c00765..00000000 --- a/dist/_esm5/models/countries/country.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.model.js","sourceRoot":"","sources":["../../../../src/models/countries/country.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK3C,IAAM,IAAI,GAAkB,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAG7D,IAAM,SAAS,GAAmC,EAAE,CAAC;AACrD,IAAI,CAAC,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,EAAhC,CAAgC,CAAC,CAAC;AAK5D;IAAA;IAwBA,CAAC;IAjBiB,gBAAQ,GAAtB,UAAuB,GAAW;QAC9B,IAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;QAEnC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,KAAK,QAAQ,EAAxB,CAAwB,CAAC,IAAI,IAAI,CAAC;IAC3F,CAAC;IAQa,YAAI,GAAlB,UAAmB,GAAW;QAC1B,IAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAA9B,CAA8B,CAAC,EAA5G,CAA4G,CAAC,IAAI,IAAI,CAAC;IACxJ,CAAC;IACL,cAAC;AAAD,CAAC,AAxBD,IAwBC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/binary-queue.js b/dist/_esm5/models/data-structures/binary-queue.js deleted file mode 100644 index 765d5d2b..00000000 --- a/dist/_esm5/models/data-structures/binary-queue.js +++ /dev/null @@ -1,89 +0,0 @@ -var BinaryHeap = (function () { - function BinaryHeap(scoreFunction) { - this.scoreFunction = scoreFunction; - this.content = []; - } - BinaryHeap.prototype.push = function (element) { - this.content.push(element); - this.sinkDown(this.content.length - 1); - }; - BinaryHeap.prototype.pop = function () { - var result = this.content[0]; - var end = this.content.pop(); - if (this.content.length > 0) { - this.content[0] = end; - this.bubbleUp(0); - } - return result; - }; - BinaryHeap.prototype.remove = function (node) { - var i = this.content.indexOf(node); - var end = this.content.pop(); - if (i !== this.content.length - 1) { - this.content[i] = end; - if (this.scoreFunction(end) < this.scoreFunction(node)) { - this.sinkDown(i); - } - else { - this.bubbleUp(i); - } - } - }; - BinaryHeap.prototype.size = function () { - return this.content.length; - }; - BinaryHeap.prototype.rescoreElement = function (node) { - this.sinkDown(this.content.indexOf(node)); - }; - BinaryHeap.prototype.sinkDown = function (n) { - var element = this.content[n]; - while (n > 0) { - var parentN = ((n + 1) >> 1) - 1; - var parent_1 = this.content[parentN]; - if (this.scoreFunction(element) < this.scoreFunction(parent_1)) { - this.content[parentN] = element; - this.content[n] = parent_1; - n = parentN; - } - else { - break; - } - } - }; - BinaryHeap.prototype.bubbleUp = function (n) { - var length = this.content.length; - var element = this.content[n]; - var elemScore = this.scoreFunction(element); - while (true) { - var child2N = (n + 1) << 1; - var child1N = child2N - 1; - var swap = null; - var child1Score = void 0; - if (child1N < length) { - var child1 = this.content[child1N]; - child1Score = this.scoreFunction(child1); - if (child1Score < elemScore) { - swap = child1N; - } - } - if (child2N < length) { - var child2 = this.content[child2N]; - var child2Score = this.scoreFunction(child2); - if (child2Score < (swap === null ? elemScore : child1Score)) { - swap = child2N; - } - } - if (swap !== null) { - this.content[n] = this.content[swap]; - this.content[swap] = element; - n = swap; - } - else { - break; - } - } - }; - return BinaryHeap; -}()); -export { BinaryHeap }; -//# sourceMappingURL=binary-queue.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/binary-queue.js.map b/dist/_esm5/models/data-structures/binary-queue.js.map deleted file mode 100644 index 47f3c11e..00000000 --- a/dist/_esm5/models/data-structures/binary-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-queue.js","sourceRoot":"","sources":["../../../../src/models/data-structures/binary-queue.ts"],"names":[],"mappings":"AAAA;IAGI,oBAAoC,aAAkC;QAAlC,kBAAa,GAAb,aAAa,CAAqB;QAF9D,YAAO,GAAQ,EAAE,CAAC;IAG1B,CAAC;IAEM,yBAAI,GAAX,UAAY,OAAU;QAElB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAG3B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAEM,wBAAG,GAAV;QAEI,IAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAE/B,IAAM,GAAG,GAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAO,CAAC;QAGvC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,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CAAC;iBAClB;aACJ;YAGD,IAAI,IAAI,KAAK,IAAI,EAAE;gBACf,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;gBAC7B,CAAC,GAAoB,IAAI,CAAC;aAC7B;iBAAM;gBACH,MAAM;aACT;SACJ;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AA1HD,IA0HC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/binary-tree.js b/dist/_esm5/models/data-structures/binary-tree.js deleted file mode 100644 index 14228a71..00000000 --- a/dist/_esm5/models/data-structures/binary-tree.js +++ /dev/null @@ -1,163 +0,0 @@ -var Node = (function () { - function Node(val) { - this.val = val; - this.leftChild = null; - this.rightChild = null; - } - return Node; -}()); -var BinarySearchTree = (function () { - function BinarySearchTree(rootValue) { - this._length = 0; - this.root = new Node(rootValue); - } - Object.defineProperty(BinarySearchTree.prototype, "length", { - get: function () { - return this._length; - }, - enumerable: false, - configurable: true - }); - BinarySearchTree.prototype.clear = function () { - this._length = 0; - this.root = null; - }; - BinarySearchTree.prototype.addInternally = function (currentNode, newValue) { - if (currentNode === null) { - currentNode = new Node(newValue); - } - else if (newValue < currentNode.val) { - currentNode.leftChild = this.addInternally(currentNode.leftChild, newValue); - } - else { - currentNode.rightChild = this.addInternally(currentNode.rightChild, newValue); - } - this._length++; - return currentNode; - }; - BinarySearchTree.prototype.add = function (newValue) { - if (!this.root) { - this.root = new Node(newValue); - return; - } - this.addInternally(this.root, newValue); - }; - BinarySearchTree.prototype.forEach = function (callback) { - this.forEachInternally(this.root, callback); - }; - BinarySearchTree.prototype.forEachOrderedInternally = function (currentNode, callback, order) { - if (!currentNode) { - return; - } - if (order === "PRE") { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.leftChild, callback, order); - if (!order) { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.rightChild, callback, order); - if (order === "POST") { - callback(currentNode.val, NaN); - } - }; - BinarySearchTree.prototype.forEachInternally = function (currentNode, callback) { - if (!currentNode) { - return; - } - this.forEachInternally(currentNode.leftChild, callback); - callback(currentNode.val, NaN); - this.forEachInternally(currentNode.rightChild, callback); - }; - BinarySearchTree.prototype.searchInternally = function (currentNode, value) { - if (currentNode) { - if (value === currentNode.val) { - return currentNode; - } - if (value < currentNode.val) { - return this.searchInternally(currentNode.leftChild, value); - } - return this.searchInternally(currentNode.rightChild, value); - } - return null; - }; - BinarySearchTree.prototype.search = function (value) { - return this.searchInternally(this.root, value); - }; - BinarySearchTree.prototype.contains = function (value) { - return !!this.search(value); - }; - BinarySearchTree.prototype.remove = function (value) { - var removed = this.removeInternally(this.root, value); - if (removed) { - this._length--; - } - return removed; - }; - BinarySearchTree.prototype.removeInternally = function (currentNode, value) { - var _a, _b; - if (!currentNode) { - return false; - } - var parentNode = null; - while (currentNode && (currentNode.val !== value)) { - parentNode = currentNode; - if (value < currentNode.val) { - currentNode = currentNode.leftChild; - } - else { - currentNode = currentNode.rightChild; - } - } - if (currentNode === null) { - return false; - } - if (!currentNode.leftChild && !currentNode.rightChild) { - if (currentNode.val === ((_a = this.root) === null || _a === void 0 ? void 0 : _a.val)) { - this.root = null; - return true; - } - if (currentNode.val < parentNode.val) { - parentNode.leftChild = null; - return true; - } - parentNode.rightChild = null; - return true; - } - if (!currentNode.rightChild) { - if (currentNode.val === ((_b = this.root) === null || _b === void 0 ? void 0 : _b.val)) { - this.root = currentNode.leftChild; - return true; - } - if (currentNode.leftChild.val < parentNode.val) { - parentNode.leftChild = currentNode.leftChild; - return true; - } - parentNode.rightChild = currentNode.leftChild; - return true; - } - if (!currentNode.leftChild) { - if (currentNode.val === this.root.val) { - this.root = currentNode.rightChild; - return true; - } - if (currentNode.rightChild.val < parentNode.val) { - parentNode.leftChild = currentNode.rightChild; - return true; - } - parentNode.rightChild = currentNode.rightChild; - return true; - } - var minRight = currentNode.rightChild; - while (minRight.leftChild !== null) { - minRight = minRight.leftChild; - } - var temp = minRight.val; - this.removeInternally(this.root, minRight.val); - currentNode.val = temp; - return true; - }; - return BinarySearchTree; -}()); -export { BinarySearchTree }; -//# sourceMappingURL=binary-tree.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/binary-tree.js.map b/dist/_esm5/models/data-structures/binary-tree.js.map deleted file mode 100644 index 95d8a20e..00000000 --- a/dist/_esm5/models/data-structures/binary-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-tree.js","sourceRoot":"","sources":["../../../../src/models/data-structures/binary-tree.ts"],"names":[],"mappings":"AAEA;IAII,cAA0B,GAAM;QAAN,QAAG,GAAH,GAAG,CAAG;QAHzB,cAAS,GAAoB,IAAI,CAAC;QAClC,eAAU,GAAmB,IAAI,CAAC;IAGzC,CAAC;IACL,WAAC;AAAD,CAAC,AAND,IAMC;AAKD;IAQI,0BAAmB,SAAY;QANvB,YAAO,GAAG,CAAC,CAAC;QAOhB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAND,sBAAW,oCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;;;OAAA;IAMM,gCAAK,GAAZ;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAM,IAAI,CAAC;IACxB,CAAC;IAEO,wCAAa,GAArB,UAAsB,WAA2B,EAAE,QAAW;QAC1D,IAAI,WAAW,KAAK,IAAI,EAAE;YACtB,WAAW,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;SACpC;aAAM,IAAI,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;YACnC,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;SAC/E;aAAM;YACH,WAA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C,WAAW,CAAC,SAAS,EAAE;YACxB,IAAI,WAAW,CAAC,GAAG,KAAK,IAAI,CAAC,IAAK,CAAC,GAAG,EAAE;gBACpC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC;gBAEnC,OAAO,IAAI,CAAC;aACf;YACD,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,GAAG,UAAW,CAAC,GAAG,EAAE;gBAC9C,UAAW,CAAC,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC;gBAE/C,OAAO,IAAI,CAAC;aACf;YACD,UAAW,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;YAEhD,OAAO,IAAI,CAAC;SAEf;QACD,IAAI,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC;QACtC,OAAO,QAAQ,CAAC,SAAS,KAAK,IAAI,EAAE;YAChC,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC;SACjC;QACD,IAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,WAAW,CAAC,GAAG,GAAG,IAAI,CAAC;QAEvB,OAAO,IAAI,CAAC;IAEhB,CAAC;IACL,uBAAC;AAAD,CAAC,AA5LD,IA4LC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/g43-collection.js b/dist/_esm5/models/data-structures/g43-collection.js deleted file mode 100644 index e501334d..00000000 --- a/dist/_esm5/models/data-structures/g43-collection.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=g43-collection.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/g43-collection.js.map b/dist/_esm5/models/data-structures/g43-collection.js.map deleted file mode 100644 index 226a3492..00000000 --- a/dist/_esm5/models/data-structures/g43-collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g43-collection.js","sourceRoot":"","sources":["../../../../src/models/data-structures/g43-collection.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js b/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js deleted file mode 100644 index c849fa01..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid-filters.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js.map b/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js.map deleted file mode 100644 index 1ca7584b..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid-filters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-filters.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid-filters.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js b/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js deleted file mode 100644 index 5a270151..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Grid2BlockAccessor } from "./grid2-block-accessor"; -var Grid2Accessor = (function () { - function Grid2Accessor(holder) { - this.holder = holder; - this.around4Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - ]; - this.around8Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - { x: +1, y: +1 }, - { x: +1, y: -1 }, - { x: -1, y: +1 }, - { x: -1, y: -1 }, - ]; - } - Grid2Accessor.prototype.get = function (position) { - return this.holder.get(position.x, position.y); - }; - Grid2Accessor.prototype.getAccessor = function (position) { - return new Grid2BlockAccessor(this.holder, position); - }; - Grid2Accessor.prototype.getRandomAround = function (position, radius, condition) { - return this.holder.getAroundData(position.x, position.y, radius).sort(Math.random).find(condition); - }; - Grid2Accessor.prototype.getRandomBlock = function (filter) { - return this.holder.getRandomBlock(filter); - }; - Grid2Accessor.prototype.checkEveryFromPosAndSize = function (position, size, condition) { - return this.holder.getArea(position, size).every(condition); - }; - return Grid2Accessor; -}()); -export { Grid2Accessor }; -//# sourceMappingURL=grid2-accessor.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js.map b/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js.map deleted file mode 100644 index f304fbe2..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid2-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-accessor.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid2-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D;IAkBI,uBACqB,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QAlB1B,mBAAc,GAAG;YAC9B,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;SACjB,CAAC;QACe,mBAAc,GAAG;YAC9B,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;YACd,EAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,E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id2-block-accessor.js b/dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js deleted file mode 100644 index 09069e39..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js +++ /dev/null @@ -1,45 +0,0 @@ -var Grid2BlockAccessor = (function () { - function Grid2BlockAccessor(holder, position) { - this.holder = holder; - this.position = position; - } - Grid2BlockAccessor.prototype.check = function (filter) { - return filter(this.holder.get(this.position.x, this.position.y)); - }; - Grid2BlockAccessor.prototype.getByOffset = function (x, y) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - return new Grid2BlockAccessor(this.holder, { x: this.position.x + x, y: this.position.y - y }); - }; - Object.defineProperty(Grid2BlockAccessor.prototype, "top", { - get: function () { - return this.getByOffset(0, -1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "bottom", { - get: function () { - return this.getByOffset(0, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "left", { - get: function () { - return this.getByOffset(-1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "right", { - get: function () { - return this.getByOffset(1, 0); - }, - enumerable: false, - configurable: true - }); - return Grid2BlockAccessor; -}()); -export { Grid2BlockAccessor }; -//# sourceMappingURL=grid2-block-accessor.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js.map b/dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js.map deleted file mode 100644 index 80b0de39..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/grid2-block-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-block-accessor.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts"],"names":[],"mappings":"AAIA;IACI,4BACqB,MAAsB,EACtB,QAAuB;QADvB,WAAM,GAAN,MAAM,CAAgB;QACtB,aAAQ,GAAR,QAAQ,CAAe;IAE5C,CAAC;IAEM,kCAAK,GAAZ,UAAa,MAA8B;QACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAM,CAAC,CAAC;IAC1E,CAAC;IAEM,wCAAW,GAAlB,UAAmB,CAAK,EAAE,CAAK;QAAZ,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAC3B,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;IACjG,CAAC;IAED,sBAAW,mCAAG;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAW,sCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;;;OAAA;IAED,sBAAW,oCAAI;aAAf;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAW,qCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;;;OAAA;IACL,yBAAC;AAAD,CAAC,AA9BD,IA8BC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js deleted file mode 100644 index c5aa8d3a..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js +++ /dev/null @@ -1,293 +0,0 @@ -import { Vector2 } from "../../../../math"; -function getMapIndex(x, y, width) { - return y * width + x; -} -function getCoordinates(index, width) { - return { - x: index % width, - y: Math.floor(index / width), - }; -} -var Grid2ArrayHolder = (function () { - function Grid2ArrayHolder(size, data) { - this.size = size; - this.data = data; - } - Object.defineProperty(Grid2ArrayHolder.prototype, "length", { - get: function () { - return this.data.length; - }, - enumerable: false, - configurable: true - }); - Grid2ArrayHolder.initEmpty = function (x, y, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var size = x * y; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid2ArrayHolder({ x: x, y: y }, result); - }; - Grid2ArrayHolder.initWithProvider = function (x, y, provider) { - var size = x * y; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = provider(x, y); - } - return new Grid2ArrayHolder({ x: x, y: y }, result); - }; - Grid2ArrayHolder.prototype.setData = function (data) { - var _a; - if (data.length !== this.data.length) { - throw new Error("Array with new data mush be same size"); - } - this.data.length = 0; - (_a = this.data).push.apply(_a, data); - }; - Grid2ArrayHolder.prototype.get = function (x, y) { - return this.data[this.getIndex(x, y)]; - }; - Grid2ArrayHolder.prototype.set = function (x, y, value) { - this.data[this.getIndex(x, y)] = value; - }; - Grid2ArrayHolder.prototype.delete = function (x, y) { - this.data[this.getIndex(x, y)] = undefined; - }; - Grid2ArrayHolder.prototype.getIndex = function (x, y) { - return getMapIndex(x, y, this.size.x); - }; - Grid2ArrayHolder.prototype.getCoordinates = function (index) { - return getCoordinates(index, this.size.x); - }; - Grid2ArrayHolder.prototype.getAroundData = function (x, y, size) { - if (size === void 0) { size = 1; } - var center = { x: x, y: y }; - var minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - var maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "block").filter(function (e) { return Vector2.dist(e.coordinates, center) <= size; }); - }; - Grid2ArrayHolder.prototype.getAround = function (x, y, size) { - if (size === void 0) { size = 1; } - return this.getAroundData(x, y, size).map(function (e) { return e.item; }); - }; - Grid2ArrayHolder.prototype.getAroundSQ = function (x, y, size) { - if (size === void 0) { size = 1; } - var minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - var maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "data"); - }; - Grid2ArrayHolder.prototype.getBetween = function (pointA, pointB) { - var min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - }; - var max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - }, "data"); - }; - Grid2ArrayHolder.prototype.getNearest = function (x, y, condition) { - var _this = this; - var Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - var data = {}; - var result = []; - var current = [[this.getIndex(x, y)]]; - var _loop_1 = function () { - var actualLevel = current.shift(); - var nextLevel = []; - actualLevel.forEach(function (actual) { - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - return; - } - var coordinates = _this.getCoordinates(actual); - if (condition(_this.data[actual])) { - data[actual] = Statuses.ADDED; - result.push({ coordinates: coordinates, item: _this.data[actual] }); - } - else { - data[actual] = Statuses.FALSE; - nextLevel.push.apply(nextLevel, _this.getAround4(coordinates.x, coordinates.y)); - } - }); - current.push(nextLevel); - }; - while (!result.length) { - _loop_1(); - } - return result; - }; - Grid2ArrayHolder.prototype.expandConditionally = function (x, y, condition) { - var Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - var data = {}; - var current = [this.getIndex(x, y)]; - var result = []; - while (current.length) { - var actual = current.shift(); - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - continue; - } - if (condition(this.data[actual])) { - data[actual] = Statuses.ADDED; - var coordinates = this.getCoordinates(actual); - result.push({ coordinates: coordinates, item: this.data[actual] }); - current.push.apply(current, this.getAround4(coordinates.x, coordinates.y)); - } - else { - data[actual] = Statuses.FALSE; - } - } - return result; - }; - Grid2ArrayHolder.prototype.getAround4 = function (x, y) { - var centerIndex = this.getIndex(x, y); - var result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - }; - Grid2ArrayHolder.prototype.getAround4Index = function (centerIndex) { - var _a = this.getCoordinates(centerIndex), x = _a.x, y = _a.y; - var result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - }; - Grid2ArrayHolder.prototype.getArea = function (position, size) { - return this.getAreaInternally(position, size, "data"); - }; - Grid2ArrayHolder.prototype.getAreaInternally = function (position, size, select) { - var _this = this; - var result = new Array(size.x * size.y); - var counter = 0; - var y = position.y; - if (select === "block") { - for (var i = 0; i < size.y; i++) { - var currentIndex = this.getIndex(position.x, y); - for (var j = 0; j < size.x; j++) { - result[counter++] = { - index: currentIndex, - item: this.data[currentIndex++], - coordinates: { y: y, x: position.x + j }, - }; - } - y++; - } - return result; - } - for (var i = 0; i < size.y; i++) { - var currentIndex = this.getIndex(position.x, y); - for (var j = 0; j < size.x; j++) { - result[counter++] = currentIndex++; - } - y++; - } - if (select === "indices") { - return result; - } - return result.map(function (index) { return _this.data[index]; }); - }; - Grid2ArrayHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - if (callback(this.data[i], i % this.size.x, Math.floor(i / this.size.x)) === false) { - return false; - } - } - return true; - }; - Grid2ArrayHolder.prototype.getRandomBlockOfSize = function (size, filter) { - while (true) { - var randomIndex = Math.floor(Math.random() * this.data.length); - var blocks = this.getArea(this.getCoordinates(randomIndex), size); - if (blocks.every(function (item) { return filter(item); })) { - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - } - }; - Grid2ArrayHolder.prototype.getRandomBlock = function (filter) { - while (true) { - var randomIndex = Math.floor(Math.random() * this.data.length); - var item = this.data[randomIndex]; - if (!filter || filter(item)) { - return { - item: item, - coordinates: this.getCoordinates(randomIndex), - }; - } - } - }; - Grid2ArrayHolder.prototype.getRandomBlock2 = function (filter) { - if (!filter) { - var randomIndex = Math.floor(Math.random() * this.data.length); - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - var sortedArray = this.data.map(function (item, index) { return ({ item: item, index: index }); }).sort(function () { return Math.random() - 0.5; }); - var result = sortedArray.find(function (e) { return filter(e.item); }); - if (!result) { - return; - } - return { - item: result.item, - coordinates: this.getCoordinates(result.index), - }; - }; - return Grid2ArrayHolder; -}()); -export { Grid2ArrayHolder }; -//# sourceMappingURL=grid2-array-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map deleted file mode 100644 index e9e796e1..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-array-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,OAAO,EAAE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,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAEjE,OAAO;gBACH,IAAI,EAAS,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;gBACnC,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;aAChD,CAAC;SACL;QAED,IAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAAC,EAAC,IAAI,MAAA,EAAE,KAAK,OAAA,EAAC,CAAC,EAAf,CAAe,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAnB,CAAmB,CAAC,CAAC;QACpG,IAAM,MAAM,GAAQ,WAAW,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAC;QAE5D,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QAED,OAAO;YACH,IAAI,EAAS,MAAM,CAAC,IAAI;YACxB,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC;SACjD,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AAxUD,IAwUC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js deleted file mode 100644 index 27438276..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js +++ /dev/null @@ -1,39 +0,0 @@ -import { hash2Numbers } from "../../../../utils/math-utils"; -var Grid2HashHolder = (function () { - function Grid2HashHolder() { - this.data = {}; - } - Object.defineProperty(Grid2HashHolder.prototype, "length", { - get: function () { - return Object.keys(this.data).length; - }, - enumerable: false, - configurable: true - }); - Grid2HashHolder.prototype.get = function (x, y) { - var _a; - return (_a = this.data[hash2Numbers(x, y)]) === null || _a === void 0 ? void 0 : _a.value; - }; - Grid2HashHolder.prototype.set = function (x, y, value) { - this.data[hash2Numbers(x, y)] = { x: x, y: y, value: value }; - }; - Grid2HashHolder.prototype.forEach = function (callback) { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y)); }); - return true; - }; - Grid2HashHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2HashHolder.prototype.delete = function (x, y) { - delete this.data[hash2Numbers(x, y)]; - }; - Grid2HashHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2HashHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2HashHolder; -}()); -export { Grid2HashHolder }; -//# sourceMappingURL=grid2-hash-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map deleted file mode 100644 index ab5f4b2f..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-hash-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D;IAAA;QACqB,SAAI,GAA0D,EAAE,CAAC;IAmCtF,CAAC;IAjCG,sBAAW,mCAAM;aAAjB;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QACzC,CAAC;;;OAAA;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS;;QAC3B,aAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC;IAChD,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,KAAK,OAAA,EAAC,CAAC;IAClD,CAAC;IAEM,iCAAO,GAAd,UAAe,QAAkD;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAtC,CAAsC,CAAC,CAAC;QAEnF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,gCAAM,GAAb,UAAc,CAAS,EAAE,CAAS;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAEM,uCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,wCAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,sBAAC;AAAD,CAAC,AApCD,IAoCC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js deleted file mode 100644 index 98a14655..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid2-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map deleted file mode 100644 index 2e2ff341..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js deleted file mode 100644 index e6db2632..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js +++ /dev/null @@ -1,56 +0,0 @@ -var Grid2MapHolder = (function () { - function Grid2MapHolder(data) { - this.data = data; - this.length = this.data.length * this.data[0].length; - } - Grid2MapHolder.initEmpty = function (x, y, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var result = new Array(x); - for (var i = 0; i < x; i++) { - result[i] = new Array(y); - for (var j = 0; j < y; j++) { - result[i][j] = defaultValue; - } - } - return new Grid2MapHolder(result); - }; - Grid2MapHolder.initWithProvider = function (x, y, provider) { - var result = new Array(x); - for (var i = 0; i < x; i++) { - result[i] = new Array(y); - for (var j = 0; j < y; j++) { - result[i][j] = provider(x, y); - } - } - return new Grid2MapHolder(result); - }; - Grid2MapHolder.prototype.get = function (x, y) { - return this.data[x][y]; - }; - Grid2MapHolder.prototype.set = function (x, y, value) { - this.data[x][y] = value; - }; - Grid2MapHolder.prototype.delete = function (x, y) { - this.data[x][y] = undefined; - }; - Grid2MapHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - for (var j = 0; j < this.data[i].length; j++) { - callback(this.data[i][j], i, j); - } - } - return true; - }; - Grid2MapHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2MapHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2MapHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2MapHolder; -}()); -export { Grid2MapHolder }; -//# sourceMappingURL=grid2-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map deleted file mode 100644 index 642268ca..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-map-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts"],"names":[],"mappings":"AAGA;IAGI,wBAAmC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAF9B,WAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAGhE,CAAC;IAEa,wBAAS,GAAvB,UAA2B,CAAS,EAAE,CAAS,EAAE,YAAsC;QAAtC,6BAAA,EAAA,eAAkB,IAAoB;QACnF,IAAM,MAAM,GAAG,IAAI,KAAK,CAAM,CAAC,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,CAAC;YAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBACxB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;aAC/B;SACJ;QAED,OAAO,IAAI,cAAc,CAAI,MAAM,CAAC,CA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AC1C,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;aACnC;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,sCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,uCAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,qBAAC;AAAD,CAAC,AA/DD,IA+DC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js deleted file mode 100644 index 0f982f0d..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getOrSetProperty } from "../../../../utils/object-utils"; -var Grid2ObjectHolder = (function () { - function Grid2ObjectHolder() { - this.data = {}; - this._length = 0; - } - Grid2ObjectHolder.prototype.get = function (x, y) { - var row = getOrSetProperty(this.data, x, {}); - return row[y]; - }; - Grid2ObjectHolder.prototype.remove = function (x, y) { - var row = getOrSetProperty(this.data, x, {}); - if (row[y]) { - this._length--; - } - delete row[y]; - }; - Grid2ObjectHolder.prototype.forEach = function (callback) { - Object.entries(this.data).forEach(function (_a) { - var x = _a[0], chunkRows = _a[1]; - Object.entries(chunkRows).forEach(function (_a) { - var y = _a[0], chunk = _a[1]; - callback(chunk, +x, +y); - }); - }); - return true; - }; - Grid2ObjectHolder.prototype.set = function (x, y, value) { - var row = getOrSetProperty(this.data, x, {}); - if (typeof row[y] === "undefined") { - this._length++; - } - row[y] = value; - }; - Grid2ObjectHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2ObjectHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2ObjectHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2ObjectHolder; -}()); -export { Grid2ObjectHolder }; -//# sourceMappingURL=grid2-object-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map deleted file mode 100644 index fb9bfa87..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE;IAAA;QACqB,SAAI,GAAwC,EAAE,CAAC;QACxD,YAAO,GAA8C,CAAC,CAAC;IA+CnE,CAAC;IA7CU,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS;QAC3B,IAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE/C,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAEM,kCAAM,GAAb,UAAc,CAAS,EAAE,CAAS;QAC9B,IAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACR,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QACD,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAiD;QAC5D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,EAAc;gBAAb,CAAC,QAAA,EAAE,SAAS,QAAA;YAC5C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,UAAC,EAAU;oBAAT,CAAC,QAAA,EAAE,KAAK,QAAA;gBACxC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAE/C,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,WAAW,EAAE;YAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IACnB,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,yCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,0CAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,wBAAC;AAAD,CAAC,AAjDD,IAiDC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js deleted file mode 100644 index ac20836d..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js +++ /dev/null @@ -1,47 +0,0 @@ -var Grid2ObjectMapHolder = (function () { - function Grid2ObjectMapHolder() { - this.chunks = new Map(); - } - Object.defineProperty(Grid2ObjectMapHolder.prototype, "length", { - get: function () { - var length = 0; - this.chunks.forEach(function (value) { return length += value.size; }); - return length; - }, - enumerable: false, - configurable: true - }); - Grid2ObjectMapHolder.prototype.get = function (x, y) { - var _a; - return (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.get(y); - }; - Grid2ObjectMapHolder.prototype.remove = function (x, y) { - var _a, _b; - return (_b = (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.delete(y)) !== null && _b !== void 0 ? _b : false; - }; - Grid2ObjectMapHolder.prototype.forEach = function (callback) { - this.chunks.forEach(function (row, x) { return row.forEach(function (item, y) { return callback(item, x, y); }); }); - return true; - }; - Grid2ObjectMapHolder.prototype.set = function (x, y, value) { - var row = this.chunks.get(x); - if (row) { - row.set(y, value); - } - else { - this.chunks.set(x, new Map([[y, value]])); - } - }; - Grid2ObjectMapHolder.prototype.getArea = function (position, size) { - return []; - }; - Grid2ObjectMapHolder.prototype.getAroundData = function (x, y, size) { - return []; - }; - Grid2ObjectMapHolder.prototype.getRandomBlock = function (filter) { - return; - }; - return Grid2ObjectMapHolder; -}()); -export { Grid2ObjectMapHolder }; -//# sourceMappingURL=grid2-object-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map deleted file mode 100644 index a98207e0..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-map-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts"],"names":[],"mappings":"A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C,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAC7C;IACL,CAAC;IAEM,sCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,4CAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,6CAAc,GAArB,UAAsB,MAA+B;QACjD,OAAO;IACX,CAAC;IACL,2BAAC;AAAD,CAAC,AA7CD,IA6CC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js deleted file mode 100644 index fa4fef6e..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js +++ /dev/null @@ -1,37 +0,0 @@ -var Grid2StringHolder = (function () { - function Grid2StringHolder() { - this.data = {}; - } - Object.defineProperty(Grid2StringHolder.prototype, "length", { - get: function () { - return Object.keys(this.data).length; - }, - enumerable: false, - configurable: true - }); - Grid2StringHolder.prototype.get = function (x, y) { - return this.data[x + "_" + y].value; - }; - Grid2StringHolder.prototype.set = function (x, y, value) { - this.data[x + "_" + y] = { x: x, y: y, value: value }; - }; - Grid2StringHolder.prototype.forEach = function (callback) { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y)); }); - return true; - }; - Grid2StringHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2StringHolder.prototype.delete = function (x, y) { - delete this.data[x + "_" + y]; - }; - Grid2StringHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2StringHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2StringHolder; -}()); -export { Grid2StringHolder }; -//# sourceMappingURL=grid2-string-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map deleted file mode 100644 index bfc0baf6..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-string-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts"],"names":[],"mappings":"AAGA;IAAA;QACqB,SAAI,GAA0D,EAAE,CAAC;IAmCtF,CAAC;IAjCG,sBAAW,qCAAM;aAAjB;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QACzC,CAAC;;;OAAA;IAEM,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,CAAC,KAAK,CAAC;IACxC,CAAC;IAEM,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,GAAG,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,KAAK,OAAA,EAAC,CAAC;IAC3C,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAkD;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAtC,CAAsC,CAAC,CAAC;QAEnF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,kCAAM,GAAb,UAAc,CAAS,EAAE,CAAS;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,CAAC;IAClC,CAAC;IAEM,yCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,0CAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,wBAAC;AAAD,CAAC,AApCD,IAoCC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js deleted file mode 100644 index 04efa362..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js +++ /dev/null @@ -1,68 +0,0 @@ -import "mocha"; -import { Grid2ArrayHolder } from "./grid2-array-holder"; -import { Grid2HashHolder } from "./grid2-hash-holder"; -import { Grid2MapHolder } from "./grid2-map-holder"; -import { Grid2ObjectHolder } from "./grid2-object-holder"; -import { Grid2ObjectMapHolder } from "./grid2-object-map-holder"; -import { Grid2StringHolder } from "./grid2-string-holder"; -describe("Grid2", function () { - describe("default", function () { - var size = { x: 256, y: 256 }; - var arrayHolder = Grid2ArrayHolder.initEmpty(size.x, size.y, 0); - var mapHolder = Grid2MapHolder.initEmpty(size.x, size.y, 0); - var hashHolder = new Grid2HashHolder(); - var objectHolder = new Grid2ObjectHolder(); - var stringHolder = new Grid2StringHolder(); - var objectMapHolder = new Grid2ObjectMapHolder(); - var sorts = [ - arrayHolder, - mapHolder, - objectHolder, - objectMapHolder, - stringHolder, - ]; - var createArray = function () { - var result = new Array(size.x); - for (var i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (var j = 0; j < size.y; j++) { - result[i][j] = Math.random(); - } - } - return result; - }; - it("It should test adding", function () { - sorts.forEach(function (holder) { - var testArr = createArray(); - var start = Date.now(); - testArr.forEach(function (row, x) { - row.forEach(function (item, y) { - holder.set(x, y, item); - }); - }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - for (var x = 0; x < size.x; x++) { - for (var y = 0; y < size.y; y++) { - holder.get(x, y); - } - } - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid2.perf.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map deleted file mode 100644 index 908db9d4..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2.perf.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAQ,CAAC,OAAO,EAAE;IACd,QAAQ,CAAC,SAAS,EAAE;QAEhB,IAAM,IAAI,GAAc,EAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAC,CAAC;QACzC,IAAM,WAAW,GAAO,gBAAgB,CAAC,S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AAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js deleted file mode 100644 index 89e3f4d9..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js +++ /dev/null @@ -1,50 +0,0 @@ -export function getIndex(x, y, z, width, height) { - if (height === void 0) { height = width; } - return x + (z * width) + (y * width * height); -} -export function getCoordinates(index, width, height) { - if (height === void 0) { height = width; } - return { - x: index % width, - y: Math.floor(index / (width * height)), - z: (index / width) % width, - }; -} -var Grid3ArrayHolder = (function () { - function Grid3ArrayHolder(size, data) { - this.size = size; - this.data = data; - } - Grid3ArrayHolder.prototype.getIndex = function (x, y, z) { - return getIndex(x, y, z, this.size.x); - }; - Grid3ArrayHolder.prototype.getCoordinates = function (index) { - return getCoordinates(index, this.size.x); - }; - Grid3ArrayHolder.initEmpty = function (x, y, z, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var size = x * y * z; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid3ArrayHolder({ x: x, y: y, z: z }, result); - }; - Grid3ArrayHolder.prototype.get = function (x, y, z) { - return this.data[this.getIndex(x, y, z)]; - }; - Grid3ArrayHolder.prototype.set = function (x, y, z, value) { - this.data[this.getIndex(x, y, z)] = value; - }; - Grid3ArrayHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - var coordinates = this.getCoordinates(i); - if (callback(this.data[i], coordinates.x, coordinates.y, coordinates.z) === false) { - return; - } - } - }; - return Grid3ArrayHolder; -}()); -export { Grid3ArrayHolder }; -//# sourceMappingURL=grid3-array-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map deleted file mode 100644 index 08a7d72a..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-array-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,QAAQ,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAa,EAAE,MAAc;IAAd,uBAAA,EAAA,cAAc;IACnF,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc;IAAd,uBAAA,EAAA,cAAc;IACvE,OAAO;QACH,CAAC,EAAE,KAAK,GAAG,KAAK;QAChB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;QACvC,CAAC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK;KAC7B,CAAC;AACN,CAAC;AAKD;IACI,0BAAoC,IAAmB,EAAmB,IAAS;QAA/C,SAAI,GAAJ,IAAI,CAAe;QAAmB,SAAI,GAAJ,IAAI,CAAK;IACnF,CAAC;IAEO,mCAAQ,GAAhB,UAAiB,CAAS,EAAE,CAAS,EAAE,CAAS;QAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEO,yCAAc,GAAtB,UAAuB,KA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AC,EAAE,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE;gBAC/E,OAAO;aACV;SACJ;IACL,CAAC;IACL,uBAAC;AAAD,CAAC,AAtCD,IAsCC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js deleted file mode 100644 index 5c4a95ce..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js +++ /dev/null @@ -1,36 +0,0 @@ -import { hash3Numbers } from "../../../../utils/math-utils"; -var Grid3HashHolder = (function () { - function Grid3HashHolder(cacheForIteration) { - if (cacheForIteration === void 0) { cacheForIteration = false; } - this.cacheForIteration = cacheForIteration; - this.data = {}; - this.values = []; - } - Grid3HashHolder.prototype.get = function (x, y, z) { - var _a; - return (_a = this.data[hash3Numbers(x, y, z)]) === null || _a === void 0 ? void 0 : _a.value; - }; - Grid3HashHolder.prototype.set = function (x, y, z, value) { - this.data[hash3Numbers(x, y, z)] = { value: value, x: x, y: y, z: z }; - if (this.cacheForIteration) { - this.values = Object.values(this.data); - } - }; - Grid3HashHolder.prototype.delete = function (x, y, z) { - delete this.data[hash3Numbers(x, y, z)]; - if (this.cacheForIteration) { - this.values = Object.values(this.values); - } - }; - Grid3HashHolder.prototype.forEach = function (callback) { - if (this.cacheForIteration) { - this.values.forEach(function (item) { return callback(item.value, item.x, item.y, item.z); }); - } - else { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y, item.z)); }); - } - }; - return Grid3HashHolder; -}()); -export { Grid3HashHolder }; -//# sourceMappingURL=grid3-hash-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map deleted file mode 100644 index bf0e9397..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-hash-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D;IAGI,yBAAoC,iBAAyB;QAAzB,kCAAA,EAAA,yBAAyB;QAAzB,sBAAiB,GAAjB,iBAAiB,CAAQ;QAF5C,SAAI,GAAqE,EAAE,CAAC;QACrF,WAAM,GAAgF,EAAE,CAAC;IAEjG,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,CAAS;;QACtC,aAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC;IACnD,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAQ;QAChD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAC,KAAK,OAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC,CAAC;QACpD,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC1C;IACL,CAAC;IAEM,gCAAM,GAAb,UAAc,CAAS,EAAE,CAAS,EAAE,CAAS;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5C;IACL,CAAC;IAEM,iCAAO,GAAd,UAAe,QAA6D;QACxE,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAA5C,CAA4C,CAAC,CAAC;SAC/E;aAAM;YACH,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAA9C,CAA8C,CAAC,CAAC;SAC9F;IACL,CAAC;IACL,sBAAC;AAAD,CAAC,AA/BD,IA+BC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js deleted file mode 100644 index 277db859..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=grid3-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map deleted file mode 100644 index de8f994e..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js deleted file mode 100644 index afbf1d0f..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js +++ /dev/null @@ -1,109 +0,0 @@ -var Grid3MapHolder = (function () { - function Grid3MapHolder(data) { - this.data = data; - } - Grid3MapHolder.initEmpty = function (x, y, z, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var result = new Array(x); - for (var i = 0; i < x; i++) { - var resA = new Array(y); - for (var j = 0; j < y; j++) { - var resB = new Array(z); - for (var k = 0; k < z; k++) { - resB[k] = defaultValue; - } - resA[j] = resB; - } - result[i] = resA; - } - return new Grid3MapHolder(result); - }; - Grid3MapHolder.prototype.get = function (x, y, z) { - var _a, _b; - return (_b = (_a = this.data[x]) === null || _a === void 0 ? void 0 : _a[y]) === null || _b === void 0 ? void 0 : _b[z]; - }; - Grid3MapHolder.prototype.set = function (x, y, z, value) { - this.data[x][y][z] = value; - }; - Grid3MapHolder.prototype.getBetween = function (pointA, pointB) { - var min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - z: Math.min(pointA.z, pointB.z), - }; - var max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - z: Math.max(pointA.z, pointB.z), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - z: max.z - min.z + 1, - }, "data"); - }; - Grid3MapHolder.prototype.getArea = function (position, size) { - return this.getAreaInternally(position, size, "data"); - }; - Grid3MapHolder.prototype.setData = function (data) { - this.data.splice(0, this.data.length); - Object.assign(this.data, data); - }; - Grid3MapHolder.prototype.getAreaInternally = function (position, size, select) { - var result = []; - if (select === "block") { - for (var i = 0; i < size.x; i++) { - for (var j = 0; j < size.y; j++) { - for (var k = 0; k < size.z; k++) { - var x = i + position.x; - var y = j + position.y; - var z = k + position.z; - result.push({ - item: this.data[x][y][z], - coordinates: { x: x, y: y, z: z }, - }); - } - } - } - return result; - } - for (var i = 0; i < size.x; i++) { - for (var j = 0; j < size.y; j++) { - for (var k = 0; k < size.z; k++) { - var x = i + position.x; - var y = j + position.y; - var z = k + position.z; - result.push(this.data[x][y][z]); - } - } - } - return result; - }; - Grid3MapHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - for (var j = 0; j < this.data[i].length; j++) { - for (var k = 0; k < this.data[i][j].length; k++) { - callback(this.data[i][j][k], i, j, k); - } - } - } - }; - Grid3MapHolder.prototype.getRandomBlock = function (filter) { - while (true) { - var x = Math.floor(Math.random() * this.data.length); - var y = Math.floor(Math.random() * this.data[x].length); - var z = Math.floor(Math.random() * this.data[x][y].length); - var item = this.data[x][y][z]; - if (filter && !filter(item)) { - continue; - } - return { - item: item, - coordinates: { x: x, y: y, z: z }, - }; - } - }; - return Grid3MapHolder; -}()); -export { Grid3MapHolder }; -//# sourceMappingURL=grid3-map-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map deleted file mode 100644 index 7e903362..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-map-holder.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts"],"names":[],"mappings":"AAIA;IACI,wBAAmC,IAAa;QAAb,SAAI,GAAJ,IAAI,CAAS;IAChD,CAAC;IAEa,wBAAS,GAAvB,UAA2B,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,YAAsC;QAAtC,6BAAA,EAAA,eAAkB,IAAoB;QAC9F,IAAM,MAAM,GAAG,IAAI,KAAK,CAAQ,CAAC,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE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C,EAAE;gBACzB,SAAS;aACZ;YAED,OAAO;gBACH,IAAI,MAAA;gBACJ,WAAW,EAAE,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC;aACzB,CAAC;SACL;IACL,CAAC;IAEL,qBAAC;AAAD,CAAC,AA5HD,IA4HC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js deleted file mode 100644 index b04583e4..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js +++ /dev/null @@ -1,31 +0,0 @@ -import { getOrSetProperty } from "../../../../utils/object-utils"; -var Grid3ObjectHolder = (function () { - function Grid3ObjectHolder() { - this.data = {}; - } - Grid3ObjectHolder.prototype.get = function (x, y, z) { - var row = getOrSetProperty(this.data, x, {}); - var column = getOrSetProperty(row, y, {}); - return column[z]; - }; - Grid3ObjectHolder.prototype.set = function (x, y, z, value) { - var row = getOrSetProperty(this.data, x, {}); - var column = getOrSetProperty(row, y, {}); - column[z] = value; - }; - Grid3ObjectHolder.prototype.forEach = function (callback) { - Object.entries(this.data).forEach(function (_a) { - var x = _a[0], chunkRows = _a[1]; - Object.entries(chunkRows).forEach(function (_a) { - var y = _a[0], chunk = _a[1]; - Object.entries(chunk).forEach(function (_a) { - var z = _a[0], item = _a[1]; - callback(item, +x, +y, +z); - }); - }); - }); - }; - return Grid3ObjectHolder; -}()); -export { Grid3ObjectHolder }; -//# sourceMappingURL=grid3-object-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map deleted file mode 100644 index f6ad24a1..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-object-holder.js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AAC,CAAC,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IACL,wBAAC;AAAD,CAAC,AA1BD,IA0BC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js deleted file mode 100644 index 5b6854a8..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js +++ /dev/null @@ -1,71 +0,0 @@ -import "mocha"; -import { Grid3ArrayHolder } from "./grid3-array-holder"; -import { Grid3HashHolder } from "./grid3-hash-holder"; -import { Grid3MapHolder } from "./grid3-map-holder"; -import { Grid3ObjectHolder } from "./grid3-object-holder"; -describe("Grid3", function () { - describe("default", function () { - var sizeOne = 128; - var size = { x: sizeOne, y: sizeOne, z: sizeOne }; - var arrayHolder = Grid3ArrayHolder.initEmpty(size.x, size.y, size.z, 0); - var mapHolder = Grid3MapHolder.initEmpty(size.x, size.y, size.z, 0); - var objectHolder = new Grid3ObjectHolder(); - var hashHolder = new Grid3HashHolder(); - var sorts = [ - arrayHolder, - objectHolder, - mapHolder, - ]; - var createArray = function () { - var result = new Array(size.x); - for (var i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (var j = 0; j < size.y; j++) { - result[i][j] = new Array(size.z); - for (var k = 0; k < size.z; k++) { - result[i][j][k] = Math.random(); - } - } - } - return result; - }; - it("It should test adding", function () { - sorts.forEach(function (holder) { - var testArr = createArray(); - var start = Date.now(); - testArr.forEach(function (row, x) { - row.forEach(function (column, y) { - column.forEach(function (item, z) { - holder.set(x, y, z, item); - }); - }); - }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - for (var x = 0; x < size.x; x++) { - for (var y = 0; y < size.y; y++) { - for (var z = 0; z < size.z; z++) { - holder.get(x, y, z); - } - } - } - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - holder.forEach(function () { return null; }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid3.perf.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map b/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map deleted file mode 100644 index bc5993eb..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3.perf.js","sourceRoot":"","sources":["../../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,QAAQ,CAAC,OAAO,EAAE;IACd,QAAQ,CAAC,SAAS,EAAE;QAEhB,IAAM,OAAO,GAAQ,GAAG,CAAC;QACzB,IAAM,IAAI,GAAW,EAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAC,CAAC;QAC1D,IAAM,WAAW,GAAI,gBAAgB,CAAC,SAAS,CAAS,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnF,IAAM,SAAS,GAAM,cAAc,CAAC,SAAS,CAAS,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAA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AC,OAAO,CAAC,UAAC,MAAM;gBACjB,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAEzB,MAAM,CAAC,OAAO,CAAC,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC,CAAC;gBAE3B,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/index.js b/dist/_esm5/models/data-structures/grid-accessor/index.js deleted file mode 100644 index 4ff4ab69..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export * from "./grid-filters"; -export * from "./grid2-accessor"; -export * from "./grid2-block-accessor"; -export * from "./holders-2d/grid2-array-holder"; -export * from "./holders-2d/grid2-hash-holder"; -export * from "./holders-2d/grid2-holder"; -export * from "./holders-2d/grid2-map-holder"; -export * from "./holders-2d/grid2-object-holder"; -export * from "./holders-3d/grid3-array-holder"; -export * from "./holders-3d/grid3-hash-holder"; -export * from "./holders-3d/grid3-holder"; -export * from "./holders-3d/grid3-map-holder"; -export * from "./holders-3d/grid3-object-holder"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/grid-accessor/index.js.map b/dist/_esm5/models/data-structures/grid-accessor/index.js.map deleted file mode 100644 index daabde5c..00000000 --- a/dist/_esm5/models/data-structures/grid-accessor/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AAEjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/abstract-linked-list.js b/dist/_esm5/models/data-structures/list/abstract-linked-list.js deleted file mode 100644 index 468d06b6..00000000 --- a/dist/_esm5/models/data-structures/list/abstract-linked-list.js +++ /dev/null @@ -1,62 +0,0 @@ -var AbstractLinkedList = (function () { - function AbstractLinkedList() { - this.first = null; - this.localLength = 0; - } - Object.defineProperty(AbstractLinkedList.prototype, "length", { - get: function () { - return this.localLength; - }, - enumerable: false, - configurable: true - }); - AbstractLinkedList.prototype[Symbol.iterator] = function () { - var _a; - var current = this.first; - return _a = {}, - _a[Symbol.iterator] = function () { - return this; - }, - _a.next = function () { - if (current) { - var value = current.item; - current = current.next; - return { - value: value, - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - _a; - }; - Object.defineProperty(AbstractLinkedList.prototype, "empty", { - get: function () { - return this.localLength === 0; - }, - enumerable: false, - configurable: true - }); - AbstractLinkedList.prototype.contains = function (item) { - for (var current = this.first; current; current = current.next) { - if (current.item === item) { - return true; - } - } - return false; - }; - AbstractLinkedList.prototype.toArray = function () { - var newArray = new Array(this.localLength); - var i = 0; - for (var current = this.first; current; current = current.next) { - newArray[i++] = current.item; - } - return newArray; - }; - return AbstractLinkedList; -}()); -export { AbstractLinkedList }; -//# sourceMappingURL=abstract-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/abstract-linked-list.js.map b/dist/_esm5/models/data-structures/list/abstract-linked-list.js.map deleted file mode 100644 index f3caac9e..00000000 --- a/dist/_esm5/models/data-structures/list/abstract-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-linked-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/abstract-linked-list.ts"],"names":[],"mappings":"AAAA;IAAA;QACc,UAAK,GAAa,IAAI,CAAC;QACvB,gBAAW,GAAG,CAAC,CAAC;IAwD9B,CAAC;IAtDG,sBAAW,sCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;;;OAAA;IAEM,6BAAC,MAAM,CAAC,QAAQ,CAAC,GAAxB;;QACI,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB;YACI,GAAC,MAAM,CAAC,QAAQ,IAAhB;gBACI,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAI,GAAJ;gBACI,IAAI,OAAO,EAAE;oBACT,IAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;oBAC3B,OAAO,GAAO,OAAO,CAAC,IAAI,CAAC;oBAE3B,OAAO;wBACH,KAAK,OAAA;wBACL,IAAI,EAAE,KAAK;qBACd,CAAC;iBACL;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAG,IAAI;iBACd,CAAC;YACN,CAAC;eACH;IACN,CAAC;IAED,sBAAW,qCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,WAAW,KAAK,CAAC,CAAC;QAClC,CAAC;;;OAAA;IAEM,qCAAQ,GAAf,UAAgB,IAAO;QACnB,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE;gBACvB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAEM,oCAAO,GAAd;QACI,IAAM,QAAQ,GAAG,IAAI,KAAK,CAAI,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhD,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;SAChC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;IACL,yBAAC;AAAD,CAAC,AA1DD,IA0DC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js b/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js deleted file mode 100644 index 6fa38801..00000000 --- a/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js +++ /dev/null @@ -1,78 +0,0 @@ -import { __extends } from "tslib"; -import { AbstractLinkedList } from "./abstract-linked-list"; -import { BiDirectionalLinkedListEntry } from "./linked-list-entry"; -var BiDirectionalLinkedList = (function (_super) { - __extends(BiDirectionalLinkedList, _super); - function BiDirectionalLinkedList() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.last = null; - return _this; - } - BiDirectionalLinkedList.prototype.add = function (item) { - var newItem = new BiDirectionalLinkedListEntry(item); - if (this.empty) { - this.first = newItem; - } - else { - this.last.next = newItem; - } - newItem.prev = this.last; - this.last = newItem; - this.localLength++; - return true; - }; - BiDirectionalLinkedList.prototype.forEach = function (callback) { - var act = this.first; - var index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - }; - BiDirectionalLinkedList.prototype.forEachReverse = function (callback) { - var act = this.last; - var index = this.length - 1; - while (act) { - callback(act.item, index--); - act = act.prev; - } - }; - BiDirectionalLinkedList.prototype.clear = function () { - this.first = null; - this.last = null; - this.localLength = 0; - }; - BiDirectionalLinkedList.prototype.remove = function (item) { - if (this.empty) { - return false; - } - if (this.length === 1) { - this.clear(); - return true; - } - for (var current = this.first; current; current = current.next) { - if (current.item === item) { - if (current === this.first) { - this.first = current.next; - current.next.prev = null; - this.localLength--; - return true; - } - if (current === this.last) { - this.last = current.prev; - current.prev.next = null; - this.localLength--; - return true; - } - current.prev.next = current.next; - current.next.prev = current.prev; - this.localLength--; - return true; - } - } - return true; - }; - return BiDirectionalLinkedList; -}(AbstractLinkedList)); -export { BiDirectionalLinkedList }; -//# sourceMappingURL=bi-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js.map b/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js.map deleted file mode 100644 index 9457718f..00000000 --- a/dist/_esm5/models/data-structures/list/bi-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bi-directional-linked-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/bi-directional-linked-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAGnE;IAAgD,2CAAsD;IAAtG;QAAA,qEAgFC;QA/EW,UAAI,GAA2C,IAAI,CAAC;;IA+EhE,CAAC;IA7EU,qCAAG,GAAV,UAAW,IAAO;QACd,IAAM,OAAO,GAAG,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;SACxB;aAAM;YACH,IAAI,CAAC,IAAK,CAAC,IAAI,GAAG,OAAO,CAAC;SAC7B;QAED,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAM,OAAO,CAAC;QAEvB,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAA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O,KAAK,IAAI,CAAC,IAAI,EAAE;oBACvB,IAAI,CAAC,IAAI,GAAW,OAAO,CAAC,IAAI,CAAC;oBACjC,OAAO,CAAC,IAAK,CAAC,IAAI,GAAG,IAAI,CAAC;oBAC1B,IAAI,CAAC,WAAW,EAAE,CAAC;oBAEnB,OAAO,IAAI,CAAC;iBACf;gBAED,OAAO,CAAC,IAAK,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;gBAClC,OAAO,CAAC,IAAK,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;gBAClC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,8BAAC;AAAD,CAAC,AAhFD,CAAgD,kBAAkB,GAgFjE"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/index.js b/dist/_esm5/models/data-structures/list/index.js deleted file mode 100644 index 4df318ec..00000000 --- a/dist/_esm5/models/data-structures/list/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./abstract-linked-list"; -export * from "./bi-directional-linked-list"; -export * from "./linked-list-entry"; -export * from "./list"; -export * from "./one-directional-linked-list"; -export * from "./sorted-array-list"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/index.js.map b/dist/_esm5/models/data-structures/list/index.js.map deleted file mode 100644 index 3f2a57ba..00000000 --- a/dist/_esm5/models/data-structures/list/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/linked-list-entry.js b/dist/_esm5/models/data-structures/list/linked-list-entry.js deleted file mode 100644 index 771c8f7b..00000000 --- a/dist/_esm5/models/data-structures/list/linked-list-entry.js +++ /dev/null @@ -1,18 +0,0 @@ -var OneDirectionalLinkedListEntry = (function () { - function OneDirectionalLinkedListEntry(item) { - this.item = item; - this.next = null; - } - return OneDirectionalLinkedListEntry; -}()); -export { OneDirectionalLinkedListEntry }; -var BiDirectionalLinkedListEntry = (function () { - function BiDirectionalLinkedListEntry(item) { - this.item = item; - this.prev = null; - this.next = null; - } - return BiDirectionalLinkedListEntry; -}()); -export { BiDirectionalLinkedListEntry }; -//# sourceMappingURL=linked-list-entry.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/linked-list-entry.js.map b/dist/_esm5/models/data-structures/list/linked-list-entry.js.map deleted file mode 100644 index 2ec81616..00000000 --- a/dist/_esm5/models/data-structures/list/linked-list-entry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"linked-list-entry.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/linked-list-entry.ts"],"names":[],"mappings":"AAAA;IAGI,uCAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAFnC,SAAI,GAA4C,IAAI,CAAC;IAG5D,CAAC;IACL,oCAAC;AAAD,CAAC,AALD,IAKC;;AAED;IAII,sCAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAHnC,SAAI,GAA2C,IAAI,CAAC;QACpD,SAAI,GAA2C,IAAI,CAAC;IAG3D,CAAC;IACL,mCAAC;AAAD,CAAC,AAND,IAMC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/list.js b/dist/_esm5/models/data-structures/list/list.js deleted file mode 100644 index 990d791c..00000000 --- a/dist/_esm5/models/data-structures/list/list.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/list.js.map b/dist/_esm5/models/data-structures/list/list.js.map deleted file mode 100644 index 257e55f3..00000000 --- a/dist/_esm5/models/data-structures/list/list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/list.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/one-directional-linked-list.js b/dist/_esm5/models/data-structures/list/one-directional-linked-list.js deleted file mode 100644 index cef71af0..00000000 --- a/dist/_esm5/models/data-structures/list/one-directional-linked-list.js +++ /dev/null @@ -1,47 +0,0 @@ -import { __extends } from "tslib"; -import { AbstractLinkedList } from "./abstract-linked-list"; -import { OneDirectionalLinkedListEntry } from "./linked-list-entry"; -var OneDirectionalLinkedList = (function (_super) { - __extends(OneDirectionalLinkedList, _super); - function OneDirectionalLinkedList() { - return _super !== null && _super.apply(this, arguments) || this; - } - OneDirectionalLinkedList.prototype.add = function (item) { - var newFirst = new OneDirectionalLinkedListEntry(item); - newFirst.next = this.first; - this.first = newFirst; - this.localLength++; - return true; - }; - OneDirectionalLinkedList.prototype.forEach = function (callback) { - var act = this.first; - var index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - }; - OneDirectionalLinkedList.prototype.clear = function () { - this.first = null; - this.localLength = 0; - }; - OneDirectionalLinkedList.prototype.remove = function (item) { - var _a; - for (var current = this.first; current; current = current.next) { - if (current === this.first && current.item === item) { - this.first = current.next; - this.localLength--; - return true; - } - if (((_a = current.next) === null || _a === void 0 ? void 0 : _a.item) === item) { - current.next = current.next.next; - this.localLength--; - return true; - } - } - return false; - }; - return OneDirectionalLinkedList; -}(AbstractLinkedList)); -export { OneDirectionalLinkedList }; -//# sourceMappingURL=one-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/one-directional-linked-list.js.map b/dist/_esm5/models/data-structures/list/one-directional-linked-list.js.map deleted file mode 100644 index 478c4ab5..00000000 --- a/dist/_esm5/models/data-structures/list/one-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"one-directional-linked-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/one-directional-linked-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGpE;IAAiD,4CAAuD;IAAxG;;IA4CA,CAAC;IA3CU,sCAAG,GAAV,UAAW,IAAO;QACd,IAAM,QAAQ,GAAG,IAAI,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACzD,QAAQ,CAAC,IAAI,GAAI,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAO,QAAQ,CAAC;QAE1B,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,CAAC;IAEM,wCAAK,GAAZ;QACI,IAAI,CAAC,KAAK,GAAS,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,yCAAM,GAAb,UAAc,IAAO;;QACjB,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,IAAI,OAAO,KAAK,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE;gBACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;gBAC1B,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;YAED,IAAI,OAAA,OAAO,CAAC,IAAI,0CAAE,IAAI,MAAK,IAAI,EAAE;gBAC7B,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;gBACjC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IACL,+BAAC;AAAD,CAAC,AA5CD,CAAiD,kBAAkB,GA4ClE"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/sorted-array-list.js b/dist/_esm5/models/data-structures/list/sorted-array-list.js deleted file mode 100644 index b126a0f1..00000000 --- a/dist/_esm5/models/data-structures/list/sorted-array-list.js +++ /dev/null @@ -1,65 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { binarySearch, sortedInsert, sortedRemove } from "../../../utils/sorted-array-utils"; -var SortedArrayList = (function () { - function SortedArrayList(comparator) { - this.comparator = comparator; - this.data = []; - } - SortedArrayList.prototype.forEach = function (callback) { - this.data.forEach(callback); - }; - SortedArrayList.prototype[Symbol.iterator] = function () { - var _a; - var _this = this; - var current = 0; - return _a = {}, - _a[Symbol.iterator] = function () { - return this; - }, - _a.next = function () { - if (current < _this.data.length) { - return { - value: _this.data[current++], - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - _a; - }; - Object.defineProperty(SortedArrayList.prototype, "length", { - get: function () { - return this.data.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(SortedArrayList.prototype, "empty", { - get: function () { - return this.data.length === 0; - }, - enumerable: false, - configurable: true - }); - SortedArrayList.prototype.add = function (item) { - return sortedInsert(this.data, item, this.comparator) >= 0; - }; - SortedArrayList.prototype.clear = function () { - this.data.splice(0, this.data.length); - }; - SortedArrayList.prototype.contains = function (item) { - return binarySearch(this.data, item, this.comparator) >= 0; - }; - SortedArrayList.prototype.remove = function (item) { - return !!sortedRemove(this.data, item, this.comparator); - }; - SortedArrayList.prototype.toArray = function () { - return __spreadArrays(this.data); - }; - return SortedArrayList; -}()); -export { SortedArrayList }; -//# sourceMappingURL=sorted-array-list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/sorted-array-list.js.map b/dist/_esm5/models/data-structures/list/sorted-array-list.js.map deleted file mode 100644 index 765b5b50..00000000 --- a/dist/_esm5/models/data-structures/list/sorted-array-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/sorted-array-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAG7F;IAGI,yBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAFrD,SAAI,GAAQ,EAAE,CAAC;IAGhC,CAAC;IAEM,iCAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAEM,0BAAC,MAAM,CAAC,QAAQ,CAAC,GAAxB;;QAAA,iBAqBC;QApBG,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB;YACI,GAAC,MAAM,CAAC,QAAQ,IAAhB;gBACI,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAI,GAAE;gBACF,IAAI,OAAO,GAAG,KAAI,CAAC,IAAI,CAAC,MAAM,EAAE;oBAC5B,OAAO;wBACH,KAAK,EAAE,KAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;wBAC3B,IAAI,EAAG,KAAK;qBACf,CAAC;iBACL;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAG,IAAI;iBACd,CAAC;YACN,CAAC;eACH;IACN,CAAC;IAED,sBAAW,mCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;QAC5B,CAAC;;;OAAA;IAED,sBAAW,kCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;QAClC,CAAC;;;OAAA;IAEM,6BAAG,GAAV,UAAW,IAAO;QACd,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAEM,+BAAK,GAAZ;QACI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAAO;QACnB,OAAO,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAEM,gCAAM,GAAb,UAAc,IAAO;QACjB,OAAO,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5D,CAAC;IAEM,iCAAO,GAAd;QACI,sBAAW,IAAI,CAAC,IAAI,EAAE;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AA5DD,IA4DC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/test-list.js b/dist/_esm5/models/data-structures/list/test-list.js deleted file mode 100644 index ce7436b3..00000000 --- a/dist/_esm5/models/data-structures/list/test-list.js +++ /dev/null @@ -1,46 +0,0 @@ -import { deepEqual } from "gtools/utils"; -export function testList(list, testOrder) { - if (testOrder === void 0) { testOrder = false; } - list.clear(); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(deepEqual(list.toArray(), [])); - list.add("b"); - console.assert(!list.empty); - console.assert(list.length === 1); - console.assert(deepEqual(list.toArray(), ["b"])); - console.assert(!list.contains("a")); - console.assert(list.contains("b")); - console.assert(!list.contains("c")); - list.add("a"); - list.add("c"); - list.add("e"); - list.add("d"); - var tmpList = []; - for (var _i = 0, _a = list; _i < _a.length; _i++) { - var item = _a[_i]; - tmpList.push(item); - } - var listArray = list.toArray(); - console.assert(listArray.length === tmpList.length); - tmpList.forEach(function (item) { - console.assert(listArray.indexOf(item) >= 0); - }); - console.assert(list.length === 5); - if (testOrder) { - console.assert(deepEqual(list.toArray(), ["a", "b", "c", "d", "e"])); - } - list.remove("b"); - list.remove("d"); - console.assert(list.length === 3); - if (testOrder) { - console.assert(deepEqual(list.toArray(), ["a", "c", "e"])); - } - list.remove("a"); - list.remove("c"); - list.remove("e"); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(deepEqual(list.toArray(), [])); -} -//# sourceMappingURL=test-list.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/list/test-list.js.map b/dist/_esm5/models/data-structures/list/test-list.js.map deleted file mode 100644 index 66bb13f4..00000000 --- a/dist/_esm5/models/data-structures/list/test-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"test-list.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/list/test-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,UAAU,QAAQ,CAAC,IAAkB,EAAE,SAAiB;IAAjB,0BAAA,EAAA,iBAAiB;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEd,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CA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,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KACxE;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,IAAI,SAAS,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KAC9D;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/priority-queue.js b/dist/_esm5/models/data-structures/priority-queue.js deleted file mode 100644 index abf24c19..00000000 --- a/dist/_esm5/models/data-structures/priority-queue.js +++ /dev/null @@ -1,73 +0,0 @@ -var leftChild = function (index) { return index * 2 + 1; }; -var rightChild = function (index) { return index * 2 + 2; }; -var getParentIndex = function (index) { return Math.floor((index - 1) / 2); }; -var PriorityQueue = (function () { - function PriorityQueue(comparator) { - this.comparator = comparator; - this.heap = []; - } - PriorityQueue.createMaxQueue = function (valueExtractor) { - return new PriorityQueue(function (a, b) { return valueExtractor(a) > valueExtractor(b); }); - }; - PriorityQueue.createMinQueue = function (valueExtractor) { - return new PriorityQueue(function (a, b) { return valueExtractor(a) < valueExtractor(b); }); - }; - PriorityQueue.prototype.swap = function (indexOne, indexTwo) { - var tmp = this.heap[indexOne]; - this.heap[indexOne] = this.heap[indexTwo]; - this.heap[indexTwo] = tmp; - }; - PriorityQueue.prototype.peek = function () { - return this.heap[0]; - }; - Object.defineProperty(PriorityQueue.prototype, "length", { - get: function () { - return this.heap.length; - }, - enumerable: false, - configurable: true - }); - PriorityQueue.prototype.contains = function (item) { - var _this = this; - return this.heap.some(function (e) { return _this.comparator(e, item); }); - }; - PriorityQueue.prototype.clear = function () { - this.heap = []; - }; - PriorityQueue.prototype.forEach = function (callback) { - this.heap.forEach(callback); - }; - PriorityQueue.prototype.add = function (element) { - this.heap.push(element); - var index = this.heap.length - 1; - while (index !== 0 && this.comparator(this.heap[index], this.heap[getParentIndex(index)])) { - this.swap(index, getParentIndex(index)); - index = getParentIndex(index); - } - }; - PriorityQueue.prototype.pop = function () { - var root = this.heap.shift(); - this.heap.unshift(this.heap[this.heap.length - 1]); - this.heap.pop(); - this.heapify(0); - return root; - }; - PriorityQueue.prototype.heapify = function (index) { - var left = leftChild(index); - var right = rightChild(index); - var smallest = index; - if (left < this.heap.length && this.comparator(this.heap[left], this.heap[smallest])) { - smallest = left; - } - if (right < this.heap.length && this.comparator(this.heap[right], this.heap[smallest])) { - smallest = right; - } - if (smallest !== index) { - this.swap(smallest, index); - this.heapify(smallest); - } - }; - return PriorityQueue; -}()); -export { PriorityQueue }; -//# sourceMappingURL=priority-queue.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/priority-queue.js.map b/dist/_esm5/models/data-structures/priority-queue.js.map deleted file mode 100644 index ad709866..00000000 --- a/dist/_esm5/models/data-structures/priority-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priority-queue.js","sourceRoot":"","sources":["../../../../src/models/data-structures/priority-queue.ts"],"names":[],"mappings":"AAEA,IAAM,SAAS,GAAQ,UAAC,KAAa,IAAa,OAAA,KAAK,GAAG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AAgB,KAAa;QACzB,IAAM,IAAI,GAAK,SAAS,CAAC,KAAK,CAAC,CAAC;QAChC,IAAM,KAAK,GAAI,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,QAAQ,GAAG,KAAK,CAAC;QAGrB,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE;YAClF,QAAQ,GAAG,IAAI,CAAC;SACnB;QAGD,IAAI,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE;YACpF,QAAQ,GAAG,KAAK,CAAC;SACpB;QAID,IAAI,QAAQ,KAAK,KAAK,EAAE;YACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SAC1B;IACL,CAAC;IACL,oBAAC;AAAD,CAAC,AA7FD,IA6FC"} \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/quad-tree/quad-tree.js b/dist/_esm5/models/data-structures/quad-tree/quad-tree.js deleted file mode 100644 index b6cab001..00000000 --- a/dist/_esm5/models/data-structures/quad-tree/quad-tree.js +++ /dev/null @@ -1,172 +0,0 @@ -var Point = (function () { - function Point(x, y) { - this.x = x; - this.y = y; - } - Point.prototype.lte = function (point) { - return this.x <= point.x && this.y <= point.y; - }; - Point.prototype.gte = function (point) { - return this.x >= point.x && this.y >= point.y; - }; - Point.prototype.equals = function (point) { - return this.x === point.x && this.y === point.y; - }; - return Point; -}()); -export { Point }; -var Box = (function () { - function Box(low, high) { - this.low = low; - this.high = high; - } - Box.prototype.contains = function (point) { - return this.low.lte(point) && this.high.gte(point); - }; - Box.prototype.overlaps = function (box) { - if (this.high.x < box.low.x) { - return false; - } - if (this.low.x > box.high.x) { - return false; - } - if (this.high.y < box.low.y) { - return false; - } - if (this.low.y > box.high.y) { - return false; - } - return true; - }; - Box.prototype.containsBox = function (box) { - return this.contains(box.low) && this.contains(box.high); - }; - Box.prototype.split = function () { - return [ - new Box(this.low, new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, this.low.y), new Point(this.high.x, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2), this.high), - new Box(new Point(this.low.x, (this.low.y + this.high.y) / 2), new Point((this.low.x + this.high.x) / 2, this.high.y)), - ]; - }; - return Box; -}()); -export { Box }; -var QuadTree = (function () { - function QuadTree(box, max) { - if (max === void 0) { max = 10; } - this.box = box; - this.max = max; - this.children = null; - this.value = []; - } - QuadTree.prototype.insert = function (point, value) { - var _a; - if (!this.box.contains(point)) { - return this; - } - if (this.children === null && this.value.length < this.max) { - for (var _i = 0, _b = this.value; _i < _b.length; _i++) { - var item = _b[_i]; - if (item.point.equals(point)) { - item.value = value; - return; - } - } - this.value.push({ point: point, value: value }); - return this; - } - if (this.children === null) { - this.subdivide(); - } - (_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { - child.insert(point, value); - }); - this.value = []; - return this; - }; - QuadTree.prototype.subdivide = function () { - var _this = this; - this.children = this.box.split().map(function (child) { return new QuadTree(child, _this.max); }); - this.value.forEach(function (item) { - var _a; - (_a = _this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { - child.insert(item.point, item.value); - }); - }); - }; - QuadTree.prototype.queryRange = function (box) { - var result = []; - this._queryRangeRec(box, result); - return result; - }; - QuadTree.prototype._queryRangeRec = function (box, result) { - if (!this.box.overlaps(box)) { - return; - } - var i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (box.contains(this.value[i].point)) { - result.push(this.value[i]); - } - } - return; - } - if (this.children === null) { - return; - } - this.children.forEach(function (child) { - child._queryRangeRec(box, result); - }); - }; - QuadTree.prototype.queryPoint = function (point) { - if (!this.box.contains(point)) { - return null; - } - if (this.value.length > 0) { - var result = this.value.find(function (item) { return item.point.equals(point); }); - if (result) { - return result.value; - } - } - if (this.children !== null) { - for (var _i = 0, _a = this.children; _i < _a.length; _i++) { - var child = _a[_i]; - var result = child.queryPoint(point); - if (result) { - return result; - } - } - } - return null; - }; - QuadTree.prototype.removePoint = function (point) { - if (!this.box.contains(point)) { - return; - } - var i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (this.value[i].point.equals(point)) { - this.value.splice(i, 1); - return; - } - } - return; - } - if (this.children !== null) { - for (i = 0; i < this.children.length; i++) { - this.children[i].removePoint(point); - } - } - return; - }; - QuadTree.prototype.clear = function () { - this.children = null; - this.value = []; - }; - return QuadTree; -}()); -export { QuadTree }; -//# sourceMappingURL=quad-tree.js.map \ No newline at end of file diff --git a/dist/_esm5/models/data-structures/quad-tree/quad-tree.js.map b/dist/_esm5/models/data-structures/quad-tree/quad-tree.js.map deleted file mode 100644 index 91aee81d..00000000 --- a/dist/_esm5/models/data-structures/quad-tree/quad-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quad-tree.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/quad-tree/quad-tree.ts"],"names":[],"mappings":"AAEA;IACI,eACoB,CAAS,EACT,CAAS;QADT,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;IAE7B,CAAC;IAEM,mBAAG,GAAV,UAAW,KAAoB;QAC3B,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,mBAAG,GAAV,UAAW,KAAoB;QAC3B,OAAO,IAAI,CAAC,CAA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AAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;oBACnC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAExB,OAAO;iBACV;aACJ;YAED,OAAO;SACV;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACvC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACvC;SACJ;QAED,OAAO;IACX,CAAC;IAEM,wBAAK,GAAZ;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK,GAAM,EAAE,CAAC;IACvB,CAAC;IACL,eAAC;AAAD,CAAC,AArJD,IAqJC"} \ No newline at end of file diff --git a/dist/_esm5/models/gender.model.js b/dist/_esm5/models/gender.model.js deleted file mode 100644 index f14c93c5..00000000 --- a/dist/_esm5/models/gender.model.js +++ /dev/null @@ -1,28 +0,0 @@ -var maleRegexp = /^(male|man|muz|boy|chlapec|m)$/g; -var femaleRegexp = /^(female|woman|zena|girl|dievca|f|w|z)$/g; -export var Gender; -(function (Gender) { - Gender["MAN"] = "MAN"; - Gender["WOMAN"] = "WOMAN"; -})(Gender || (Gender = {})); -export function parseGender(gender) { - if (!gender) { - return null; - } - var genderLowerCase = gender.trim().toLowerCase().replace("ž", "z").replace("č", "c"); - if (genderLowerCase.match(maleRegexp)) { - return Gender.MAN; - } - if (genderLowerCase.match(femaleRegexp)) { - return Gender.WOMAN; - } - return null; -} -var GenderClass = (function () { - function GenderClass() { - } - GenderClass.parse = parseGender; - return GenderClass; -}()); -export { GenderClass }; -//# sourceMappingURL=gender.model.js.map \ No newline at end of file diff --git a/dist/_esm5/models/gender.model.js.map b/dist/_esm5/models/gender.model.js.map deleted file mode 100644 index c368a399..00000000 --- a/dist/_esm5/models/gender.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gender.model.js","sourceRoot":"","sources":["../../../src/models/gender.model.ts"],"names":[],"mappings":"AAKA,IAAM,UAAU,GAAK,iCAAiC,CAAC;AACvD,IAAM,YAAY,GAAG,0CAA0C,CAAC;AAEhE,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,qBAAa,CAAA;IACb,yBAAe,CAAA;AACnB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAED,MAAM,UAAU,WAAW,CAAC,MAAc;IACtC,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,IAAI,CAAC;KACf;IACD,IAAM,eAAe,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxF,IAAI,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;QACnC,OAAO,MAAM,CAAC,GAAG,CAAC;KACrB;IAED,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;QACrC,OAAO,MAAM,CAAC,KAAK,CAAC;KACvB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAMD;IAAA;IAQA,CAAC;IADiB,iBAAK,GAAG,WAAW,CAAC;IACtC,kBAAC;CAAA,AARD,IAQC;SARY,WAAW"} \ No newline at end of file diff --git a/dist/_esm5/models/index.js b/dist/_esm5/models/index.js deleted file mode 100644 index 637217d5..00000000 --- a/dist/_esm5/models/index.js +++ /dev/null @@ -1,14 +0,0 @@ -export * from "./gender.model"; -export * from "./color.model"; -export * from "./transform-2d"; -export * from "./range"; -export * from "./path-2d"; -export * from "./path/djikstra/djikstra"; -export * from "./sorting"; -export * from "./data-structures/priority-queue"; -export * from "./data-structures/binary-queue"; -export * from "./data-structures/binary-tree"; -export * from "./data-structures/quad-tree/quad-tree"; -export * from "./data-structures/grid-accessor"; -export * from "./data-structures/list"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/models/index.js.map b/dist/_esm5/models/index.js.map deleted file mode 100644 index abb3727a..00000000 --- a/dist/_esm5/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,WAAW,CAAC;AAE1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,uCAAuC,CAAC;AAEtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/path-2d.js b/dist/_esm5/models/path-2d.js deleted file mode 100644 index eeb062b7..00000000 --- a/dist/_esm5/models/path-2d.js +++ /dev/null @@ -1,35 +0,0 @@ -var Path2D = (function () { - function Path2D(points) { - this.points = points; - if (points.length < 2) { - throw new Error("Cannot create path with less than 2 points"); - } - } - Object.defineProperty(Path2D.prototype, "length", { - get: function () { - return this.points.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Path2D.prototype, "first", { - get: function () { - return this.points[0]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Path2D.prototype, "last", { - get: function () { - return this.points[this.points.length - 1]; - }, - enumerable: false, - configurable: true - }); - Path2D.prototype.getPoint = function (index) { - return this.points[index]; - }; - return Path2D; -}()); -export { Path2D }; -//# sourceMappingURL=path-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path-2d.js.map b/dist/_esm5/models/path-2d.js.map deleted file mode 100644 index 120e0632..00000000 --- a/dist/_esm5/models/path-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"path-2d.js","sourceRoot":"","sources":["../../../src/models/path-2d.ts"],"names":[],"mappings":"AAEA;IACI,gBAAsC,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;QACtD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SACjE;IACL,CAAC;IAED,sBAAW,0BAAM;aAAjB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAW,yBAAK;aAAhB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC;;;OAAA;IAED,sBAAW,wBAAI;aAAf;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAEM,yBAAQ,GAAf,UAAgB,KAAa;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACL,aAAC;AAAD,CAAC,AAtBD,IAsBC"} \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/a-star.js b/dist/_esm5/models/path/a-star/a-star.js deleted file mode 100644 index d296993e..00000000 --- a/dist/_esm5/models/path/a-star/a-star.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -//# sourceMappingURL=a-star.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/a-star.js.map b/dist/_esm5/models/path/a-star/a-star.js.map deleted file mode 100644 index d854efee..00000000 --- a/dist/_esm5/models/path/a-star/a-star.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/a-star.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/a-star_download.js b/dist/_esm5/models/path/a-star/a-star_download.js deleted file mode 100644 index f47896e3..00000000 --- a/dist/_esm5/models/path/a-star/a-star_download.js +++ /dev/null @@ -1,83 +0,0 @@ -import { BinaryHeap } from "../../data-structures/binary-queue"; -var pathTo = function (node) { - var curr = node; - var path = []; - while (curr.parent) { - path.unshift(curr); - curr = curr.parent; - } - return path; -}; -var getHeap = function () { return new BinaryHeap(function (node) { return node.f; }); }; -var astar = { - search: function (graph, start, end, options) { - if (options === void 0) { options = {}; } - graph.cleanDirty(); - options = options || {}; - var heuristic = options.heuristic || astar.heuristics.manhattan; - var closest = options.closest || false; - var openHeap = getHeap(); - var closestNode = start; - start.h = heuristic(start, end); - graph.markDirty(start); - openHeap.push(start); - while (openHeap.size() > 0) { - var currentNode = openHeap.pop(); - if (currentNode === end) { - return pathTo(currentNode); - } - currentNode.closed = true; - var neighbors = graph.neighbors(currentNode); - for (var i = 0, il = neighbors.length; i < il; ++i) { - var neighbor = neighbors[i]; - if (neighbor.closed || neighbor.isWall()) { - continue; - } - var gScore = currentNode.g + neighbor.getCost(currentNode); - var beenVisited = neighbor.visited; - if (!beenVisited || gScore < neighbor.g) { - neighbor.visited = true; - neighbor.parent = currentNode; - neighbor.h = neighbor.h || heuristic(neighbor, end); - neighbor.g = gScore; - neighbor.f = neighbor.g + neighbor.h; - graph.markDirty(neighbor); - if (closest) { - if (neighbor.h < closestNode.h || (neighbor.h === closestNode.h && neighbor.g < closestNode.g)) { - closestNode = neighbor; - } - } - if (!beenVisited) { - openHeap.push(neighbor); - } - else { - openHeap.rescoreElement(neighbor); - } - } - } - } - if (closest) { - return pathTo(closestNode); - } - return []; - }, - heuristics: { - manhattan: function (pos0, pos1) { - var d1 = Math.abs(pos1.x - pos0.x); - var d2 = Math.abs(pos1.y - pos0.y); - return d1 + d2; - }, - diagonal: function (pos0, pos1) { - var D = 1; - var D2 = Math.sqrt(2); - var d1 = Math.abs(pos1.x - pos0.x); - var d2 = Math.abs(pos1.y - pos0.y); - return (D * (d1 + d2)) + ((D2 - (2 * D)) * Math.min(d1, d2)); - }, - }, - cleanNode: function (node) { - node.cleanUp(); - }, -}; -export { astar }; -//# sourceMappingURL=a-star_download.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/a-star_download.js.map b/dist/_esm5/models/path/a-star/a-star_download.js.map deleted file mode 100644 index 8fefdf47..00000000 --- a/dist/_esm5/models/path/a-star/a-star_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star_download.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/a-star_download.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,IAAM,MAAM,GAAG,UAAC,IAAc;IAC1B,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC,MAAM,EAAE;QAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACtB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,IAAM,OAAO,GAAG,cAA4B,OAAA,IAAI,UAAU,CAAC,UAAC,IAAc,IAAK,OAAA,IAAI,CAAC,CAAC,EAAN,CAAM,CAAC,EAA1C,CAA0C,CAAC;AAEvF,IAAM,KAAK,GAAG;IAQV,MAAM,EAAN,UAAO,KAAY,EAAE,KAAe,EAAE,GAAa,EAAE,OAAkD;QAAlD,wBAAA,EAAA,YAAkD;QACnG,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,GAAS,OAAO,IAAI,EAAE,CAAC;QAC9B,IAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC;QAClE,IAAM,OAAO,GAAK,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC;QAE3C,IAAM,QAAQ,GAAM,OA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,CAAC,CAAC,CAAC;YACrC,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErC,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACjE,CAAC;KACJ;IACD,SAAS,EAAT,UAAU,IAAc;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;CACJ,CAAC;AAKF,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/graph_download.js b/dist/_esm5/models/path/a-star/graph_download.js deleted file mode 100644 index 91233cd0..00000000 --- a/dist/_esm5/models/path/a-star/graph_download.js +++ /dev/null @@ -1,98 +0,0 @@ -import { astar } from "./a-star_download"; -import { GridNode } from "./grid-node_download"; -var Graph = (function () { - function Graph(gridIn, options) { - if (options === void 0) { options = {}; } - this.options = options; - this.nodes = []; - this.grid = []; - this.dirtyNodes = []; - for (var x = 0; x < gridIn.length; x++) { - this.grid[x] = []; - var row = gridIn[x]; - for (var y = 0; y < row.length; y++) { - var node = new GridNode(x, y, row[y]); - this.grid[x][y] = node; - this.nodes.push(node); - } - } - this.init(); - } - Object.defineProperty(Graph.prototype, "diagonal", { - get: function () { - return !!this.options.diagonal; - }, - enumerable: false, - configurable: true - }); - Graph.prototype.get = function (x, y) { - return this.grid[x][y]; - }; - Graph.prototype.init = function () { - this.dirtyNodes = []; - for (var _i = 0, _a = this.nodes; _i < _a.length; _i++) { - var item = _a[_i]; - astar.cleanNode(item); - } - }; - Graph.prototype.cleanDirty = function () { - for (var _i = 0, _a = this.dirtyNodes; _i < _a.length; _i++) { - var item = _a[_i]; - astar.cleanNode(item); - } - this.dirtyNodes = []; - }; - Graph.prototype.markDirty = function (node) { - this.dirtyNodes.push(node); - }; - Graph.prototype.neighbors = function (node) { - var ret = []; - var x = node.x; - var y = node.y; - var grid = this.grid; - if (grid[x - 1] && grid[x - 1][y]) { - ret.push(grid[x - 1][y]); - } - if (grid[x + 1] && grid[x + 1][y]) { - ret.push(grid[x + 1][y]); - } - if (grid[x] && grid[x][y - 1]) { - ret.push(grid[x][y - 1]); - } - if (grid[x] && grid[x][y + 1]) { - ret.push(grid[x][y + 1]); - } - if (this.diagonal) { - if (grid[x - 1] && grid[x - 1][y - 1]) { - ret.push(grid[x - 1][y - 1]); - } - if (grid[x + 1] && grid[x + 1][y - 1]) { - ret.push(grid[x + 1][y - 1]); - } - if (grid[x - 1] && grid[x - 1][y + 1]) { - ret.push(grid[x - 1][y + 1]); - } - if (grid[x + 1] && grid[x + 1][y + 1]) { - ret.push(grid[x + 1][y + 1]); - } - } - return ret; - }; - Graph.prototype.toString = function () { - var graphString = []; - var nodes = this.grid; - for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) { - var row = nodes_1[_i]; - var rowDebug = []; - for (var _a = 0, row_1 = row; _a < row_1.length; _a++) { - var item = row_1[_a]; - rowDebug.push(item.weight); - } - graphString.push(rowDebug.join(" ")); - } - return graphString.join("\n"); - }; - return Graph; -}()); -export { Graph }; -//# sourceMappingURL=graph_download.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/graph_download.js.map b/dist/_esm5/models/path/a-star/graph_download.js.map deleted file mode 100644 index eb1f8130..00000000 --- a/dist/_esm5/models/path/a-star/graph_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"graph_download.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/graph_download.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;IAeI,eAAmB,MAAkB,EAAmB,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C;IAEM,wBAAQ,GAAf;QACI,IAAM,WAAW,GAAG,EAAE,CAAC;QACvB,IAAM,KAAK,GAAS,IAAI,CAAC,IAAI,CAAC;QAC9B,KAAkB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;YAApB,IAAM,GAAG,cAAA;YACV,IAAM,QAAQ,GAAG,EAAE,CAAC;YACpB,KAAmB,UAAG,EAAH,WAAG,EAAH,iBAAG,EAAH,IAAG,EAAE;gBAAnB,IAAM,IAAI,YAAA;gBACX,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC9B;YACD,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACxC;QAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACL,YAAC;AAAD,CAAC,AAnHD,IAmHC"} \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/grid-node_download.js b/dist/_esm5/models/path/a-star/grid-node_download.js deleted file mode 100644 index d27beeb7..00000000 --- a/dist/_esm5/models/path/a-star/grid-node_download.js +++ /dev/null @@ -1,36 +0,0 @@ -var GridNode = (function () { - function GridNode(x, y, weight) { - this.x = x; - this.y = y; - this.weight = weight; - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - } - GridNode.prototype.cleanUp = function () { - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - }; - GridNode.prototype.toString = function () { - return "[" + this.x + " " + this.y + "]"; - }; - GridNode.prototype.getCost = function (fromNeighbor) { - if (fromNeighbor && fromNeighbor.x !== this.x && fromNeighbor.y !== this.y) { - return this.weight * 1.41421; - } - return this.weight; - }; - GridNode.prototype.isWall = function () { - return this.weight === 0; - }; - return GridNode; -}()); -export { GridNode }; -//# sourceMappingURL=grid-node_download.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/a-star/grid-node_download.js.map b/dist/_esm5/models/path/a-star/grid-node_download.js.map deleted file mode 100644 index 1da1f7dd..00000000 --- a/dist/_esm5/models/path/a-star/grid-node_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-node_download.js","sourceRoot":"","sources":["../../../../../src/models/path/a-star/grid-node_download.ts"],"names":[],"mappings":"AAAA;IAUI,kBACoB,CAAS,EACT,CAAS,EACT,MAAc;QAFd,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;QACT,WAAM,GAAN,MAAM,CAAQ;QAZ3B,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QAEN,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,KAAK,CAAC;QAEf,WAAM,GAAoB,IAAI,CAAC;IAOtC,CAAC;IAEM,0BAAO,GAAd;QACI,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,IAAI,CAAC;IACxB,CAAC;IAEM,2BAAQ,GAAf;QACI,OAAO,MAAI,IAAI,CAAC,CAAC,SAAI,IAAI,CAAC,CAAC,MAAG,CAAC;IACnC,CAAC;IAEM,0BAAO,GAAd,UAAe,YAAsB;QAEjC,IAAI,YAAY,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;YACxE,OAAO,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;SAChC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,yBAAM,GAAb;QACI,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAC7B,CAAC;IACL,eAAC;AAAD,CAAC,AA1CD,IA0CC"} \ No newline at end of file diff --git a/dist/_esm5/models/path/djikstra/djikstra.js b/dist/_esm5/models/path/djikstra/djikstra.js deleted file mode 100644 index a9d0721c..00000000 --- a/dist/_esm5/models/path/djikstra/djikstra.js +++ /dev/null @@ -1,90 +0,0 @@ -import { __spreadArrays } from "tslib"; -var DjikstraVertex = (function () { - function DjikstraVertex(name, nodes, weight) { - this.name = name; - this.nodes = nodes; - this.weight = weight; - } - return DjikstraVertex; -}()); -export { DjikstraVertex }; -var Dijkstra = (function () { - function Dijkstra() { - this.vertices = {}; - } - Dijkstra.prototype.addVertex = function (vertex) { - this.vertices[vertex.name] = vertex; - }; - Dijkstra.prototype.removeVertex = function (vertexName) { - delete this.vertices[vertexName]; - }; - Dijkstra.prototype.getVertex = function (vertexName) { - return this.vertices[vertexName]; - }; - Dijkstra.prototype.requireVertex = function (name, vertexWeight) { - if (vertexWeight === void 0) { vertexWeight = 0; } - var result = this.getVertex(name); - if (result) { - return result; - } - var newVertex = new DjikstraVertex(name, [], 0); - this.addVertex(newVertex); - return newVertex; - }; - Dijkstra.prototype.findPointsOfShortestWay = function (start, finish, weight) { - var _this = this; - var nextVertex = finish; - var arrayWithVertex = []; - var _loop_1 = function () { - var minWeight = Number.MAX_VALUE; - var minVertex = ""; - this_1.vertices[nextVertex].nodes.forEach(function (node) { - if (node.weight + _this.vertices[node.nameOfVertex].weight < minWeight) { - minWeight = _this.vertices[node.nameOfVertex].weight; - minVertex = node.nameOfVertex; - } - }); - arrayWithVertex.push(minVertex); - nextVertex = minVertex; - }; - var this_1 = this; - while (nextVertex !== start) { - _loop_1(); - } - return arrayWithVertex; - }; - Dijkstra.prototype.findShortestWay = function (start, finish) { - var _this = this; - var nodes = {}; - Object.values(this.vertices).forEach(function (vertex) { - if (vertex.name === start) { - vertex.weight = 0; - } - else { - vertex.weight = Number.MAX_VALUE; - } - nodes[vertex.name] = vertex.weight; - }); - while (Object.keys(nodes).length !== 0) { - var sortedVisitedByWeight = Object.keys(nodes).sort(function (a, b) { return _this.vertices[a].weight - _this.vertices[b].weight; }); - var currentVertex = this.vertices[sortedVisitedByWeight[0]]; - for (var _i = 0, _a = currentVertex.nodes; _i < _a.length; _i++) { - var j = _a[_i]; - var calculateWeight = currentVertex.weight + j.weight; - if (calculateWeight < this.vertices[j.nameOfVertex].weight) { - this.vertices[j.nameOfVertex].weight = calculateWeight; - } - } - delete nodes[sortedVisitedByWeight[0]]; - } - var finishWeight = this.vertices[finish].weight; - var arrayWithVertex = this.findPointsOfShortestWay(start, finish, finishWeight).reverse(); - return { - distance: finishWeight, - nodes: __spreadArrays(arrayWithVertex, [finish]), - }; - }; - return Dijkstra; -}()); -export { Dijkstra }; -//# sourceMappingURL=djikstra.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/djikstra/djikstra.js.map b/dist/_esm5/models/path/djikstra/djikstra.js.map deleted file mode 100644 index a1e9338a..00000000 --- a/dist/_esm5/models/path/djikstra/djikstra.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"djikstra.js","sourceRoot":"","sources":["../../../../../src/models/path/djikstra/djikstra.ts"],"names":[],"mappings":";AAKA;IACI,wBACoB,IAAY,EACZ,KAGb,EACI,MAAc;QALL,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;QACI,WAAM,GAAN,MAAM,CAAQ;IAEzB,CAAC;IACL,qBAAC;AAAD,CAAC,AAVD,IAUC;;AAED;IAGI;QACI,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAEM,4BAAS,GAAhB,UAAiB,MAAsB;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IACxC,CAAC;IAEM,+BAAY,GAAnB,UAAoB,UAAkB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAA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aACJ;YACD,OAAO,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;SAC1C;QACD,IAAM,YAAY,GAAgB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;QAC/D,IAAM,eAAe,GAAa,IAAI,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;QAEtG,OAAO;YACH,QAAQ,EAAE,YAAY;YACtB,KAAK,iBAAM,eAAe,GAAE,MAAM,EAAC;SACtC,CAAC;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AAnFD,IAmFC"} \ No newline at end of file diff --git a/dist/_esm5/models/path/nearest-item.js b/dist/_esm5/models/path/nearest-item.js deleted file mode 100644 index 9a135f0d..00000000 --- a/dist/_esm5/models/path/nearest-item.js +++ /dev/null @@ -1,74 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { PriorityQueue } from "../data-structures/priority-queue"; -var NearestVertex = (function () { - function NearestVertex(name, type, nodes) { - this.name = name; - this.type = type; - this.nodes = nodes; - } - return NearestVertex; -}()); -export { NearestVertex }; -var NearestItem = (function () { - function NearestItem() { - this.vertices = {}; - } - NearestItem.prototype.addVertex = function (vertex) { - this.vertices[vertex.name] = vertex; - }; - NearestItem.prototype.getVertex = function (vertex) { - return this.vertices[vertex.name]; - }; - NearestItem.prototype.removeVertex = function (vertex) { - delete this.vertices[vertex.name]; - }; - NearestItem.prototype.requireVertex = function (name, type) { - var result = this.vertices[name]; - if (result) { - return result; - } - var newVertex = new NearestVertex(name, type, []); - this.addVertex(newVertex); - return newVertex; - }; - NearestItem.prototype.getNearestItem = function (name, searchedType) { - var _this = this; - var resultVertices = []; - var queue = PriorityQueue.createMinQueue(function (value) { return value.weight; }); - var visitedVertices = {}; - queue.add({ - weight: 0, - vertices: [this.vertices[name]], - }); - var _loop_1 = function () { - var currentItem = queue.pop(); - var currentVertex = currentItem.vertices[currentItem.vertices.length - 1]; - if (currentVertex.type === searchedType) { - return { value: { - distance: currentItem.weight, - nodes: currentItem.vertices.map(function (e) { return e.name; }), - } }; - } - visitedVertices[currentVertex.name] = true; - currentVertex.nodes.forEach(function (path) { - if (visitedVertices[path.name]) { - return; - } - queue.add({ - weight: currentItem.weight + path.weight, - vertices: __spreadArrays(currentItem.vertices, [_this.vertices[path.name]]), - }); - }); - resultVertices.push(currentVertex); - }; - while (queue.length) { - var state_1 = _loop_1(); - if (typeof state_1 === "object") - return state_1.value; - } - return null; - }; - return NearestItem; -}()); -export { NearestItem }; -//# sourceMappingURL=nearest-item.js.map \ No newline at end of file diff --git a/dist/_esm5/models/path/nearest-item.js.map b/dist/_esm5/models/path/nearest-item.js.map deleted file mode 100644 index 63bf1159..00000000 --- a/dist/_esm5/models/path/nearest-item.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nearest-item.js","sourceRoot":"","sources":["../../../../src/models/path/nearest-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE;IACI,uBACoB,IAAY,EACZ,IAAY,EACZ,KAGb;QALa,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;IAEP,CAAC;IACL,oBAAC;AAAD,CAAC,AAVD,IAUC;;AAOD;IAAA;QACY,aAAQ,GAAqC,EAAE,CAAC;IAiE5D,CAAC;IA/DU,+BAAS,GAAhB,UAAiB,MAAqB;QAClC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IACxC,CAAC;IAEM,+BAAS,GAAhB,UAAiB,MAAqB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEM,kCAAY,GAAnB,UAAoB,MAAqB;QACrC,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CA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AC,UAAC,IAAI;gBAC7B,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC5B,OAAO;iBACV;gBAED,KAAK,CAAC,GAAG,CAAC;oBACN,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;oBACxC,QAAQ,iBAAM,WAAW,CAAC,QAAQ,GAAE,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC;iBAChE,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;;QAvBvC,OAAO,KAAK,CAAC,MAAM;;;;SAwBlB;QAED,OAAO,IAAW,CAAC;IACvB,CAAC;IACL,kBAAC;AAAD,CAAC,AAlED,IAkEC"} \ No newline at end of file diff --git a/dist/_esm5/models/range.js b/dist/_esm5/models/range.js deleted file mode 100644 index 43f7d37d..00000000 --- a/dist/_esm5/models/range.js +++ /dev/null @@ -1,63 +0,0 @@ -import { randomFloatBetween, randomIntBetween } from "../utils"; -import { Color } from "./color.model"; -var Range = (function () { - function Range(min, max) { - if (max === void 0) { max = min; } - this.min = min; - this.max = max; - } - Range.random = function (range) { - return randomFloatBetween(range.min, range.max); - }; - Range.randomVector2i = function (range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - }; - }; - Range.randomVector3i = function (range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - z: randomIntBetween(range.min.z, range.max.z), - }; - }; - Range.randomVector4i = function (range) { - return { - x: randomIntBetween(range.min.x, range.max.x), - y: randomIntBetween(range.min.y, range.max.y), - z: randomIntBetween(range.min.z, range.max.z), - w: randomIntBetween(range.min.w, range.max.w), - }; - }; - Range.randomVector2f = function (range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - }; - }; - Range.randomVector3f = function (range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - z: randomFloatBetween(range.min.z, range.max.z), - }; - }; - Range.randomVector4f = function (range) { - return { - x: randomFloatBetween(range.min.x, range.max.x), - y: randomFloatBetween(range.min.y, range.max.y), - z: randomFloatBetween(range.min.z, range.max.z), - w: randomFloatBetween(range.min.w, range.max.w), - }; - }; - Range.randomColorF = function (range) { - return new Color(randomFloatBetween(range.min.red, range.max.red), randomFloatBetween(range.min.green, range.max.green), randomFloatBetween(range.min.blue, range.max.blue), randomFloatBetween(range.min.alpha, range.max.alpha)); - }; - Range.randomColorI = function (range) { - return new Color(randomIntBetween(range.min.red, range.max.red), randomIntBetween(range.min.green, range.max.green), randomIntBetween(range.min.blue, range.max.blue), randomIntBetween(range.min.alpha, range.max.alpha)); - }; - return Range; -}()); -export { Range }; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/dist/_esm5/models/range.js.map b/dist/_esm5/models/range.js.map deleted file mode 100644 index 6c998c7c..00000000 --- a/dist/_esm5/models/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../src/models/range.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;IACI,eAAmC,GAAM,EAAkB,GAAY;QAAZ,oBAAA,EAAA,SAAY;QAApC,QAAG,GAAH,GAAG,CAAG;QAAkB,QAAG,GAAH,GAAG,CAAS;IACvE,CAAC;IAEa,YAAM,GAApB,UAAqB,KAAoB;QACrC,OAAO,kBAAkB,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IACa,oBAAc,GAA5B,UAA6B,KAA2B;QACpD,OAAO;YACH,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,C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C,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAClD,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CACvD,CAAC;IACN,CAAC;IAEa,kBAAY,GAA1B,UAA2B,KAAmB;QAC1C,OAAO,IAAI,KAAK,CACZ,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAC9C,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAClD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAChD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CACrD,CAAC;IACN,CAAC;IACL,YAAC;AAAD,CAAC,AAxED,IAwEC"} \ No newline at end of file diff --git a/dist/_esm5/models/selection/selection-holder.js b/dist/_esm5/models/selection/selection-holder.js deleted file mode 100644 index 42be763d..00000000 --- a/dist/_esm5/models/selection/selection-holder.js +++ /dev/null @@ -1,64 +0,0 @@ -import { __spreadArrays } from "tslib"; -var SelectionHolder = (function () { - function SelectionHolder(comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - this.comparator = comparator; - this.selectedValues = []; - } - SelectionHolder.prototype.isSelected = function (item) { - var _this = this; - return this.selectedValues.some(function (actualItem) { return _this.comparator(actualItem, item); }); - }; - SelectionHolder.prototype.emit = function (data) { - this.selectedValues = data; - if (typeof this.onChange === "function") { - this.onChange(); - } - }; - SelectionHolder.prototype.select = function () { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - this.emit(__spreadArrays(this.selectedValues, items)); - }; - SelectionHolder.prototype.unselectAll = function () { - this.emit([]); - }; - SelectionHolder.prototype.selectOnly = function () { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - this.emit(__spreadArrays(items)); - }; - SelectionHolder.prototype.unselect = function (item) { - var _this = this; - var newSelectedValues = __spreadArrays(this.selectedValues); - var index = this.selectedValues.findIndex(function (actualItem) { - return _this.comparator(actualItem, item); - }); - if (index < 0) { - return; - } - newSelectedValues.splice(index, 1); - this.emit(newSelectedValues); - }; - Object.defineProperty(SelectionHolder.prototype, "selected", { - get: function () { - return this.selectedValues; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(SelectionHolder.prototype, "length", { - get: function () { - return this.selectedValues.length; - }, - enumerable: false, - configurable: true - }); - return SelectionHolder; -}()); -export { SelectionHolder }; -//# sourceMappingURL=selection-holder.js.map \ No newline at end of file diff --git a/dist/_esm5/models/selection/selection-holder.js.map b/dist/_esm5/models/selection/selection-holder.js.map deleted file mode 100644 index 4c5fb2ec..00000000 --- a/dist/_esm5/models/selection/selection-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection-holder.js","sourceRoot":"","sources":["../../../../src/models/selection/selection-holder.ts"],"names":[],"mappings":";AAAA;IAII,yBAAoC,UAAuD;QAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,CAAC,EAAP,CAAO;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAHnF,mBAAc,GAAiB,EAAE,CAAC;IAI1C,CAAC;IAEM,oCAAU,GAAjB,UAAkB,IAAO;QAAzB,iBAEC;QADG,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAC,UAAU,IAAK,OAAA,KAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,EAAjC,CAAiC,CAAC,CAAC;IACvF,CAAC;IAEO,8BAAI,GAAZ,UAAa,IAAkB;QAC3B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAE3B,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;SACnB;IACL,CAAC;IAEM,gCAAM,GAAb;QAAc,eAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,0BAAa;;QACvB,IAAI,CAAC,IAAI,gBAAK,IAAI,CAAC,cAAc,EAAK,KAAK,EAAE,CAAC;IAClD,CAAC;IAEM,qCAAW,GAAlB;QACI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAEM,oCAAU,GAAjB;QAAkB,eAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,0BAAa;;QAC3B,IAAI,CAAC,IAAI,gBAAK,KAAK,EAAE,CAAC;IAC1B,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAAO;QAAvB,iBAUC;QATG,IAAM,iBAAiB,kBAAO,IAAI,CAAC,cAAc,CAAC,CAAC;QACnD,IAAM,KAAK,GAAe,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,UAAC,UAAU;YAC/D,OAAA,KAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC;QAAjC,CAAiC,CACpC,CAAC;QACF,IAAI,KAAK,GAAG,CAAC,EAAE;YACX,OAAO;SACV;QACD,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjC,CAAC;IAED,sBAAW,qCAAQ;aAAnB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;;;OAAA;IAED,sBAAW,mCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;QACtC,CAAC;;;OAAA;IACL,sBAAC;AAAD,CAAC,AAlDD,IAkDC"} \ No newline at end of file diff --git a/dist/_esm5/models/selection/selection.js b/dist/_esm5/models/selection/selection.js deleted file mode 100644 index 3f428eb8..00000000 --- a/dist/_esm5/models/selection/selection.js +++ /dev/null @@ -1,121 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { SelectionHolder } from "./selection-holder"; -var Selection = (function () { - function Selection(allValues, options) { - var _this = this; - if (allValues === void 0) { allValues = []; } - if (options === void 0) { options = { - mode: "single", - unselectable: false, - }; } - this.allValues = allValues; - this.options = options; - this.selectionHolder = new SelectionHolder(); - this.selection = Object.defineProperties({}, { - isSelected: { value: function (item) { return _this.selectionHolder.isSelected(item); } }, - selected: { - get: function () { return _this.selectionHolder.selected; }, - }, - length: { - get: function () { return _this.selectionHolder.length; }, - }, - }); - } - Selection.prototype.click = function (item, options) { - if (options === void 0) { options = {}; } - switch (this.options.mode) { - case "single": - return this.processSingleClick(item); - case "multi": - return this.processMultiClick(item); - case "multi-control": - return this.processMultiControlClick(item, !!options.ctrlDown); - case "multi-continuous": - return this.processMultiContinuousClick(item, !!options.shiftDown); - } - }; - Selection.prototype.setValues = function (values) { - this.allValues = values; - }; - Selection.prototype.setOptions = function (options) { - this.options.mode = options.mode || this.options.mode; - this.options.unselectable = typeof options.unselectable === "boolean" ? options.unselectable : this.options.unselectable; - }; - Selection.prototype.processSingleClick = function (item) { - if (this.selectionHolder.isSelected(item)) { - if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.selectOnly(item); - } - }; - Selection.prototype.processMultiClick = function (item) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.unselect(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.select(item); - } - }; - Selection.prototype.processMultiControlClick = function (item, isCtrlDown) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - if (isCtrlDown) { - this.selectionHolder.unselect(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isCtrlDown) { - this.selectionHolder.select(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - }; - Selection.prototype.processMultiContinuousClick = function (item, isShiftDown) { - var _a; - var _this = this; - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.selectOnly(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isShiftDown) { - if (this.selectionHolder.length === 0) { - this.selectionHolder.select(item); - } - else { - var selectedIndices = this.selectionHolder.selected.map(function (actualItem) { return _this.allValues.indexOf(actualItem); }); - var minIndex = Math.min.apply(Math, __spreadArrays([this.allValues.indexOf(item)], selectedIndices)); - var maxIndex = Math.max.apply(Math, __spreadArrays([this.allValues.indexOf(item)], selectedIndices)); - (_a = this.selectionHolder).selectOnly.apply(_a, this.allValues.slice(minIndex, maxIndex + 1)); - } - } - else { - this.selectionHolder.selectOnly(item); - } - } - }; - return Selection; -}()); -export { Selection }; -//# sourceMappingURL=selection.js.map \ No newline at end of file diff --git a/dist/_esm5/models/selection/selection.js.map b/dist/_esm5/models/selection/selection.js.map deleted file mode 100644 index ff8d547c..00000000 --- a/dist/_esm5/models/selection/selection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../../src/models/selection/selection.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AASrD;IAYI,mBACY,SAA4B,EACnB,OAGhB;QALL,iBAOC;QANW,0BAAA,EAAA,cAA4B;QACnB,wBAAA,EAAA;YACb,IAAI,EAAU,QAAQ;YACtB,YAAY,EAAE,KAAK;SACtB;QAJO,cAAS,GAAT,SAAS,CAAmB;QACnB,YAAO,GAAP,OAAO,CAGvB;QAhBY,oBAAe,GAAG,IAAI,eAAe,EAAK,CAAC;QAC5C,cAAS,GAAU,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE;YAC3D,UAAU,EAAE,EAAC,KAAK,EAAE,UAAC,IAAO,IAA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,GAAG,CAAC,CAAC,EAAE;iBACpF;aACJ;iBAAM;gBACH,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aACzC;SACJ;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AA5GD,IA4GC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/bucket-sort.js b/dist/_esm5/models/sorting/bucket-sort.js deleted file mode 100644 index b1a58a0a..00000000 --- a/dist/_esm5/models/sorting/bucket-sort.js +++ /dev/null @@ -1,23 +0,0 @@ -var BucketSort = (function () { - function BucketSort() { - } - BucketSort.prototype.sort = function (a, maxValue) { - var bucket = new Array(maxValue + 1); - for (var i = 0; i < bucket.length; i++) { - bucket[i] = 0; - } - for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var item = a_1[_i]; - bucket[item]++; - } - var outPos = 0; - for (var i = 0; i < bucket.length; i++) { - for (var j = 0; j < bucket[i]; j++) { - a[outPos++] = i; - } - } - }; - return BucketSort; -}()); -export { BucketSort }; -//# sourceMappingURL=bucket-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/bucket-sort.js.map b/dist/_esm5/models/sorting/bucket-sort.js.map deleted file mode 100644 index 7ec7601a..00000000 --- a/dist/_esm5/models/sorting/bucket-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bucket-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/bucket-sort.ts"],"names":[],"mappings":"AAGA;IAAA;IAmBA,CAAC;IAlBU,yBAAI,GAAX,UAAY,CAAW,EAAE,QAAgB;QACrC,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;QAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACjB;QAED,KAAmB,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC,EAAE;YAAjB,IAAM,IAAI,UAAA;YACX,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;SAClB;QAED,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;aACnB;SACJ;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AAnBD,IAmBC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/counting-sort.js b/dist/_esm5/models/sorting/counting-sort.js deleted file mode 100644 index e2dde49d..00000000 --- a/dist/_esm5/models/sorting/counting-sort.js +++ /dev/null @@ -1,19 +0,0 @@ -var CountingSort = (function () { - function CountingSort() { - } - CountingSort.prototype.sort = function (a, low, high) { - var counts = new Array(high - low + 1); - for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var x = a_1[_i]; - counts[x - low]++; - } - var current = 0; - for (var i = 0; i < counts.length; i++) { - a.fill(current, current + counts[i], i + low); - current += counts[i]; - } - }; - return CountingSort; -}()); -export { CountingSort }; -//# sourceMappingURL=counting-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/counting-sort.js.map b/dist/_esm5/models/sorting/counting-sort.js.map deleted file mode 100644 index d6b94110..00000000 --- a/dist/_esm5/models/sorting/counting-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counting-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/counting-sort.ts"],"names":[],"mappings":"AAGA;IAAA;IAgBA,CAAC;IAfU,2BAAI,GAAX,UAAY,CAAW,EAAE,GAAW,EAAE,IAAY;QAE9C,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;QACjD,KAAgB,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC,EAAE;YAAd,IAAM,CAAC,UAAA;YAER,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;SACrB;QACD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAEpC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;YAE9C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;SACxB;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAhBD,IAgBC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/heap-sort.js b/dist/_esm5/models/sorting/heap-sort.js deleted file mode 100644 index 14906551..00000000 --- a/dist/_esm5/models/sorting/heap-sort.js +++ /dev/null @@ -1,49 +0,0 @@ -var HeapSort = (function () { - function HeapSort(comparator) { - this.comparator = comparator; - this.n = 0; - this.left = 0; - this.right = 0; - this.largest = 0; - this.tmp = null; - } - HeapSort.prototype.sort = function (array) { - this.buildHeap(array); - for (var i = this.n; i > 0; i--) { - this.exchange(array, 0, i); - this.n--; - this.maxHeap(array, 0); - } - }; - HeapSort.prototype.buildHeap = function (a) { - this.n = a.length - 1; - for (var i = this.n / 2; i >= 0; i--) { - this.maxHeap(a, i); - } - }; - HeapSort.prototype.maxHeap = function (a, i) { - this.left = 2 * i; - this.right = 2 * i + 1; - if (this.left <= this.n && this.comparator(a[this.left], a[i]) > 0) { - this.largest = this.left; - } - else { - this.largest = i; - } - if (this.right <= this.n && this.comparator(a[this.right], a[this.largest]) > 0) { - this.largest = this.right; - } - if (this.largest !== i) { - this.exchange(a, i, this.largest); - this.maxHeap(a, this.largest); - } - }; - HeapSort.prototype.exchange = function (a, i, j) { - this.tmp = a[i]; - a[i] = a[j]; - a[j] = this.tmp; - }; - return HeapSort; -}()); -export { HeapSort }; -//# sourceMappingURL=heap-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/heap-sort.js.map b/dist/_esm5/models/sorting/heap-sort.js.map deleted file mode 100644 index df02615c..00000000 --- a/dist/_esm5/models/sorting/heap-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"heap-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/heap-sort.ts"],"names":[],"mappings":"AAGA;IAOI,kBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAN9D,MAAC,GAAe,CAAC,CAAC;QAClB,SAAI,GAAY,CAAC,CAAC;QAClB,UAAK,GAAW,CAAC,CAAC;QAClB,YAAO,GAAS,CAAC,CAAC;QAClB,QAAG,GAAa,IAAI,CAAC;IAG7B,CAAC;IAEM,uBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEtB,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YAC7B,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SAC1B;IACL,CAAC;IAEO,4BAAS,GAAjB,UAAkB,CAAM;QACpB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtB,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;YAClC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACtB;IACL,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end of file diff --git a/dist/_esm5/models/sorting/index.js b/dist/_esm5/models/sorting/index.js deleted file mode 100644 index b940ed13..00000000 --- a/dist/_esm5/models/sorting/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./bucket-sort"; -export * from "./counting-sort"; -export * from "./heap-sort"; -export * from "./insertion-sort"; -export * from "./merge-sort"; -export * from "./quick-sort"; -export * from "./radix-sort"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/index.js.map b/dist/_esm5/models/sorting/index.js.map deleted file mode 100644 index e00b8754..00000000 --- a/dist/_esm5/models/sorting/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/sorting/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/insertion-sort.js b/dist/_esm5/models/sorting/insertion-sort.js deleted file mode 100644 index ab405f83..00000000 --- a/dist/_esm5/models/sorting/insertion-sort.js +++ /dev/null @@ -1,25 +0,0 @@ -var InsertionSort = (function () { - function InsertionSort(comparator) { - this.comparator = comparator; - } - InsertionSort.prototype.sort = function (list) { - for (var i = 1; i < list.length; i++) { - var item = list[i]; - if (this.comparator(item, list[i - 1]) < 0) { - this.sortUpLowToHigh(list, i); - } - } - }; - InsertionSort.prototype.sortUpLowToHigh = function (list, i) { - var item = list[i]; - var attemptPos = i - 1; - while (attemptPos !== 0 && this.comparator(list[attemptPos - 1], item) > 0) { - attemptPos--; - } - list.splice(i, 1); - list.splice(attemptPos, 0, item); - }; - return InsertionSort; -}()); -export { InsertionSort }; -//# sourceMappingURL=insertion-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/insertion-sort.js.map b/dist/_esm5/models/sorting/insertion-sort.js.map deleted file mode 100644 index 0a6b143d..00000000 --- a/dist/_esm5/models/sorting/insertion-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"insertion-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/insertion-sort.ts"],"names":[],"mappings":"AAIA;IACI,uBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;IACtE,CAAC;IAEM,4BAAI,GAAX,UAAY,IAAS;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,IAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACxC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACjC;SACJ;IACL,CAAC;IAEO,uCAAe,GAAvB,UAAwB,IAAS,EAAE,CAAS;QACxC,IAAM,IAAI,GAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,OAAO,UAAU,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACxE,UAAU,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IACL,oBAAC;AAAD,CAAC,AAtBD,IAsBC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/merge-sort.js b/dist/_esm5/models/sorting/merge-sort.js deleted file mode 100644 index 09f01bdd..00000000 --- a/dist/_esm5/models/sorting/merge-sort.js +++ /dev/null @@ -1,44 +0,0 @@ -var MergeSort = (function () { - function MergeSort(comparator) { - this.comparator = comparator; - this.array = []; - this.tempMergeArray = []; - } - MergeSort.prototype.sort = function (array) { - this.array = array; - this.tempMergeArray = new Array(array.length); - this.doMergeSort(0, array.length - 1); - }; - MergeSort.prototype.doMergeSort = function (lowerIndex, higherIndex) { - if (lowerIndex >= higherIndex) { - return; - } - var middle = Math.floor(lowerIndex + (higherIndex - lowerIndex) / 2); - this.doMergeSort(lowerIndex, middle); - this.doMergeSort(middle + 1, higherIndex); - this.mergeParts(lowerIndex, middle, higherIndex); - }; - MergeSort.prototype.mergeParts = function (lowerIndex, middle, higherIndex) { - for (var index = lowerIndex; index <= higherIndex; index++) { - this.tempMergeArray[index] = this.array[index]; - } - var i = lowerIndex; - var j = middle + 1; - var k = lowerIndex; - while (i <= middle && j <= higherIndex) { - if (this.comparator(this.tempMergeArray[i], this.tempMergeArray[j]) <= 0) { - this.array[k] = this.tempMergeArray[i++]; - } - else { - this.array[k] = this.tempMergeArray[j++]; - } - k++; - } - while (i <= middle) { - this.array[k++] = this.tempMergeArray[i++]; - } - }; - return MergeSort; -}()); -export { MergeSort }; -//# sourceMappingURL=merge-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/merge-sort.js.map b/dist/_esm5/models/sorting/merge-sort.js.map deleted file mode 100644 index db6a4268..00000000 --- a/dist/_esm5/models/sorting/merge-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/merge-sort.ts"],"names":[],"mappings":"AAGA;IAII,mBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAiB,EAAE,CAAC;QACzB,mBAAc,GAAQ,EAAE,CAAC;IAGjC,CAAC;IAEM,wBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,CAAC,KAAK,GA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,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;iBAAM;gBACH,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;YACD,CAAC,EAAE,CAAC;SACP;QACD,OAAO,CAAC,IAAI,MAAM,EAAE;YAChB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;SAC9C;IAEL,CAAC;IACL,gBAAC;AAAD,CAAC,AA5CD,IA4CC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/quick-sort.js b/dist/_esm5/models/sorting/quick-sort.js deleted file mode 100644 index 1d82b078..00000000 --- a/dist/_esm5/models/sorting/quick-sort.js +++ /dev/null @@ -1,44 +0,0 @@ -var QuickSort = (function () { - function QuickSort(comparator) { - this.comparator = comparator; - this.array = []; - this.tmpValue = null; - } - QuickSort.prototype.sort = function (array) { - if (!(array === null || array === void 0 ? void 0 : array.length)) { - return; - } - this.array = array; - this.quickSort(0, array.length - 1); - }; - QuickSort.prototype.quickSort = function (lowerIndex, higherIndex) { - var i = lowerIndex; - var j = higherIndex; - var pivot = this.array[~~(lowerIndex + (higherIndex - lowerIndex) / 2)]; - while (i <= j) { - while (this.comparator(this.array[i], pivot) < 0) { - i++; - } - while (this.comparator(this.array[j], pivot) > 0) { - j--; - } - if (i <= j) { - this.exchangeNumbers(i++, j--); - } - } - if (lowerIndex < j) { - this.quickSort(lowerIndex, j); - } - if (i < higherIndex) { - this.quickSort(i, higherIndex); - } - }; - QuickSort.prototype.exchangeNumbers = function (i, j) { - this.tmpValue = this.array[i]; - this.array[i] = this.array[j]; - this.array[j] = this.tmpValue; - }; - return QuickSort; -}()); -export { QuickSort }; -//# sourceMappingURL=quick-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/quick-sort.js.map b/dist/_esm5/models/sorting/quick-sort.js.map deleted file mode 100644 index 321b69f1..00000000 --- a/dist/_esm5/models/sorting/quick-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quick-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/quick-sort.ts"],"names":[],"mappings":"AAGA;IAII,mBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAgB,EAAE,CAAC;QACxB,aAAQ,GAAa,IAAI,CAAC;IAGlC,CAAC;IAEM,wBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA,EAAE;YAChB,OAAO;SACV;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACxC,CAAC;IAEO,6BAAS,GAAjB,UAAkB,UAAkB,EAAE,WAAmB;QACrD,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,IAAI,CAAC,GAAG,WAAW,CAAC;QAEpB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1E,OAAO,CAAC,IAAI,CAAC,EAAE;YACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YACD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YAED,IAAI,CAAC,IAAI,CAAC,EAAE;gBACR,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;aAClC;SACJ;QAED,IAAI,UAAU,GAAG,CAAC,EAAE;YAChB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;SACjC;QACD,IAAI,CAAC,GAAG,WAAW,EAAE;YACjB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;SAClC;IACL,CAAC;IAEO,mCAAe,GAAvB,UAAwB,CAAS,EAAE,CAAS;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;IACL,gBAAC;AAAD,CAAC,AAhDD,IAgDC"} \ No newline at end of file diff --git a/dist/_esm5/models/sorting/radix-sort.js b/dist/_esm5/models/sorting/radix-sort.js deleted file mode 100644 index 1db2f7bf..00000000 --- a/dist/_esm5/models/sorting/radix-sort.js +++ /dev/null @@ -1,61 +0,0 @@ -var RadixSort = (function () { - function RadixSort(mapper) { - this.mapper = mapper; - } - RadixSort.prototype.sort = function (a) { - var m = a[0]; - var exp = 1; - var b = new Array(a.length); - for (var i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - var mValue = this.mapper(m); - while (mValue / exp > 0) { - var bucket = new Array(10); - for (var i = 0; i < a.length; i++) { - bucket[(this.mapper(a[i]) / exp) % 10]++; - } - for (var i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (var i = a.length - 1; i >= 0; i--) { - b[--bucket[(this.mapper(a[i]) / exp) % 10]] = a[i]; - } - for (var i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - }; - RadixSort.prototype.sort2 = function (a) { - var m = a[0]; - var exp = 1; - var b = new Array(a.length); - for (var i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - while (m / exp > 0) { - var bucket = new Array(10); - for (var i = 0; i < a.length; i++) { - bucket[(a[i] / exp) % 10]++; - } - for (var i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (var i = a.length - 1; i >= 0; i--) { - b[--bucket[(a[i] / exp) % 10]] = a[i]; - } - for (var i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - }; - return RadixSort; -}()); -export { RadixSort }; -//# sourceMappingURL=radix-sort.js.map \ No newline at end of file diff --git a/dist/_esm5/models/sorting/radix-sort.js.map b/dist/_esm5/models/sorting/radix-sort.js.map deleted file mode 100644 index 5af04802..00000000 --- a/dist/_esm5/models/sorting/radix-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"radix-sort.js","sourceRoot":"","sources":["../../../../src/models/sorting/radix-sort.ts"],"names":[],"mappings":"AAKA;IACI,mBAAoC,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAC/D,CAAC;IACM,wBAAI,GAAX,UAAY,CAAM;QACd,IAAI,CAAC,GAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAM,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACV,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACZ;SACJ;QACD,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9B,OAAO,MAAM,GAAG,GAAG,GAAG,CAAC,EAAE;YACrB,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;YAEr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CAAC,EAAE;gBACV,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACZ;SACJ;QACD,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE;YAChB,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;YAErC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC/B,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;aAC/B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;gBACzB,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAC9B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;gBACpC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACzC;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC/B,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACf;YACD,GAAG,IAAI,EAAE,CAAC;SACb;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AA1DD,IA0DC"} \ No newline at end of file diff --git a/dist/_esm5/models/transform-2d.js b/dist/_esm5/models/transform-2d.js deleted file mode 100644 index da1dbf63..00000000 --- a/dist/_esm5/models/transform-2d.js +++ /dev/null @@ -1,11 +0,0 @@ -export function getDefaultTransform2D() { - return { - offset: { - x: 0, - y: 0, - }, - scale: 1, - rotation: 0, - }; -} -//# sourceMappingURL=transform-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/models/transform-2d.js.map b/dist/_esm5/models/transform-2d.js.map deleted file mode 100644 index d79c3cd1..00000000 --- a/dist/_esm5/models/transform-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-2d.js","sourceRoot":"","sources":["../../../src/models/transform-2d.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,qBAAqB;IACjC,OAAO;QACH,MAAM,EAAI;YACN,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACP;QACD,KAAK,EAAK,CAAC;QACX,QAAQ,EAAE,CAAC;KACd,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/node.js b/dist/_esm5/node.js deleted file mode 100644 index ce551e78..00000000 --- a/dist/_esm5/node.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./utils/array-utils"; -export * from "./utils/FileUtils"; -export * from "./utils/math-utils"; -export * from "./utils/misc-utils"; -export * from "./utils/object-utils"; -export * from "./utils/string-utils"; -export * from "./utils/time-utils"; -export * from "./misc/slovak-stemmer"; -export * from "./dom/canvas-manager"; -export * from "./dom/dom-get"; -//# sourceMappingURL=node.js.map \ No newline at end of file diff --git a/dist/_esm5/node.js.map b/dist/_esm5/node.js.map deleted file mode 100644 index 815534b2..00000000 --- a/dist/_esm5/node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,uBAAuB,CAAC;AAMtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/bounders-2d.js b/dist/_esm5/physics/bounders-2d.js deleted file mode 100644 index 9d0dabfa..00000000 --- a/dist/_esm5/physics/bounders-2d.js +++ /dev/null @@ -1,51 +0,0 @@ -import { __assign } from "tslib"; -export function fixXYWH(minMax, xywh) { - var result = { x: xywh.x, y: xywh.y }; - if (xywh.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (xywh.x + xywh.w > minMax.max.x) { - result.x = minMax.max.x - xywh.w; - } - if (xywh.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (xywh.y + xywh.h > minMax.max.y) { - result.y = minMax.max.y - xywh.h; - } - return result; -} -export function fixPosSize(minMax, target) { - var result = __assign({}, target.position); - if (target.position.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (target.position.x + target.size.x > minMax.max.x) { - result.x = minMax.max.x - target.size.x; - } - if (target.position.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (target.position.y + target.size.y > minMax.max.y) { - result.y = minMax.max.y - target.size.y; - } - return result; -} -export function fixSphere(minMax, sphere) { - var result = __assign({}, sphere.center); - var halfRadius = sphere.radius / 2; - if (sphere.center.x - halfRadius < minMax.min.x) { - result.x = minMax.min.x + halfRadius; - } - else if (sphere.center.x + halfRadius > minMax.max.x) { - result.x = minMax.max.x - halfRadius; - } - if (sphere.center.y - halfRadius < minMax.min.y) { - result.y = minMax.min.y + halfRadius; - } - else if (sphere.center.y + halfRadius > minMax.max.y) { - result.y = minMax.max.y - halfRadius; - } - return result; -} -//# sourceMappingURL=bounders-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/bounders-2d.js.map b/dist/_esm5/physics/bounders-2d.js.map deleted file mode 100644 index f7e4af66..00000000 --- a/dist/_esm5/physics/bounders-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bounders-2d.js","sourceRoot":"","sources":["../../../src/physics/bounders-2d.ts"],"names":[],"mappings":";AAIA,MAAM,UAAU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U,CAAC;KACxC;SAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACpD,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/bounding-boxes/AABB3.js b/dist/_esm5/physics/bounding-boxes/AABB3.js deleted file mode 100644 index 824536d8..00000000 --- a/dist/_esm5/physics/bounding-boxes/AABB3.js +++ /dev/null @@ -1,172 +0,0 @@ -import { Vector2 } from "../../math"; -var AABB3 = (function () { - function AABB3(min, max) { - this.min = min; - this.max = max; - } - AABB3.prototype.rayCast = function (result, ray, maxFraction) { - if (maxFraction === void 0) { maxFraction = Infinity; } - var tmin = -Infinity; - var tmax = Infinity; - var p = ray.from; - var d = ray.direction; - var absD = Vector2.getAbs(d); - var normal = Vector2.ZERO; - for (var f = "x"; f !== null; f = (f === "x" ? "y" : null)) { - if (absD.x < Number.EPSILON) { - if (p[f] < this.min[f] || this.max[f] < p[f]) { - return false; - } - } - else { - var invD = 1 / d[f]; - var t1 = (this.min[f] - p[f]) * invD; - var t2 = (this.max[f] - p[f]) * invD; - var s = -1; - if (t1 > t2) { - var temp = t1; - t1 = t2; - t2 = temp; - s = 1; - } - if (t1 > tmin) { - normal.setData(0, 0); - normal[f] = s; - tmin = t1; - } - tmax = Math.min(tmax, t2); - if (tmin > tmax) { - return false; - } - } - } - if (tmin < 0 || maxFraction < tmin) { - return false; - } - result.fraction = tmin; - result.normal.set(normal); - return true; - }; - AABB3.prototype.expandByScalar = function (distance) { - this.min.x -= distance; - this.min.y -= distance; - this.min.z -= distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - }; - AABB3.prototype.expandByVector = function (vec) { - this.min.x -= vec.x; - this.min.y -= vec.y; - this.min.z -= vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - }; - AABB3.prototype.expandByPoint = function (point) { - this.min.x = Math.min(this.min.x, point.x); - this.min.y = Math.min(this.min.y, point.y); - this.min.z = Math.min(this.min.z, point.z); - this.max.x = Math.max(this.max.x, point.x); - this.max.y = Math.max(this.max.y, point.y); - this.max.z = Math.max(this.max.z, point.z); - }; - AABB3.prototype.expandBtAABB = function (other) { - this.min.x = Math.min(this.min.x, other.min.x); - this.min.y = Math.min(this.min.y, other.min.y); - this.min.z = Math.min(this.min.z, other.min.z); - this.max.x = Math.max(this.max.x, other.max.x); - this.max.y = Math.max(this.max.y, other.max.y); - this.max.z = Math.max(this.max.z, other.max.z); - }; - AABB3.prototype.moveByScalar = function (distance) { - this.min.x += distance; - this.min.y += distance; - this.min.z += distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - }; - AABB3.prototype.getCenter = function () { - return { - x: (this.max.x + this.min.x) / 2, - y: (this.max.y + this.min.y) / 2, - z: (this.max.z + this.min.z) / 2, - }; - }; - AABB3.prototype.getSize = function () { - return { - x: this.max.x - this.min.x, - y: this.max.y - this.min.y, - z: this.max.z - this.min.z, - }; - }; - AABB3.prototype.getVolume = function () { - var size = this.getSize(); - return size.x * size.y * size.z; - }; - AABB3.prototype.moveByVector = function (vec) { - this.min.x += vec.x; - this.min.y += vec.y; - this.min.z += vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - }; - AABB3.prototype.getMinMax = function () { - return { - min: this.min, - max: this.max, - }; - }; - AABB3.fromPosAndSize = function (pos, size) { - return new AABB3({ - x: pos.x, - y: pos.y, - z: pos.z, - }, { - x: pos.x + size.x, - y: pos.y + size.y, - z: pos.z + size.z, - }); - }; - AABB3.prototype.getPosition = function () { - return { - x: this.min.x, - y: this.min.y, - z: this.min.z, - }; - }; - AABB3.fromCenterAndSize = function (center, size) { - var halfSize = { - x: size.x / 2, - y: size.y / 2, - z: size.z / 2, - }; - return new AABB3({ - x: center.x + halfSize.x, - y: center.y + halfSize.y, - z: center.z + halfSize.z, - }, { - x: center.x - halfSize.x, - y: center.y - halfSize.y, - z: center.z - halfSize.z, - }); - }; - AABB3.prototype.moveCenterTo = function (center) { - var offset = { - x: center.x - (this.max.x + this.min.x) / 2, - y: center.y - (this.max.y + this.min.y) / 2, - z: center.z - (this.max.z + this.min.z) / 2, - }; - this.min.x += offset.x; - this.min.y += offset.y; - this.min.z += offset.z; - this.max.x += offset.x; - this.max.y += offset.y; - this.max.z += offset.z; - }; - return AABB3; -}()); -export { AABB3 }; -//# sourceMappingURL=AABB3.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/bounding-boxes/AABB3.js.map b/dist/_esm5/physics/bounding-boxes/AABB3.js.map deleted file mode 100644 index 4e78b32d..00000000 --- a/dist/_esm5/physics/bounding-boxes/AABB3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AABB3.js","sourceRoot":"","sources":["../../../../src/physics/bounding-boxes/AABB3.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,OAAO,EAAE,MAAM,YAAY,CAAC;AAGpD;IACI,eAAsC,GAAkB,EAAqB,GAAkB;QAAzD,QAAG,GAAH,GAAG,CAAe;QAAqB,QAAG,GAAH,GAAG,CAAe;IAC/F,CAAC;IAEM,uBAAO,GAAd,UAAe,MAAqB,EAAE,GAAY,EAAE,WAAsB;QAAtB,4BAAA,EAAA,sBAAsB;QAGtE,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC;QACrB,IAAI,IAAI,GAAG,QAAQ,CAAC;QAEpB,IAAM,CAAC,GAAM,GAAG,CAAC,IAAI,CAAC;QACtB,IAAM,CAAC,GAAM,GAAG,CAAC,SAAS,CAAC;QAC3B,IAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAE/B,IAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;QAG5B,KAAK,IAAI,CAAC,GAAc,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE,C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,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YAC3C,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;SAC9C,CAAC;QAEF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;IAC3B,CAAC;IAEL,YAAC;AAAD,CAAC,AAlND,IAkNC"} \ No newline at end of file diff --git a/dist/_esm5/physics/closest-2d.js b/dist/_esm5/physics/closest-2d.js deleted file mode 100644 index 34446265..00000000 --- a/dist/_esm5/physics/closest-2d.js +++ /dev/null @@ -1,22 +0,0 @@ -export function pointLine2dClosest(sx1, sy1, sx2, sy2, px, py) { - var xDelta = sx2 - sx1; - var yDelta = sy2 - sy1; - var u = ((px - sx1) * xDelta + (py - sy1) * yDelta) / (xDelta * xDelta + yDelta * yDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - }; -} -//# sourceMappingURL=closest-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/closest-2d.js.map b/dist/_esm5/physics/closest-2d.js.map deleted file mode 100644 index ca69315f..00000000 --- a/dist/_esm5/physics/closest-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-2d.js","sourceRoot":"","sources":["../../../src/physics/closest-2d.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAC9B,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU;IAEV,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,IAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE5F,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/closest-3d.js b/dist/_esm5/physics/closest-3d.js deleted file mode 100644 index 14ba64b3..00000000 --- a/dist/_esm5/physics/closest-3d.js +++ /dev/null @@ -1,27 +0,0 @@ -export function getClosestPointOnLine(sx1, sy1, sz1, sx2, sy2, sz2, px, py, pz) { - var xDelta = sx2 - sx1; - var yDelta = sy2 - sy1; - var zDelta = sz2 - sz1; - var u = ((px - sx1) * xDelta + (py - sy1) * yDelta + (pz - sz1) * zDelta); - u /= (xDelta * xDelta + yDelta * yDelta + zDelta * zDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - z: sz1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - z: sz2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - z: sz1 + u * zDelta, - }; -} -//# sourceMappingURL=closest-3d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/closest-3d.js.map b/dist/_esm5/physics/closest-3d.js.map deleted file mode 100644 index aa92a60b..00000000 --- a/dist/_esm5/physics/closest-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-3d.js","sourceRoot":"","sources":["../../../src/physics/closest-3d.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB,CACjC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU,EACV,EAAU;IAEV,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC1E,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3D,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IACD,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/collisions-2d.js b/dist/_esm5/physics/collisions-2d.js deleted file mode 100644 index 66fdd516..00000000 --- a/dist/_esm5/physics/collisions-2d.js +++ /dev/null @@ -1,128 +0,0 @@ -import { distance2dPointPoint } from "./distances-2d"; -export function circleRect2dCollision(cPosX, cPosY, cRadius, rPosX, rPosY, rSizeX, rSizeY) { - var circleDistanceX = Math.abs(cPosX - rPosX); - var circleDistanceY = Math.abs(cPosY - rPosY); - if (circleDistanceX > rSizeX / 2 + cRadius) { - return false; - } - if (circleDistanceY > rSizeY / 2 + cRadius) { - return false; - } - if (circleDistanceX <= rSizeX / 2) { - return true; - } - if (circleDistanceY <= rSizeY / 2) { - return true; - } - var cornerDistanceSQ = Math.pow(circleDistanceX - rPosX / 2, 2) + - Math.pow(circleDistanceY - rPosY / 2, 2); - return cornerDistanceSQ <= Math.pow(cRadius, 2); -} -export function lineRectangle2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) { - return pointRect2dCollision(aStartX, aStartY, bPosX, bPosY, bSizeX, bSizeY) || - pointRect2dCollision(aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bPosX + bSizeX, bPosY + bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX + bSizeX, bPosY, bPosX, bPosY + bSizeY); -} -export function lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bStartX, bStartY, bEndX, bEndY) { - var denominator = (aEndX - aStartX) * (bEndY - bStartY) - (aEndY - aStartY) * (bEndX - bStartX); - var numerator1 = (aStartY - bStartY) * (bEndX - bStartX) - (aStartX - bStartX) * (bEndY - bStartY); - var numerator2 = (aStartY - bStartY) * (aEndX - aStartX) - (aStartX - bStartX) * (aEndY - aStartY); - if (denominator === 0) { - return numerator1 === 0 && numerator2 === 0; - } - var r = numerator1 / denominator; - var s = numerator2 / denominator; - return r >= 0 && r <= 1 && (s >= 0 && s <= 1); -} -export function lineLine2dCollision2(a, b, c, d, p, q, r, s) { - var det = (c - a) * (s - q) - (r - p) * (d - b); - if (det === 0) { - return false; - } - var lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det; - var gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det; - return (0 < lambda && lambda < 1) && (0 < gamma && gamma < 1); -} -export function rectRect2dCollision(ax, ay, aw, ah, bx, by, bw, bh) { - return bx + bw >= ax && by + bh >= ay && bx <= ax + aw && by <= ay + ah; -} -export function circleCircle2dCollision(aX, aY, aRadius, bX, bY, bRadius) { - return distance2dPointPoint(aX, aY, bX, bY) <= aRadius + bRadius; -} -export function pointRect2dCollision(pointX, pointY, rectX, rectY, rectW, rectH) { - return pointX >= rectX && - pointY >= rectY && - pointX <= rectX + rectW && - pointY <= rectY + rectH; -} -export function pointRectMinMax2dCollision(pointX, pointY, minX, minY, maxX, maxY) { - return pointX >= minX && - pointY >= minY && - pointX <= maxX && - pointY <= maxY; -} -export function pointCircle2dCollision(pointX, pointY, circleX, circleY, circleRadius) { - return distance2dPointPoint(pointX, pointY, circleX, circleY) <= circleRadius; -} -export function pointPolygon2dCollision2(x, y, vs) { - var inside = false; - var i = 0; - var j = vs.length - 1; - for (; i < vs.length; j = i++) { - var xi = vs[i][0]; - var yi = vs[i][1]; - var xj = vs[j][0]; - var yj = vs[j][1]; - var intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi); - if (intersect) { - inside = !inside; - } - } - return inside; -} -export function pointMultiPolygon2dCollision(pointX, pointY, polys, ignoreBoundary) { - if (ignoreBoundary === void 0) { ignoreBoundary = false; } - var multipolygon = [polys]; - var pt = [pointX, pointY]; - var insidePoly = false; - for (var i = 0; i < multipolygon.length && !insidePoly; i++) { - if (pointPolygon2dCollision(pt, multipolygon[i][0], ignoreBoundary)) { - var inHole = false; - var k = 1; - while (k < multipolygon[i].length && !inHole) { - if (pointPolygon2dCollision(pt, multipolygon[i][k], !ignoreBoundary)) { - inHole = true; - } - k++; - } - if (!inHole) { - insidePoly = true; - } - } - } - return insidePoly; -} -export function pointPolygon2dCollision(pt, ring, ignoreBoundary) { - var isInside = false; - if (ring[0][0] === ring[ring.length - 1][0] && - ring[0][1] === ring[ring.length - 1][1]) { - ring = ring.slice(0, ring.length - 1); - } - for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) { - var xi = ring[i][0]; - var yi = ring[i][1]; - var xj = ring[j][0]; - var yj = ring[j][1]; - var onBoundary = pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0 && (xi - pt[0]) * (xj - pt[0]) <= 0 && (yi - pt[1]) * (yj - pt[1]) <= 0; - if (onBoundary) { - return !ignoreBoundary; - } - var intersect = yi > pt[1] !== yj > pt[1] && pt[0] < ((xj - xi) * (pt[1] - yi)) / (yj - yi) + xi; - if (intersect) { - isInside = !isInside; - } - } - return isInside; -} -//# sourceMappingURL=collisions-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/collisions-2d.js.map b/dist/_esm5/physics/collisions-2d.js.map deleted file mode 100644 index e77f9eee..00000000 --- a/dist/_esm5/physics/collisions-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-2d.js","sourceRoot":"","sources":["../../../src/physics/collisions-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,UAAU,qBAAqB,CACjC,KAAa,EACb,KAAa,EACb,OAAe,EACf,KAAa,EACb,KAAa,EACb,MAAc,EACd,MAAc;IAEd,IAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;IAChD,IAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG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CAAC,CAAC;QAC3J,IAAI,UAAU,EAAE;YACZ,OAAO,CAAC,cAAc,CAAC;SAC1B;QACD,IAAM,SAAS,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QACnG,IAAI,SAAS,EAAE;YACX,QAAQ,GAAG,CAAC,QAAQ,CAAC;SACxB;KACJ;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/collisions-3d.js b/dist/_esm5/physics/collisions-3d.js deleted file mode 100644 index 40a4a205..00000000 --- a/dist/_esm5/physics/collisions-3d.js +++ /dev/null @@ -1,201 +0,0 @@ -import { Vector3 } from "../math"; -import { getClosestPointOnLine } from "./closest-3d"; -import { circleRect2dCollision } from "./collisions-2d"; -import { distance2dPointPoint } from "./distances-2d"; -import { pointLine3dDistance, pointPoint3dDistance } from "./distances-3d"; -import { intersection3dVectorSquare } from "./intersects-3d"; -export function collision3dSphereSphere(ax, ay, az, aRadius, bx, by, bz, bRadius) { - var dist = pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= aRadius + bRadius; -} -export function collision3dPointSphere(ax, ay, az, bx, by, bz, bRadius) { - var dist = pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= bRadius; -} -export function collision3dLineSphere(ax, ay, az, bx, by, bz, sx, sy, sz, sr) { - return pointLine3dDistance(ax, ay, az, bx, by, bz, sx, sy, sz) < sr; -} -export var IntersectionType; -(function (IntersectionType) { - IntersectionType["OUTSIDE"] = "OUTSIDE"; - IntersectionType["INSIDE"] = "INSIDE"; - IntersectionType["ONE_INTERSECTION"] = "ONE_INTERSECTION"; - IntersectionType["TWO_INTERSECTION"] = "TWO_INTERSECTION"; -})(IntersectionType || (IntersectionType = {})); -export function collision3dLineBox2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, minX, minY, minZ, maxX, maxY, maxZ, result) { - var dirX = p1X - p0X; - var dirY = p1Y - p0Y; - var dirZ = p1Z - p0Z; - var invDirX = 1 / dirX; - var invDirY = 1 / dirY; - var invDirZ = 1 / dirZ; - var tNear; - var tFar; - var tymin; - var tymax; - var tzmin; - var tzmax; - if (invDirX >= 0) { - tNear = (minX - p0X) * invDirX; - tFar = (maxX - p0X) * invDirX; - } - else { - tNear = (maxX - p0X) * invDirX; - tFar = (minX - p0X) * invDirX; - } - if (invDirY >= 0) { - tymin = (minY - p0Y) * invDirY; - tymax = (maxY - p0Y) * invDirY; - } - else { - tymin = (maxY - p0Y) * invDirY; - tymax = (minY - p0Y) * invDirY; - } - if (tNear > tymax || tymin > tFar) { - return IntersectionType.OUTSIDE; - } - if (invDirZ >= 0) { - tzmin = (minZ - p0Z) * invDirZ; - tzmax = (maxZ - p0Z) * invDirZ; - } - else { - tzmin = (maxZ - p0Z) * invDirZ; - tzmax = (minZ - p0Z) * invDirZ; - } - if (tNear > tzmax || tzmin > tFar) { - return IntersectionType.OUTSIDE; - } - tNear = tymin > tNear || isNaN(tNear) ? tymin : tNear; - tFar = tymax < tFar || isNaN(tFar) ? tymax : tFar; - tNear = tzmin > tNear ? tzmin : tNear; - tFar = tzmax < tFar ? tzmax : tFar; - var type = IntersectionType.OUTSIDE; - if (tNear < tFar && tNear <= 1 && tFar >= 0) { - if (tNear > 0 && tFar > 1) { - tFar = tNear; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar < 1) { - tNear = tFar; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar > 1) { - type = IntersectionType.INSIDE; - } - else { - type = IntersectionType.TWO_INTERSECTION; - } - result.x = tNear; - result.y = tFar; - } - return type; -} -export function collision3dBoxBoxMinMax(ax, ay, az, aWidth, aHeight, aDepth, minX, minY, minZ, maxX, maxY, maxZ) { - return ax + aWidth > minX && ax < maxX - && ay + aHeight > minY && ay < maxY - && az + aDepth > minZ && az < maxZ; -} -export function collision3dMinMaxMinMax(minAX, minAY, minAZ, maxAX, maxAY, maxAZ, minBX, minBY, minBZ, maxBX, maxBY, maxBZ) { - return maxAX > minBX && minAX < maxBX - && maxAY > minBY && minAY < maxBY - && maxAZ > minBZ && minAZ < maxBZ; -} -export function collision3dPointBox(bx, by, bz, ax, ay, az, aWidth, aHeight, aDepth) { - return ax < bx && ax + aWidth > bx - && ay < by && ay + aHeight > by - && az < bz && az + aDepth > bz; -} -export function collision3dPointBoxMinMax(bPosX, bPosY, bPosZ, minX, minY, minZ, maxX, maxY, maxZ) { - return bPosX >= minX && bPosX <= maxX - && bPosY >= minY && bPosY >= minY - && bPosZ >= minZ && bPosZ <= maxZ; -} -export function collision3dLineBox(a1x, a1y, a1z, a2x, a2y, a2z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - return intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ - bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ - bSizeZ); -} -export function collision3dLineSphere2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, centerX, centerY, centerZ, radiusSquared) { - var dX = p1X - p0X; - var dY = p1Y - p0Y; - var dZ = p1Z - p0Z; - var nom = (centerX - p0X) * dX + (centerY - p0Y) * dY + (centerZ - p0Z) * dZ; - var den = dX * dX + dY * dY + dZ * dZ; - var u = nom / den; - if (u < 0) { - dX = p0X - centerX; - dY = p0Y - centerY; - dZ = p0Z - centerZ; - } - else if (u > 1) { - dX = p1X - centerX; - dY = p1Y - centerY; - dZ = p1Z - centerZ; - } - else { - var pX = p0X + u * dX; - var pY = p0Y + u * dY; - var pZ = p0Z + u * dZ; - dX = pX - centerX; - dY = pY - centerY; - dZ = pZ - centerZ; - } - var dist = dX * dX + dY * dY + dZ * dZ; - return dist <= radiusSquared; -} -export function collision3dBoxBox(ax, ay, az, aw, ah, ad, bx, by, bz, bw, bh, bd) { - return ax + aw > bx && bx + bw > ax && - ay + ah > by && by + bh > ay && - az + ad > bz && bz + bd > az; -} -export function collision3dPointEllipsoid(ax, ay, az, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - var aposNewX = ax - bPosX; - var aposNewY = ay - bPosY; - var aposNewZ = az - bPosZ; - var xa = (aposNewX * aposNewX) / (bSizeX * bSizeX); - var yb = (aposNewY * aposNewY) / (bSizeY * bSizeY); - var zc = (aposNewZ * aposNewZ) / (bSizeZ * bSizeZ); - return xa + yb + zc <= 1; -} -export function collision3dLineEllipsoid(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - var point = getClosestPointOnLine(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ); - return collision3dPointEllipsoid(point.x, point.y, point.z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ); -} -export function collision3dPointCylinder(ax, ay, az, bx, by, bz, bRadius, bHeight) { - var conditionOne = ay > by && ay < by + bHeight; - var conditionTwo = distance2dPointPoint(ax, az, bx, bz) < bRadius; - return conditionOne && conditionTwo; -} -export function collision3dBoxCylinder(ax, ay, az, aSizeX, aSizeY, aSizeZ, bx, by, bz, bRadius, bHeight) { - if (ay < by + bHeight || ay + aSizeY > by) { - return false; - } - return circleRect2dCollision(bx, bz, bRadius, ax, az, aSizeX, aSizeZ); -} -export function collision3dSphereCylinder(ax, ay, az, aRadius, bx, by, bz, bRadius, bHeight) { - var conditionOne = ay + aRadius > by && ay - aRadius < by + bHeight; - var conditionTwo = distance2dPointPoint(ax, az, bx, bz) < aRadius + bRadius; - return conditionOne && conditionTwo; -} -export function collision3dSphereBoxMinMax(centerX, centerY, centerZ, radiusSquared, minX, minY, minZ, maxX, maxY, maxZ) { - var radius2 = radiusSquared; - var func = function (val) { - var d = 0; - if (val.z < val.x) { - d = val.z - val.x; - } - else if (val.z > val.y) { - d = val.z - val.y; - } - return d * d; - }; - var params = new Vector3(); - radius2 -= func(params.setData(minX, maxX, centerX)); - radius2 -= func(params.setData(minY, maxY, centerY)); - radius2 -= func(params.setData(minZ, maxZ, centerZ)); - return radius2 >= 0; -} -//# sourceMappingURL=collisions-3d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/collisions-3d.js.map b/dist/_esm5/physics/collisions-3d.js.map deleted file mode 100644 index e6a618b7..00000000 --- a/dist/_esm5/physics/collisions-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-3d.js","sourceRoot":"","sources":["../../../src/physics/collisions-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,UAAU,uBAAuB,CACnC,EAAU,EACV,EAAU,EACV,EAAU,EACV,OAAe,EACf,EAAU,EACV,EAAU,EACV,EAAU,EACV,OAAe;IAEf,IAAM,IAAI,GAAG,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAE1D,OAAO,IAAI,IAAI,OAAO,GAAG,OAAO,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,OAAe;IAEf,IAAM,IAAI,GAAG,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAE1D,OAAO,IAAI,IAAI,OAAO,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,qBAAqB,CACjC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,mBAAmB,CAA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,GAAG,CAAC,CAAC,EAAE;YACtB,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SACrB;QAED,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC,CAAC;IACF,IAAM,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;IAC7B,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAErD,OAAO,OAAO,IAAI,CAAC,CAAC;AACxB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/distances-2d.js b/dist/_esm5/physics/distances-2d.js deleted file mode 100644 index 89f698d1..00000000 --- a/dist/_esm5/physics/distances-2d.js +++ /dev/null @@ -1,53 +0,0 @@ -export function distance2dPointPoint(ax, ay, bx, by) { - return Math.sqrt(distance2dPointPointSqr(ax, ay, bx, by)); -} -export function distance2dPointPointSqr(ax, ay, bx, by) { - var distX = ax - bx; - var distY = ay - by; - return distX * distX + distY * distY; -} -export function distance2dCircleCircle(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br - ar, 0); -} -export function distance2dCircleCircleSqr(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br - ar); -} -export function distance2dPointCircle(ax, ay, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br, 0); -} -export function distance2dPointCircleSqr(ax, ay, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br, 0); -} -export function distance2dPointLine(aX, aY, bX, bY, pX, pY) { - return Math.sqrt(distance2dPointLineSqr(aX, aY, bX, bY, pX, pY)); -} -export function distance2dPointLineSqr(aX, aY, bX, bY, pX, pY) { - var A = pX - aX; - var B = pY - aY; - var C = bX - aX; - var D = bY - aY; - var dot = A * C + B * D; - var lengthSquare = C * C + D * D; - var param = -1; - if (lengthSquare !== 0) { - param = dot / lengthSquare; - } - var xx; - var yy; - if (param < 0) { - xx = aX; - yy = aY; - } - else if (param > 1) { - xx = bX; - yy = bY; - } - else { - xx = aX + param * C; - yy = aY + param * D; - } - var dx = pX - xx; - var dy = pY - yy; - return dx * dx + dy * dy; -} -//# sourceMappingURL=distances-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/distances-2d.js.map b/dist/_esm5/physics/distances-2d.js.map deleted file mode 100644 index 355c1108..00000000 --- a/dist/_esm5/physics/distances-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-2d.js","sourceRoot":"","sources":["../../../src/physics/distances-2d.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC/E,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAClF,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IAEtB,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,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C;IAClB,IAAM,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IAElB,IAAM,GAAG,GAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,IAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,KAAK,GAAY,CAAC,CAAC,CAAC;IACxB,IAAI,YAAY,KAAK,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,GAAG,YAAY,CAAC;KAC9B;IAED,IAAI,EAAU,CAAC;IACf,IAAI,EAAU,CAAC;IAEf,IAAI,KAAK,GAAG,CAAC,EAAE;QACX,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QAClB,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM;QACH,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;QACpB,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;KACvB;IAED,IAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,IAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAEnB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/distances-3d.js b/dist/_esm5/physics/distances-3d.js deleted file mode 100644 index 7d3f9307..00000000 --- a/dist/_esm5/physics/distances-3d.js +++ /dev/null @@ -1,52 +0,0 @@ -import { Vector3 } from "../math"; -export function pointPoint3dDistance(ax, ay, az, bx, by, bz) { - return Math.sqrt(pointPointSqr3dDistance(ax, ay, az, bx, by, bz)); -} -export function pointPointSqr3dDistance(ax, ay, az, bx, by, bz) { - var distX = ax - bx; - var distY = ay - by; - var distZ = az - bz; - return distX * distX + distY * distY + distZ * distZ; -} -export function pointLine3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ) { - var aSubBx = aStartX - aEndX; - var aSubBy = aStartY - aEndY; - var aSubBz = aStartZ - aEndZ; - var pSubBx = bCenterX - aEndX; - var pSubBy = bCenterY - aEndY; - var pSubBz = bCenterZ - aEndZ; - var dotA = aSubBx * pSubBx + aSubBy * pSubBy + aSubBz * pSubBz; - if (dotA < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aEndX, aEndY, aEndZ); - } - var bSubAx = aEndX - aStartX; - var bSubAy = aEndY - aStartY; - var bSubAz = aEndZ - aStartZ; - var pSubAx = bCenterX - aStartX; - var pSubAy = bCenterY - aStartY; - var pSubAz = bCenterZ - aStartZ; - var dotB = bSubAx * pSubAx + bSubAy * pSubAy + bSubAz * pSubAz; - if (dotB < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aStartX, aStartY, aStartZ); - } - return vectorPoint3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ); -} -export function pointNormalPlane3dDistance(aNormal, aPoint, bPoint) { - var d = -Vector3.mul(aNormal, aPoint, new Vector3()).sum(); - return Math.abs((Vector3.mul(aNormal, bPoint, new Vector3()).sum() + d) / Math.sqrt(Vector3.mul(aNormal, aNormal, new Vector3()).sum())); -} -export function vectorPoint3dDistance(startX, startY, startZ, endX, endY, endZ, pointX, pointY, pointZ) { - var startSubEndX = startX - endX; - var startSubEndY = startY - endY; - var startSubEndZ = startZ - endZ; - var endSubPointX = endX - pointX; - var endSubPointY = endY - pointY; - var endSubPointZ = endZ - pointZ; - var crossX = startSubEndY * endSubPointZ - startSubEndZ * endSubPointY; - var crossY = startSubEndZ * endSubPointX - startSubEndX * endSubPointZ; - var crossZ = startSubEndX * endSubPointY - startSubEndY * endSubPointX; - var length1 = Math.sqrt(crossX * crossX + crossY * crossY + crossZ * crossZ); - var length2 = Math.sqrt(startSubEndX * startSubEndX + startSubEndY * startSubEndY + startSubEndZ * startSubEndZ); - return length1 / length2; -} -//# sourceMappingURL=distances-3d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/distances-3d.js.map b/dist/_esm5/physics/distances-3d.js.map deleted file mode 100644 index 55bd8d64..00000000 --- a/dist/_esm5/physics/distances-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-3d.js","sourceRoot":"","sources":["../../../src/physics/distances-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,UAAU,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACvG,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC1G,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IAEtB,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,OAAe,EACf,OAAe,EACf,OAAe,EACf,KAAa,EACb,KAAa,EACb,KAAa,EACb,QAAgB,EAChB,QAAgB,EAChB,QAAgB;IAEhB,IAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,IAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,IAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/B,IAAM,MAAM,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AAO,OAAO,GAAG,OAAO,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/index.js b/dist/_esm5/physics/index.js deleted file mode 100644 index c08ddf46..00000000 --- a/dist/_esm5/physics/index.js +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./closest-2d"; -export * from "./closest-3d"; -export * from "./collisions-2d"; -export * from "./collisions-3d"; -export * from "./distances-2d"; -export * from "./distances-3d"; -export * from "./bounders-2d"; -export * from "./objects"; -export * from "./intersects-2d"; -export * from "./intersects-3d"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/index.js.map b/dist/_esm5/physics/index.js.map deleted file mode 100644 index 0c29ed49..00000000 --- a/dist/_esm5/physics/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/physics/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/intersects-2d.js b/dist/_esm5/physics/intersects-2d.js deleted file mode 100644 index ca817e61..00000000 --- a/dist/_esm5/physics/intersects-2d.js +++ /dev/null @@ -1,17 +0,0 @@ -export function intersection2dLineLine(x1, y1, x2, y2, x3, y3, x4, y4) { - var denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1); - if (denom === 0) { - return null; - } - var numeA = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3); - var numeB = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3); - var uA = numeA / denom; - var uB = numeB / denom; - if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) { - var x = x1 + uA * (x2 - x1); - var y = y1 + uA * (y2 - y1); - return { x: x, y: y }; - } - return null; -} -//# sourceMappingURL=intersects-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/intersects-2d.js.map b/dist/_esm5/physics/intersects-2d.js.map deleted file mode 100644 index f5d7d0a1..00000000 --- a/dist/_esm5/physics/intersects-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-2d.js","sourceRoot":"","sources":["../../../src/physics/intersects-2d.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAI,KAAK,KAAK,CAAC,EAAE;QACb,OAAO,IAAI,CAAC;KACf;IAED,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAE5D,IAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IACzB,IAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IAEzB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QAC1C,IAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,IAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAE9B,OAAO,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC,CAAC;KACjB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/intersects-3d.js b/dist/_esm5/physics/intersects-3d.js deleted file mode 100644 index eae87225..00000000 --- a/dist/_esm5/physics/intersects-3d.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Vector3 } from "../math"; -export function intersection3dVectorSquare(r1x, r1y, r1z, r2x, r2y, r2z, s1x, s1y, s1z, s2x, s2y, s2z, s3x, s3y, s3z) { - return intersection3dVectorSquare_2(new Vector3(r1x, r1y, r1z), new Vector3(r2x, r2y, r2z), new Vector3(s1x, s1y, s1z), new Vector3(s2x, s2y, s2z), new Vector3(s3x, s3y, s3z)); -} -export function intersection3dVectorSquare_2(R1, R2, S1, S2, S3, limit) { - if (limit === void 0) { limit = 1e-6; } - var dS21 = Vector3.sub(S2, S1); - var dS31 = Vector3.sub(S3, S1); - var squareNormal = dS21.cross(dS31); - var dR = Vector3.sub(R1, R2); - var ndotdR = squareNormal.dot(dR); - if (Math.abs(ndotdR) < limit) { - return false; - } - var t = -squareNormal.dot(Vector3.sub(R1, S1)) / ndotdR; - var M = Vector3.sub(R1, dR.mul(t)); - var dMS1 = M.sub(S1); - var u = dMS1.dot(dS21); - var v = dMS1.dot(dS31); - return (u >= 0 && u <= dS21.dot(dS21) && v >= 0 && v <= dS31.dot(dS31)); -} -export function intersection3dPlaneLine(planePointX, planePointY, planePointZ, planeNormalX, planeNormalY, planeNormalZ, linePointX, linePointY, linePointZ, lineDirectionX, lineDirectionY, lineDirectionZ, limit) { - return intersection3dPlaneLineIntersectionAdvanced(new Vector3(planePointX, planePointY, planePointZ), new Vector3(planeNormalX, planeNormalY, planeNormalZ), new Vector3(linePointX, linePointY, linePointZ), new Vector3(lineDirectionX, lineDirectionY, lineDirectionZ), limit); -} -export function intersection3dPlaneLineIntersectionAdvanced(planePoint, planeNormal, linePoint, lineDirection, limit) { - if (limit === void 0) { limit = 1e-6; } - lineDirection.normalize(); - if (planeNormal.dot(lineDirection) < limit) { - return null; - } - var t = (planeNormal.dot(planePoint) - planeNormal.dot(linePoint)) / planeNormal.dot(lineDirection); - return linePoint.add(lineDirection.mul(t)); -} -//# sourceMappingURL=intersects-3d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/intersects-3d.js.map b/dist/_esm5/physics/intersects-3d.js.map deleted file mode 100644 index df0f3cc2..00000000 --- a/dist/_esm5/physics/intersects-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-3d.js","sourceRoot":"","sources":["../../../src/physics/intersects-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,OAAO,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,UAAU,0BAA0B,CACtC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW;IAEX,OAAO,4BAA4B,CAC/B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAC7B,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,4BAA4B,CACxC,EAAiB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nB,WAAmB,EACnB,WAAmB,EACnB,YAAoB,EACpB,YAAoB,EACpB,YAAoB,EACpB,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,cAAsB,EACtB,cAAsB,EACtB,cAAsB,EACtB,KAAc;IAEd,OAAO,2CAA2C,CAC9C,IAAI,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,EAClD,IAAI,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,EACrD,IAAI,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EAC/C,IAAI,OAAO,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,EAC3D,KAAK,CACR,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,2CAA2C,CACvD,UAAmB,EACnB,WAAoB,EACpB,SAAkB,EAClB,aAAsB,EACtB,KAAY;IAAZ,sBAAA,EAAA,YAAY;IAEZ,aAAa,CAAC,SAAS,EAAE,CAAC;IAC1B,IAAI,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE;QACxC,OAAO,IAAI,CAAC;KACf;IAED,IAAM,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAEtG,OAAO,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/capsule.js b/dist/_esm5/physics/objects/2d/capsule.js deleted file mode 100644 index d3209436..00000000 --- a/dist/_esm5/physics/objects/2d/capsule.js +++ /dev/null @@ -1,60 +0,0 @@ -import { Vector2 } from "gtools/math"; -var Capsule = (function () { - function Capsule(start, end, radius) { - this.start = start; - this.end = end; - this.radius = radius; - } - Object.defineProperty(Capsule.prototype, "boundingRadius", { - get: function () { - return this.radius + this.length / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "area", { - get: function () { - return Math.PI * this.radius * this.radius + this.radius * 2 * this.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "circuit", { - get: function () { - return 2 * Math.PI * this.radius + 2 * Vector2.dist(this.start, this.end); - }, - enumerable: false, - configurable: true - }); - Capsule.prototype.toMinMax = function () { - throw new Error("Not implemented"); - }; - Object.defineProperty(Capsule.prototype, "momentOfInertia", { - get: function () { - var boxI = function (w, h) { return w * h * (Math.pow(w, 2) + Math.pow(h, 2)) / 12; }; - var semiA = function (r) { return Math.PI * Math.pow(r, 2) / 2; }; - var semiI = function (r) { return ((Math.PI / 4) - (8 / (9 * Math.PI))) * Math.pow(r, 4); }; - var semiC = function (r) { return (4 * r) / (3 * Math.PI); }; - var capsuleA = function (l, r) { return l * 2 * r + Math.PI * Math.pow(r, 2); }; - var capsuleI = function (l, r) { - var d = l / 2 + semiC(r); - return boxI(l, 2 * r) + 2 * (semiI(r) + semiA(r) * Math.pow(d, 2)); - }; - var length = this.length; - var area = capsuleA(length, this.radius); - return (area > 0) ? capsuleI(length, this.radius) / area : 0; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "length", { - get: function () { - return Vector2.dist(this.start, this.end); - }, - enumerable: false, - configurable: true - }); - return Capsule; -}()); -export { Capsule }; -//# sourceMappingURL=capsule.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/capsule.js.map b/dist/_esm5/physics/objects/2d/capsule.js.map deleted file mode 100644 index 2746d6ee..00000000 --- a/dist/_esm5/physics/objects/2d/capsule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"capsule.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/capsule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,aAAa,CAAC;AAOrD;IACI,iBACqB,KAAoB,E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AAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,CAAC;;;OAAA;IACL,cAAC;AAAD,CAAC,AArDD,IAqDC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/line.js b/dist/_esm5/physics/objects/2d/line.js deleted file mode 100644 index 713fe300..00000000 --- a/dist/_esm5/physics/objects/2d/line.js +++ /dev/null @@ -1,49 +0,0 @@ -import { Vector2 } from "gtools/math"; -var Line = (function () { - function Line(pointA, pointB) { - this.pointA = pointA; - this.pointB = pointB; - } - Object.defineProperty(Line.prototype, "length", { - get: function () { - return Vector2.dist(this.pointA, this.pointB); - }, - enumerable: false, - configurable: true - }); - Line.prototype.angle = function () { - return Math.atan2(this.pointB.y - this.pointA.y, this.pointB.x - this.pointA.x); - }; - Object.defineProperty(Line.prototype, "boundingRadius", { - get: function () { - return this.length / 2; - }, - enumerable: false, - configurable: true - }); - Line.fromPoints = function (aX, aY, bX, bY) { - return new Line({ - x: aX, - y: aY, - }, { - x: bX, - y: bY, - }); - }; - Object.defineProperty(Line.prototype, "momentOfInertia", { - get: function () { - return Math.pow(this.length, 2) / 12; - }, - enumerable: false, - configurable: true - }); - Line.prototype.toMinMax = function () { - return { - min: Vector2.min(this.pointA, this.pointB), - max: Vector2.max(this.pointA, this.pointB), - }; - }; - return Line; -}()); -export { Line }; -//# sourceMappingURL=line.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/line.js.map b/dist/_esm5/physics/objects/2d/line.js.map deleted file mode 100644 index b629272c..00000000 --- a/dist/_esm5/physics/objects/2d/line.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,aAAa,CAAC;AAOrD;IACI,cAAmC,MAAqB,EACrB,MAAqB;QADrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;IACxD,CAAC;IAED,sBAAW,wBAAM;aAAjB;YACI,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC;;;OAAA;IAIM,oBAAK,GAAZ;QACI,OAAO,IAAI,CAAC,KAAK,CACb,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAC7B,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAChC,CAAC;IACN,CAAC;IAED,sBAAW,gCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3B,CAAC;;;OAAA;IAGa,eAAU,GAAxB,UAAyB,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;QACnE,OAAO,IAAI,IAAI,CACX;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,EACD;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,CACJ,CAAC;IACN,CAAC;IAED,sBAAW,iCAAe;aAA1B;YACI,OAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;QAC1C,CAAC;;;OAAA;IAEM,uBAAQ,GAAf;QACI,OAAO;YACH,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YAC1C,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;SAC7C,CAAC;IACN,CAAC;IACL,WAAC;AAAD,CAAC,AA9CD,IA8CC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/object2-d.js b/dist/_esm5/physics/objects/2d/object2-d.js deleted file mode 100644 index 538f5e81..00000000 --- a/dist/_esm5/physics/objects/2d/object2-d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=object2-d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/object2-d.js.map b/dist/_esm5/physics/objects/2d/object2-d.js.map deleted file mode 100644 index c55619e3..00000000 --- a/dist/_esm5/physics/objects/2d/object2-d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object2-d.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/object2-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/ray-2d.js b/dist/_esm5/physics/objects/2d/ray-2d.js deleted file mode 100644 index 6d2b7e2c..00000000 --- a/dist/_esm5/physics/objects/2d/ray-2d.js +++ /dev/null @@ -1,124 +0,0 @@ -import { Vector2 } from "../../../math"; -var Ray2D = (function () { - function Ray2D(origin, direction, length) { - if (length === void 0) { length = Infinity; } - this.origin = origin; - this.direction = direction; - this.length = length; - } - Object.defineProperty(Ray2D.prototype, "end", { - get: function () { - return Vector2.from(this.direction.x, this.direction.y).mul(this.length).add(this.origin); - }, - enumerable: false, - configurable: true - }); - Ray2D.fromLine = function (start, end) { - var direction = Vector2.sub(end, start); - var length = direction.length; - return new Ray2D(start, Vector2.normalize(direction), length); - }; - return Ray2D; -}()); -export { Ray2D }; -export var RayMode; -(function (RayMode) { - RayMode["ANY"] = "ANY"; - RayMode["CLOSEST"] = "CLOSEST"; - RayMode["ALL"] = "ALL"; -})(RayMode || (RayMode = {})); -var RaycastResult = (function () { - function RaycastResult() { - this.normal = new Vector2(); - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - } - RaycastResult.prototype.reset = function () { - this.normal.setData(0, 0); - this.shape = null; - this.body = null; - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - }; - RaycastResult.prototype.getHitDistance = function (ray) { - return Vector2.dist(ray.from, ray.to) * this.fraction; - }; - RaycastResult.prototype.hasHit = function () { - return this.fraction !== -1; - }; - RaycastResult.prototype.getHitPoint = function (ray) { - return Vector2.lerp(ray.from, ray.to, this.fraction); - }; - RaycastResult.prototype.stop = function () { - this.isStopped = true; - }; - RaycastResult.prototype.shouldStop = function (ray) { - return this.isStopped || (this.fraction !== -1 && ray.mode === RayMode.ANY); - }; - RaycastResult.prototype.set = function (normal, shape, body, fraction, faceIndex) { - this.normal.set(normal); - this.shape = shape; - this.body = body; - this.fraction = fraction; - this.faceIndex = faceIndex; - }; - return RaycastResult; -}()); -export { RaycastResult }; -var RayCast = (function () { - function RayCast(ray) { - this.ray = ray; - this.checkCollisionResponse = true; - this.skipBackfaces = false; - this.collisionMask = -1; - this.collisionGroup = -1; - this.mode = RayMode.ANY; - } - Object.defineProperty(RayCast.prototype, "from", { - get: function () { - return this.ray.origin; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(RayCast.prototype, "to", { - get: function () { - return this.ray.end; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(RayCast.prototype, "direction", { - get: function () { - return this.ray.direction; - }, - enumerable: false, - configurable: true - }); - RayCast.prototype.reportIntersection = function (result, fraction, normal, faceIndex) { - var shape = null; - var body = null; - if (this.skipBackfaces && Vector2.dot(normal, this.ray.direction) > 0) { - return; - } - switch (this.mode) { - case RayMode.ALL: - result.set(normal, shape, body, fraction, faceIndex); - this.callback && this.callback(result); - break; - case RayMode.CLOSEST: - if (fraction < result.fraction || !result.hasHit()) { - result.set(normal, shape, body, fraction, faceIndex); - } - break; - case RayMode.ANY: - result.set(normal, shape, body, fraction, faceIndex); - break; - } - }; - return RayCast; -}()); -export { RayCast }; -//# sourceMappingURL=ray-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/ray-2d.js.map b/dist/_esm5/physics/objects/2d/ray-2d.js.map deleted file mode 100644 index 01ede7b8..00000000 --- a/dist/_esm5/physics/objects/2d/ray-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray-2d.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/ray-2d.ts"],"names":[],"mappings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AAE;oBAChD,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;iBACL;gBACD,MAAM;YAEV,KAAK,OAAO,CAAC,GAAG;gBAGZ,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;gBACF,MAAM;SACb;IACL,CAAC;IACL,cAAC;AAAD,CAAC,AAvED,IAuEC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/rect.js b/dist/_esm5/physics/objects/2d/rect.js deleted file mode 100644 index 08db0aba..00000000 --- a/dist/_esm5/physics/objects/2d/rect.js +++ /dev/null @@ -1,102 +0,0 @@ -import { Vector2 } from "../../../math"; -import { convertPosSizeToMinMax } from "../object-convertors"; -var Rect = (function () { - function Rect(position, size) { - this.position = position; - this.size = size; - } - Object.defineProperty(Rect.prototype, "area", { - get: function () { - return this.size.x * this.size.y; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "momentOfInertia", { - get: function () { - return (this.size.x * this.size.x + this.size.y * this.size.y) / 12; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "boundingRadius", { - get: function () { - return Math.sqrt(this.size.x * this.size.x + this.size.y * this.size.y) / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "circuit", { - get: function () { - return this.size.x + this.size.x + this.size.y + this.size.y; - }, - enumerable: false, - configurable: true - }); - Rect.prototype.toMinMax = function () { - return convertPosSizeToMinMax(this); - }; - Rect.fromSphere = function (_a) { - var radius = _a.radius, center = _a.center; - return Rect.fromMinMax({ - min: { - x: center.x - radius, - y: center.y - radius, - }, - max: { - x: center.x + radius, - y: center.y + radius, - }, - }); - }; - Rect.fromRay = function (_a, realLength) { - var origin = _a.origin, direction = _a.direction, length = _a.length; - if (realLength === void 0) { realLength = length; } - if (realLength === Infinity) { - throw new Error("Cannot create rectangle from infinite ray"); - } - var end = { - x: origin.x + direction.x * realLength, - y: origin.y + direction.y * realLength, - }; - return Rect.fromMinMax({ - min: { - x: Math.min(end.x, origin.x), - y: Math.min(end.y, origin.y), - }, - max: { - x: Math.max(end.x, origin.x), - y: Math.max(end.y, origin.y), - }, - }); - }; - Rect.fromPoints = function (points, offsetX, offsetY) { - if (offsetX === void 0) { offsetX = 0; } - if (offsetY === void 0) { offsetY = offsetX; } - var range = Vector2.createOutlineRange(points); - if (!offsetX && !offsetY) { - return Rect.fromMinMax(range); - } - return Rect.fromMinMax({ - min: { - x: range.min.x - offsetX, - y: range.min.y - offsetY, - }, - max: { - x: range.max.x + offsetX, - y: range.max.y + offsetY, - }, - }); - }; - Rect.fromMinMax = function (_a) { - var min = _a.min, max = _a.max; - var size = { - x: max.x - min.x, - y: max.y - min.y, - }; - return new Rect(Object.assign({}, min), size); - }; - return Rect; -}()); -export { Rect }; -//# sourceMappingURL=rect.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/rect.js.map b/dist/_esm5/physics/objects/2d/rect.js.map deleted file mode 100644 index 1a3afb15..00000000 --- a/dist/_esm5/physics/objects/2d/rect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rect.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAQ9D;IACI,cACoB,QAAuB,EACvB,IAAmB;QADnB,aAAQ,GAAR,QAAQ,CAAe;QACvB,SAAI,GAAJ,IAAI,CAAe;IAEvC,CAAC;IAED,sBAAW,sBAAI;aAAf;YACI,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACrC,CAAC;;;OAAA;IAED,sBAAW,iCAAe;aAA1B;YACI,OAAO,CAAC,IAAI,CAAC,IAA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CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;gBACxB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;IAEa,eAAU,GAAxB,UAAyB,EAAoB;YAAnB,GAAG,SAAA,EAAE,GAAG,SAAA;QAC9B,IAAM,IAAI,GAAG;YACT,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB,CAAC;QAEF,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,WAAC;AAAD,CAAC,AAxFD,IAwFC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/sphere.js b/dist/_esm5/physics/objects/2d/sphere.js deleted file mode 100644 index 81dd72bf..00000000 --- a/dist/_esm5/physics/objects/2d/sphere.js +++ /dev/null @@ -1,104 +0,0 @@ -import { Vector2 } from "../../../math"; -import { convertPosSizeToMinMax } from "../object-convertors"; -var Sphere = (function () { - function Sphere(radius, center) { - this.radius = radius; - this.center = center; - } - Object.defineProperty(Sphere.prototype, "circuit", { - get: function () { - return 2 * Math.PI * this.radius; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "momentOfInertia", { - get: function () { - var r = this.radius; - return r * r / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "boundingRadius", { - get: function () { - return this.radius; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "area", { - get: function () { - return Math.PI * this.radius * this.radius; - }, - enumerable: false, - configurable: true - }); - Sphere.fromMinMax = function (_a, chooseSize) { - var min = _a.min, max = _a.max; - if (chooseSize === void 0) { chooseSize = "max"; } - var center = { - x: (min.x + max.x) / 2, - y: (min.y + max.y) / 2, - }; - var sizeX = max.x - min.x; - var sizeY = max.y - min.y; - var radius = chooseSize === "min" ? Math.min(sizeX, sizeY) : Math.max(sizeX, sizeY); - return new Sphere(radius, center); - }; - Sphere.fromPosSize = function (posSize, chooseSize) { - if (chooseSize === void 0) { chooseSize = "max"; } - return Sphere.fromMinMax(convertPosSizeToMinMax(posSize), chooseSize); - }; - Sphere.prototype.toMinMax = function () { - return { - min: Vector2.addNum(this.center, -this.radius), - max: Vector2.addNum(this.center, this.radius), - }; - }; - Sphere.prototype.raycast = function (result, ray) { - var from = ray.from; - var to = ray.to; - var r = this.radius; - var position = new Vector2(this.center.x, this.center.y); - var a = Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2); - var b = 2 * ((to.x - from.x) * (from.x - position.x) + (to.y - from.y) * (from.y - position.y)); - var c = Math.pow(from.x - position.x, 2) + Math.pow(from.y - position.y, 2) - Math.pow(r, 2); - var delta = Math.pow(b, 2) - 4 * a * c; - var intersectionPoint = new Vector2(); - var normal = new Vector2(); - if (delta < 0) { - return; - } - if (delta === 0) { - intersectionPoint.set(Vector2.lerp(from, to, delta)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, delta, normal, -1); - } - else { - var sqrtDelta = Math.sqrt(delta); - var inv2a = 1 / (2 * a); - var d1 = (-b - sqrtDelta) * inv2a; - var d2 = (-b + sqrtDelta) * inv2a; - if (d1 >= 0 && d1 <= 1) { - intersectionPoint.set(Vector2.lerp(from, to, d1)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, d1, normal, -1); - if (result.shouldStop(ray)) { - return; - } - } - if (d2 >= 0 && d2 <= 1) { - intersectionPoint.set(Vector2.lerp(from, to, d2)); - Vector2.sub(intersectionPoint, position, normal); - Vector2.normalize(normal, normal); - ray.reportIntersection(result, d2, normal, -1); - } - } - }; - return Sphere; -}()); -export { Sphere }; -//# sourceMappingURL=sphere.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/sphere.js.map b/dist/_esm5/physics/objects/2d/sphere.js.map deleted file mode 100644 index c17e8a0a..00000000 --- a/dist/_esm5/physics/objects/2d/sphere.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sphere.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/sphere.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAO9D;IACI,gBACoB,MAAc,EACd,MAAqB;QADrB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAe;IAEzC,CAAC;IAED,sBAAW,2BAAO;aAAlB;YACI,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QACrC,CAAC;;;OAAA;IAED,sBAAW,mCAAe;aAA1B;YACI,IAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAEtB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;;;OAAA;IAED,sBAAW,kCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC;QACvB,CAAC;;;OAAA;IAED,sBAAW,wBAAI;aAAf;YACI,OAAO,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/C,CAAC;;;OAAA;IAEa,iBAAU,GAAxB,UAAyB,EAAoB,EAAE,UAAiC;YAAtD,GAAG,SAAA,EAAE,GAAG,SAAA;QAAa,2BAAA,EAAA,kBAAiC;QAC5E,IAAM,MAAM,GAAG;YACX,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YACtB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;SACzB,CAAC;QAE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,CAAC,CAAC;aAClD;SACJ;IACL,CAAC;IACL,aAAC;AAAD,CAAC,AA5GD,IA4GC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/triangle.js b/dist/_esm5/physics/objects/2d/triangle.js deleted file mode 100644 index f9d75bd5..00000000 --- a/dist/_esm5/physics/objects/2d/triangle.js +++ /dev/null @@ -1,45 +0,0 @@ -import { Vector2 } from "gtools/math"; -var Triangle = (function () { - function Triangle(pointA, pointB, pointC) { - this.pointA = pointA; - this.pointB = pointB; - this.pointC = pointC; - } - Object.defineProperty(Triangle.prototype, "area", { - get: function () { - return (((this.pointB.x - this.pointA.x) * (this.pointC.y - this.pointA.y)) - - ((this.pointC.x - this.pointA.x) * (this.pointB.y - this.pointA.y))) * 0.5; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "boundingRadius", { - get: function () { - return Math.max(Vector2.dist(this.pointA, this.pointB), Vector2.dist(this.pointB, this.pointC), Vector2.dist(this.pointA, this.pointC)) / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "circuit", { - get: function () { - return Vector2.dist(this.pointA, this.pointB) + - Vector2.dist(this.pointB, this.pointC) + - Vector2.dist(this.pointA, this.pointC); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "momentOfInertia", { - get: function () { - throw new Error("Not implemented"); - }, - enumerable: false, - configurable: true - }); - Triangle.prototype.toMinMax = function () { - return Vector2.createOutlineRange([this.pointA, this.pointB, this.pointC]); - }; - return Triangle; -}()); -export { Triangle }; -//# sourceMappingURL=triangle.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/2d/triangle.js.map b/dist/_esm5/physics/objects/2d/triangle.js.map deleted file mode 100644 index 11773255..00000000 --- a/dist/_esm5/physics/objects/2d/triangle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triangle.js","sourceRoot":"","sources":["../../../../../src/physics/objects/2d/triangle.ts"],"names":[],"mappings":"AAAA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,MAAM,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAKD,sBAAW,qCAAe;aAA1B;YACI,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAEM,2BAAQ,GAAf;QACI,OAAO,OAAO,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/E,CAAC;IACL,eAAC;AAAD,CAAC,AAxCD,IAwCC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/index.js b/dist/_esm5/physics/objects/index.js deleted file mode 100644 index 15c4bc26..00000000 --- a/dist/_esm5/physics/objects/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./2d/rect"; -export * from "./2d/sphere"; -export * from "./object-convertors"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/index.js.map b/dist/_esm5/physics/objects/index.js.map deleted file mode 100644 index eb510272..00000000 --- a/dist/_esm5/physics/objects/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/physics/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/physics/objects/object-convertors.js b/dist/_esm5/physics/objects/object-convertors.js deleted file mode 100644 index 66c86b4b..00000000 --- a/dist/_esm5/physics/objects/object-convertors.js +++ /dev/null @@ -1,27 +0,0 @@ -export function convertMinMaxToPosSize(_a) { - var min = _a.min, max = _a.max; - return { - position: { - x: min.x, - y: min.y, - }, - size: { - x: max.x - min.x, - y: max.y - min.y, - }, - }; -} -export function convertPosSizeToMinMax(_a) { - var position = _a.position, size = _a.size; - return { - min: { - x: position.x, - y: position.y, - }, - max: { - x: position.x + size.x, - y: position.y + size.y, - }, - }; -} -//# sourceMappingURL=object-convertors.js.map \ No newline at end of file diff --git a/dist/_esm5/physics/objects/object-convertors.js.map b/dist/_esm5/physics/objects/object-convertors.js.map deleted file mode 100644 index 9eeb8e3d..00000000 --- a/dist/_esm5/physics/objects/object-convertors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-convertors.js","sourceRoot":"","sources":["../../../../src/physics/objects/object-convertors.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAAC,EAAoB;QAAnB,GAAG,SAAA,EAAE,GAAG,SAAA;IAC5C,OAAO;QACH,QAAQ,EAAE;YACN,CAAC,EAAE,GAAG,CAAC,CAAC;YACR,CAAC,EAAE,GAAG,CAAC,CAAC;SACX;QACD,IAAI,EAAE;YACF,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB;KACJ,CAAC;AACN,CAAC;AACD,MAAM,UAAU,sBAAsB,CAAC,EAA2B;QAA1B,QAAQ,cAAA,EAAE,IAAI,UAAA;IAClD,OAAO;QACH,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC;YACb,CAAC,EAAE,QAAQ,CAAC,CAAC;SAChB;QACD,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YACtB,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;SACzB;KACJ,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/tests/abstract-database.fixture.js b/dist/_esm5/tests/abstract-database.fixture.js deleted file mode 100644 index e63cc9d6..00000000 --- a/dist/_esm5/tests/abstract-database.fixture.js +++ /dev/null @@ -1,14 +0,0 @@ -import { __extends } from "tslib"; -import { AbstractFixture } from "./abstract.fixture"; -var AbstractDatabaseFixture = (function (_super) { - __extends(AbstractDatabaseFixture, _super); - function AbstractDatabaseFixture(list, mapper) { - var _this = _super.call(this, list) || this; - _this.listDto = list.map(mapper.mapToDto, mapper); - _this.detailDto = _this.listDto[0]; - return _this; - } - return AbstractDatabaseFixture; -}(AbstractFixture)); -export { AbstractDatabaseFixture }; -//# sourceMappingURL=abstract-database.fixture.js.map \ No newline at end of file diff --git a/dist/_esm5/tests/abstract-database.fixture.js.map b/dist/_esm5/tests/abstract-database.fixture.js.map deleted file mode 100644 index fdd301ca..00000000 --- a/dist/_esm5/tests/abstract-database.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-database.fixture.js","sourceRoot":"","sources":["../../../src/tests/abstract-database.fixture.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD;IAAmE,2CAAoB;IAInF,iCAAsB,IAAW,EAAE,MAAmC;QAAtE,YACI,kBAAM,IAAI,CAAC,SAGd;QAFG,KAAI,CAAC,OAAO,GAAK,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACnD,KAAI,CAAC,SAAS,GAAG,KAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;;IACrC,CAAC;IACL,8BAAC;AAAD,CAAC,AATD,CAAmE,eAAe,GASjF"} \ No newline at end of file diff --git a/dist/_esm5/tests/abstract.fixture.js b/dist/_esm5/tests/abstract.fixture.js deleted file mode 100644 index afd5716a..00000000 --- a/dist/_esm5/tests/abstract.fixture.js +++ /dev/null @@ -1,9 +0,0 @@ -var AbstractFixture = (function () { - function AbstractFixture(list) { - this.list = list; - this.detail = list[0]; - } - return AbstractFixture; -}()); -export { AbstractFixture }; -//# sourceMappingURL=abstract.fixture.js.map \ No newline at end of file diff --git a/dist/_esm5/tests/abstract.fixture.js.map b/dist/_esm5/tests/abstract.fixture.js.map deleted file mode 100644 index d2e791cf..00000000 --- a/dist/_esm5/tests/abstract.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.fixture.js","sourceRoot":"","sources":["../../../src/tests/abstract.fixture.ts"],"names":[],"mappings":"AAAA;IAGI,yBAAsC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AAND,IAMC"} \ No newline at end of file diff --git a/dist/_esm5/tests/abstract.mapper.js b/dist/_esm5/tests/abstract.mapper.js deleted file mode 100644 index 8cb99d04..00000000 --- a/dist/_esm5/tests/abstract.mapper.js +++ /dev/null @@ -1,7 +0,0 @@ -var AbstractMapper = (function () { - function AbstractMapper() { - } - return AbstractMapper; -}()); -export { AbstractMapper }; -//# sourceMappingURL=abstract.mapper.js.map \ No newline at end of file diff --git a/dist/_esm5/tests/abstract.mapper.js.map b/dist/_esm5/tests/abstract.mapper.js.map deleted file mode 100644 index 2fe257c4..00000000 --- a/dist/_esm5/tests/abstract.mapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.mapper.js","sourceRoot":"","sources":["../../../src/tests/abstract.mapper.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAJD,IAIC"} \ No newline at end of file diff --git a/dist/_esm5/tests/paginate.model.js b/dist/_esm5/tests/paginate.model.js deleted file mode 100644 index b39b59b5..00000000 --- a/dist/_esm5/tests/paginate.model.js +++ /dev/null @@ -1,18 +0,0 @@ -var PaginateModel = (function () { - function PaginateModel(count, offset) { - if (count === void 0) { count = PaginateModel.ITEMS_PER_PAGE; } - if (offset === void 0) { offset = 0; } - this.limit = +count; - this.offset = +offset; - } - PaginateModel.validate = function (paginate) { - if (!paginate) { - return new PaginateModel(); - } - return new PaginateModel(isNaN(paginate.limit) ? PaginateModel.ITEMS_PER_PAGE : paginate.limit, isNaN(paginate.offset) ? 0 : paginate.offset); - }; - PaginateModel.ITEMS_PER_PAGE = 10; - return PaginateModel; -}()); -export { PaginateModel }; -//# sourceMappingURL=paginate.model.js.map \ No newline at end of file diff --git a/dist/_esm5/tests/paginate.model.js.map b/dist/_esm5/tests/paginate.model.js.map deleted file mode 100644 index 2d87c6d9..00000000 --- a/dist/_esm5/tests/paginate.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginate.model.js","sourceRoot":"","sources":["../../../src/tests/paginate.model.ts"],"names":[],"mappings":"AAAA;IAKI,uBAAmB,KAAoC,EAAE,MAAU;QAAhD,sBAAA,EAAA,QAAQ,aAAa,CAAC,cAAc;QAAE,uBAAA,EAAA,UAAU;QAC/D,IAAI,CAAC,KAAK,GAAI,CAAC,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,QAAwB;QAC3C,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,IAAI,aAAa,EAAE,CAAC;SAC9B;QAED,OAAO,IAAI,aAAa,CACpB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EACrE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAC/C,CAAC;IACN,CAAC;IAlBa,4BAAc,GAAG,EAAE,CAAC;IAmBtC,oBAAC;CAAA,AApBD,IAoBC;SApBY,aAAa"} \ No newline at end of file diff --git a/dist/_esm5/tsconfig.esm5.tsbuildinfo b/dist/_esm5/tsconfig.esm5.tsbuildinfo deleted file mode 100644 index f748fdf0..00000000 --- a/dist/_esm5/tsconfig.esm5.tsbuildinfo +++ /dev/null @@ -1,3780 +0,0 @@ -{ - "program": { - "fileInfos": { - "../../node_modules/typescript/lib/lib.es5.d.ts": { - "version": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "signature": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.d.ts": { - "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2016.d.ts": { - "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2017.d.ts": { - "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.es2018.d.ts": { - "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "affectsGlobalScope": false - }, - "../../node_modules/typescript/lib/lib.dom.d.ts": { - "version": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "signature": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.core.d.ts": { - "version": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "signature": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { - "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { - "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { - "version": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "signature": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { - "version": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "signature": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { - "version": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "signature": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { - "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { - "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { - "version": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "signature": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { - "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.object.d.ts": { - "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { - "version": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "signature": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.string.d.ts": { - "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { - "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { - "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { - "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { - "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { - "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { - "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { - "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { - "version": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "signature": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "affectsGlobalScope": true - }, - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { - "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "affectsGlobalScope": true - }, - "../../node_modules/tslib/tslib.d.ts": { - "version": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "signature": "4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea", - "affectsGlobalScope": false - }, - "../../src/enums/button.enum.ts": { - "version": "50c86b5e00222387bfb7ff7a2c9ccc762947134a33777a75ae5538192f7f0bd6", - "signature": "357fbf6edfd6d4f5e2f4a883a1766e9284bc65595a9c21cef39dfccd7305f648", - "affectsGlobalScope": false - }, - "../../src/enums/days.enum.ts": { - "version": "bddca260222d9bced7ace11ff9eaef229387a2a46d78142af4164d18e5f49bbb", - "signature": "4b653e7dba3ff8e0438f85fd6ed37c56fb6f747cc83e764f1620c8ec7db7649f", - "affectsGlobalScope": false - }, - "../../src/enums/encodings.enum.ts": { - "version": "3bdf87d3b2d15129abc87ed545543cf68ced22d958779f45d03214e6b4414e13", - "signature": "95fbe4ec96c0b9eac9fd35fd431c1cc11f67082709b7558cfe7429b5b57ba64a", - "affectsGlobalScope": false - }, - "../../src/enums/file-types.enum.ts": { - "version": "4a555a8dcb615ae92031c999c8d67d28fabfb15eb450e0004696ae3a52fe1fc4", - "signature": "48601b16415287ce515b4069827b954f79c3ed1aaf9356dcb1ec97b72b2527fe", - "affectsGlobalScope": false - }, - "../../src/enums/http-status-codes.enum.ts": { - "version": "18cd245a404949328db6ad30f9329b5b770ee2b2a132d49aa08fb989af9139c2", - "signature": "5ae271fc0ca310f7c8151a228dcc2db47a30b55ada389272881662f088dfedeb", - "affectsGlobalScope": false - }, - "../../src/enums/keys.enum.ts": { - "version": "83901b0fd0917145eca09e4aa2abd8d8bab37ad6d13aae029263fe4b07a63516", - "signature": "ce18b139714a54f9786d8779b39cb0d48e3d7f0d88408c612155846c0de8f2f7", - "affectsGlobalScope": false - }, - "../../src/enums/index.ts": { - "version": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "signature": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.interface.ts": { - "version": "e6e113eadb1ccaaae2e957e8de27034dfb13482e63ccf39fb05437bcbe1eecfb", - "signature": "86ed1beceb38e1af1bb7ec598db14a491e07a8b1d8ad479a5df6edc1c6231e27", - "affectsGlobalScope": false - }, - "../../src/config/gtools-config.ts": { - "version": "5810ad019f74c6261146aa2e0d9a0de42f2d0797e440d5c69528fb77e20d68cf", - "signature": "cd0a8bbee4c1af364206cbec7fc471dc238edb40d1f04f856691c042bcf8a323", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector2.ts": { - "version": "d4d6ff7da12f4962aaba6f91a555d1400daa8606752489267c925bee578ff16a", - "signature": "38b51082ed2d0f1e705b3a89d065dac8186e595ab15367004db1627fbc1cbe4e", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector3.ts": { - "version": "8fc7d99d317738030fef5e8879d62147fa8c8d592ceb7467e319b7aea4ccf2ed", - "signature": "884a2b1d52b4d040fa53b8ec8a25f94f4d8ac9a90e68c37c3b225044c35c71e1", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector4.ts": { - "version": "25044c1276889db43155f523aa265089776a944cf015bcf2c4a5612e04462221", - "signature": "0287860853f48f9d38f275000a66f84960dae622ee07bf479c5f3372851fb10f", - "affectsGlobalScope": false - }, - "../../src/math/simple-vector-xz.ts": { - "version": "e69a9ec9c1cc9e8a2f2eb4ba03004277657eae50a29397028e3e9b0baf6d1db7", - "signature": "7ceb21ba1e1525d5906df1e8b9aa68ec219abd6bb9f6150adbc83f9f6a311378", - "affectsGlobalScope": false - }, - "../../src/math/vector.ts": { - "version": "6b89380b6e3149d20d0ca39499b73a29a9b1afa867ac38c6460e8104abec5720", - "signature": "ed564b28801d51e6448d794401b6d9476e55f479b9e19e14ce5d07a407fe607f", - "affectsGlobalScope": false - }, - "../../src/models/gender.model.ts": { - "version": "c0156a95eaa6dcee76503a6bbe3a59e7e062d50327d3182425dd6a7cb6ee451a", - "signature": "714f3b5c4b8480f89e190efec48fe8bab94b22315a686a1524ac62585c16c7dc", - "affectsGlobalScope": false - }, - "../../src/utils/analytics-utils.ts": { - "version": "8f5deea470c150bbfbd6a22d0a9085ef2d7de3c823b5ce10eb20c1bf40bc0e7b", - "signature": "f16cda2102a252a1b7125383579338ac618c8e89c4f14fabfac49cc5653b4865", - "affectsGlobalScope": false - }, - "../../src/utils/array-utils.ts": { - "version": "0a3fbbae03181f578627838ee3644e5dde88ff68ac875a728e587760a6b2a9ff", - "signature": "5e3e18271dc1c1bfe3222c25b45cac9e1502c7b21016a47cbba3ec7e976aeec1", - "affectsGlobalScope": false - }, - "../../src/utils/coerce-util.ts": { - "version": "ac3e2db41f1a56ad772ebf21936fb24707b8d0a53af7120ad21de28521808753", - "signature": "3aaf01dd98093fd4ef879a5f99085ea0167cf4c86c550f79d469cf0155911cd4", - "affectsGlobalScope": false - }, - "../../src/utils/random-utils.ts": { - "version": "96e92fedd1be573dcfb4daa243dfc72a3c368958dd9ff1911d1fd57299fa6b29", - "signature": "7fac6144ce84a39f446b61eadcda61cb0af9b9da06ef2374fe6c91b301bd1272", - "affectsGlobalScope": false - }, - "../../src/utils/math-utils.ts": { - "version": "d381be6ba051c5ac4bca040587c2c4705f4b3439666a4e1867ce625a3a45e75e", - "signature": "224ab6ead2e690aaa38f89767b28777acf6c733b4459ca4c223c72a102730aea", - "affectsGlobalScope": false - }, - "../../src/utils/color-utils.ts": { - "version": "b1a7daa04816a62243e8a9de44d83e2f14fea57868f372fb34cc4b70fb97fed2", - "signature": "057993534c988f4a46b9aad2b8a5e1698ac87a35ac30ecb13bf0a4853cf68760", - "affectsGlobalScope": false - }, - "../../src/utils/date-utils.ts": { - "version": "a8d6342d0b8c2f7197f82d48a6ffa7df900024fb77262e2b1e485e7f2072126d", - "signature": "6d1b6f491a48bf845fca87057eb17a74164488c8879a0c4f051794d6a818e239", - "affectsGlobalScope": false - }, - "../../src/constants.ts": { - "version": "eef8f7f75d5446d4800b4cd903cef08b5688eec7a3cd154672d58c07ba9fd2e1", - "signature": "6206c715117e5baf07cf492519cc4e20b9de983cc5aeecd383f21d49dcd848e5", - "affectsGlobalScope": false - }, - "../../src/utils/html-utils.ts": { - "version": "97c3a73a8814fe6771fd0b8da9f9bc1cc8390733a0f6250b0dd39cb07acceb0c", - "signature": "066eef6e1a0c48ed649caf7c6babd5abb95226e5153e6dcb3efaf090d38b98a2", - "affectsGlobalScope": false - }, - "../../src/utils/image-utils.ts": { - "version": "07de68ef3da9195d4bcb19f3caa51533eec574e0bea13653422df940626e5d4a", - "signature": "e912699c22f69c3b2f62cba5b34aab381a9a191d271fd2802c55afe5fdb1b65e", - "affectsGlobalScope": false - }, - "../../src/utils/misc-utils.ts": { - "version": "aa906aad39fbb9a96e590c0a3f6bec7463c6d725747605dd17ffd4592839627a", - "signature": "0bb79967b16de2d62e750a9c5727c5258c0932ebd9c7e26084c3e974f56409b7", - "affectsGlobalScope": false - }, - "../../src/utils/time-utils.ts": { - "version": "a3a92fa449c14364c40afc22015f329ff4c59e9fe7c8c58f2cbe41181d3477c9", - "signature": "a92b28a616d6f4587fe85e8da1d494b941c26abf5804c3667c3e48be49998816", - "affectsGlobalScope": false - }, - "../../src/utils/sorted-array-utils.ts": { - "version": "1416a4fce6896efe303e94a1c286783631ab4d9be50ba7e0d4276e34fcad61df", - "signature": "e1691429dc711ca2dde4464972f7d134422374a589d8bc0943276e7c89a731f0", - "affectsGlobalScope": false - }, - "../../src/utils/input-utils.ts": { - "version": "87ee8b0e6ef48c43e01aff4529f8c2d77edd0ca5ede2125cc7e993bcd1df5b1f", - "signature": "b773a1db1447ad901b3959f7ebf9dec66ef5c54ee71b84d5a0d00beae95d07a9", - "affectsGlobalScope": false - }, - "../../src/utils/object-utils.ts": { - "version": "86955e6e55d3d74525667034238431f630585c24b46574d6e3026073b024e2f4", - "signature": "7354537a868d8db11316b7ecbbd79680f4a236b1edad9f1d65dbb52d133fe415", - "affectsGlobalScope": false - }, - "../../src/utils/parser-utils.ts": { - "version": "e3d8d06a5f58a2e70f21bbc54f64929883fd62cab6a3002ee508b3e564230d61", - "signature": "2410ea7c356f48e75a706195428e733904e53c2dc96d69cc1ee4ee8ef0df05d9", - "affectsGlobalScope": false - }, - "../../src/utils/process-utils.ts": { - "version": "e37d49bb6877656ab1cb17ac45762cffa2bafe3996cc642f9ddffaf53e51056e", - "signature": "55a13238f3ab9f5c277bf2370c7a93fc5a7b5d6735675297d4b284e2829a17d1", - "affectsGlobalScope": false - }, - "../../src/utils/reflection-utils.ts": { - "version": "a67fb26f92fa18df700eff0a831cd6b8be2186d68ee5c42781c6bd5b243a10d6", - "signature": "e3208d46a8ed13ac223e6f8134da360682f06c43bebb74b45bacb6901e543c01", - "affectsGlobalScope": false - }, - "../../src/validators/misc-validators.ts": { - "version": "f8a70f820a5cab033987717bc2aec3efc4b26bc8065d9d905b37e4a82b84f58c", - "signature": "91980d7ad79023a898afb63323530c75c7750cc9edab3b966f50010c145d24d6", - "affectsGlobalScope": false - }, - "../../src/utils/string-checkers.ts": { - "version": "187e5ffc9e612af3378833d7aabddb8f322140be491e1f4fc7e2fd3fe88b09a6", - "signature": "da699f0dd9860fe47044464afcbb21cfedded1c9a47a97ddd9f05d46860522d6", - "affectsGlobalScope": false - }, - "../../src/utils/string-utils.ts": { - "version": "d91538e7f3b7bad31500d2560d9c6a9c0db8e05a9ce7b61d3fa4197fc214f3d6", - "signature": "6bbf2a79575477f413b697c41ec2159bf57cce295ed85e5b7e299188d9711622", - "affectsGlobalScope": false - }, - "../../src/utils/svg-utils.ts": { - "version": "8dc63882eb4946c49b8c315b7dcb8b86ade9ec3209d734797d3edb0051c9790d", - "signature": "132eb56f2336282750f83ea9fb2c8979ec2b4c98d20e728b76f8484c1983894d", - "affectsGlobalScope": false - }, - "../../src/utils/index.ts": { - "version": "abf2ab6a696c7583e874db156ae487c8c944b563f2f1c4af493bfebe828b094c", - "signature": "28bbcec9fef8585bfaa13a5afbd11c4ade3a5c1b30878c27512742be51e14118", - "affectsGlobalScope": false - }, - "../../src/models/color.model.ts": { - "version": "776ee2acf248a92bc52e0706bf35a963a2d80511572b1afa14923163396390c1", - "signature": "aff357a9a89f0c7b85b8d0c5061731af7505ef541ab980bf356e4586529f9304", - "affectsGlobalScope": false - }, - "../../src/models/transform-2d.ts": { - "version": "13719834050bd0e27ae58038ae4a6f428db75a52e5c3de530eb82e79d3a1c7ff", - "signature": "aacdf251efa1e5c9a1ceaa58f84ee68e6db05a08807c7c62eea0fd462bd3f9c7", - "affectsGlobalScope": false - }, - "../../src/models/range.ts": { - "version": "92f02406cb8b2237c7b6a3015df0a315e2a040d5c68d7a54951110e6a4519037", - "signature": "f0361570883ac73a6dbbe01cbcb471e27cfa190584d9aba1d3639617b9b27230", - "affectsGlobalScope": false - }, - "../../src/models/path-2d.ts": { - "version": "4231db73734d02129ed02a6a05fc82e3bec213344223fc1c1d4a583b756c1b2b", - "signature": "99ef7180919cc31f0e7c4dd5d81d2f41eba5c15dab215a75d30180f4ac0bbb82", - "affectsGlobalScope": false - }, - "../../src/models/path/djikstra/djikstra.ts": { - "version": "ada966ef7a16ee7fd377515d18a7a934734026ff85538ad22465ef6fc2599e70", - "signature": "dcc5fec32da18167a6a2eeac0c1ba1cbc4dd293fffab77e8d21e8905182f208c", - "affectsGlobalScope": false - }, - "../../src/models/sorting/bucket-sort.ts": { - "version": "7456e8e54c6fc6adf53fb80383c80266cd7d589216303e130747e0e6afa4c40f", - "signature": "97af01927d229d5d49d6fc4c4d46f4f601132b97b4684780ce52fef4640650fb", - "affectsGlobalScope": false - }, - "../../src/models/sorting/counting-sort.ts": { - "version": "09950cd35aaa17810cbde1ded879d17cb3819f4910d93b7f1a980ab274c00c47", - "signature": "1c477c1dbdace75d884e2faaca94d7482bb09c162804716e1ecad65447582c2b", - "affectsGlobalScope": false - }, - "../../src/models/sorting/heap-sort.ts": { - "version": "9d334ddf33fb83502bacc1017d2f12369fe71c2ebf710c3afdd2699028e44087", - "signature": "630f14e5e499ef5d5f1586068a5a4292990bfc530f2611d871b70437ba71256a", - "affectsGlobalScope": false - }, - "../../src/models/sorting/insertion-sort.ts": { - "version": "b33d5bf0f475a14465b1b42adbdf66d85922162921356cbb9da19fa8e8ef8f77", - "signature": "dda38ae26d2f43e25a69c76f03165a460e0532ca729547ab0d1980b418e53d37", - "affectsGlobalScope": false - }, - "../../src/models/sorting/merge-sort.ts": { - "version": "5e3f40dec0d5bb3fb6920fa13e8708f74b28b3f7cf0113e9f6b25746033ba83b", - "signature": "93c771a7938f5415b498f35ffafd1ecf5552303be140d0d1016c6d3fcf94d4f2", - "affectsGlobalScope": false - }, - "../../src/models/sorting/quick-sort.ts": { - "version": "5b24474867613b601d4f75837021a8cae6a615175a7fe75b1b370e545bfa1223", - "signature": "4a3e314336fe8b3a0da4df3a46250984c0c63fd4c83eb0c800a77730e5340576", - "affectsGlobalScope": false - }, - "../../src/models/sorting/radix-sort.ts": { - "version": "de22ad70b194787bbc13c6d31d9656c9460bc82814a8cdd699b0008438068c4e", - "signature": "1dd8e87a920201f78246875539d750572442351d8c819b498c46eb17bcbfa4be", - "affectsGlobalScope": false - }, - "../../src/models/sorting/index.ts": { - "version": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "signature": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/g43-collection.ts": { - "version": "3491c6d39311fbe4fc3bcbe1ec5fb8bef395ef0662091e9ad4c254e741d3d202", - "signature": "6a3dbd63b33ad6af0c049e9bb949cae11375bbc0aa3e157197b2b416d3cdec80", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/priority-queue.ts": { - "version": "f065b3f3566f3b354be2b5e7fae311719af9efcd64e8ae9d819e21349de633ed", - "signature": "e59a1132446be69ceec38ed1fecefd092365a2d26922e3c9138b5a84cc06ba6e", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-queue.ts": { - "version": "2b5bf36ed31e60402bc51b5ea793a638e3fa42d83d8fe0de3812508a49574e5f", - "signature": "e448ca5920dff37a1a39653848f69d9cb38ac533bb574afb4b8c56de7831a149", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/binary-tree.ts": { - "version": "ff4401d8052ee4f7c325c971add9788a75512562410abac1be7df15ee41cc6f7", - "signature": "8057c79c325359294c01e10128eb255d1e23f383496e9e1c8ac70f90e0bbb7a0", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/quad-tree/quad-tree.ts": { - "version": "91245f2d3f1f4473a55a8a9aa86fe26961a576a27c1cb400cbae453d571e178c", - "signature": "d640f0eeda4021c66c1e2bf5e9066f6435c48ca338fba266f66f498fbcdb5418", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": { - "version": "8fa132202258e51203aa89aedfdc7cf6cecfd1da59681b0409e6efc5decdcc58", - "signature": "e5aff4adb33c5aecd93fba3e3161a30d7910445c5983b976ea5f262cd9085fe2", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": { - "version": "07a8b76963bb23ab2b00ada85c87498ee71632399ee0c845742c35376b722cd5", - "signature": "b339503e7cbe900de0526f42342633a464dbad618c373293a15f3ca995d07631", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": { - "version": "de50505542440d115e784036ac4ec7fd2773527d9a08584b047b954b7c77ca35", - "signature": "8aa93210ec89f2a1a5246e43b1f045c6f86865d2f627eebfa09409d72cafa762", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid-filters.ts": { - "version": "cb0bc6a63d71271e1f3d4c7c1ebb2d1bb29124a3ab33ee0eec35d2221ce941a1", - "signature": "ab7dcd1168a23b50c2ea1d190244130d0a0b8f422ccede6b180ab18a86af3fa7", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": { - "version": "96a463327277ce295d2a9ca78f31c2d74ffd15983957190c3fae2b3ca9081126", - "signature": "94a20cdb32c9a8a5819b9401e1bb95af366bcc05b3c6e6356ac6bd47dadd19ec", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": { - "version": "29d80a04115c8635e6b0b24ecc98f7e16ce58d4c0b8a37063207434e94eb98cf", - "signature": "f249d93fd0d9da3c6f5887a7c8a5fda1ecfd8af1301a9b7872dafc4cdecf0e24", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": { - "version": "86de318f728a60ca3bf5401a67408101cd98f77525a2d65d10598d81b3ddf188", - "signature": "0fc33a551fb7744d0eef4c40cf2731388f59f44121355b3c3500450189f43265", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": { - "version": "824986806ea8d9f18c11ce093e65c999fae5ce390dd7e33814b0797d6a246c06", - "signature": "e0fbd7048f44fdcd7dd56f20dcf931fd7457e41425ca06e1a015999d3702734d", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": { - "version": "c755274560b257a713c780ba8590bdff31d9d29c47ba4cfc85886ad2cda52c8c", - "signature": "1af16b4f587f08a9500636b75dfc434fd4c7dc18b1c98d2d9caa1a338648956b", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": { - "version": "598165b4196d328977dff28960441dbfc039e4a9098e0efa97cc82920a9dda4d", - "signature": "f9cdf170f7d0e1b9f46f07683109fa3b5dfc822f5d30324cc8b46078a42bee3a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": { - "version": "bf6eda0dc000371278644110ca27282397bc8a8ad82fd85cb88e335a6f75a496", - "signature": "8a1fd266929ab3cf53371a7c1b717c2eb84b4ef047601d2cf449617b0c8fb90e", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": { - "version": "51f0b9c0aa74388752a0d63292601271fbd257eccc83544d5447374624e641e7", - "signature": "534686a8904822637fd9a6d927639713a022112c4236ae9538765ca6cec23910", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": { - "version": "24929a70c0258a058d34ee0b72aef8fb6514f3e49d45daf191a9b190228fc713", - "signature": "5cf90fa058553cdfebe7d7dcd90ec458870cbf88c0135ea45fe6f3e8f6712382", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/index.ts": { - "version": "2bdb43e0b9ea7d462087cac6200de24c66125fa06bae506ce10daa1b5729b18e", - "signature": "7c98072d94cc4ad693a11c195a961857c9041cae0db42352fda68e732ff86d94", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/abstract-linked-list.ts": { - "version": "be75ae95c781328fa24ccb2bc41b16f90a30300e8939524517405ee4a0761da7", - "signature": "7c54b172a294a0570b9c9a899584657dff8ba681c73e421bb9196f25c6cbf447", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/linked-list-entry.ts": { - "version": "e53c7c0c413705bb052cd7b357709f7a467e4b1370894d04a01c6158fffca91b", - "signature": "67465698c48aa367337f2462317f0cffffe35fad41f461ad698b9df519400f70", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/list.ts": { - "version": "7eef19e3ee169f7911e044bac2fbd0c91fd2a362d61283b56c346478a7381eb9", - "signature": "2c051e5ab0bef0bc0c682b21378db49d5bd89cc1febc1fa72af9793e6273dc14", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/bi-directional-linked-list.ts": { - "version": "1437ecf610ae51b56ac43db4a65a8a965eaaacdaf8c6a2a0b99bfeb02b6b41c9", - "signature": "12dbcd0a59507177a27a51ddddf41277cb26f57602b95c81904f5bbdebfa67b4", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/one-directional-linked-list.ts": { - "version": "476a322328b312c8b5aa856adec99f4f004da34d29bcab2502b12a0e41c9cf1f", - "signature": "b4676081c53323149ef89408cbba62e0c7abcacdb76ff1f41bf101c4ec8019ee", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/sorted-array-list.ts": { - "version": "94fa42fe048888659c39f29d35b892d6cb54734e08dc5aad30ad7b41806124a6", - "signature": "40ec3e93fc1bf2cadf20863dabce10d76c5fccc0f9f8684a4466d3925adb6204", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/index.ts": { - "version": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "signature": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "affectsGlobalScope": false - }, - "../../src/models/index.ts": { - "version": "d2da69f5e5dd6b37e959fd863a802128dcac9cc2fbe98b3bbb51a5dcb4c0794f", - "signature": "df8689b1080d4d4cfdde1f31b6b7ea8d753f4b46a7d9d131c8ca1988a9b11b60", - "affectsGlobalScope": false - }, - "../../src/math/vector2.ts": { - "version": "d0eb17a32cd6e3248b0cec4687cbaf8128c1ee8554611cb50e38b80cb8319cac", - "signature": "962b5952f2e8639f056e5b77ab990c7d73ce8f675433bba5e8481e81fcc9079b", - "affectsGlobalScope": false - }, - "../../src/math/vector2f.ts": { - "version": "0b5821c94c6d8dd5c8aaa3527f3e3a236f0cc53038b1ce71e20c8e45e4728207", - "signature": "a1b318776c0473f523ff369a8350511c269aff650d7e2a50fbb961ffd4981848", - "affectsGlobalScope": false - }, - "../../src/math/vector3.ts": { - "version": "0d403a453b972a684c05fdbabfb5b70c7e389905d1f9d4a483ea0fd351c39558", - "signature": "55d7e0e90e70c571f6282c2a2cf7d8ab145ff46d3c4728793ee001992568eecb", - "affectsGlobalScope": false - }, - "../../src/math/vector4.ts": { - "version": "d1871cd97f10f4462513e1ae61643563ad9f4ae3b6b1ddd2bc018d75219f6420", - "signature": "0ffef5cb77a17fe28a0ca6b28dcf2357b5e23f1096c341bf7420607545896b8c", - "affectsGlobalScope": false - }, - "../../src/math/mat4.ts": { - "version": "c4095c8789d6fa82bb277e0bc001b6441243804a8f02d3ec6aaf761877043b4c", - "signature": "209eaf230089927380d1d264db1cdb07056573b6849795f7a5fc99771b63d552", - "affectsGlobalScope": false - }, - "../../src/math/index.ts": { - "version": "4258d5499ff9f2e172bc3610870a934e344badf88e240240b26e1e3a542675d1", - "signature": "63b0eef4c9792504d1eaef92d614fe2d7f12bd3d500d7e33c37e2e5a07c77d65", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-2d.interface.ts": { - "version": "9d51a573f378e14c274418a605f66c21c430fe4cc7b021144d90993fbdcd63d0", - "signature": "ade565f39670710be3e5b076faeb6746f9db5b7e403316c101ade466f25c9aa2", - "affectsGlobalScope": false - }, - "../../src/types/helpers/min-max-3d.interface.ts": { - "version": "109172f30136e4a2883cef0d4744a6a9eff312e7b51a408ccd5bef44d3b84247", - "signature": "855f4dd6b62df6dc1c60d542cdcf0b51def2b735eb7010f22247efd5b7daf034", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xywh.ts": { - "version": "04bf6473f1eac63f9a79cc38e67709d4c805c54e2fc5af322e16fa1f3b07444d", - "signature": "15e87df320d6cdd970d63692cf2aff06872df87832ee40a4a6ef2b2220fcddf1", - "affectsGlobalScope": false - }, - "../../src/types/helpers/xyzwhd.ts": { - "version": "4380cd1db1f0a315cafef3dc0d1cae48e0c5548bfd92077fe803d29a3db6993c", - "signature": "9ac9ded8a43336d4f2a4f0a0e2358dfa1ad9ba32b5458f327a847d87175f1374", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-2d.ts": { - "version": "95a7b1acee9e3fe6ed3fdc75291255e2c74c5387e0d0b50aad2657b9fa9b66b1", - "signature": "4748d9a2c21bb4d6df6220ce86bb3886009d72cf9524369ac17ed20bbc10a3ca", - "affectsGlobalScope": false - }, - "../../src/types/helpers/pos-size-3d.ts": { - "version": "1a09dc77656bf3fda15451f1185b29f4b7f1794424fe806b253c58bc7234f5a4", - "signature": "49c4ae94c87f582936792dad6cc64e96ffcba0a6464e60a45f645d4cae22bf33", - "affectsGlobalScope": false - }, - "../../src/types/horizontal-align.type.ts": { - "version": "d06ba169f6324ee50312674700ba9ee696ac17c0c08212f27f99e75bea5993fe", - "signature": "fda93671fd83980a94ab38048cf2eb1780c0bcfe7db4f97c3103b7076fb34765", - "affectsGlobalScope": false - }, - "../../src/types/key-value.interface.ts": { - "version": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "signature": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "affectsGlobalScope": false - }, - "../../src/types/nested-string-map.interface.ts": { - "version": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "signature": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "affectsGlobalScope": false - }, - "../../src/types/object-entry.interface.ts": { - "version": "d3b9f85cd2d7253362168e060b8885d3d8a19d189ade6e0c10cf1e93d18e23d8", - "signature": "a552777985330cc98b0eec4d6bcb2de6ac8f11de46cc9a713022f694b9e9843d", - "affectsGlobalScope": false - }, - "../../src/types/optional.type.ts": { - "version": "6997dfaba3a558195a3cc79dead1c37ce3d997a61ed7ed84620a374fee6b0836", - "signature": "845ab0b08b564e517cf09bf70c12224980c90048e1744720b2ac19117314e60d", - "affectsGlobalScope": false - }, - "../../src/types/prop.type.ts": { - "version": "661af54a97b7b109ac73573ab3a225407099a23a63bf03ff3b5345e7e0a5a6f9", - "signature": "b1315a2ee2da0cb7ab6a1a6dbe1bcb1035b1a287640a6b370b5d8c201b19f866", - "affectsGlobalScope": false - }, - "../../src/types/property-decorator.type.ts": { - "version": "c4e5ecc5e5f701b9312c0f936c9e2ef84e475eb132018417d67432e393e43fdd", - "signature": "3dde93e76ac376c7f7fc9e3e9b2f71dcd586d6b58a4bc224a54c8fe4f79f2963", - "affectsGlobalScope": false - }, - "../../src/types/ray2d.ts": { - "version": "99e3cf17e8d6c9df593bdaa44193233da0e7d07b58cd88c2d34c2eb154f7aac6", - "signature": "f920c4be30195aa7d6857635352f2b3d15c4e9defee5998b78b6e04ce861b739", - "affectsGlobalScope": false - }, - "../../src/types/ray3d.ts": { - "version": "7eabde7d54f900db71c2d174506d4c10dbca9a08154fea4228e7cf8d921ce532", - "signature": "9c6b270ae159c7c5e79122d37b8bbe06d17e6a3861bd334714aedc987b1dd2d5", - "affectsGlobalScope": false - }, - "../../src/types/round-data.type.ts": { - "version": "b3491a4f6737e390c14ecad6ecdd65c6dec6fc48da8c0e1466dae90d5640b6e2", - "signature": "80fbbfeb93fe88fb8d858a350b02fe6aa4423503aeb5dbf3090e3a7412bc1dc8", - "affectsGlobalScope": false - }, - "../../src/types/size.interaface.ts": { - "version": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "signature": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "affectsGlobalScope": false - }, - "../../src/types/string-map.interface.ts": { - "version": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "signature": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "affectsGlobalScope": false - }, - "../../src/types/vertical-align.type.ts": { - "version": "16c78f374aa3023e0cc2cd2f07d17c50449a00003a71fa62f62bf9a026dc19c8", - "signature": "da8264e53a7ebd72060051e86af1f9a75269dcb074b4a1a4a3e79345960a44d2", - "affectsGlobalScope": false - }, - "../../src/types/text-options.interface.ts": { - "version": "e484dc0310cb9eeebe96571fc6bf1966f5d2bdf1bb4e4bd6b2dc612f2938f323", - "signature": "651002f3fa3d848be716e5629d60a82d8e54860ff31c0566d518ec9abec5e124", - "affectsGlobalScope": false - }, - "../../src/types/type.interface.ts": { - "version": "9e3cca0b8b220ab9b2e7156ef114dd57e3af8c45825cceecbf1039101cf92f91", - "signature": "5229e30a8070892ff53abbbfeed68c8501c8aa20e9d9d3058e413285add0a540", - "affectsGlobalScope": false - }, - "../../src/types/unit-number.type.ts": { - "version": "79bc140a34c49381a3a4cc0dc92f5843b9d36e1e17075a79c7f2529555b927c4", - "signature": "1ece0739292250136df033f718d3ae572989eff650e18015f79e0c0c0e66ab2f", - "affectsGlobalScope": false - }, - "../../src/types/index.ts": { - "version": "661d955487f751a303b88bbddb52ebc9306fed67e9f92022cd8686787718ffea", - "signature": "5e78289f84211e154a1f54213c4928913bcbe7fea15dcfdc9c2311bbf215793a", - "affectsGlobalScope": false - }, - "../../src/decorators/deprecated.decorator.ts": { - "version": "8ab122563b7c824c2dac645a344f797bcaeac7c0932d81a4186232d5a7becdb0", - "signature": "6694bd27111fff2d5c9db6c60bfa2f6da9de398bf5ee9678b50b17e9f65b241a", - "affectsGlobalScope": false - }, - "../../src/decorators/final-class.decorator.ts": { - "version": "af9bbd0c0f43d0928d56fe4a9bbe391f230bd7f7b5b1862c3006fd60f0ad6c70", - "signature": "a47b07a689396df20a7b6da401a04399e847a779ad6028ca344ddd16a7edcfa1", - "affectsGlobalScope": false - }, - "../../src/decorators/mapper.decorator.ts": { - "version": "7c4b9c096895327b2a8d16d72b221370408bc6ecc9bd4ffd65f233b74cb885e7", - "signature": "abedd024cc1a57e2886282d60fd011dbb9e9dc14bb33abe66c959029efc921d4", - "affectsGlobalScope": false - }, - "../../src/decorators/singleton.decorator.ts": { - "version": "27948b31c1aad486b9b96fcf44519c895d3ea5289c0a3b20a318c255f09cc73a", - "signature": "84926c3e0db086e60a26337f0abb38449ac83cfdeb555588dbce0663d6ca7ba3", - "affectsGlobalScope": false - }, - "../../src/decorators/watch.decorator.ts": { - "version": "7f7ef493115bd5df9e207bb648f0b8317c213c87e67f9ba01241c116d37602d4", - "signature": "8d1a7fe3bdebc1b00243625a08e839653f19b591fc85ef02377a846293b334c4", - "affectsGlobalScope": false - }, - "../../src/decorators/index.ts": { - "version": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "signature": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "affectsGlobalScope": false - }, - "../../src/errors/not-browser.exception.ts": { - "version": "7ac9a7cc60ae78bc4170a03c03af39fb03ffa79f1b1e47f7fe5e69a830d14a28", - "signature": "cecb037f713162767a6345d5b74fcc6f50ee2cbbf52d27cdd6dc6777fe94bba4", - "affectsGlobalScope": false - }, - "../../src/errors/null-pointer.exception.ts": { - "version": "5e4c28420df4a6cbafad6d11832de5f435badbafb7deecd0278c8222e1cffd67", - "signature": "84f2239b5c384d12bc122aeab17d6147720a2c05a45e7c60e8c760d600aca3c9", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-parameter.exception.ts": { - "version": "0a6beec39c8e46002f99f858b3d8427d7a413b01d5d7e0e6d7b32c86fe7317c7", - "signature": "0eb0fefbebefe664a50256f24e670a6fdbb61682a15434e5111d28eccde6c972", - "affectsGlobalScope": false - }, - "../../src/errors/missing-parameter.error.ts": { - "version": "98c39b59e0dc611b25b773a0be984859f57c7b3e4eeeb4e91e1a81656d1c544f", - "signature": "1462d6fdae79ddb9d35fbe2d91646e000373f944b08d6c716a95c8368a32453b", - "affectsGlobalScope": false - }, - "../../src/errors/no-database-connection.error.ts": { - "version": "2e6a228de7228ac55c73a72006b1c9b62fda994e59787377825000faa3349741", - "signature": "1b419fef46fb80a50d79b3b1a75535d91f33cabeee68487282c79bf9b74b8f3d", - "affectsGlobalScope": false - }, - "../../src/errors/wrong-type.exception.ts": { - "version": "eec78e492e246937c13113dd1349e2ccf495dc44a853ccbaea7c758b1e8b7fc3", - "signature": "de45bfece05ace8859827e8b7ec9e24553387b4662632ccea825d82ff05493f8", - "affectsGlobalScope": false - }, - "../../src/errors/index.ts": { - "version": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "signature": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-manager.ts": { - "version": "704a103f3a2ab7f645caee9d1458c81ce4778f376869e400ec5f901d2b57eb07", - "signature": "38df54fe86efdedd2c8a9dfec356e5f0d535eb03892ed26675b10957ba01b71c", - "affectsGlobalScope": false - }, - "../../src/dom/types/canvas-shadow-config.ts": { - "version": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "signature": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-utils.ts": { - "version": "0388fe6cdbe24e3e657d2acb6209086e28339c8a5ac4f9826d50a359caf2c697", - "signature": "dba894fb04c7175a0949fd1c4b6359ce7adc52810aaac833e5cdcc813d496615", - "affectsGlobalScope": false - }, - "../../src/dom/dom-get.ts": { - "version": "01869a90d48283a227656b7b8432ece2b78e4740989a923e5f9a6fd01c40d8ed", - "signature": "3d2f3580b512794b58d4c27077641c7ba15e6969de3a45ccffe25769c366b0ba", - "affectsGlobalScope": false - }, - "../../src/components/file-manager.ts": { - "version": "4ac2f4b362b3a4697d7ff17cf13211bb2cc688c76dc4a98b568b8dbf94a25ad8", - "signature": "43961df2c2fff0fb28d34607cb14fa4bf7eaa6706fa47bd97633577d4b84441e", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-priority.ts": { - "version": "fc0cd570131b61e553eb24277b28ee885323a13599a4bd549f12091491d38513", - "signature": "16f9614ec07e7ce3f5903cf15fe47b95c76e65ca53f0b2ae8411ac972d6fa3cc", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-default-formatter.ts": { - "version": "e2969d84a9dff58e2ed1ded0bf3b3504054164456595d3ddd04c5ab01b55e06f", - "signature": "40986e5798b7a98ba2c646d6c84bd9213fc619300375e1af45332945b6ca7d64", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-callback-holder.ts": { - "version": "6dd9141ab5ff84dfb270ced5b06b2724434ebbf9b88110e9dc4fdf0b1408825f", - "signature": "cf7500bb9afe40afb60618ef88e22685082eda4351ece51ad6085c9940fb02cb", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger-instance.ts": { - "version": "e7baa1c085fcc280bce17bccdaa67f76e355ecc4e0e4784655e9441e9337a2d0", - "signature": "a66693f3e0aa4f3b99361943fb36b458073acc0614c0140540ca13f23e4bcc29", - "affectsGlobalScope": false - }, - "../../src/components/logger/g-logger.ts": { - "version": "0abfbc222e7aa1222e93ceb0bd99f161e5e3a8f2e5039007e2efe6e1cd9f2a54", - "signature": "a4f518f2914c1cddffa0ccba8f82facc3fe791cd4fdb40c16368f24aa7effe29", - "affectsGlobalScope": false - }, - "../../src/components/g-map.ts": { - "version": "6403a6e7b80fe9689dfdd8cc4866687d7a3847d14755d7cb39980d0c5af7d967", - "signature": "b6d1ffc0e87b2b5a5e6964847ae9e2b77fa9b1934053a38c94a3ed85d93ef669", - "affectsGlobalScope": false - }, - "../../src/components/key-value-counter.ts": { - "version": "dfecbf131b84c1629d1c43286e64d42e3987204f98aca41d0f32909a85b65a68", - "signature": "bd506792e3d0f86c1b148870a530470c37c0234319114953473dbe73a84940ec", - "affectsGlobalScope": false - }, - "../../src/components/number-counter.ts": { - "version": "ad78c0b6bef281b4ca28e4eadc7e6fc399e67f08a2322497930cac5ae559ac82", - "signature": "3ccf0c0de44729cc182e1f6aad37c7bf3562dc9b3ccc339e7b10e1ea3592cab1", - "affectsGlobalScope": false - }, - "../../src/components/paginator.ts": { - "version": "1ae846e1f799abb1ffdc26539894217991dd4a2c1a885baf291ba0b0851af312", - "signature": "fec09413ee4e53b7534333443ae2cafce7f5a21cd817369f46293fbb39194dcf", - "affectsGlobalScope": false - }, - "../../src/components/bidirectional-graph.ts": { - "version": "39ee7b58ac907fff42acfcd04711a51d782ed1ad4f9affc4abf3447b24158e2b", - "signature": "75c0f524b8a9d4bd571ce0c68ab80c1d831259b9654b02fc35cfa64f3cffc612", - "affectsGlobalScope": false - }, - "../../src/components/index.ts": { - "version": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "signature": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "affectsGlobalScope": false - }, - "../../src/validators/index.ts": { - "version": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "signature": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "affectsGlobalScope": false - }, - "../../src/misc/slovak-stemmer.ts": { - "version": "6d5b2710b30af486ecd78c384281e5c4b25b6f5050f67402a8fb0afee709ea56", - "signature": "97ef5ec860c7355db6cf7c1ee5a8adcdfd86ceb3e5165803961f56b3757d8647", - "affectsGlobalScope": false - }, - "../../src/misc/ajax.ts": { - "version": "6a24655e92cf6b5c79334bca1070de293462e2886d9724e498925114732a1554", - "signature": "47e4fcd63be64c766df7e9d0445e6794e277ba4e31a88483ae8c209203af921a", - "affectsGlobalScope": false - }, - "../../src/misc/file-size-formatter.ts": { - "version": "10d25383ee7fcd8aef05c6ffc59c1b38c105ee737c8e470b6fbc23b59e4b78f4", - "signature": "a60ae53946c945ed78bfdad82c0f0b69af9033ef7a59632a2381ec1e60d00717", - "affectsGlobalScope": false - }, - "../../src/misc/simple-loop.ts": { - "version": "55f3539e92174fd5608777e34178e9dd157aee2be3e8b792890baccedfd83bf7", - "signature": "d5cdadaff8c2dd309daa8dbbe3c0dd7cb3e171b28ea8f35130d474d48f123e16", - "affectsGlobalScope": false - }, - "../../src/misc/runtime-validators.ts": { - "version": "eaa40834d14246581c556e6e0e246610e8a11de53b7cab941fce5af6c3dbe602", - "signature": "d0e256ede4130bfa23543f342bffbb84019ebedffadb5a0dace8b99bfa756739", - "affectsGlobalScope": false - }, - "../../src/misc/index.ts": { - "version": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "signature": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "affectsGlobalScope": false - }, - "../../src/physics/closest-2d.ts": { - "version": "083451549e5d2866a406baecfae5bc6d83d9b9d355061a3950f46fe26b3dd26d", - "signature": "33d797af592edeb1eb2e343cdf22e4321707257e9832641240150ac742875f5e", - "affectsGlobalScope": false - }, - "../../src/physics/closest-3d.ts": { - "version": "65c1b49820c1db877ce527535e6bd1e5acc9af0d24f691d4bb91c813e156b562", - "signature": "6daa9238a5defd6245e97bb12cbb74c14146a0b3e93c74311feb01246ef6a26f", - "affectsGlobalScope": false - }, - "../../src/physics/distances-2d.ts": { - "version": "b0151f7046ff0444d1f2382a3f58fbe663920c6565ad0219be52ee265ec2ee79", - "signature": "ef5b2120ebfce476d2295100363146af7a3cccb939a01c235a418d41360e45d3", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-2d.ts": { - "version": "06144ab2cc324d688c3e83d3078f9bc8e86f4cf0ba59de534d442810263b072d", - "signature": "5cbeca0bb58b5504c2573890a3f710cb386fcd2b2260ad39508f57f92e023f80", - "affectsGlobalScope": false - }, - "../../src/physics/distances-3d.ts": { - "version": "5cacf11412f8d5c6791b0aad3323482bd995233aa2ca1b8ef93185a991f29ae3", - "signature": "391950cd497a146f3bb33ec37aeb6821bad9e6d594383d8cf104c8e2c92df569", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-3d.ts": { - "version": "c16ac35d28ebb83f247eb5c6aab289e818218e231ae4e8347b421e121651152b", - "signature": "4a5c737cec4c5e97ac063fd7a7bb79823a12e3a158d208153ef421993a9827b6", - "affectsGlobalScope": false - }, - "../../src/physics/collisions-3d.ts": { - "version": "e9070b9f5b4255f97935125c7cdeb53823bae23ede5afdd7932b8069f76d886f", - "signature": "6ede89f2bc636d58fc256d3e44014f9d65285f0505ce4dba4e713d5efdd3e81b", - "affectsGlobalScope": false - }, - "../../src/physics/objects/object-convertors.ts": { - "version": "5cfe350a5a71db156ae34cdebb9659eab327dd19e6477dadd06e2d2579adb186", - "signature": "57bd6f64232764990bb1d877c29c8c4b3cc77cd78267d47b65fddbb73997afa4", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/ray-2d.ts": { - "version": "985de7949c35d39c15fd4d6b244a3f70feabed52054ce21bf0b67740cf16afd0", - "signature": "3000b6e35b3fecb95a4c268c6bf225b0bf2415e949f347a68727cb2f77adcdc8", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/object2-d.ts": { - "version": "9452670a2067e2a1f31316fa9051e0d6be7caa13870e18eb280291a491e6900c", - "signature": "dd7fb9327c53dfcb289884fe0344d94c97ee63a1616191632703cdf071d89c77", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/sphere.ts": { - "version": "7fa784ed4b1b7f6144cf3921edb7bc797d82b74397157e92311f28ffa2a766f0", - "signature": "2fb382a291e244f73d43ad20f46a99786f5bce47a4a52f88d0ada278b06d25de", - "affectsGlobalScope": false - }, - "../../src/physics/bounders-2d.ts": { - "version": "d477990b0e1a0ac464bfcda31561fb3b334580bbce81217815ab0c0c73bea4a8", - "signature": "34411f5ca9c07bc8264fbca05f9778ef816c6c01317405794d162b5c33dc11fb", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/rect.ts": { - "version": "d10f001dc7fcb86dd3b1314da4cb15d1c6bad835b3728d8f631a02d77ca0bcae", - "signature": "886ece4475d033c76ca56099404a6ff3eb212e4b985a2d39761d19c84e152a94", - "affectsGlobalScope": false - }, - "../../src/physics/objects/index.ts": { - "version": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "signature": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "affectsGlobalScope": false - }, - "../../src/physics/intersects-2d.ts": { - "version": "4323af0c0af0ba6ea021ed5e28975db23be983eff8d6e018765c594fa52a3a37", - "signature": "d3cbba6a7adfa0ce84b393f9df210ffb259d7b34078daa0ca6b354d98286e418", - "affectsGlobalScope": false - }, - "../../src/physics/index.ts": { - "version": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "signature": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.fixture.ts": { - "version": "6f75fc70576fee07afd8ac355436f9c045fbee5d72004e6125ea6d22c7b8979e", - "signature": "ce94af9d0980c8e834150dd9c4090f51ea51867140420e5494b51470c48a77d1", - "affectsGlobalScope": false - }, - "../../src/tests/abstract.mapper.ts": { - "version": "8295eb4539f238dba561098741feea64af34ba11058d61c640410d7fca16bc2f", - "signature": "02c3356891ac37b8cc8db91a1f1f3ec58f5e002cf0e425b909d3e212f7cad0cb", - "affectsGlobalScope": false - }, - "../../src/tests/abstract-database.fixture.ts": { - "version": "91adb8c41b44915cc262e32a88c0747ae9551e7e272e898dda04f5a3759a3c47", - "signature": "3d9d147c31ba4bad323cca97e4e5dfe10c2d7b10a6422da98a1923dd4336787d", - "affectsGlobalScope": false - }, - "../../src/tests/paginate.model.ts": { - "version": "e7ba927d5a8c8653c7f3416b7e9c6b7246e329bef258b3d03b0020b9075c2708", - "signature": "86f823fd364c395ef3eee14e7b377296c523d2846e7ddb85388a01fc609db2ac", - "affectsGlobalScope": false - }, - "../../src/gutils.ts": { - "version": "12b68468830f1c6169062eae3030671eae3a97bc0e3c574065810ef68d356f65", - "signature": "79b9cdaa38e363129b0aca2a79a301789ea09ceeb69747c74e0bfda3202aed68", - "affectsGlobalScope": false - }, - "../../src/mockdata.ts": { - "version": "90c9877cd2e693edf94f8392f615a2e4927733ace7a1c072454f6aa9b52aa3f7", - "signature": "69456433797556ac60f72c60226e7589f86e1af8bc833c1157cc713adbc7de18", - "affectsGlobalScope": false - }, - "../../src/common.ts": { - "version": "4ed4fb6cbd50c20471f867f405dc6a05023956b0e7bbc69d41f948785294d46a", - "signature": "b054c6aded2ec2b4c3e98da3b613e66ddc528ebd840c606bbe7f94b2be84ebd1", - "affectsGlobalScope": false - }, - "../../src/index.ts": { - "version": "830adf9f6d6531c5159fc4f4148fa383a9e100411732b17a44d1e2039137973d", - "signature": "213e8b02b44c33d262dccc853629e9f2e505a7f644d5f10fb6358d3755d67dd5", - "affectsGlobalScope": false - }, - "../../src/utils/fileutils.ts": { - "version": "4417956f5fcda4969f0491aee842ebf83b9f7a11334825c8a6bd715c013a28fc", - "signature": "8ae96f6f0a7b3ac77a6f9b9498f0852f65d72a2e075e2a2edcdce519df2084bd", - "affectsGlobalScope": false - }, - "../../src/node.ts": { - "version": "9485d520ccfe74c26606276355e3396cab9ffc508a3f23e6204fe019a6055fb1", - "signature": "4fd53277b23af7187f1044ac011feaefc4cf3369f639accb7816b1d23c50e0e6", - "affectsGlobalScope": false - }, - "../../src/utils/domutils.ts": { - "version": "fce9cb6be46acbc59599c5402d3b957fbdd1f1adf1313d71da746e40f6732748", - "signature": "84c29941630a7ff933926990ba86721a24fe4324657525c3fde6e57450eea613", - "affectsGlobalScope": false - }, - "../../src/web.ts": { - "version": "b38301821dcde1763e53ff6abb7b93d872ce87e9659e51df891c44dd222bb9f3", - "signature": "0aacf4428ad5f748eed087e113f83b8ea7fa88c4f9e7734a884c0a1751ae9bf4", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-camera.ts": { - "version": "9438ea841f924cc78350099aebf81d06b739ad80abc7400e17a56c6f290216c3", - "signature": "f8776af88c918a6752dfb6f91cfed753817c2302e8961065a32ef4d3671ecf30", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-misc-utilts.ts": { - "version": "4bd7748a9263f42c74088869b563af32f1049ac8888077bfef37c913dc7748b8", - "signature": "a0f436ac0bc6d56c9559e7976cc1badea7c296b023b7034db6af0f53af3b1210", - "affectsGlobalScope": false - }, - "../../src/dom/drawer.ts": { - "version": "ec7b4797ff8a62aceecd60adb122ffa79a7efd8c161d8e9949f2d77c09715de3", - "signature": "bcc65583f6a3709e4d3994cf3c95b2cba3488be5b02146f5017b050d0539675c", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer.ts": { - "version": "d2b05e002b13d3a498582a417c22a6fa9dd305f0c6120294443827dc1ae39be6", - "signature": "ea3cd09e41390c96971ba5182d1879adb4b75b3cd0c6fc381dcddb7f13a48fe1", - "affectsGlobalScope": false - }, - "../../src/dom/canvas-drawer-advanced.ts": { - "version": "108154eec4375866544b8b590592bdd9544121838a98cfc72bdc19391edc74eb", - "signature": "8379b8a60762750d76d3d5a4a142639af2cd224908d605a5801865bce5452aa8", - "affectsGlobalScope": false - }, - "../../src/dom/element-builder.ts": { - "version": "f77bf02ac480cc5619af127394a55bc29dc1c1316460d56c888fdc1c52b4c9ac", - "signature": "d75b4f87328adcb411a0483f140575d4e360982d57e8ce3791dc5c4c37a2d103", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.interface.ts": { - "version": "5d0c6b9dad60dde0fb8e3703bde5d6c93912da4786a5ce9d23675ccd9154b885", - "signature": "7989797f0d8fdf465436c35c4312d0b1ad68e02329f46174b4f2e11b1f3270cb", - "affectsGlobalScope": false - }, - "../../src/models/countries/country.model.ts": { - "version": "ddd91a1b4bcedd7dfa467e5d61160ecb03e3ffc1dfbd3d8d6ecf11ab7300bfce", - "signature": "67ecaf5354bbaa4b5bd6a0868c97d2ed404e981840f986aefe2c92f074dc7ddb", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": { - "version": "973392b476ce717b24accaf327ab93d6b8fdb8b3900cc460f1770cd7720a2cfe", - "signature": "1c02d1c6ffe3e006a77ec1951955b9a8803a6f31e92e9ab4bf2ce0182891a1d3", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": { - "version": "59ac9d02f3adb87bc6753d263bfeefe1548d07f373bd574b58cbea05b4e2d5a2", - "signature": "3fb6574da6d5c3a4a2830d14c950b5346136b7125bdab011d9d89e051071095f", - "affectsGlobalScope": false - }, - "../../node_modules/@types/mocha/index.d.ts": { - "version": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "signature": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "affectsGlobalScope": true - }, - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": { - "version": "1e29c7fb52b89d69500edf01dbd3c4248a09f30cc33f85d13e951af55ad5b4f8", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": { - "version": "504d4a8c02830dc7ea9d80f22af6f0a225cdab817f46d7bb3193a3053f87aa11", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../../src/models/data-structures/list/test-list.ts": { - "version": "44726fcd1f6f7102248e882e318f7778b5a1527244680c26f04e2f6f7fc50c91", - "signature": "38d3a1989f758c08cec83245796865fd64101a0969e5fb8f8773688b0e5adbd2", - "affectsGlobalScope": false - }, - "../../src/models/path/nearest-item.ts": { - "version": "4646a4b85e4ff83c29baf51a234126ca299e22fb8a90bfab32a8db950331f102", - "signature": "5197c86ccd3aafc3751bb9f190770574c128096d53a0f346662b6865dc012531", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star.ts": { - "version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/grid-node_download.ts": { - "version": "cda59720c81e8c9f62f06e0786c079e1df21a9bc3886f2b7cb97ad362340cdd8", - "signature": "5b2fd1cf8bce1994ad8288b444fe47b504b0bd43444cb03c83ec7e71261418ee", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/graph_download.ts": { - "version": "52e49884568177fcf39efd49781fc1a6673f6df37eb8728b81a9779f7a93d3f9", - "signature": "40b3f2a8f10d4dc70ef53e5518108bee8e9edd6d1a090a1df5df840eb3b23d18", - "affectsGlobalScope": false - }, - "../../src/models/path/a-star/a-star_download.ts": { - "version": "5a4893e97ce499c8ea1ec1369216272990535c708473159c8b1b097a9bc648d3", - "signature": "eb797cf8c54f7a5645a14ae87c86a8392d58dbf8c9770996455b94b0e68572df", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection-holder.ts": { - "version": "0fe6a52cb242aa6e455dcb096dbad449b647397d9fefbeb3784f9b901c614186", - "signature": "f7583833a39194d273f475fbb608aa0bcfed8a31b45a4d068cc235c0481f21c2", - "affectsGlobalScope": false - }, - "../../src/models/selection/selection.ts": { - "version": "31a79b56fece18fa9b6fb2bf561fd1adc217334743bdf886db2d1c196dcd0b7d", - "signature": "32b66b1d55f5f5e262c494e7088b4d96664bee6e43c19f692d88843339a42a99", - "affectsGlobalScope": false - }, - "../../src/physics/bounding-boxes/aabb3.ts": { - "version": "efe80cf839597d19fe42b5618905862e2c435e192366c5313760e45fe69521b5", - "signature": "a3b949bf8b44a4fe34f08efba79a27fc7d5cf9e19192342970f76027f521ffa9", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/capsule.ts": { - "version": "d1f952b2ef4bd0a6947301f69141d84934e7c3c28056926fb90cf89fb70c29f6", - "signature": "72657a17bef86c97c10a8f90125c0823dd7ccdbad32afbdf37a43f1f4ab1553c", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/line.ts": { - "version": "d649540f390bef131b1c0380831a9086cd746c0f004d71c095590a55e149d3aa", - "signature": "c99648fb327ac35ae9eade9cef7e17a5272d349343a8375c82f87df9b9e39abc", - "affectsGlobalScope": false - }, - "../../src/physics/objects/2d/triangle.ts": { - "version": "f8af68568738ce2e8087acb36753aeb5ac094e18bc8e5a3b384a5def43c49f8d", - "signature": "cfee0b2219fb8b5225953545e9c97bf290ad377c944f7b4b75d7f337b1f7742b", - "affectsGlobalScope": false - }, - "../../src/utils/runtime.ts": { - "version": "00edc406523038cce8911333f31690fe488a9ffa542c14e1e36efea9f0aabe45", - "signature": "28ed40676f5cbab9b602191089eb4e99518e3e44ec4dc6aa489a6a589bb0b307", - "affectsGlobalScope": false - }, - "../../src/utils/net-client-utils.ts": { - "version": "d5393a04c5ded9a06274e8560c68329329ce1266929e40c3b52fb1f7d6ebe9b1", - "signature": "32d6f2c32bb9683d9dfb89e63bff518d8d4418baa679f96cfce3c13ef221e2a1", - "affectsGlobalScope": false - }, - "../../src/utils/net-server-utils.ts": { - "version": "87d178e86d5e83f10f450fb797672a577c5afd130688409311d491ae7a413952", - "signature": "6fadafb88959fadb4f7bf2283e8bd38ac833776f103db811228248818a0dec72", - "affectsGlobalScope": false - }, - "../../node_modules/@types/chai/index.d.ts": { - "version": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "signature": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "affectsGlobalScope": true - }, - "../../node_modules/@types/eslint/helpers.d.ts": { - "version": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "signature": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "affectsGlobalScope": true - }, - "../../node_modules/@types/json-schema/index.d.ts": { - "version": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "signature": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "affectsGlobalScope": false - }, - "../../node_modules/@types/estree/index.d.ts": { - "version": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "signature": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint/index.d.ts": { - "version": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "signature": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "affectsGlobalScope": false - }, - "../../node_modules/@types/eslint-scope/index.d.ts": { - "version": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "signature": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/json5/index.d.ts": { - "version": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "signature": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.d.ts": { - "version": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "signature": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/async_hooks.d.ts": { - "version": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "signature": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/buffer.d.ts": { - "version": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "signature": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/child_process.d.ts": { - "version": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "signature": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/cluster.d.ts": { - "version": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "signature": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/console.d.ts": { - "version": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "signature": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/constants.d.ts": { - "version": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "signature": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/crypto.d.ts": { - "version": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "signature": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dgram.d.ts": { - "version": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "signature": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/dns.d.ts": { - "version": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "signature": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/domain.d.ts": { - "version": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "signature": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/events.d.ts": { - "version": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "signature": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/fs.d.ts": { - "version": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "signature": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/fs/promises.d.ts": { - "version": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "signature": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http.d.ts": { - "version": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "signature": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/http2.d.ts": { - "version": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "signature": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/https.d.ts": { - "version": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "signature": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/inspector.d.ts": { - "version": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "signature": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/module.d.ts": { - "version": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "signature": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/net.d.ts": { - "version": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "signature": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/os.d.ts": { - "version": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "signature": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/path.d.ts": { - "version": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "signature": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/perf_hooks.d.ts": { - "version": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "signature": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/process.d.ts": { - "version": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "signature": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/punycode.d.ts": { - "version": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "signature": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/querystring.d.ts": { - "version": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "signature": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/readline.d.ts": { - "version": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "signature": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/repl.d.ts": { - "version": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "signature": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/stream.d.ts": { - "version": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "signature": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/string_decoder.d.ts": { - "version": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "signature": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/timers.d.ts": { - "version": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "signature": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tls.d.ts": { - "version": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "signature": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/trace_events.d.ts": { - "version": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "signature": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/tty.d.ts": { - "version": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "signature": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/url.d.ts": { - "version": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "signature": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/util.d.ts": { - "version": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "signature": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/v8.d.ts": { - "version": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "signature": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/vm.d.ts": { - "version": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "signature": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/worker_threads.d.ts": { - "version": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "signature": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/zlib.d.ts": { - "version": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "signature": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.4/base.d.ts": { - "version": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "signature": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/globals.global.d.ts": { - "version": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "signature": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "affectsGlobalScope": true - }, - "../../node_modules/@types/node/wasi.d.ts": { - "version": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "signature": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/ts3.6/base.d.ts": { - "version": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "signature": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/assert.d.ts": { - "version": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "signature": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/base.d.ts": { - "version": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "signature": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "affectsGlobalScope": false - }, - "../../node_modules/@types/node/index.d.ts": { - "version": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "affectsGlobalScope": false - } - }, - "options": { - "declaration": false, - "diagnostics": true, - "rootDir": "../../src", - "experimentalDecorators": true, - "outDir": "./", - "module": 99, - "noImplicitAny": true, - "strict": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "alwaysStrict": true, - "strictPropertyInitialization": true, - "target": 1, - "lib": [ - "lib.es2016.d.ts", - "lib.dom.d.ts" - ], - "moduleResolution": 2, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "baseUrl": "../..", - "paths": { - "gtools/utils": [ - "./src/utils" - ], - "gtools/math": [ - "./src/math" - ], - "gtools/errors": [ - "./src/errors" - ], - "gtools/enums": [ - "./src/enums" - ], - "gtools/models": [ - "./src/models" - ], - "gtools/types": [ - "./src/types" - ], - "gtools/physics": [ - "./src/physics" - ], - "gtools/components": [ - "./src/components" - ] - }, - "incremental": true, - "sourceMap": true, - "removeComments": true, - "pathsBasePath": "D:/Projects/gtools", - "noEmit": false, - "importHelpers": true, - "configFilePath": "../../src/tsconfig.esm5.json" - }, - "referencedMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/bidirectional-graph.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/file-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/components/g-map.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/key-value-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/utils/index.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-priority.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/components/number-counter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/components/paginator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.ts" - ], - "../../src/config/gtools-config.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/config/gtools-config.interface.ts" - ], - "../../src/constants.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/decorators/final-class.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/mapper.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/singleton.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/dom-get.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/dom/drawer.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/element-builder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/dom/types/canvas-shadow-config.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/button.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/days.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/encodings.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/file-types.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/http-status-codes.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/enums/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/enums/keys.enum.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/errors/missing-parameter.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/no-database-connection.error.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/not-browser.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/null-pointer.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-parameter.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/errors/wrong-type.exception.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/gutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/mat4.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector-xz.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector2f.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/math/vector3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/ajax.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/file-size-formatter.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/misc/runtime-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/simple-loop.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/misc/slovak-stemmer.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/mockdata.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/color.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/index.ts" - ], - "../../src/models/countries/country.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/countries/country.interface.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/binary-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/g43-collection.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/object-utils.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/abstract-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/linked-list-entry.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/sorted-array-utils.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/utils/index.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/gender.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/grid-node_download.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/djikstra/djikstra.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/path/nearest-item.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/data-structures/priority-queue.ts" - ], - "../../src/models/range.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/models/color.model.ts", - "../../src/utils/index.ts" - ], - "../../src/models/selection/selection-holder.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/selection/selection.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/selection/selection-holder.ts" - ], - "../../src/models/sorting/bucket-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/counting-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/heap-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/sorting/insertion-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/merge-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/quick-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/sorting/radix-sort.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/collisions-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/distances-2d.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-3d.ts" - ], - "../../src/physics/distances-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/tests/abstract.fixture.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/abstract.mapper.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/tests/paginate.model.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/horizontal-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/key-value.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/nested-string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/key-value.interface.ts" - ], - "../../src/types/optional.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/prop.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/property-decorator.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/ray2d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/math/index.ts" - ], - "../../src/types/round-data.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/size.interaface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/string-map.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/type.interface.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/unit-number.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/types/vertical-align.type.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/analytics-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/coerce-util.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/color-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/math-utils.ts" - ], - "../../src/utils/date-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/domutils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/dom-get.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/types/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/fileutils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/string-utils.ts" - ], - "../../src/utils/html-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/constants.ts" - ], - "../../src/utils/image-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/enums/index.ts" - ], - "../../src/utils/math-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/utils/random-utils.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/net-client-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/utils/html-utils.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/utils/parser-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/process-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/random-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/reflection-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/runtime.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/errors/index.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/sorted-array-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/string-checkers.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/utils/svg-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/utils/time-utils.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/validators/misc-validators.ts" - ], - "../../src/validators/misc-validators.ts": [ - "../../node_modules/tslib/tslib.d.ts" - ], - "../../src/web.ts": [ - "../../node_modules/tslib/tslib.d.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "exportedModulesMap": { - "../../node_modules/@types/eslint-scope/index.d.ts": [ - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts" - ], - "../../node_modules/@types/eslint/index.d.ts": [ - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts" - ], - "../../node_modules/@types/node/assert.d.ts": [ - "../../node_modules/@types/node/assert.d.ts" - ], - "../../node_modules/@types/node/async_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts" - ], - "../../node_modules/@types/node/base.d.ts": [ - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../../node_modules/@types/node/buffer.d.ts": [ - "../../node_modules/@types/node/buffer.d.ts" - ], - "../../node_modules/@types/node/child_process.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/cluster.d.ts": [ - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/console.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/constants.d.ts": [ - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/crypto.d.ts": [ - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/dgram.d.ts": [ - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts" - ], - "../../node_modules/@types/node/dns.d.ts": [ - "../../node_modules/@types/node/dns.d.ts" - ], - "../../node_modules/@types/node/domain.d.ts": [ - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/events.d.ts": [ - "../../node_modules/@types/node/events.d.ts" - ], - "../../node_modules/@types/node/fs.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/fs/promises.d.ts": [ - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts" - ], - "../../node_modules/@types/node/http.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/http2.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/https.d.ts": [ - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/index.d.ts": [ - "../../node_modules/@types/node/base.d.ts" - ], - "../../node_modules/@types/node/inspector.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/inspector.d.ts" - ], - "../../node_modules/@types/node/module.d.ts": [ - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/net.d.ts": [ - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/os.d.ts": [ - "../../node_modules/@types/node/os.d.ts" - ], - "../../node_modules/@types/node/path.d.ts": [ - "../../node_modules/@types/node/path.d.ts" - ], - "../../node_modules/@types/node/perf_hooks.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts" - ], - "../../node_modules/@types/node/process.d.ts": [ - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/punycode.d.ts": [ - "../../node_modules/@types/node/punycode.d.ts" - ], - "../../node_modules/@types/node/querystring.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts" - ], - "../../node_modules/@types/node/readline.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/readline.d.ts" - ], - "../../node_modules/@types/node/repl.d.ts": [ - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/stream.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/stream.d.ts" - ], - "../../node_modules/@types/node/string_decoder.d.ts": [ - "../../node_modules/@types/node/string_decoder.d.ts" - ], - "../../node_modules/@types/node/timers.d.ts": [ - "../../node_modules/@types/node/timers.d.ts" - ], - "../../node_modules/@types/node/tls.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tls.d.ts" - ], - "../../node_modules/@types/node/trace_events.d.ts": [ - "../../node_modules/@types/node/trace_events.d.ts" - ], - "../../node_modules/@types/node/ts3.4/base.d.ts": [ - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../node_modules/@types/node/ts3.6/base.d.ts": [ - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/tty.d.ts": [ - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/tty.d.ts" - ], - "../../node_modules/@types/node/url.d.ts": [ - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/url.d.ts" - ], - "../../node_modules/@types/node/util.d.ts": [ - "../../node_modules/@types/node/util.d.ts" - ], - "../../node_modules/@types/node/v8.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/v8.d.ts" - ], - "../../node_modules/@types/node/vm.d.ts": [ - "../../node_modules/@types/node/vm.d.ts" - ], - "../../node_modules/@types/node/wasi.d.ts": [ - "../../node_modules/@types/node/wasi.d.ts" - ], - "../../node_modules/@types/node/worker_threads.d.ts": [ - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts" - ], - "../../node_modules/@types/node/zlib.d.ts": [ - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/zlib.d.ts" - ], - "../../src/common.ts": [ - "../../src/components/file-manager.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts", - "../../src/math/vector2f.ts", - "../../src/models/gender.model.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/utils/string-checkers.ts" - ], - "../../src/components/file-manager.ts": [ - "../../src/enums/index.ts" - ], - "../../src/components/index.ts": [ - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts" - ], - "../../src/components/logger/g-logger-callback-holder.ts": [ - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-default-formatter.ts": [ - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger-instance.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts" - ], - "../../src/components/logger/g-logger.ts": [ - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts" - ], - "../../src/config/gtools-config.ts": [ - "../../src/config/gtools-config.interface.ts" - ], - "../../src/decorators/deprecated.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/decorators/index.ts": [ - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts" - ], - "../../src/decorators/watch.decorator.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-camera.ts": [ - "../../src/math/index.ts" - ], - "../../src/dom/canvas-drawer-advanced.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-drawer.ts": [ - "../../src/dom/drawer.ts", - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/dom/canvas-manager.ts": [ - "../../src/models/index.ts" - ], - "../../src/dom/canvas-misc-utilts.ts": [ - "../../src/types/index.ts" - ], - "../../src/dom/canvas-utils.ts": [ - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/math/index.ts" - ], - "../../src/dom/drawer.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/enums/index.ts": [ - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/keys.enum.ts" - ], - "../../src/errors/index.ts": [ - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts" - ], - "../../src/gutils.ts": [ - "../../src/components/index.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/decorators/index.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/index.ts", - "../../src/errors/index.ts", - "../../src/math/index.ts", - "../../src/misc/index.ts", - "../../src/models/index.ts", - "../../src/physics/index.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/index.ts", - "../../src/utils/index.ts", - "../../src/validators/index.ts" - ], - "../../src/index.ts": [ - "../../src/gutils.ts" - ], - "../../src/math/index.ts": [ - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts" - ], - "../../src/math/simple-vector3.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/simple-vector4.ts": [ - "../../src/math/simple-vector3.ts" - ], - "../../src/math/vector.ts": [ - "../../src/math/simple-vector2.ts" - ], - "../../src/math/vector2.ts": [ - "../../src/math/simple-vector2.ts", - "../../src/models/index.ts" - ], - "../../src/math/vector3.ts": [ - "../../src/math/simple-vector3.ts", - "../../src/math/vector2.ts" - ], - "../../src/math/vector4.ts": [ - "../../src/math/simple-vector4.ts" - ], - "../../src/misc/index.ts": [ - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts" - ], - "../../src/models/countries/country.model.ts": [ - "../../src/models/countries/country.interface.ts" - ], - "../../src/models/data-structures/binary-tree.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../../src/math/index.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/index.ts" - ], - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../../node_modules/@types/mocha/index.d.ts" - ], - "../../src/models/data-structures/grid-accessor/index.ts": [ - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/index.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts" - ], - "../../src/models/data-structures/list/list.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/sorted-array-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/list/test-list.ts": [ - "../../src/models/data-structures/list/list.ts" - ], - "../../src/models/data-structures/priority-queue.ts": [ - "../../src/models/data-structures/g43-collection.ts" - ], - "../../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/index.ts": [ - "../../src/models/color.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/range.ts", - "../../src/models/sorting/index.ts", - "../../src/models/transform-2d.ts" - ], - "../../src/models/path-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/models/path/a-star/a-star_download.ts": [ - "../../src/math/index.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/path/a-star/graph_download.ts": [ - "../../src/models/path/a-star/grid-node_download.ts" - ], - "../../src/models/range.ts": [ - "../../src/math/index.ts", - "../../src/models/color.model.ts" - ], - "../../src/models/sorting/index.ts": [ - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts" - ], - "../../src/models/transform-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/node.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/physics/bounders-2d.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/bounding-boxes/aabb3.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/closest-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/collisions-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/distances-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/index.ts": [ - "../../src/physics/bounders-2d.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/index.ts" - ], - "../../src/physics/intersects-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/intersects-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/capsule.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/line.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/object2-d.ts": [ - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/ray-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/physics/objects/2d/rect.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/sphere.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/2d/triangle.ts": [ - "../../src/math/index.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/types/index.ts" - ], - "../../src/physics/objects/index.ts": [ - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/object-convertors.ts" - ], - "../../src/physics/objects/object-convertors.ts": [ - "../../src/types/index.ts" - ], - "../../src/tests/abstract-database.fixture.ts": [ - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts" - ], - "../../src/types/helpers/min-max-2d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/min-max-3d.interface.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/pos-size-3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xywh.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/helpers/xyzwhd.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/index.ts": [ - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/types/object-entry.interface.ts": [ - "../../src/types/key-value.interface.ts" - ], - "../../src/types/ray2d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/ray3d.ts": [ - "../../src/math/index.ts" - ], - "../../src/types/text-options.interface.ts": [ - "../../src/types/horizontal-align.type.ts", - "../../src/types/vertical-align.type.ts" - ], - "../../src/utils/domutils.ts": [ - "../../src/math/index.ts", - "../../src/types/index.ts" - ], - "../../src/utils/index.ts": [ - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts" - ], - "../../src/utils/input-utils.ts": [ - "../../src/enums/index.ts" - ], - "../../src/utils/misc-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/net-server-utils.ts": [ - "../../node_modules/@types/node/fs.d.ts" - ], - "../../src/utils/object-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/utils/string-utils.ts": [ - "../../src/types/index.ts" - ], - "../../src/validators/index.ts": [ - "../../src/validators/misc-validators.ts" - ], - "../../src/web.ts": [ - "../../src/dom/canvas-manager.ts", - "../../src/dom/dom-get.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/time-utils.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../node_modules/@types/chai/index.d.ts", - "../../node_modules/@types/eslint-scope/index.d.ts", - "../../node_modules/@types/eslint/helpers.d.ts", - "../../node_modules/@types/eslint/index.d.ts", - "../../node_modules/@types/estree/index.d.ts", - "../../node_modules/@types/json-schema/index.d.ts", - "../../node_modules/@types/json5/index.d.ts", - "../../node_modules/@types/mocha/index.d.ts", - "../../node_modules/@types/node/assert.d.ts", - "../../node_modules/@types/node/async_hooks.d.ts", - "../../node_modules/@types/node/base.d.ts", - "../../node_modules/@types/node/buffer.d.ts", - "../../node_modules/@types/node/child_process.d.ts", - "../../node_modules/@types/node/cluster.d.ts", - "../../node_modules/@types/node/console.d.ts", - "../../node_modules/@types/node/constants.d.ts", - "../../node_modules/@types/node/crypto.d.ts", - "../../node_modules/@types/node/dgram.d.ts", - "../../node_modules/@types/node/dns.d.ts", - "../../node_modules/@types/node/domain.d.ts", - "../../node_modules/@types/node/events.d.ts", - "../../node_modules/@types/node/fs.d.ts", - "../../node_modules/@types/node/fs/promises.d.ts", - "../../node_modules/@types/node/globals.d.ts", - "../../node_modules/@types/node/globals.global.d.ts", - "../../node_modules/@types/node/http.d.ts", - "../../node_modules/@types/node/http2.d.ts", - "../../node_modules/@types/node/https.d.ts", - "../../node_modules/@types/node/index.d.ts", - "../../node_modules/@types/node/inspector.d.ts", - "../../node_modules/@types/node/module.d.ts", - "../../node_modules/@types/node/net.d.ts", - "../../node_modules/@types/node/os.d.ts", - "../../node_modules/@types/node/path.d.ts", - "../../node_modules/@types/node/perf_hooks.d.ts", - "../../node_modules/@types/node/process.d.ts", - "../../node_modules/@types/node/punycode.d.ts", - "../../node_modules/@types/node/querystring.d.ts", - "../../node_modules/@types/node/readline.d.ts", - "../../node_modules/@types/node/repl.d.ts", - "../../node_modules/@types/node/stream.d.ts", - "../../node_modules/@types/node/string_decoder.d.ts", - "../../node_modules/@types/node/timers.d.ts", - "../../node_modules/@types/node/tls.d.ts", - "../../node_modules/@types/node/trace_events.d.ts", - "../../node_modules/@types/node/ts3.4/base.d.ts", - "../../node_modules/@types/node/ts3.6/base.d.ts", - "../../node_modules/@types/node/tty.d.ts", - "../../node_modules/@types/node/url.d.ts", - "../../node_modules/@types/node/util.d.ts", - "../../node_modules/@types/node/v8.d.ts", - "../../node_modules/@types/node/vm.d.ts", - "../../node_modules/@types/node/wasi.d.ts", - "../../node_modules/@types/node/worker_threads.d.ts", - "../../node_modules/@types/node/zlib.d.ts", - "../../node_modules/tslib/tslib.d.ts", - "../../node_modules/typescript/lib/lib.dom.d.ts", - "../../node_modules/typescript/lib/lib.es2015.collection.d.ts", - "../../node_modules/typescript/lib/lib.es2015.core.d.ts", - "../../node_modules/typescript/lib/lib.es2015.d.ts", - "../../node_modules/typescript/lib/lib.es2015.generator.d.ts", - "../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", - "../../node_modules/typescript/lib/lib.es2015.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", - "../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", - "../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", - "../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", - "../../node_modules/typescript/lib/lib.es2016.d.ts", - "../../node_modules/typescript/lib/lib.es2017.d.ts", - "../../node_modules/typescript/lib/lib.es2017.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2017.object.d.ts", - "../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", - "../../node_modules/typescript/lib/lib.es2017.string.d.ts", - "../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", - "../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", - "../../node_modules/typescript/lib/lib.es2018.d.ts", - "../../node_modules/typescript/lib/lib.es2018.intl.d.ts", - "../../node_modules/typescript/lib/lib.es2018.promise.d.ts", - "../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", - "../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", - "../../node_modules/typescript/lib/lib.es5.d.ts", - "../../node_modules/typescript/lib/lib.esnext.intl.d.ts", - "../../src/common.ts", - "../../src/components/bidirectional-graph.ts", - "../../src/components/file-manager.ts", - "../../src/components/g-map.ts", - "../../src/components/index.ts", - "../../src/components/key-value-counter.ts", - "../../src/components/logger/g-logger-callback-holder.ts", - "../../src/components/logger/g-logger-default-formatter.ts", - "../../src/components/logger/g-logger-instance.ts", - "../../src/components/logger/g-logger-priority.ts", - "../../src/components/logger/g-logger.ts", - "../../src/components/number-counter.ts", - "../../src/components/paginator.ts", - "../../src/config/gtools-config.interface.ts", - "../../src/config/gtools-config.ts", - "../../src/constants.ts", - "../../src/decorators/deprecated.decorator.ts", - "../../src/decorators/final-class.decorator.ts", - "../../src/decorators/index.ts", - "../../src/decorators/mapper.decorator.ts", - "../../src/decorators/singleton.decorator.ts", - "../../src/decorators/watch.decorator.ts", - "../../src/dom/canvas-camera.ts", - "../../src/dom/canvas-drawer-advanced.ts", - "../../src/dom/canvas-drawer.ts", - "../../src/dom/canvas-manager.ts", - "../../src/dom/canvas-misc-utilts.ts", - "../../src/dom/canvas-utils.ts", - "../../src/dom/dom-get.ts", - "../../src/dom/drawer.ts", - "../../src/dom/element-builder.ts", - "../../src/dom/types/canvas-shadow-config.ts", - "../../src/enums/button.enum.ts", - "../../src/enums/days.enum.ts", - "../../src/enums/encodings.enum.ts", - "../../src/enums/file-types.enum.ts", - "../../src/enums/http-status-codes.enum.ts", - "../../src/enums/index.ts", - "../../src/enums/keys.enum.ts", - "../../src/errors/index.ts", - "../../src/errors/missing-parameter.error.ts", - "../../src/errors/no-database-connection.error.ts", - "../../src/errors/not-browser.exception.ts", - "../../src/errors/null-pointer.exception.ts", - "../../src/errors/wrong-parameter.exception.ts", - "../../src/errors/wrong-type.exception.ts", - "../../src/gutils.ts", - "../../src/index.ts", - "../../src/math/index.ts", - "../../src/math/mat4.ts", - "../../src/math/simple-vector-xz.ts", - "../../src/math/simple-vector2.ts", - "../../src/math/simple-vector3.ts", - "../../src/math/simple-vector4.ts", - "../../src/math/vector.ts", - "../../src/math/vector2.ts", - "../../src/math/vector2f.ts", - "../../src/math/vector3.ts", - "../../src/math/vector4.ts", - "../../src/misc/ajax.ts", - "../../src/misc/file-size-formatter.ts", - "../../src/misc/index.ts", - "../../src/misc/runtime-validators.ts", - "../../src/misc/simple-loop.ts", - "../../src/misc/slovak-stemmer.ts", - "../../src/mockdata.ts", - "../../src/models/color.model.ts", - "../../src/models/countries/country.interface.ts", - "../../src/models/countries/country.model.ts", - "../../src/models/data-structures/binary-queue.ts", - "../../src/models/data-structures/binary-tree.ts", - "../../src/models/data-structures/g43-collection.ts", - "../../src/models/data-structures/grid-accessor/grid-filters.ts", - "../../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts", - "../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts", - "../../src/models/data-structures/grid-accessor/index.ts", - "../../src/models/data-structures/list/abstract-linked-list.ts", - "../../src/models/data-structures/list/bi-directional-linked-list.ts", - "../../src/models/data-structures/list/index.ts", - "../../src/models/data-structures/list/linked-list-entry.ts", - "../../src/models/data-structures/list/list.ts", - "../../src/models/data-structures/list/one-directional-linked-list.ts", - "../../src/models/data-structures/list/sorted-array-list.ts", - "../../src/models/data-structures/list/test-list.ts", - "../../src/models/data-structures/priority-queue.ts", - "../../src/models/data-structures/quad-tree/quad-tree.ts", - "../../src/models/gender.model.ts", - "../../src/models/index.ts", - "../../src/models/path-2d.ts", - "../../src/models/path/a-star/a-star.ts", - "../../src/models/path/a-star/a-star_download.ts", - "../../src/models/path/a-star/graph_download.ts", - "../../src/models/path/a-star/grid-node_download.ts", - "../../src/models/path/djikstra/djikstra.ts", - "../../src/models/path/nearest-item.ts", - "../../src/models/range.ts", - "../../src/models/selection/selection-holder.ts", - "../../src/models/selection/selection.ts", - "../../src/models/sorting/bucket-sort.ts", - "../../src/models/sorting/counting-sort.ts", - "../../src/models/sorting/heap-sort.ts", - "../../src/models/sorting/index.ts", - "../../src/models/sorting/insertion-sort.ts", - "../../src/models/sorting/merge-sort.ts", - "../../src/models/sorting/quick-sort.ts", - "../../src/models/sorting/radix-sort.ts", - "../../src/models/transform-2d.ts", - "../../src/node.ts", - "../../src/physics/bounders-2d.ts", - "../../src/physics/bounding-boxes/aabb3.ts", - "../../src/physics/closest-2d.ts", - "../../src/physics/closest-3d.ts", - "../../src/physics/collisions-2d.ts", - "../../src/physics/collisions-3d.ts", - "../../src/physics/distances-2d.ts", - "../../src/physics/distances-3d.ts", - "../../src/physics/index.ts", - "../../src/physics/intersects-2d.ts", - "../../src/physics/intersects-3d.ts", - "../../src/physics/objects/2d/capsule.ts", - "../../src/physics/objects/2d/line.ts", - "../../src/physics/objects/2d/object2-d.ts", - "../../src/physics/objects/2d/ray-2d.ts", - "../../src/physics/objects/2d/rect.ts", - "../../src/physics/objects/2d/sphere.ts", - "../../src/physics/objects/2d/triangle.ts", - "../../src/physics/objects/index.ts", - "../../src/physics/objects/object-convertors.ts", - "../../src/tests/abstract-database.fixture.ts", - "../../src/tests/abstract.fixture.ts", - "../../src/tests/abstract.mapper.ts", - "../../src/tests/paginate.model.ts", - "../../src/types/helpers/min-max-2d.interface.ts", - "../../src/types/helpers/min-max-3d.interface.ts", - "../../src/types/helpers/pos-size-2d.ts", - "../../src/types/helpers/pos-size-3d.ts", - "../../src/types/helpers/xywh.ts", - "../../src/types/helpers/xyzwhd.ts", - "../../src/types/horizontal-align.type.ts", - "../../src/types/index.ts", - "../../src/types/key-value.interface.ts", - "../../src/types/nested-string-map.interface.ts", - "../../src/types/object-entry.interface.ts", - "../../src/types/optional.type.ts", - "../../src/types/prop.type.ts", - "../../src/types/property-decorator.type.ts", - "../../src/types/ray2d.ts", - "../../src/types/ray3d.ts", - "../../src/types/round-data.type.ts", - "../../src/types/size.interaface.ts", - "../../src/types/string-map.interface.ts", - "../../src/types/text-options.interface.ts", - "../../src/types/type.interface.ts", - "../../src/types/unit-number.type.ts", - "../../src/types/vertical-align.type.ts", - "../../src/utils/analytics-utils.ts", - "../../src/utils/array-utils.ts", - "../../src/utils/coerce-util.ts", - "../../src/utils/color-utils.ts", - "../../src/utils/date-utils.ts", - "../../src/utils/domutils.ts", - "../../src/utils/fileutils.ts", - "../../src/utils/html-utils.ts", - "../../src/utils/image-utils.ts", - "../../src/utils/index.ts", - "../../src/utils/input-utils.ts", - "../../src/utils/math-utils.ts", - "../../src/utils/misc-utils.ts", - "../../src/utils/net-client-utils.ts", - "../../src/utils/net-server-utils.ts", - "../../src/utils/object-utils.ts", - "../../src/utils/parser-utils.ts", - "../../src/utils/process-utils.ts", - "../../src/utils/random-utils.ts", - "../../src/utils/reflection-utils.ts", - "../../src/utils/runtime.ts", - "../../src/utils/sorted-array-utils.ts", - "../../src/utils/string-checkers.ts", - "../../src/utils/string-utils.ts", - "../../src/utils/svg-utils.ts", - "../../src/utils/time-utils.ts", - "../../src/validators/index.ts", - "../../src/validators/misc-validators.ts", - "../../src/web.ts" - ] - }, - "version": "4.1.5" -} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/min-max-2d.interface.js b/dist/_esm5/types/helpers/min-max-2d.interface.js deleted file mode 100644 index bde698d8..00000000 --- a/dist/_esm5/types/helpers/min-max-2d.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=min-max-2d.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/min-max-2d.interface.js.map b/dist/_esm5/types/helpers/min-max-2d.interface.js.map deleted file mode 100644 index d3a3a57c..00000000 --- a/dist/_esm5/types/helpers/min-max-2d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-2d.interface.js","sourceRoot":"","sources":["../../../../src/types/helpers/min-max-2d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/min-max-3d.interface.js b/dist/_esm5/types/helpers/min-max-3d.interface.js deleted file mode 100644 index 554e70f4..00000000 --- a/dist/_esm5/types/helpers/min-max-3d.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=min-max-3d.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/min-max-3d.interface.js.map b/dist/_esm5/types/helpers/min-max-3d.interface.js.map deleted file mode 100644 index 7c1fafac..00000000 --- a/dist/_esm5/types/helpers/min-max-3d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-3d.interface.js","sourceRoot":"","sources":["../../../../src/types/helpers/min-max-3d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/pos-size-2d.js b/dist/_esm5/types/helpers/pos-size-2d.js deleted file mode 100644 index 0594757b..00000000 --- a/dist/_esm5/types/helpers/pos-size-2d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=pos-size-2d.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/pos-size-2d.js.map b/dist/_esm5/types/helpers/pos-size-2d.js.map deleted file mode 100644 index 1ee4891a..00000000 --- a/dist/_esm5/types/helpers/pos-size-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-2d.js","sourceRoot":"","sources":["../../../../src/types/helpers/pos-size-2d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/pos-size-3d.js b/dist/_esm5/types/helpers/pos-size-3d.js deleted file mode 100644 index af56e4d5..00000000 --- a/dist/_esm5/types/helpers/pos-size-3d.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=pos-size-3d.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/pos-size-3d.js.map b/dist/_esm5/types/helpers/pos-size-3d.js.map deleted file mode 100644 index 2601d637..00000000 --- a/dist/_esm5/types/helpers/pos-size-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-3d.js","sourceRoot":"","sources":["../../../../src/types/helpers/pos-size-3d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/xywh.js b/dist/_esm5/types/helpers/xywh.js deleted file mode 100644 index 32ee0f5c..00000000 --- a/dist/_esm5/types/helpers/xywh.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=xywh.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/xywh.js.map b/dist/_esm5/types/helpers/xywh.js.map deleted file mode 100644 index d35e75a3..00000000 --- a/dist/_esm5/types/helpers/xywh.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xywh.js","sourceRoot":"","sources":["../../../../src/types/helpers/xywh.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/helpers/xyzwhd.js b/dist/_esm5/types/helpers/xyzwhd.js deleted file mode 100644 index 4945b2e2..00000000 --- a/dist/_esm5/types/helpers/xyzwhd.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=xyzwhd.js.map \ No newline at end of file diff --git a/dist/_esm5/types/helpers/xyzwhd.js.map b/dist/_esm5/types/helpers/xyzwhd.js.map deleted file mode 100644 index 0ea18bdf..00000000 --- a/dist/_esm5/types/helpers/xyzwhd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xyzwhd.js","sourceRoot":"","sources":["../../../../src/types/helpers/xyzwhd.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/horizontal-align.type.js b/dist/_esm5/types/horizontal-align.type.js deleted file mode 100644 index fdc1e7f5..00000000 --- a/dist/_esm5/types/horizontal-align.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=horizontal-align.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/horizontal-align.type.js.map b/dist/_esm5/types/horizontal-align.type.js.map deleted file mode 100644 index 15fa83ad..00000000 --- a/dist/_esm5/types/horizontal-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-align.type.js","sourceRoot":"","sources":["../../../src/types/horizontal-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/index.js b/dist/_esm5/types/index.js deleted file mode 100644 index 21cd03c2..00000000 --- a/dist/_esm5/types/index.js +++ /dev/null @@ -1,23 +0,0 @@ -export * from "./helpers/min-max-2d.interface"; -export * from "./helpers/min-max-3d.interface"; -export * from "./helpers/xywh"; -export * from "./helpers/xyzwhd"; -export * from "./helpers/pos-size-2d"; -export * from "./helpers/pos-size-3d"; -export * from "./horizontal-align.type"; -export * from "./key-value.interface"; -export * from "./nested-string-map.interface"; -export * from "./object-entry.interface"; -export * from "./optional.type"; -export * from "./prop.type"; -export * from "./property-decorator.type"; -export * from "./ray2D"; -export * from "./ray3D"; -export * from "./round-data.type"; -export * from "./size.interaface"; -export * from "./string-map.interface"; -export * from "./text-options.interface"; -export * from "./type.interface"; -export * from "./unit-number.type"; -export * from "./vertical-align.type"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/types/index.js.map b/dist/_esm5/types/index.js.map deleted file mode 100644 index 53d8ea8b..00000000 --- a/dist/_esm5/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/types/key-value.interface.js b/dist/_esm5/types/key-value.interface.js deleted file mode 100644 index dfffadb5..00000000 --- a/dist/_esm5/types/key-value.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=key-value.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/key-value.interface.js.map b/dist/_esm5/types/key-value.interface.js.map deleted file mode 100644 index a9626015..00000000 --- a/dist/_esm5/types/key-value.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value.interface.js","sourceRoot":"","sources":["../../../src/types/key-value.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/nested-string-map.interface.js b/dist/_esm5/types/nested-string-map.interface.js deleted file mode 100644 index 44e321b5..00000000 --- a/dist/_esm5/types/nested-string-map.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=nested-string-map.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/nested-string-map.interface.js.map b/dist/_esm5/types/nested-string-map.interface.js.map deleted file mode 100644 index 38c3df6f..00000000 --- a/dist/_esm5/types/nested-string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nested-string-map.interface.js","sourceRoot":"","sources":["../../../src/types/nested-string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/object-entry.interface.js b/dist/_esm5/types/object-entry.interface.js deleted file mode 100644 index af880b73..00000000 --- a/dist/_esm5/types/object-entry.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=object-entry.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/object-entry.interface.js.map b/dist/_esm5/types/object-entry.interface.js.map deleted file mode 100644 index 029870e4..00000000 --- a/dist/_esm5/types/object-entry.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-entry.interface.js","sourceRoot":"","sources":["../../../src/types/object-entry.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/optional.type.js b/dist/_esm5/types/optional.type.js deleted file mode 100644 index d28af337..00000000 --- a/dist/_esm5/types/optional.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=optional.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/optional.type.js.map b/dist/_esm5/types/optional.type.js.map deleted file mode 100644 index b1934183..00000000 --- a/dist/_esm5/types/optional.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optional.type.js","sourceRoot":"","sources":["../../../src/types/optional.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/prop.type.js b/dist/_esm5/types/prop.type.js deleted file mode 100644 index dfcf3099..00000000 --- a/dist/_esm5/types/prop.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=prop.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/prop.type.js.map b/dist/_esm5/types/prop.type.js.map deleted file mode 100644 index 09ee67c3..00000000 --- a/dist/_esm5/types/prop.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prop.type.js","sourceRoot":"","sources":["../../../src/types/prop.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/property-decorator.type.js b/dist/_esm5/types/property-decorator.type.js deleted file mode 100644 index bced99c5..00000000 --- a/dist/_esm5/types/property-decorator.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=property-decorator.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/property-decorator.type.js.map b/dist/_esm5/types/property-decorator.type.js.map deleted file mode 100644 index 71b9bdac..00000000 --- a/dist/_esm5/types/property-decorator.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property-decorator.type.js","sourceRoot":"","sources":["../../../src/types/property-decorator.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/ray2D.js b/dist/_esm5/types/ray2D.js deleted file mode 100644 index 729bfced..00000000 --- a/dist/_esm5/types/ray2D.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ray2D.js.map \ No newline at end of file diff --git a/dist/_esm5/types/ray2D.js.map b/dist/_esm5/types/ray2D.js.map deleted file mode 100644 index 5dcd1dc5..00000000 --- a/dist/_esm5/types/ray2D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray2D.js","sourceRoot":"","sources":["../../../src/types/ray2D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/ray3D.js b/dist/_esm5/types/ray3D.js deleted file mode 100644 index 52172fcc..00000000 --- a/dist/_esm5/types/ray3D.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=ray3D.js.map \ No newline at end of file diff --git a/dist/_esm5/types/ray3D.js.map b/dist/_esm5/types/ray3D.js.map deleted file mode 100644 index d991f6b9..00000000 --- a/dist/_esm5/types/ray3D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray3D.js","sourceRoot":"","sources":["../../../src/types/ray3D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/round-data.type.js b/dist/_esm5/types/round-data.type.js deleted file mode 100644 index 6427ea92..00000000 --- a/dist/_esm5/types/round-data.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=round-data.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/round-data.type.js.map b/dist/_esm5/types/round-data.type.js.map deleted file mode 100644 index c6bd987c..00000000 --- a/dist/_esm5/types/round-data.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"round-data.type.js","sourceRoot":"","sources":["../../../src/types/round-data.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/size.interaface.js b/dist/_esm5/types/size.interaface.js deleted file mode 100644 index b18ed447..00000000 --- a/dist/_esm5/types/size.interaface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=size.interaface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/size.interaface.js.map b/dist/_esm5/types/size.interaface.js.map deleted file mode 100644 index ee57b967..00000000 --- a/dist/_esm5/types/size.interaface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"size.interaface.js","sourceRoot":"","sources":["../../../src/types/size.interaface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/string-map.interface.js b/dist/_esm5/types/string-map.interface.js deleted file mode 100644 index cee7229d..00000000 --- a/dist/_esm5/types/string-map.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=string-map.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/string-map.interface.js.map b/dist/_esm5/types/string-map.interface.js.map deleted file mode 100644 index c8076955..00000000 --- a/dist/_esm5/types/string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-map.interface.js","sourceRoot":"","sources":["../../../src/types/string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/text-options.interface.js b/dist/_esm5/types/text-options.interface.js deleted file mode 100644 index e23bec0c..00000000 --- a/dist/_esm5/types/text-options.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=text-options.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/text-options.interface.js.map b/dist/_esm5/types/text-options.interface.js.map deleted file mode 100644 index c2d5874f..00000000 --- a/dist/_esm5/types/text-options.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"text-options.interface.js","sourceRoot":"","sources":["../../../src/types/text-options.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/type.interface.js b/dist/_esm5/types/type.interface.js deleted file mode 100644 index 757104b6..00000000 --- a/dist/_esm5/types/type.interface.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=type.interface.js.map \ No newline at end of file diff --git a/dist/_esm5/types/type.interface.js.map b/dist/_esm5/types/type.interface.js.map deleted file mode 100644 index 7cda4b25..00000000 --- a/dist/_esm5/types/type.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.interface.js","sourceRoot":"","sources":["../../../src/types/type.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/unit-number.type.js b/dist/_esm5/types/unit-number.type.js deleted file mode 100644 index 3452729c..00000000 --- a/dist/_esm5/types/unit-number.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=unit-number.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/unit-number.type.js.map b/dist/_esm5/types/unit-number.type.js.map deleted file mode 100644 index 6e59a7e9..00000000 --- a/dist/_esm5/types/unit-number.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unit-number.type.js","sourceRoot":"","sources":["../../../src/types/unit-number.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/types/vertical-align.type.js b/dist/_esm5/types/vertical-align.type.js deleted file mode 100644 index 54df0936..00000000 --- a/dist/_esm5/types/vertical-align.type.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=vertical-align.type.js.map \ No newline at end of file diff --git a/dist/_esm5/types/vertical-align.type.js.map b/dist/_esm5/types/vertical-align.type.js.map deleted file mode 100644 index 928c2b68..00000000 --- a/dist/_esm5/types/vertical-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vertical-align.type.js","sourceRoot":"","sources":["../../../src/types/vertical-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/_esm5/utils/DomUtils.js b/dist/_esm5/utils/DomUtils.js deleted file mode 100644 index d0201087..00000000 --- a/dist/_esm5/utils/DomUtils.js +++ /dev/null @@ -1,169 +0,0 @@ -import { NotBrowserException } from "gtools/errors"; -import { DomGet } from "../dom/dom-get"; -import * as Checkers from "../validators/misc-validators"; -var DomUtils = (function () { - function DomUtils() { - } - DomUtils.getWindowHeight = function () { - if (typeof window === "undefined") { - throw new NotBrowserException(); - } - return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; - }; - DomUtils.getWindowWidth = function () { - if (typeof window === "undefined") { - throw new NotBrowserException(); - } - return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - }; - DomUtils.text = function (element, text, append) { - if (append === void 0) { append = true; } - if (append) { - element.textContent += text; - } - else { - element.textContent = text; - } - return element; - }; - DomUtils.html = function (element, html, append) { - if (append === void 0) { append = true; } - if (append) { - if (typeof html === "string") { - element.innerHTML += html; - } - else if (Checkers.isElement(html)) { - element.appendChild(html); - } - } - else if (typeof html === "string") { - element.innerHTML = html; - } - else if (Checkers.isElement(html)) { - element.innerHTML = ""; - element.appendChild(html); - } - return element; - }; - DomUtils.class = function (element, name, force) { - if (force === void 0) { force = false; } - if (Array.isArray(name)) { - for (var _i = 0, name_1 = name; _i < name_1.length; _i++) { - var className = name_1[_i]; - DomUtils.class(element, className, force); - } - } - else { - switch (name[0]) { - case "+": - element.classList.add(name.substring(1)); - break; - case "-": - element.classList.remove(name.substring(1)); - break; - case "/": - name = name.substring(1); - if (Checkers.isBoolean(force)) { - element.classList.toggle(name, force); - } - else { - element.classList.toggle(name); - } - break; - default: - return element.classList.contains(name); - } - } - return element; - }; - DomUtils.createElement = function (name, attr, cont, style) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - if (typeof name === "object") { - return DomUtils.createElement(name.name, name.attr || {}, name.cont || "", name.style); - } - var el = document.createElement(name); - if (typeof attr === "object") { - for (var key in attr) { - if (attr.hasOwnProperty(key)) { - el.setAttribute(key, attr[key]); - } - } - } - if (typeof style === "object") { - for (var key in style) { - if (style.hasOwnProperty(key)) { - el.style[key] = style[key]; - } - } - } - if (Array.isArray(cont)) { - cont.forEach(function (e) { - DomUtils.html(el, e, true); - }); - } - else { - DomUtils.html(el, cont); - } - return el; - }; - DomUtils.remove = function (element) { - var parentElement = element.parentElement; - if (parentElement) { - parentElement.removeChild(element); - } - return element; - }; - DomUtils.position = function (element) { - var top = 0; - var left = 0; - do { - top += element.offsetTop || 0; - left += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return { - x: left, - y: top, - }; - }; - DomUtils.indexOf = function (element) { - var index = 0; - while (element) { - element = element.previousElementSibling; - index++; - } - return index; - }; - DomUtils.size = function (element) { - return { - height: element.offsetHeight, - width: element.offsetWidth, - }; - }; - DomUtils.serialize = function (form) { - var result = {}; - if (!Checkers.isElement(form)) { - return result; - } - if (form.tagName.toLowerCase() !== "form") { - return result; - } - var elements = DomGet.byTag("input"); - for (var key in elements) { - if (!elements.hasOwnProperty(key)) { - continue; - } - var e = elements[key]; - var name_2 = e.getAttribute("name"); - if (name_2) { - result[name_2] = e.getAttribute("value"); - } - } - return result; - }; - return DomUtils; -}()); -export { DomUtils }; -//# sourceMappingURL=DomUtils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/DomUtils.js.map b/dist/_esm5/utils/DomUtils.js.map deleted file mode 100644 index 5f76e6f4..00000000 --- a/dist/_esm5/utils/DomUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DomUtils.js","sourceRoot":"","sources":["../../../src/utils/DomUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EAAE,MAAM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,KAAK,IAAM,GAAG,IAAI,QAAQ,EAAE;YACxB,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;gBAC/B,SAAS;aACZ;YACD,IAAM,CAAC,GAAY,QAAQ,CAAC,GAAG,CAAC,CAAC;YACjC,IAAM,MAAI,GAAS,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YAC1C,IAAI,MAAI,EAAE;gBACN,MAAM,CAAC,MAAI,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,OAAO,CAAW,CAAC;aACpD;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,eAAC;AAAD,CAAC,AA1QD,IA0QC"} \ No newline at end of file diff --git a/dist/_esm5/utils/FileUtils.js b/dist/_esm5/utils/FileUtils.js deleted file mode 100644 index 7dd00024..00000000 --- a/dist/_esm5/utils/FileUtils.js +++ /dev/null @@ -1,94 +0,0 @@ -import * as fs from "fs"; -import * as path from "path"; -import { joinSingle } from "./string-utils"; -function walk(dir, done) { - var results = []; - fs.readdir(dir, function (err, list) { - if (err) { - return done(err); - } - var pending = list.length; - if (!pending) { - return done(null, results); - } - list.forEach(function (file) { - file = path.resolve(dir, file); - fs.stat(file, function (err1, stat) { - if (stat && stat.isDirectory()) { - walk(file, function (err2, res) { - if (!res) { - return; - } - results.push.apply(results, res); - pending--; - if (!pending) { - done(null, results); - } - }); - } - else { - results.push(file); - pending--; - if (!pending) { - done(null, results); - } - } - }); - }); - }); -} -var FileUtils = (function () { - function FileUtils() { - } - FileUtils.scanDirRecursive = function (dir) { - return new Promise(function (success, reject) { - fs.stat(dir, function (err0, stats) { - if (err0) { - return reject(err0); - } - if (!stats.isDirectory()) { - return reject(dir + " is not directory"); - } - walk(dir, function (err, data) { - if (err) { - return reject(err); - } - success(data); - }); - }); - }); - }; - FileUtils.loadFileJSON = function (url, callback) { - FileUtils.loadFile(url, function (err, data) { return callback(err, JSON.parse(data)); }); - }; - FileUtils.loadFile = function (url, callback, encoding) { - if (encoding === void 0) { encoding = "utf8"; } - fs.readFile(url, encoding, callback); - }; - FileUtils.saveJsonFile = function (data, fileName) { - return FileUtils.saveFile(JSON.stringify(data), fileName); - }; - FileUtils.saveFile = function (data, fileName) { - return new Promise(function (success, reject) { - fs.writeFile(fileName, data, function (err) { - err ? reject(err) : success("The file was saved!"); - }); - }); - }; - FileUtils.removeFile = function (fileName) { - return new Promise(function (success, reject) { - fs.unlink(fileName, function (err) { - err ? reject(err) : success("The file was removed!"); - }); - }); - }; - FileUtils.checkExtension = function (name, extension) { - if (name.endsWith(extension)) { - return name; - } - return joinSingle(name, ".", extension); - }; - return FileUtils; -}()); -export { FileUtils }; -//# sourceMappingURL=FileUtils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/FileUtils.js.map b/dist/_esm5/utils/FileUtils.js.map deleted file mode 100644 index c7a21614..00000000 --- a/dist/_esm5/utils/FileUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileUtils.js","sourceRoot":"","sources":["../../../src/utils/FileUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,SAAS,IAAI,CAAC,GAAW,EAAE,IAA2C;IAClE,IAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,UAAC,GAAiC,EAAE,IAAc;QAC9D,IAAI,GAAG,EAAE;YACL,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;SACpB;QACD,IAAI,OAAO,GAAW,IAAI,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAC9B;QACD,IAAI,CAAC,OAAO,CAAC,UAAC,IAAY;YACtB,IAAI,GAAG,IAAI,CAAC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AAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YACzD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAEa,wBAAc,GAA5B,UAA6B,IAAY,EAAE,SAAiB;QACxD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QAED,OAAO,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IACL,gBAAC;AAAD,CAAC,AAvDD,IAuDC"} \ No newline at end of file diff --git a/dist/_esm5/utils/Runtime.js b/dist/_esm5/utils/Runtime.js deleted file mode 100644 index 64018a55..00000000 --- a/dist/_esm5/utils/Runtime.js +++ /dev/null @@ -1,78 +0,0 @@ -import { NullPointerException, WrongParameterException, WrongTypeException } from "gtools/errors"; -import * as Checkers from "../validators/misc-validators"; -var useRuntimeCheckers = true; -var Runtime = (function () { - function Runtime() { - } - Runtime.useRuntimeExceptions = function (value) { - useRuntimeCheckers = value; - }; - Runtime.notNull = function (obj) { - if (useRuntimeCheckers && obj === null) { - throw new NullPointerException(); - } - return obj; - }; - Runtime.exists = function (obj) { - if (useRuntimeCheckers && (typeof obj !== "boolean" && !obj)) { - throw new Error("Variable "); - } - return obj; - }; - Runtime.isArray = function (obj) { - if (useRuntimeCheckers && !Checkers.isArray(obj)) { - throw new WrongTypeException("Array"); - } - return obj; - }; - Runtime.isString = function (obj) { - if (useRuntimeCheckers && !Checkers.isString(obj)) { - throw new WrongTypeException("string"); - } - return obj; - }; - Runtime.isNumber = function (obj) { - if (useRuntimeCheckers && !Checkers.isNumber(obj)) { - throw new WrongTypeException("number"); - } - return obj; - }; - Runtime.isFunction = function (obj) { - if (useRuntimeCheckers && !Checkers.isFunction(obj)) { - throw new WrongTypeException("function"); - } - return obj; - }; - Runtime.checkFunction = function (func, args, thisArg) { - if (args === void 0) { args = []; } - if (thisArg === void 0) { thisArg = this; } - try { - func.apply(thisArg, args); - return true; - } - catch (e) { - return false; - } - }; - Runtime.isBoolean = function (obj) { - if (useRuntimeCheckers && !Checkers.isBoolean(obj)) { - throw new WrongTypeException("boolean"); - } - return obj; - }; - Runtime.min = function (obj, value) { - if (useRuntimeCheckers && obj <= value) { - throw new WrongParameterException("Number " + obj + " must be greater than " + value); - } - return obj; - }; - Runtime.max = function (obj, value) { - if (useRuntimeCheckers && obj >= value) { - throw new WrongParameterException("Number " + obj + " must be lower than " + value); - } - return obj; - }; - return Runtime; -}()); -export { Runtime }; -//# sourceMappingURL=Runtime.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/Runtime.js.map b/dist/_esm5/utils/Runtime.js.map deleted file mode 100644 index b330c4ac..00000000 --- a/dist/_esm5/utils/Runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../src/utils/Runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,IAAI,kBAAkB,GAAG,IAAI,CAAC;AAE9B;IAAA;IAwFA,CAAC;IAvFiB,4BAAoB,GAAlC,UAAmC,KAAc;QAC7C,kBAAkB,GAAG,KAAK,CAAC;IAC/B,CAAC;IAEa,eAAO,GAArB,UAAyB,GAAM;QAC3B,IAAI,kBAAkB,IAAI,GAAG,KAAK,IAAI,EAAE;YACpC,MAAM,IAAI,oBAAoB,EAAE,CAAC;SACpC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,cAAM,GAApB,UAAwB,GAAM;QAC1B,IAAI,kBAAkB,IAAI,CAAC,OAAO,GAAG,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,EAAE;YAC1D,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;SAChC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,eAAO,GAArB,UA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;SAC3C;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,WAAG,GAAjB,UAAkB,GAAW,EAAE,KAAa;QACxC,IAAI,kBAAkB,IAAI,GAAG,IAAI,KAAK,EAAE;YACpC,MAAM,IAAI,uBAAuB,CAAC,YAAU,GAAG,+BAA0B,KAAO,CAAC,CAAC;SACrF;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,WAAG,GAAjB,UAAkB,GAAW,EAAE,KAAa;QACxC,IAAI,kBAAkB,IAAI,GAAG,IAAI,KAAK,EAAE;YACpC,MAAM,IAAI,uBAAuB,CAAC,YAAU,GAAG,6BAAwB,KAAO,CAAC,CAAC;SACnF;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IACL,cAAC;AAAD,CAAC,AAxFD,IAwFC"} \ No newline at end of file diff --git a/dist/_esm5/utils/analytics-utils.js b/dist/_esm5/utils/analytics-utils.js deleted file mode 100644 index 57887a52..00000000 --- a/dist/_esm5/utils/analytics-utils.js +++ /dev/null @@ -1,40 +0,0 @@ -export function isIE() { - return navigator.userAgent.indexOf("MSIE") >= 0; -} -export function isIE6() { - return navigator.userAgent.indexOf("MSIE 6") >= 0; -} -export function isIE11() { - return !!navigator.userAgent.match(/Trident\/7\./); -} -export function isEdge() { - return !!navigator.userAgent.match(/Edge\//); -} -export function isSafari() { - return navigator.userAgent.indexOf("AppleWebKit/") >= 0 && - navigator.userAgent.indexOf("Chrome/") < 0 && - navigator.userAgent.indexOf("Edge/") < 0; -} -export function isIOS() { - return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g); -} -export function isChromeApp() { - var _a, _b, _c; - return (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.chrome) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.runtime; -} -export function isWin() { - return navigator.appVersion.indexOf("Win") > 0; -} -export function isMac() { - return navigator.appVersion.indexOf("Mac") > 0; -} -export function isChromeOs() { - return /\bCrOS\b/.test(navigator.userAgent); -} -export function isTouch() { - return "ontouchstart" in document.documentElement; -} -export function hasMouse() { - return "onmousemove" in document.documentElement; -} -//# sourceMappingURL=analytics-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/analytics-utils.js.map b/dist/_esm5/utils/analytics-utils.js.map deleted file mode 100644 index f5bd1d5e..00000000 --- a/dist/_esm5/utils/analytics-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analytics-utils.js","sourceRoot":"","sources":["../../../src/utils/analytics-utils.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,IAAI;IAChB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAKD,MAAM,UAAU,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AACvD,CAAC;AAKD,MAAM,UAAU,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,QAAQ;IACpB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC;QACnD,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;QAC1C,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAC9D,CAAC;AAKD,MAAM,UAAU,WAAW;;IACvB,yBAAQ,MAAc,0CAAE,MAAM,0CAAE,GAAG,0CAAE,OAAO,CAAC;AACjD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAKD,MAAM,UAAU,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAKD,MAAM,UAAU,UAAU;IACtB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAKD,MAAM,UAAU,OAAO;IACnB,OAAO,cAAc,IAAI,QAAQ,CAAC,eAAe,CAAC;AACtD,CAAC;AAKD,MAAM,UAAU,QAAQ;IACpB,OAAO,aAAa,IAAI,QAAQ,CAAC,eAAe,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/array-utils.js b/dist/_esm5/utils/array-utils.js deleted file mode 100644 index 2065bf7a..00000000 --- a/dist/_esm5/utils/array-utils.js +++ /dev/null @@ -1,191 +0,0 @@ -export function where(array, condition) { - if (!Array.isArray(array)) { - return array; - } - if (!condition || typeof condition !== "object") { - return []; - } - var result = []; - var conditionEntries = Object.entries(condition); - array.forEach(function (e) { - var add = conditionEntries.some(function (conditionEntry) { return e[conditionEntry[0]] === conditionEntry[1]; }); - if (add) { - result[result.length] = e; - } - }); - return result; -} -export function compareArrays(prev, act, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - if (prev.length !== act.length) { - return false; - } - for (var i = 0; i < prev.length; i++) { - if (!comparator(prev[i], act[i])) { - return false; - } - } - return true; -} -export function groupByLast(arr, key) { - return arr.reduce(function (acc, curr) { - var _a; - return Object.assign({}, acc, (_a = {}, _a[curr[key]] = curr, _a)); - }, {}); -} -export function analyzeArrayChanges(prev, act, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - var existingPrevIndices = {}; - var toRemove = []; - var toAdd = []; - act.forEach(function (e) { - var prevIndex = prev.findIndex(function (item) { return comparator(e, item); }); - if (prevIndex < 0) { - toAdd.push(e); - } - else { - existingPrevIndices[prevIndex] = true; - } - }); - prev.forEach(function (e, i) { - if (i in existingPrevIndices) { - return; - } - toRemove.push(e); - }); - return { toAdd: toAdd, toRemove: toRemove }; -} -export function subArray(array, minIndex, maxIndex) { - if (minIndex === void 0) { minIndex = 0; } - if (maxIndex === void 0) { maxIndex = array.length - 1; } - if (!Array.isArray(array)) { - return array; - } - var result = []; - var final = array.length < maxIndex ? array.length - 1 : maxIndex; - for (var i = minIndex; i <= final; i++) { - result[result.length] = array[i]; - } - return result; -} -export function max(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a > b ? a : b; }); -} -export function min(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a < b ? a : b; }); -} -export function sum(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a + b; }); -} -export function avg(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a + b; }) / array.length; -} -export function join(array, delimiter, prefix, postfix) { - if (prefix === void 0) { prefix = ""; } - if (postfix === void 0) { postfix = ""; } - if (!Array.isArray(array)) { - return prefix + array + postfix; - } - return prefix + array.join(delimiter) + postfix; -} -export function getLast(array) { - if (!Array.isArray(array)) { - return array; - } - return array[array.length - 1]; -} -export function getRandomItem(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return null; - } - return array[Math.floor(Math.random() * array.length)]; -} -export function getNRandom(args, count) { - if (!Array.isArray(args)) { - return args; - } - if (args.length === 0 || count === 0) { - return []; - } - if (args.length <= count) { - return args; - } - if (Math.random() < 2) { - throw new Error("Not implemented because of infinity loop"); - } - var result = new Set(); - while (result.size <= count) { - var randomItem = getRandomItem(args); - if (randomItem) { - result.add(randomItem); - } - } - return Array.from(result); -} -export function makeUnique(array) { - if (!Array.isArray(array)) { - return array; - } - return Array.from(new Set(array)); -} -export function createFilledArray(length, provider) { - if (typeof provider === "function") { - return new Array(length).fill(null).map(function () { return provider(); }); - } - return new Array(length).fill(provider); -} -export function eachOther(arr, callback) { - arr.forEach(function (e, i) { - for (var j = i + 1; j < arr.length; j++) { - callback(e, arr[j]); - } - }); -} -export function mergeArrays2(arr1, arr2, callback) { - var result = []; - arr1.forEach(function (item1) { - arr2.forEach(function (item2) { - result.push(callback(item1, item2)); - }); - }); - return result; -} -export function mergeArrays3(arr1, arr2, arr3, callback) { - var result = []; - arr1.forEach(function (item1) { - arr2.forEach(function (item2) { - arr3.forEach(function (item3) { - result.push(callback(item1, item2, item3)); - }); - }); - }); - return result; -} -//# sourceMappingURL=array-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/array-utils.js.map b/dist/_esm5/utils/array-utils.js.map deleted file mode 100644 index 05a66c02..00000000 --- a/dist/_esm5/utils/array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-utils.js","sourceRoot":"","sources":["../../../src/utils/array-utils.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,KAAK,CAAoC,KAAU,EAAE,SAAqB;IACtF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QAC7C,OAAO,EAAE,CAAC;KACb;IAED,IAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEnD,KAAK,CAAC,OAAO,CAAC,UAAC,CAAC;QACZ,IAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,UAAC,cAAc,IAAK,OAAA,CAAC,CAAC,cAAc,CAAC,CAAC,CAAY,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,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACrC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACvB;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAGD,MAAM,UAAU,YAAY,CAAU,IAAS,EAAE,IAAS,EAAE,QAAmC;IAC3F,IAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK;QACf,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK;YACf,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,YAAY,CAAa,IAAS,EAAE,IAAS,EAAE,IAAS,EAAE,QAA6C;IACnH,IAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK;QACf,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK;YACf,IAAI,CAAC,OAAO,CAAC,UAAC,KAAK;gBACf,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;YAC/C,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/coerce-util.js b/dist/_esm5/utils/coerce-util.js deleted file mode 100644 index f90c306d..00000000 --- a/dist/_esm5/utils/coerce-util.js +++ /dev/null @@ -1,4 +0,0 @@ -export function coerceBooleanProperty(value) { - return value !== null && "" + value !== "false"; -} -//# sourceMappingURL=coerce-util.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/coerce-util.js.map b/dist/_esm5/utils/coerce-util.js.map deleted file mode 100644 index 68165468..00000000 --- a/dist/_esm5/utils/coerce-util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"coerce-util.js","sourceRoot":"","sources":["../../../src/utils/coerce-util.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAI,KAAQ;IAC7C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAG,KAAO,KAAK,OAAO,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/color-utils.js b/dist/_esm5/utils/color-utils.js deleted file mode 100644 index 7366ad0f..00000000 --- a/dist/_esm5/utils/color-utils.js +++ /dev/null @@ -1,92 +0,0 @@ -import { clamp } from "./math-utils"; -var colors = { - black: [0, 0, 0], - white: [255, 255, 255], - red: [255, 0, 0], - green: [0, 255, 0], - blue: [0, 0, 255], -}; -export function lerpColor(fromColor, toColor, progress) { - var red = progress * fromColor[0] + (1 - progress) * toColor[0]; - var green = progress * fromColor[1] + (1 - progress) * toColor[1]; - var blue = progress * fromColor[2] + (1 - progress) * toColor[2]; - var alpha = progress * fromColor[3] + (1 - progress) * toColor[3]; - return [ - clamp(red, 0, 255), - clamp(green, 0, 255), - clamp(blue, 0, 255), - clamp(alpha, 0, 255), - ]; -} -export function lerpHexaColor(a, b, amount) { - var ah = +a.replace("#", "0x"); - var ar = ah >> 16; - var ag = ah >> 8 & 0xFF; - var ab = ah & 0xFF; - var bh = +b.replace("#", "0x"); - var br = bh >> 16; - var bg = bh >> 8 & 0xFF; - var bb = bh & 0xFF; - var rr = ar + amount * (br - ar); - var rg = ag + amount * (bg - ag); - var rb = ab + amount * (bb - ab); - return "#" + ((1 << 24) + (rr << 16) + (rg << 8) + rb | 0).toString(16).slice(1); -} -export function hex2rgb(color) { - var num = parseInt(color.slice(1), 16); - return [num >> 16, num >> 8 & 0x00FF, num & 0x0000FF]; -} -export function shadeColor(color, percent) { - var num = hex2rgb(color); - var amt = Math.round(2.55 * percent); - var R = num[0] + amt; - var G = num[1] + amt; - var B = num[2] + amt; - return rgb2hex(R, G, B); -} -export function rgb2hex(R, G, B) { - return "#" + (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + - (G < 255 ? G < 1 ? 0 : G : 255) * 0x100 + - (B < 255 ? B < 1 ? 0 : B : 255)).toString(16).slice(1); -} -export function int2hex(val) { - var value = val.toString(16); - var result = "000000".substr(0, 6 - value.length) + value; - return "#" + result.toUpperCase(); -} -export function int2rgb(val) { - return [ - val >> 16, - val >> 8 & 0xFF, - val & 0xFF, - ]; -} -export function hex2int(val) { - return parseInt(val, 16); -} -export function rgb2int(R, G, B) { - return R << 16 | G << 8 & 0xFFFF | B; -} -export function parseColor(color) { - if (colors[color]) { - return colors[color]; - } - var hexaMatch = color.match(/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/); - if (hexaMatch) { - return [ - parseInt(hexaMatch[1], 16), - parseInt(hexaMatch[2], 16), - parseInt(hexaMatch[3], 16), - ]; - } - var rgbaMath = color.match(/rgba?\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3})( *, *\d*.?\d*)\)/); - if (rgbaMath) { - return [ - parseInt(rgbaMath[1], 10), - parseInt(rgbaMath[2], 10), - parseInt(rgbaMath[3], 10), - ]; - } - throw new Error("Cannot parse color: " + color); -} -//# sourceMappingURL=color-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/color-utils.js.map b/dist/_esm5/utils/color-utils.js.map deleted file mode 100644 index a4b550ea..00000000 --- a/dist/_esm5/utils/color-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color-utils.js","sourceRoot":"","sources":["../../../src/utils/color-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAOrC,IAAM,MAAM,GAAkD;IAC1D,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChB,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C;KACL;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/date-utils.js b/dist/_esm5/utils/date-utils.js deleted file mode 100644 index 5ac52ec4..00000000 --- a/dist/_esm5/utils/date-utils.js +++ /dev/null @@ -1,10 +0,0 @@ -export function isValidDate(obj) { - try { - var date = new Date(obj); - return !isNaN(date.getTime()); - } - catch (e) { - return false; - } -} -//# sourceMappingURL=date-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/date-utils.js.map b/dist/_esm5/utils/date-utils.js.map deleted file mode 100644 index e9ffdcb5..00000000 --- a/dist/_esm5/utils/date-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAmC,GAAM;IAChE,IAAI;QACA,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAE3B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE;QACR,OAAO,KAAK,CAAC;KAChB;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/html-utils.js b/dist/_esm5/utils/html-utils.js deleted file mode 100644 index 39c71c58..00000000 --- a/dist/_esm5/utils/html-utils.js +++ /dev/null @@ -1,154 +0,0 @@ -import { __spreadArrays } from "tslib"; -import { ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS } from "../constants"; -export function elementToString(element) { - var classes = Array.from(element.classList).join("."); - var id = element.id ? "#" + element.id : ""; - var parent = element.parentElement ? elementToString(element.parentElement) + " > " : ""; - return parent + element.localName + id + (classes ? "." + classes : ""); -} -export function dragElement(element, headerSelector) { - if (headerSelector === void 0) { headerSelector = ".header"; } - var pos1 = 0; - var pos2 = 0; - var pos3 = 0; - var pos4 = 0; - var elementDrag = function (e) { - e = e || window.event; - e.preventDefault(); - pos1 = pos3 - e.clientX; - pos2 = pos4 - e.clientY; - pos3 = e.clientX; - pos4 = e.clientY; - element.style.top = element.offsetTop - pos2 + "px"; - element.style.left = element.offsetLeft - pos1 + "px"; - }; - var dragMouseDown = function (e) { - e = e || window.event; - e.preventDefault(); - pos3 = e.clientX; - pos4 = e.clientY; - document.onpointerup = closeDragElement; - document.onpointermove = elementDrag; - }; - var header = element.querySelector(headerSelector); - if (header) { - header.addEventListener("pointerdown", dragMouseDown); - } - else { - element.addEventListener("pointerdown", dragMouseDown); - } - function closeDragElement() { - document.onpointerup = null; - document.onpointermove = null; - } - return { - clear: function () { - if (header) { - header.removeEventListener("pointerdown", dragMouseDown); - } - else { - element.removeEventListener("pointerdown", dragMouseDown); - } - }, - }; -} -export function CreateImage(options) { - var result = CreateElement("img", options); - if (ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS) { - result.crossOrigin = "Anonymous"; - } - return result; -} -export function createCheckbox(label, onChange, checked) { - if (checked === void 0) { checked = false; } - var inputElement = CreateElement("input", { - checked: checked, - type: "checkbox", - onChange: function () { return onChange(inputElement.checked); }, - }); - return CreateElement("label", { - className: "checkbox-container", - children: [label, inputElement, CreateElement("span", { className: "checkmark" })], - }); -} -export function CreateElement(type, options) { - var result = document.createElement(type); - if (!options) { - return result; - } - Object.entries(options).forEach(function (entry) { - switch (entry[0]) { - case "className": - result.className = entry[1]; - break; - case "onChange": - result.addEventListener("change", entry[1]); - break; - case "onClick": - result.addEventListener("click", entry[1]); - break; - case "checked": - result.checked = entry[1]; - break; - case "styles": - Object.entries(entry[1]).forEach(function (styleEntry) { - result.style[styleEntry[0]] = styleEntry[1]; - }); - break; - case "children": - if (Array.isArray(entry[1])) { - result.append.apply(result, entry[1]); - } - else { - result.append(entry[1]); - } - break; - case "content": - if (entry[1]) { - result.innerHTML = entry[1]; - } - break; - default: - result.setAttribute(entry[0], entry[1]); - } - }); - return result; -} -export function chooseColorUsingDefaultInput(color, onInput) { - if (color === void 0) { color = "#000000"; } - return new Promise(function (success) { - var input = CreateElement("input", { - type: "color", - className: "hidden", - value: color, - onInput: typeof onInput === "function" ? function () { return onInput(input.value); } : undefined, - onChange: function () { - success(input.value); - document.body.removeChild(input); - }, - }); - document.body.appendChild(input); - input.click(); - }); -} -export function getOrCreate(parent, type) { - var classes = []; - for (var _i = 2; _i < arguments.length; _i++) { - classes[_i - 2] = arguments[_i]; - } - var result = parent.querySelector(type + "." + classes.join(".")); - if (result) { - return result; - } - return CreateElement(type, { className: classes.join(" ") }); -} -export function getOrCreateAndAppend(parent, type) { - var classes = []; - for (var _i = 2; _i < arguments.length; _i++) { - classes[_i - 2] = arguments[_i]; - } - var result = getOrCreate.apply(void 0, __spreadArrays([parent, type], classes)); - parent.appendChild(result); - return result; -} -//# sourceMappingURL=html-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/html-utils.js.map b/dist/_esm5/utils/html-utils.js.map deleted file mode 100644 index 37b86f8b..00000000 --- a/dist/_esm5/utils/html-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html-utils.js","sourceRoot":"","sources":["../../../src/utils/html-utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,cAAc,CAAC;AAuBnE,MAAM,UAAU,eAAe,CAAC,OAAoB;IAChD,IAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,IAAM,EAAE,GAAQ,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,IAAM,MAAM,GAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5F,OAAO,M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IAC9F,IAAI,MAAM,EAAE;QACR,OAAO,MAAM,CAAC;KACjB;IAED,OAAO,aAAa,CAAC,IAAI,EAAE,EAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAwC,MAAmB,EAAE,IAAO;IAAE,iBAAoB;SAApB,UAAoB,EAApB,qBAAoB,EAApB,IAAoB;QAApB,gCAAoB;;IAC1H,IAAM,MAAM,GAAG,WAAW,+BAAI,MAAM,EAAE,IAAI,GAAK,OAAO,EAAC,CAAC;IACxD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/image-utils.js b/dist/_esm5/utils/image-utils.js deleted file mode 100644 index 0f42b545..00000000 --- a/dist/_esm5/utils/image-utils.js +++ /dev/null @@ -1,42 +0,0 @@ -import { CreateElement, CreateImage } from "./html-utils"; -export function serializeImage(image) { - var canvas = CreateElement("canvas", { - width: image.width, - height: image.height, - }); - canvas.getContext("2d").drawImage(image, 0, 0); - return canvas.toDataURL("image/png"); -} -export function deserializeImage(image) { - return CreateImage({ - src: image, - }); -} -export function createImage(callback, width, height) { - if (height === void 0) { height = width; } - var canvas = CreateElement("canvas", { - width: width, - height: height, - }); - callback(canvas.getContext("2d")); - return canvas; -} -export function imageAsPromise(src) { - return new Promise(function (success, reject) { - var image = document.createElement("img"); - var callback = function (e) { - image.dataset.hasError = e ? "true" : "false"; - if (e.type === "error") { - reject(e); - return console.error("Error during loading image ", src); - } - image.removeEventListener("load", callback); - image.removeEventListener("error", callback); - success(image); - }; - image.addEventListener("load", callback); - image.addEventListener("error", callback); - image.src = src; - }); -} -//# sourceMappingURL=image-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/image-utils.js.map b/dist/_esm5/utils/image-utils.js.map deleted file mode 100644 index 8b6c95de..00000000 --- a/dist/_esm5/utils/image-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"image-utils.js","sourceRoot":"","sources":["../../../src/utils/image-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,UAAU,cAAc,CAAC,KAAuB;IAClD,IAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,EAAE;QACnC,KAAK,EAAG,KAAK,CAAC,KAAK;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;KACvB,CAAC,CAAC;IACF,MAAM,CAAC,UAAU,CAAC,IAAI,CAA8B,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7E,OAAO,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC1C,OAAO,WAAW,CAAC;QACf,GAAG,EAAE,KAAK;KACb,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,QAAqD,EAAE,KAAa,EAAE,MAAc;IAAd,uBAAA,EAAA,cAAc;IAC5G,IAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,EAAE;QACnC,KAAK,OAAA;QACL,MAAM,QAAA;KACT,CAAC,CAAC;IACH,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAA6B,CAAC,CAAC;IAE9D,OAAO,MAAM,CAAC;AAElB,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW;IACtC,OAAO,IAAI,OAAO,CAAmB,UAAC,OAAO,EAAE,MAAM;QACjD,IAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC5C,IAAM,QAAQ,GAAG,UAAC,CAAM;YACpB,KAAK,CAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;YAC9C,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE;gBACpB,MAAM,CAAC,CAAC,CAAC,CAAC;gBAEV,OAAO,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;aAC5D;YACD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC5C,KAAK,CAAC,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC7C,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC;QACF,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACzC,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE1C,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/index.js b/dist/_esm5/utils/index.js deleted file mode 100644 index 10b8e93a..00000000 --- a/dist/_esm5/utils/index.js +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./analytics-utils"; -export * from "./array-utils"; -export * from "./coerce-util"; -export * from "./color-utils"; -export * from "./date-utils"; -export * from "./html-utils"; -export * from "./image-utils"; -export * from "./math-utils"; -export * from "./misc-utils"; -export * from "./time-utils"; -export * from "./sorted-array-utils"; -export * from "./input-utils"; -export * from "./object-utils"; -export * from "./parser-utils"; -export * from "./process-utils"; -export * from "./reflection-utils"; -export * from "./random-utils"; -export * from "./string-utils"; -export * from "./svg-utils"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/index.js.map b/dist/_esm5/utils/index.js.map deleted file mode 100644 index 2e93e94a..00000000 --- a/dist/_esm5/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AAKrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/input-utils.js b/dist/_esm5/utils/input-utils.js deleted file mode 100644 index db161902..00000000 --- a/dist/_esm5/utils/input-utils.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Button } from "../enums"; -export function getButtonFromEvent(event) { - return getButtonFromEventButtons(event.button); -} -export function getButtonFromEventButtons(button) { - if (button === 0) { - return Button.LEFT; - } - if (button === 1) { - return Button.MIDDLE; - } - if (button === 2) { - return Button.RIGHT; - } -} -export function compareEventKey(event, key) { - return event.code === key; -} -//# sourceMappingURL=input-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/input-utils.js.map b/dist/_esm5/utils/input-utils.js.map deleted file mode 100644 index 526a8072..00000000 --- a/dist/_esm5/utils/input-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"input-utils.js","sourceRoot":"","sources":["../../../src/utils/input-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AAExC,MAAM,UAAU,kBAAkB,CAAC,KAAiB;IAChD,OAAO,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,MAA4B;IAClE,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,IAAI,CAAC;KACtB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,MAAM,CAAC;KACxB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,MAAM,CAAC,KAAK,CAAC;KACvB;AACL,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAoB,EAAE,GAAS;IAC3D,OAAO,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/math-utils.js b/dist/_esm5/utils/math-utils.js deleted file mode 100644 index 1bdcb4ba..00000000 --- a/dist/_esm5/utils/math-utils.js +++ /dev/null @@ -1,76 +0,0 @@ -import * as Random from "./random-utils"; -export function pad(num, size) { - var s = "00000000000000" + num; - return s.substr(s.length - size); -} -export function roundToDecimals(num, decimals, type) { - if (decimals === void 0) { decimals = 2; } - if (type === void 0) { type = "round"; } - var divider = parseInt(1 + new Array(decimals + 1).join("0"), 10); - return (Math[type](num * divider) / divider).toFixed(decimals); -} -export function hash2Numbers(x, y) { - var xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - var yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - return (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; -} -export function hash3Numbers(x, y, z) { - var xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - var yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - var zFinal = z >= 0 ? z * 2 : -z * 2 - 1; - var xyHash = (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; - return (xyHash + zFinal) * (xyHash + zFinal + 1) / 2 + zFinal; -} -export function clamp(value, min, max) { - return Math.max(min, Math.min(value, max)); -} -export function binomialCoefficient(n, k) { - var r = 1; - if (k > n) { - return 0; - } - for (var d = 1; d <= k; d++) { - r *= n; - n--; - r /= d; - } - return r; -} -export function lerp(a, b, val) { - return b * val + (1 - val) * a; -} -export function log2i(value) { - var r = 0; - while ((value >>= 1) > 0) { - r++; - } - return r; -} -export function lamp(min, max, scale) { - return clamp((max - min) * scale + min, min, max); -} -export function randomInt(min, max) { - return Random.randomIntBetween(min, max); -} -export function random(min, max) { - return Random.randomFloatBetween(min, max); -} -export function average(args) { - var sum = 0; - for (var _i = 0, args_1 = args; _i < args_1.length; _i++) { - var item = args_1[_i]; - sum += item; - } - return sum / args.length; -} -export function isPowerOf2(value) { - return (value & value - 1) === 0; -} -export function getDiff(num1, num2) { - return Math.abs(num1 - num2); -} -var ratio = 180 / Math.PI; -export function toDegrees(radians) { - return radians * ratio; -} -//# sourceMappingURL=math-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/math-utils.js.map b/dist/_esm5/utils/math-utils.js.map deleted file mode 100644 index 6e59d338..00000000 --- a/dist/_esm5/utils/math-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"math-utils.js","sourceRoot":"","sources":["../../../src/utils/math-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,IAAY;IACzC,IAAM,CAAC,GAAG,gBAAgB,GAAG,GAAG,CAAC;IAEjC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAW,EAAE,QAAY,EAAE,IAA0C;IAAxD,yBAAA,EAAA,YAAY;IAAE,qBAAA,EAAA,cAA0C;IACjG,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAEpE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,OAAO,C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MAAM,UAAU,MAAM,CAAC,GAAW,EAAE,GAAW;IAC3C,OAAO,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAc;IAClC,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAmB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;QAApB,IAAM,IAAI,aAAA;QACX,GAAG,IAAI,IAAI,CAAC;KACf;IAED,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAa;IACpC,OAAO,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAY,EAAE,IAAY;IAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,IAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;AAE5B,MAAM,UAAU,SAAS,CAAC,OAAe;IACrC,OAAO,OAAO,GAAG,KAAK,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/misc-utils.js b/dist/_esm5/utils/misc-utils.js deleted file mode 100644 index 06e9a583..00000000 --- a/dist/_esm5/utils/misc-utils.js +++ /dev/null @@ -1,132 +0,0 @@ -export function parseCookies(cookies) { - var list = {}; - var data = cookies ? cookies.toString() - .split(";") : []; - data.forEach(function (cookie) { - var parts = cookie.split("="); - var shiftPart = parts.shift(); - if (shiftPart) { - list[shiftPart.trim()] = decodeURI(parts.join("=")); - } - }); - return list; -} -export function isIn(obj) { - var data = []; - for (var _i = 1; _i < arguments.length; _i++) { - data[_i - 1] = arguments[_i]; - } - if (Array.isArray(data[0])) { - if (data[0].indexOf(obj) >= 0) { - return true; - } - } - else if (data.indexOf(obj) >= 0) { - return true; - } - return false; -} -export function parseJSONWithComments(content) { - return JSON.parse(content.replace(/\/\/.*\n/g, "")); -} -export function setCookie(name, value, days) { - var d = new Date(); - d.setTime(d.getTime() + days * 24 * 60 * 60 * 1000); - var finalCookies = name + "=" + value + ";expires=" + d.toUTCString(); - if (typeof document !== "undefined") { - document.cookie = finalCookies; - } - return name + "=" + value; -} -export function getCookie(cname, source) { - if (source === void 0) { source = typeof document !== "undefined" ? document.cookie : ""; } - var name = cname + "="; - var ca = source.split(";"); - for (var _i = 0, ca_1 = ca; _i < ca_1.length; _i++) { - var c = ca_1[_i]; - while (c.charAt(0) === " ") { - c = c.substring(1); - } - if (c.indexOf(name) === 0) { - return c.substring(name.length, c.length); - } - } - return ""; -} -export function parseParams(query, separator, delimiter) { - if (query === void 0) { query = typeof window !== "undefined" ? window.location.search.substring(1) : ""; } - if (separator === void 0) { separator = "&"; } - if (delimiter === void 0) { delimiter = "="; } - var queryString = {}; - var vars = query.split(separator); - for (var _i = 0, vars_1 = vars; _i < vars_1.length; _i++) { - var pair = vars_1[_i]; - var _a = pair.split(delimiter), key = _a[0], value = _a[1]; - if (typeof queryString[key] === "undefined") { - queryString[key] = decodeURIComponent(value); - } - else if (typeof queryString[key] === "string") { - queryString[key] = [queryString[key], decodeURIComponent(value)]; - } - else { - queryString[key].push(decodeURIComponent(value)); - } - } - return queryString; -} -export function objectToQueryParams(obj) { - var result = ""; - for (var objKey in obj) { - if (obj.hasOwnProperty(objKey)) { - result += "" + (result.length > 0 ? "&" : "?") + objKey + "=" + obj[objKey]; - } - } - return result; -} -export function serialize(obj) { - for (var key in obj) { - if (obj.hasOwnProperty(key) && typeof obj[key] === "function") { - obj[key] = obj[key].toString(); - } - } - return JSON.stringify(obj); -} -export function parse(obj) { - var result = JSON.parse(obj); - for (var i in result) { - if (!result.hasOwnProperty(i) || - typeof result[i] !== "string" || !(result[i].indexOf("function (") === 0 || - result[i].match(/^\([_a-zA-Z0-9]+( *, *[_a-zA-Z0-9]+)*\) *=>/))) { - continue; - } - try { - eval("result[i] = " + result[i]); - } - catch (e) { - result[i] = e; - } - } - return result; -} -export function map(source, data) { - var destination = {}; - data.forEach(function (item) { - if (item.mapFunction) { - if (item.attrD) { - destination[item.attrD] = item.mapFunction(source[item.attrS]); - } - else { - destination[item.attrS] = item.mapFunction(source[item.attrS]); - } - return; - } - if (item.attrD) { - destination[item.attrD] = source[item.attrS]; - } - else { - destination[item.attrS] = source[item.attrS]; - } - }); - return destination; -} -//# sourceMappingURL=misc-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/misc-utils.js.map b/dist/_esm5/utils/misc-utils.js.map deleted file mode 100644 index 8e311f33..00000000 --- a/dist/_esm5/utils/misc-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-utils.js","sourceRoot":"","sources":["../../../src/utils/misc-utils.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,YAAY,CAAC,OAAe;IACxC,IAAM,IAAI,GAAc,EAAE,CAAC;IAC3B,IAAM,IAAI,GAAc,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE;SAC/C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,UAAC,MAAM;QAChB,IAAM,KAAK,GAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,IAAM,SAAS,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;QAChC,IAAI,SAAS,EAAE;YACX,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACvD;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AAChB,CAAC;AAcD,MAAM,UAAU,IAAI,CAAI,GAAM;IAAE,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,6BAAkB;;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,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC,EACrE;YACE,SAAS;SACZ;QACD,IAAI;YAEA,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;SACpC;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACjB;KACJ;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,GAAG,CAAiB,MAAS,EAAE,IAA2E;IACtH,IAAM,WAAW,GAAQ,EAAE,CAAC;IAE5B,IAAI,CAAC,OAAO,CAAC,UAAC,IAAI;QACd,IAAI,IAAI,CAAC,WAAW,EAAE;YAClB,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aAClE;iBAAM;gBACH,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aAClE;YAED,OAAO;SACV;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD;aAAM;YACH,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACvB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/net-client-utils.js b/dist/_esm5/utils/net-client-utils.js deleted file mode 100644 index 26c6c118..00000000 --- a/dist/_esm5/utils/net-client-utils.js +++ /dev/null @@ -1,74 +0,0 @@ -import { __awaiter, __generator } from "tslib"; -import { NotBrowserException } from "gtools/errors"; -import { CreateElement, CreateImage } from "./html-utils"; -export function uploadImage() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2, new Promise(function (success, reject) { - var element = CreateElement("input", { - type: "file", - onChange: function (event) { - var reader = new FileReader(); - reader.onload = function () { - success(CreateImage({ - src: reader.result, - })); - }; - reader.onerror = reject; - reader.readAsDataURL(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - })]; - }); - }); -} -export function uploadFile() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2, new Promise(function (success) { - var element = CreateElement("input", { - type: "file", - onChange: function (event) { - var reader = new FileReader(); - reader.onload = function () { - success(reader.result); - }; - reader.readAsText(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - })]; - }); - }); -} -export function clientDownloadFile(text, name) { - var element = CreateElement("a", { - href: "data:text/plain;charset=utf-8," + encodeURIComponent(text), - download: name, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); -} -export function includeFile(file) { - if (typeof document === "undefined") { - throw new NotBrowserException(); - } - var script = document.createElement("script"); - if (!script) { - return; - } - script.src = file; - script.type = "text/javascript"; - script.defer = true; - document.head.appendChild(script); -} -//# sourceMappingURL=net-client-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/net-client-utils.js.map b/dist/_esm5/utils/net-client-utils.js.map deleted file mode 100644 index 3f0cc3d5..00000000 --- a/dist/_esm5/utils/net-client-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-client-utils.js","sourceRoot":"","sources":["../../../src/utils/net-client-utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,UAAgB,WAAW;;;YAC7B,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O,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;oBAC/B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;oBAEnC,OAAO,CAAC,KAAK,EAAE,CAAC;oBAEhB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACvC,CAAC,CAAC,EAAC;;;CACN;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAY,EAAE,IAAY;IACzD,IAAM,OAAO,GAAG,aAAa,CAAC,GAAG,EAAE;QAC/B,IAAI,EAAM,gCAAgC,GAAG,kBAAkB,CAAC,IAAI,CAAC;QACrE,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEnC,OAAO,CAAC,KAAK,EAAE,CAAC;IAEhB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACpC,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACjC,MAAM,IAAI,mBAAmB,EAAE,CAAC;KACnC;IACD,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,IAAI,CAAC,MAAM,EAAE;QACT,OAAO;KACV;IACD,MAAM,CAAC,GAAG,GAAK,IAAI,CAAC;IACpB,MAAM,CAAC,IAAI,GAAI,iBAAiB,CAAC;IACjC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/net-server-utils.js b/dist/_esm5/utils/net-server-utils.js deleted file mode 100644 index 25716859..00000000 --- a/dist/_esm5/utils/net-server-utils.js +++ /dev/null @@ -1,80 +0,0 @@ -import { createWriteStream, readFile } from "fs"; -import { get as HttpGet, request as HttpRequest } from "http"; -import { request as HttpsRequest } from "https"; -export function serverDownloadFile(url, fileName) { - var file = createWriteStream(fileName); - HttpGet(url, function (response) { return response.pipe(file); }); -} -export function getPublicIp() { - var options = { - host: "ipv4bot.whatismyipaddress.com", - port: 80, - path: "/", - }; - return new Promise(function (success, reject) { - HttpGet(options, function (res) { - res.on("data", function (chunk) { - success(String(chunk)); - }); - }).on("error", reject); - }); -} -function tryParseUrl(url) { - if (url instanceof URL) { - return url; - } - try { - return new URL(url.toString()); - } - catch (e) { - return null; - } -} -function processClientRequest(url, req) { - return new Promise(function (success, reject) { - var request = req(url, function (res) { - var data = ""; - res.on("data", function (chunk) { - data += chunk; - }); - res.on("end", function () { - success(data); - }); - }); - request.on("error", function (e) { - reject(e); - }); - request.end(); - }); -} -export function getContent(uri) { - var url = tryParseUrl(uri); - if (url) { - return getContentFromUrl(url); - } - return getContentFromFile(uri); -} -export function getContentFromUrl(url) { - if (url.protocol === "http") { - return processClientRequest(url.href, HttpRequest); - } - if (url.protocol === "https") { - return processClientRequest(url.href, HttpsRequest); - } - throw new Error("Unknown protocol " + url.protocol); -} -export function getContentFromFile(path, encoding) { - if (encoding === void 0) { encoding = "utf8"; } - return new Promise(function (success, reject) { - readFile(path, { encoding: encoding }, function (error, data) { - if (error) { - return reject(error); - } - success(data); - }); - }); -} -export function getContentFrom(url) { - return getContent(url); -} -//# sourceMappingURL=net-server-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/net-server-utils.js.map b/dist/_esm5/utils/net-server-utils.js.map deleted file mode 100644 index 3fb8d613..00000000 --- a/dist/_esm5/utils/net-server-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-server-utils.js","sourceRoot":"","sources":["../../../src/utils/net-server-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,QAAQ,EAAE,MAAM,IAAI,C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I,EAAE,EAAC,QAAQ,UAAA,EAAC,EAAE,UAAC,KAAmC,EAAE,IAAI;YACjE,IAAI,KAAK,EAAE;gBACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;aACxB;YAED,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAMD,MAAM,UAAU,cAAc,CAAC,GAAW;IACtC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/object-utils.js b/dist/_esm5/utils/object-utils.js deleted file mode 100644 index a1e50f94..00000000 --- a/dist/_esm5/utils/object-utils.js +++ /dev/null @@ -1,184 +0,0 @@ -import { __spreadArrays } from "tslib"; -export function without(obj, items) { - return getObjectEntries(obj).filter(function (entry) { return !items.includes(entry.key); }) - .reduce(function (prev, entry) { - prev[entry.key] = entry.value; - return prev; - }, {}); -} -export function deepEqual(objA, objB) { - var _a, _b, _c, _d; - if (typeof objA !== typeof objB) { - return false; - } - if (typeof objA === "object") { - if (!objA || !objB) { - return objA === objB; - } - if (((_b = (_a = objA) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== ((_d = (_c = objB) === null || _c === void 0 ? void 0 : _c.constructor) === null || _d === void 0 ? void 0 : _d.name)) { - return false; - } - var keys = Object.keys(objA); - if (keys.length !== Object.keys(objB).length) { - return false; - } - for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { - var key = keys_1[_i]; - if (!deepEqual(objA[key], objB[key])) { - return false; - } - } - return true; - } - if (typeof objA === "number" && typeof objB === "number") { - if (isNaN(+objA) && isNaN(+objB)) { - return true; - } - } - return objA === objB; -} -export function deepCopy(source) { - var _a, _b; - if (typeof source === "object") { - if (Array.isArray(source)) { - return source.map(function (e) { return deepCopy(e); }); - } - if (((_b = (_a = source) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== "Object") { - throw new Error("This method cannot copy class instances"); - } - var result_1 = {}; - Object.entries(source).forEach(function (_a) { - var key = _a[0], value = _a[1]; - result_1[key] = deepCopy(value); - }); - return result_1; - } - if (typeof source === "function") { - throw new Error("This method cannot copy functions"); - } - return source; -} -export function getOrSetProperty(obj, index, value) { - var result = obj[index]; - if (result) { - return result; - } - obj[index] = value; - return value; -} -export function getObjectEntries(obj) { - var result = []; - for (var objKey in obj) { - if (!obj.hasOwnProperty(objKey)) { - continue; - } - result.push({ - key: objKey, - value: obj[objKey], - }); - } - return result; -} -export function getNestedProperty(object, propertyPath, separator) { - if (separator === void 0) { separator = "."; } - if (typeof propertyPath === "string") { - return getNestedProperty(object, propertyPath.split(separator)); - } - return propertyPath.reduce(function (currentNestedPropertyValue, propertyName) { return currentNestedPropertyValue ? currentNestedPropertyValue[propertyName] : undefined; }, object); -} -export function setNestedProperty(item, key, value) { - if (typeof key === "string") { - return setNestedProperty(item, key.split("."), value); - } - var obj = item; - for (var i = 0; i < key.length - 1; i++) { - obj = obj[key[i]]; - } - obj[key[key.length - 1]] = value; -} -export function createMergedObject(source) { - var updates = []; - for (var _i = 1; _i < arguments.length; _i++) { - updates[_i - 1] = arguments[_i]; - } - return Object.assign.apply(Object, __spreadArrays([{}, source], updates)); -} -export function roughSizeOfObject(object) { - var objectList = []; - var stack = [object]; - var bytes = 0; - while (stack.length) { - var value = stack.pop(); - if (typeof value === "boolean") { - bytes += 4; - } - else if (typeof value === "string") { - bytes += value.length << 1; - } - else if (typeof value === "number") { - bytes += 8; - } - else if (typeof value === "object" && objectList.indexOf(value) === -1) { - objectList.push(value); - for (var key in value) { - if (value.hasOwnProperty(key)) { - stack.push(value[key]); - } - } - } - } - return bytes; -} -export function deepFreeze(o) { - Object.freeze(o); - var oIsFunction = typeof o === "function"; - var hasOwnProp = Object.prototype.hasOwnProperty; - var item = null; - Object.getOwnPropertyNames(o).forEach(function (prop) { - item = o[prop]; - if (hasOwnProp.call(o, prop) && - (oIsFunction ? prop !== "caller" && prop !== "callee" && prop !== "arguments" : true) && - item !== null && (typeof item === "object" || typeof item === "function") - && !Object.isFrozen(item)) { - deepFreeze(item); - } - }); - return o; -} -export function size(object) { - var result = 0; - for (var i in object) { - if (object.hasOwnProperty(i)) { - result++; - } - } - return result; -} -export function isPlain(object) { - for (var index in object) { - if (object.hasOwnProperty(index) && typeof object[index] === "object") { - return false; - } - } - return true; -} -export function toBoolean(value) { - return value !== null && "" + value !== "false"; -} -export function isNotInstance(value) { - return toBoolean(value) && value.constructor.name === "Object"; -} -export function makeFlat(list, propertyPath, separator, skipUndefined) { - if (separator === void 0) { separator = "."; } - if (skipUndefined === void 0) { skipUndefined = false; } - var propertyList = propertyPath.indexOf(separator) >= 0 ? propertyPath.split(separator) : [propertyPath]; - return list.reduce(function (acc, curr) { - var value = propertyList.reduce(function (propVal, propertyName) { return propVal ? propVal[propertyName] : undefined; }, curr); - if (typeof value === "undefined" && skipUndefined) { - return acc; - } - acc.push(value); - return acc; - }, []); -} -//# sourceMappingURL=object-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/object-utils.js.map b/dist/_esm5/utils/object-utils.js.map deleted file mode 100644 index 066f4119..00000000 --- a/dist/_esm5/utils/object-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-utils.js","sourceRoot":"","sources":["../../../src/utils/object-utils.ts"],"names":[],"mappings":";AAEA,MAAM,UAAU,OAAO,CAAoC,GAAM,EAAE,KAAkB;IACjF,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAA1B,CAA0B,CAAC;SAC7C,MAAM,CAAC,UAAC,IAAI,EAAE,KAAK;QAChB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAE9B,OAAO,IAAI,CAAC;IAChB,CAAC,EA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,YAAoB,EAAE,SAAe,EAAE,aAAqB;IAAtC,0BAAA,EAAA,eAAe;IAAE,8BAAA,EAAA,qBAAqB;IAC/F,IAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAE3G,OAAO,IAAI,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI;QACzB,IAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,UAAC,OAAY,EAAE,YAAY,IAAK,OAAA,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,EAA3C,CAA2C,EAAE,IAAI,CAAC,CAAC;QACrH,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,aAAa,EAAE;YAC/C,OAAO,GAAG,CAAC;SACd;QACD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEhB,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAS,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/parser-utils.js b/dist/_esm5/utils/parser-utils.js deleted file mode 100644 index ce207628..00000000 --- a/dist/_esm5/utils/parser-utils.js +++ /dev/null @@ -1,9 +0,0 @@ -export function parseBooleanValue(key) { - if (key.match(/(1|true|yes|ano|áno)/i)) { - return true; - } - if (key.match(/(0|false|no|nie)/i)) { - return false; - } -} -//# sourceMappingURL=parser-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/parser-utils.js.map b/dist/_esm5/utils/parser-utils.js.map deleted file mode 100644 index efcb3dc6..00000000 --- a/dist/_esm5/utils/parser-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-utils.js","sourceRoot":"","sources":["../../../src/utils/parser-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAAC,GAAW;IACzC,IAAI,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC;KACf;IACD,IAAI,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KAChB;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/process-utils.js b/dist/_esm5/utils/process-utils.js deleted file mode 100644 index 7380b135..00000000 --- a/dist/_esm5/utils/process-utils.js +++ /dev/null @@ -1,26 +0,0 @@ -export function isTest() { - return process.env.NODE_ENV === "test"; -} -export function isProd() { - return process.env.NODE_ENV === "production"; -} -export function isDev() { - return process.env.NODE_ENV === "development" || !process.env.NODE_ENV; -} -export function setEnvironment(type) { -} -export function getProcessData() { - return { - memoryUsage: process.memoryUsage(), - cpuUsage: process.cpuUsage(), - upTime: process.uptime(), - version: process.version, - platform: process.platform, - }; -} -export function setDefaultEnvironment() { - if (!process.env.NODE_ENV) { - setEnvironment("development"); - } -} -//# sourceMappingURL=process-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/process-utils.js.map b/dist/_esm5/utils/process-utils.js.map deleted file mode 100644 index 5a1cf67b..00000000 --- a/dist/_esm5/utils/process-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"process-utils.js","sourceRoot":"","sources":["../../../src/utils/process-utils.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,KAAK;IACjB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3E,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,IAA2C;AAE1E,CAAC;AAED,MAAM,UAAU,cAAc;IAC1B,OAAO;QACH,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;QAClC,QAAQ,EAAK,OAAO,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAO,OAAO,CAAC,MAAM,EAAE;QAC7B,OAAO,EAAM,OAAO,CAAC,OAAO;QAC5B,QAAQ,EAAK,OAAO,CAAC,QAAQ;KAChC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB;IACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACvB,cAAc,CAAC,aAAa,CAAC,CAAC;KACjC;AACL,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/random-utils.js b/dist/_esm5/utils/random-utils.js deleted file mode 100644 index ff537e51..00000000 --- a/dist/_esm5/utils/random-utils.js +++ /dev/null @@ -1,17 +0,0 @@ -export function randomFloatBetween(min, max) { - return min + Math.random() * (max - min); -} -export function randomIntBetween(min, max) { - return Math.round(randomFloatBetween(min, max)); -} -export function randomBoolean() { - return Math.random() < 0.5; -} -export function randomItem() { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - return items[Math.floor(Math.random() * items.length)]; -} -//# sourceMappingURL=random-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/random-utils.js.map b/dist/_esm5/utils/random-utils.js.map deleted file mode 100644 index 941ac5dc..00000000 --- a/dist/_esm5/utils/random-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"random-utils.js","sourceRoot":"","sources":["../../../src/utils/random-utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,GAAW;IACvD,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,GAAW;IACrD,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,aAAa;IACzB,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,UAAU;IAAI,eAAa;SAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;QAAb,0BAAa;;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/reflection-utils.js b/dist/_esm5/utils/reflection-utils.js deleted file mode 100644 index 4fc6b24f..00000000 --- a/dist/_esm5/utils/reflection-utils.js +++ /dev/null @@ -1,40 +0,0 @@ -import { __awaiter, __generator, __spreadArrays } from "tslib"; -export function createClass(name, args) { - var temp = Object.create(name.prototype); - name.apply(temp, args); - return temp; -} -export function createInstance(type) { - var params = []; - for (var _i = 1; _i < arguments.length; _i++) { - params[_i - 1] = arguments[_i]; - } - return new (type.bind.apply(type, __spreadArrays([void 0], params)))(); -} -export function callFirstFunction() { - var functions = []; - for (var _i = 0; _i < arguments.length; _i++) { - functions[_i] = arguments[_i]; - } - return __awaiter(this, void 0, void 0, function () { - var _a, functions_1, func; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _a = 0, functions_1 = functions; - _b.label = 1; - case 1: - if (!(_a < functions_1.length)) return [3, 4]; - func = functions_1[_a]; - if (!(typeof func === "function")) return [3, 3]; - return [4, func()]; - case 2: return [2, _b.sent()]; - case 3: - _a++; - return [3, 1]; - case 4: return [2]; - } - }); - }); -} -//# sourceMappingURL=reflection-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/reflection-utils.js.map b/dist/_esm5/utils/reflection-utils.js.map deleted file mode 100644 index bec83254..00000000 --- a/dist/_esm5/utils/reflection-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reflection-utils.js","sourceRoot":"","sources":["../../../src/utils/reflection-utils.ts"],"names":[],"mappings":";AAOA,MAAM,UAAU,WAAW,CAAC,IAAS,EAAE,IAAW;IAC9C,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEvB,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,MAAM,UAAU,cAAc,CAA0C,IAAO;IAAE,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,+BAAmC;;IAChH,YAAW,IAAI,YAAJ,IAAI,2BAAI,MAAM,MAAE;AAC/B,CAAC;AAED,MAAM,UAAgB,iBAAiB;IAAC,mBAAmB;SAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;QAAnB,8BAAmB;;;;;;;0BAC3B,EAAT,uBAAS;;;yBAAT,CAAA,uBAAS,CAAA;oBAAjB,IAAI;yBACP,CAAA,OAAO,IAAI,KAAK,UAAU,CAAA,EAA1B,cAA0B;oBAEnB,WAAM,IAAI,EAAE,EAAA;wBAAnB,WAAO,SAAY,EAAC;;oBAHT,IAAS,CAAA;;;;;;CAM/B"} \ No newline at end of file diff --git a/dist/_esm5/utils/sorted-array-utils.js b/dist/_esm5/utils/sorted-array-utils.js deleted file mode 100644 index b0840577..00000000 --- a/dist/_esm5/utils/sorted-array-utils.js +++ /dev/null @@ -1,169 +0,0 @@ -export function binarySearch(array, item, comparator) { - var m = 0; - var n = array.length - 1; - while (m <= n) { - var k = (n + m) >> 1; - var cmp = comparator(item, array[k]); - if (cmp > 0) { - m = k + 1; - } - else if (cmp < 0) { - n = k - 1; - } - else { - return k; - } - } - return ~m; -} -export function sortedFind(array, el, compare) { - var idx = binarySearch(array, el, compare); - if (idx < 0) { - return; - } - return array[idx]; -} -export function sortedInsert(array, value, compare) { - var idx = binarySearch(array, value, compare); - var newIdx = idx < 0 ? ~idx : idx; - array.splice(newIdx, 0, value); - return newIdx; -} -export function sortedInsertAll(array, values, compare, skipDuplicates) { - if (skipDuplicates === void 0) { skipDuplicates = false; } - var actualIndex = 0; - for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { - var value = values_1[_i]; - actualIndex = binarySearch(array.slice(actualIndex), value, compare); - if (skipDuplicates && actualIndex >= 0) { - break; - } - if (actualIndex < 0) { - actualIndex = ~actualIndex; - } - array.splice(actualIndex, 0, value); - } - return values.length; -} -export function sortedRemove(array, value, compare) { - var idx = binarySearch(array, value, compare); - if (idx < 0) { - return; - } - var r = array[idx]; - array.splice(idx, 1); - return r; -} -export function sortedPickAll(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r.push(f); - ++i1; - ++i2; - } - } - return r; -} -export function SortedDifference(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - r.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - ++i1; - ++i2; - } - } - while (i2 < array.length) { - var f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -export function SortedPartition(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r1 = []; - var r2 = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - r2.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r1.push(f); - ++i1; - ++i2; - } - } - while (i2 < array.length) { - var f = array[i2]; - r2.push(f); - ++i2; - } - return [r1, r2]; -} -export function sortedMerge(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var f1 = values[i1]; - var f2 = array[i2]; - var cmp = compare(f1, f2); - if (cmp > 0) { - r.push(f2); - ++i2; - } - else if (cmp < 0) { - r.push(f1); - ++i1; - } - else { - r.push(f1); - ++i1; - ++i2; - } - } - while (i1 < values.length) { - var f = values[i1]; - r.push(f); - ++i1; - } - while (i2 < array.length) { - var f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -//# sourceMappingURL=sorted-array-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/sorted-array-utils.js.map b/dist/_esm5/utils/sorted-array-utils.js.map deleted file mode 100644 index 685e841e..00000000 --- a/dist/_esm5/utils/sorted-array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-utils.js","sourceRoot":"","sources":["../../../src/utils/sorted-array-utils.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,YAAY,CAAI,KAAmB,EAAE,IAAO,EAAE,UAAkC;IAC5F,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzB,OAAO,CAAC,IAAI,CAAC,EAAE;QACX,IAAM,CAAC,GAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACzB,IAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAEvC,IAAI,GAAG,GAAG,CAAC,EAAE;YACT,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACb;aAAM,IAAI,GAAG,GAAG,CAAC,EAAE;YAChB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACb;aAAM;YACH,OAAO,CAAC,CAAC;SACZ;KACJ;IAED,OAAO,CAAC,CAAC,CAAC;AACd,CAAC;AAOD,MAAM,UAAU,UAAU,CACtB,KAAmB,EACnB,EAAK,EACL,OAAsC;IAEtC,IAAM,GAAG,GAAG,YAAY,CAAC,KAA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CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IACD,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE;QACtB,IAAM,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IAED,OAAO,CAAC,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/string-checkers.js b/dist/_esm5/utils/string-checkers.js deleted file mode 100644 index 78666cff..00000000 --- a/dist/_esm5/utils/string-checkers.js +++ /dev/null @@ -1,47 +0,0 @@ -import * as MiscValidators from "../validators/misc-validators"; -var timeFormats = { - HH: "(2[0-3]|[01]\\d)", - H: "(2[0-3]|[01]?\\d)", - mm: "([0-5]\\d)", - m: "([0-5]?\\d)", - MM: "(0\\d|1[0-2]|\\d)", - M: "([1-9]|1[0-2])", - ss: "([0-5]\\d)", - s: "([0-5]?\\d)", - YYYY: "([1-9]\\d{3,3})", - YY: "(\\d{2,2})", - DD: "([0-3]\\d)", -}; -export function isCamelCase(text) { - return new RegExp("^[A-Z]?[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -export function isUpperCamelCase(text) { - return new RegExp("^([A-Z][a-z]*)*$", "g").test(text); -} -export function isLowerCamelCase(text) { - return new RegExp("^[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -export function isLowerSnakeCase(text) { - return new RegExp("^[a-z]*(_[a-z]*)*$", "g").test(text); -} -export function isUpperSnakeCase(text) { - return new RegExp("^[A-Z]*(_[A-Z]*)*$", "g").test(text); -} -export function isSnakeCase(text) { - return new RegExp("^([a-z]*|[A-Z]*)(_[a-zA-Z]*)*$", "g").test(text); -} -export function isTimeFormat(text, format) { - for (var key in timeFormats) { - if (timeFormats.hasOwnProperty(key)) { - format = format.replace(key, timeFormats[key]); - } - } - return new RegExp("^" + format + "$").test(text); -} -export function isValidPhoneNumber(num) { - return MiscValidators.isValidPhoneNumber(num); -} -export function isValidEmail(email) { - return MiscValidators.isValidEmail(email); -} -//# sourceMappingURL=string-checkers.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/string-checkers.js.map b/dist/_esm5/utils/string-checkers.js.map deleted file mode 100644 index 0f476fec..00000000 --- a/dist/_esm5/utils/string-checkers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-checkers.js","sourceRoot":"","sources":["../../../src/utils/string-checkers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,cAAc,MAAM,+BAA+B,CAAC;AAEhE,IAAM,WAAW,GAA8B;IAC3C,EAAE,EAAI,kBAAkB;IACxB,CAAC,EAAK,mBAAmB;IACzB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,EAAE,EAAI,mBAAmB;IACzB,CAAC,EAAK,gBAAgB;IACtB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAI,YAAY;IAClB,EAAE,EAAI,YAAY;CACrB,CAAC;AAEF,MAAM,UAAU,WAAW,CAAC,IAAY;IACpC,OAAO,IAAI,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACpC,OAAO,IAAI,MAAM,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc;IACrD,KAAK,IAAM,GAAG,IAAI,WAAW,EAAE;QAC3B,IAAI,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACjC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;SAClD;KACJ;IAED,OAAO,IAAI,MAAM,CAAC,MAAI,MAAM,MAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC;AAMD,MAAM,UAAU,kBAAkB,CAAC,GAAW;IAC1C,OAAO,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,OAAO,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/string-utils.js b/dist/_esm5/utils/string-utils.js deleted file mode 100644 index d3c10315..00000000 --- a/dist/_esm5/utils/string-utils.js +++ /dev/null @@ -1,215 +0,0 @@ -import { join } from "./array-utils"; -import * as StringCheckers from "./string-checkers"; -var accentedLowerCharacters = "ąàáäâãåæăćčĉďęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž"; -var normalLowerCharacters = "aaaaaaaaacccdeeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz"; -var accentedCharacters = accentedLowerCharacters + accentedLowerCharacters.toUpperCase(); -var normalCharacters = normalLowerCharacters + normalLowerCharacters.toUpperCase(); -export function removeAccentedCharacters(word) { - if (!word || !word.replace) { - return word; - } - return word.replace(/./g, function (e) { - var index = accentedCharacters.indexOf(e); - return index >= 0 ? normalCharacters[index] : e; - }); -} -export function cutUsing(text, maxLength, suffix, lengthIncludeSuffix) { - if (suffix === void 0) { suffix = "..."; } - if (lengthIncludeSuffix === void 0) { lengthIncludeSuffix = true; } - if (text.length <= maxLength) { - return text; - } - return text.substr(0, maxLength - (lengthIncludeSuffix ? suffix.length - 1 : 0)) + suffix; -} -export function toUpperSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toUpperCase(); - } - if (StringCheckers.isUpperSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, function (i, u, e) { return e ? "_" + e : ""; }) - .replace(/^_/, "") - .toUpperCase(); -} -export function toLowerSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toLowerCase(); - } - if (StringCheckers.isLowerSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, function (i, u, e) { return e ? "_" + e : ""; }) - .replace(/^_/, "") - .toLowerCase(); -} -export function toLowerCamelCase(text) { - if (StringCheckers.isLowerCamelCase(text)) { - return text; - } - return text.trim() - .replace(/([a-z])([A-Z])([A-Z])/g, "$1$2_$3") - .replace(/([a-z])([A-Z])/g, "$1_$2") - .toLowerCase() - .replace(/(-|_| |\s)+(.)?/g, function (math, sep, c) { return c ? c.toUpperCase() : ""; }) - .replace(/^./, function (e) { return e.toLowerCase(); }); -} -export function toUpperCamelCase(text) { - if (StringCheckers.isUpperCamelCase(text)) { - return text; - } - return toCapital(toLowerCamelCase(text)); -} -export function capitalize(text) { - return text.toLowerCase().replace(/^./, function (char) { return char.toUpperCase(); }); -} -export function toCapital(text) { - return text.replace(/^./, function (e) { return e.toUpperCase(); }); -} -export function getLastPart(text, divider) { - if (divider === void 0) { divider = " "; } - if (!text || !text.split) { - return text; - } - var splitText = text.split(divider); - return splitText[splitText.length - 1]; -} -export function count(text, key) { - return (text.match(new RegExp(key, "g")) || []).length; -} -export function repeat(text, numberOfRepetitions) { - return new Array(numberOfRepetitions + 1).join(text); -} -export function removeAll(text, words) { - return text.replace(new RegExp("(" + words.join("|") + ")", "g"), ""); -} -export function template(text, values, start, end) { - if (start === void 0) { start = "{{"; } - if (end === void 0) { end = "}}"; } - var updatedStart = start.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - var updatedEnd = end.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - return text.replace(new RegExp(updatedStart + "(.+?)" + updatedEnd, "g"), function (math, key) { return String(values[key]); }); -} -export function removeEmptyLines(content) { - return content.replace(/^\s*$(?:\r\n?|\n)/gm, ""); -} -export function between(text, key1, key2, trim) { - if (trim === void 0) { trim = false; } - var processResult = function (result) { return trim ? result.trim() : result; }; - var startPos = text.indexOf(key1); - var endPos = text.indexOf(key2); - if (startPos < 0 && endPos >= 0) { - return processResult(text.substring(0, endPos)); - } - if (endPos < 0 && startPos >= 0) { - return processResult(text.substring(startPos + key1.length, text.length)); - } - return processResult(text.substring(startPos + key1.length, endPos)); -} -export function occurrences(text, key, overlapping) { - if (overlapping === void 0) { overlapping = false; } - var index = text.indexOf(key); - var counter = 0; - var step = overlapping ? 1 : key.length; - while (index >= 0) { - counter++; - index = text.indexOf(key, index + step); - } - return counter; -} -export function collapseWhitespace(text) { - return text.replace(/[\s\uFEFF\xA0]{2,}/g, " "); -} -export function swapCase(text) { - return text.replace(/\S/g, function (char) { - var lowerCase = char.toLowerCase(); - return lowerCase === char ? char.toUpperCase() : lowerCase; - }); -} -export function format(text, values, placeHolder) { - if (placeHolder === void 0) { placeHolder = "{}"; } - var result = []; - var lastIndex; - var actualIndex = 0; - var counter = 0; - while (counter < values.length) { - lastIndex = actualIndex; - actualIndex = text.indexOf(placeHolder, actualIndex); - result.push(text.substring(lastIndex, actualIndex)); - result.push(values[counter++]); - actualIndex += placeHolder.length; - } - result.push(text.substring(actualIndex)); - return result.join(""); -} -export function transformToBasicFormat(text) { - return collapseWhitespace(removeAccentedCharacters(text).toLowerCase()).trim(); -} -export function getAsciiArray(thisArg) { - var result = []; - for (var _i = 0, thisArg_1 = thisArg; _i < thisArg_1.length; _i++) { - var letter = thisArg_1[_i]; - result[result.length] = letter.charCodeAt(0); - } - return result; -} -export function toBasicForm(text) { - return removeAccentedCharacters(text.toLowerCase()); -} -export function contains(text, substring) { - return !!text && removeAccentedCharacters(text.toLowerCase()).indexOf(substring) >= 0; -} -export function joinSingle(prefix, divider, postfix) { - if (postfix.startsWith(divider) && prefix.endsWith(divider)) { - return prefix + postfix.substring(divider.length); - } - if (postfix.startsWith(divider) || prefix.endsWith(divider)) { - return prefix + postfix; - } - return prefix + divider + postfix; -} -export function joinString(data, delimiter, prefix, postfix) { - if (delimiter === void 0) { delimiter = " "; } - if (prefix === void 0) { prefix = ""; } - if (postfix === void 0) { postfix = ""; } - return join(data, delimiter, prefix, postfix); -} -export function getFormattedNumber(num, prefix) { - if (prefix === void 0) { prefix = "+421"; } - num = num.replace(/[( )/-]/g, ""); - if (num.startsWith("+")) { - return num; - } - if (num.startsWith("00")) { - return num.substring(2); - } - if (num.startsWith("09") || num.startsWith("02")) { - return prefix + num.substring(1); - } - return num; -} -function fuzzy_match_simple(pattern, str) { - var patternIdx = 0; - var strIdx = 0; - var patternLength = pattern.length; - var strLength = str.length; - while (patternIdx !== patternLength && strIdx !== strLength) { - var patternChar = pattern.charAt(patternIdx) - .toLowerCase(); - var strChar = str.charAt(strIdx) - .toLowerCase(); - if (patternChar === strChar) { - ++patternIdx; - } - ++strIdx; - } - return patternLength !== 0 && strLength !== 0 && patternIdx === patternLength; -} -export function replaceForAll(content, values, placeHolder) { - return values.map(function (value) { return content.replace(placeHolder, value); }); -} -//# sourceMappingURL=string-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/string-utils.js.map b/dist/_esm5/utils/string-utils.js.map deleted file mode 100644 index 8ab08412..00000000 --- a/dist/_esm5/utils/string-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../../src/utils/string-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AAEpD,IAAM,uBAAuB,GAAG,4DAA4D,CAAC;AAC7F,IAAM,qBAAqB,GAAK,4DAA4D,CAAC;AAC7F,IAAM,kBAAkB,GAAQ,uBAAuB,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC;AAChG,IAAM,gBAAgB,GAAU,qBAAqB,GAAG,qBAAqB,CAAC,WAAW,EAAE,CAAC;AAoB5F,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACjD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACxB,OAAO,IAAI,CAAC;KACf;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,UAAC,CAAS;QAChC,IAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAE5C,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC;AASD,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,SAAiB,EAAE,MAAc,EAAE,mBAA0B;IAA1C,uBAAA,EAAA,cAAc;IAAE,oCAAA,EAAA,0BAA0B;IAChG,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS,EAAE;QAC1B,OAAO,IAAI,CAAC;KACf;IAED,OAAO,IAAI,CA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IAEjC,OAAO,UAAU,KAAK,aAAa,IAAI,MAAM,KAAK,SAAS,EAAE;QACzD,IAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;aACzC,WAAW,EAAE,CAAC;QACnB,IAAM,OAAO,GAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;aACjC,WAAW,EAAE,CAAC;QACnB,IAAI,WAAW,KAAK,OAAO,EAAE;YACzB,EAAE,UAAU,CAAC;SAChB;QACD,EAAE,MAAM,CAAC;KACZ;IAED,OAAO,aAAa,KAAK,CAAC,IAAI,SAAS,KAAK,CAAC,IAAI,UAAU,KAAK,aAAa,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,MAAgB,EAAE,WAAmB;IAChF,OAAO,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,EAAnC,CAAmC,CAAC,CAAC;AACtE,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/svg-utils.js b/dist/_esm5/utils/svg-utils.js deleted file mode 100644 index 904b8445..00000000 --- a/dist/_esm5/utils/svg-utils.js +++ /dev/null @@ -1,15 +0,0 @@ -var svgns = "http://www.w3.org/2000/svg"; -export function createSvg(type) { - return document.createElementNS(svgns, type); -} -export function getTransform(selectedElement) { - var transforms = selectedElement.transform.baseVal; - if (transforms.numberOfItems === 0 || - transforms.getItem(0).type !== SVGTransform.SVG_TRANSFORM_TRANSLATE) { - var translate = selectedElement.ownerSVGElement.createSVGTransform(); - translate.setTranslate(0, 0); - selectedElement.transform.baseVal.insertItemBefore(translate, 0); - } - return transforms.getItem(0); -} -//# sourceMappingURL=svg-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/svg-utils.js.map b/dist/_esm5/utils/svg-utils.js.map deleted file mode 100644 index 726a14e8..00000000 --- a/dist/_esm5/utils/svg-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"svg-utils.js","sourceRoot":"","sources":["../../../src/utils/svg-utils.ts"],"names":[],"mappings":"AAAA,IAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,MAAM,UAAU,SAAS,CAAuC,IAAO;IACnE,OAAO,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,eAAmC;IAC5D,IAAM,UAAU,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC;IACrD,IAAI,UAAU,CAAC,aAAa,KAAK,CAAC;QAC9B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,uBAAuB,EAAE;QACrE,IAAM,SAAS,GAAI,eAAe,CAAC,eAAiC,CAAC,kBAAkB,EAAE,CAAC;QAC1F,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;KACpE;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/utils/time-utils.js b/dist/_esm5/utils/time-utils.js deleted file mode 100644 index 32d7ef61..00000000 --- a/dist/_esm5/utils/time-utils.js +++ /dev/null @@ -1,110 +0,0 @@ -var intervals = { - "year": 31536000, - "month": 2592000, - "week": 604800, - "day": 86400, - "hour": 3600, - "minute": 60, - "second": 1, -}; -var intervalEntries = Object.entries(intervals); -export function dateAgo(value) { - if (value) { - var seconds = Math.floor((+new Date() - +new Date(value)) / 1000); - if (seconds < 29) { - return "Just now"; - } - var counter = void 0; - for (var _i = 0, intervalEntries_1 = intervalEntries; _i < intervalEntries_1.length; _i++) { - var _a = intervalEntries_1[_i], key = _a[0], interval = _a[1]; - counter = Math.floor(seconds / interval); - if (counter <= 0) { - continue; - } - if (counter === 1) { - return counter + " " + key + " ago"; - } - return counter + " " + key + "s ago"; - } - } - return value; -} -export function formatTime(date, pattern) { - var toString = function (time) { return time < 10 ? "0" + time : "" + time; }; - var regex = new RegExp("(DD|MM|YYYY|YYY|YY|HH|mm|SS)", "g"); - var DD = toString(date.getDate()); - var MM = toString(date.getMonth() + 1); - var YYYY = date.getFullYear() + ""; - var YYY = YYYY.substr(1, 4); - var YY = YYY.substr(1, 4); - var HH = toString(date.getHours()); - var mm = toString(date.getMinutes()); - var SS = toString(date.getSeconds()); - return pattern.replace(regex, function (e) { - switch (e) { - case "DD": - return DD; - case "MM": - return MM; - case "YYYY": - return YYYY; - case "YYY": - return YYY; - case "YY": - return YY; - case "HH": - return HH; - case "mm": - return mm; - case "SS": - return SS; - default: - return e; - } - }); -} -export function createStopWatch() { - var start = Date.now(); - var getDiffMs = function () { return Date.now() - start; }; - return { - getDiffMs: getDiffMs, - getDiff: function () { - return getDiffMs() + "ms"; - }, - }; -} -function setDate(date, opt) { - if (!date) { - return new Date(""); - } - if (!isNaN(opt.ms)) { - date.setMilliseconds(opt.ms); - } - if (!isNaN(opt.s)) { - date.setSeconds(opt.s); - } - if (!isNaN(opt.m)) { - date.setMinutes(opt.m); - } - if (!isNaN(opt.h)) { - date.setHours(opt.h); - } - return date; -} -export function getStartOfTheDay(date) { - return setDate(date, { - ms: 0, - s: 0, - m: 0, - h: 0, - }); -} -export function getEndOfTheDay(date) { - return setDate(date, { - ms: 999, - s: 59, - m: 59, - h: 23, - }); -} -//# sourceMappingURL=time-utils.js.map \ No newline at end of file diff --git a/dist/_esm5/utils/time-utils.js.map b/dist/_esm5/utils/time-utils.js.map deleted file mode 100644 index 2842a733..00000000 --- a/dist/_esm5/utils/time-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time-utils.js","sourceRoot":"","sources":["../../../src/utils/time-utils.ts"],"names":[],"mappings":"AAEA,IAAM,SAAS,GAAsB;IACjC,MAAM,EAAI,QAAQ;IACl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b/dist/_esm5/validators/index.js deleted file mode 100644 index 9f66d8a9..00000000 --- a/dist/_esm5/validators/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./misc-validators"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/_esm5/validators/index.js.map b/dist/_esm5/validators/index.js.map deleted file mode 100644 index 02236383..00000000 --- a/dist/_esm5/validators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/validators/misc-validators.js b/dist/_esm5/validators/misc-validators.js deleted file mode 100644 index fa9a7a69..00000000 --- a/dist/_esm5/validators/misc-validators.js +++ /dev/null @@ -1,69 +0,0 @@ -var validEmailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i; -var validPhoneNumberRegex = /^([+]|00)?[(]?[0-9]{3,4}[)]?[-\s.]?[0-9]{2,3}[-\s.]?[0-9]{2,6}([-\s.]?[0-9]{3})?$/im; -export function isFunction(arg) { - return typeof arg === "function"; -} -export function isString(arg) { - return typeof arg === "string"; -} -export function isObject(value) { - var type = typeof value; - return value !== null && (type === "object" || type === "function"); -} -export function isNumber(arg) { - return typeof arg === "number"; -} -export function isBoolean(arg) { - return typeof arg === "boolean"; -} -export function isArray(arg) { - return Array.isArray(arg); -} -export function isInt(arg) { - return typeof arg === "number" && arg % 1 === 0; -} -export function isFloat(arg) { - return typeof arg === "number" && arg % 1 !== 0; -} -export function isUndefined(arg) { - return typeof arg === "undefined"; -} -export function isElement(obj) { - try { - return obj instanceof HTMLElement; - } - catch (e) { - return isObject(obj) && - obj.nodeType === 1 && - isObject(obj.style) && - isObject(obj.ownerDocument); - } -} -export function isEmpty(value) { - if (value === null || value === undefined) { - return true; - } - if (typeof value === "string") { - return value.length === 0 || /^[\s\xa0]*$/.test(value); - } - if (Array.isArray(value)) { - return value.length === 0; - } - if (isObject(value)) { - return Object.keys(value).length === 0; - } - return false; -} -export function isValidPhoneNumber(num) { - if (!num) { - return false; - } - return validPhoneNumberRegex.test(num.trim()); -} -export function isValidEmail(email) { - if (!email) { - return false; - } - return validEmailRegex.test(email.trim()); -} -//# sourceMappingURL=misc-validators.js.map \ No newline at end of file diff --git a/dist/_esm5/validators/misc-validators.js.map b/dist/_esm5/validators/misc-validators.js.map deleted file mode 100644 index a88ab89c..00000000 --- a/dist/_esm5/validators/misc-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-validators.js","sourceRoot":"","sources":["../../../src/validators/misc-validators.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAS,uJAAuJ,CAAC;AACtL,IAAM,qBAAqB,GAAG,qFAAqF,CAAC;AAEpH,MAAM,UAAU,UAAU,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAc,KAAc;IAChD,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAE1B,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,UAAU,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,GAAY;IAClC,OAAO,OAAO,GAAG,KAAK,SAAS,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,OAAO,CAAI,GAAY;IACnC,OAAO,KAAK,CAAC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UAAU,kBAAkB,CAAC,GAAW;IAC1C,IAAI,CAAC,GAAG,EAAE;QACN,OAAO,KAAK,CAAC;KAChB;IAED,OAAO,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,KAAK,CAAC;KAChB;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/dist/_esm5/web.js b/dist/_esm5/web.js deleted file mode 100644 index cbc17948..00000000 --- a/dist/_esm5/web.js +++ /dev/null @@ -1,11 +0,0 @@ -export * as arrays from "./utils/array-utils"; -export * as math from "./utils/math-utils"; -export * as dom from "./utils/DomUtils"; -export * as misc from "./utils/misc-utils"; -export * as object from "./utils/object-utils"; -export * as string from "./utils/string-utils"; -export * as time from "./utils/time-utils"; -export { SlovakStemmer as stemmer } from "./misc/slovak-stemmer"; -export { CanvasManager as canvas } from "./dom/canvas-manager"; -export { DomGet as get } from "./dom/dom-get"; -//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/_esm5/web.js.map b/dist/_esm5/web.js.map deleted file mode 100644 index 785d4370..00000000 --- a/dist/_esm5/web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/common.d.ts b/dist/common.d.ts deleted file mode 100644 index 12143767..00000000 --- a/dist/common.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./utils/string-checkers"; -export { GenderType, Gender } from "./models/gender.model"; -export * from "./enums/encodings.enum"; -export * from "./enums/file-types.enum"; -export * from "./enums/http-status-codes.enum"; -export * from "./enums/keys.enum"; -export * from "./components/key-value-counter"; -export * from "./components/number-counter"; -export * from "./components/file-manager"; -export * from "./components/paginator"; -export * from "./math/vector2f"; -export { initConfig } from "./config/gtools-config"; -export * from "./types/key-value.interface"; -export * from "./types/string-map.interface"; -export * from "./types/size.interaface"; -export * from "./tests/abstract-database.fixture"; -export * from "./tests/abstract.fixture"; -export * from "./tests/abstract.mapper"; -export * from "./tests/paginate.model"; -//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/dist/common.d.ts.map b/dist/common.d.ts.map deleted file mode 100644 index 83909fe8..00000000 --- a/dist/common.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAI3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAIlC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AAIvC,cAAc,iBAAiB,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AAIxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/common.js b/dist/common.js deleted file mode 100644 index 9875f014..00000000 --- a/dist/common.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.initConfig = exports.Gender = void 0; -__exportStar(require("./utils/string-checkers"), exports); -var gender_model_1 = require("./models/gender.model"); -Object.defineProperty(exports, "Gender", { enumerable: true, get: function () { return gender_model_1.Gender; } }); -__exportStar(require("./enums/encodings.enum"), exports); -__exportStar(require("./enums/file-types.enum"), exports); -__exportStar(require("./enums/http-status-codes.enum"), exports); -__exportStar(require("./enums/keys.enum"), exports); -__exportStar(require("./components/key-value-counter"), exports); -__exportStar(require("./components/number-counter"), exports); -__exportStar(require("./components/file-manager"), exports); -__exportStar(require("./components/paginator"), exports); -__exportStar(require("./math/vector2f"), exports); -var gtools_config_1 = require("./config/gtools-config"); -Object.defineProperty(exports, "initConfig", { enumerable: true, get: function () { return gtools_config_1.initConfig; } }); -__exportStar(require("./types/key-value.interface"), exports); -__exportStar(require("./types/string-map.interface"), exports); -__exportStar(require("./types/size.interaface"), exports); -__exportStar(require("./tests/abstract-database.fixture"), exports); -__exportStar(require("./tests/abstract.fixture"), exports); -__exportStar(require("./tests/abstract.mapper"), exports); -__exportStar(require("./tests/paginate.model"), exports); -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/common.js.map b/dist/common.js.map deleted file mode 100644 index 04fc03b9..00000000 --- a/dist/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,0DAAwC;AAIxC,sDAA2D;AAAtC,sGAAA,MAAM,OAAA;AAI3B,yDAAuC;AACvC,0DAAwC;AACxC,iEAA+C;AAC/C,oDAAkC;AAIlC,iEAA+C;AAC/C,8DAA4C;AAC5C,4DAA0C;AAC1C,yDAAuC;AAIvC,kDAAgC;AAIhC,wDAAoD;AAA3C,2GAAA,UAAU,OAAA;AAInB,8DAA4C;AAC5C,+DAA6C;AAC7C,0DAAwC;AAIxC,oEAAkD;AAClD,2DAAyC;AACzC,0DAAwC;AACxC,yDAAuC"} \ No newline at end of file diff --git a/dist/components/bidirectional-graph.d.ts b/dist/components/bidirectional-graph.d.ts deleted file mode 100644 index af7729e2..00000000 --- a/dist/components/bidirectional-graph.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare class BidirectionalGraph { - private readonly comparator; - readonly map: Map; - constructor(comparator?: (a: T, b: T) => boolean); - get numberOfVertices(): number; - cleanUp(): void; - getEdges(): [T, T][]; - hasVertex(item: T): boolean; - removeVertex(vertex: T, force?: boolean): void; - removeDisconnectedVertices(): void; - private require; - addVertex(...items: T[]): void; - disconnect(itemA: T, itemB: T): void; - connect(itemA: T, ...items: T[]): void; - areConnected(itemA: T, itemB: T): boolean; -} -//# sourceMappingURL=bidirectional-graph.d.ts.map \ No newline at end of file diff --git a/dist/components/bidirectional-graph.d.ts.map b/dist/components/bidirectional-graph.d.ts.map deleted file mode 100644 index 6179dee5..00000000 --- a/dist/components/bidirectional-graph.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bidirectional-graph.d.ts","sourceRoot":"","sources":["../../src/components/bidirectional-graph.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB,CAAC,CAAC;IAGV,OAAO,CAAC,QAAQ,CAAC,UAAU;IAF9C,SAAgB,GAAG,cAAqB;gBAEJ,UAAU,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAA2B;IAG3F,IAAW,gBAAgB,IAAI,MAAM,CAEpC;IAEM,OAAO,IAAI,IAAI;IAIf,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;IAiBpB,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAI3B,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,UAAQ,GAAG,IAAI;IAmB5C,0BAA0B,IAAI,IAAI;IAQzC,OAAO,CAAC,OAAO;IAIR,SAAS,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAS9B,UAAU,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IASpC,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAetC,YAAY,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO;CAQnD"} \ No newline at end of file diff --git a/dist/components/bidirectional-graph.js b/dist/components/bidirectional-graph.js deleted file mode 100644 index 0f355ed2..00000000 --- a/dist/components/bidirectional-graph.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BidirectionalGraph = void 0; -var BidirectionalGraph = (function () { - function BidirectionalGraph(comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - this.comparator = comparator; - this.map = new Map(); - } - Object.defineProperty(BidirectionalGraph.prototype, "numberOfVertices", { - get: function () { - return this.map.size; - }, - enumerable: false, - configurable: true - }); - BidirectionalGraph.prototype.cleanUp = function () { - this.map.clear(); - }; - BidirectionalGraph.prototype.getEdges = function () { - var _this = this; - var result = []; - var processedKeys = []; - this.map.forEach(function (value, vertexA) { - value.forEach(function (vertexB) { - if (processedKeys.some(function (v) { return _this.comparator(v, vertexB); })) { - return; - } - result.push([vertexA, vertexB]); - }); - processedKeys.push(vertexA); - }); - return result; - }; - BidirectionalGraph.prototype.hasVertex = function (item) { - return this.map.has(item); - }; - BidirectionalGraph.prototype.removeVertex = function (vertex, force) { - var _this = this; - if (force === void 0) { force = false; } - var itemValues = this.map.get(vertex); - if (!itemValues) { - return; - } - if (!force && itemValues.length) { - console.warn("Vertex contains connections"); - return; - } - this.map.delete(vertex); - itemValues.forEach(function (point) { - _this.map.set(point, _this.require(point).filter(function (p) { return !_this.comparator(p, vertex); })); - }); - }; - BidirectionalGraph.prototype.removeDisconnectedVertices = function () { - var _this = this; - this.map.forEach(function (value, key) { - if (!value.length) { - _this.map.delete(key); - } - }); - }; - BidirectionalGraph.prototype.require = function (item) { - return this.map.get(item) || []; - }; - BidirectionalGraph.prototype.addVertex = function () { - var _this = this; - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - items.forEach(function (item) { - if (_this.map.has(item)) { - return; - } - _this.map.set(item, []); - }); - }; - BidirectionalGraph.prototype.disconnect = function (itemA, itemB) { - var _this = this; - var aValues = this.require(itemA); - if (!(aValues === null || aValues === void 0 ? void 0 : aValues.length)) { - return; - } - this.map.set(itemA, aValues.filter(function (v) { return !_this.comparator(itemB, v); })); - this.map.set(itemB, this.require(itemB).filter(function (v) { return !_this.comparator(itemA, v); })); - }; - BidirectionalGraph.prototype.connect = function (itemA) { - var _this = this; - var items = []; - for (var _i = 1; _i < arguments.length; _i++) { - items[_i - 1] = arguments[_i]; - } - if (!items.length) { - return; - } - var aValues = this.map.get(itemA) || []; - var missingPoints = items.filter(function (p) { return !aValues.some(function (v) { return _this.comparator(v, p); }); }); - this.map.set(itemA, __spreadArrays(aValues, missingPoints)); - missingPoints.forEach(function (itemB) { - _this.map.set(itemB, __spreadArrays(_this.require(itemB), [itemA])); - }); - }; - BidirectionalGraph.prototype.areConnected = function (itemA, itemB) { - var _this = this; - var aValues = this.map.get(itemA); - if (!aValues) { - return false; - } - return aValues.some(function (v) { return _this.comparator(itemB, v); }); - }; - return BidirectionalGraph; -}()); -exports.BidirectionalGraph = BidirectionalGraph; -//# sourceMappingURL=bidirectional-graph.js.map \ No newline at end of file diff --git a/dist/components/bidirectional-graph.js.map b/dist/components/bidirectional-graph.js.map deleted file mode 100644 index acfa311a..00000000 --- a/dist/components/bidirectional-graph.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bidirectional-graph.js","sourceRoot":"","sources":["../../src/components/bidirectional-graph.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,4BAAoC,UAAuD;QAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,CAAC,EAAP,CAAO;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAF3E,QAAG,GAAG,IAAI,GAAG,EAAU,CAAC;IAGxC,CAAC;IAED,sBAAW,gDAAgB;aAA3B;YACI,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QACzB,CAAC;;;OAAA;IAEM,oCAAO,GAAd;QACI,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IAEM,qCAAQ,GAAf;QAAA,iBAeC;QAdG,IAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,IAAM,aAAa,GAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,GAAG,CAA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AD,CAAC,AA3GD,IA2GC;AA3GY,gDAAkB"} \ No newline at end of file diff --git a/dist/components/file-manager.d.ts b/dist/components/file-manager.d.ts deleted file mode 100644 index f6746deb..00000000 --- a/dist/components/file-manager.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { FileTypes } from "../enums"; -export declare class FileManager { - /** - * private input used for opening system window for upload files - */ - private readonly input; - /** - * private input used for opening system window for download files - */ - private readonly link; - constructor(); - /** - * Save text content into file with specific extensions - * - * @param name file name - * @param text file content - * @param type file {@link FileTypes}. Default value is {@link FileTypes.TXT} - */ - saveFile(name: string, text: string, type?: FileTypes): void; - /** - * Save image into file - * - * @param name image name - * @param image image element or path to image - */ - saveImage(name: string, image: string | HTMLImageElement): void; - /** - * Load image using system file picker - * - * @param func loading callback - */ - loadImage(func: (result: HTMLImageElement, fileName: File) => void): void; - /** - * Load file using system file picker - * - * @param func loading callback - * @param encoding file encoding - */ - loadFile(func: (result: string, file: File) => void, encoding?: string): void; - loadFiles(func: (files: FileList | null) => void): void; - /** - * Load binary file using system file picker - * - * @param func loading callback - */ - loadBinaryFile(func: (result: ArrayBuffer | string | null, fileName: string) => void): void; -} -//# sourceMappingURL=file-manager.d.ts.map \ No newline at end of file diff --git a/dist/components/file-manager.d.ts.map b/dist/components/file-manager.d.ts.map deleted file mode 100644 index f9d55e54..00000000 --- a/dist/components/file-manager.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../src/components/file-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,qBAAa,WAAW;IACpB;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoB;;IAazC;;;;;;OAMG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,SAAyB,GAAG,IAAI;IAMlF;;;;;OAKG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAMtE;;;;OAIG;IACI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,KAAK,IAAI,GAAG,IAAI;IAmBhF;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAY7E,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI;IAM9D;;;;OAIG;IACI,cAAc,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;CAWrG"} \ No newline at end of file diff --git a/dist/components/file-manager.js b/dist/components/file-manager.js deleted file mode 100644 index b22c7f67..00000000 --- a/dist/components/file-manager.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileManager = void 0; -var enums_1 = require("../enums"); -var FileManager = (function () { - function FileManager() { - this.input = document.createElement("input"); - this.input.setAttribute("type", "file"); - this.input.setAttribute("value", "files"); - this.input.setAttribute("class", "hide"); - this.link = document.createElement("a"); - this.link.setAttribute("class", "hide"); - this.link.setAttribute("href", ""); - } - FileManager.prototype.saveFile = function (name, text, type) { - if (type === void 0) { type = enums_1.FileTypes.TXT; } - this.link.href = URL.createObjectURL(new Blob([text], { type: type })); - this.link.download = name; - this.link.click(); - }; - FileManager.prototype.saveImage = function (name, image) { - this.link.href = typeof image === "string" ? image : image.src; - this.link.download = name; - this.link.click(); - }; - FileManager.prototype.loadImage = function (func) { - this.input.multiple = false; - this.input.accept = "image/*"; - this.input.onchange = function (event) { - var files = event.target.files; - if (files.length <= 0) { - return; - } - var reader = new FileReader(); - reader.onload = function () { - var image = new Image(); - image.src = reader.result; - func(image, files[0]); - }; - reader.readAsDataURL(files[0]); - }; - this.input.click(); - }; - FileManager.prototype.loadFile = function (func, encoding) { - this.input.multiple = false; - this.input.onchange = function (e) { - var reader = new FileReader(); - var files = e.target.files; - if (files && files.length > 0) { - reader.onload = function () { return func(String(reader.result), files[0]); }; - reader.readAsText(files[0], encoding); - } - }; - this.input.click(); - }; - FileManager.prototype.loadFiles = function (func) { - this.input.multiple = true; - this.input.onchange = function (e) { return func(e.target.files); }; - this.input.click(); - }; - FileManager.prototype.loadBinaryFile = function (func) { - this.input.onchange = function (event) { - var reader = new FileReader(); - var files = event.target.files; - if (files && files.length > 0) { - reader.onload = function () { return func(reader.result, files[0].name); }; - reader.readAsBinaryString(files[0]); - } - }; - this.input.click(); - }; - return FileManager; -}()); -exports.FileManager = FileManager; -//# sourceMappingURL=file-manager.js.map \ No newline at end of file diff --git a/dist/components/file-manager.js.map b/dist/components/file-manager.js.map deleted file mode 100644 index bddef151..00000000 --- a/dist/components/file-manager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-manager.js","sourceRoot":"","sources":["../../src/components/file-manager.ts"],"names":[],"mappings":";;;AAAA,kCAAqC;AAErC;IAUI;QACI,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAEzC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACxC,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AC,KAAK,EAAE,CAAC;IACvB,CAAC;IAOM,oCAAc,GAArB,UAAsB,IAAqE;QACtF,IAAI,CAAC,KAAa,CAAC,QAAQ,GAAG,UAAC,KAAiB;YAC7C,IAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;YAChC,IAAM,KAAK,GAAK,KAAK,CAAC,MAA2B,CAAC,KAAK,CAAC;YACxD,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC3B,MAAM,CAAC,MAAM,GAAG,cAAM,OAAA,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAlC,CAAkC,CAAC;gBACzD,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACvC;QACL,CAAC,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IACL,kBAAC;AAAD,CAAC,AA9GD,IA8GC;AA9GY,kCAAW"} \ No newline at end of file diff --git a/dist/components/g-map.d.ts b/dist/components/g-map.d.ts deleted file mode 100644 index ed8bd246..00000000 --- a/dist/components/g-map.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare class GMap extends Map { - get(key: T, defaultValue?: S): S | undefined; - getOrCreate(key: T, defaultValue: S): S | undefined; -} -//# sourceMappingURL=g-map.d.ts.map \ No newline at end of file diff --git a/dist/components/g-map.d.ts.map b/dist/components/g-map.d.ts.map deleted file mode 100644 index 54e1191a..00000000 --- a/dist/components/g-map.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-map.d.ts","sourceRoot":"","sources":["../../src/components/g-map.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9B,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAI5C,WAAW,CAAC,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;CAS7D"} \ No newline at end of file diff --git a/dist/components/g-map.js b/dist/components/g-map.js deleted file mode 100644 index b2461e51..00000000 --- a/dist/components/g-map.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GMap = void 0; -var GMap = (function (_super) { - __extends(GMap, _super); - function GMap() { - return _super !== null && _super.apply(this, arguments) || this; - } - GMap.prototype.get = function (key, defaultValue) { - return _super.prototype.get.call(this, key) || defaultValue; - }; - GMap.prototype.getOrCreate = function (key, defaultValue) { - var result = _super.prototype.get.call(this, key); - if (result) { - return result; - } - this.set(key, defaultValue); - return defaultValue; - }; - return GMap; -}(Map)); -exports.GMap = GMap; -//# sourceMappingURL=g-map.js.map \ No newline at end of file diff --git a/dist/components/g-map.js.map b/dist/components/g-map.js.map deleted file mode 100644 index b76ef2da..00000000 --- a/dist/components/g-map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-map.js","sourceRoot":"","sources":["../../src/components/g-map.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAAgC,wBAAS;IAAzC;;IAcA,CAAC;IAbU,kBAAG,GAAV,UAAW,GAAM,EAAE,YAAgB;QAC/B,OAAO,iBAAM,GAAG,YAAC,GAAG,CAAC,IAAI,YAAY,CAAC;IAC1C,CAAC;IAEM,0BAAW,GAAlB,UAAmB,GAAM,EAAE,YAAe;QACtC,IAAM,MAAM,GAAG,iBAAM,GAAG,YAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,MAAM,EAAE;YACR,OAAO,MAAM,CAAC;SACjB;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAE5B,OAAO,YAAY,CAAC;IACxB,CAAC;IACL,WAAC;AAAD,CAAC,AAdD,CAAgC,GAAG,GAclC;AAdY,oBAAI"} \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts deleted file mode 100644 index 2ef78e3f..00000000 --- a/dist/components/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export * from "./file-manager"; -export * from "./logger/g-logger"; -export * from "./g-map"; -export * from "./key-value-counter"; -export * from "./number-counter"; -export * from "./paginator"; -export * from "./bidirectional-graph"; -export { GLoggerPriority } from "./logger/g-logger-priority"; -export { GLoggerDefaultFormatter, SimpleColorFormatter } from "./logger/g-logger-default-formatter"; -export { GLoggerCallbackHolder } from "./logger/g-logger-callback-holder"; -export { GLoggerInstance } from "./logger/g-logger-instance"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/index.d.ts.map b/dist/components/index.d.ts.map deleted file mode 100644 index ac681c15..00000000 --- a/dist/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"} \ No newline at end of file diff --git a/dist/components/index.js b/dist/components/index.js deleted file mode 100644 index e4093e27..00000000 --- a/dist/components/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLoggerInstance = exports.GLoggerCallbackHolder = exports.SimpleColorFormatter = exports.GLoggerDefaultFormatter = exports.GLoggerPriority = void 0; -__exportStar(require("./file-manager"), exports); -__exportStar(require("./logger/g-logger"), exports); -__exportStar(require("./g-map"), exports); -__exportStar(require("./key-value-counter"), exports); -__exportStar(require("./number-counter"), exports); -__exportStar(require("./paginator"), exports); -__exportStar(require("./bidirectional-graph"), exports); -var g_logger_priority_1 = require("./logger/g-logger-priority"); -Object.defineProperty(exports, "GLoggerPriority", { enumerable: true, get: function () { return g_logger_priority_1.GLoggerPriority; } }); -var g_logger_default_formatter_1 = require("./logger/g-logger-default-formatter"); -Object.defineProperty(exports, "GLoggerDefaultFormatter", { enumerable: true, get: function () { return g_logger_default_formatter_1.GLoggerDefaultFormatter; } }); -Object.defineProperty(exports, "SimpleColorFormatter", { enumerable: true, get: function () { return g_logger_default_formatter_1.SimpleColorFormatter; } }); -var g_logger_callback_holder_1 = require("./logger/g-logger-callback-holder"); -Object.defineProperty(exports, "GLoggerCallbackHolder", { enumerable: true, get: function () { return g_logger_callback_holder_1.GLoggerCallbackHolder; } }); -var g_logger_instance_1 = require("./logger/g-logger-instance"); -Object.defineProperty(exports, "GLoggerInstance", { enumerable: true, get: function () { return g_logger_instance_1.GLoggerInstance; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/components/index.js.map b/dist/components/index.js.map deleted file mode 100644 index dbb1242c..00000000 --- a/dist/components/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,0CAAwB;AACxB,sDAAoC;AACpC,mDAAiC;AACjC,8CAA4B;AAC5B,wDAAsC;AACtC,gEAA6D;AAApD,oHAAA,eAAe,OAAA;AACxB,kFAAoG;AAA3F,qIAAA,uBAAuB,OAAA;AAAE,kIAAA,oBAAoB,OAAA;AACtD,8EAA0E;AAAjE,iIAAA,qBAAqB,OAAA;AAC9B,gEAA6D;AAApD,oHAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/dist/components/key-value-counter.d.ts b/dist/components/key-value-counter.d.ts deleted file mode 100644 index 5765438e..00000000 --- a/dist/components/key-value-counter.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface SimpleWrapper { - key: string; - count: number; -} -export declare class KeyValueCounter { - private readonly data; - private readonly results; - private processed; - add(item: string): void; - addAll(items: string[]): void; - getAll(): SimpleWrapper[]; - getTopN(count: number): SimpleWrapper[]; - getCount(): number; - private process; -} -//# sourceMappingURL=key-value-counter.d.ts.map \ No newline at end of file diff --git a/dist/components/key-value-counter.d.ts.map b/dist/components/key-value-counter.d.ts.map deleted file mode 100644 index 0096b68d..00000000 --- a/dist/components/key-value-counter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value-counter.d.ts","sourceRoot":"","sources":["../../src/components/key-value-counter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,eAAe;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiC;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8B;IACtD,OAAO,CAAC,SAAS,CAAwC;IAElD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAWvB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;IAI7B,MAAM,IAAI,aAAa,EAAE;IAQzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE;IAQvC,QAAQ,IAAI,MAAM;IAIzB,OAAO,CAAC,OAAO;CAalB"} \ No newline at end of file diff --git a/dist/components/key-value-counter.js b/dist/components/key-value-counter.js deleted file mode 100644 index 979d2925..00000000 --- a/dist/components/key-value-counter.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KeyValueCounter = void 0; -var KeyValueCounter = (function () { - function KeyValueCounter() { - this.data = {}; - this.results = []; - this.processed = false; - } - KeyValueCounter.prototype.add = function (item) { - if (item in this.data) { - this.data[item]++; - } - else { - this.data[item] = 1; - } - if (this.processed) { - this.processed = false; - } - }; - KeyValueCounter.prototype.addAll = function (items) { - items.forEach(this.add, this); - }; - KeyValueCounter.prototype.getAll = function () { - if (!this.processed) { - this.process(); - } - return this.results; - }; - KeyValueCounter.prototype.getTopN = function (count) { - if (!this.processed) { - this.process(); - } - return this.results.slice(0, count); - }; - KeyValueCounter.prototype.getCount = function () { - return this.getAll().length; - }; - KeyValueCounter.prototype.process = function () { - for (var key in this.data) { - if (!this.data.hasOwnProperty(key)) { - continue; - } - this.results.push({ - key: key, - count: this.data[key], - }); - } - this.results.sort(function (a, b) { return b.count - a.count; }); - this.processed = true; - }; - return KeyValueCounter; -}()); -exports.KeyValueCounter = KeyValueCounter; -//# sourceMappingURL=key-value-counter.js.map \ No newline at end of file diff --git a/dist/components/key-value-counter.js.map b/dist/components/key-value-counter.js.map deleted file mode 100644 index 633968ce..00000000 --- a/dist/components/key-value-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value-counter.js","sourceRoot":"","sources":["../../src/components/key-value-counter.ts"],"names":[],"mappings":";;;AAKA;IAAA;QACqB,SAAI,GAA8B,EAAE,CAAC;QACrC,YAAO,GAA2B,EAAE,CAAC;QAC9C,cAAS,GAAkC,KAAK,CAAC;IAkD7D,CAAC;IAhDU,6BAAG,GAAV,UAAW,IAAY;QACnB,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;SACrB;aAAM;YACH,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;QACD,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;SAC1B;IACL,CAAC;IAEM,gCAAM,GAAb,UAAc,KAAe;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAEM,gCAAM,GAAb;QACI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAEM,iCAAO,GAAd,UAAe,KAAa;QACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAEM,kCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC;IAChC,CAAC;IAEO,iCAAO,GAAf;QACI,KAAK,IAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE;YACzB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;gBAChC,SAAS;aACZ;YACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gBACd,GAAG,KAAA;gBACH,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;aACxB,CAAC,CAAC;SACN;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAjB,CAAiB,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,0CAAe"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-callback-holder.d.ts b/dist/components/logger/g-logger-callback-holder.d.ts deleted file mode 100644 index af3c87d5..00000000 --- a/dist/components/logger/g-logger-callback-holder.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { GLoggerCallback } from "./g-logger"; -import { SimpleColorFormatter } from "./g-logger-default-formatter"; -import { GLoggerPriority } from "./g-logger-priority"; -export declare class GLoggerCallbackHolder { - private readonly callbacks; - private constructor(); - copy(): GLoggerCallbackHolder; - static createConsoleCallbacks(formatter?: SimpleColorFormatter): GLoggerCallbackHolder; - static createArrayCallbacks(array: unknown[], options?: { - mapper?: (priority: GLoggerPriority, messages: unknown[], context?: string) => unknown; - }): GLoggerCallbackHolder; - setCallback(priority: GLoggerPriority, callback: GLoggerCallback): void; - set(holder: GLoggerCallbackHolder): void; - getCallback(priority: GLoggerPriority): GLoggerCallback; -} -//# sourceMappingURL=g-logger-callback-holder.d.ts.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-callback-holder.d.ts.map b/dist/components/logger/g-logger-callback-holder.d.ts.map deleted file mode 100644 index 17679aea..00000000 --- a/dist/components/logger/g-logger-callback-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-callback-holder.d.ts","sourceRoot":"","sources":["../../../src/components/logger/g-logger-callback-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,qBAAa,qBAAqB;IACV,OAAO,CAAC,QAAQ,CAAC,SAAS;IAA9C,OAAO;IAGA,IAAI,IAAI,qBAAqB;WAItB,sBAAsB,CAAC,SAAS,uBAA6B,GAAG,qBAAqB;WAgBrF,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAA;KAAO,GAAG,qBAAqB;IAgC9K,WAAW,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAIvE,GAAG,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI;IAMxC,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,eAAe;CAGjE"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-callback-holder.js b/dist/components/logger/g-logger-callback-holder.js deleted file mode 100644 index 52e5220c..00000000 --- a/dist/components/logger/g-logger-callback-holder.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLoggerCallbackHolder = void 0; -var g_logger_default_formatter_1 = require("./g-logger-default-formatter"); -var g_logger_priority_1 = require("./g-logger-priority"); -var GLoggerCallbackHolder = (function () { - function GLoggerCallbackHolder(callbacks) { - this.callbacks = callbacks; - } - GLoggerCallbackHolder.prototype.copy = function () { - return new GLoggerCallbackHolder(this.callbacks); - }; - GLoggerCallbackHolder.createConsoleCallbacks = function (formatter) { - var _a; - if (formatter === void 0) { formatter = new g_logger_default_formatter_1.SimpleColorFormatter(); } - return new GLoggerCallbackHolder((_a = {}, - _a[g_logger_priority_1.GLoggerPriority.LOG] = function (message, context) { return console.log.apply(console, formatter.formatColored(g_logger_priority_1.GLoggerPriority.LOG, message, context)); }, - _a[g_logger_priority_1.GLoggerPriority.WARN] = function (message, context) { return console.warn.apply(console, formatter.formatColored(g_logger_priority_1.GLoggerPriority.WARN, message, context)); }, - _a[g_logger_priority_1.GLoggerPriority.ERROR] = function (message, context) { return console.error.apply(console, formatter.formatColored(g_logger_priority_1.GLoggerPriority.ERROR, message, context)); }, - _a[g_logger_priority_1.GLoggerPriority.SUCCESS] = function (message, context) { return console.log.apply(console, formatter.formatColored(g_logger_priority_1.GLoggerPriority.SUCCESS, message, context)); }, - _a[g_logger_priority_1.GLoggerPriority.VERBOSE] = function (message, context) { return console.log.apply(console, formatter.formatColored(g_logger_priority_1.GLoggerPriority.VERBOSE, message, context)); }, - _a)); - }; - GLoggerCallbackHolder.createArrayCallbacks = function (array, options) { - var _a; - if (options === void 0) { options = {}; } - var mapper = options.mapper || (function (priority, messages, context) { return [priority, messages, context]; }); - var appendToArray = function (priority, messages, context) { - array.push(mapper(priority, messages, context)); - }; - return new GLoggerCallbackHolder((_a = {}, - _a[g_logger_priority_1.GLoggerPriority.LOG] = function (message, context) { return appendToArray(g_logger_priority_1.GLoggerPriority.LOG, message, context); }, - _a[g_logger_priority_1.GLoggerPriority.WARN] = function (message, context) { return appendToArray(g_logger_priority_1.GLoggerPriority.WARN, message, context); }, - _a[g_logger_priority_1.GLoggerPriority.ERROR] = function (message, context) { return appendToArray(g_logger_priority_1.GLoggerPriority.ERROR, message, context); }, - _a[g_logger_priority_1.GLoggerPriority.SUCCESS] = function (message, context) { return appendToArray(g_logger_priority_1.GLoggerPriority.SUCCESS, message, context); }, - _a[g_logger_priority_1.GLoggerPriority.VERBOSE] = function (message, context) { return appendToArray(g_logger_priority_1.GLoggerPriority.VERBOSE, message, context); }, - _a)); - }; - GLoggerCallbackHolder.prototype.setCallback = function (priority, callback) { - this.callbacks[priority] = callback; - }; - GLoggerCallbackHolder.prototype.set = function (holder) { - var _this = this; - Object.values(g_logger_priority_1.GLoggerPriority).forEach(function (priority) { - _this.setCallback(priority, holder.getCallback(priority)); - }); - }; - GLoggerCallbackHolder.prototype.getCallback = function (priority) { - return this.callbacks[priority]; - }; - return GLoggerCallbackHolder; -}()); -exports.GLoggerCallbackHolder = GLoggerCallbackHolder; -//# sourceMappingURL=g-logger-callback-holder.js.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-callback-holder.js.map b/dist/components/logger/g-logger-callback-holder.js.map deleted file mode 100644 index 25f2f111..00000000 --- a/dist/components/logger/g-logger-callback-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-callback-holder.js","sourceRoot":"","sources":["../../../src/components/logger/g-logger-callback-holder.ts"],"names":[],"mappings":";;;AACA,2EAAoE;AACpE,yDAAsD;AAEtD;IACI,+BAAqC,SAAwD;QAAxD,cAAS,GAAT,SAAS,CAA+C;IAC7F,CAAC;IAEM,oCAAI,GAAX;QACI,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAEa,4CAAsB,GAApC,UAAqC,SAAsC;;QAAtC,0BAAA,EAAA,gBAAgB,iDAAoB,EAAE;QACvE,OAAO,IAAI,qBAAqB;YAO5B,GAAC,mCAAe,CAAC,GAAG,IAAO,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,OAAO,CAAC,GAAG,OAAX,OAAO,EAAQ,SAAS,CAAC,aAAa,CAAC,mCAAe,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,GAA7E,CAA8E;YACnJ,GAAC,mCAAe,CAAC,IAAI,IAAM,UAAC,OAAkB,EAAE,OAAgB,IAAK,OAAA,OAAO,CAAC,IAAI,OAAZ,OAAO,EAAS,SAAS,CAAC,aAAa,CAAC,mCAAe,CAAC,IAAI,E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ist/components/logger/g-logger-default-formatter.d.ts b/dist/components/logger/g-logger-default-formatter.d.ts deleted file mode 100644 index 5c032a4c..00000000 --- a/dist/components/logger/g-logger-default-formatter.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { GLoggerFormatter } from "./g-logger"; -import { GLoggerPriority } from "./g-logger-priority"; -export declare class ColorGenerator { - useDifferentColorsForContexts: boolean; - private readonly contextColorMap; - getColorForContext(context: string, defaultColor: string): string; -} -export declare class SimpleColorFormatter implements GLoggerFormatter { - private readonly pattern; - private readonly colorGenerator; - readonly colorMap: { - priority: string; - context: string; - data: string; - default: string; - }; - constructor(pattern?: string); - format(priority: GLoggerPriority, data: unknown[], context?: string): string; - formatColored(priority: GLoggerPriority, data: unknown[], context?: string): unknown[]; -} -export declare class GLoggerDefaultFormatter implements GLoggerFormatter { - showPriority: boolean; - showContext: boolean; - showTime: boolean; - showTimeOffset: boolean; - readonly colors: { - [key: string]: string; - }; - private readonly colorGenerator; - private lastFormatTime; - formatColored(priority: GLoggerPriority, data: unknown[], context?: string): unknown[]; - format(priority: GLoggerPriority, data: unknown[], context?: string): string; - private getOutputArray; -} -//# sourceMappingURL=g-logger-default-formatter.d.ts.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-default-formatter.d.ts.map b/dist/components/logger/g-logger-default-formatter.d.ts.map deleted file mode 100644 index 713a88ce..00000000 --- a/dist/components/logger/g-logger-default-formatter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-default-formatter.d.ts","sourceRoot":"","sources":["../../../src/components/logger/g-logger-default-formatter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,qBAAa,cAAc;IAChB,6BAA6B,UAAmC;IACvE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqC;IAE9D,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM;CAe3E;AAED,qBAAa,oBAAqB,YAAW,gBAAgB;IAQtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAP3C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAwB;IACvD,SAAgB,QAAQ;;;;;MAKtB;gBACkC,OAAO,SAAyC;IAE7E,MAAM,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAuC5E,aAAa,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE;CA6ChG;AAGD,qBAAa,uBAAwB,YAAW,gBAAgB;IACrD,YAAY,UAAqD;IACjE,WAAW,UAAqD;IAChE,QAAQ,UAAyD;IACjE,cAAc,UAAmD;IACxE,SAAgB,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAoB;IACrE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAwB;IACvD,OAAO,CAAC,cAAc,CAAuD;IAEtE,aAAa,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE;IAsBtF,MAAM,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;IAKnF,OAAO,CAAC,cAAc;CAuBzB"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-default-formatter.js b/dist/components/logger/g-logger-default-formatter.js deleted file mode 100644 index 61b3bcf6..00000000 --- a/dist/components/logger/g-logger-default-formatter.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLoggerDefaultFormatter = exports.SimpleColorFormatter = exports.ColorGenerator = void 0; -var utils_1 = require("../../utils"); -var ColorGenerator = (function () { - function ColorGenerator() { - this.useDifferentColorsForContexts = true; - this.contextColorMap = {}; - } - ColorGenerator.prototype.getColorForContext = function (context, defaultColor) { - if (!this.useDifferentColorsForContexts) { - return defaultColor; - } - if (context in this.contextColorMap) { - return this.contextColorMap[context]; - } - var createColor = function () { - return "#" + new Array(6).fill("").map(function () { return utils_1.randomItem("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D"); }).join(""); - }; - return this.contextColorMap[context] = createColor(); - }; - return ColorGenerator; -}()); -exports.ColorGenerator = ColorGenerator; -var SimpleColorFormatter = (function () { - function SimpleColorFormatter(pattern) { - if (pattern === void 0) { pattern = "[{{priority}}] {{context}}: {{data}}"; } - this.pattern = pattern; - this.colorGenerator = new ColorGenerator(); - this.colorMap = { - priority: "red", - context: "blue", - data: "black", - default: "black", - }; - } - SimpleColorFormatter.prototype.format = function (priority, data, context) { - var dataPlaceholders = data.map(function (item) { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - var text = utils_1.template(this.pattern, { - priority: "%s", - context: "%s", - data: dataPlaceholders.join(" "), - }); - var logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, function (match) { - switch (match) { - case "priority": - logFragments.push(priority); - break; - case "context": - logFragments.push(context || ""); - break; - case "data": - logFragments.push.apply(logFragments, data); - break; - } - return match; - }); - return logFragments.join(", "); - }; - SimpleColorFormatter.prototype.formatColored = function (priority, data, context) { - var _this = this; - var dataPlaceholders = data.map(function (item) { - switch (typeof item) { - case "object": - return "%o"; - case "number": - return (item % 1 === 0) ? "%d" : "%f"; - default: - return "%s"; - } - }); - var text = utils_1.template(this.pattern, { - priority: "%c%s%c", - context: "%c%s%c", - data: "%c" + dataPlaceholders.join(" ") + "%c", - }); - var logFragments = [text]; - this.pattern.replace(/(priority|context|data)/g, function (match) { - switch (match) { - case "priority": - logFragments.push("color: " + _this.colorMap[match]); - logFragments.push(priority); - logFragments.push("color: " + _this.colorMap.default); - break; - case "context": - logFragments.push("color: " + _this.colorGenerator.getColorForContext(context || "root", "black")); - logFragments.push(context || ""); - logFragments.push("color: " + _this.colorMap.default); - break; - case "data": - logFragments.push("color: " + _this.colorMap[match]); - logFragments.push.apply(logFragments, data); - logFragments.push("color: " + _this.colorMap.default); - break; - } - return match; - }); - return logFragments; - }; - return SimpleColorFormatter; -}()); -exports.SimpleColorFormatter = SimpleColorFormatter; -var GLoggerDefaultFormatter = (function () { - function GLoggerDefaultFormatter() { - this.showPriority = false; - this.showContext = true; - this.showTime = false; - this.showTimeOffset = false; - this.colors = {}; - this.colorGenerator = new ColorGenerator(); - this.lastFormatTime = Date.now(); - } - GLoggerDefaultFormatter.prototype.formatColored = function (priority, data, context) { - var result = [this.getOutputArray(priority, data, context).join(" ")]; - if (this.showPriority) { - result.push("color: " + (this.colors.priority || "blue")); - } - if (this.showContext && context) { - result.push("color: " + this.colorGenerator.getColorForContext(context, this.colors.context || "red")); - } - if (this.showTime) { - result.push("color: " + (this.colors.time || "green")); - } - if (this.showTimeOffset) { - result.push("color: " + (this.colors.timeOffset || "green")); - } - result.push("color: " + (this.colors.textColor || "black")); - return result; - }; - GLoggerDefaultFormatter.prototype.format = function (priority, data, context) { - return this.getOutputArray(priority, data, context).join(" "); - }; - GLoggerDefaultFormatter.prototype.getOutputArray = function (priority, data, context) { - var partials = []; - if (this.showPriority) { - partials.push("[" + priority + "]"); - } - if (this.showContext && context) { - partials.push(context + ":"); - } - if (this.showTime) { - partials.push("[" + new Date().toISOString() + "]"); - } - if (this.showTimeOffset) { - var now = Date.now(); - partials.push("" + utils_1.dateAgo(now - this.lastFormatTime)); - this.lastFormatTime = now; - } - partials.push.apply(partials, data.map(String)); - return partials; - }; - return GLoggerDefaultFormatter; -}()); -exports.GLoggerDefaultFormatter = GLoggerDefaultFormatter; -//# sourceMappingURL=g-logger-default-formatter.js.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-default-formatter.js.map b/dist/components/logger/g-logger-default-formatter.js.map deleted file mode 100644 index ccf0785a..00000000 --- a/dist/components/logger/g-logger-default-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-default-formatter.js","sourceRoot":"","sources":["../../../src/components/logger/g-logger-default-formatter.ts"],"names":[],"mappings":";;;AAAA,qCAA4D;AAI5D;IAAA;QACW,kCAA6B,GAA8B,IAAI,CAAC;QACtD,oBAAe,GAAkC,EAAE,CAAC;IAiBzE,CAAC;IAfU,2CAAkB,GAAzB,UAA0B,OAAe,EAAE,YAAoB;QAC3D,IAAI,CAAC,IAAI,CAAC,6BAA6B,EAAE;YACrC,OAAO,YAAY,CAAC;SACvB;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;YACjC,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;SACxC;QAED,IAAM,WAAW,GAAG;YAChB,OAAA,MAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,cAAM,OAAA,kBAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAhF,CAAgF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAG;QAAhI,CAAgI,CACnI;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,WAAW,EAAE,CAAC;IACzD,CAAC;IACL,qBAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBY,wCAAc;AAqB3B;IAQI,8BAAoC,OAAgD;QAAhD,wBAAA,EAAA,gDAAgD;QAAhD,YAAO,GAAP,OAAO,CAAyC;QAPnE,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;QACvC,aAAQ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Ac,CAAG,CAAC,CAAC;YACvD,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;SAC7B;QACD,QAAQ,CAAC,IAAI,OAAb,QAAQ,EAAS,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAEnC,OAAO,QAAQ,CAAC;IACpB,CAAC;IACL,8BAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,0DAAuB"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-instance.d.ts b/dist/components/logger/g-logger-instance.d.ts deleted file mode 100644 index 35277182..00000000 --- a/dist/components/logger/g-logger-instance.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { GLoggerCallback, GLoggerContextType } from "./g-logger"; -import { GLoggerCallbackHolder } from "./g-logger-callback-holder"; -import { GLoggerPriority } from "./g-logger-priority"; -export declare abstract class GLoggerInstance { - protected readonly loggerCallbacks: GLoggerCallbackHolder; - readonly context?: string | { - constructor?: { - name: string; - } | undefined; - name?: string | undefined; - } | undefined; - protected static localPrint(type: GLoggerPriority, data: unknown[], callbacks: GLoggerCallbackHolder, context?: string): void; - protected static getContextString(context?: GLoggerContextType): string; - constructor(loggerCallbacks: GLoggerCallbackHolder, context?: string | { - constructor?: { - name: string; - } | undefined; - name?: string | undefined; - } | undefined); - setLogCallback(priority: GLoggerPriority, callback: GLoggerCallback): void; - setLogCallbacks(callbackHolder: GLoggerCallbackHolder): void; - private print; - log(...messages: unknown[]): void; - warn(...messages: unknown[]): void; - error(...messages: unknown[]): void; -} -//# sourceMappingURL=g-logger-instance.d.ts.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-instance.d.ts.map b/dist/components/logger/g-logger-instance.d.ts.map deleted file mode 100644 index 0240899d..00000000 --- a/dist/components/logger/g-logger-instance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-instance.d.ts","sourceRoot":"","sources":["../../../src/components/logger/g-logger-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,8BAAsB,eAAe;IAsB7B,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,qBAAqB;aACzC,OAAO,CAAC;;;;;;IAtB5B,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI7H,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,MAAM;gBAiBhD,eAAe,EAAE,qBAAqB,EACzC,OAAO,CAAC;;;;;iBAAoB;IAGzC,cAAc,CAAC,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAI1E,eAAe,CAAC,cAAc,EAAE,qBAAqB,GAAG,IAAI;IAInE,OAAO,CAAC,KAAK;IAMN,GAAG,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI;IAIjC,IAAI,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI;IAIlC,KAAK,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI;CAG7C"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-instance.js b/dist/components/logger/g-logger-instance.js deleted file mode 100644 index 7ccab365..00000000 --- a/dist/components/logger/g-logger-instance.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLoggerInstance = void 0; -var g_logger_priority_1 = require("./g-logger-priority"); -var GLoggerInstance = (function () { - function GLoggerInstance(loggerCallbacks, context) { - this.loggerCallbacks = loggerCallbacks; - this.context = context; - } - GLoggerInstance.localPrint = function (type, data, callbacks, context) { - callbacks.getCallback(type)(data, context); - }; - GLoggerInstance.getContextString = function (context) { - var _a; - if (typeof context === "string") { - return context; - } - if (typeof ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name) === "string") { - return context.constructor.name; - } - if (typeof (context === null || context === void 0 ? void 0 : context.name) === "string") { - return context.name; - } - return undefined; - }; - GLoggerInstance.prototype.setLogCallback = function (priority, callback) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.setCallback(priority, callback); - }; - GLoggerInstance.prototype.setLogCallbacks = function (callbackHolder) { - var _a; - (_a = this.loggerCallbacks) === null || _a === void 0 ? void 0 : _a.set(callbackHolder); - }; - GLoggerInstance.prototype.print = function (type, context) { - if (context === void 0) { context = ""; } - var data = []; - for (var _i = 2; _i < arguments.length; _i++) { - data[_i - 2] = arguments[_i]; - } - var realContext = GLoggerInstance.getContextString(context); - GLoggerInstance.localPrint(type, data, this.loggerCallbacks, realContext); - }; - GLoggerInstance.prototype.log = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([g_logger_priority_1.GLoggerPriority.LOG, this.context], messages)); - }; - GLoggerInstance.prototype.warn = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([g_logger_priority_1.GLoggerPriority.WARN, this.context], messages)); - }; - GLoggerInstance.prototype.error = function () { - var messages = []; - for (var _i = 0; _i < arguments.length; _i++) { - messages[_i] = arguments[_i]; - } - this.print.apply(this, __spreadArrays([g_logger_priority_1.GLoggerPriority.ERROR, this.context], messages)); - }; - return GLoggerInstance; -}()); -exports.GLoggerInstance = GLoggerInstance; -//# sourceMappingURL=g-logger-instance.js.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-instance.js.map b/dist/components/logger/g-logger-instance.js.map deleted file mode 100644 index d78ce4df..00000000 --- a/dist/components/logger/g-logger-instance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-instance.js","sourceRoot":"","sources":["../../../src/components/logger/g-logger-instance.ts"],"names":[],"mappings":";;;;;;;;;;AAEA,yDAAsD;AAEtD;IAqBI,yBACuB,eAAsC,EACzC,OAA4B;QADzB,oBAAe,GAAf,eAAe,CAAuB;QACzC,YAAO,GAAP,OAAO,CAAqB;IAEhD,CAAC;IAxBgB,0BAAU,GAA3B,UAA4B,IAAqB,EAAE,IAAe,EAAE,SAAgC,EAAE,OAAgB;QAClH,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAEgB,gCAAgB,GAAjC,UAAkC,OAA4B;;QAC1D,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAC7B,OAAO,OAAO,CAAC;SAClB;QAED,IAAI,cAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,0CAAE,IAAI,CAAA,KAAK,QAAQ,EAAE;YAChD,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;SACnC;QAED,IAAI,QAAO,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAA,KAAK,QAAQ,EAAE;YACnC,OAAO,OAAO,CAAC,IAAI,CAAC;SACvB;QAED,OAAO,SAAgB,CAAC;IAC5B,CAAC;IAOM,wCAAc,GAArB,UAAsB,QAAyB,EAAE,QAAyB;;QACtE,MAAA,IAAI,CAAC,eAAe,0CAAE,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE;IAC1D,CAAC;IAEM,yCAAe,GAAtB,UAAuB,cAAqC;;QACxD,MAAA,IAAI,CAAC,eAAe,0CAAE,GAAG,CAAC,cAAc,EAAE;IAC9C,CAAC;IAEO,+BAAK,GAAb,UAAc,IAAqB,EAAE,OAAgC;QAAhC,wBAAA,EAAA,YAAgC;QAAE,cAAkB;aAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;YAAlB,6BAAkB;;QACrF,IAAM,WAAW,GAAW,eAAe,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAEtE,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IAC9E,CAAC;IAEM,6BAAG,GAAV;QAAW,kBAAsB;aAAtB,UAAsB,EAAtB,qBAAsB,EAAtB,IAAsB;YAAtB,6BAAsB;;QAC7B,IAAI,CAAC,KAAK,OAAV,IAAI,kBAAO,mCAAe,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,GAAK,QAAQ,GAAE;IAC/D,CAAC;IAEM,8BAAI,GAAX;QAAY,kBAAsB;aAAtB,UAAsB,EAAtB,qBAAsB,EAAtB,IAAsB;YAAtB,6BAAsB;;QAC9B,IAAI,CAAC,KAAK,OAAV,IAAI,kBAAO,mCAAe,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,GAAK,QAAQ,GAAE;IAChE,CAAC;IAEM,+BAAK,GAAZ;QAAa,kBAAsB;aAAtB,UAAsB,EAAtB,qBAAsB,EAAtB,IAAsB;YAAtB,6BAAsB;;QAC/B,IAAI,CAAC,KAAK,OAAV,IAAI,kBAAO,mCAAe,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,GAAK,QAAQ,GAAE;IACjE,CAAC;IACL,sBAAC;AAAD,CAAC,AAnDD,IAmDC;AAnDqB,0CAAe"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-priority.d.ts b/dist/components/logger/g-logger-priority.d.ts deleted file mode 100644 index fc5078e0..00000000 --- a/dist/components/logger/g-logger-priority.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare enum GLoggerPriority { - LOG = "LOG", - WARN = "WARN", - ERROR = "ERROR", - VERBOSE = "VERBOSE", - SUCCESS = "SUCCESS" -} -//# sourceMappingURL=g-logger-priority.d.ts.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-priority.d.ts.map b/dist/components/logger/g-logger-priority.d.ts.map deleted file mode 100644 index 0f63b866..00000000 --- a/dist/components/logger/g-logger-priority.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-priority.d.ts","sourceRoot":"","sources":["../../../src/components/logger/g-logger-priority.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,GAAG,QAAY;IACf,IAAI,SAAY;IAChB,KAAK,UAAY;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB"} \ No newline at end of file diff --git a/dist/components/logger/g-logger-priority.js b/dist/components/logger/g-logger-priority.js deleted file mode 100644 index 4afb4fc5..00000000 --- a/dist/components/logger/g-logger-priority.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLoggerPriority = void 0; -var GLoggerPriority; -(function (GLoggerPriority) { - GLoggerPriority["LOG"] = "LOG"; - GLoggerPriority["WARN"] = "WARN"; - GLoggerPriority["ERROR"] = "ERROR"; - GLoggerPriority["VERBOSE"] = "VERBOSE"; - GLoggerPriority["SUCCESS"] = "SUCCESS"; -})(GLoggerPriority = exports.GLoggerPriority || (exports.GLoggerPriority = {})); -//# sourceMappingURL=g-logger-priority.js.map \ No newline at end of file diff --git a/dist/components/logger/g-logger-priority.js.map b/dist/components/logger/g-logger-priority.js.map deleted file mode 100644 index 38175fac..00000000 --- a/dist/components/logger/g-logger-priority.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger-priority.js","sourceRoot":"","sources":["../../../src/components/logger/g-logger-priority.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,8BAAe,CAAA;IACf,gCAAgB,CAAA;IAChB,kCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B"} \ No newline at end of file diff --git a/dist/components/logger/g-logger.d.ts b/dist/components/logger/g-logger.d.ts deleted file mode 100644 index 83b8f496..00000000 --- a/dist/components/logger/g-logger.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { GLoggerCallbackHolder } from "./g-logger-callback-holder"; -import { GLoggerInstance } from "./g-logger-instance"; -import { GLoggerPriority } from "./g-logger-priority"; -export declare type GLoggerContextType = string | { - constructor?: { - name: string; - }; - name?: string; -}; -export declare type GLoggerCallback = (message: unknown[], context?: string) => void; -export interface GLoggerFormatter { - format(priority: GLoggerPriority, data: unknown[], context?: string): string; -} -export declare class GLogger extends GLoggerInstance { - private static readonly skipContexts; - private static readonly skipRegexp; - private static readonly staticCallbacks; - static setCallbacks(callbackHolder: GLoggerCallbackHolder): void; - static getLine(steps?: number): string; - static createClassLogger(context: any, parent?: GLogger): GLogger; - static createArrayLogger(array: unknown[], context?: GLoggerContextType, mapper?: (priority: GLoggerPriority, messages: unknown[], context?: string) => unknown): GLogger; - static print(type: GLoggerPriority, context?: GLoggerContextType, ...data: unknown[]): void; - static log(message: string | string[], context?: GLoggerContextType): void; - static error(message: string | string[], context?: GLoggerContextType): void; - static warn(message: string | string[], context?: GLoggerContextType): void; - constructor(context?: GLoggerContextType, callbacks?: GLoggerCallbackHolder); - extends(subContext: any): GLogger; -} -//# sourceMappingURL=g-logger.d.ts.map \ No newline at end of file diff --git a/dist/components/logger/g-logger.d.ts.map b/dist/components/logger/g-logger.d.ts.map deleted file mode 100644 index 517b06e9..00000000 --- a/dist/components/logger/g-logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger.d.ts","sourceRoot":"","sources":["../../../src/components/logger/g-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,E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AG,IAAI;WASxF,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,IAAI;WAInE,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,IAAI;WAIrE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,IAAI;gBAK9E,OAAO,CAAC,EAAE,kBAAkB,EAC5B,SAAS,wBAAiC;IAKvC,OAAO,CAAC,UAAU,EAAE,GAAG,GAAG,OAAO;CAS3C"} \ No newline at end of file diff --git a/dist/components/logger/g-logger.js b/dist/components/logger/g-logger.js deleted file mode 100644 index 0999171f..00000000 --- a/dist/components/logger/g-logger.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GLogger = void 0; -var g_logger_callback_holder_1 = require("./g-logger-callback-holder"); -var g_logger_instance_1 = require("./g-logger-instance"); -var g_logger_priority_1 = require("./g-logger-priority"); -var GLogger = (function (_super) { - __extends(GLogger, _super); - function GLogger(context, callbacks) { - if (callbacks === void 0) { callbacks = GLogger.staticCallbacks.copy(); } - return _super.call(this, callbacks, context) || this; - } - GLogger.setCallbacks = function (callbackHolder) { - GLogger.staticCallbacks.set(callbackHolder); - }; - GLogger.getLine = function (steps) { - if (steps === void 0) { steps = 2; } - var error = new Error(); - if (error.stack) { - var results = error.stack.split("\n")[steps].trim().match(/\(.*\)/); - if (results && results[0]) { - return "at " + results[0]; - } - } - return ""; - }; - GLogger.createClassLogger = function (context, parent) { - var _a, _b; - if (parent) { - return parent.extends((context === null || context === void 0 ? void 0 : context.name) || ((_a = context === null || context === void 0 ? void 0 : context.constructor) === null || _a === void 0 ? void 0 : _a.name)); - } - return new GLogger((_b = context === null || context === void 0 ? void 0 : context.constructor) === null || _b === void 0 ? void 0 : _b.name); - }; - GLogger.createArrayLogger = function (array, context, mapper) { - return new GLogger(context, g_logger_callback_holder_1.GLoggerCallbackHolder.createArrayCallbacks(array, { mapper: mapper })); - }; - GLogger.print = function (type, context) { - if (context === void 0) { context = ""; } - var data = []; - for (var _i = 2; _i < arguments.length; _i++) { - data[_i - 2] = arguments[_i]; - } - var realContext = GLogger.getContextString(context); - var result = realContext && realContext.match(GLogger.skipRegexp); - if (result) { - return; - } - g_logger_instance_1.GLoggerInstance.localPrint(type, data, GLogger.staticCallbacks, realContext); - }; - GLogger.log = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([g_logger_priority_1.GLoggerPriority.LOG, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.error = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([g_logger_priority_1.GLoggerPriority.ERROR, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.warn = function (message, context) { - GLogger.print.apply(GLogger, __spreadArrays([g_logger_priority_1.GLoggerPriority.WARN, context], (Array.isArray(message) ? message : [message]))); - }; - GLogger.prototype.extends = function (subContext) { - var currentContext = GLogger.getContextString(this.context); - var subContextNameContext = GLogger.getContextString(subContext); - return new GLogger(currentContext ? currentContext + ":" + subContextNameContext : subContextNameContext, this.loggerCallbacks.copy()); - }; - GLogger.skipContexts = ["renderWorldStatic", "CanvasDirective", "WorldRendererService", "viewport", "WorldInputService"]; - GLogger.skipRegexp = new RegExp("" + GLogger.skipContexts.join("|"), "gi"); - GLogger.staticCallbacks = g_logger_callback_holder_1.GLoggerCallbackHolder.createConsoleCallbacks(); - return GLogger; -}(g_logger_instance_1.GLoggerInstance)); -exports.GLogger = GLogger; -//# sourceMappingURL=g-logger.js.map \ No newline at end of file diff --git a/dist/components/logger/g-logger.js.map b/dist/components/logger/g-logger.js.map deleted file mode 100644 index 408ceed2..00000000 --- a/dist/components/logger/g-logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g-logger.js","sourceRoot":"","sources":["../../../src/components/logger/g-logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAmE;AACnE,yDAAsD;AACtD,yDAAsD;AAStD;IAA6B,2BAAe;IAuDxC,iBACI,OAA4B,EAC5B,SAA0C;QAA1C,0BAAA,EAAA,YAAY,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE;eAE1C,kBAAM,SAAS,EAAE,OAAO,CAAC;IAC7B,CAAC;IAvDa,oBAAY,GAA1B,UAA2B,cAAqC;QAC5D,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChD,CAAC;IAEa,eAAO,GAArB,UAAsB,KAAS;QAAT,sBAAA,EAAA,SAAS;QAC3B,IAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;QAC1B,IAAI,KAAK,CAAC,KAAK,EAAE;YACb,IAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACtE,IAAI,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE;gBACvB,OAAO,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CA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CAAA,AAvED,CAA6B,mCAAe,GAuE3C;AAvEY,0BAAO"} \ No newline at end of file diff --git a/dist/components/number-counter.d.ts b/dist/components/number-counter.d.ts deleted file mode 100644 index 71b386a6..00000000 --- a/dist/components/number-counter.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare class NumberCounter { - private min; - private max; - private sum; - private readonly numbers; - add(value: number): void; - getMin(): number; - getMax(): number; - getCount(): number; - getAverage(): number; - addAll(items: number[]): void; -} -//# sourceMappingURL=number-counter.d.ts.map \ No newline at end of file diff --git a/dist/components/number-counter.d.ts.map b/dist/components/number-counter.d.ts.map deleted file mode 100644 index ff039967..00000000 --- a/dist/components/number-counter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"number-counter.d.ts","sourceRoot":"","sources":["../../src/components/number-counter.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACtB,OAAO,CAAC,GAAG,CAAmC;IAC9C,OAAO,CAAC,GAAG,CAAoC;IAC/C,OAAO,CAAC,GAAG,CAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IAEjC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAQxB,MAAM,IAAI,MAAM;IAIhB,MAAM,IAAI,MAAM;IAIhB,QAAQ,IAAI,MAAM;IAIlB,UAAU,IAAI,MAAM;IAIpB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI;CAGvC"} \ No newline at end of file diff --git a/dist/components/number-counter.js b/dist/components/number-counter.js deleted file mode 100644 index 8783a1c4..00000000 --- a/dist/components/number-counter.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NumberCounter = void 0; -var NumberCounter = (function () { - function NumberCounter() { - this.min = Infinity; - this.max = -Infinity; - this.sum = 0; - this.numbers = []; - } - NumberCounter.prototype.add = function (value) { - this.numbers.push(value); - this.min = Math.min(this.min, value); - this.max = Math.max(this.max, value); - this.sum += value; - }; - NumberCounter.prototype.getMin = function () { - return this.min; - }; - NumberCounter.prototype.getMax = function () { - return this.max; - }; - NumberCounter.prototype.getCount = function () { - return this.numbers.length; - }; - NumberCounter.prototype.getAverage = function () { - return this.sum / this.numbers.length; - }; - NumberCounter.prototype.addAll = function (items) { - items.forEach(this.add, this); - }; - return NumberCounter; -}()); -exports.NumberCounter = NumberCounter; -//# sourceMappingURL=number-counter.js.map \ No newline at end of file diff --git a/dist/components/number-counter.js.map b/dist/components/number-counter.js.map deleted file mode 100644 index f6196cfd..00000000 --- a/dist/components/number-counter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"number-counter.js","sourceRoot":"","sources":["../../src/components/number-counter.ts"],"names":[],"mappings":";;;AAAA;IAAA;QACY,QAAG,GAA0B,QAAQ,CAAC;QACtC,QAAG,GAA0B,CAAC,QAAQ,CAAC;QACvC,QAAG,GAA0B,CAAC,CAAC;QACtB,YAAO,GAAa,EAAE,CAAC;IA6B5C,CAAC;IA3BU,2BAAG,GAAV,UAAW,KAAa;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC;IACtB,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,gCAAQ,GAAf;QACI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC;IAEM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC1C,CAAC;IAEM,8BAAM,GAAb,UAAc,KAAe;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IACL,oBAAC;AAAD,CAAC,AAjCD,IAiCC;AAjCY,sCAAa"} \ No newline at end of file diff --git a/dist/components/paginator.d.ts b/dist/components/paginator.d.ts deleted file mode 100644 index a910d8b1..00000000 --- a/dist/components/paginator.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export declare class Paginator { - private readonly allItems; - private readonly itemsPerPage; - private actList; - private actualPage; - private readonly lastPage; - constructor(allItems: T[], itemsPerPage?: number); - getActualPage(): number; - getPages(): number; - getPagesAround(): number[]; - getList(): T[]; - goToNext(): T[]; - gotTo(page: number): T[]; - goToPrev(): T[]; - goToFirst(): T[]; - goToLast(): T[]; - private _reCalcList; -} -//# sourceMappingURL=paginator.d.ts.map \ No newline at end of file diff --git a/dist/components/paginator.d.ts.map b/dist/components/paginator.d.ts.map deleted file mode 100644 index b89c99fb..00000000 --- a/dist/components/paginator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginator.d.ts","sourceRoot":"","sources":["../../src/components/paginator.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS,CAAC,CAAC,GAAG,OAAO;IAKX,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;IALhD,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEE,QAAQ,EAAE,CAAC,EAAE,EACb,YAAY,SAA0B;IAKnE,aAAa,IAAI,MAAM;IAIvB,QAAQ,IAAI,MAAM;IAIlB,cAAc,IAAI,MAAM,EAAE;IAuB1B,OAAO,IAAI,CAAC,EAAE;IAId,QAAQ,IAAI,CAAC,EAAE;IAUf,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE;IAUxB,QAAQ,IAAI,CAAC,EAAE;IAUf,SAAS,IAAI,CAAC,EAAE;IAMhB,QAAQ,IAAI,CAAC,EAAE;IAMtB,OAAO,CAAC,WAAW;CAMtB"} \ No newline at end of file diff --git a/dist/components/paginator.js b/dist/components/paginator.js deleted file mode 100644 index 2a41553d..00000000 --- a/dist/components/paginator.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Paginator = void 0; -var gtools_config_1 = require("../config/gtools-config"); -var Paginator = (function () { - function Paginator(allItems, itemsPerPage) { - if (itemsPerPage === void 0) { itemsPerPage = gtools_config_1.GToolsConfig.PAGE_LIMIT; } - this.allItems = allItems; - this.itemsPerPage = itemsPerPage; - this.actualPage = 0; - this.lastPage = allItems ? Math.floor(allItems.length / this.itemsPerPage) : 0; - this.actList = this._reCalcList(); - } - Paginator.prototype.getActualPage = function () { - return this.actualPage + 1; - }; - Paginator.prototype.getPages = function () { - return this.lastPage + 1; - }; - Paginator.prototype.getPagesAround = function () { - if (this.actualPage < 2) { - return [1, 2, 3, 4, 5]; - } - if (this.actualPage > this.lastPage - 3) { - return [ - this.lastPage - 3, - this.lastPage - 2, - this.lastPage - 1, - this.lastPage, - this.lastPage + 1, - ]; - } - return [ - this.actualPage - 1, - this.actualPage, - this.actualPage + 1, - this.actualPage + 2, - this.actualPage + 3, - ]; - }; - Paginator.prototype.getList = function () { - return this.actList; - }; - Paginator.prototype.goToNext = function () { - if (this.actualPage < this.lastPage) { - this.actualPage++; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.gotTo = function (page) { - if (page >= 0 && page <= this.lastPage) { - this.actualPage = page; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.goToPrev = function () { - if (this.actualPage > 0) { - this.actualPage--; - return this._reCalcList(); - } - return this.getList(); - }; - Paginator.prototype.goToFirst = function () { - this.actualPage = 0; - return this._reCalcList(); - }; - Paginator.prototype.goToLast = function () { - this.actualPage = this.lastPage; - return this._reCalcList(); - }; - Paginator.prototype._reCalcList = function () { - var start = this.actualPage * this.itemsPerPage; - this.actList = this.allItems ? this.allItems.slice(start, start + this.itemsPerPage) : []; - return this.actList; - }; - return Paginator; -}()); -exports.Paginator = Paginator; -//# sourceMappingURL=paginator.js.map \ No newline at end of file diff --git a/dist/components/paginator.js.map b/dist/components/paginator.js.map deleted file mode 100644 index b8f124c0..00000000 --- a/dist/components/paginator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginator.js","sourceRoot":"","sources":["../../src/components/paginator.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAEvD;IAKI,mBAAoC,QAAa,EACb,YAAsC;QAAtC,6BAAA,EAAA,eAAe,4BAAY,CAAC,UAAU;QADtC,aAAQ,GAAR,QAAQ,CAAK;QACb,iBAAY,GAAZ,YAAY,CAA0B;QAJlE,eAAU,GAAG,CAAC,CAAC;QAKnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,IAAI,CAAC,OAAO,GAAI,IAAI,CAAC,WAAW,EAAE,CAAC;IACvC,CAAC;IAEM,iCAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IAC/B,CAAC;IAEM,4BAAQ,GAAf;QACI,OAAO,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEM,kCAAc,GAArB;QACI,IAAI,IAAI,CAAC,UAAU,GAAG,CAAC,EAAE;YACrB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAC1B;QACD,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC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O,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAEM,4BAAQ,GAAf;QACI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEhC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAEO,+BAAW,GAAnB;QACI,IAAM,KAAK,GAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAE1F,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACL,gBAAC;AAAD,CAAC,AA9FD,IA8FC;AA9FY,8BAAS"} \ No newline at end of file diff --git a/dist/config/gtools-config.d.ts b/dist/config/gtools-config.d.ts deleted file mode 100644 index 7228163c..00000000 --- a/dist/config/gtools-config.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { GToolsConfigInterface } from "./gtools-config.interface"; -/** - * @example - * class ClassOwnConfig extends ClassGToolsConfig implements OwnConfigInterface { - * public name = ""; - * } - * - * export const OwnConfig = new ClassOwnConfig(); - * - * @see GToolsConfigInterface - */ -export declare class ClassGToolsConfig implements GToolsConfigInterface { - get URL_API(): string; - get PAGE_LIMIT(): number; - get LANGUAGE(): string; - get VERSION(): string; -} -export declare function initConfig(appConfig: GToolsConfigInterface): void; -export declare const GToolsConfig: ClassGToolsConfig; -//# sourceMappingURL=gtools-config.d.ts.map \ No newline at end of file diff --git a/dist/config/gtools-config.d.ts.map b/dist/config/gtools-config.d.ts.map deleted file mode 100644 index 76c1566c..00000000 --- a/dist/config/gtools-config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.d.ts","sourceRoot":"","sources":["../../src/config/gtools-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAiBlE;;;;;;;;;GASG;AACH,qBAAa,iBAAkB,YAAW,qBAAqB;IAC3D,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;CAEJ;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,qBAAqB,GAAG,IAAI,CAEjE;AAED,eAAO,MAAM,YAAY,mBAA0B,CAAC"} \ No newline at end of file diff --git a/dist/config/gtools-config.interface.d.ts b/dist/config/gtools-config.interface.d.ts deleted file mode 100644 index a9c79bcb..00000000 --- a/dist/config/gtools-config.interface.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @example - * export interface OwnConfigInterface extends GToolsConfigInterface { - * name: string; - * } - * @see ClassGToolsConfig - */ -export interface GToolsConfigInterface { - URL_API: string; - LANGUAGE: string; - VERSION: string; - PAGE_LIMIT: number; -} -//# sourceMappingURL=gtools-config.interface.d.ts.map \ No newline at end of file diff --git a/dist/config/gtools-config.interface.d.ts.map b/dist/config/gtools-config.interface.d.ts.map deleted file mode 100644 index b651b5d3..00000000 --- a/dist/config/gtools-config.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.interface.d.ts","sourceRoot":"","sources":["../../src/config/gtools-config.interface.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/config/gtools-config.interface.js b/dist/config/gtools-config.interface.js deleted file mode 100644 index 17bf32f2..00000000 --- a/dist/config/gtools-config.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=gtools-config.interface.js.map \ No newline at end of file diff --git a/dist/config/gtools-config.interface.js.map b/dist/config/gtools-config.interface.js.map deleted file mode 100644 index 3bd8bc26..00000000 --- a/dist/config/gtools-config.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.interface.js","sourceRoot":"","sources":["../../src/config/gtools-config.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/config/gtools-config.js b/dist/config/gtools-config.js deleted file mode 100644 index 8f527932..00000000 --- a/dist/config/gtools-config.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GToolsConfig = exports.initConfig = exports.ClassGToolsConfig = void 0; -var config; -var checkConfig = function () { - if (!config) { - return { - URL_API: "", - LANGUAGE: "", - VERSION: "", - PAGE_LIMIT: 0, - }; - } - return config; -}; -var ClassGToolsConfig = (function () { - function ClassGToolsConfig() { - } - Object.defineProperty(ClassGToolsConfig.prototype, "URL_API", { - get: function () { - return checkConfig().URL_API; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "PAGE_LIMIT", { - get: function () { - return checkConfig().PAGE_LIMIT; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "LANGUAGE", { - get: function () { - return checkConfig().LANGUAGE; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(ClassGToolsConfig.prototype, "VERSION", { - get: function () { - return checkConfig().VERSION; - }, - enumerable: false, - configurable: true - }); - return ClassGToolsConfig; -}()); -exports.ClassGToolsConfig = ClassGToolsConfig; -function initConfig(appConfig) { - config = appConfig; -} -exports.initConfig = initConfig; -exports.GToolsConfig = new ClassGToolsConfig(); -//# sourceMappingURL=gtools-config.js.map \ No newline at end of file diff --git a/dist/config/gtools-config.js.map b/dist/config/gtools-config.js.map deleted file mode 100644 index b43862d4..00000000 --- a/dist/config/gtools-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gtools-config.js","sourceRoot":"","sources":["../../src/config/gtools-config.ts"],"names":[],"mappings":";;;AAEA,IAAI,MAA6B,CAAC;AAElC,IAAM,WAAW,GAAG;IAChB,IAAI,CAAC,MAAM,EAAE;QACT,OAAO;YACH,OAAO,EAAK,EAAE;YACd,QAAQ,EAAI,EAAE;YACd,OAAO,EAAK,EAAE;YACd,UAAU,EAAE,CAAC;SAChB,CAAC;KACL;IAED,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAYF;IAAA;IAiBA,CAAC;IAhBG,sBAAW,sCAAO;aAAlB;YACI,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;QACjC,CAAC;;;OAAA;IAED,sBAAW,yCAAU;aAArB;YACI,OAAO,WAAW,EAAE,CAAC,UAAU,CAAC;QACpC,CAAC;;;OAAA;IAED,sBAAW,uCAAQ;aAAnB;YACI,OAAO,WAAW,EAAE,CAAC,QAAQ,CAAC;QAClC,CAAC;;;OAAA;IAED,sBAAW,sCAAO;aAAlB;YACI,OAAO,WAAW,EAAE,CAAC,OAAO,CAAC;QACjC,CAAC;;;OAAA;IAEL,wBAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBY,8CAAiB;AAmB9B,SAAgB,UAAU,CAAC,SAAgC;IACvD,MAAM,GAAG,SAAS,CAAC;AACvB,CAAC;AAFD,gCAEC;AAEY,QAAA,YAAY,GAAG,IAAI,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/constants.d.ts b/dist/constants.d.ts deleted file mode 100644 index 234e45a9..00000000 --- a/dist/constants.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS = true; -//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/constants.d.ts.map b/dist/constants.d.ts.map deleted file mode 100644 index 6bdb7d0f..00000000 --- a/dist/constants.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/constants.js b/dist/constants.js deleted file mode 100644 index 9de661d6..00000000 --- a/dist/constants.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS = void 0; -exports.ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS = true; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/constants.js.map b/dist/constants.js.map deleted file mode 100644 index 47f0a35e..00000000 --- a/dist/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mCAAmC,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/decorators/deprecated.decorator.d.ts b/dist/decorators/deprecated.decorator.d.ts deleted file mode 100644 index c38ce8bd..00000000 --- a/dist/decorators/deprecated.decorator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { PropertyDecorator } from "gtools/types"; -export declare function Deprecated(value?: string): PropertyDecorator; -//# sourceMappingURL=deprecated.decorator.d.ts.map \ No newline at end of file diff --git a/dist/decorators/deprecated.decorator.d.ts.map b/dist/decorators/deprecated.decorator.d.ts.map deleted file mode 100644 index 1691f343..00000000 --- a/dist/decorators/deprecated.decorator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deprecated.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/deprecated.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAS5D"} \ No newline at end of file diff --git a/dist/decorators/deprecated.decorator.js b/dist/decorators/deprecated.decorator.js deleted file mode 100644 index 3a6993cd..00000000 --- a/dist/decorators/deprecated.decorator.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Deprecated = void 0; -function Deprecated(value) { - return function (target, propertyKey, descriptor) { - var oldMethod = target[propertyKey]; - descriptor.value = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - console.warn("Method " + target.constructor.name + "." + propertyKey + " is deprecated. " + (value || "")); - return oldMethod.apply(target, args); - }; - }; -} -exports.Deprecated = Deprecated; -//# sourceMappingURL=deprecated.decorator.js.map \ No newline at end of file diff --git a/dist/decorators/deprecated.decorator.js.map b/dist/decorators/deprecated.decorator.js.map deleted file mode 100644 index dbf7afd2..00000000 --- a/dist/decorators/deprecated.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deprecated.decorator.js","sourceRoot":"","sources":["../../src/decorators/deprecated.decorator.ts"],"names":[],"mappings":";;;AAEA,SAAgB,UAAU,CAAC,KAAc;IACrC,OAAO,UAAC,MAAW,EAAE,WAAmB,EAAE,UAA8B;QACpE,IAAM,SAAS,GAAI,MAAM,CAAC,WAAW,CAAC,CAAC;QACvC,UAAU,CAAC,KAAK,GAAG;YAAC,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAC9B,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,GAAG,GAAG,WAAW,GAAG,kBAAkB,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;YAE3G,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AATD,gCASC"} \ No newline at end of file diff --git a/dist/decorators/final-class.decorator.d.ts b/dist/decorators/final-class.decorator.d.ts deleted file mode 100644 index 599cf6b8..00000000 --- a/dist/decorators/final-class.decorator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function FinalClass Record>(target: T): T; -//# sourceMappingURL=final-class.decorator.d.ts.map \ No newline at end of file diff --git a/dist/decorators/final-class.decorator.d.ts.map b/dist/decorators/final-class.decorator.d.ts.map deleted file mode 100644 index efcb8143..00000000 --- a/dist/decorators/final-class.decorator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"final-class.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/final-class.decorator.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,CAAC,SAAS,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CASjG"} \ No newline at end of file diff --git a/dist/decorators/final-class.decorator.js b/dist/decorators/final-class.decorator.js deleted file mode 100644 index 528a6e0b..00000000 --- a/dist/decorators/final-class.decorator.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FinalClass = void 0; -function FinalClass(target) { - return (function (_super) { - __extends(Final, _super); - function Final() { - var _newTarget = this.constructor; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = this; - if (_newTarget !== Final) { - throw new Error("Cannot inherit from final class"); - } - _this = _super.apply(this, args) || this; - return _this; - } - return Final; - }(target)); -} -exports.FinalClass = FinalClass; -//# sourceMappingURL=final-class.decorator.js.map \ No newline at end of file diff --git a/dist/decorators/final-class.decorator.js.map b/dist/decorators/final-class.decorator.js.map deleted file mode 100644 index 89672ae0..00000000 --- a/dist/decorators/final-class.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"final-class.decorator.js","sourceRoot":"","sources":["../../src/decorators/final-class.decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAgB,UAAU,CAA2D,MAAS;IAC1F;QAA2B,yBAAM;QAC7B;;YAAmB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAAjC,iBAKC;YAJG,IAAI,eAAe,KAAK,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,2BAAS,IAAI,UAAE;;QACnB,CAAC;QACL,YAAC;IAAD,CAAC,AAPM,CAAoB,MAAM,GAO/B;AACN,CAAC;AATD,gCASC"} \ No newline at end of file diff --git a/dist/decorators/index.d.ts b/dist/decorators/index.d.ts deleted file mode 100644 index e4d7f423..00000000 --- a/dist/decorators/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./deprecated.decorator"; -export * from "./final-class.decorator"; -export * from "./mapper.decorator"; -export * from "./singleton.decorator"; -export * from "./watch.decorator"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/decorators/index.d.ts.map b/dist/decorators/index.d.ts.map deleted file mode 100644 index 5c40276c..00000000 --- a/dist/decorators/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/decorators/index.js b/dist/decorators/index.js deleted file mode 100644 index ea557bb8..00000000 --- a/dist/decorators/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./deprecated.decorator"), exports); -__exportStar(require("./final-class.decorator"), exports); -__exportStar(require("./mapper.decorator"), exports); -__exportStar(require("./singleton.decorator"), exports); -__exportStar(require("./watch.decorator"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/decorators/index.js.map b/dist/decorators/index.js.map deleted file mode 100644 index 98c8e349..00000000 --- a/dist/decorators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC"} \ No newline at end of file diff --git a/dist/decorators/mapper.decorator.d.ts b/dist/decorators/mapper.decorator.d.ts deleted file mode 100644 index 988b8c9c..00000000 --- a/dist/decorators/mapper.decorator.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function Mapper(params?: { - onGet?: (oldValue: any) => any; - onSet?: (oldValue: any) => any; -}, prefix?: string): any; -//# sourceMappingURL=mapper.decorator.d.ts.map \ No newline at end of file diff --git a/dist/decorators/mapper.decorator.d.ts.map b/dist/decorators/mapper.decorator.d.ts.map deleted file mode 100644 index 74ad9c80..00000000 --- a/dist/decorators/mapper.decorator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapper.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/mapper.decorator.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,MAAM,GAAE;IAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAA;CAAO,EAAE,MAAM,SAAM,GAAG,GAAG,CAyBzH"} \ No newline at end of file diff --git a/dist/decorators/mapper.decorator.js b/dist/decorators/mapper.decorator.js deleted file mode 100644 index 6f80f00c..00000000 --- a/dist/decorators/mapper.decorator.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Mapper = void 0; -function Mapper(params, prefix) { - if (params === void 0) { params = {}; } - if (prefix === void 0) { prefix = "_"; } - return function (target, key) { - if (!delete target[key]) { - return; - } - var descriptor = { - enumerable: true, - configurable: true, - }; - var newName = prefix + key; - if (params) { - if (typeof params.onGet === "function") { - descriptor.get = function () { return params.onGet && params.onGet(target[newName]); }; - } - else { - descriptor.get = function () { return target[newName]; }; - } - if (typeof params.onSet === "function") { - descriptor.set = function (newVal) { return target[newName] = params.onSet && params.onSet(newVal); }; - } - else { - descriptor.set = function (value) { return target[newName] = value; }; - } - } - Object.defineProperty(target, key, descriptor); - }; -} -exports.Mapper = Mapper; -//# sourceMappingURL=mapper.decorator.js.map \ No newline at end of file diff --git a/dist/decorators/mapper.decorator.js.map b/dist/decorators/mapper.decorator.js.map deleted file mode 100644 index 1ceb72fb..00000000 --- a/dist/decorators/mapper.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapper.decorator.js","sourceRoot":"","sources":["../../src/decorators/mapper.decorator.ts"],"names":[],"mappings":";;;AAAA,SAAgB,MAAM,CAAC,MAA+E,EAAE,MAAY;IAA7F,uBAAA,EAAA,WAA+E;IAAE,uBAAA,EAAA,YAAY;IAChH,OAAO,UAAC,MAAW,EAAE,GAAW;QAC5B,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,IAAM,UAAU,GAAuB;YACnC,UAAU,EAAI,IAAI;YAClB,YAAY,EAAE,IAAI;SACrB,CAAC;QACF,IAAM,OAAO,GAA0B,MAAM,GAAG,GAAG,CAAC;QACpD,IAAI,MAAM,EAAE;YACR,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,cAAM,OAAA,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAA7C,CAA6C,CAAC;aACxE;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,cAAM,OAAA,MAAM,CAAC,OAAO,CAAC,EAAf,CAAe,CAAC;aAC1C;YAED,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;gBACpC,UAAU,CAAC,GAAG,GAAG,UAAC,MAAW,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAtD,CAAsD,CAAC;aAC5F;iBAAM;gBACH,UAAU,CAAC,GAAG,GAAG,UAAC,KAAK,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,EAAvB,CAAuB,CAAC;aACvD;SACJ;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC;AACN,CAAC;AAzBD,wBAyBC"} \ No newline at end of file diff --git a/dist/decorators/singleton.decorator.d.ts b/dist/decorators/singleton.decorator.d.ts deleted file mode 100644 index 56f6c931..00000000 --- a/dist/decorators/singleton.decorator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function Singleton any>(constructor: T): any; -//# sourceMappingURL=singleton.decorator.d.ts.map \ No newline at end of file diff --git a/dist/decorators/singleton.decorator.d.ts.map b/dist/decorators/singleton.decorator.d.ts.map deleted file mode 100644 index 49ad4919..00000000 --- a/dist/decorators/singleton.decorator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"singleton.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/singleton.decorator.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,CAAC,SAAS,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,WAAW,EAAE,CAAC,GAAG,GAAG,CAYnF"} \ No newline at end of file diff --git a/dist/decorators/singleton.decorator.js b/dist/decorators/singleton.decorator.js deleted file mode 100644 index 664b65f5..00000000 --- a/dist/decorators/singleton.decorator.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Singleton = void 0; -var instances = {}; -function Singleton(constructor) { - var className = constructor.name; - return (function (_super) { - __extends(class_1, _super); - function class_1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var _this = _super.apply(this, args) || this; - if (instances[className]) { - throw new Error("Instance of " + className + " is already created"); - } - instances[className] = _this; - return _this; - } - return class_1; - }(constructor)); -} -exports.Singleton = Singleton; -//# sourceMappingURL=singleton.decorator.js.map \ No newline at end of file diff --git a/dist/decorators/singleton.decorator.js.map b/dist/decorators/singleton.decorator.js.map deleted file mode 100644 index 2c84d0a1..00000000 --- a/dist/decorators/singleton.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"singleton.decorator.js","sourceRoot":"","sources":["../../src/decorators/singleton.decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAM,SAAS,GAAiC,EAAE,CAAC;AAEnD,SAAgB,SAAS,CAAuC,WAAc;IAC1E,IAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC;IAEnC;QAAqB,2BAAW;QAC5B;YAAmB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAAjC,+BACa,IAAI,UAKhB;YAJG,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,cAAc,GAAG,SAAS,GAAG,qBAAqB,CAAC,CAAC;aACvE;YACD,SAAS,CAAC,SAAS,CAAC,GAAG,KAAI,CAAC;;QAChC,CAAC;QACL,cAAC;IAAD,CAAC,AARM,CAAc,WAAW,GAQ9B;AACN,CAAC;AAZD,8BAYC"} \ No newline at end of file diff --git a/dist/decorators/watch.decorator.d.ts b/dist/decorators/watch.decorator.d.ts deleted file mode 100644 index 079db823..00000000 --- a/dist/decorators/watch.decorator.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PropertyDecorator } from "gtools/types"; -export interface WatchOptions { - enumerable?: boolean; - configurable?: boolean; - prefix?: string; -} -export declare function Watch(onSet?: (newValue: any, oldValue: any) => any, options?: WatchOptions): PropertyDecorator; -//# sourceMappingURL=watch.decorator.d.ts.map \ No newline at end of file diff --git a/dist/decorators/watch.decorator.d.ts.map b/dist/decorators/watch.decorator.d.ts.map deleted file mode 100644 index 24fca280..00000000 --- a/dist/decorators/watch.decorator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"watch.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/watch.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,YAAY;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,iBAAiB,CAqB9G"} \ No newline at end of file diff --git a/dist/decorators/watch.decorator.js b/dist/decorators/watch.decorator.js deleted file mode 100644 index e9ef0d06..00000000 --- a/dist/decorators/watch.decorator.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Watch = void 0; -function Watch(onSet, options) { - var prefix = options && options.prefix || "_"; - return function (target, key) { - var setter = function (newVal) { - if (onSet) { - target[prefix + key] = onSet(newVal, target[prefix + key]); - } - target[prefix + key] = newVal; - }; - if (!delete target[key]) { - return; - } - Object.defineProperty(target, key, { - get: function () { return target[prefix + key]; }, - set: setter, - enumerable: options && typeof options.enumerable === "boolean" ? options.enumerable : true, - configurable: options && typeof options.configurable === "boolean" ? options.configurable : true, - }); - }; -} -exports.Watch = Watch; -//# sourceMappingURL=watch.decorator.js.map \ No newline at end of file diff --git a/dist/decorators/watch.decorator.js.map b/dist/decorators/watch.decorator.js.map deleted file mode 100644 index b35b451d..00000000 --- a/dist/decorators/watch.decorator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"watch.decorator.js","sourceRoot":"","sources":["../../src/decorators/watch.decorator.ts"],"names":[],"mappings":";;;AAQA,SAAgB,KAAK,CAAC,KAA6C,EAAE,OAAsB;IACvF,IAAM,MAAM,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;IAEhD,OAAO,UAAC,MAAW,EAAE,GAAW;QAC5B,IAAM,MAAM,GAAG,UAAC,MAAW;YACvB,IAAI,KAAK,EAAE;gBACP,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;aAC9D;YACD,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC;QAClC,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE;YACrB,OAAO;SACV;QACD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE;YAC/B,GAAG,EAAW,cAAM,OAAA,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAApB,CAAoB;YACxC,GAAG,EAAW,MAAM;YACpB,UAAU,EAAI,OAAO,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI;YAC5F,YAAY,EAAE,OAAO,IAAI,OAAO,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;SACnG,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AArBD,sBAqBC"} \ No newline at end of file diff --git a/dist/dom/canvas-camera.d.ts b/dist/dom/canvas-camera.d.ts deleted file mode 100644 index ba6bed7a..00000000 --- a/dist/dom/canvas-camera.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -export interface CanvasCameraSettings { - readonly fieldOfView?: number; -} -export interface CanvasCameraViewport { - left: number; - right: number; - top: number; - bottom: number; - width: number; - height: number; - scale: [number, number]; -} -export declare class CanvasCamera { - private readonly context; - private readonly settings; - private distance; - private readonly lookAt; - private readonly viewport; - private readonly fieldOfView; - private readonly aspectRatio; - constructor(context: CanvasRenderingContext2D, settings: CanvasCameraSettings); - begin(): void; - end(): void; - private applyScale; - private applyTranslation; - private updateViewport; - zoomTo(zoom: number): void; - moveTo(x: number, y: number): void; - screenToWorld(x: number, y: number, obj?: SimpleVector2): SimpleVector2; - worldToScreen(x: number, y: number, obj?: SimpleVector2): SimpleVector2; - private addListeners; -} -//# sourceMappingURL=canvas-camera.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-camera.d.ts.map b/dist/dom/canvas-camera.d.ts.map deleted file mode 100644 index d77a3044..00000000 --- a/dist/dom/canvas-camera.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-camera.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-camera.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IAEjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3B;AAYD,qBAAa,YAAY;IAOF,OAAO,CAAC,QAAQ,CAAC,OAAO;IAA4B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IANhG,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+C;IACxE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4C;IACxE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0D;gBAElD,OAAO,EAAE,wBAAwB,EAAmB,QAAQ,EAAE,oBAAoB;IAK/G,KAAK,IAAI,IAAI;IAMb,GAAG,IAAI,IAAI;IAIlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,cAAc;IAWf,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK1B,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAMlC,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,aAA4B,GAAG,aAAa;IAQrF,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,GAAE,aAA4B,GAAG,aAAa;IAO5F,OAAO,CAAC,YAAY;CA4BvB"} \ No newline at end of file diff --git a/dist/dom/canvas-camera.js b/dist/dom/canvas-camera.js deleted file mode 100644 index de98d14b..00000000 --- a/dist/dom/canvas-camera.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CanvasCamera = void 0; -var defaultCameraViewport = { - left: 0, - right: 0, - top: 0, - bottom: 0, - width: 0, - height: 0, - scale: [1, 1], -}; -var CanvasCamera = (function () { - function CanvasCamera(context, settings) { - var _a; - this.context = context; - this.settings = settings; - this.distance = 1000; - this.lookAt = [0, 0]; - this.viewport = Object.assign({}, defaultCameraViewport); - this.fieldOfView = (_a = this.settings.fieldOfView) !== null && _a !== void 0 ? _a : Math.PI / 4; - this.aspectRatio = this.context.canvas.width / this.context.canvas.height; - this.addListeners(); - this.updateViewport(); - } - CanvasCamera.prototype.begin = function () { - this.context.save(); - this.applyScale(); - this.applyTranslation(); - }; - CanvasCamera.prototype.end = function () { - this.context.restore(); - }; - CanvasCamera.prototype.applyScale = function () { - this.context.scale(this.viewport.scale[0], this.viewport.scale[1]); - }; - CanvasCamera.prototype.applyTranslation = function () { - this.context.translate(-this.viewport.left, -this.viewport.top); - }; - CanvasCamera.prototype.updateViewport = function () { - this.viewport.width = this.distance * Math.tan(this.fieldOfView); - this.viewport.height = this.viewport.width / this.aspectRatio; - this.viewport.left = this.lookAt[0] - (this.viewport.width / 2); - this.viewport.top = this.lookAt[1] - (this.viewport.height / 2); - this.viewport.right = this.viewport.left + this.viewport.width; - this.viewport.bottom = this.viewport.top + this.viewport.height; - this.viewport.scale[0] = this.context.canvas.width / this.viewport.width; - this.viewport.scale[1] = this.context.canvas.height / this.viewport.height; - }; - CanvasCamera.prototype.zoomTo = function (zoom) { - this.distance = zoom; - this.updateViewport(); - }; - CanvasCamera.prototype.moveTo = function (x, y) { - this.lookAt[0] = x; - this.lookAt[1] = y; - this.updateViewport(); - }; - CanvasCamera.prototype.screenToWorld = function (x, y, obj) { - if (obj === void 0) { obj = { x: 0, y: 0 }; } - obj = obj || {}; - obj.x = (x / this.viewport.scale[0]) + this.viewport.left; - obj.y = (y / this.viewport.scale[1]) + this.viewport.top; - return obj; - }; - CanvasCamera.prototype.worldToScreen = function (x, y, obj) { - if (obj === void 0) { obj = { x: 0, y: 0 }; } - obj.x = (x - this.viewport.left) * (this.viewport.scale[0]); - obj.y = (y - this.viewport.top) * (this.viewport.scale[1]); - return obj; - }; - CanvasCamera.prototype.addListeners = function () { - var _this = this; - window.onwheel = function (e) { - if (e.ctrlKey) { - var zoomLevel = _this.distance - (e.deltaY * 20); - if (zoomLevel <= 1) { - zoomLevel = 1; - } - _this.zoomTo(zoomLevel); - } - else { - var x = _this.lookAt[0] + (e.deltaX * 2); - var y = _this.lookAt[1] + (e.deltaY * 2); - _this.moveTo(x, y); - } - }; - window.addEventListener("keydown", function (e) { - if (e.key === "r") { - _this.zoomTo(1000); - _this.moveTo(0, 0); - } - }); - }; - return CanvasCamera; -}()); -exports.CanvasCamera = CanvasCamera; -//# sourceMappingURL=canvas-camera.js.map \ No newline at end of file diff --git a/dist/dom/canvas-camera.js.map b/dist/dom/canvas-camera.js.map deleted file mode 100644 index 91d21a2e..00000000 --- a/dist/dom/canvas-camera.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-camera.js","sourceRoot":"","sources":["../../src/dom/canvas-camera.ts"],"names":[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AAG,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAE3D,OAAO,GAAG,CAAC;IACf,CAAC;IAEO,mCAAY,GAApB;QAAA,iBA2BC;QAzBG,MAAM,CAAC,OAAO,GAAG,UAAC,CAAa;YAC3B,IAAI,CAAC,CAAC,OAAO,EAAE;gBAEX,IAAI,SAAS,GAAG,KAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;gBAChD,IAAI,SAAS,IAAI,CAAC,EAAE;oBAChB,SAAS,GAAG,CAAC,CAAC;iBACjB;gBAED,KAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC1B;iBAAM;gBAEH,IAAM,CAAC,GAAG,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC1C,IAAM,CAAC,GAAG,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAE1C,KAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC;QAGF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,UAAC,CAAC;YACjC,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,EAAE;gBACf,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAClB,KAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrB;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACL,mBAAC;AAAD,CAAC,AA/FD,IA+FC;AA/FY,oCAAY"} \ No newline at end of file diff --git a/dist/dom/canvas-drawer-advanced.d.ts b/dist/dom/canvas-drawer-advanced.d.ts deleted file mode 100644 index 296be15c..00000000 --- a/dist/dom/canvas-drawer-advanced.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { XYWH } from "gtools/types"; -import { CanvasShadowConfig } from "./types/canvas-shadow-config"; -export interface ObjectOptions { - opacity?: number; - shadow?: CanvasShadowConfig; -} -export interface StrokeOptions extends ObjectOptions { - width?: number; - strokeColor?: string; - lineDash?: number[]; - lineCap?: CanvasLineCap; - joinType?: CanvasLineJoin; -} -export interface FillOptions extends ObjectOptions { - fillColor?: string; - fillImage?: HTMLImageElement; -} -export interface RenderOptions extends ObjectOptions { - fill?: FillOptions; - stroke?: StrokeOptions; -} -export declare class CanvasDrawerAdvanced { - private readonly context; - private readonly drawer; - constructor(context: CanvasRenderingContext2D); - renderRect(location: XYWH, options: RenderOptions): void; - private prepareShadow; - private prepareDashed; - private prepareOpacity; -} -//# sourceMappingURL=canvas-drawer-advanced.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-drawer-advanced.d.ts.map b/dist/dom/canvas-drawer-advanced.d.ts.map deleted file mode 100644 index e3a8eb9c..00000000 --- a/dist/dom/canvas-drawer-advanced.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer-advanced.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-drawer-advanced.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,WAAW,aAAa;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,WAAY,SAAQ,aAAa;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,qBAAa,oBAAoB;IAGV,OAAO,CAAC,QAAQ,CAAC,OAAO;IAF3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;gBAErB,OAAO,EAAE,wBAAwB;IAG9D,UAAU,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI;IAmC/D,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,cAAc;CAKzB"} \ No newline at end of file diff --git a/dist/dom/canvas-drawer-advanced.js b/dist/dom/canvas-drawer-advanced.js deleted file mode 100644 index f356d094..00000000 --- a/dist/dom/canvas-drawer-advanced.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CanvasDrawerAdvanced = void 0; -var canvas_drawer_1 = require("./canvas-drawer"); -var canvas_manager_1 = require("./canvas-manager"); -var CanvasDrawerAdvanced = (function () { - function CanvasDrawerAdvanced(context) { - this.context = context; - this.drawer = new canvas_drawer_1.CanvasDrawer(this.context); - } - CanvasDrawerAdvanced.prototype.renderRect = function (location, options) { - var _a; - this.prepareShadow(options.shadow); - this.prepareOpacity(options.opacity); - if (options.fill) { - this.prepareShadow(options.fill.shadow); - this.prepareOpacity(options.fill.opacity); - if (options.fill.fillImage) { - this.drawer.drawImage(options.fill.fillImage); - } - if (options.fill.fillColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.fill.fillColor); - } - } - if (options.stroke) { - this.prepareShadow(options.stroke.shadow); - this.prepareOpacity(options.stroke.opacity); - this.prepareDashed(options.stroke.lineDash); - if (options.stroke.joinType) { - this.context.lineJoin = options.stroke.joinType; - } - if (options.stroke.lineCap) { - this.context.lineCap = options.stroke.lineCap; - } - if (!isNaN((_a = options.stroke.width) !== null && _a !== void 0 ? _a : NaN)) { - this.context.lineWidth = options.stroke.width; - } - if (options.stroke.strokeColor) { - this.drawer.fillRect(location.x, location.y, location.w, location.h, options.stroke.strokeColor); - } - } - }; - CanvasDrawerAdvanced.prototype.prepareShadow = function (shadow) { - var _a, _b, _c, _d; - if (shadow) { - canvas_manager_1.CanvasManager.setShadow(this.context, (_a = shadow.x) !== null && _a !== void 0 ? _a : 0, (_b = shadow.y) !== null && _b !== void 0 ? _b : 0, (_c = shadow.color) !== null && _c !== void 0 ? _c : "black", (_d = shadow.blur) !== null && _d !== void 0 ? _d : 5); - } - }; - CanvasDrawerAdvanced.prototype.prepareDashed = function (dashes) { - if (Array.isArray(dashes)) { - canvas_manager_1.CanvasManager.setLineDash.apply(canvas_manager_1.CanvasManager, __spreadArrays([this.context], dashes)); - } - }; - CanvasDrawerAdvanced.prototype.prepareOpacity = function (opacity) { - if (!isNaN(opacity !== null && opacity !== void 0 ? opacity : NaN)) { - this.context.globalAlpha = opacity; - } - }; - return CanvasDrawerAdvanced; -}()); -exports.CanvasDrawerAdvanced = CanvasDrawerAdvanced; -//# sourceMappingURL=canvas-drawer-advanced.js.map \ No newline at end of file diff --git a/dist/dom/canvas-drawer-advanced.js.map b/dist/dom/canvas-drawer-advanced.js.map deleted file mode 100644 index e309318a..00000000 --- a/dist/dom/canvas-drawer-advanced.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer-advanced.js","sourceRoot":"","sources":["../../src/dom/canvas-drawer-advanced.ts"],"names":[],"mappings":";;;;;;;;;;AACA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AC,OAAO,CAAC,WAAW,GAAG,OAAiB,CAAC;SAChD;IACL,CAAC;IACL,2BAAC;AAAD,CAAC,AAhED,IAgEC;AAhEY,oDAAoB"} \ No newline at end of file diff --git a/dist/dom/canvas-drawer.d.ts b/dist/dom/canvas-drawer.d.ts deleted file mode 100644 index a7777367..00000000 --- a/dist/dom/canvas-drawer.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { RoundData, TextOptionsInterface } from "gtools/types"; -import { Drawer } from "./drawer"; -export declare class CanvasDrawer implements Drawer { - private readonly context; - constructor(context: CanvasRenderingContext2D); - fillRoundedRect(x: number, y: number, w: number, h: number, round: RoundData, color?: string): void; - strokeRoundedRect(x: number, y: number, w: number, h: number, round: RoundData, color?: string, width?: number): void; - fillRect(x: number, y: number, w: number, h: number, color?: string): void; - strokeRect(x: number, y: number, w: number, h: number, color?: string, width?: number): void; - fillArc(x: number, y: number, w: number, h: number, color?: string): void; - strokeArc(x: number, y: number, w: number, h: number, color?: string, width?: number): void; - fillPath(points: SimpleVector2[], color?: string, close?: boolean): void; - drawPath(points: SimpleVector2[], color?: string, width?: number, close?: boolean): void; - drawImage(image: CanvasImageSource, x?: number, y?: number, w?: number, h?: number): void; - drawLine(x1: number, y1: number, x2: number, y2: number, color?: string, width?: number): void; - drawText(text: string, x: number, y: number, w: number, h: number, textOptions: TextOptionsInterface): void; - clear(resetTransform?: boolean): void; - startDrawingLine(x: number, y: number): void; - addPointToLine(x: number, y: number, stroke?: boolean): void; -} -//# sourceMappingURL=canvas-drawer.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-drawer.d.ts.map b/dist/dom/canvas-drawer.d.ts.map deleted file mode 100644 index f7af9675..00000000 --- a/dist/dom/canvas-drawer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa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AAK,SAAM,GAAG,IAAI;IAyBxF,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI;IAqBtE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,SAAM,EAAE,KAAK,UAAQ,GAAG,IAAI;IA6BnF,SAAS,CAAC,KAAK,EAAE,iBAAiB,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAM,EAAE,CAAC,SAAI,GAAG,IAAI;IASvE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,SAAM,GAAG,IAAI;IAkB3F,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,GAAG,IAAI;IA8B3G,KAAK,CAAC,cAAc,UAAO,GAAG,IAAI;IAYlC,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAI5C,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,IAAI;CAOnE"} \ No newline at end of file diff --git a/dist/dom/canvas-drawer.js b/dist/dom/canvas-drawer.js deleted file mode 100644 index 126f8f51..00000000 --- a/dist/dom/canvas-drawer.js +++ /dev/null @@ -1,193 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CanvasDrawer = void 0; -var canvas_misc_utilts_1 = require("./canvas-misc-utilts"); -var PI2 = Math.PI * 2; -var CanvasDrawer = (function () { - function CanvasDrawer(context) { - this.context = context; - } - CanvasDrawer.prototype.fillRoundedRect = function (x, y, w, h, round, color) { - if (color) { - this.context.fillStyle = color; - } - canvas_misc_utilts_1.makeRoundedRect(this.context, x, y, w, h, round); - this.context.fill(); - }; - CanvasDrawer.prototype.strokeRoundedRect = function (x, y, w, h, round, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - canvas_misc_utilts_1.makeRoundedRect(this.context, x, y, w, h, round); - this.context.stroke(); - }; - CanvasDrawer.prototype.fillRect = function (x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - this.context.strokeRect(x, y, w, h); - }; - CanvasDrawer.prototype.strokeRect = function (x, y, w, h, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.strokeRect(x, y, w, h); - }; - CanvasDrawer.prototype.fillArc = function (x, y, w, h, color) { - if (color) { - this.context.fillStyle = color; - } - var halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - }; - CanvasDrawer.prototype.strokeArc = function (x, y, w, h, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - var halfSize = { x: w / 2, y: h / 2 }; - this.context.ellipse(x + halfSize.x, y + halfSize.y, halfSize.x, halfSize.y, 0, 0, PI2); - this.context.stroke(); - }; - CanvasDrawer.prototype.fillPath = function (points, color, close) { - if (close === void 0) { close = false; } - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - this.context.moveTo(points[0].x, points[0].y); - for (var i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.fill(); - }; - CanvasDrawer.prototype.drawPath = function (points, color, width, close) { - if (width === void 0) { width = NaN; } - if (close === void 0) { close = false; } - if (!Array.isArray(points) || points.length < 2) { - return; - } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(points[0].x, points[0].y); - for (var i = 1; i < points.length; i++) { - this.context.lineTo(points[i].x, points[i].y); - } - if (close) { - this.context.closePath(); - } - this.context.stroke(); - }; - CanvasDrawer.prototype.drawImage = function (image, x, y, w, h) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = x; } - if (w === void 0) { w = NaN; } - if (h === void 0) { h = w; } - if (isNaN(w) || isNaN(h)) { - this.context.drawImage(image, x, y); - return; - } - this.context.drawImage(image, x, y, w, h); - }; - CanvasDrawer.prototype.drawLine = function (x1, y1, x2, y2, color, width) { - if (width === void 0) { width = NaN; } - if (color) { - this.context.strokeStyle = color; - } - if (!isNaN(width)) { - this.context.lineWidth = width; - if (width === 0) { - return; - } - } - this.context.moveTo(x1, y1); - this.context.lineTo(x2, y2); - this.context.stroke(); - }; - CanvasDrawer.prototype.drawText = function (text, x, y, w, h, textOptions) { - this.context.fillStyle = textOptions.fontColor; - this.context.font = textOptions.fontSize + "px " + textOptions.font; - var realX = x; - var realY = y; - if (textOptions.verticalAlign === "top") { - this.context.textBaseline = "top"; - } - else if (textOptions.verticalAlign === "center") { - this.context.textBaseline = "middle"; - realY += h / 2; - } - else if (textOptions.verticalAlign === "bottom") { - this.context.textBaseline = "bottom"; - realY += h; - } - if (textOptions.horizontalAlign === "left") { - this.context.textAlign = "left"; - } - else if (textOptions.horizontalAlign === "center") { - this.context.textAlign = "center"; - realX += w / 2; - } - else if (textOptions.horizontalAlign === "right") { - this.context.textAlign = "right"; - realX += w; - } - this.context.fillText(text, realX, realY, w); - }; - CanvasDrawer.prototype.clear = function (resetTransform) { - if (resetTransform === void 0) { resetTransform = true; } - if (resetTransform) { - this.context.save(); - this.context.resetTransform(); - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - this.context.restore(); - return; - } - this.context.clearRect(0, 0, this.context.canvas.width, this.context.canvas.height); - }; - CanvasDrawer.prototype.startDrawingLine = function (x, y) { - this.context.moveTo(x, y); - }; - CanvasDrawer.prototype.addPointToLine = function (x, y, stroke) { - if (stroke === void 0) { stroke = true; } - this.context.lineTo(x, y); - if (stroke) { - this.context.stroke(); - } - }; - return CanvasDrawer; -}()); -exports.CanvasDrawer = CanvasDrawer; -//# sourceMappingURL=canvas-drawer.js.map \ No newline at end of file diff --git a/dist/dom/canvas-drawer.js.map b/dist/dom/canvas-drawer.js.map deleted file mode 100644 index c4281dfc..00000000 --- a/dist/dom/canvas-drawer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-drawer.js","sourceRoot":"","sources":["../../src/dom/canvas-drawer.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AAGvD,IAAM,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;AAExB;IACI,sBAAoC,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IACrE,CAAC;IAEM,sCAAe,GAAtB,UAAuB,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAgB,EAAE,KAAc;QAC/F,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC;SAClC;QAED,oCAAe,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC;IAEM,wCAAiB,GAAxB,UAAyB,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAgB,EAAE,KAAc,EAAE,KAAW;QAAX,sBAAA,EAAA,WAAW;QAC9G,IAAI,KAAK,EAAE;YACP,I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MAAM,EAAE,CAAC;SACzB;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAlOD,IAkOC;AAlOY,oCAAY"} \ No newline at end of file diff --git a/dist/dom/canvas-manager.d.ts b/dist/dom/canvas-manager.d.ts deleted file mode 100644 index fcfa801a..00000000 --- a/dist/dom/canvas-manager.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Transform2D } from "gtools/models"; -declare class AbstractCanvasManager { - private readonly localCanvas; - private readonly localContext; - constructor(arg1: HTMLCanvasElement | HTMLImageElement, arg2: number, arg3: number); - get canvas(): HTMLCanvasElement; - get context(): CanvasRenderingContext2D | null; - setTransform(transform: Transform2D): void; - setTransformRaw(translationX: number, translationY: number, scaleX: number, scaleY?: number): void; - getImage(): HTMLImageElement; - setShadow(x: number, y: number, color: string, blur: number): void; - show(format?: string): void; - clearCanvas(): void; - setCanvasSize(width?: number, height?: number): void; - appendTo(element: Element): Element; -} -export declare class CanvasManager extends AbstractCanvasManager { - static clearCanvas(ctx: CanvasRenderingContext2D): void; - static setCanvasSize(canvas: HTMLCanvasElement, width?: number, height?: number): void; - static setShadow(ctx: CanvasRenderingContext2D, x: number, y: number, color: string, blur: number): void; - static imageToCanvas(image: HTMLImageElement): HTMLCanvasElement; - static setLineDash(ctx: CanvasRenderingContext2D, ...args: number[]): void; - static calcTextWidth(ctx: CanvasRenderingContext2D, value: string, font?: string): number; - static setTransformRaw(ctx: CanvasRenderingContext2D, translationX: number, translationY: number, scaleX: number, scaleY?: number): void; - static canvasToImage(canvas: HTMLCanvasElement, format?: string): HTMLImageElement; -} -export {}; -//# sourceMappingURL=canvas-manager.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-manager.d.ts.map b/dist/dom/canvas-manager.d.ts.map deleted file mode 100644 index 0dfa46dd..00000000 --- a/dist/dom/canvas-manager.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-manager.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-manager.ts"],"names":[],"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,WAAW,CAAC,GAAG,EAAE,wBAAwB,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI;WAMnE,aAAa,CAAC,GAAG,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;WAQlF,eAAe,CACzB,GAAG,EAAE,wBAAwB,EAC7B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,SAAS,GAChB,IAAI;WAIO,aAAa,CAAC,MAAM,EAAE,iBAAiB,EAAE,MAAM,SAAc,GAAG,gBAAgB;CAQjG"} \ No newline at end of file diff --git a/dist/dom/canvas-manager.js b/dist/dom/canvas-manager.js deleted file mode 100644 index b18893a1..00000000 --- a/dist/dom/canvas-manager.js +++ /dev/null @@ -1,154 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CanvasManager = void 0; -var errors_1 = require("../errors"); -var AbstractCanvasManager = (function () { - function AbstractCanvasManager(arg1, arg2, arg3) { - if (arg1 instanceof HTMLCanvasElement) { - this.localCanvas = arg1; - if (arg2 && arg3) { - this.setCanvasSize(arg2, arg3); - } - } - else if (arg1 instanceof HTMLImageElement) { - this.localCanvas = CanvasManager.imageToCanvas(arg1); - } - else { - if (typeof document === "undefined") { - throw new errors_1.NotBrowserException(); - } - this.localCanvas = document.createElement("canvas"); - if (arg1 && arg2) { - this.setCanvasSize(arg1, arg2); - } - } - this.localContext = this.localCanvas.getContext("2d"); - } - Object.defineProperty(AbstractCanvasManager.prototype, "canvas", { - get: function () { - return this.localCanvas; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(AbstractCanvasManager.prototype, "context", { - get: function () { - return this.localContext; - }, - enumerable: false, - configurable: true - }); - AbstractCanvasManager.prototype.setTransform = function (transform) { - this.setTransformRaw(transform.offset.x, transform.offset.y, transform.scale); - }; - AbstractCanvasManager.prototype.setTransformRaw = function (translationX, translationY, scaleX, scaleY) { - if (scaleY === void 0) { scaleY = scaleX; } - if (this.localContext) { - CanvasManager.setTransformRaw(this.localContext, translationX, translationY, scaleX, scaleY); - } - }; - AbstractCanvasManager.prototype.getImage = function () { - return CanvasManager.canvasToImage(this.localCanvas); - }; - AbstractCanvasManager.prototype.setShadow = function (x, y, color, blur) { - if (this.localContext) { - CanvasManager.setShadow(this.localContext, x, y, color, blur); - } - }; - AbstractCanvasManager.prototype.show = function (format) { - if (format === void 0) { format = "image/png"; } - window.open(this.localCanvas.toDataURL(format), "_blank"); - }; - AbstractCanvasManager.prototype.clearCanvas = function () { - if (this.localContext) { - CanvasManager.clearCanvas(this.localContext); - } - }; - AbstractCanvasManager.prototype.setCanvasSize = function (width, height) { - if (width === void 0) { width = window.innerWidth; } - if (height === void 0) { height = window.innerHeight; } - CanvasManager.setCanvasSize(this.localCanvas, width, height); - }; - AbstractCanvasManager.prototype.appendTo = function (element) { - element.appendChild(this.localCanvas); - return element; - }; - return AbstractCanvasManager; -}()); -var CanvasManager = (function (_super) { - __extends(CanvasManager, _super); - function CanvasManager() { - return _super !== null && _super.apply(this, arguments) || this; - } - CanvasManager.clearCanvas = function (ctx) { - ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); - }; - CanvasManager.setCanvasSize = function (canvas, width, height) { - if (width === void 0) { width = window.innerWidth; } - if (height === void 0) { height = window.innerHeight; } - canvas.width = width; - canvas.height = height; - }; - CanvasManager.setShadow = function (ctx, x, y, color, blur) { - ctx.shadowColor = color; - ctx.shadowBlur = blur; - ctx.shadowOffsetX = x; - ctx.shadowOffsetY = y; - }; - CanvasManager.imageToCanvas = function (image) { - if (typeof document === "undefined") { - throw new errors_1.NotBrowserException(); - } - var canvas = document.createElement("canvas"); - canvas.width = image.width; - canvas.height = image.height; - var ctx = canvas.getContext("2d"); - if (ctx) { - ctx.drawImage(image, 0, 0); - } - return canvas; - }; - CanvasManager.setLineDash = function (ctx) { - var args = []; - for (var _i = 1; _i < arguments.length; _i++) { - args[_i - 1] = arguments[_i]; - } - if (typeof ctx.setLineDash === "function") { - ctx.setLineDash(args); - } - }; - CanvasManager.calcTextWidth = function (ctx, value, font) { - if (font) { - ctx.font = font; - } - return ctx.measureText(value).width; - }; - CanvasManager.setTransformRaw = function (ctx, translationX, translationY, scaleX, scaleY) { - if (scaleY === void 0) { scaleY = scaleX; } - ctx.setTransform(scaleX, 0, 0, scaleY, translationX, translationY); - }; - CanvasManager.canvasToImage = function (canvas, format) { - if (format === void 0) { format = "image/png"; } - var image = new Image(); - image.src = canvas.toDataURL(format); - image.width = canvas.width; - image.height = canvas.height; - return image; - }; - return CanvasManager; -}(AbstractCanvasManager)); -exports.CanvasManager = CanvasManager; -//# sourceMappingURL=canvas-manager.js.map \ No newline at end of file diff --git a/dist/dom/canvas-manager.js.map b/dist/dom/canvas-manager.js.map deleted file mode 100644 index 979f7224..00000000 --- a/dist/dom/canvas-manager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-manager.js","sourceRoot":"","sources":["../../src/dom/canvas-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAgD;AAGhD;IAII,+BAAmB,IAA0C,EAAE,IAAY,EAAE,IAAY;QACrF,IAAI,IAAI,YAAY,iBAAiB,EAAE;YACnC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,IAAI,IAAI,IAAI,EAAE;gBACd,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aAClC;SACJ;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N,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;SACnB;QAED,OAAO,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;IACxC,CAAC;IAEa,6BAAe,GAA7B,UACI,GAA6B,EAC7B,YAAoB,EACpB,YAAoB,EACpB,MAAc,EACd,MAAe;QAAf,uBAAA,EAAA,eAAe;QAEf,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACvE,CAAC;IAEa,2BAAa,GAA3B,UAA4B,MAAyB,EAAE,MAAoB;QAApB,uBAAA,EAAA,oBAAoB;QACvE,IAAM,KAAK,GAAI,IAAI,KAAK,EAAE,CAAC;QAC3B,KAAK,CAAC,GAAG,GAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACxC,KAAK,CAAC,KAAK,GAAI,MAAM,CAAC,KAAK,CAAC;QAC5B,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAE7B,OAAO,KAAK,CAAC;IACjB,CAAC;IACL,oBAAC;AAAD,CAAC,AAhED,CAAmC,qBAAqB,GAgEvD;AAhEY,sCAAa"} \ No newline at end of file diff --git a/dist/dom/canvas-misc-utilts.d.ts b/dist/dom/canvas-misc-utilts.d.ts deleted file mode 100644 index 8f6528f9..00000000 --- a/dist/dom/canvas-misc-utilts.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RoundData } from "gtools/types"; -export declare function makeRoundedRect(context: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, radius: RoundData): void; -//# sourceMappingURL=canvas-misc-utilts.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-misc-utilts.d.ts.map b/dist/dom/canvas-misc-utilts.d.ts.map deleted file mode 100644 index ba300c43..00000000 --- a/dist/dom/canvas-misc-utilts.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-misc-utilts.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-misc-utilts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,eAAe,CAC3B,OAAO,EAAE,wBAAwB,EACjC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,SAAS,GAAG,IAAI,CAiC3B"} \ No newline at end of file diff --git a/dist/dom/canvas-misc-utilts.js b/dist/dom/canvas-misc-utilts.js deleted file mode 100644 index 875a31b0..00000000 --- a/dist/dom/canvas-misc-utilts.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeRoundedRect = void 0; -function makeRoundedRect(context, x, y, w, h, radius) { - var tr = typeof radius === "number" ? radius : (typeof radius.tr === "number" ? radius.tr : 0); - var tl = typeof radius === "number" ? radius : (typeof radius.tl === "number" ? radius.tl : 0); - var br = typeof radius === "number" ? radius : (typeof radius.br === "number" ? radius.br : 0); - var bl = typeof radius === "number" ? radius : (typeof radius.bl === "number" ? radius.bl : 0); - context.beginPath(); - context.moveTo(x + tl, y); - context.lineTo(x + w - tr, y); - context.quadraticCurveTo(x + w, y, x + w, y + tr); - context.lineTo(x + w, y + h - br); - context.quadraticCurveTo(x + w, y + h, x + w - br, y + h); - context.lineTo(x + bl, y + h); - context.quadraticCurveTo(x, y + h, x, y + h - bl); - context.lineTo(x, y + tl); - context.quadraticCurveTo(x, y, x + tl, y); - context.closePath(); -} -exports.makeRoundedRect = makeRoundedRect; -//# sourceMappingURL=canvas-misc-utilts.js.map \ No newline at end of file diff --git a/dist/dom/canvas-misc-utilts.js.map b/dist/dom/canvas-misc-utilts.js.map deleted file mode 100644 index 69bbb686..00000000 --- a/dist/dom/canvas-misc-utilts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-misc-utilts.js","sourceRoot":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GAAG,CAAC,EACL,CAAC,GAAG,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAChB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,EAC1B,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,GAAG,EAAE,EACV,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EACjB,CAAC,GAAG,CAAC,CAAC,CAAC;IACX,OAAO,CAAC,gBAAgB,CAAC,CAAC,EACtB,CAAC,GAAG,CAAC,EACL,CAAC,EACD,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,MAAM,CAAC,CAAC,EACZ,CAAC,GAAG,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,gBAAgB,CAAC,CAAC,EACtB,CAAC,EACD,CAAC,GAAG,EAAE,EACN,CAAC,CAAC,CAAC;IACP,OAAO,CAAC,SAAS,EAAE,CAAC;AACxB,CAAC;AAvCD,0CAuCC"} \ No newline at end of file diff --git a/dist/dom/canvas-utils.d.ts b/dist/dom/canvas-utils.d.ts deleted file mode 100644 index 3937758a..00000000 --- a/dist/dom/canvas-utils.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Vector2f } from "gtools/math"; -import { CanvasShadowConfig } from "./types/canvas-shadow-config"; -export interface CanvasConfig { - shadow?: CanvasShadowConfig; - position?: number | Vector2f; - center?: boolean; - size?: number | Vector2f; - bgImage?: { - img: HTMLImageElement; - x: number; - y: number; - w: number; - h: number; - }; - fill: boolean; - fillColor: string; - draw: boolean; - borderWidth: number; - radius: number | { - tl: number; - tr: number; - br: number; - bl: number; - }; - borderColor: string; - ctx: CanvasRenderingContext2D; - lineCap: "butt" | "round" | "square"; - joinType: "bevel" | "round" | "miter"; - x: number; - y: number; - startAngle: number; - endAngle: number; - offset: any; - lineDash: number[]; - width: number; - height: number; -} -export declare class CanvasUtils { - static doArc(obj: any): void; - static doRect(obj: any): void; -} -//# sourceMappingURL=canvas-utils.d.ts.map \ No newline at end of file diff --git a/dist/dom/canvas-utils.d.ts.map b/dist/dom/canvas-utils.d.ts.map deleted file mode 100644 index dda1a347..00000000 --- a/dist/dom/canvas-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-utils.d.ts","sourceRoot":"","sources":["../../src/dom/canvas-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIlE,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE;QACN,GAAG,EAAE,gBAAgB,CAAC;QACtB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG;QACb,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,wBAAwB,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC,QAAQ,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACtC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAuID,qBAAa,WAAW;WACN,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;WAsBrB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;CAoCvC"} \ No newline at end of file diff --git a/dist/dom/canvas-utils.js b/dist/dom/canvas-utils.js deleted file mode 100644 index 180987d0..00000000 --- a/dist/dom/canvas-utils.js +++ /dev/null @@ -1,164 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CanvasUtils = void 0; -var canvas_manager_1 = require("./canvas-manager"); -function setShadow(context, config) { - if (config) { - canvas_manager_1.CanvasManager.setShadow(context, config.x, config.y, config.color, config.blur); - } - else { - canvas_manager_1.CanvasManager.setShadow(context, 0, 0, "black", 0); - } -} -function process(res) { - if (res.shadow) { - setShadow(res.ctx, res.shadow); - } - if (res.bgImage) { - res.ctx.save(); - res.ctx.clip(); - if (res.bgImage instanceof HTMLImageElement) { - res.ctx.drawImage(res.bgImage, res.x, res.y, res.width, res.height); - } - else { - res.ctx.drawImage(res.bgImage.img, res.bgImage.x, res.bgImage.y, res.bgImage.w, res.bgImage.h, res.x, res.y, res.width, res.height); - } - res.ctx.restore(); - } - else if (res.fill) { - res.ctx.fillStyle = res.fillColor; - res.ctx.fill(); - } - if (res.shadow) { - setShadow(res.ctx); - } - res.ctx.lineCap = res.lineCap; - res.ctx.lineJoin = res.joinType; - if (typeof res.ctx.setLineDash === "function") { - res.ctx.setLineDash(res.lineDash); - } - if (!res.draw) { - return; - } - res.ctx.lineWidth = res.borderWidth; - res.ctx.strokeStyle = res.borderColor; - res.ctx.stroke(); -} -function initDef(obj) { - return { - borderColor: "black", - borderWidth: 1, - center: false, - ctx: obj.ctx, - draw: typeof obj.borderColor !== "undefined" || typeof obj.borderWidth !== "undefined", - endAngle: Math.PI * 2, - fill: typeof obj.fillColor !== "undefined", - fillColor: "white", - height: 0, - joinType: "bevel", - lineCap: "round", - lineDash: [], - offset: null, - radius: { - tl: 0, - tr: 0, - br: 0, - bl: 0, - }, - startAngle: 0, - width: 0, - x: 0, - y: 0, - }; -} -function remakePosAndSize(def, obj) { - var res = $.extend(def, obj); - var checkAttribute = function (attrName, partA, partB) { - if (typeof res[attrName] === "undefined") { - return; - } - var value = res[attrName]; - if (!isNaN(value)) { - res[partA] = value; - res[partB] = value; - } - else if (Array.isArray(value)) { - res[partA] = value[0]; - res[partB] = value[1]; - } - else { - res[partA] = value; - res[partB] = value; - } - }; - checkAttribute("size", "width", "size"); - checkAttribute("position", "x", "y"); - if (res.center) { - res.x -= res.width >> 1; - res.y -= res.height >> 1; - } - return res; -} -function checkPosAndSize(obj, name) { - if ((typeof obj.x === "undefined" || typeof obj.y === "undefined") && typeof obj.position === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_POSITION: " + name); - } - if ((typeof obj.width === "undefined" || typeof obj.height === "undefined") && typeof obj.size === "undefined") { - console.error("MSG_TRY_DRAW_WITHOUT_SIZE: " + name); - } - if (obj.width <= 0 || obj.height <= 0) { - console.error("MSG_TRY_DRAW_WITH_NEG_POSITION: " + name); - } - return initDef(obj); -} -var CanvasUtils = (function () { - function CanvasUtils() { - } - CanvasUtils.doArc = function (obj) { - var res = remakePosAndSize(checkPosAndSize(obj, "Arc"), obj); - res.ctx.beginPath(); - if (typeof res.ctx.ellipse === "function") { - res.ctx.ellipse(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1, 0, res.startAngle, res.endAngle); - } - else { - res.ctx.rect(res.x + (res.width >> 1), res.y + (res.height >> 1), res.width >> 1, res.height >> 1); - } - process(res); - }; - CanvasUtils.doRect = function (obj) { - var def = checkPosAndSize(obj, "Rect"); - if (typeof obj.radius !== "undefined") { - if (!isNaN(obj.radius)) { - obj.radius = { - bl: obj.radius, - br: obj.radius, - tl: obj.radius, - tr: obj.radius, - }; - } - else { - for (var key in def.radius) { - if (def.radius.hasOwnProperty(key)) { - obj.radius[key] = obj.radius[key] || def.radius[key]; - } - } - } - } - var res = remakePosAndSize(def, obj); - res.ctx.beginPath(); - res.ctx.moveTo(res.x + res.radius.tl, res.y); - res.ctx.lineTo(res.x + res.width - res.radius.tr, res.y); - res.ctx.quadraticCurveTo(res.x + res.width, res.y, res.x + res.width, res.y + res.radius.tr); - res.ctx.lineTo(res.x + res.width, res.y + res.height - res.radius.br); - res.ctx.quadraticCurveTo(res.x + res.width, res.y + res.height, res.x + res.width - res.radius.br, res.y + res.height); - res.ctx.lineTo(res.x + res.radius.bl, res.y + res.height); - res.ctx.quadraticCurveTo(res.x, res.y + res.height, res.x, res.y + res.height - res.radius.bl); - res.ctx.lineTo(res.x, res.y + res.radius.tl); - res.ctx.quadraticCurveTo(res.x, res.y, res.x + res.radius.tl, res.y); - res.ctx.closePath(); - process(res); - }; - return CanvasUtils; -}()); -exports.CanvasUtils = CanvasUtils; -//# sourceMappingURL=canvas-utils.js.map \ No newline at end of file diff --git a/dist/dom/canvas-utils.js.map b/dist/dom/canvas-utils.js.map deleted file mode 100644 index 9ffef618..00000000 --- a/dist/dom/canvas-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-utils.js","sourceRoot":"","sources":["../../src/dom/canvas-utils.ts"],"names":[],"mappings":";;;AACA,mDAAiD;AAyCjD,SAAS,SAAS,CAAC,OAAiC,EAAE,MAA2B;IAC7E,IAAI,MAAM,EAAE;QACR,8BAAa,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC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,CAAC,GAAG,GAAG,CAAC,MAAM,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,CAAC,CAAC;QACxG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,CAAC,CAAC;QACtD,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAI,GAAG,CAAC,MAAc,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9E,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QAEpB,OAAO,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC;IACL,kBAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,kCAAW"} \ No newline at end of file diff --git a/dist/dom/dom-get.d.ts b/dist/dom/dom-get.d.ts deleted file mode 100644 index b22a6dc0..00000000 --- a/dist/dom/dom-get.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -export declare class DomGet { - /** - * - * @param context document context - */ - static setContext(context: Document): void; - /** - * - * @param className name of class - * @param context searched context - * @returns collection of found elements - */ - static byClass(className: string, context?: Document): HTMLCollectionOf; - /** - * - * @param link name of link - * @param context searched context - * @returns nodeList of found elements - */ - static byLink(link: string, context?: Document): NodeListOf; - /** - * - * @param id searched ID - * @param context searched context - * @returns found element or null - */ - static byId(id: string, context?: Document): HTMLElement | null; - /** - * - * @param name elements name - * @param context searched context - * @returns nodeList of found elements - */ - static byName(name: string, context?: Document): NodeListOf; - /** - * - * @param tagName elements tagName - * @param context searched context - * @returns nodeList of found elements - */ - static byTag(tagName: string, context?: Document): NodeListOf; -} -//# sourceMappingURL=dom-get.d.ts.map \ No newline at end of file diff --git a/dist/dom/dom-get.d.ts.map b/dist/dom/dom-get.d.ts.map deleted file mode 100644 index 5ff8dc69..00000000 --- a/dist/dom/dom-get.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom-get.d.ts","sourceRoot":"","sources":["../../src/dom/dom-get.ts"],"names":[],"mappings":"AAIA,qBAAa,MAAM;IACf;;;OAGG;WACW,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;IAIjD;;;;;OAKG;WACW,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,QAAmC,GAAG,gBAAgB,CAAC,OAAO,CAAC;IAIjH;;;;;OAKG;WACW,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,QAAmC,GAAG,UAAU,CAAC,qBAAqB,CAAC,MAAM,qBAAqB,CAAC,CAAC;IAIhJ;;;;;OAKG;WACW,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,QAAmC,GAAG,WAAW,GAAG,IAAI;IAIhG;;;;;OAKG;WACW,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,QAAmC,GAAG,UAAU,CAAC,WAAW,CAAC;IAIzG;;;;;OAKG;WACW,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,QAAmC,GAAG,UAAU,CAAC,OAAO,CAAC;CAG1G"} \ No newline at end of file diff --git a/dist/dom/dom-get.js b/dist/dom/dom-get.js deleted file mode 100644 index 664a8870..00000000 --- a/dist/dom/dom-get.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DomGet = void 0; -var localContext = typeof document !== "undefined" ? document : null; -var DomGet = (function () { - function DomGet() { - } - DomGet.setContext = function (context) { - localContext = context; - }; - DomGet.byClass = function (className, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByClassName(className); - }; - DomGet.byLink = function (link, context) { - if (context === void 0) { context = localContext; } - return context.querySelectorAll("a[attr=\"" + link + "\"]"); - }; - DomGet.byId = function (id, context) { - if (context === void 0) { context = localContext; } - return context.getElementById(id); - }; - DomGet.byName = function (name, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByName(name); - }; - DomGet.byTag = function (tagName, context) { - if (context === void 0) { context = localContext; } - return context.getElementsByTagName(tagName); - }; - return DomGet; -}()); -exports.DomGet = DomGet; -//# sourceMappingURL=dom-get.js.map \ No newline at end of file diff --git a/dist/dom/dom-get.js.map b/dist/dom/dom-get.js.map deleted file mode 100644 index df8f8c02..00000000 --- a/dist/dom/dom-get.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom-get.js","sourceRoot":"","sources":["../../src/dom/dom-get.ts"],"names":[],"mappings":";;;AAEA,IAAI,YAAY,GAAoB,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AAEtF;IAAA;IA0DA,CAAC;IArDiB,iBAAU,GAAxB,UAAyB,OAAiB;QACtC,YAAY,GAAG,OAAO,CAAC;IAC3B,CAAC;IAQa,cAAO,GAArB,UAAsB,SAAiB,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QACjF,OAAO,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IAQa,aAAM,GAApB,UAAqB,IAAY,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,gBAAgB,CAAC,cAAW,IAAI,QAAI,CAAC,CAAC;IACzD,CAAC;IAQa,WAAI,GAAlB,UAAmB,EAAU,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAQa,aAAM,GAApB,UAAqB,IAAY,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC3E,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAQa,YAAK,GAAnB,UAAoB,OAAe,EAAE,OAA4C;QAA5C,wBAAA,EAAA,UAAoB,YAAwB;QAC7E,OAAO,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAQ,CAAC;IACxD,CAAC;IACL,aAAC;AAAD,CAAC,AA1DD,IA0DC;AA1DY,wBAAM"} \ No newline at end of file diff --git a/dist/dom/drawer.d.ts b/dist/dom/drawer.d.ts deleted file mode 100644 index 7260f16f..00000000 --- a/dist/dom/drawer.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { RoundData, TextOptionsInterface } from "gtools/types"; -/** - * TODO: - * - clip background image - */ -export interface Drawer { - fillArc(x: number, y: number, w: number, h: number, color?: string): void; - strokeArc(x: number, y: number, w: number, h: number, color?: string, width?: number): void; - fillRect(x: number, y: number, w: number, h: number, color?: string): void; - strokeRect(x: number, y: number, w: number, h: number, color?: string, width?: number): void; - fillRoundedRect(x: number, y: number, w: number, h: number, round: RoundData, color?: string): void; - strokeRoundedRect(x: number, y: number, w: number, h: number, round: RoundData, color?: string, width?: number): void; - drawImage(image: CanvasImageSource, x: number, y: number, w?: number, h?: number): void; - drawPath(points: SimpleVector2[], color?: string, width?: number, close?: boolean): void; - fillPath(points: SimpleVector2[], color?: string, close?: boolean): void; - drawLine(x1: number, y1: number, x2: number, y2: number, color?: string, width?: number): void; - drawText(text: string, x: number, y: number, w: number, h: number, textOptions: TextOptionsInterface): void; - clear(resetTransform?: boolean): void; - startDrawingLine(x: number, y: number): void; - addPointToLine(x: number, y: number, stroke?: boolean): void; -} -//# sourceMappingURL=drawer.d.ts.map \ No newline at end of file diff --git a/dist/dom/drawer.d.ts.map b/dist/dom/drawer.d.ts.map deleted file mode 100644 index 587c6de1..00000000 --- a/dist/dom/drawer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/dom/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5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C,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExF,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzF,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAE5G,KAAK,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtC,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAChE"} \ No newline at end of file diff --git a/dist/dom/drawer.js b/dist/dom/drawer.js deleted file mode 100644 index c392f8d1..00000000 --- a/dist/dom/drawer.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=drawer.js.map \ No newline at end of file diff --git a/dist/dom/drawer.js.map b/dist/dom/drawer.js.map deleted file mode 100644 index 5f171d21..00000000 --- a/dist/dom/drawer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/dom/drawer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/dom/element-builder.d.ts b/dist/dom/element-builder.d.ts deleted file mode 100644 index 5b4efa92..00000000 --- a/dist/dom/element-builder.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export declare class ElementBuilder { - private readonly elementName; - private readonly parent?; - private result?; - private styles; - private attributes; - private readonly contentBuffer; - private constructor(); - static setContext(context: Document): void; - static start(elementName: string): ElementBuilder; - child(elementName: string): ElementBuilder; - reset(): ElementBuilder; - style(key: CSSStyleDeclaration, value: string): ElementBuilder; - attribute(key: string, value: string): ElementBuilder; - content(newContent: string | HTMLElement): ElementBuilder; - addContent(newContent: string | HTMLElement): ElementBuilder; - clearContent(): ElementBuilder; - finish(): ElementBuilder; - build(): HTMLElement; - id(id: string): ElementBuilder; - clazz(clazz: string): ElementBuilder; - buildAndAppendTo(parent: HTMLElement): ElementBuilder; - get(): HTMLElement | undefined; -} -//# sourceMappingURL=element-builder.d.ts.map \ No newline at end of file diff --git a/dist/dom/element-builder.d.ts.map b/dist/dom/element-builder.d.ts.map deleted file mode 100644 index 39f80e30..00000000 --- a/dist/dom/element-builder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element-builder.d.ts","sourceRoot":"","sources":["../../src/dom/element-builder.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAMH,OAAO,CAAC,QAAQ,CAAC,WAAW;IAAU,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IALlF,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,MAAM,CAAgD;IAC9D,OAAO,CAAC,UAAU,CAA4C;IAC9D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgC;IAE9D,OAAO;WAGO,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;WAInC,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc;IAIjD,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc;IAI1C,KAAK,IAAI,cAAc;IAQvB,KAAK,CAAC,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc;IAM9D,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc;IAMrD,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,cAAc;IAIzD,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,cAAc;IAM5D,YAAY,IAAI,cAAc;IAM9B,MAAM,IAAI,cAAc;IAQxB,KAAK,IAAI,WAAW;IAcpB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc;IAI9B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc;IAIpC,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,cAAc;IAMrD,GAAG,IAAI,WAAW,GAAG,SAAS;CAGxC"} \ No newline at end of file diff --git a/dist/dom/element-builder.js b/dist/dom/element-builder.js deleted file mode 100644 index ff31efb2..00000000 --- a/dist/dom/element-builder.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ElementBuilder = void 0; -var localContext = document; -var ElementBuilder = (function () { - function ElementBuilder(elementName, parent) { - this.elementName = elementName; - this.parent = parent; - this.styles = {}; - this.attributes = {}; - this.contentBuffer = []; - } - ElementBuilder.setContext = function (context) { - localContext = context; - }; - ElementBuilder.start = function (elementName) { - return new ElementBuilder(elementName); - }; - ElementBuilder.prototype.child = function (elementName) { - return new ElementBuilder(elementName, this); - }; - ElementBuilder.prototype.reset = function () { - this.styles = {}; - this.attributes = {}; - delete this.result; - return this.clearContent(); - }; - ElementBuilder.prototype.style = function (key, value) { - this.styles.key = value; - return this; - }; - ElementBuilder.prototype.attribute = function (key, value) { - this.attributes.key = value; - return this; - }; - ElementBuilder.prototype.content = function (newContent) { - return this.clearContent().addContent(newContent); - }; - ElementBuilder.prototype.addContent = function (newContent) { - this.contentBuffer.push(newContent); - return this; - }; - ElementBuilder.prototype.clearContent = function () { - this.contentBuffer.splice(0, this.contentBuffer.length); - return this; - }; - ElementBuilder.prototype.finish = function () { - if (!this.parent) { - throw new Error("Parent must be set"); - } - return this.parent.addContent(this.build()); - }; - ElementBuilder.prototype.build = function () { - var _this = this; - this.result = localContext.createElement(this.elementName); - this.contentBuffer.forEach(function (content) { - if (typeof content === "string") { - _this.result.innerHTML += content; - } - else { - _this.result.appendChild(content); - } - }); - return this.result; - }; - ElementBuilder.prototype.id = function (id) { - return this.attribute("id", id); - }; - ElementBuilder.prototype.clazz = function (clazz) { - return this.attribute("class", clazz); - }; - ElementBuilder.prototype.buildAndAppendTo = function (parent) { - parent.appendChild(this.build()); - return this; - }; - ElementBuilder.prototype.get = function () { - return this.result; - }; - return ElementBuilder; -}()); -exports.ElementBuilder = ElementBuilder; -ElementBuilder.start("div").attribute("class", "main-class").attribute("id", "main-id").build(); -ElementBuilder.start("div").clazz("main-class").id("main-id").build(); -ElementBuilder.start("table") - .id("main-table") - .child("tr").clazz("table-row") - .child("td").clazz("table-column") - .content("hello world") - .finish() - .finish() - .buildAndAppendTo(document.body); -//# sourceMappingURL=element-builder.js.map \ No newline at end of file diff --git a/dist/dom/element-builder.js.map b/dist/dom/element-builder.js.map deleted file mode 100644 index 53bfcc9c..00000000 --- a/dist/dom/element-builder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"element-builder.js","sourceRoot":"","sources":["../../src/dom/element-builder.ts"],"names":[],"mappings":";;;AAIA,IAAI,YAAY,GAAa,QAAQ,CAAC;AAEtC;IAMI,wBAAqC,WAAmB,EAAmB,MAAuB;QAA7D,gBAAW,GAAX,WAAW,CAAQ;QAAmB,WAAM,GAAN,MAAM,CAAiB;Q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AAC,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;AAChG,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;AAEtE,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC;KACxB,EAAE,CAAC,YAAY,CAAC;KAChB,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;KAC9B,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;KACjC,OAAO,CAAC,aAAa,CAAC;KACtB,MAAM,EAAE;KACR,MAAM,EAAE;KACR,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/dom/types/canvas-shadow-config.d.ts b/dist/dom/types/canvas-shadow-config.d.ts deleted file mode 100644 index ab7a21b5..00000000 --- a/dist/dom/types/canvas-shadow-config.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface CanvasShadowConfig { - x: number; - y: number; - color: string; - blur: number; -} -//# sourceMappingURL=canvas-shadow-config.d.ts.map \ No newline at end of file diff --git a/dist/dom/types/canvas-shadow-config.d.ts.map b/dist/dom/types/canvas-shadow-config.d.ts.map deleted file mode 100644 index f756368a..00000000 --- a/dist/dom/types/canvas-shadow-config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-shadow-config.d.ts","sourceRoot":"","sources":["../../../src/dom/types/canvas-shadow-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB"} \ No newline at end of file diff --git a/dist/dom/types/canvas-shadow-config.js b/dist/dom/types/canvas-shadow-config.js deleted file mode 100644 index 95dff5d8..00000000 --- a/dist/dom/types/canvas-shadow-config.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=canvas-shadow-config.js.map \ No newline at end of file diff --git a/dist/dom/types/canvas-shadow-config.js.map b/dist/dom/types/canvas-shadow-config.js.map deleted file mode 100644 index a2753f1c..00000000 --- a/dist/dom/types/canvas-shadow-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"canvas-shadow-config.js","sourceRoot":"","sources":["../../../src/dom/types/canvas-shadow-config.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/enums/button.enum.d.ts b/dist/enums/button.enum.d.ts deleted file mode 100644 index 0b45f7e1..00000000 --- a/dist/enums/button.enum.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare enum Button { - LEFT = 0, - MIDDLE = 1, - RIGHT = 2, - BACK = 3, - FORWARD = 4 -} -//# sourceMappingURL=button.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/button.enum.d.ts.map b/dist/enums/button.enum.d.ts.map deleted file mode 100644 index fd4936f3..00000000 --- a/dist/enums/button.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"button.enum.d.ts","sourceRoot":"","sources":["../../src/enums/button.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IACd,IAAI,IAAO;IACX,MAAM,IAAK;IACX,KAAK,IAAM;IACX,IAAI,IAAO;IACX,OAAO,IAAI;CACd"} \ No newline at end of file diff --git a/dist/enums/button.enum.js b/dist/enums/button.enum.js deleted file mode 100644 index deed617a..00000000 --- a/dist/enums/button.enum.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Button = void 0; -var Button; -(function (Button) { - Button[Button["LEFT"] = 0] = "LEFT"; - Button[Button["MIDDLE"] = 1] = "MIDDLE"; - Button[Button["RIGHT"] = 2] = "RIGHT"; - Button[Button["BACK"] = 3] = "BACK"; - Button[Button["FORWARD"] = 4] = "FORWARD"; -})(Button = exports.Button || (exports.Button = {})); -//# sourceMappingURL=button.enum.js.map \ No newline at end of file diff --git a/dist/enums/button.enum.js.map b/dist/enums/button.enum.js.map deleted file mode 100644 index 02e7ffca..00000000 --- a/dist/enums/button.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"button.enum.js","sourceRoot":"","sources":["../../src/enums/button.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAMX;AAND,WAAY,MAAM;IACd,mCAAW,CAAA;IACX,uCAAW,CAAA;IACX,qCAAW,CAAA;IACX,mCAAW,CAAA;IACX,yCAAW,CAAA;AACf,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB"} \ No newline at end of file diff --git a/dist/enums/days.enum.d.ts b/dist/enums/days.enum.d.ts deleted file mode 100644 index 5e0b7371..00000000 --- a/dist/enums/days.enum.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare enum Days { - MON = "MON", - TUE = "TUE", - WED = "WED", - THU = "THU", - FRI = "FRI", - SAT = "SAT", - SUN = "SUN" -} -//# sourceMappingURL=days.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/days.enum.d.ts.map b/dist/enums/days.enum.d.ts.map deleted file mode 100644 index b94bda42..00000000 --- a/dist/enums/days.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"days.enum.d.ts","sourceRoot":"","sources":["../../src/enums/days.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI;IACZ,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"} \ No newline at end of file diff --git a/dist/enums/days.enum.js b/dist/enums/days.enum.js deleted file mode 100644 index 55c6b31b..00000000 --- a/dist/enums/days.enum.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Days = void 0; -var Days; -(function (Days) { - Days["MON"] = "MON"; - Days["TUE"] = "TUE"; - Days["WED"] = "WED"; - Days["THU"] = "THU"; - Days["FRI"] = "FRI"; - Days["SAT"] = "SAT"; - Days["SUN"] = "SUN"; -})(Days = exports.Days || (exports.Days = {})); -//# sourceMappingURL=days.enum.js.map \ No newline at end of file diff --git a/dist/enums/days.enum.js.map b/dist/enums/days.enum.js.map deleted file mode 100644 index e177f4b9..00000000 --- a/dist/enums/days.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"days.enum.js","sourceRoot":"","sources":["../../src/enums/days.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,IAQX;AARD,WAAY,IAAI;IACZ,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;IACX,mBAAW,CAAA;AACf,CAAC,EARW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAQf"} \ No newline at end of file diff --git a/dist/enums/encodings.enum.d.ts b/dist/enums/encodings.enum.d.ts deleted file mode 100644 index a33d3d82..00000000 --- a/dist/enums/encodings.enum.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare enum Encodings { - UTF8 = "utf8", - UTF16 = "utf16", - UNICODE = "unicode", - ASCII = "ascii", - UCS2 = "ucs2" -} -//# sourceMappingURL=encodings.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/encodings.enum.d.ts.map b/dist/enums/encodings.enum.d.ts.map deleted file mode 100644 index 5a83df1c..00000000 --- a/dist/enums/encodings.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodings.enum.d.ts","sourceRoot":"","sources":["../../src/enums/encodings.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IAQjB,IAAI,SAAY;IAChB,KAAK,UAAY;IACjB,OAAO,YAAY;IACnB,KAAK,UAAY;IACjB,IAAI,SAAY;CACnB"} \ No newline at end of file diff --git a/dist/enums/encodings.enum.js b/dist/enums/encodings.enum.js deleted file mode 100644 index 9b653712..00000000 --- a/dist/enums/encodings.enum.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Encodings = void 0; -var Encodings; -(function (Encodings) { - Encodings["UTF8"] = "utf8"; - Encodings["UTF16"] = "utf16"; - Encodings["UNICODE"] = "unicode"; - Encodings["ASCII"] = "ascii"; - Encodings["UCS2"] = "ucs2"; -})(Encodings = exports.Encodings || (exports.Encodings = {})); -//# sourceMappingURL=encodings.enum.js.map \ No newline at end of file diff --git a/dist/enums/encodings.enum.js.map b/dist/enums/encodings.enum.js.map deleted file mode 100644 index 6a9b8017..00000000 --- a/dist/enums/encodings.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodings.enum.js","sourceRoot":"","sources":["../../src/enums/encodings.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAaX;AAbD,WAAY,SAAS;IAQjB,0BAAgB,CAAA;IAChB,4BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAiB,CAAA;IACjB,0BAAgB,CAAA;AACpB,CAAC,EAbW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAapB"} \ No newline at end of file diff --git a/dist/enums/file-types.enum.d.ts b/dist/enums/file-types.enum.d.ts deleted file mode 100644 index bfc67f30..00000000 --- a/dist/enums/file-types.enum.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare enum FileTypes { - CSS = "text/css", - HTML = "text/html", - JS = "application/javascript", - MP3 = "audio/mpeg", - MP4 = "video/mp4", - OGG = "application/ogg", - OGV = "video/ogg", - OGA = "audio/ogg", - TXT = "text/plain", - WAV = "audio/x-wav", - WEBM = "video/webm" -} -//# sourceMappingURL=file-types.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/file-types.enum.d.ts.map b/dist/enums/file-types.enum.d.ts.map deleted file mode 100644 index b6cd9766..00000000 --- a/dist/enums/file-types.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-types.enum.d.ts","sourceRoot":"","sources":["../../src/enums/file-types.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACjB,GAAG,aAAc;IACjB,IAAI,cAAc;IAClB,EAAE,2BAA6B;IAC/B,GAAG,eAAgB;IACnB,GAAG,cAAe;IAClB,GAAG,oBAAqB;IACxB,GAAG,cAAe;IAClB,GAAG,cAAe;IAClB,GAAG,eAAgB;IACnB,GAAG,gBAAiB;IACpB,IAAI,eAAe;CACtB"} \ No newline at end of file diff --git a/dist/enums/file-types.enum.js b/dist/enums/file-types.enum.js deleted file mode 100644 index 678047ef..00000000 --- a/dist/enums/file-types.enum.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileTypes = void 0; -var FileTypes; -(function (FileTypes) { - FileTypes["CSS"] = "text/css"; - FileTypes["HTML"] = "text/html"; - FileTypes["JS"] = "application/javascript"; - FileTypes["MP3"] = "audio/mpeg"; - FileTypes["MP4"] = "video/mp4"; - FileTypes["OGG"] = "application/ogg"; - FileTypes["OGV"] = "video/ogg"; - FileTypes["OGA"] = "audio/ogg"; - FileTypes["TXT"] = "text/plain"; - FileTypes["WAV"] = "audio/x-wav"; - FileTypes["WEBM"] = "video/webm"; -})(FileTypes = exports.FileTypes || (exports.FileTypes = {})); -//# sourceMappingURL=file-types.enum.js.map \ No newline at end of file diff --git a/dist/enums/file-types.enum.js.map b/dist/enums/file-types.enum.js.map deleted file mode 100644 index 961c9c22..00000000 --- a/dist/enums/file-types.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-types.enum.js","sourceRoot":"","sources":["../../src/enums/file-types.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAYX;AAZD,WAAY,SAAS;IACjB,6BAAiB,CAAA;IACjB,+BAAkB,CAAA;IAClB,0CAA+B,CAAA;IAC/B,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,oCAAwB,CAAA;IACxB,8BAAkB,CAAA;IAClB,8BAAkB,CAAA;IAClB,+BAAmB,CAAA;IACnB,gCAAoB,CAAA;IACpB,gCAAmB,CAAA;AACvB,CAAC,EAZW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAYpB"} \ No newline at end of file diff --git a/dist/enums/http-status-codes.enum.d.ts b/dist/enums/http-status-codes.enum.d.ts deleted file mode 100644 index 071b90f9..00000000 --- a/dist/enums/http-status-codes.enum.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -export declare enum HttpStatusCodes { - CONTINUE = 100, - SWITCHING_PROTOCOLS = 101, - OK = 200, - CREATED = 201, - ACCEPTED = 202, - NON_AUTHORITATIVE_INFORMATION = 203, - NO_CONTENT = 204, - RESET_CONTENT = 205, - PARTIAL_CONTENT = 206, - MULTIPLE_CHOICES = 300, - MOVED_PERMANENTLY = 301, - FOUND = 302, - SEE_OTHER = 303, - NOT_MODIFIED = 304, - USE_PROXY = 305, - TEMPORARY_REDIRECT = 307, - BAD_REQUEST = 400, - UNAUTHORIZED = 401, - PAYMENT_REQUIRED = 402, - FORBIDDEN = 403, - NOT_FOUND = 404, - METHOD_NOT_ALLOWED = 405, - NOT_ACCEPTABLE = 406, - PROXY_AUTHENTICATION_REQUIRED = 407, - REQUEST_TIMEOUT = 408, - CONFLICT = 409, - GONE = 410, - LENGTH_REQUIRED = 411, - PRECONDITION_FAILED = 412, - REQUEST_ENTITY_TOO_LARGE = 413, - REQUEST_URI_TOO_LONG = 414, - UNSUPPORTED_MEDIA_TYPE = 415, - REQUESTED_RANGE_NOT_SATISFIABLE = 416, - EXPECTATION_FAILED = 417, - UNPROCESSABLE_ENTITY = 422, - TOO_MANY_REQUESTS = 429, - INTERNAL_SERVER_ERROR = 500, - NOT_IMPLEMENTED = 501, - BAD_GATEWAY = 502, - SERVICE_UNAVAILABLE = 503, - GATEWAY_TIMEOUT = 504, - HTTP_VERSION_NOT_SUPPORTED = 505 -} -//# sourceMappingURL=http-status-codes.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/http-status-codes.enum.d.ts.map b/dist/enums/http-status-codes.enum.d.ts.map deleted file mode 100644 index 9d4afede..00000000 --- a/dist/enums/http-status-codes.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-status-codes.enum.d.ts","sourceRoot":"","sources":["../../src/enums/http-status-codes.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,QAAQ,MAA6B;IACrC,mBAAmB,MAAkB;IACrC,EAAE,MAAmC;IACrC,OAAO,MAA8B;IACrC,QAAQ,MAA6B;IACrC,6BAA6B,MAAQ;IACrC,UAAU,MAA2B;IACrC,aAAa,MAAwB;IACrC,eAAe,MAAsB;IACrC,gBAAgB,MAAqB;IACrC,iBAAiB,MAAoB;IACrC,KAAK,MAAgC;IACrC,SAAS,MAA4B;IACrC,YAAY,MAAyB;IACrC,SAAS,MAA4B;IACrC,kBAAkB,MAAmB;IACrC,WAAW,MAA0B;IACrC,YAAY,MAAyB;IACrC,gBAAgB,MAAqB;IACrC,SAAS,MAA4B;IACrC,SAAS,MAA4B;IACrC,kBAAkB,MAAmB;IACrC,cAAc,MAAuB;IACrC,6BAA6B,MAAQ;IACrC,eAAe,MAAsB;IACrC,QAAQ,MAA6B;IACrC,IAAI,MAAiC;IACrC,eAAe,MAAsB;IACrC,mBAAmB,MAAkB;IACrC,wBAAwB,MAAa;IACrC,oBAAoB,MAAiB;IACrC,sBAAsB,MAAe;IACrC,+BAA+B,MAAM;IACrC,kBAAkB,MAAmB;IACrC,oBAAoB,MAAiB;IACrC,iBAAiB,MAAoB;IACrC,qBAAqB,MAAgB;IACrC,eAAe,MAAsB;IACrC,WAAW,MAA0B;IACrC,mBAAmB,MAAkB;IACrC,eAAe,MAAsB;IACrC,0BAA0B,MAAW;CACxC"} \ No newline at end of file diff --git a/dist/enums/http-status-codes.enum.js b/dist/enums/http-status-codes.enum.js deleted file mode 100644 index 227a813e..00000000 --- a/dist/enums/http-status-codes.enum.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpStatusCodes = void 0; -var HttpStatusCodes; -(function (HttpStatusCodes) { - HttpStatusCodes[HttpStatusCodes["CONTINUE"] = 100] = "CONTINUE"; - HttpStatusCodes[HttpStatusCodes["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS"; - HttpStatusCodes[HttpStatusCodes["OK"] = 200] = "OK"; - HttpStatusCodes[HttpStatusCodes["CREATED"] = 201] = "CREATED"; - HttpStatusCodes[HttpStatusCodes["ACCEPTED"] = 202] = "ACCEPTED"; - HttpStatusCodes[HttpStatusCodes["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION"; - HttpStatusCodes[HttpStatusCodes["NO_CONTENT"] = 204] = "NO_CONTENT"; - HttpStatusCodes[HttpStatusCodes["RESET_CONTENT"] = 205] = "RESET_CONTENT"; - HttpStatusCodes[HttpStatusCodes["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT"; - HttpStatusCodes[HttpStatusCodes["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES"; - HttpStatusCodes[HttpStatusCodes["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY"; - HttpStatusCodes[HttpStatusCodes["FOUND"] = 302] = "FOUND"; - HttpStatusCodes[HttpStatusCodes["SEE_OTHER"] = 303] = "SEE_OTHER"; - HttpStatusCodes[HttpStatusCodes["NOT_MODIFIED"] = 304] = "NOT_MODIFIED"; - HttpStatusCodes[HttpStatusCodes["USE_PROXY"] = 305] = "USE_PROXY"; - HttpStatusCodes[HttpStatusCodes["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT"; - HttpStatusCodes[HttpStatusCodes["BAD_REQUEST"] = 400] = "BAD_REQUEST"; - HttpStatusCodes[HttpStatusCodes["UNAUTHORIZED"] = 401] = "UNAUTHORIZED"; - HttpStatusCodes[HttpStatusCodes["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["FORBIDDEN"] = 403] = "FORBIDDEN"; - HttpStatusCodes[HttpStatusCodes["NOT_FOUND"] = 404] = "NOT_FOUND"; - HttpStatusCodes[HttpStatusCodes["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED"; - HttpStatusCodes[HttpStatusCodes["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE"; - HttpStatusCodes[HttpStatusCodes["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["CONFLICT"] = 409] = "CONFLICT"; - HttpStatusCodes[HttpStatusCodes["GONE"] = 410] = "GONE"; - HttpStatusCodes[HttpStatusCodes["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED"; - HttpStatusCodes[HttpStatusCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED"; - HttpStatusCodes[HttpStatusCodes["REQUEST_ENTITY_TOO_LARGE"] = 413] = "REQUEST_ENTITY_TOO_LARGE"; - HttpStatusCodes[HttpStatusCodes["REQUEST_URI_TOO_LONG"] = 414] = "REQUEST_URI_TOO_LONG"; - HttpStatusCodes[HttpStatusCodes["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE"; - HttpStatusCodes[HttpStatusCodes["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE"; - HttpStatusCodes[HttpStatusCodes["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED"; - HttpStatusCodes[HttpStatusCodes["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY"; - HttpStatusCodes[HttpStatusCodes["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS"; - HttpStatusCodes[HttpStatusCodes["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR"; - HttpStatusCodes[HttpStatusCodes["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED"; - HttpStatusCodes[HttpStatusCodes["BAD_GATEWAY"] = 502] = "BAD_GATEWAY"; - HttpStatusCodes[HttpStatusCodes["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE"; - HttpStatusCodes[HttpStatusCodes["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT"; - HttpStatusCodes[HttpStatusCodes["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED"; -})(HttpStatusCodes = exports.HttpStatusCodes || (exports.HttpStatusCodes = {})); -//# sourceMappingURL=http-status-codes.enum.js.map \ No newline at end of file diff --git a/dist/enums/http-status-codes.enum.js.map b/dist/enums/http-status-codes.enum.js.map deleted file mode 100644 index 4d90294d..00000000 --- a/dist/enums/http-status-codes.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http-status-codes.enum.js","sourceRoot":"","sources":["../../src/enums/http-status-codes.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eA2CX;AA3CD,WAAY,eAAe;IACvB,+DAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,mDAAqC,CAAA;IACrC,6DAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,mEAAqC,CAAA;IACrC,yEAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,uEAAqC,CAAA;IACrC,+EAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,iEAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,2EAAqC,CAAA;IACrC,yGAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,+DAAqC,CAAA;IACrC,uDAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,+FAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,2FAAqC,CAAA;IACrC,6GAAqC,CAAA;IACrC,mFAAqC,CAAA;IACrC,uFAAqC,CAAA;IACrC,iFAAqC,CAAA;IACrC,yFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,qEAAqC,CAAA;IACrC,qFAAqC,CAAA;IACrC,6EAAqC,CAAA;IACrC,mGAAqC,CAAA;AACzC,CAAC,EA3CW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA2C1B"} \ No newline at end of file diff --git a/dist/enums/index.d.ts b/dist/enums/index.d.ts deleted file mode 100644 index 51bb8930..00000000 --- a/dist/enums/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./button.enum"; -export * from "./days.enum"; -export * from "./encodings.enum"; -export * from "./file-types.enum"; -export * from "./http-status-codes.enum"; -export * from "./keys.enum"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/enums/index.d.ts.map b/dist/enums/index.d.ts.map deleted file mode 100644 index 79e989cb..00000000 --- a/dist/enums/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/enums/index.js b/dist/enums/index.js deleted file mode 100644 index 2af73eb1..00000000 --- a/dist/enums/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./button.enum"), exports); -__exportStar(require("./days.enum"), exports); -__exportStar(require("./encodings.enum"), exports); -__exportStar(require("./file-types.enum"), exports); -__exportStar(require("./http-status-codes.enum"), exports); -__exportStar(require("./keys.enum"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/enums/index.js.map b/dist/enums/index.js.map deleted file mode 100644 index 66ba3191..00000000 --- a/dist/enums/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,8CAA4B"} \ No newline at end of file diff --git a/dist/enums/keys.enum.d.ts b/dist/enums/keys.enum.d.ts deleted file mode 100644 index e0d13bc5..00000000 --- a/dist/enums/keys.enum.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -export declare enum Keys { - ARROW_UP = "ArrowUp", - ARROW_DOWN = "ArrowDown", - ARROW_LEFT = "ArrowLeft", - ARROW_RIGHT = "ArrowRight", - DELETE = "Delete", - CONTROL = "ControlLeft", - SHIFT = "ShiftLeft", - PAGE_UP = "PageUp", - PAGE_DOWN = "PageDown", - ESCAPE = "Escape", - SPACE = "Space", - ENTER = "Enter", - W = "KeyW", - F = "KeyF", - A = "KeyA", - P = "KeyP", - S = "KeyS", - D = "KeyD", - R = "KeyR", - Y = "KeyY", - Z = "KeyZ", - X = "KeyX", - V = "KeyV", - C = "KeyC", - O = "KeyO", - H = "KeyH", - L = "KeyL", - DIGIT_1 = "Digit1", - DIGIT_2 = "Digit2", - DIGIT_3 = "Digit3", - DIGIT_4 = "Digit4", - DIGIT_5 = "Digit5", - DIGIT_6 = "Digit6", - DIGIT_7 = "Digit7", - DIGIT_8 = "Digit8", - DIGIT_9 = "Digit9", - DIGIT_0 = "Digit0" -} -export declare class KeysOld { - static readonly ENTER = 13; - static readonly TAB = 9; - static readonly W = 87; - static readonly A = 65; - static readonly S = 83; - static readonly D = 68; - static readonly Q = 81; - static readonly E = 69; - static readonly F = 70; - static readonly LCONTROL = 17; - static readonly ESCAPE = 27; - static readonly LALT = 18; - static readonly LSHIFT = 16; - static readonly SPACE = 32; - static readonly ARROW_UP = 38; - static readonly ARROW_DOWN = 40; - static readonly ARROW_RIGHT = 39; - static readonly ARROW_LEFT = 37; -} -//# sourceMappingURL=keys.enum.d.ts.map \ No newline at end of file diff --git a/dist/enums/keys.enum.d.ts.map b/dist/enums/keys.enum.d.ts.map deleted file mode 100644 index ef4a51ee..00000000 --- a/dist/enums/keys.enum.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keys.enum.d.ts","sourceRoot":"","sources":["../../src/enums/keys.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI;IACZ,QAAQ,YAAe;IACvB,UAAU,cAAe;IACzB,UAAU,cAAe;IACzB,WAAW,eAAe;IAC1B,MAAM,WAAgB;IACtB,OAAO,gBAAoB;IAC3B,KAAK,cAAoB;IACzB,OAAO,WAAe;IACtB,SAAS,aAAe;IACxB,MAAM,WAAgB;IACtB,KAAK,UAAgB;IACrB,KAAK,UAAgB;IACrB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IACpB,CAAC,SAAmB;IAEpB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;IACtB,OAAO,WAAe;CACzB;AAED,qBAAa,OAAO;IAChB,gBAAuB,KAAK,MAAY;IACxC,gBAAuB,GAAG,KAAa;IACvC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,CAAC,MAAgB;IACxC,gBAAuB,QAAQ,MAAS;IACxC,gBAAuB,MAAM,MAAW;IACxC,gBAAuB,IAAI,MAAa;IACxC,gBAAuB,MAAM,MAAW;IACxC,gBAAuB,KAAK,MAAY;IACxC,gBAAuB,QAAQ,MAAS;IACxC,gBAAuB,UAAU,MAAO;IACxC,gBAAuB,WAAW,MAAM;IACxC,gBAAuB,UAAU,MAAO;CAC3C"} \ No newline at end of file diff --git a/dist/enums/keys.enum.js b/dist/enums/keys.enum.js deleted file mode 100644 index 5001c6b7..00000000 --- a/dist/enums/keys.enum.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KeysOld = exports.Keys = void 0; -var Keys; -(function (Keys) { - Keys["ARROW_UP"] = "ArrowUp"; - Keys["ARROW_DOWN"] = "ArrowDown"; - Keys["ARROW_LEFT"] = "ArrowLeft"; - Keys["ARROW_RIGHT"] = "ArrowRight"; - Keys["DELETE"] = "Delete"; - Keys["CONTROL"] = "ControlLeft"; - Keys["SHIFT"] = "ShiftLeft"; - Keys["PAGE_UP"] = "PageUp"; - Keys["PAGE_DOWN"] = "PageDown"; - Keys["ESCAPE"] = "Escape"; - Keys["SPACE"] = "Space"; - Keys["ENTER"] = "Enter"; - Keys["W"] = "KeyW"; - Keys["F"] = "KeyF"; - Keys["A"] = "KeyA"; - Keys["P"] = "KeyP"; - Keys["S"] = "KeyS"; - Keys["D"] = "KeyD"; - Keys["R"] = "KeyR"; - Keys["Y"] = "KeyY"; - Keys["Z"] = "KeyZ"; - Keys["X"] = "KeyX"; - Keys["V"] = "KeyV"; - Keys["C"] = "KeyC"; - Keys["O"] = "KeyO"; - Keys["H"] = "KeyH"; - Keys["L"] = "KeyL"; - Keys["DIGIT_1"] = "Digit1"; - Keys["DIGIT_2"] = "Digit2"; - Keys["DIGIT_3"] = "Digit3"; - Keys["DIGIT_4"] = "Digit4"; - Keys["DIGIT_5"] = "Digit5"; - Keys["DIGIT_6"] = "Digit6"; - Keys["DIGIT_7"] = "Digit7"; - Keys["DIGIT_8"] = "Digit8"; - Keys["DIGIT_9"] = "Digit9"; - Keys["DIGIT_0"] = "Digit0"; -})(Keys = exports.Keys || (exports.Keys = {})); -var KeysOld = (function () { - function KeysOld() { - } - KeysOld.ENTER = 13; - KeysOld.TAB = 9; - KeysOld.W = 87; - KeysOld.A = 65; - KeysOld.S = 83; - KeysOld.D = 68; - KeysOld.Q = 81; - KeysOld.E = 69; - KeysOld.F = 70; - KeysOld.LCONTROL = 17; - KeysOld.ESCAPE = 27; - KeysOld.LALT = 18; - KeysOld.LSHIFT = 16; - KeysOld.SPACE = 32; - KeysOld.ARROW_UP = 38; - KeysOld.ARROW_DOWN = 40; - KeysOld.ARROW_RIGHT = 39; - KeysOld.ARROW_LEFT = 37; - return KeysOld; -}()); -exports.KeysOld = KeysOld; -//# sourceMappingURL=keys.enum.js.map \ No newline at end of file diff --git a/dist/enums/keys.enum.js.map b/dist/enums/keys.enum.js.map deleted file mode 100644 index ae4a1333..00000000 --- a/dist/enums/keys.enum.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keys.enum.js","sourceRoot":"","sources":["../../src/enums/keys.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,IAuCX;AAvCD,WAAY,IAAI;IACZ,4BAAuB,CAAA;IACvB,gCAAyB,CAAA;IACzB,gCAAyB,CAAA;IACzB,kCAA0B,CAAA;IAC1B,yBAAsB,CAAA;IACtB,+BAA2B,CAAA;IAC3B,2BAAyB,CAAA;IACzB,0BAAsB,CAAA;IACtB,8BAAwB,CAAA;IACxB,yBAAsB,CAAA;IACtB,uBAAqB,CAAA;IACrB,uBAAqB,CAAA;IACrB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IACpB,kBAAoB,CAAA;IAEpB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;IACtB,0BAAsB,CAAA;AAC1B,CAAC,EAvCW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAuCf;AAED;IAAA;IAmBA,CAAC;IAlB0B,aAAK,GAAS,EAAE,CAAC;IACjB,WAAG,GAAW,CAAC,CAAC;IAChB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,SAAC,GAAa,EAAE,CAAC;IACjB,gBAAQ,GAAM,EAAE,CAAC;IACjB,cAAM,GAAQ,EAAE,CAAC;IACjB,YAAI,GAAU,EAAE,CAAC;IACjB,cAAM,GAAQ,EAAE,CAAC;IACjB,aAAK,GAAS,EAAE,CAAC;IACjB,gBAAQ,GAAM,EAAE,CAAC;IACjB,kBAAU,GAAI,EAAE,CAAC;IACjB,mBAAW,GAAG,EAAE,CAAC;IACjB,kBAAU,GAAI,EAAE,CAAC;IAC5C,cAAC;CAAA,AAnBD,IAmBC;AAnBY,0BAAO"} \ No newline at end of file diff --git a/dist/errors/index.d.ts b/dist/errors/index.d.ts deleted file mode 100644 index a4114f78..00000000 --- a/dist/errors/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./not-browser.exception"; -export * from "./null-pointer.exception"; -export * from "./wrong-parameter.exception"; -export * from "./missing-parameter.error"; -export * from "./no-database-connection.error"; -export * from "./wrong-type.exception"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/errors/index.d.ts.map b/dist/errors/index.d.ts.map deleted file mode 100644 index a5d4c409..00000000 --- a/dist/errors/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/errors/index.js b/dist/errors/index.js deleted file mode 100644 index 15b96205..00000000 --- a/dist/errors/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./not-browser.exception"), exports); -__exportStar(require("./null-pointer.exception"), exports); -__exportStar(require("./wrong-parameter.exception"), exports); -__exportStar(require("./missing-parameter.error"), exports); -__exportStar(require("./no-database-connection.error"), exports); -__exportStar(require("./wrong-type.exception"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/errors/index.js.map b/dist/errors/index.js.map deleted file mode 100644 index 1846e195..00000000 --- a/dist/errors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC;AACxC,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,iEAA+C;AAC/C,yDAAuC"} \ No newline at end of file diff --git a/dist/errors/missing-parameter.error.d.ts b/dist/errors/missing-parameter.error.d.ts deleted file mode 100644 index 465752de..00000000 --- a/dist/errors/missing-parameter.error.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class MissingParameterError extends Error { - constructor(parameterName: string); -} -//# sourceMappingURL=missing-parameter.error.d.ts.map \ No newline at end of file diff --git a/dist/errors/missing-parameter.error.d.ts.map b/dist/errors/missing-parameter.error.d.ts.map deleted file mode 100644 index 6e3b3b87..00000000 --- a/dist/errors/missing-parameter.error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"missing-parameter.error.d.ts","sourceRoot":"","sources":["../../src/errors/missing-parameter.error.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;gBACzB,aAAa,EAAE,MAAM;CAG3C"} \ No newline at end of file diff --git a/dist/errors/missing-parameter.error.js b/dist/errors/missing-parameter.error.js deleted file mode 100644 index 852936e6..00000000 --- a/dist/errors/missing-parameter.error.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MissingParameterError = void 0; -var MissingParameterError = (function (_super) { - __extends(MissingParameterError, _super); - function MissingParameterError(parameterName) { - return _super.call(this, "Parameter " + parameterName + " must be defined") || this; - } - return MissingParameterError; -}(Error)); -exports.MissingParameterError = MissingParameterError; -//# sourceMappingURL=missing-parameter.error.js.map \ No newline at end of file diff --git a/dist/errors/missing-parameter.error.js.map b/dist/errors/missing-parameter.error.js.map deleted file mode 100644 index 7a8ae75b..00000000 --- a/dist/errors/missing-parameter.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"missing-parameter.error.js","sourceRoot":"","sources":["../../src/errors/missing-parameter.error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAA2C,yCAAK;IAC5C,+BAAmB,aAAqB;eACpC,kBAAM,eAAa,aAAa,qBAAkB,CAAC;IACvD,CAAC;IACL,4BAAC;AAAD,CAAC,AAJD,CAA2C,KAAK,GAI/C;AAJY,sDAAqB"} \ No newline at end of file diff --git a/dist/errors/no-database-connection.error.d.ts b/dist/errors/no-database-connection.error.d.ts deleted file mode 100644 index 2106759f..00000000 --- a/dist/errors/no-database-connection.error.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class NoDatabaseConnectionError extends Error { - constructor(); -} -//# sourceMappingURL=no-database-connection.error.d.ts.map \ No newline at end of file diff --git a/dist/errors/no-database-connection.error.d.ts.map b/dist/errors/no-database-connection.error.d.ts.map deleted file mode 100644 index 42deeb7a..00000000 --- a/dist/errors/no-database-connection.error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-database-connection.error.d.ts","sourceRoot":"","sources":["../../src/errors/no-database-connection.error.ts"],"names":[],"mappings":"AAAA,qBAAa,yBAA0B,SAAQ,KAAK;;CAInD"} \ No newline at end of file diff --git a/dist/errors/no-database-connection.error.js b/dist/errors/no-database-connection.error.js deleted file mode 100644 index 4eb46fc7..00000000 --- a/dist/errors/no-database-connection.error.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NoDatabaseConnectionError = void 0; -var NoDatabaseConnectionError = (function (_super) { - __extends(NoDatabaseConnectionError, _super); - function NoDatabaseConnectionError() { - return _super.call(this, "Database connection is no established") || this; - } - return NoDatabaseConnectionError; -}(Error)); -exports.NoDatabaseConnectionError = NoDatabaseConnectionError; -//# sourceMappingURL=no-database-connection.error.js.map \ No newline at end of file diff --git a/dist/errors/no-database-connection.error.js.map b/dist/errors/no-database-connection.error.js.map deleted file mode 100644 index 2b6788c5..00000000 --- a/dist/errors/no-database-connection.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-database-connection.error.js","sourceRoot":"","sources":["../../src/errors/no-database-connection.error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAA+C,6CAAK;IAChD;eACI,kBAAM,uCAAuC,CAAC;IAClD,CAAC;IACL,gCAAC;AAAD,CAAC,AAJD,CAA+C,KAAK,GAInD;AAJY,8DAAyB"} \ No newline at end of file diff --git a/dist/errors/not-browser.exception.d.ts b/dist/errors/not-browser.exception.d.ts deleted file mode 100644 index 026830c9..00000000 --- a/dist/errors/not-browser.exception.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class NotBrowserException extends Error { - constructor(text?: string); -} -//# sourceMappingURL=not-browser.exception.d.ts.map \ No newline at end of file diff --git a/dist/errors/not-browser.exception.d.ts.map b/dist/errors/not-browser.exception.d.ts.map deleted file mode 100644 index b9cdbc31..00000000 --- a/dist/errors/not-browser.exception.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not-browser.exception.d.ts","sourceRoot":"","sources":["../../src/errors/not-browser.exception.ts"],"names":[],"mappings":"AAIA,qBAAa,mBAAoB,SAAQ,KAAK;gBACvB,IAAI,CAAC,EAAE,MAAM;CAKnC"} \ No newline at end of file diff --git a/dist/errors/not-browser.exception.js b/dist/errors/not-browser.exception.js deleted file mode 100644 index 21ded3b6..00000000 --- a/dist/errors/not-browser.exception.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NotBrowserException = void 0; -function getText(text) { - return text ? ": " + text : ""; -} -var NotBrowserException = (function (_super) { - __extends(NotBrowserException, _super); - function NotBrowserException(text) { - var _this = _super.call(this, "App is not running in browser" + getText(text) + "!") || this; - Object.setPrototypeOf(_this, NotBrowserException.prototype); - return _this; - } - return NotBrowserException; -}(Error)); -exports.NotBrowserException = NotBrowserException; -//# sourceMappingURL=not-browser.exception.js.map \ No newline at end of file diff --git a/dist/errors/not-browser.exception.js.map b/dist/errors/not-browser.exception.js.map deleted file mode 100644 index 894a0282..00000000 --- a/dist/errors/not-browser.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not-browser.exception.js","sourceRoot":"","sources":["../../src/errors/not-browser.exception.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS,OAAO,CAAC,IAAa;IAC1B,OAAO,IAAI,CAAC,CAAC,CAAC,OAAK,IAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACnC,CAAC;AAED;IAAyC,uCAAK;IAC1C,6BAAmB,IAAa;QAAhC,YACI,kBAAM,kCAAgC,OAAO,CAAC,IAAI,CAAC,MAAG,CAAC,SAG1D;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;;IAC/D,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAyC,KAAK,GAM7C;AANY,kDAAmB"} \ No newline at end of file diff --git a/dist/errors/null-pointer.exception.d.ts b/dist/errors/null-pointer.exception.d.ts deleted file mode 100644 index 2924b199..00000000 --- a/dist/errors/null-pointer.exception.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class NullPointerException extends Error { - constructor(text?: string); -} -//# sourceMappingURL=null-pointer.exception.d.ts.map \ No newline at end of file diff --git a/dist/errors/null-pointer.exception.d.ts.map b/dist/errors/null-pointer.exception.d.ts.map deleted file mode 100644 index f96dc51e..00000000 --- a/dist/errors/null-pointer.exception.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"null-pointer.exception.d.ts","sourceRoot":"","sources":["../../src/errors/null-pointer.exception.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAqB,SAAQ,KAAK;gBACxB,IAAI,CAAC,EAAE,MAAM;CAKnC"} \ No newline at end of file diff --git a/dist/errors/null-pointer.exception.js b/dist/errors/null-pointer.exception.js deleted file mode 100644 index 68fe897a..00000000 --- a/dist/errors/null-pointer.exception.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NullPointerException = void 0; -var NullPointerException = (function (_super) { - __extends(NullPointerException, _super); - function NullPointerException(text) { - var _this = _super.call(this, "Null pointer exception at line" + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, NullPointerException.prototype); - return _this; - } - return NullPointerException; -}(Error)); -exports.NullPointerException = NullPointerException; -//# sourceMappingURL=null-pointer.exception.js.map \ No newline at end of file diff --git a/dist/errors/null-pointer.exception.js.map b/dist/errors/null-pointer.exception.js.map deleted file mode 100644 index 9dcd01a8..00000000 --- a/dist/errors/null-pointer.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"null-pointer.exception.js","sourceRoot":"","sources":["../../src/errors/null-pointer.exception.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAA0C,wCAAK;IAC3C,8BAAmB,IAAa;QAAhC,YACI,kBAAM,gCAAgC,GAAG,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,SAG3F;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;;IAChE,CAAC;IACL,2BAAC;AAAD,CAAC,AAND,CAA0C,KAAK,GAM9C;AANY,oDAAoB"} \ No newline at end of file diff --git a/dist/errors/wrong-parameter.exception.d.ts b/dist/errors/wrong-parameter.exception.d.ts deleted file mode 100644 index a3fee57c..00000000 --- a/dist/errors/wrong-parameter.exception.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class WrongParameterException extends Error { - constructor(text?: string); -} -//# sourceMappingURL=wrong-parameter.exception.d.ts.map \ No newline at end of file diff --git a/dist/errors/wrong-parameter.exception.d.ts.map b/dist/errors/wrong-parameter.exception.d.ts.map deleted file mode 100644 index c1bfccb8..00000000 --- a/dist/errors/wrong-parameter.exception.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-parameter.exception.d.ts","sourceRoot":"","sources":["../../src/errors/wrong-parameter.exception.ts"],"names":[],"mappings":"AAAA,qBAAa,uBAAwB,SAAQ,KAAK;gBAC3B,IAAI,CAAC,EAAE,MAAM;CAKnC"} \ No newline at end of file diff --git a/dist/errors/wrong-parameter.exception.js b/dist/errors/wrong-parameter.exception.js deleted file mode 100644 index 930a0dc0..00000000 --- a/dist/errors/wrong-parameter.exception.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WrongParameterException = void 0; -var WrongParameterException = (function (_super) { - __extends(WrongParameterException, _super); - function WrongParameterException(text) { - var _this = _super.call(this, "Wrong parameter exception at line" + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, WrongParameterException.prototype); - return _this; - } - return WrongParameterException; -}(Error)); -exports.WrongParameterException = WrongParameterException; -//# sourceMappingURL=wrong-parameter.exception.js.map \ No newline at end of file diff --git a/dist/errors/wrong-parameter.exception.js.map b/dist/errors/wrong-parameter.exception.js.map deleted file mode 100644 index 83b671f0..00000000 --- a/dist/errors/wrong-parameter.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-parameter.exception.js","sourceRoot":"","sources":["../../src/errors/wrong-parameter.exception.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAA6C,2CAAK;IAC9C,iCAAmB,IAAa;QAAhC,YACI,kBAAM,uCAAoC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAE,CAAC,SAG5F;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;;IACnE,CAAC;IACL,8BAAC;AAAD,CAAC,AAND,CAA6C,KAAK,GAMjD;AANY,0DAAuB"} \ No newline at end of file diff --git a/dist/errors/wrong-type.exception.d.ts b/dist/errors/wrong-type.exception.d.ts deleted file mode 100644 index e6068672..00000000 --- a/dist/errors/wrong-type.exception.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class WrongTypeException extends Error { - constructor(requiredType: string, text?: string); -} -//# sourceMappingURL=wrong-type.exception.d.ts.map \ No newline at end of file diff --git a/dist/errors/wrong-type.exception.d.ts.map b/dist/errors/wrong-type.exception.d.ts.map deleted file mode 100644 index ab47bf80..00000000 --- a/dist/errors/wrong-type.exception.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-type.exception.d.ts","sourceRoot":"","sources":["../../src/errors/wrong-type.exception.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;gBACtB,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAKzD"} \ No newline at end of file diff --git a/dist/errors/wrong-type.exception.js b/dist/errors/wrong-type.exception.js deleted file mode 100644 index 33763022..00000000 --- a/dist/errors/wrong-type.exception.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WrongTypeException = void 0; -var WrongTypeException = (function (_super) { - __extends(WrongTypeException, _super); - function WrongTypeException(requiredType, text) { - var _this = _super.call(this, "Wrong type exception at line. " + typeof requiredType + " must be " + requiredType + (typeof text === "string" ? ": " + text : "!")) || this; - Object.setPrototypeOf(_this, WrongTypeException.prototype); - return _this; - } - return WrongTypeException; -}(Error)); -exports.WrongTypeException = WrongTypeException; -//# sourceMappingURL=wrong-type.exception.js.map \ No newline at end of file diff --git a/dist/errors/wrong-type.exception.js.map b/dist/errors/wrong-type.exception.js.map deleted file mode 100644 index 9e851921..00000000 --- a/dist/errors/wrong-type.exception.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"wrong-type.exception.js","sourceRoot":"","sources":["../../src/errors/wrong-type.exception.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAAwC,sCAAK;IACzC,4BAAmB,YAAoB,EAAE,IAAa;QAAtD,YACI,kBAAM,mCAAiC,OAAO,YAAY,iBAAY,YAAY,IAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAE,CAAC,SAGvI;QADG,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;;IAC9D,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAwC,KAAK,GAM5C;AANY,gDAAkB"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 31c7d11d..00000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./GUtils"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map deleted file mode 100644 index 3145d9ba..00000000 --- a/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index be83e797..00000000 --- a/dist/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./GUtils"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 5cdde711..00000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB"} \ No newline at end of file diff --git a/dist/math/index.d.ts b/dist/math/index.d.ts deleted file mode 100644 index 5930fced..00000000 --- a/dist/math/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./simple-vector2"; -export * from "./simple-vector3"; -export * from "./simple-vector4"; -export * from "./simple-vector-xz"; -export * from "./vector"; -export * from "./vector2"; -export * from "./vector2f"; -export * from "./vector3"; -export * from "./vector4"; -export * from "./mat4"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/math/index.d.ts.map b/dist/math/index.d.ts.map deleted file mode 100644 index 944888f1..00000000 --- a/dist/math/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/math/index.js b/dist/math/index.js deleted file mode 100644 index e5c125fc..00000000 --- a/dist/math/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./simple-vector2"), exports); -__exportStar(require("./simple-vector3"), exports); -__exportStar(require("./simple-vector4"), exports); -__exportStar(require("./simple-vector-xz"), exports); -__exportStar(require("./vector"), exports); -__exportStar(require("./vector2"), exports); -__exportStar(require("./vector2f"), exports); -__exportStar(require("./vector3"), exports); -__exportStar(require("./vector4"), exports); -__exportStar(require("./mat4"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/math/index.js.map b/dist/math/index.js.map deleted file mode 100644 index 10094d60..00000000 --- a/dist/math/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AAEnC,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB"} \ No newline at end of file diff --git a/dist/math/mat4.d.ts b/dist/math/mat4.d.ts deleted file mode 100644 index 9bdd121f..00000000 --- a/dist/math/mat4.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare class SimpleMat4 { - private readonly data; - constructor(data: number[][]); - set(x: number, y: number, value: number): void; - get(x: number, y: number): number; -} -export declare class Mat4 extends SimpleMat4 { - static createViewMatrix(): void; - static createTransformMatrix(): void; - static createPerspectiveMatrix(): void; - static createOrthographicMatrix(): void; -} -//# sourceMappingURL=mat4.d.ts.map \ No newline at end of file diff --git a/dist/math/mat4.d.ts.map b/dist/math/mat4.d.ts.map deleted file mode 100644 index 4717b171..00000000 --- a/dist/math/mat4.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mat4.d.ts","sourceRoot":"","sources":["../../src/math/mat4.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACA,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,MAAM,EAAE,EAAE;IAG7C,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAI9C,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;CAG3C;AAED,qBAAa,IAAK,SAAQ,UAAU;WAClB,gBAAgB,IAAI,IAAI;WAGxB,qBAAqB,IAAI,IAAI;WAG7B,uBAAuB,IAAI,IAAI;WAG/B,wBAAwB,IAAI,IAAI;CAGjD"} \ No newline at end of file diff --git a/dist/math/mat4.js b/dist/math/mat4.js deleted file mode 100644 index db5b1d4d..00000000 --- a/dist/math/mat4.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Mat4 = exports.SimpleMat4 = void 0; -var SimpleMat4 = (function () { - function SimpleMat4(data) { - this.data = data; - } - SimpleMat4.prototype.set = function (x, y, value) { - this.data[x][y] = value; - }; - SimpleMat4.prototype.get = function (x, y) { - return this.data[x][y]; - }; - return SimpleMat4; -}()); -exports.SimpleMat4 = SimpleMat4; -var Mat4 = (function (_super) { - __extends(Mat4, _super); - function Mat4() { - return _super !== null && _super.apply(this, arguments) || this; - } - Mat4.createViewMatrix = function () { - }; - Mat4.createTransformMatrix = function () { - }; - Mat4.createPerspectiveMatrix = function () { - }; - Mat4.createOrthographicMatrix = function () { - }; - return Mat4; -}(SimpleMat4)); -exports.Mat4 = Mat4; -//# sourceMappingURL=mat4.js.map \ No newline at end of file diff --git a/dist/math/mat4.js.map b/dist/math/mat4.js.map deleted file mode 100644 index 7a720e1c..00000000 --- a/dist/math/mat4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mat4.js","sourceRoot":"","sources":["../../src/math/mat4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IACI,oBAAoC,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IACpD,CAAC;IAEM,wBAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAa;QAC1C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC5B,CAAC;IAEM,wBAAG,GAAV,UAAW,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IACL,iBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,gCAAU;AAavB;IAA0B,wBAAU;IAApC;;IAaA,CAAC;IAZiB,qBAAgB,GAA9B;IAEA,CAAC;IACa,0BAAqB,GAAnC;IAEA,CAAC;IACa,4BAAuB,GAArC;IAEA,CAAC;IACa,6BAAwB,GAAtC;IAEA,CAAC;IACL,WAAC;AAAD,CAAC,AAbD,CAA0B,UAAU,GAanC;AAbY,oBAAI"} \ No newline at end of file diff --git a/dist/math/simple-vector-xz.d.ts b/dist/math/simple-vector-xz.d.ts deleted file mode 100644 index 7d3c9641..00000000 --- a/dist/math/simple-vector-xz.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface SimpleVectorXZ { - x: number; - z: number; -} -export declare type ReadonlySimpleVectorXZ = Readonly; -//# sourceMappingURL=simple-vector-xz.d.ts.map \ No newline at end of file diff --git a/dist/math/simple-vector-xz.d.ts.map b/dist/math/simple-vector-xz.d.ts.map deleted file mode 100644 index 2e4aa6b5..00000000 --- a/dist/math/simple-vector-xz.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector-xz.d.ts","sourceRoot":"","sources":["../../src/math/simple-vector-xz.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AACD,oBAAY,sBAAsB,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/math/simple-vector-xz.js b/dist/math/simple-vector-xz.js deleted file mode 100644 index ebb22a7f..00000000 --- a/dist/math/simple-vector-xz.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=simple-vector-xz.js.map \ No newline at end of file diff --git a/dist/math/simple-vector-xz.js.map b/dist/math/simple-vector-xz.js.map deleted file mode 100644 index e798444e..00000000 --- a/dist/math/simple-vector-xz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector-xz.js","sourceRoot":"","sources":["../../src/math/simple-vector-xz.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/math/simple-vector2.d.ts b/dist/math/simple-vector2.d.ts deleted file mode 100644 index 02e532e9..00000000 --- a/dist/math/simple-vector2.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface SimpleVector2 { - x: number; - y: number; -} -export declare type ReadonlySimpleVector2 = Readonly; -//# sourceMappingURL=simple-vector2.d.ts.map \ No newline at end of file diff --git a/dist/math/simple-vector2.d.ts.map b/dist/math/simple-vector2.d.ts.map deleted file mode 100644 index e559793d..00000000 --- a/dist/math/simple-vector2.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector2.d.ts","sourceRoot":"","sources":["../../src/math/simple-vector2.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AACD,oBAAY,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/math/simple-vector2.js b/dist/math/simple-vector2.js deleted file mode 100644 index 4935961b..00000000 --- a/dist/math/simple-vector2.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=simple-vector2.js.map \ No newline at end of file diff --git a/dist/math/simple-vector2.js.map b/dist/math/simple-vector2.js.map deleted file mode 100644 index d35a7538..00000000 --- a/dist/math/simple-vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector2.js","sourceRoot":"","sources":["../../src/math/simple-vector2.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/math/simple-vector3.d.ts b/dist/math/simple-vector3.d.ts deleted file mode 100644 index 5c2e85f3..00000000 --- a/dist/math/simple-vector3.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SimpleVector2 } from "./simple-vector2"; -export interface SimpleVector3 extends SimpleVector2 { - z: number; -} -export declare type ReadonlySimpleVector3 = Readonly; -//# sourceMappingURL=simple-vector3.d.ts.map \ No newline at end of file diff --git a/dist/math/simple-vector3.d.ts.map b/dist/math/simple-vector3.d.ts.map deleted file mode 100644 index 1e5048e5..00000000 --- a/dist/math/simple-vector3.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector3.d.ts","sourceRoot":"","sources":["../../src/math/simple-vector3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD,CAAC,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/math/simple-vector3.js b/dist/math/simple-vector3.js deleted file mode 100644 index 481363ce..00000000 --- a/dist/math/simple-vector3.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=simple-vector3.js.map \ No newline at end of file diff --git a/dist/math/simple-vector3.js.map b/dist/math/simple-vector3.js.map deleted file mode 100644 index c33484b5..00000000 --- a/dist/math/simple-vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector3.js","sourceRoot":"","sources":["../../src/math/simple-vector3.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/math/simple-vector4.d.ts b/dist/math/simple-vector4.d.ts deleted file mode 100644 index e6bcb4d3..00000000 --- a/dist/math/simple-vector4.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SimpleVector3 } from "./simple-vector3"; -export interface SimpleVector4 extends SimpleVector3 { - w: number; -} -export declare type ReadonlySimpleVector4 = Readonly; -//# sourceMappingURL=simple-vector4.d.ts.map \ No newline at end of file diff --git a/dist/math/simple-vector4.d.ts.map b/dist/math/simple-vector4.d.ts.map deleted file mode 100644 index a2084557..00000000 --- a/dist/math/simple-vector4.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector4.d.ts","sourceRoot":"","sources":["../../src/math/simple-vector4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD,CAAC,EAAE,MAAM,CAAC;CACb;AAED,oBAAY,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/math/simple-vector4.js b/dist/math/simple-vector4.js deleted file mode 100644 index 496e4a99..00000000 --- a/dist/math/simple-vector4.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=simple-vector4.js.map \ No newline at end of file diff --git a/dist/math/simple-vector4.js.map b/dist/math/simple-vector4.js.map deleted file mode 100644 index 15fc0c85..00000000 --- a/dist/math/simple-vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-vector4.js","sourceRoot":"","sources":["../../src/math/simple-vector4.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/math/vector.d.ts b/dist/math/vector.d.ts deleted file mode 100644 index 17107a11..00000000 --- a/dist/math/vector.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { SimpleVector2 } from "./simple-vector2"; -export interface Vector { - readonly length: number; - readonly avg: number; - readonly min: number; - readonly max: number; - readonly sum: number; - clone(): S; - getAbs(): S; - invert(): this; - getInverted(): S; - normalize(): this; - getNormalized(): S; - set(vec: T): this; - setData(...data: number[]): this; - isZero(): boolean; - angle(v: T): number; - equals(v: T): boolean; - dot(v: T): number; - dist(v: T): number; - toArray(): number[]; - add(value: T | number): this; - sub(value: T | number): this; - mul(value: T | number): this; - div(value: T | number): this; -} -//# sourceMappingURL=vector.d.ts.map \ No newline at end of file diff --git a/dist/math/vector.d.ts.map b/dist/math/vector.d.ts.map deleted file mode 100644 index 46bcbc31..00000000 --- a/dist/math/vector.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/math/vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,SAAS,CAAC;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,KAAK,IAAI,CAAC,CAAC;IAEX,MAAM,IAAI,CAAC,CAAC;IAEZ,MAAM,IAAI,IAAI,CAAC;IAEf,WAAW,IAAI,CAAC,CAAC;IAEjB,SAAS,IAAI,IAAI,CAAC;IAElB,aAAa,IAAI,CAAC,CAAC;IAEnB,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;IAElB,OAAO,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEjC,MAAM,IAAI,OAAO,CAAC;IAElB,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;IAEtB,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAElB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAEnB,OAAO,IAAI,MAAM,EAAE,CAAC;IAEpB,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAE7B,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAE7B,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAE7B,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;CAChC"} \ No newline at end of file diff --git a/dist/math/vector.js b/dist/math/vector.js deleted file mode 100644 index ad758c4c..00000000 --- a/dist/math/vector.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=vector.js.map \ No newline at end of file diff --git a/dist/math/vector.js.map b/dist/math/vector.js.map deleted file mode 100644 index 7b6f2c73..00000000 --- a/dist/math/vector.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../src/math/vector.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/math/vector2.d.ts b/dist/math/vector2.d.ts deleted file mode 100644 index ab473c34..00000000 --- a/dist/math/vector2.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { Range } from "../models"; -import { SimpleVector2 } from "./simple-vector2"; -export declare class Vector2 implements SimpleVector2 { - x: number; - y: number; - constructor(x?: number, y?: number); - static get ZERO(): Vector2; - static get UP(): Vector2; - static get LEFT(): Vector2; - static get BOTTOM(): Vector2; - static get RIGHT(): Vector2; - static get ONE(): Vector2; - get avg(): number; - get sum(): number; - static fromArray(val: [number, number] | Float32Array): Vector2; - get length(): number; - static equals(vecA: SimpleVector2, vecB: SimpleVector2): boolean; - static sub(vecA: SimpleVector2, vecB: SimpleVector2, result?: Vector2): Vector2; - static dot(vecA: SimpleVector2, vecB: SimpleVector2): number; - static lerp(start: SimpleVector2, end: SimpleVector2, ratio: number): SimpleVector2; - static getAbs(vec: SimpleVector2, result?: Vector2): Vector2; - static from(valA: number, valB?: number): Vector2; - static isVisible(obsX: number, obsY: number, angle: number, cutOff: number, px: number, py: number): boolean; - static createOutlineRange(points: readonly SimpleVector2[]): Range; - static angleBetweenPoints(obsX: number, obsY: number, px1: number, py1: number, px2: number, py2: number): number; - static isVector(item: any): item is SimpleVector2; - static sum(vecA: SimpleVector2, vecB: SimpleVector2, result?: Vector2): Vector2; - static min(vecA: SimpleVector2, vecB: SimpleVector2, result?: Vector2): Vector2; - static max(vecA: SimpleVector2, vecB: SimpleVector2, result?: Vector2): Vector2; - static dist(vecA: SimpleVector2, vecB: SimpleVector2): number; - static size(vec: SimpleVector2): number; - static fromVec(vec: SimpleVector2): Vector2; - isZero(): boolean; - clone(): Vector2; - getNormalized(result?: Vector2): SimpleVector2; - normalize(): this; - static normalize(vec: SimpleVector2, result?: SimpleVector2): SimpleVector2; - static mulNum(vecA: SimpleVector2, val: number, result?: Vector2): Vector2; - static addNum(vecA: SimpleVector2, val: number, result?: Vector2): Vector2; - mul(value: SimpleVector2 | number): this; - add(value: SimpleVector2 | number): this; - sub(value: SimpleVector2 | number): this; - div(value: SimpleVector2 | number): this; - setData(x: number, y: number): this; - set(vec: SimpleVector2): this; -} -//# sourceMappingURL=vector2.d.ts.map \ No newline at end of file diff --git a/dist/math/vector2.d.ts.map b/dist/math/vector2.d.ts.map deleted file mode 100644 index d6fe57a9..00000000 --- a/dist/math/vector2.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2.d.ts","sourceRoot":"","sources":["../../src/math/v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AAa,GAAG,MAAM,GAAG,IAAI;IAaxC,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAaxC,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAaxC,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAaxC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAOnC,GAAG,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;CAMvC"} \ No newline at end of file diff --git a/dist/math/vector2.js b/dist/math/vector2.js deleted file mode 100644 index 0cea3db5..00000000 --- a/dist/math/vector2.js +++ /dev/null @@ -1,246 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Vector2 = void 0; -var models_1 = require("../models"); -var Vector2 = (function () { - function Vector2(x, y) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - this.x = x; - this.y = y; - } - Object.defineProperty(Vector2, "ZERO", { - get: function () { - return new Vector2(0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "UP", { - get: function () { - return new Vector2(0, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "LEFT", { - get: function () { - return new Vector2(-1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "BOTTOM", { - get: function () { - return new Vector2(0, -1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "RIGHT", { - get: function () { - return new Vector2(1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2, "ONE", { - get: function () { - return new Vector2(1, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2.prototype, "avg", { - get: function () { - return this.sum / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector2.prototype, "sum", { - get: function () { - return this.x + this.y; - }, - enumerable: false, - configurable: true - }); - Vector2.fromArray = function (val) { - return new Vector2(val[0], val[1]); - }; - Object.defineProperty(Vector2.prototype, "length", { - get: function () { - return Vector2.size(this); - }, - enumerable: false, - configurable: true - }); - Vector2.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y; - }; - Vector2.sub = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x - vecB.x, vecA.y - vecB.y); - }; - Vector2.dot = function (vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y; - }; - Vector2.lerp = function (start, end, ratio) { - var dir = Vector2.sub(end, start); - return Vector2.mulNum(dir, ratio, dir).add(start); - }; - Vector2.getAbs = function (vec, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.abs(vec.x), Math.abs(vec.y)); - }; - Vector2.from = function (valA, valB) { - if (valB === void 0) { valB = valA; } - return new Vector2(valA, valB); - }; - Vector2.isVisible = function (obsX, obsY, angle, cutOff, px, py) { - return angle - Math.atan2(py - obsY, px - obsX) <= cutOff; - }; - Vector2.createOutlineRange = function (points) { - var min = { - x: Infinity, - y: Infinity, - }; - var max = { - x: -Infinity, - y: -Infinity, - }; - points.forEach(function (p) { - if (p.x < min.x) { - min.x = p.x; - } - if (p.y < min.y) { - min.y = p.y; - } - if (p.x > max.x) { - max.x = p.x; - } - if (p.y > max.y) { - max.y = p.y; - } - }); - return new models_1.Range(min, max); - }; - Vector2.angleBetweenPoints = function (obsX, obsY, px1, py1, px2, py2) { - return Math.atan2(py1 - obsY, px1 - obsX) - Math.atan2(py2 - obsY, px2 - obsX); - }; - Vector2.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y); - }; - Vector2.sum = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x + vecB.x, vecA.y + vecB.y); - }; - Vector2.min = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y)); - }; - Vector2.max = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y)); - }; - Vector2.dist = function (vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2)); - }; - Vector2.size = function (vec) { - return Math.sqrt(vec.x * vec.x + vec.y * vec.y); - }; - Vector2.fromVec = function (vec) { - return new Vector2(vec.x, vec.y); - }; - Vector2.prototype.isZero = function () { - return this.x === 0 && this.y === 0; - }; - Vector2.prototype.clone = function () { - return new Vector2(this.x, this.y); - }; - Vector2.prototype.getNormalized = function (result) { - if (result === void 0) { result = this.clone(); } - return Vector2.normalize(this, result); - }; - Vector2.prototype.normalize = function () { - var length = Vector2.size(this); - this.x /= length; - this.y /= length; - return this; - }; - Vector2.normalize = function (vec, result) { - if (result === void 0) { result = vec; } - var length = Vector2.size(vec); - result.x = vec.x / length; - result.y = vec.y / length; - return result; - }; - Vector2.mulNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x * val, vecA.y * val); - }; - Vector2.addNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector2(); } - return result.setData(vecA.x + val, vecA.y + val); - }; - Vector2.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - } - return this; - }; - Vector2.prototype.add = function (value) { - if (typeof value === "number") { - this.x += value; - this.y += value; - } - else { - this.x += value.x; - this.y += value.y; - } - return this; - }; - Vector2.prototype.sub = function (value) { - if (typeof value === "number") { - this.x -= value; - this.y -= value; - } - else { - this.x -= value.x; - this.y -= value.y; - } - return this; - }; - Vector2.prototype.div = function (value) { - if (typeof value === "number") { - this.x /= value; - this.y /= value; - } - else { - this.x /= value.x; - this.y /= value.y; - } - return this; - }; - Vector2.prototype.setData = function (x, y) { - this.x = x; - this.y = y; - return this; - }; - Vector2.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - return this; - }; - return Vector2; -}()); -exports.Vector2 = Vector2; -//# sourceMappingURL=vector2.js.map \ No newline at end of file diff --git a/dist/math/vector2.js.map b/dist/math/vector2.js.map deleted file mode 100644 index 7a003c46..00000000 --- a/dist/math/vector2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2.js","sourceRoot":"","sources":["../../src/math/vector2.ts"],"names":[],"mappings":";;;AAAA,oCAAkC;AAGlC;IACI,iBAA0B,CAAK,EACL,CAAK;QADL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QADL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,aAAE;aAApB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAkB,iBAAM;aAAxB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAkB,gBAAK;aAAvB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAkB,cAAG;aAArB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,CAAC;;;OAAA;IAED,sBAAW,wBAAG;aAAd;YACI,OAAO,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACxB,CAAC;;;OAAA;IAED,sBAAW,wBAAG;aAAd;YACI,OAAO,IAAI,CAAC,CAAC,GA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AAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,cAAC;AAAD,CAAC,AA1PD,IA0PC;AA1PY,0BAAO"} \ No newline at end of file diff --git a/dist/math/vector2f.d.ts b/dist/math/vector2f.d.ts deleted file mode 100644 index f53e4209..00000000 --- a/dist/math/vector2f.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Class is used for holding 2 numeric values and manipulation with them - */ -export declare class Vector2f { - /** - * the X value of vector - */ - y: number; - /** - * the Y value of vector - */ - x: number; - constructor(x: number, y: number); - /** - * Function set vectors values and return object itself - * - * @param arg1 parameter can by {@link Vector2f} or number representing {@link x} if arg2 is passed otherwise {@link x} and {@link y} - * @param arg2 is {@link y} value for vector - * @returns created {@link Vector2f} - */ - set(arg1: Vector2f | number, arg2?: number): this; - /** - * Function add values into current values and return object itself - * - * @param arg1 parameter can by {@link Vector2f} or number representing {@link x} if arg2 is passed otherwise {@link x} and {@link y} - * @param arg2 is {@link y} value for vector - * @returns updated {@link Vector2f} - */ - add(arg1: Vector2f | number, arg2?: number): this; - /** - * Function divide current values and return object itself - * - * @param arg1 parameter can by {@link Vector2f} or number representing {@link x} if arg2 is passed otherwise {@link x} and {@link y} - * @param arg2 is {@link y} value for vector - * @returns updated {@link Vector2f} - */ - div(arg1: Vector2f | number, arg2?: number): this; - /** - * Function multiply current values and return object itself - * - * @param arg1 parameter can by {@link Vector2f} or number representing {@link x} if arg2 is passed otherwise {@link x} and {@link y} - * @param arg2 is {@link y} value for vector - * @returns updated {@link Vector2f} - */ - mul(arg1: Vector2f | number, arg2?: number): this; - /** - * Function subtract values from current values and return object itself - * - * @param arg1 parameter can by {@link Vector2f} or number representing {@link x} if arg2 is passed otherwise {@link x} and {@link y} - * @param arg2 is {@link y} value for vector - * @returns updated {@link Vector2f} - */ - sub(arg1: Vector2f | number, arg2?: number): this; -} -//# sourceMappingURL=vector2f.d.ts.map \ No newline at end of file diff --git a/dist/math/vector2f.d.ts.map b/dist/math/vector2f.d.ts.map deleted file mode 100644 index 08fe5ca7..00000000 --- a/dist/math/vector2f.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2f.d.ts","sourceRoot":"","sources":["../../src/math/vector2f.ts"],"names":[],"mappings":"AAcA;;GAEG;AACH,qBAAa,QAAQ;IACjB;;OAEG;IACI,CAAC,SAAK;IAEb;;OAEG;IACI,CAAC,SAAK;gBAEM,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAKvC;;;;;;OAMG;IACI,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IASxD;;;;;;OAMG;IACI,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IASxD;;;;;;OAMG;IACI,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IASxD;;;;;;OAMG;IACI,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IASxD;;;;;;OAMG;IACI,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;CAQ3D"} \ No newline at end of file diff --git a/dist/math/vector2f.js b/dist/math/vector2f.js deleted file mode 100644 index 9d65a9d2..00000000 --- a/dist/math/vector2f.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Vector2f = void 0; -var process = function (op, arg1, arg2) { - if (typeof arg2 === "number") { - op(arg1, arg2); - } - else if (typeof arg1 === "number") { - op(arg1, arg1); - } - else { - op(arg1.x, arg1.y); - } -}; -var Vector2f = (function () { - function Vector2f(x, y) { - this.y = 0; - this.x = 0; - this.x = x; - this.y = y; - } - Vector2f.prototype.set = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x = x; - _this.y = y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.add = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x += x; - _this.y += y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.div = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x /= x; - _this.y /= y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.mul = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x *= x; - _this.y *= y; - }, arg1, arg2); - return this; - }; - Vector2f.prototype.sub = function (arg1, arg2) { - var _this = this; - process(function (x, y) { - _this.x -= x; - _this.y -= y; - }, arg1, arg2); - return this; - }; - return Vector2f; -}()); -exports.Vector2f = Vector2f; -//# sourceMappingURL=vector2f.js.map \ No newline at end of file diff --git a/dist/math/vector2f.js.map b/dist/math/vector2f.js.map deleted file mode 100644 index 31c07cfb..00000000 --- a/dist/math/vector2f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector2f.js","sourceRoot":"","sources":["../../src/math/vector2f.ts"],"names":[],"mappings":";;;AAAA,IAAM,OAAO,GAAG,UACZ,EAAkC,EAClC,IAAuB,EACvB,IAAa;IAEb,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC1B,EAAE,CAAC,IAAc,EAAE,IAAI,CAAC,CAAC;KAC5B;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACjC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAClB;SAAM;QACH,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;KACtB;AACL,CAAC,CAAC;AAKF;IAWI,kBAAmB,CAAS,EAAE,CAAS;QAPhC,MAAC,GAAG,CAAC,CAAC;QAKN,MAAC,GA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,OAAO,CAAC,UAAC,CAAC,EAAE,CAAC;YACT,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;YACZ,KAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,eAAC;AAAD,CAAC,AA/FD,IA+FC;AA/FY,4BAAQ"} \ No newline at end of file diff --git a/dist/math/vector3.d.ts b/dist/math/vector3.d.ts deleted file mode 100644 index d6e391b5..00000000 --- a/dist/math/vector3.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { ReadonlySimpleVector3, SimpleVector3 } from "./simple-vector3"; -import { Vector2 } from "./vector2"; -export declare class Vector3 implements SimpleVector3 { - x: number; - y: number; - z: number; - constructor(x?: number, y?: number, z?: number); - static get UP(): Vector3; - static get ZERO(): Vector3; - static get ONE(): Vector3; - get avg(): number; - static lengthOf(vector: ReadonlySimpleVector3): number; - get length(): number; - static equals(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): boolean; - static sub(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): Vector3; - /** - * @deprecated use {@link sum} instead - */ - static add(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): Vector3; - static sum(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3, result?: T): T; - static sumNum(vecA: ReadonlySimpleVector3, val: number, result?: T): T; - static dot(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): number; - static mul(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3, result?: T): T; - static mulNum(vecA: ReadonlySimpleVector3, val: number, result?: T): T; - static min(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3, result?: T): T; - static max(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3, result?: T): T; - static createFromSphericalCoords(radius: number, phi: number, theta: number): Vector3; - static distSqrt(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): number; - static dist(vecA: ReadonlySimpleVector3, vecB: ReadonlySimpleVector3): number; - static normalize(vec: T): T; - static from(valA: number, valB?: number, valC?: number): Vector3; - static fromVec(vec: ReadonlySimpleVector3): Vector3; - static fromArray(value: [number, number, number] | Float32Array): Vector3; - static isVector(item: any): item is SimpleVector3; - toArray(): [number, number, number]; - sum(): number; - getNormalized(): SimpleVector3; - clone(): Vector3; - normalize(): this; - mul(value: ReadonlySimpleVector3 | number): this; - add(vec: ReadonlySimpleVector3): this; - cross(v: ReadonlySimpleVector3): Vector3; - dot(v: ReadonlySimpleVector3): number; - sub(vec: ReadonlySimpleVector3): this; - setData(x: number, y: number, z: number): this; - set(vec: ReadonlySimpleVector3): this; - get xy(): Vector2; - get yx(): Vector2; - get yz(): Vector2; - get zy(): Vector2; - get xz(): Vector2; - get zx(): Vector2; -} -//# sourceMappingURL=vector3.d.ts.map \ No newline at end of file diff --git a/dist/math/vector3.d.ts.map b/dist/math/vector3.d.ts.map deleted file mode 100644 index a17352a3..00000000 --- a/dist/math/vector3.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector3.d.ts","sourceRoot":"","sources":["../../src/math/vector3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,OAAQ,YAAW,aAAa;IACf,CAAC;IACD,CAAC;IACD,CAAC;gBAFD,CAAC,SAAI,EACL,CAAC,SAAI,EACL,CAAC,SAAI;IAG/B,WAAkB,EAAE,IAAI,OAAO,CAE9B;IAED,WAAkB,IAAI,IAAI,OAAO,CAEhC;IAED,WAAkB,GAAG,IAAI,OAAO,CAE/B;IAED,IAAW,GAAG,IAAI,MAAM,CAEvB;WAEa,QAAQ,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM;IAI7D,IAAW,MAAM,IAAI,MAAM,CAE1B;WAEa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vB;IAED,IAAW,EAAE,IAAI,OAAO,CAEvB;CACJ"} \ No newline at end of file diff --git a/dist/math/vector3.js b/dist/math/vector3.js deleted file mode 100644 index 183ded2e..00000000 --- a/dist/math/vector3.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Vector3 = void 0; -var vector2_1 = require("./vector2"); -var Vector3 = (function () { - function Vector3(x, y, z) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - if (z === void 0) { z = 0; } - this.x = x; - this.y = y; - this.z = z; - } - Object.defineProperty(Vector3, "UP", { - get: function () { - return new Vector3(0, 1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3, "ZERO", { - get: function () { - return new Vector3(0, 0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3, "ONE", { - get: function () { - return new Vector3(1, 1, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "avg", { - get: function () { - return (this.x + this.y + this.z) / 3; - }, - enumerable: false, - configurable: true - }); - Vector3.lengthOf = function (vector) { - return Math.sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z); - }; - Object.defineProperty(Vector3.prototype, "length", { - get: function () { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); - }, - enumerable: false, - configurable: true - }); - Vector3.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z; - }; - Vector3.sub = function (vecA, vecB) { - return new Vector3(vecA.x - vecB.x, vecA.y - vecB.y, vecA.z - vecB.z); - }; - Vector3.add = function (vecA, vecB) { - return new Vector3(vecA.x + vecB.x, vecA.y + vecB.y, vecA.z + vecB.z); - }; - Vector3.sum = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x + vecB.x; - result.y = vecA.y + vecB.y; - result.z = vecA.z + vecB.z; - return result; - }; - Vector3.sumNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x + val; - result.y = vecA.y + val; - result.z = vecA.z + val; - return result; - }; - Vector3.dot = function (vecA, vecB) { - return vecA.x * vecB.x + vecA.y * vecB.y + vecA.z * vecB.z; - }; - Vector3.mul = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x * vecB.x; - result.y = vecA.y * vecB.y; - result.z = vecA.z * vecB.z; - return result; - }; - Vector3.mulNum = function (vecA, val, result) { - if (result === void 0) { result = new Vector3(); } - result.x = vecA.x * val; - result.y = vecA.y * val; - result.z = vecA.z * val; - return result; - }; - Vector3.min = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = Math.min(vecA.x, vecB.x); - result.y = Math.min(vecA.y, vecB.y); - result.z = Math.min(vecA.z, vecB.z); - return result; - }; - Vector3.max = function (vecA, vecB, result) { - if (result === void 0) { result = new Vector3(); } - result.x = Math.max(vecA.x, vecB.x); - result.y = Math.max(vecA.y, vecB.y); - result.z = Math.max(vecA.z, vecB.z); - return result; - }; - Vector3.createFromSphericalCoords = function (radius, phi, theta) { - var sinPhiRadius = Math.sin(phi) * radius; - var x = sinPhiRadius * Math.sin(theta); - var y = Math.cos(phi) * radius; - var z = sinPhiRadius * Math.cos(theta); - return new Vector3(x, y, z); - }; - Vector3.distSqrt = function (vecA, vecB) { - return Math.pow(vecA.x - vecB.x, 2) + Math.pow(vecA.y - vecB.y, 2) + Math.pow(vecA.z - vecB.z, 2); - }; - Vector3.dist = function (vecA, vecB) { - return Math.sqrt(Vector3.distSqrt(vecA, vecB)); - }; - Vector3.normalize = function (vec) { - var length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z); - vec.x /= length; - vec.y /= length; - vec.z /= length; - return vec; - }; - Vector3.from = function (valA, valB, valC) { - if (valB === void 0) { valB = valA; } - if (valC === void 0) { valC = valA; } - return new Vector3(valA, valB, valC); - }; - Vector3.fromVec = function (vec) { - return new Vector3(vec.x, vec.y, vec.z); - }; - Vector3.fromArray = function (value) { - return new Vector3(value[0], value[1], value[2]); - }; - Vector3.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z); - }; - Vector3.prototype.toArray = function () { - return [this.x, this.y, this.z]; - }; - Vector3.prototype.sum = function () { - return this.x + this.y + this.z; - }; - Vector3.prototype.getNormalized = function () { - return this.clone().normalize(); - }; - Vector3.prototype.clone = function () { - return new Vector3(this.x, this.y, this.z); - }; - Vector3.prototype.normalize = function () { - var length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - return this; - }; - Vector3.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - } - return this; - }; - Vector3.prototype.add = function (vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - return this; - }; - Vector3.prototype.cross = function (v) { - var localX = this.y * v.z - this.z * v.y; - var localY = this.z * v.x - this.x * v.z; - var localZ = this.x * v.y - this.y * v.x; - return new Vector3(localX, localY, localZ); - }; - Vector3.prototype.dot = function (v) { - return this.x * v.x + this.y * v.y + this.z * v.z; - }; - Vector3.prototype.sub = function (vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - return this; - }; - Vector3.prototype.setData = function (x, y, z) { - this.x = x; - this.y = y; - this.z = z; - return this; - }; - Vector3.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - return this; - }; - Object.defineProperty(Vector3.prototype, "xy", { - get: function () { - return new vector2_1.Vector2(this.x, this.y); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "yx", { - get: function () { - return new vector2_1.Vector2(this.y, this.x); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "yz", { - get: function () { - return new vector2_1.Vector2(this.y, this.z); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "zy", { - get: function () { - return new vector2_1.Vector2(this.z, this.y); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "xz", { - get: function () { - return new vector2_1.Vector2(this.x, this.z); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector3.prototype, "zx", { - get: function () { - return new vector2_1.Vector2(this.z, this.x); - }, - enumerable: false, - configurable: true - }); - return Vector3; -}()); -exports.Vector3 = Vector3; -//# sourceMappingURL=vector3.js.map \ No newline at end of file diff --git a/dist/math/vector3.js.map b/dist/math/vector3.js.map deleted file mode 100644 index a62aee66..00000000 --- a/dist/math/vector3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector3.js","sourceRoot":"","sources":["../../src/math/vector3.ts"],"names":[],"mappings":";;;AACA,qCAAoC;AAEpC;IACI,iBAA0B,CAAK,EACL,CAAK,EACL,CAAK;QAFL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QAFL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAED,sBAAkB,aAAE;aAApB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAChC,CAAC;;;OAAA;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAChC,CAAC;;;OAAA;IAED,sBAAkB,cAAG;aAArB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAChC,CAAC;;;OAAA;IAED,sBAAW,wBAAG;aAAd;YACI,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC;;;OAAA;IAEa,gBAAQ,GAAtB,UAAuB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;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAW,uBAAE;aAAb;YACI,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;;;OAAA;IACL,cAAC;AAAD,CAAC,AA1PD,IA0PC;AA1PY,0BAAO"} \ No newline at end of file diff --git a/dist/math/vector4.d.ts b/dist/math/vector4.d.ts deleted file mode 100644 index c8fae410..00000000 --- a/dist/math/vector4.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { SimpleVector4 } from "./simple-vector4"; -export declare class Vector4 implements SimpleVector4 { - x: number; - y: number; - z: number; - w: number; - constructor(x?: number, y?: number, z?: number, w?: number); - static get ZERO(): Vector4; - static get ONE(): Vector4; - static fromArray(val: [number, number, number, number] | Float32Array): Vector4; - static from(valA: number, valB?: number, valC?: number, valD?: number): Vector4; - get avg(): number; - get length(): number; - static equals(vecA: SimpleVector4, vecB: SimpleVector4): boolean; - static min(vecA: SimpleVector4, vecB: SimpleVector4): Vector4; - static max(vecA: SimpleVector4, vecB: SimpleVector4): Vector4; - static dist(vecA: SimpleVector4, vecB: SimpleVector4): number; - static normalize(vec: T): T; - static isVector(item: any): item is SimpleVector4; - toArray(): [number, number, number, number]; - getNormalized(): SimpleVector4; - clone(): Vector4; - normalize(): this; - mul(value: SimpleVector4 | number): this; - add(vec: SimpleVector4): this; - sub(vec: SimpleVector4): this; - setData(x: number, y: number, z: number, w: number): this; - set(vec: SimpleVector4): this; -} -//# sourceMappingURL=vector4.d.ts.map \ No newline at end of file diff --git a/dist/math/vector4.d.ts.map b/dist/math/vector4.d.ts.map deleted file mode 100644 index 4df67f2c..00000000 --- a/dist/math/vector4.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector4.d.ts","sourceRoot":"","sources":["../../src/math/vector4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,OAAQ,YAAW,aAAa;IACf,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;gBAHD,CAAC,SAAI,EACL,CAAC,SAAI,EACL,CAAC,SAAI,EACL,CAAC,SAAI;IAG/B,WAAkB,IAAI,IAAI,OAAO,CAEhC;IAED,WAAkB,GAAG,IAAI,OAAO,CAE/B;WAEa,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,YAAY,GAAG,OAAO;WAIxE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAO,EAAE,IAAI,SAAO,EAAE,IAAI,SAAO,GAAG,OAAO;IAIhF,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;WAEa,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO;WAQzD,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO;WAStD,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO;WAStD,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,MAAM;WAStD,SAAS,CAAC,CAAC,SAAS,aAAa,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;WAW7C,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,aAAa;IAIjD,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAI3C,aAAa,IAAI,aAAa;IAI9B,KAAK,IAAI,OAAO;IAIhB,SAAS,IAAI,IAAI;IAUjB,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAgBxC,GAAG,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IAS7B,GAAG,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IAS7B,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IASzD,GAAG,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;CAQvC"} \ No newline at end of file diff --git a/dist/math/vector4.js b/dist/math/vector4.js deleted file mode 100644 index 851788fb..00000000 --- a/dist/math/vector4.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Vector4 = void 0; -var Vector4 = (function () { - function Vector4(x, y, z, w) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - if (z === void 0) { z = 0; } - if (w === void 0) { w = 0; } - this.x = x; - this.y = y; - this.z = z; - this.w = w; - } - Object.defineProperty(Vector4, "ZERO", { - get: function () { - return new Vector4(0, 0, 0, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector4, "ONE", { - get: function () { - return new Vector4(1, 1, 1, 1); - }, - enumerable: false, - configurable: true - }); - Vector4.fromArray = function (val) { - return new Vector4(val[0], val[1], val[2], val[3]); - }; - Vector4.from = function (valA, valB, valC, valD) { - if (valB === void 0) { valB = valA; } - if (valC === void 0) { valC = valB; } - if (valD === void 0) { valD = valC; } - return new Vector4(valA, valB, valC, valD); - }; - Object.defineProperty(Vector4.prototype, "avg", { - get: function () { - return (this.x + this.y + this.z + this.w) / 4; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Vector4.prototype, "length", { - get: function () { - return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); - }, - enumerable: false, - configurable: true - }); - Vector4.equals = function (vecA, vecB) { - if (vecA === vecB) { - return true; - } - return vecA.x === vecB.x && vecA.y === vecB.y && vecA.z === vecB.z && vecA.w === vecB.w; - }; - Vector4.min = function (vecA, vecB) { - return new Vector4(Math.min(vecA.x, vecB.x), Math.min(vecA.y, vecB.y), Math.min(vecA.z, vecB.z), Math.min(vecA.w, vecB.w)); - }; - Vector4.max = function (vecA, vecB) { - return new Vector4(Math.max(vecA.x, vecB.x), Math.max(vecA.y, vecB.y), Math.max(vecA.z, vecB.z), Math.max(vecA.w, vecB.w)); - }; - Vector4.dist = function (vecA, vecB) { - return Math.sqrt(Math.pow(vecA.x - vecB.x, 2) + - Math.pow(vecA.y - vecB.y, 2) + - Math.pow(vecA.z - vecB.z, 2) + - Math.pow(vecA.w - vecB.w, 2)); - }; - Vector4.normalize = function (vec) { - var length = Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z + vec.w * vec.w); - vec.x /= length; - vec.y /= length; - vec.z /= length; - vec.w /= length; - return vec; - }; - Vector4.isVector = function (item) { - return item && !isNaN(item.x) && !isNaN(item.y) && !isNaN(item.z) && !isNaN(item.w); - }; - Vector4.prototype.toArray = function () { - return [this.x, this.y, this.z, this.w]; - }; - Vector4.prototype.getNormalized = function () { - return this.clone().normalize(); - }; - Vector4.prototype.clone = function () { - return new Vector4(this.x, this.y, this.z, this.w); - }; - Vector4.prototype.normalize = function () { - var length = this.length; - this.x /= length; - this.y /= length; - this.z /= length; - this.w /= length; - return this; - }; - Vector4.prototype.mul = function (value) { - if (typeof value === "number") { - this.x *= value; - this.y *= value; - this.z *= value; - this.w *= value; - } - else { - this.x *= value.x; - this.y *= value.y; - this.z *= value.z; - this.w *= value.w; - } - return this; - }; - Vector4.prototype.add = function (vec) { - this.x += vec.x; - this.y += vec.y; - this.z += vec.z; - this.w += vec.w; - return this; - }; - Vector4.prototype.sub = function (vec) { - this.x -= vec.x; - this.y -= vec.y; - this.z -= vec.z; - this.w -= vec.w; - return this; - }; - Vector4.prototype.setData = function (x, y, z, w) { - this.x = x; - this.y = y; - this.z = z; - this.w = w; - return this; - }; - Vector4.prototype.set = function (vec) { - this.x = vec.x; - this.y = vec.y; - this.z = vec.z; - this.w = vec.w; - return this; - }; - return Vector4; -}()); -exports.Vector4 = Vector4; -//# sourceMappingURL=vector4.js.map \ No newline at end of file diff --git a/dist/math/vector4.js.map b/dist/math/vector4.js.map deleted file mode 100644 index 6fb20b15..00000000 --- a/dist/math/vector4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vector4.js","sourceRoot":"","sources":["../../src/math/vector4.ts"],"names":[],"mappings":";;;AAEA;IACI,iBAA0B,CAAK,EACL,CAAK,EACL,CAAK,EACL,CAAK;QAHL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QACL,kBAAA,EAAA,KAAK;QAHL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;QACL,MAAC,GAAD,CAAC,CAAI;IAC/B,CAAC;IAED,sBAAkB,eAAI;aAAtB;YACI,OAAO,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAkB,cAAG;aAArB;YACI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B,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAChB,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;QAEhB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yBAAO,GAAd,UAAe,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;QACrD,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAEX,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qBAAG,GAAV,UAAW,GAAkB;QACzB,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACf,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAEf,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,cAAC;AAAD,CAAC,AA1JD,IA0JC;AA1JY,0BAAO"} \ No newline at end of file diff --git a/dist/misc/ajax.d.ts b/dist/misc/ajax.d.ts deleted file mode 100644 index 35ad733a..00000000 --- a/dist/misc/ajax.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface AjaxParams { - method: "GET" | "POST"; - url: string; - onResponse: (data: any) => void; - content: string; - headers: { - [key: string]: string; - }; -} -declare class AjaxWrapper { - private readonly ajaxHandler; - constructor(ajaxHandler: XMLHttpRequest); -} -export declare function ajax({ method, url, onResponse, content, headers, }: AjaxParams): AjaxWrapper; -export {}; -//# sourceMappingURL=ajax.d.ts.map \ No newline at end of file diff --git a/dist/misc/ajax.d.ts.map b/dist/misc/ajax.d.ts.map deleted file mode 100644 index 0bcbc3e8..00000000 --- a/dist/misc/ajax.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.d.ts","sourceRoot":"","sources":["../../src/misc/ajax.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,cAAM,WAAW;IACM,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,cAAc;CAElE;AAED,wBAAgB,IAAI,CAAC,EACjB,MAAc,EACd,GAAG,EACH,UAAU,EACV,OAAO,EACP,OAAY,GACf,EAAE,UAAU,GAAG,WAAW,CAe1B"} \ No newline at end of file diff --git a/dist/misc/ajax.js b/dist/misc/ajax.js deleted file mode 100644 index d5c168f4..00000000 --- a/dist/misc/ajax.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ajax = void 0; -var AjaxWrapper = (function () { - function AjaxWrapper(ajaxHandler) { - this.ajaxHandler = ajaxHandler; - } - return AjaxWrapper; -}()); -function ajax(_a) { - var _b = _a.method, method = _b === void 0 ? "GET" : _b, url = _a.url, onResponse = _a.onResponse, content = _a.content, _c = _a.headers, headers = _c === void 0 ? {} : _c; - var request = new XMLHttpRequest(); - request.onreadystatechange = function () { - if (!(request.readyState === 4 && (request.status === 200 || request.status === 201))) { - return; - } - if (typeof onResponse === "function") { - onResponse(request.responseText); - } - }; - request.open(method, url, true); - Object.entries(headers).forEach(function (entry) { return request.setRequestHeader(entry[0], entry[1]); }); - request.send(content); - return new AjaxWrapper(request); -} -exports.ajax = ajax; -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/dist/misc/ajax.js.map b/dist/misc/ajax.js.map deleted file mode 100644 index 23cf72b2..00000000 --- a/dist/misc/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../src/misc/ajax.ts"],"names":[],"mappings":";;;AAQA;IACI,qBAAoC,WAA2B;QAA3B,gBAAW,GAAX,WAAW,CAAgB;IAC/D,CAAC;IACL,kBAAC;AAAD,CAAC,AAHD,IAGC;AAED,SAAgB,IAAI,CAAC,EAMR;QALT,cAAc,EAAd,MAAM,mBAAG,KAAK,KAAA,EACd,GAAG,SAAA,EACH,UAAU,gBAAA,EACV,OAAO,aAAA,EACP,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA;IAEZ,IAAM,OAAO,GAAgB,IAAI,cAAc,EAAE,CAAC;IAClD,OAAO,CAAC,kBAAkB,GAAG;QACzB,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE;YACnF,OAAO;SACV;QACD,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;SACpC;IACL,CAAC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAChC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAA5C,CAA4C,CAAC,CAAC;IACzF,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEtB,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AArBD,oBAqBC"} \ No newline at end of file diff --git a/dist/misc/file-size-formatter.d.ts b/dist/misc/file-size-formatter.d.ts deleted file mode 100644 index 17709474..00000000 --- a/dist/misc/file-size-formatter.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function formatFileSize(sizeInBytes: number, longForm?: boolean): string; -//# sourceMappingURL=file-size-formatter.d.ts.map \ No newline at end of file diff --git a/dist/misc/file-size-formatter.d.ts.map b/dist/misc/file-size-formatter.d.ts.map deleted file mode 100644 index 4a323683..00000000 --- a/dist/misc/file-size-formatter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-size-formatter.d.ts","sourceRoot":"","sources":["../../src/misc/file-size-formatter.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,CAa5E"} \ No newline at end of file diff --git a/dist/misc/file-size-formatter.js b/dist/misc/file-size-formatter.js deleted file mode 100644 index 3b437ec9..00000000 --- a/dist/misc/file-size-formatter.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.formatFileSize = void 0; -var FILE_SIZE_UNITS = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; -var FILE_SIZE_UNITS_LONG = ["Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Pettabytes", "Exabytes", "Zettabytes", "Yottabytes"]; -function formatFileSize(sizeInBytes, longForm) { - if (longForm === void 0) { longForm = false; } - var units = longForm - ? FILE_SIZE_UNITS_LONG - : FILE_SIZE_UNITS; - var power = Math.round(Math.log(sizeInBytes) / Math.log(1024)); - power = Math.min(power, units.length - 1); - var size = sizeInBytes / Math.pow(1024, power); - var formattedSize = Math.round(size * 100) / 100; - var unit = units[power]; - return size ? formattedSize + " " + unit : "0"; -} -exports.formatFileSize = formatFileSize; -//# sourceMappingURL=file-size-formatter.js.map \ No newline at end of file diff --git a/dist/misc/file-size-formatter.js.map b/dist/misc/file-size-formatter.js.map deleted file mode 100644 index aa6517a1..00000000 --- a/dist/misc/file-size-formatter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"file-size-formatter.js","sourceRoot":"","sources":["../../src/misc/file-size-formatter.ts"],"names":[],"mappings":";;;AAAA,IAAM,eAAe,GAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnF,IAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AAEpI,SAAgB,cAAc,CAAC,WAAmB,EAAE,QAAgB;IAAhB,yBAAA,EAAA,gBAAgB;IAChE,IAAM,KAAK,GAAG,QAAQ;QAClB,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,eAAe,CAAC;IAEtB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,KAAK,GAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE9C,IAAM,IAAI,GAAY,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1D,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IACnD,IAAM,IAAI,GAAY,KAAK,CAAC,KAAK,CAAC,CAAC;IAEnC,OAAO,IAAI,CAAC,CAAC,CAAI,aAAa,SAAI,IAAM,CAAC,CAAC,CAAC,GAAG,CAAC;AACnD,CAAC;AAbD,wCAaC"} \ No newline at end of file diff --git a/dist/misc/index.d.ts b/dist/misc/index.d.ts deleted file mode 100644 index cf3fa73d..00000000 --- a/dist/misc/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./slovak-stemmer"; -export * from "./ajax"; -export * from "./file-size-formatter"; -export * from "./simple-loop"; -export * from "./runtime-validators"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/misc/index.d.ts.map b/dist/misc/index.d.ts.map deleted file mode 100644 index d9a6bff0..00000000 --- a/dist/misc/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/dist/misc/index.js b/dist/misc/index.js deleted file mode 100644 index 14c3516f..00000000 --- a/dist/misc/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./slovak-stemmer"), exports); -__exportStar(require("./ajax"), exports); -__exportStar(require("./file-size-formatter"), exports); -__exportStar(require("./simple-loop"), exports); -__exportStar(require("./runtime-validators"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/misc/index.js.map b/dist/misc/index.js.map deleted file mode 100644 index 99a4c9af..00000000 --- a/dist/misc/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/misc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC;AACjC,yCAAuB;AACvB,wDAAsC;AACtC,gDAA8B;AAC9B,uDAAqC"} \ No newline at end of file diff --git a/dist/misc/runtime-validators.d.ts b/dist/misc/runtime-validators.d.ts deleted file mode 100644 index 676a0f24..00000000 --- a/dist/misc/runtime-validators.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const getAsString: (key: any) => string; -export declare const getAsNumber: (key: any) => number; -//# sourceMappingURL=runtime-validators.d.ts.map \ No newline at end of file diff --git a/dist/misc/runtime-validators.d.ts.map b/dist/misc/runtime-validators.d.ts.map deleted file mode 100644 index 7c6e5aca..00000000 --- a/dist/misc/runtime-validators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime-validators.d.ts","sourceRoot":"","sources":["../../src/misc/runtime-validators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,GAAG,KAAG,MAMtC,CAAC;AACF,eAAO,MAAM,WAAW,QAAS,GAAG,KAAG,MAMtC,CAAC"} \ No newline at end of file diff --git a/dist/misc/runtime-validators.js b/dist/misc/runtime-validators.js deleted file mode 100644 index e1cbe12e..00000000 --- a/dist/misc/runtime-validators.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAsNumber = exports.getAsString = void 0; -var getAsString = function (key) { - if (typeof key !== "string") { - throw new Error("Variable with value " + key + " is not a string"); - } - return key; -}; -exports.getAsString = getAsString; -var getAsNumber = function (key) { - if (typeof key !== "number") { - throw new Error("Variable with value " + key + " is not a number"); - } - return key; -}; -exports.getAsNumber = getAsNumber; -//# sourceMappingURL=runtime-validators.js.map \ No newline at end of file diff --git a/dist/misc/runtime-validators.js.map b/dist/misc/runtime-validators.js.map deleted file mode 100644 index 6083ddfc..00000000 --- a/dist/misc/runtime-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"runtime-validators.js","sourceRoot":"","sources":["../../src/misc/runtime-validators.ts"],"names":[],"mappings":";;;AAAO,IAAM,WAAW,GAAG,UAAC,GAAQ;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,yBAAuB,GAAG,qBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AACK,IAAM,WAAW,GAAG,UAAC,GAAQ;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,yBAAuB,GAAG,qBAAkB,CAAC,CAAC;KACjE;IAED,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"} \ No newline at end of file diff --git a/dist/misc/simple-loop.d.ts b/dist/misc/simple-loop.d.ts deleted file mode 100644 index 8254ccb6..00000000 --- a/dist/misc/simple-loop.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare function simpleLoop(callback: (delta: number) => void, requiredFps?: number): { - stop: () => void; -}; -//# sourceMappingURL=simple-loop.d.ts.map \ No newline at end of file diff --git a/dist/misc/simple-loop.d.ts.map b/dist/misc/simple-loop.d.ts.map deleted file mode 100644 index 6446a38f..00000000 --- a/dist/misc/simple-loop.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-loop.d.ts","sourceRoot":"","sources":["../../src/misc/simple-loop.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,WAAW,SAAK,GAAG;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CAepG"} \ No newline at end of file diff --git a/dist/misc/simple-loop.js b/dist/misc/simple-loop.js deleted file mode 100644 index 3913885d..00000000 --- a/dist/misc/simple-loop.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.simpleLoop = void 0; -function simpleLoop(callback, requiredFps) { - if (requiredFps === void 0) { requiredFps = 60; } - var start; - var req; - var requiredDuration = 1000 / requiredFps; - var tick = function (time) { - var duration = time - start; - start = time; - req = requestAnimationFrame(tick); - callback((duration / requiredDuration) || 1); - }; - req = requestAnimationFrame(tick); - return { - stop: function () { return cancelAnimationFrame(req); }, - }; -} -exports.simpleLoop = simpleLoop; -//# sourceMappingURL=simple-loop.js.map \ No newline at end of file diff --git a/dist/misc/simple-loop.js.map b/dist/misc/simple-loop.js.map deleted file mode 100644 index 33b3428d..00000000 --- a/dist/misc/simple-loop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-loop.js","sourceRoot":"","sources":["../../src/misc/simple-loop.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,QAAiC,EAAE,WAAgB;IAAhB,4BAAA,EAAA,gBAAgB;IAC1E,IAAI,KAAa,CAAC;IAClB,IAAI,GAAW,CAAC;IAChB,IAAM,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;IAC5C,IAAM,IAAI,GAAG,UAAC,IAAY;QACtB,IAAM,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC;QAC9B,KAAK,GAAG,IAAI,CAAC;QACb,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAClC,QAAQ,CAAC,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC;IACF,GAAG,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAElC,OAAO;QACH,IAAI,EAAC,cAAM,OAAA,oBAAoB,CAAC,GAAG,CAAC,EAAzB,CAAyB;KACvC,CAAC;AACN,CAAC;AAfD,gCAeC"} \ No newline at end of file diff --git a/dist/misc/slovak-stemmer.d.ts b/dist/misc/slovak-stemmer.d.ts deleted file mode 100644 index 2cbb2311..00000000 --- a/dist/misc/slovak-stemmer.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class SlovakStemmer { - static steme(word: string): string; -} -//# sourceMappingURL=slovak-stemmer.d.ts.map \ No newline at end of file diff --git a/dist/misc/slovak-stemmer.d.ts.map b/dist/misc/slovak-stemmer.d.ts.map deleted file mode 100644 index bd1a24f2..00000000 --- a/dist/misc/slovak-stemmer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"slovak-stemmer.d.ts","sourceRoot":"","sources":["../../src/misc/slovak-stemmer.ts"],"names":[],"mappings":"AAwMA,qBAAa,aAAa;WACR,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAQ5C"} \ No newline at end of file diff --git a/dist/misc/slovak-stemmer.js b/dist/misc/slovak-stemmer.js deleted file mode 100644 index 15003a20..00000000 --- a/dist/misc/slovak-stemmer.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SlovakStemmer = void 0; -function removePredpona(char) { - if (char.length > 6 && char.startsWith("naj")) { - return char.substr(3, char.length); - } - return char; -} -function removeCase(key) { - var len = key.length; - if (len > 9 && key.endsWith("ejšieho") - || key.endsWith("ejšiemu")) { - return key.substring(0, len - 7); - } - if (len > 8 && (key.endsWith("ejších") || - key.endsWith("encoch") || - key.endsWith("ejšími") || - key.endsWith("encami"))) { - return key.substring(0, len - 6); - } - if (len > 7 && (key.endsWith("ejšia") || - key.endsWith("atami") || - key.endsWith("atách") || - key.endsWith("eniec") || - key.endsWith("encom") || - key.endsWith("ejšom") || - key.endsWith("ejším") || - key.endsWith("ejšej") || - key.endsWith("ejšou") || - key.endsWith("ejšiu") || - key.endsWith("ejšie"))) { - return key.substring(0, len - 5); - } - if (len > 6 && - (key.endsWith("eťom") || - key.endsWith("iami") || - key.endsWith("atám") || - key.endsWith("aťom") || - key.endsWith("ovia") || - key.endsWith("iach") || - key.endsWith("atám") || - key.endsWith("ence") || - key.endsWith("ieho") || - key.endsWith("iemu") || - key.endsWith("ieme") || - key.endsWith("iete") || - key.endsWith("ejší") || - key.endsWith("enie"))) { - return key.substring(0, len - 4); - } - if (len > 5 && - (key.endsWith("ich") || - key.endsWith("eho") || - key.endsWith("ych") || - key.endsWith("ích") || - key.endsWith("ého") || - key.endsWith("emi") || - key.endsWith("ému") || - key.endsWith("emu") || - key.endsWith("ími") || - key.endsWith("imi") || - key.endsWith("ách") || - key.endsWith("ých") || - key.endsWith("ami") || - key.endsWith("ovi") || - key.endsWith("ieť") || - key.endsWith("ieš") || - key.endsWith("ejú") || - key.endsWith("ajú") || - key.endsWith("ujú") || - key.endsWith("ejú") || - key.endsWith("eme") || - key.endsWith("íte") || - key.endsWith("íme") || - key.endsWith("ými") || - key.endsWith("ymi") || - key.endsWith("ach") || - key.endsWith("iam") || - key.endsWith("iac") || - key.endsWith("ite") || - key.endsWith("ili") || - key.endsWith("ila") || - key.endsWith("ilo") || - key.endsWith("ime") || - key.endsWith("och"))) { - return key.substring(0, len - 3); - } - if (len > 4 && - (key.endsWith("ím") || - key.endsWith("ám") || - key.endsWith("am") || - key.endsWith("us") || - key.endsWith("ým") || - key.endsWith("ym") || - key.endsWith("mi") || - key.endsWith("ou") || - key.endsWith("om") || - key.endsWith("ej") || - key.endsWith("ov") || - key.endsWith("ia") || - key.endsWith("ie") || - key.endsWith("iu") || - key.endsWith("im") || - key.endsWith("ho") || - key.endsWith("mu") || - key.endsWith("me") || - key.endsWith("te") || - key.endsWith("ať") || - key.endsWith("aš") || - key.endsWith("úť") || - key.endsWith("iť") || - key.endsWith("íš") || - key.endsWith("iš") || - key.endsWith("il") || - key.endsWith("úc") || - key.endsWith("eš"))) { - return key.substring(0, len - 2); - } - if (len > 3) { - switch (key[len - 1]) { - case "a": - case "e": - case "i": - case "o": - case "u": - case "ú": - case "y": - case "á": - case "é": - case "í": - case "ý": - return key.substring(0, len - 1); - } - } - return key; -} -function removePossessives(s) { - var len = s.length; - if (len > 5 && s.endsWith("in") || - s.endsWith("ov")) { - return s.substr(0, len - 2); - } - return s; -} -function normalize(s) { - var len = s.length; - switch (s[len - 1]) { - case "c": - case "č": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "k"; }); - case "ľ": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "l"; }); - case "ň": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "n"; }); - case "ť": - return s.replace(/./g, function (e, i) { return i === len - 1 ? e : "t"; }); - } - if (len > 3 && s[len - 3] === "i" && (s[len - 2] === "e" || s[len - 2] === "a" || s[len - 2] === "u")) { - return s.replace(/./g, function (e, i) { - if (i === len - 3) { - return s[len - 2]; - } - if (i === len - 2) { - return s[len - 1]; - } - return e; - }); - } - return s; -} -var SlovakStemmer = (function () { - function SlovakStemmer() { - } - SlovakStemmer.steme = function (word) { - var result = removePossessives(removeCase(removePredpona(word))); - if (result.length) { - return normalize(result); - } - return result; - }; - return SlovakStemmer; -}()); -exports.SlovakStemmer = SlovakStemmer; -//# sourceMappingURL=slovak-stemmer.js.map \ No newline at end of file diff --git a/dist/misc/slovak-stemmer.js.map b/dist/misc/slovak-stemmer.js.map deleted file mode 100644 index 8879d150..00000000 --- a/dist/misc/slovak-stemmer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"slovak-stemmer.js","sourceRoot":"","sources":["../../src/misc/slovak-stemmer.ts"],"names":[],"mappings":";;;AAAA,SAAS,cAAc,CAAC,IAAY;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KACtC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAGD,SAAS,UAAU,CAAC,GAAW;IAC3B,IAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC;IACvB,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,QA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CAAC;SAC5B;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,oBAAC;AAAD,CAAC,AATD,IASC;AATY,sCAAa"} \ No newline at end of file diff --git a/dist/models/color.model.d.ts b/dist/models/color.model.d.ts deleted file mode 100644 index bb1ce151..00000000 --- a/dist/models/color.model.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export declare class Color { - readonly red: number; - readonly green: number; - readonly blue: number; - readonly alpha: number; - static readonly BLACK: Color; - static readonly WHITE: Color; - static readonly GRAY: Color; - static readonly RED: Color; - static readonly GREEN: Color; - static readonly BLUE: Color; - constructor(red: number, green: number, blue: number, alpha?: number); - get rgb(): [number, number, number]; - get rgbString(): string; - get rgba(): [number, number, number, number]; - get hex(): string; - get int(): number; - static fromHex(color: string): Color; - static fromInt(color: number): Color; - normalized(): Color; -} -//# sourceMappingURL=color.model.d.ts.map \ No newline at end of file diff --git a/dist/models/color.model.d.ts.map b/dist/models/color.model.d.ts.map deleted file mode 100644 index e1e801ae..00000000 --- a/dist/models/color.model.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color.model.d.ts","sourceRoot":"","sources":["../../src/models/color.model.ts"],"names":[],"mappings":"AAOA,qBAAa,KAAK;aAQqB,GAAG,EAAE,MAAM;aACX,KAAK,EAAE,MAAM;aACb,IAAI,EAAE,MAAM;aACZ,KAAK;IAVxC,gBAAuB,KAAK,QAAsB;IAClD,gBAAuB,KAAK,QAA4B;IACxD,gBAAuB,IAAI,QAA6B;IACxD,gBAAuB,GAAG,QAA0B;IACpD,gBAAuB,KAAK,QAAwB;IACpD,gBAAuB,IAAI,QAAyB;gBAEjB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,KAAK,SAAM;IAO9C,IAAW,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAEzC;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAElD;IAED,IAAW,GAAG,IAAI,MAAM,CAEvB;IAED,IAAW,GAAG,IAAI,MAAM,CAEvB;WAEa,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;WAM7B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;IAMpC,UAAU,IAAI,KAAK;CAO7B"} \ No newline at end of file diff --git a/dist/models/color.model.js b/dist/models/color.model.js deleted file mode 100644 index 23b757d5..00000000 --- a/dist/models/color.model.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Color = void 0; -var utils_1 = require("../utils"); -function checkColorValue(value) { - console.assert(value >= 0); - console.assert(value <= 255); -} -var Color = (function () { - function Color(red, green, blue, alpha) { - if (alpha === void 0) { alpha = 255; } - this.red = red; - this.green = green; - this.blue = blue; - this.alpha = alpha; - checkColorValue(red); - checkColorValue(green); - checkColorValue(blue); - checkColorValue(alpha); - } - Object.defineProperty(Color.prototype, "rgb", { - get: function () { - return [this.red, this.green, this.blue]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "rgbString", { - get: function () { - return "rgb(" + this.red + ", " + this.green + ", " + this.blue + ")"; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "rgba", { - get: function () { - return [this.red, this.green, this.blue, this.alpha]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "hex", { - get: function () { - return utils_1.rgb2hex(Math.floor(this.red), Math.floor(this.green), Math.floor(this.blue)); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Color.prototype, "int", { - get: function () { - return utils_1.rgb2int(this.red, this.green, this.blue); - }, - enumerable: false, - configurable: true - }); - Color.fromHex = function (color) { - var value = utils_1.hex2rgb(color); - return new (Color.bind.apply(Color, __spreadArrays([void 0], value)))(); - }; - Color.fromInt = function (color) { - var value = utils_1.int2rgb(color); - return new (Color.bind.apply(Color, __spreadArrays([void 0], value)))(); - }; - Color.prototype.normalized = function () { - if (this.red > 1 || this.green > 1 || this.blue > 1 || this.alpha > 1) { - return new Color(this.red / 255, this.green / 255, this.blue / 255, this.alpha / 255); - } - return this; - }; - Color.BLACK = new Color(0, 0, 0); - Color.WHITE = new Color(255, 255, 255); - Color.GRAY = new Color(128, 128, 128); - Color.RED = new Color(255, 0, 0); - Color.GREEN = new Color(0, 255, 0); - Color.BLUE = new Color(0, 0, 255); - return Color; -}()); -exports.Color = Color; -//# sourceMappingURL=color.model.js.map \ No newline at end of file diff --git a/dist/models/color.model.js.map b/dist/models/color.model.js.map deleted file mode 100644 index a06586b0..00000000 --- a/dist/models/color.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color.model.js","sourceRoot":"","sources":["../../src/models/color.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,kCAA8D;AAE9D,SAAS,eAAe,CAAC,KAAa;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;IAQI,eAAmC,GAAW,EACX,KAAa,EACb,IAAY,EACZ,KAAW;QAAX,sBAAA,EAAA,WAAW;QAHX,QAAG,GAAH,GAAG,CAAQ;QACX,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAM;QAC1C,eAAe,CAAC,GAAG,CAAC,CAAC;QACrB,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,eAAe,CAAC,IAAI,CAAC,CAAC;QACt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G,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YACnE,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;SACzF;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAvDsB,WAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3B,WAAK,GAAG,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,UAAI,GAAI,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,SAAG,GAAK,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,WAAK,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IAC7B,UAAI,GAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAmDxD,YAAC;CAAA,AAzDD,IAyDC;AAzDY,sBAAK"} \ No newline at end of file diff --git a/dist/models/countries/country.interface.d.ts b/dist/models/countries/country.interface.d.ts deleted file mode 100644 index 32a661c2..00000000 --- a/dist/models/countries/country.interface.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Hold data about country - */ -export interface CountryData { - key: string; - patterns: string[]; - name: string; - capitalCity: string; - currency: string; - diallingCode: string; -} -//# sourceMappingURL=country.interface.d.ts.map \ No newline at end of file diff --git a/dist/models/countries/country.interface.d.ts.map b/dist/models/countries/country.interface.d.ts.map deleted file mode 100644 index fffceaf6..00000000 --- a/dist/models/countries/country.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.interface.d.ts","sourceRoot":"","sources":["../../../src/models/countries/country.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACxB"} \ No newline at end of file diff --git a/dist/models/countries/country.interface.js b/dist/models/countries/country.interface.js deleted file mode 100644 index ed593fca..00000000 --- a/dist/models/countries/country.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=country.interface.js.map \ No newline at end of file diff --git a/dist/models/countries/country.interface.js.map b/dist/models/countries/country.interface.js.map deleted file mode 100644 index 1c3ddaf6..00000000 --- a/dist/models/countries/country.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.interface.js","sourceRoot":"","sources":["../../../src/models/countries/country.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/countries/country.model.d.ts b/dist/models/countries/country.model.d.ts deleted file mode 100644 index 0d297f37..00000000 --- a/dist/models/countries/country.model.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { CountryData } from "./country.interface"; -/** - * Class used for parsing countries - */ -export declare class Country { - /** - * Function try to get country by key and return CountryData or null if cannot parse country - * - * @param key - Country key - * @returns if found than CountryData otherwise null - */ - static getByKey(key: string): CountryData | null; - /** - * Function try to parse country by name or key or substring and return CountryData or null if cannot parse country - * - * @param key - searched key - * @returns if found than CountryData otherwise null - */ - static find(key: string): CountryData | null; -} -//# sourceMappingURL=country.model.d.ts.map \ No newline at end of file diff --git a/dist/models/countries/country.model.d.ts.map b/dist/models/countries/country.model.d.ts.map deleted file mode 100644 index 42bfc7db..00000000 --- a/dist/models/countries/country.model.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.model.d.ts","sourceRoot":"","sources":["../../../src/models/countries/country.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAUlD;;GAEG;AACH,qBAAa,OAAO;IAChB;;;;;OAKG;WACW,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAMvD;;;;;OAKG;WACW,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;CAKtD"} \ No newline at end of file diff --git a/dist/models/countries/country.model.js b/dist/models/countries/country.model.js deleted file mode 100644 index 4162afa4..00000000 --- a/dist/models/countries/country.model.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Country = void 0; -var utils_1 = require("gtools/utils"); -var data = require("./countries.data.json"); -var countries = {}; -data.forEach(function (country) { return countries[country.key] = country; }); -var Country = (function () { - function Country() { - } - Country.getByKey = function (key) { - var finalKey = key.toUpperCase(); - return countries[finalKey] || data.find(function (country) { return country.key === finalKey; }) || null; - }; - Country.find = function (key) { - var finalKey = utils_1.toBasicForm(key); - return data.find(function (country) { return country.key.toLowerCase() === finalKey || country.patterns.some(function (pattern) { return finalKey.indexOf(pattern) >= 0; }); }) || null; - }; - return Country; -}()); -exports.Country = Country; -//# sourceMappingURL=country.model.js.map \ No newline at end of file diff --git a/dist/models/countries/country.model.js.map b/dist/models/countries/country.model.js.map deleted file mode 100644 index 2eba791b..00000000 --- a/dist/models/countries/country.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"country.model.js","sourceRoot":"","sources":["../../../src/models/countries/country.model.ts"],"names":[],"mappings":";;;AAAA,sCAA2C;AAK3C,IAAM,IAAI,GAAkB,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAG7D,IAAM,SAAS,GAAmC,EAAE,CAAC;AACrD,IAAI,CAAC,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,EAAhC,CAAgC,CAAC,CAAC;AAK5D;IAAA;IAwBA,CAAC;IAjBiB,gBAAQ,GAAtB,UAAuB,GAAW;QAC9B,IAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;QAEnC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,KAAK,QAAQ,EAAxB,CAAwB,CAAC,IAAI,IAAI,CAAC;IAC3F,CAAC;IAQa,YAAI,GAAlB,UAAmB,GAAW;QAC1B,IAAM,QAAQ,GAAG,mBAAW,CAAC,GAAG,CAAC,CAAC;QAElC,OAAO,IAAI,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,OAAO,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAA9B,CAA8B,CAAC,EAA5G,CAA4G,CAAC,IAAI,IAAI,CAAC;IACxJ,CAAC;IACL,cAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,0BAAO"} \ No newline at end of file diff --git a/dist/models/data-structures/binary-queue.d.ts b/dist/models/data-structures/binary-queue.d.ts deleted file mode 100644 index be9f9007..00000000 --- a/dist/models/data-structures/binary-queue.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare class BinaryHeap { - private readonly scoreFunction; - private content; - constructor(scoreFunction: (item: T) => number); - push(element: T): void; - pop(): T; - remove(node: T): void; - size(): number; - rescoreElement(node: T): void; - sinkDown(n: number): void; - bubbleUp(n: number): void; -} -//# sourceMappingURL=binary-queue.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/binary-queue.d.ts.map b/dist/models/data-structures/binary-queue.d.ts.map deleted file mode 100644 index bac16e26..00000000 --- a/dist/models/data-structures/binary-queue.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-queue.d.ts","sourceRoot":"","sources":["../../../src/models/data-structures/binary-queue.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU,CAAC,CAAC;IAGF,OAAO,CAAC,QAAQ,CAAC,aAAa;IAFjD,OAAO,CAAC,OAAO,CAAW;gBAEU,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM;IAG/D,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI;IAQtB,GAAG,IAAI,CAAC;IAeR,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAkBrB,IAAI,IAAI,MAAM;IAId,cAAc,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAI7B,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAsBzB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CA6CnC"} \ No newline at end of file diff --git a/dist/models/data-structures/binary-queue.js b/dist/models/data-structures/binary-queue.js deleted file mode 100644 index d7c3c71c..00000000 --- a/dist/models/data-structures/binary-queue.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinaryHeap = void 0; -var BinaryHeap = (function () { - function BinaryHeap(scoreFunction) { - this.scoreFunction = scoreFunction; - this.content = []; - } - BinaryHeap.prototype.push = function (element) { - this.content.push(element); - this.sinkDown(this.content.length - 1); - }; - BinaryHeap.prototype.pop = function () { - var result = this.content[0]; - var end = this.content.pop(); - if (this.content.length > 0) { - this.content[0] = end; - this.bubbleUp(0); - } - return result; - }; - BinaryHeap.prototype.remove = function (node) { - var i = this.content.indexOf(node); - var end = this.content.pop(); - if (i !== this.content.length - 1) { - this.content[i] = end; - if (this.scoreFunction(end) < this.scoreFunction(node)) { - this.sinkDown(i); - } - else { - this.bubbleUp(i); - } - } - }; - BinaryHeap.prototype.size = function () { - return this.content.length; - }; - BinaryHeap.prototype.rescoreElement = function (node) { - this.sinkDown(this.content.indexOf(node)); - }; - BinaryHeap.prototype.sinkDown = function (n) { - var element = this.content[n]; - while (n > 0) { - var parentN = ((n + 1) >> 1) - 1; - var parent_1 = this.content[parentN]; - if (this.scoreFunction(element) < this.scoreFunction(parent_1)) { - this.content[parentN] = element; - this.content[n] = parent_1; - n = parentN; - } - else { - break; - } - } - }; - BinaryHeap.prototype.bubbleUp = function (n) { - var length = this.content.length; - var element = this.content[n]; - var elemScore = this.scoreFunction(element); - while (true) { - var child2N = (n + 1) << 1; - var child1N = child2N - 1; - var swap = null; - var child1Score = void 0; - if (child1N < length) { - var child1 = this.content[child1N]; - child1Score = this.scoreFunction(child1); - if (child1Score < elemScore) { - swap = child1N; - } - } - if (child2N < length) { - var child2 = this.content[child2N]; - var child2Score = this.scoreFunction(child2); - if (child2Score < (swap === null ? elemScore : child1Score)) { - swap = child2N; - } - } - if (swap !== null) { - this.content[n] = this.content[swap]; - this.content[swap] = element; - n = swap; - } - else { - break; - } - } - }; - return BinaryHeap; -}()); -exports.BinaryHeap = BinaryHeap; -//# sourceMappingURL=binary-queue.js.map \ No newline at end of file diff --git a/dist/models/data-structures/binary-queue.js.map b/dist/models/data-structures/binary-queue.js.map deleted file mode 100644 index f63232b7..00000000 --- a/dist/models/data-structures/binary-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-queue.js","sourceRoot":"","sources":["../../../src/models/data-structures/binary-queue.ts"],"names":[],"mappings":";;;AAAA;IAGI,oBAAoC,aAAkC;QAAlC,kBAAa,GAAb,aAAa,CAAqB;QAF9D,YAAO,GAAQ,EAAE,CAAC;IAG1B,CAAC;IAEM,yBAAI,GAAX,UAAY,OAAU;QAElB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAG3B,IAAI,CAAC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AI,GAAG,OAAO,CAAC;iBAClB;aACJ;YAGD,IAAI,OAAO,GAAG,MAAM,EAAE;gBAClB,IAAM,MAAM,GAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBAC1C,IAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;gBAE/C,IAAI,WAAW,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;oBACzD,IAAI,GAAG,OAAO,CAAC;iBAClB;aACJ;YAGD,IAAI,IAAI,KAAK,IAAI,EAAE;gBACf,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;gBAC7B,CAAC,GAAoB,IAAI,CAAC;aAC7B;iBAAM;gBACH,MAAM;aACT;SACJ;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AA1HD,IA0HC;AA1HY,gCAAU"} \ No newline at end of file diff --git a/dist/models/data-structures/binary-tree.d.ts b/dist/models/data-structures/binary-tree.d.ts deleted file mode 100644 index 763e07d3..00000000 --- a/dist/models/data-structures/binary-tree.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { G43Collection } from "./g43-collection"; -declare class Node { - val: T; - leftChild: Node | null; - rightChild: Node | null; - constructor(val: T); -} -/** - * TODO: add comparator - */ -export declare class BinarySearchTree implements G43Collection { - root: Node | null; - private _length; - get length(): number; - constructor(rootValue: T); - clear(): void; - private addInternally; - add(newValue: T): void; - forEach(callback: (item: T, index: number) => boolean): void; - forEachOrderedInternally(currentNode: Node | null, callback: (item: T, index: number) => boolean, order: "POST" | "PRE"): void; - forEachInternally(currentNode: Node | null, callback: (item: T, index: number) => boolean): void; - private searchInternally; - search(value: T): Node | null; - contains(value: T): boolean; - remove(value: T): boolean; - private removeInternally; -} -export {}; -//# sourceMappingURL=binary-tree.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/binary-tree.d.ts.map b/dist/models/data-structures/binary-tree.d.ts.map deleted file mode 100644 index 255afa6f..00000000 --- a/dist/models/data-structures/binary-tree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-tree.d.ts","sourceRoot":"","sources":["../../../src/models/data-structures/binary-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,cAAM,IAAI,CAAC,CAAC;IAIkB,GAAG,EAAE,CAAC;IAHzB,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAS;IAClC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;gBAEf,GAAG,EAAE,CAAC;CAEnC;AAED;;GAEG;AACH,qBAAa,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAE,YAAW,aAAa,CAAC,CAAC,CAAC;IAChE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,OAAO,CAAK;IAEpB,IAAW,MAAM,IAAI,MAAM,CAE1B;gBAEkB,SAAS,EAAE,CAAC;IAIxB,KAAK,IAAI,IAAI;IAKpB,OAAO,CAAC,aAAa;IAad,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI;IAStB,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAI5D,wBAAwB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAoBjI,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAS1G,OAAO,CAAC,gBAAgB;IAiBjB,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI;IAIhC,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO;IAI3B,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO;IAUhC,OAAO,CAAC,gBAAgB;CAiF3B"} \ No newline at end of file diff --git a/dist/models/data-structures/binary-tree.js b/dist/models/data-structures/binary-tree.js deleted file mode 100644 index 69a7f459..00000000 --- a/dist/models/data-structures/binary-tree.js +++ /dev/null @@ -1,166 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinarySearchTree = void 0; -var Node = (function () { - function Node(val) { - this.val = val; - this.leftChild = null; - this.rightChild = null; - } - return Node; -}()); -var BinarySearchTree = (function () { - function BinarySearchTree(rootValue) { - this._length = 0; - this.root = new Node(rootValue); - } - Object.defineProperty(BinarySearchTree.prototype, "length", { - get: function () { - return this._length; - }, - enumerable: false, - configurable: true - }); - BinarySearchTree.prototype.clear = function () { - this._length = 0; - this.root = null; - }; - BinarySearchTree.prototype.addInternally = function (currentNode, newValue) { - if (currentNode === null) { - currentNode = new Node(newValue); - } - else if (newValue < currentNode.val) { - currentNode.leftChild = this.addInternally(currentNode.leftChild, newValue); - } - else { - currentNode.rightChild = this.addInternally(currentNode.rightChild, newValue); - } - this._length++; - return currentNode; - }; - BinarySearchTree.prototype.add = function (newValue) { - if (!this.root) { - this.root = new Node(newValue); - return; - } - this.addInternally(this.root, newValue); - }; - BinarySearchTree.prototype.forEach = function (callback) { - this.forEachInternally(this.root, callback); - }; - BinarySearchTree.prototype.forEachOrderedInternally = function (currentNode, callback, order) { - if (!currentNode) { - return; - } - if (order === "PRE") { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.leftChild, callback, order); - if (!order) { - callback(currentNode.val, NaN); - } - this.forEachOrderedInternally(currentNode.rightChild, callback, order); - if (order === "POST") { - callback(currentNode.val, NaN); - } - }; - BinarySearchTree.prototype.forEachInternally = function (currentNode, callback) { - if (!currentNode) { - return; - } - this.forEachInternally(currentNode.leftChild, callback); - callback(currentNode.val, NaN); - this.forEachInternally(currentNode.rightChild, callback); - }; - BinarySearchTree.prototype.searchInternally = function (currentNode, value) { - if (currentNode) { - if (value === currentNode.val) { - return currentNode; - } - if (value < currentNode.val) { - return this.searchInternally(currentNode.leftChild, value); - } - return this.searchInternally(currentNode.rightChild, value); - } - return null; - }; - BinarySearchTree.prototype.search = function (value) { - return this.searchInternally(this.root, value); - }; - BinarySearchTree.prototype.contains = function (value) { - return !!this.search(value); - }; - BinarySearchTree.prototype.remove = function (value) { - var removed = this.removeInternally(this.root, value); - if (removed) { - this._length--; - } - return removed; - }; - BinarySearchTree.prototype.removeInternally = function (currentNode, value) { - var _a, _b; - if (!currentNode) { - return false; - } - var parentNode = null; - while (currentNode && (currentNode.val !== value)) { - parentNode = currentNode; - if (value < currentNode.val) { - currentNode = currentNode.leftChild; - } - else { - currentNode = currentNode.rightChild; - } - } - if (currentNode === null) { - return false; - } - if (!currentNode.leftChild && !currentNode.rightChild) { - if (currentNode.val === ((_a = this.root) === null || _a === void 0 ? void 0 : _a.val)) { - this.root = null; - return true; - } - if (currentNode.val < parentNode.val) { - parentNode.leftChild = null; - return true; - } - parentNode.rightChild = null; - return true; - } - if (!currentNode.rightChild) { - if (currentNode.val === ((_b = this.root) === null || _b === void 0 ? void 0 : _b.val)) { - this.root = currentNode.leftChild; - return true; - } - if (currentNode.leftChild.val < parentNode.val) { - parentNode.leftChild = currentNode.leftChild; - return true; - } - parentNode.rightChild = currentNode.leftChild; - return true; - } - if (!currentNode.leftChild) { - if (currentNode.val === this.root.val) { - this.root = currentNode.rightChild; - return true; - } - if (currentNode.rightChild.val < parentNode.val) { - parentNode.leftChild = currentNode.rightChild; - return true; - } - parentNode.rightChild = currentNode.rightChild; - return true; - } - var minRight = currentNode.rightChild; - while (minRight.leftChild !== null) { - minRight = minRight.leftChild; - } - var temp = minRight.val; - this.removeInternally(this.root, minRight.val); - currentNode.val = temp; - return true; - }; - return BinarySearchTree; -}()); -exports.BinarySearchTree = BinarySearchTree; -//# sourceMappingURL=binary-tree.js.map \ No newline at end of file diff --git a/dist/models/data-structures/binary-tree.js.map b/dist/models/data-structures/binary-tree.js.map deleted file mode 100644 index 0c5f8aa1..00000000 --- a/dist/models/data-structures/binary-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-tree.js","sourceRoot":"","sources":["../../../src/models/data-structures/binary-tree.ts"],"names":[],"mappings":";;;AAEA;IAII,cAA0B,GAAM;QAAN,QAAG,GAAH,GAAG,CAAG;QAHzB,cAAS,GAAoB,IAAI,CAAC;QAClC,eAAU,GAAmB,IAAI,CAAC;IAGzC,CAAC;IACL,WAAC;AAAD,CAAC,AAND,IAMC;AAKD;IAQI,0BAAmB,SAAY;QANvB,YAAO,GAAG,CAAC,CAAC;QAOhB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAND,sBAAW,oCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;;;OAAA;IAMM,gCAAK,GAAZ;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAM,IAAI,CAAC;IACxB,CAAC;IAEO,wCAAa,GAArB,UAAsB,WAA2B,EAAE,QAAW;QAC1D,IAAI,WAAW,KAAK,IAAI,EAAE;YACtB,WAAW,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;SACpC;aAAM,IAAI,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;YACnC,WAAW,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa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G,WAAW,CAAC,SAAS,CAAC;YAE/C,OAAO,IAAI,CAAC;SAEf;QACD,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE;YACxB,IAAI,WAAW,CAAC,GAAG,KAAK,IAAI,CAAC,IAAK,CAAC,GAAG,EAAE;gBACpC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC;gBAEnC,OAAO,IAAI,CAAC;aACf;YACD,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,GAAG,UAAW,CAAC,GAAG,EAAE;gBAC9C,UAAW,CAAC,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC;gBAE/C,OAAO,IAAI,CAAC;aACf;YACD,UAAW,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;YAEhD,OAAO,IAAI,CAAC;SAEf;QACD,IAAI,QAAQ,GAAG,WAAW,CAAC,UAAU,CAAC;QACtC,OAAO,QAAQ,CAAC,SAAS,KAAK,IAAI,EAAE;YAChC,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC;SACjC;QACD,IAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,WAAW,CAAC,GAAG,GAAG,IAAI,CAAC;QAEvB,OAAO,IAAI,CAAC;IAEhB,CAAC;IACL,uBAAC;AAAD,CAAC,AA5LD,IA4LC;AA5LY,4CAAgB"} \ No newline at end of file diff --git a/dist/models/data-structures/g43-collection.d.ts b/dist/models/data-structures/g43-collection.d.ts deleted file mode 100644 index 28d1e2a8..00000000 --- a/dist/models/data-structures/g43-collection.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export interface G43BasicCollection { - readonly length: number; - add(item: T): void; - contains(item: T): boolean; - clear(): void; - forEach(callback: (item: T, index: number) => boolean): void; -} -export interface G43Collection extends G43BasicCollection { - remove(item: T): void; -} -//# sourceMappingURL=g43-collection.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/g43-collection.d.ts.map b/dist/models/data-structures/g43-collection.d.ts.map deleted file mode 100644 index 82a31609..00000000 --- a/dist/models/data-structures/g43-collection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g43-collection.d.ts","sourceRoot":"","sources":["../../../src/models/data-structures/g43-collection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC;IAC3B,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;CAChE;AAED,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;CACzB"} \ No newline at end of file diff --git a/dist/models/data-structures/g43-collection.js b/dist/models/data-structures/g43-collection.js deleted file mode 100644 index 9aba4cd9..00000000 --- a/dist/models/data-structures/g43-collection.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=g43-collection.js.map \ No newline at end of file diff --git a/dist/models/data-structures/g43-collection.js.map b/dist/models/data-structures/g43-collection.js.map deleted file mode 100644 index ad23998d..00000000 --- a/dist/models/data-structures/g43-collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"g43-collection.js","sourceRoot":"","sources":["../../../src/models/data-structures/g43-collection.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid-filters.d.ts b/dist/models/data-structures/grid-accessor/grid-filters.d.ts deleted file mode 100644 index 83aa1cbe..00000000 --- a/dist/models/data-structures/grid-accessor/grid-filters.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Grid2BlockAccessor } from "./grid2-block-accessor"; -import { Grid2Block } from "./holders-2d/grid2-holder"; -import { Grid3Block } from "./holders-3d/grid3-holder"; -export declare type GridBlockItemFilter = (item: T) => boolean; -export declare type Grid2BlockFilter = (item: Grid2Block) => boolean; -export declare type Grid2AccessorFilter = (item: Grid2BlockAccessor) => boolean; -export declare type Grid3BlockFilter = (item: Grid3Block) => boolean; -//# sourceMappingURL=grid-filters.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid-filters.d.ts.map b/dist/models/data-structures/grid-accessor/grid-filters.d.ts.map deleted file mode 100644 index 7c5bba29..00000000 --- a/dist/models/data-structures/grid-accessor/grid-filters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-filters.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,oBAAY,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;AAC1D,oBAAY,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC;AACnE,oBAAY,mBAAmB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC;AAC9E,oBAAY,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid-filters.js b/dist/models/data-structures/grid-accessor/grid-filters.js deleted file mode 100644 index c1fea093..00000000 --- a/dist/models/data-structures/grid-accessor/grid-filters.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=grid-filters.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid-filters.js.map b/dist/models/data-structures/grid-accessor/grid-filters.js.map deleted file mode 100644 index aea0b294..00000000 --- a/dist/models/data-structures/grid-accessor/grid-filters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-filters.js","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid-filters.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts b/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts deleted file mode 100644 index 347d7ff8..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Grid2BlockFilter, GridBlockItemFilter } from "./grid-filters"; -import { Grid2BlockAccessor } from "./grid2-block-accessor"; -import { Grid2Block, Grid2Holder } from "./holders-2d/grid2-holder"; -export declare class Grid2Accessor { - private readonly holder; - private readonly around4Offsets; - private readonly around8Offsets; - constructor(holder: Grid2Holder); - get(position: SimpleVector2): T | undefined; - getAccessor(position: SimpleVector2): Grid2BlockAccessor; - getRandomAround(position: SimpleVector2, radius: number, condition: Grid2BlockFilter): Grid2Block | undefined; - getRandomBlock(filter: GridBlockItemFilter): Grid2Block | undefined; - checkEveryFromPosAndSize(position: SimpleVector2, size: SimpleVector2, condition: GridBlockItemFilter): boolean; -} -//# sourceMappingURL=grid2-accessor.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts.map b/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts.map deleted file mode 100644 index b9e8c7b6..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-accessor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-accessor.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid2-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEpE,qBAAa,aAAa,CAAC,CAAC;IAmBpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAlB3B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;IACF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAS7B;gBAGmB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;IAIpC,GAAG,CAAC,QAAQ,EAAE,aAAa,GAAG,CAAC,GAAG,SAAS;IAI3C,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,kBAAkB,CAAC,CAAC,CAAC;IAG3D,eAAe,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;IAInH,cAAc,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;IAIzE,wBAAwB,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO;CAI5H"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-accessor.js b/dist/models/data-structures/grid-accessor/grid2-accessor.js deleted file mode 100644 index 43d59fb4..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-accessor.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2Accessor = void 0; -var grid2_block_accessor_1 = require("./grid2-block-accessor"); -var Grid2Accessor = (function () { - function Grid2Accessor(holder) { - this.holder = holder; - this.around4Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - ]; - this.around8Offsets = [ - { x: +0, y: +1 }, - { x: +0, y: -1 }, - { x: +1, y: +0 }, - { x: -1, y: +0 }, - { x: +1, y: +1 }, - { x: +1, y: -1 }, - { x: -1, y: +1 }, - { x: -1, y: -1 }, - ]; - } - Grid2Accessor.prototype.get = function (position) { - return this.holder.get(position.x, position.y); - }; - Grid2Accessor.prototype.getAccessor = function (position) { - return new grid2_block_accessor_1.Grid2BlockAccessor(this.holder, position); - }; - Grid2Accessor.prototype.getRandomAround = function (position, radius, condition) { - return this.holder.getAroundData(position.x, position.y, radius).sort(Math.random).find(condition); - }; - Grid2Accessor.prototype.getRandomBlock = function (filter) { - return this.holder.getRandomBlock(filter); - }; - Grid2Accessor.prototype.checkEveryFromPosAndSize = function (position, size, condition) { - return this.holder.getArea(position, size).every(condition); - }; - return Grid2Accessor; -}()); -exports.Grid2Accessor = Grid2Accessor; -//# sourceMappingURL=grid2-accessor.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-accessor.js.map b/dist/models/data-structures/grid-accessor/grid2-accessor.js.map deleted file mode 100644 index 40539b14..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-accessor.js","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid2-accessor.ts"],"names":[],"mappings":";;;AAEA,+DAA4D;AAG5D;IAkBI,uBACqB,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QAlB1B,mBAAc,GAA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EAAE,SAA8B;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvG,CAAC;IAEM,sCAAc,GAArB,UAAsB,MAA8B;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAEM,gDAAwB,GAA/B,UAAgC,QAAuB,EAAE,IAAmB,EAAE,SAAiC;QAC3G,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;IAEL,oBAAC;AAAD,CAAC,AA1CD,IA0CC;AA1CY,sCAAa"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts b/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts deleted file mode 100644 index 92af0105..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { GridBlockItemFilter } from "./grid-filters"; -import { Grid2Holder } from "./holders-2d/grid2-holder"; -export declare class Grid2BlockAccessor { - private readonly holder; - private readonly position; - constructor(holder: Grid2Holder, position: SimpleVector2); - check(filter: GridBlockItemFilter): boolean; - getByOffset(x?: number, y?: number): Grid2BlockAccessor; - get top(): Grid2BlockAccessor; - get bottom(): Grid2BlockAccessor; - get left(): Grid2BlockAccessor; - get right(): Grid2BlockAccessor; -} -//# sourceMappingURL=grid2-block-accessor.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts.map b/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts.map deleted file mode 100644 index c8831789..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-block-accessor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-block-accessor.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,qBAAa,kBAAkB,CAAC,CAAC;IAEzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EACtB,QAAQ,EAAE,aAAa;IAIrC,KAAK,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO;IAI9C,WAAW,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI,GAAG,kBAAkB,CAAC,CAAC,CAAC;IAIvD,IAAW,GAAG,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAEtC;IAED,IAAW,MAAM,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAEzC;IAED,IAAW,IAAI,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAEvC;IAED,IAAW,KAAK,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAExC;CACJ"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-block-accessor.js b/dist/models/data-structures/grid-accessor/grid2-block-accessor.js deleted file mode 100644 index 0a768c4c..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-block-accessor.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2BlockAccessor = void 0; -var Grid2BlockAccessor = (function () { - function Grid2BlockAccessor(holder, position) { - this.holder = holder; - this.position = position; - } - Grid2BlockAccessor.prototype.check = function (filter) { - return filter(this.holder.get(this.position.x, this.position.y)); - }; - Grid2BlockAccessor.prototype.getByOffset = function (x, y) { - if (x === void 0) { x = 0; } - if (y === void 0) { y = 0; } - return new Grid2BlockAccessor(this.holder, { x: this.position.x + x, y: this.position.y - y }); - }; - Object.defineProperty(Grid2BlockAccessor.prototype, "top", { - get: function () { - return this.getByOffset(0, -1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "bottom", { - get: function () { - return this.getByOffset(0, 1); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "left", { - get: function () { - return this.getByOffset(-1, 0); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Grid2BlockAccessor.prototype, "right", { - get: function () { - return this.getByOffset(1, 0); - }, - enumerable: false, - configurable: true - }); - return Grid2BlockAccessor; -}()); -exports.Grid2BlockAccessor = Grid2BlockAccessor; -//# sourceMappingURL=grid2-block-accessor.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/grid2-block-accessor.js.map b/dist/models/data-structures/grid-accessor/grid2-block-accessor.js.map deleted file mode 100644 index 1f4f9c7d..00000000 --- a/dist/models/data-structures/grid-accessor/grid2-block-accessor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-block-accessor.js","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/grid2-block-accessor.ts"],"names":[],"mappings":";;;AAIA;IACI,4BACqB,MAAsB,EACtB,QAAuB;QADvB,WAAM,GAAN,MAAM,CAAgB;QACtB,aAAQ,GAAR,QAAQ,CAAe;IAE5C,CAAC;IAEM,kCAAK,GAAZ,UAAa,MAA8B;QACvC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAM,CAAC,CAAC;IAC1E,CAAC;IAEM,wCAAW,GAAlB,UAAmB,CAAK,EAAE,CAAK;QAAZ,kBAAA,EAAA,KAAK;QAAE,kBAAA,EAAA,KAAK;QAC3B,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,EAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC;IACjG,CAAC;IAED,sBAAW,mCAAG;aAAd;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAW,sCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;;;OAAA;IAED,sBAAW,oCAAI;aAAf;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC;;;OAAA;IAED,sBAAW,qCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;;;OAAA;IACL,yBAAC;AAAD,CAAC,AA9BD,IA8BC;AA9BY,gDAAkB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts deleted file mode 100644 index c3cfdc0e..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -import { SimpleVector2 } from "../../../../math"; -export declare class Grid2ArrayHolder implements Grid2Holder { - readonly size: SimpleVector2; - readonly data: T[]; - constructor(size: SimpleVector2, data: T[]); - get length(): number; - static initEmpty(x: number, y: number, defaultValue?: T): Grid2ArrayHolder; - static initWithProvider(x: number, y: number, provider: (x: number, y: number) => T): Grid2ArrayHolder; - setData(data: T[]): void; - get(x: number, y: number): T; - set(x: number, y: number, value: T): void; - delete(x: number, y: number): void; - private getIndex; - private getCoordinates; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getAround(x: number, y: number, size?: number): T[]; - getAroundSQ(x: number, y: number, size?: number): T[]; - getBetween(pointA: SimpleVector2, pointB: SimpleVector2): T[]; - /** - * TODO: add limit - */ - getNearest(x: number, y: number, condition: (item: T) => boolean): Grid2Block[]; - expandConditionally(x: number, y: number, condition: (item: T) => boolean): Grid2Block[]; - private getAround4; - private getAround4Index; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - private getAreaInternally; - forEach(callback: (item: T, x: number, y: number) => void | boolean): boolean; - getRandomBlockOfSize(size: SimpleVector2, filter: GridBlockItemFilter): Grid2Block | null; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; - getRandomBlock2(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-array-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts.map deleted file mode 100644 index 75726e10..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-array-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAW,MAAM,kBAAkB,CAAC;AAa1D,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;aACnB,IAAI,EAAE,aAAa;aAAkB,IAAI,EAAE,CAAC,EAAE;gBAA9C,IAAI,EAAE,aAAa,EAAkB,IA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AC,KAAK,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAgClF,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IA6BlG,OAAO,CAAC,UAAU;IAoBlB,OAAO,CAAC,eAAe;IAoBhB,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAIjE,OAAO,CAAC,iBAAiB;IAyClB,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,GAAG,OAAO;IAU7E,oBAAoB,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI;IAa/F,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;IAa1E,eAAe,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAsBrF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js deleted file mode 100644 index 116e0df2..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js +++ /dev/null @@ -1,296 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2ArrayHolder = void 0; -var math_1 = require("../../../../math"); -function getMapIndex(x, y, width) { - return y * width + x; -} -function getCoordinates(index, width) { - return { - x: index % width, - y: Math.floor(index / width), - }; -} -var Grid2ArrayHolder = (function () { - function Grid2ArrayHolder(size, data) { - this.size = size; - this.data = data; - } - Object.defineProperty(Grid2ArrayHolder.prototype, "length", { - get: function () { - return this.data.length; - }, - enumerable: false, - configurable: true - }); - Grid2ArrayHolder.initEmpty = function (x, y, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var size = x * y; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid2ArrayHolder({ x: x, y: y }, result); - }; - Grid2ArrayHolder.initWithProvider = function (x, y, provider) { - var size = x * y; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = provider(x, y); - } - return new Grid2ArrayHolder({ x: x, y: y }, result); - }; - Grid2ArrayHolder.prototype.setData = function (data) { - var _a; - if (data.length !== this.data.length) { - throw new Error("Array with new data mush be same size"); - } - this.data.length = 0; - (_a = this.data).push.apply(_a, data); - }; - Grid2ArrayHolder.prototype.get = function (x, y) { - return this.data[this.getIndex(x, y)]; - }; - Grid2ArrayHolder.prototype.set = function (x, y, value) { - this.data[this.getIndex(x, y)] = value; - }; - Grid2ArrayHolder.prototype.delete = function (x, y) { - this.data[this.getIndex(x, y)] = undefined; - }; - Grid2ArrayHolder.prototype.getIndex = function (x, y) { - return getMapIndex(x, y, this.size.x); - }; - Grid2ArrayHolder.prototype.getCoordinates = function (index) { - return getCoordinates(index, this.size.x); - }; - Grid2ArrayHolder.prototype.getAroundData = function (x, y, size) { - if (size === void 0) { size = 1; } - var center = { x: x, y: y }; - var minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - var maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "block").filter(function (e) { return math_1.Vector2.dist(e.coordinates, center) <= size; }); - }; - Grid2ArrayHolder.prototype.getAround = function (x, y, size) { - if (size === void 0) { size = 1; } - return this.getAroundData(x, y, size).map(function (e) { return e.item; }); - }; - Grid2ArrayHolder.prototype.getAroundSQ = function (x, y, size) { - if (size === void 0) { size = 1; } - var minPosition = { - x: Math.max(0, x - size), - y: Math.max(0, y - size), - }; - var maxPosition = { - x: Math.min(this.size.x - 1, size + x), - y: Math.min(this.size.y - 1, size + y), - }; - return this.getAreaInternally(minPosition, { - x: maxPosition.x - minPosition.x + 1, - y: maxPosition.y - minPosition.y + 1, - }, "data"); - }; - Grid2ArrayHolder.prototype.getBetween = function (pointA, pointB) { - var min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - }; - var max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - }, "data"); - }; - Grid2ArrayHolder.prototype.getNearest = function (x, y, condition) { - var _this = this; - var Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - var data = {}; - var result = []; - var current = [[this.getIndex(x, y)]]; - var _loop_1 = function () { - var actualLevel = current.shift(); - var nextLevel = []; - actualLevel.forEach(function (actual) { - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - return; - } - var coordinates = _this.getCoordinates(actual); - if (condition(_this.data[actual])) { - data[actual] = Statuses.ADDED; - result.push({ coordinates: coordinates, item: _this.data[actual] }); - } - else { - data[actual] = Statuses.FALSE; - nextLevel.push.apply(nextLevel, _this.getAround4(coordinates.x, coordinates.y)); - } - }); - current.push(nextLevel); - }; - while (!result.length) { - _loop_1(); - } - return result; - }; - Grid2ArrayHolder.prototype.expandConditionally = function (x, y, condition) { - var Statuses; - (function (Statuses) { - Statuses[Statuses["ADDED"] = 0] = "ADDED"; - Statuses[Statuses["FALSE"] = 1] = "FALSE"; - })(Statuses || (Statuses = {})); - var data = {}; - var current = [this.getIndex(x, y)]; - var result = []; - while (current.length) { - var actual = current.shift(); - if (data[actual] === Statuses.ADDED || data[actual] === Statuses.FALSE) { - continue; - } - if (condition(this.data[actual])) { - data[actual] = Statuses.ADDED; - var coordinates = this.getCoordinates(actual); - result.push({ coordinates: coordinates, item: this.data[actual] }); - current.push.apply(current, this.getAround4(coordinates.x, coordinates.y)); - } - else { - data[actual] = Statuses.FALSE; - } - } - return result; - }; - Grid2ArrayHolder.prototype.getAround4 = function (x, y) { - var centerIndex = this.getIndex(x, y); - var result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - }; - Grid2ArrayHolder.prototype.getAround4Index = function (centerIndex) { - var _a = this.getCoordinates(centerIndex), x = _a.x, y = _a.y; - var result = []; - if (x > 0) { - result.push(centerIndex - 1); - } - if (y > 0) { - result.push(centerIndex - this.size.x); - } - if (x + 1 < this.size.x) { - result.push(centerIndex + 1); - } - if (y + 1 < this.size.y) { - result.push(centerIndex + this.size.x); - } - return result; - }; - Grid2ArrayHolder.prototype.getArea = function (position, size) { - return this.getAreaInternally(position, size, "data"); - }; - Grid2ArrayHolder.prototype.getAreaInternally = function (position, size, select) { - var _this = this; - var result = new Array(size.x * size.y); - var counter = 0; - var y = position.y; - if (select === "block") { - for (var i = 0; i < size.y; i++) { - var currentIndex = this.getIndex(position.x, y); - for (var j = 0; j < size.x; j++) { - result[counter++] = { - index: currentIndex, - item: this.data[currentIndex++], - coordinates: { y: y, x: position.x + j }, - }; - } - y++; - } - return result; - } - for (var i = 0; i < size.y; i++) { - var currentIndex = this.getIndex(position.x, y); - for (var j = 0; j < size.x; j++) { - result[counter++] = currentIndex++; - } - y++; - } - if (select === "indices") { - return result; - } - return result.map(function (index) { return _this.data[index]; }); - }; - Grid2ArrayHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - if (callback(this.data[i], i % this.size.x, Math.floor(i / this.size.x)) === false) { - return false; - } - } - return true; - }; - Grid2ArrayHolder.prototype.getRandomBlockOfSize = function (size, filter) { - while (true) { - var randomIndex = Math.floor(Math.random() * this.data.length); - var blocks = this.getArea(this.getCoordinates(randomIndex), size); - if (blocks.every(function (item) { return filter(item); })) { - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - } - }; - Grid2ArrayHolder.prototype.getRandomBlock = function (filter) { - while (true) { - var randomIndex = Math.floor(Math.random() * this.data.length); - var item = this.data[randomIndex]; - if (!filter || filter(item)) { - return { - item: item, - coordinates: this.getCoordinates(randomIndex), - }; - } - } - }; - Grid2ArrayHolder.prototype.getRandomBlock2 = function (filter) { - if (!filter) { - var randomIndex = Math.floor(Math.random() * this.data.length); - return { - item: this.data[randomIndex], - coordinates: this.getCoordinates(randomIndex), - }; - } - var sortedArray = this.data.map(function (item, index) { return ({ item: item, index: index }); }).sort(function () { return Math.random() - 0.5; }); - var result = sortedArray.find(function (e) { return filter(e.item); }); - if (!result) { - return; - } - return { - item: result.item, - coordinates: this.getCoordinates(result.index), - }; - }; - return Grid2ArrayHolder; -}()); -exports.Grid2ArrayHolder = Grid2ArrayHolder; -//# sourceMappingURL=grid2-array-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map deleted file mode 100644 index b1ab648f..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-array-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts"],"names":[],"mappings":";;;AACA,yCAA0D;AAE1D,SAAS,WAAW,CAAC,CAAS,EAAE,CAAS,EAAE,KAAa;IACpD,OAAO,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,cAAc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,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;aAChD,CAAC;SACL;QAED,IAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAAI,EAAE,KAAK,IAAK,OAAA,CAAC,EAAC,IAAI,MAAA,EAAE,KAAK,OAAA,EAAC,CAAC,EAAf,CAAe,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAnB,CAAmB,CAAC,CAAC;QACpG,IAAM,MAAM,GAAQ,WAAW,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAC;QAE5D,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QAED,OAAO;YACH,IAAI,EAAS,MAAM,CAAC,IAAI;YACxB,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC;SACjD,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AAxUD,IAwUC;AAxUY,4CAAgB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts deleted file mode 100644 index e515421d..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -import { SimpleVector2 } from "../../../../math"; -export declare class Grid2HashHolder implements Grid2Holder { - private readonly data; - get length(): number; - get(x: number, y: number): T | undefined; - set(x: number, y: number, value: T): void; - forEach(callback: (value: T, x: number, y: number) => void): boolean; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - delete(x: number, y: number): void; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-hash-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts.map deleted file mode 100644 index add12db6..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-hash-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA6D;IAElF,IAAW,MAAM,IAAI,MAAM,CAE1B;IAEM,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIxC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIzC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO;IAMpE,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAI1D,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlC,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAInE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAGpF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js deleted file mode 100644 index 098535a0..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2HashHolder = void 0; -var math_utils_1 = require("../../../../utils/math-utils"); -var Grid2HashHolder = (function () { - function Grid2HashHolder() { - this.data = {}; - } - Object.defineProperty(Grid2HashHolder.prototype, "length", { - get: function () { - return Object.keys(this.data).length; - }, - enumerable: false, - configurable: true - }); - Grid2HashHolder.prototype.get = function (x, y) { - var _a; - return (_a = this.data[math_utils_1.hash2Numbers(x, y)]) === null || _a === void 0 ? void 0 : _a.value; - }; - Grid2HashHolder.prototype.set = function (x, y, value) { - this.data[math_utils_1.hash2Numbers(x, y)] = { x: x, y: y, value: value }; - }; - Grid2HashHolder.prototype.forEach = function (callback) { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y)); }); - return true; - }; - Grid2HashHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2HashHolder.prototype.delete = function (x, y) { - delete this.data[math_utils_1.hash2Numbers(x, y)]; - }; - Grid2HashHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2HashHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2HashHolder; -}()); -exports.Grid2HashHolder = Grid2HashHolder; -//# sourceMappingURL=grid2-hash-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map deleted file mode 100644 index 59ab92c3..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-hash-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts"],"names":[],"mappings":";;;AAEA,2DAA4D;AAE5D;IAAA;QACqB,SAAI,GAA0D,EAAE,CAAC;IAmCtF,CAAC;IAjCG,sBAAW,mCAAM;aAAjB;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QACzC,CAAC;;;OAAA;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS;;QAC3B,aAAO,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC;IAChD,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,KAAK,OAAA,EAAC,CAAC;IAClD,CAAC;IAEM,iCAAO,GAAd,UAAe,QAAkD;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAtC,CAAsC,CAAC,CAAC;QAEnF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,iCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,gCAAM,GAAb,UAAc,CAAS,EAAE,CAAS;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAEM,uCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,wCAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,sBAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,0CAAe"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts deleted file mode 100644 index 1bd111c8..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { GridBlockItemFilter } from "../grid-filters"; -export interface Grid2Block { - readonly item: T; - readonly coordinates: SimpleVector2; -} -export interface Grid2Holder { - get(x: number, y: number): T | undefined; - set(x: number, y: number, value: T): void; - /** - * Iterate over all elements. If callback returns non falsy result, iteration will breaks and function returns false. - * If all callback calls return false, function returns true - * - * @param callback - function to be executed on each element - */ - forEach(callback: (block: T, x: number, y: number) => boolean): boolean; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; -} -//# sourceMappingURL=grid2-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts.map deleted file mode 100644 index a4fce675..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,UAAU,CAAC,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;CACvC;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC1B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAEzC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAE1C;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC;IAExE,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAEpE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAE3E,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE,CAAC;CAC9D"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js deleted file mode 100644 index 3d08a428..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=grid2-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map deleted file mode 100644 index 5e791cbe..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts deleted file mode 100644 index fc10f9ca..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -export declare class Grid2MapHolder implements Grid2Holder { - readonly data: T[][]; - readonly length: number; - constructor(data: T[][]); - static initEmpty(x: number, y: number, defaultValue?: T): Grid2MapHolder; - static initWithProvider(x: number, y: number, provider: (x: number, y: number) => T): Grid2MapHolder; - get(x: number, y: number): T | undefined; - set(x: number, y: number, value: T): void; - delete(x: number, y: number): void; - forEach(callback: (block: T, x: number, y: number) => void): boolean; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-map-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts.map deleted file mode 100644 index 56c1e1c4..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-map-holder.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CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAInE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAGpF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js deleted file mode 100644 index 49a72b77..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2MapHolder = void 0; -var Grid2MapHolder = (function () { - function Grid2MapHolder(data) { - this.data = data; - this.length = this.data.length * this.data[0].length; - } - Grid2MapHolder.initEmpty = function (x, y, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var result = new Array(x); - for (var i = 0; i < x; i++) { - result[i] = new Array(y); - for (var j = 0; j < y; j++) { - result[i][j] = defaultValue; - } - } - return new Grid2MapHolder(result); - }; - Grid2MapHolder.initWithProvider = function (x, y, provider) { - var result = new Array(x); - for (var i = 0; i < x; i++) { - result[i] = new Array(y); - for (var j = 0; j < y; j++) { - result[i][j] = provider(x, y); - } - } - return new Grid2MapHolder(result); - }; - Grid2MapHolder.prototype.get = function (x, y) { - return this.data[x][y]; - }; - Grid2MapHolder.prototype.set = function (x, y, value) { - this.data[x][y] = value; - }; - Grid2MapHolder.prototype.delete = function (x, y) { - this.data[x][y] = undefined; - }; - Grid2MapHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - for (var j = 0; j < this.data[i].length; j++) { - callback(this.data[i][j], i, j); - } - } - return true; - }; - Grid2MapHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2MapHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2MapHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2MapHolder; -}()); -exports.Grid2MapHolder = Grid2MapHolder; -//# sourceMappingURL=grid2-map-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map deleted file mode 100644 index 5b0642c2..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-map-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts"],"names":[],"mappings":";;;AAGA;IAGI,wBAAmC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAF9B,WAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAGhE,CAAC;IAEa,wBAAS,GAAvB,UAA2B,CAAS,EAAE,CAAS,EAAE,YAAsC;QAAtC,6BAAA,EAAA,eAAkB,IAAoB;QACnF,IAAM,MAAM,GAAG,IAAI,KAAK,CAAM,CAAC,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,CAAC;YAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBACxB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC;aAC/B;SACJ;QAED,OAAO,IAAI,cAAc,CAAI,MAAM,CAAC,CAAC;IACzC,CAAC;IAEa,+BAAgB,GAA9B,UAAkC,CAAS,EAAE,CAAS,EAAE,QAAqC;QACzF,IAAM,MAAM,GAAG,IAAI,KAAK,CAAM,CAAC,CAAC,CA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IAAI,CAAC;IAChB,CAAC;IAEM,gCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,sCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,uCAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,qBAAC;AAAD,CAAC,AA/DD,IA+DC;AA/DY,wCAAc"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts deleted file mode 100644 index e9c1a1be..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -export declare class Grid2ObjectHolder implements Grid2Holder { - private readonly data; - private _length; - get(x: number, y: number): T; - remove(x: number, y: number): void; - forEach(callback: (item: T, x: number, y: number) => void): boolean; - set(x: number, y: number, value: T): void; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-object-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts.map deleted file mode 100644 index f8da7dc8..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG7E,qBAAa,iBAAiB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA2C;IAChE,OAAO,CAAC,OAAO,CAAgD;IAExD,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAM5B,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAQlC,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO;IAUnE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAUzC,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAI1D,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAInE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAGpF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js deleted file mode 100644 index fb86daa2..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2ObjectHolder = void 0; -var object_utils_1 = require("../../../../utils/object-utils"); -var Grid2ObjectHolder = (function () { - function Grid2ObjectHolder() { - this.data = {}; - this._length = 0; - } - Grid2ObjectHolder.prototype.get = function (x, y) { - var row = object_utils_1.getOrSetProperty(this.data, x, {}); - return row[y]; - }; - Grid2ObjectHolder.prototype.remove = function (x, y) { - var row = object_utils_1.getOrSetProperty(this.data, x, {}); - if (row[y]) { - this._length--; - } - delete row[y]; - }; - Grid2ObjectHolder.prototype.forEach = function (callback) { - Object.entries(this.data).forEach(function (_a) { - var x = _a[0], chunkRows = _a[1]; - Object.entries(chunkRows).forEach(function (_a) { - var y = _a[0], chunk = _a[1]; - callback(chunk, +x, +y); - }); - }); - return true; - }; - Grid2ObjectHolder.prototype.set = function (x, y, value) { - var row = object_utils_1.getOrSetProperty(this.data, x, {}); - if (typeof row[y] === "undefined") { - this._length++; - } - row[y] = value; - }; - Grid2ObjectHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2ObjectHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2ObjectHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2ObjectHolder; -}()); -exports.Grid2ObjectHolder = Grid2ObjectHolder; -//# sourceMappingURL=grid2-object-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map deleted file mode 100644 index d7d7bef5..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts"],"names":[],"mappings":";;;AAEA,+DAAkE;AAElE;IAAA;QACqB,SAAI,GAAwC,EAAE,CAAC;QACxD,YAA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nB,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,yCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,0CAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,wBAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,8CAAiB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts deleted file mode 100644 index fbd838fb..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -export declare class Grid2ObjectMapHolder implements Grid2Holder { - private readonly chunks; - get length(): number; - get(x: number, y: number): T | undefined; - remove(x: number, y: number): boolean; - forEach(callback: (item: T, x: number, y: number) => void): boolean; - set(x: number, y: number, value: T): void; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-object-map-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts.map deleted file mode 100644 index 4718a9c4..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-map-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAE7E,qBAAa,oBAAoB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAE5D,IAAW,MAAM,IAAI,MAAM,CAK1B;IAEM,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIxC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAIrC,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO;IAMnE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAUzC,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAI1D,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAInE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAGpF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js deleted file mode 100644 index 3f70077e..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2ObjectMapHolder = void 0; -var Grid2ObjectMapHolder = (function () { - function Grid2ObjectMapHolder() { - this.chunks = new Map(); - } - Object.defineProperty(Grid2ObjectMapHolder.prototype, "length", { - get: function () { - var length = 0; - this.chunks.forEach(function (value) { return length += value.size; }); - return length; - }, - enumerable: false, - configurable: true - }); - Grid2ObjectMapHolder.prototype.get = function (x, y) { - var _a; - return (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.get(y); - }; - Grid2ObjectMapHolder.prototype.remove = function (x, y) { - var _a, _b; - return (_b = (_a = this.chunks.get(x)) === null || _a === void 0 ? void 0 : _a.delete(y)) !== null && _b !== void 0 ? _b : false; - }; - Grid2ObjectMapHolder.prototype.forEach = function (callback) { - this.chunks.forEach(function (row, x) { return row.forEach(function (item, y) { return callback(item, x, y); }); }); - return true; - }; - Grid2ObjectMapHolder.prototype.set = function (x, y, value) { - var row = this.chunks.get(x); - if (row) { - row.set(y, value); - } - else { - this.chunks.set(x, new Map([[y, value]])); - } - }; - Grid2ObjectMapHolder.prototype.getArea = function (position, size) { - return []; - }; - Grid2ObjectMapHolder.prototype.getAroundData = function (x, y, size) { - return []; - }; - Grid2ObjectMapHolder.prototype.getRandomBlock = function (filter) { - return; - }; - return Grid2ObjectMapHolder; -}()); -exports.Grid2ObjectMapHolder = Grid2ObjectMapHolder; -//# sourceMappingURL=grid2-object-map-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map deleted file mode 100644 index 227d556a..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-object-map-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-object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,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAC7C;IACL,CAAC;IAEM,sCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,4CAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,6CAAc,GAArB,UAAsB,MAA+B;QACjD,OAAO;IACX,CAAC;IACL,2BAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,oDAAoB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts deleted file mode 100644 index 0373b910..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Grid2Block, Grid2Holder, GridBlockItemFilter } from "gtools/models"; -import { SimpleVector2 } from "../../../../math"; -export declare class Grid2StringHolder implements Grid2Holder { - private readonly data; - get length(): number; - get(x: number, y: number): T | undefined; - set(x: number, y: number, value: T): void; - forEach(callback: (value: T, x: number, y: number) => void): boolean; - getArea(position: SimpleVector2, size: SimpleVector2): T[]; - delete(x: number, y: number): void; - getAroundData(x: number, y: number, size?: number): Grid2Block[]; - getRandomBlock(filter?: GridBlockItemFilter): Grid2Block | undefined; -} -//# sourceMappingURL=grid2-string-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts.map deleted file mode 100644 index c7fa81ba..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-string-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,iBAAiB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA6D;IAElF,IAAW,MAAM,IAAI,MAAM,CAE1B;IAEM,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAIxC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIzC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO;IAMpE,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAI1D,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAIlC,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE;IAInE,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS;CAGpF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js deleted file mode 100644 index 24ec6bea..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid2StringHolder = void 0; -var Grid2StringHolder = (function () { - function Grid2StringHolder() { - this.data = {}; - } - Object.defineProperty(Grid2StringHolder.prototype, "length", { - get: function () { - return Object.keys(this.data).length; - }, - enumerable: false, - configurable: true - }); - Grid2StringHolder.prototype.get = function (x, y) { - return this.data[x + "_" + y].value; - }; - Grid2StringHolder.prototype.set = function (x, y, value) { - this.data[x + "_" + y] = { x: x, y: y, value: value }; - }; - Grid2StringHolder.prototype.forEach = function (callback) { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y)); }); - return true; - }; - Grid2StringHolder.prototype.getArea = function (position, size) { - throw new Error("Not implemented"); - }; - Grid2StringHolder.prototype.delete = function (x, y) { - delete this.data[x + "_" + y]; - }; - Grid2StringHolder.prototype.getAroundData = function (x, y, size) { - throw new Error("Not implemented"); - }; - Grid2StringHolder.prototype.getRandomBlock = function (filter) { - throw new Error("Not implemented"); - }; - return Grid2StringHolder; -}()); -exports.Grid2StringHolder = Grid2StringHolder; -//# sourceMappingURL=grid2-string-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map deleted file mode 100644 index 01b4c771..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2-string-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts"],"names":[],"mappings":";;;AAGA;IAAA;QACqB,SAAI,GAA0D,EAAE,CAAC;IAmCtF,CAAC;IAjCG,sBAAW,qCAAM;aAAjB;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QACzC,CAAC;;;OAAA;IAEM,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,CAAC,KAAK,CAAC;IACxC,CAAC;IAEM,+BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,KAAQ;QACrC,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,GAAG,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,KAAK,OAAA,EAAC,CAAC;IAC3C,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAkD;QAC7D,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAtC,CAAsC,CAAC,CAAC;QAEnF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAO,GAAd,UAAe,QAAuB,EAAE,IAAmB;QACvD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,kCAAM,GAAb,UAAc,CAAS,EAAE,CAAS;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAI,CAAC,SAAI,CAAG,CAAC,CAAC;IAClC,CAAC;IAEM,yCAAa,GAApB,UAAqB,CAAS,EAAE,CAAS,EAAE,IAAa;QACpD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAEM,0CAAc,GAArB,UAAsB,MAA+B;QACjD,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IACL,wBAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,8CAAiB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts b/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts deleted file mode 100644 index 3b7cf0d7..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "mocha"; -//# sourceMappingURL=grid2.perf.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts.map deleted file mode 100644 index 132a3fa0..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2.perf.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js b/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js deleted file mode 100644 index 51593b1f..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -require("mocha"); -var grid2_array_holder_1 = require("./grid2-array-holder"); -var grid2_hash_holder_1 = require("./grid2-hash-holder"); -var grid2_map_holder_1 = require("./grid2-map-holder"); -var grid2_object_holder_1 = require("./grid2-object-holder"); -var grid2_object_map_holder_1 = require("./grid2-object-map-holder"); -var grid2_string_holder_1 = require("./grid2-string-holder"); -describe("Grid2", function () { - describe("default", function () { - var size = { x: 256, y: 256 }; - var arrayHolder = grid2_array_holder_1.Grid2ArrayHolder.initEmpty(size.x, size.y, 0); - var mapHolder = grid2_map_holder_1.Grid2MapHolder.initEmpty(size.x, size.y, 0); - var hashHolder = new grid2_hash_holder_1.Grid2HashHolder(); - var objectHolder = new grid2_object_holder_1.Grid2ObjectHolder(); - var stringHolder = new grid2_string_holder_1.Grid2StringHolder(); - var objectMapHolder = new grid2_object_map_holder_1.Grid2ObjectMapHolder(); - var sorts = [ - arrayHolder, - mapHolder, - objectHolder, - objectMapHolder, - stringHolder, - ]; - var createArray = function () { - var result = new Array(size.x); - for (var i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (var j = 0; j < size.y; j++) { - result[i][j] = Math.random(); - } - } - return result; - }; - it("It should test adding", function () { - sorts.forEach(function (holder) { - var testArr = createArray(); - var start = Date.now(); - testArr.forEach(function (row, x) { - row.forEach(function (item, y) { - holder.set(x, y, item); - }); - }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - for (var x = 0; x < size.x; x++) { - for (var y = 0; y < size.y; y++) { - holder.get(x, y); - } - } - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid2.perf.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map b/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map deleted file mode 100644 index 0ef72a3b..00000000 --- a/dist/models/data-structures/grid-accessor/holders-2d/grid2.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid2.perf.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts"],"names":[],"mappings":";;AAAA,iBAAe;AACf,2DAAwD;AACxD,yDAAsD;AAEtD,uDAAoD;AACpD,6DAA0D;AAC1D,qEAAiE;AACjE,6DAA0D;AAE1D,QAAQ,CAAC,OAAO,EAAE;IACd,QAAQ,CAAC,SAAS,EAAE;QAEhB,IAAM,IAAI,GAAc,EAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAC,CAAC;QACzC,IAAM,WAAW,GAAO,qCAAgB,CAAC,SAAS,CAAS,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,C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C,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts deleted file mode 100644 index 46793b6b..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SimpleVector3 } from "gtools/math"; -import { Grid3Holder } from "./grid3-holder"; -export declare function getIndex(x: number, y: number, z: number, width: number, height?: number): number; -export declare function getCoordinates(index: number, width: number, height?: number): SimpleVector3; -/** - * https://github.com/cuberite/cuberite/blob/master/src/ChunkDef.h - */ -export declare class Grid3ArrayHolder implements Grid3Holder { - private readonly size; - private readonly data; - constructor(size: SimpleVector3, data: T[]); - private getIndex; - private getCoordinates; - static initEmpty(x: number, y: number, z: number, defaultValue?: T): Grid3ArrayHolder; - get(x: number, y: number, z: number): T; - set(x: number, y: number, z: number, value: T): void; - forEach(callback: (item: T, x: number, y: number, z: number) => void | boolean): void; -} -//# sourceMappingURL=grid3-array-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts.map deleted file mode 100644 index 8c2601dc..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-array-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAQ,GAAG,MAAM,CAE/F;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAQ,GAAG,aAAa,CAM1F;AAED;;GAEG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAiB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAA1C,IAAI,EAAE,aAAa,EAAmB,IAAI,EAAE,CAAC,EAAE;IAGnF,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,cAAc;WAIR,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,CAAwB,GAAG,gBAAgB,CAAC,CAAC,CAAC;IAUjH,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAIvC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIpD,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,GAAG,IAAI;CAQ/F"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js deleted file mode 100644 index 520d2755..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid3ArrayHolder = exports.getCoordinates = exports.getIndex = void 0; -function getIndex(x, y, z, width, height) { - if (height === void 0) { height = width; } - return x + (z * width) + (y * width * height); -} -exports.getIndex = getIndex; -function getCoordinates(index, width, height) { - if (height === void 0) { height = width; } - return { - x: index % width, - y: Math.floor(index / (width * height)), - z: (index / width) % width, - }; -} -exports.getCoordinates = getCoordinates; -var Grid3ArrayHolder = (function () { - function Grid3ArrayHolder(size, data) { - this.size = size; - this.data = data; - } - Grid3ArrayHolder.prototype.getIndex = function (x, y, z) { - return getIndex(x, y, z, this.size.x); - }; - Grid3ArrayHolder.prototype.getCoordinates = function (index) { - return getCoordinates(index, this.size.x); - }; - Grid3ArrayHolder.initEmpty = function (x, y, z, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var size = x * y * z; - var result = new Array(size); - for (var i = 0; i < size; i++) { - result[i] = defaultValue; - } - return new Grid3ArrayHolder({ x: x, y: y, z: z }, result); - }; - Grid3ArrayHolder.prototype.get = function (x, y, z) { - return this.data[this.getIndex(x, y, z)]; - }; - Grid3ArrayHolder.prototype.set = function (x, y, z, value) { - this.data[this.getIndex(x, y, z)] = value; - }; - Grid3ArrayHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - var coordinates = this.getCoordinates(i); - if (callback(this.data[i], coordinates.x, coordinates.y, coordinates.z) === false) { - return; - } - } - }; - return Grid3ArrayHolder; -}()); -exports.Grid3ArrayHolder = Grid3ArrayHolder; -//# sourceMappingURL=grid3-array-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map deleted file mode 100644 index ce800fd8..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,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/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts deleted file mode 100644 index b5629697..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Grid3Holder } from "./grid3-holder"; -export declare class Grid3HashHolder implements Grid3Holder { - private readonly cacheForIteration; - private readonly data; - private values; - constructor(cacheForIteration?: boolean); - get(x: number, y: number, z: number): T; - set(x: number, y: number, z: number, value: T): void; - delete(x: number, y: number, z: number): void; - forEach(callback: (value: T, x: number, y: number, z: number) => void): void; -} -//# sourceMappingURL=grid3-hash-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts.map deleted file mode 100644 index 60a27c4c..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-hash-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;IAGlC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAFrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwE;IAC7F,OAAO,CAAC,MAAM,CAAmF;gBAC7D,iBAAiB,UAAQ;IAGtD,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAIvC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAOpD,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAO7C,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;CAOtF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js deleted file mode 100644 index af5d5460..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid3HashHolder = void 0; -var math_utils_1 = require("../../../../utils/math-utils"); -var Grid3HashHolder = (function () { - function Grid3HashHolder(cacheForIteration) { - if (cacheForIteration === void 0) { cacheForIteration = false; } - this.cacheForIteration = cacheForIteration; - this.data = {}; - this.values = []; - } - Grid3HashHolder.prototype.get = function (x, y, z) { - var _a; - return (_a = this.data[math_utils_1.hash3Numbers(x, y, z)]) === null || _a === void 0 ? void 0 : _a.value; - }; - Grid3HashHolder.prototype.set = function (x, y, z, value) { - this.data[math_utils_1.hash3Numbers(x, y, z)] = { value: value, x: x, y: y, z: z }; - if (this.cacheForIteration) { - this.values = Object.values(this.data); - } - }; - Grid3HashHolder.prototype.delete = function (x, y, z) { - delete this.data[math_utils_1.hash3Numbers(x, y, z)]; - if (this.cacheForIteration) { - this.values = Object.values(this.values); - } - }; - Grid3HashHolder.prototype.forEach = function (callback) { - if (this.cacheForIteration) { - this.values.forEach(function (item) { return callback(item.value, item.x, item.y, item.z); }); - } - else { - Object.values(this.data).forEach(function (item) { return (callback(item.value, item.x, item.y, item.z)); }); - } - }; - return Grid3HashHolder; -}()); -exports.Grid3HashHolder = Grid3HashHolder; -//# sourceMappingURL=grid3-hash-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map deleted file mode 100644 index 3fc2989f..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-hash-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts"],"names":[],"mappings":";;;AAAA,2DAA4D;AAG5D;IAGI,yBAAoC,iBAAyB;QAAzB,kCAAA,EAAA,yBAAyB;QAAzB,sBAAiB,GAAjB,iBAAiB,CAAQ;QAF5C,SAAI,GAAqE,EAAE,CAAC;QACrF,WAAM,GAAgF,EAAE,CAAC;IAEjG,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,CAAS;;QACtC,aAAO,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC;IACnD,CAAC;IAEM,6BAAG,GAAV,UAAW,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAQ;QAChD,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAC,KAAK,OAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC,CAAC;QACpD,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC1C;IACL,CAAC;IAEM,gCAAM,GAAb,UAAc,CAAS,EAAE,CAAS,EAAE,CAAS;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,yBAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5C;IACL,CAAC;IAEM,iCAAO,GAAd,UAAe,QAA6D;QACxE,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAA5C,CAA4C,CAAC,CAAC;SAC/E;aAAM;YACH,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAA9C,CAA8C,CAAC,CAAC;SAC9F;IACL,CAAC;IACL,sBAAC;AAAD,CAAC,AA/BD,IA+BC;AA/BY,0CAAe"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts deleted file mode 100644 index ba3bad94..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { SimpleVector3 } from "gtools/math"; -export interface Grid3Block { - readonly item: T; - readonly coordinates: SimpleVector3; -} -export interface Grid3Holder { - get(x: number, y: number, z: number): T; - set(x: number, y: number, z: number, value: T): void; - forEach(callback: (block: T, x: number, y: number, z: number) => void): void; -} -//# sourceMappingURL=grid3-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts.map deleted file mode 100644 index 72b39941..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,WAAW,UAAU,CAAC,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;CACvC;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC1B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAExC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAErD,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;CAOhF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js deleted file mode 100644 index a2e01929..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=grid3-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map deleted file mode 100644 index 7953b31f..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts deleted file mode 100644 index 32c6d246..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SimpleVector3 } from "gtools/math"; -import { GridBlockItemFilter } from "gtools/models"; -import { Grid3Block, Grid3Holder } from "./grid3-holder"; -export declare class Grid3MapHolder implements Grid3Holder { - readonly data: T[][][]; - constructor(data: T[][][]); - static initEmpty(x: number, y: number, z: number, defaultValue?: T): Grid3MapHolder; - get(x: number, y: number, z: number): T; - set(x: number, y: number, z: number, value: T): void; - getBetween(pointA: SimpleVector3, pointB: SimpleVector3): T[]; - getArea(position: SimpleVector3, size: SimpleVector3): T[]; - setData(data: T[][][]): void; - private getAreaInternally; - forEach(callback: (block: T, x: number, y: number, z: number) => void): void; - getRandomBlock(filter?: GridBlockItemFilter): Grid3Block | null; -} -//# sourceMappingURL=grid3-map-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts.map deleted file mode 100644 index f8ab9682..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-map-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,WAAW,CAAC,CAAC,CAAC;aACjB,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE;gBAAb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE;WAGlC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,CAAwB,GAAG,cAAc,CAAC,CAAC,CAAC;IAiB/G,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAIvC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAIpD,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,GAAG,CAAC,EAAE;IAmB7D,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,EAAE;IAI1D,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI;IAKnC,OAAO,CAAC,iBAAiB;IAuClB,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAU5E,cAAc,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI;CAkB/E"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js deleted file mode 100644 index abb2e4ce..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid3MapHolder = void 0; -var Grid3MapHolder = (function () { - function Grid3MapHolder(data) { - this.data = data; - } - Grid3MapHolder.initEmpty = function (x, y, z, defaultValue) { - if (defaultValue === void 0) { defaultValue = null; } - var result = new Array(x); - for (var i = 0; i < x; i++) { - var resA = new Array(y); - for (var j = 0; j < y; j++) { - var resB = new Array(z); - for (var k = 0; k < z; k++) { - resB[k] = defaultValue; - } - resA[j] = resB; - } - result[i] = resA; - } - return new Grid3MapHolder(result); - }; - Grid3MapHolder.prototype.get = function (x, y, z) { - var _a, _b; - return (_b = (_a = this.data[x]) === null || _a === void 0 ? void 0 : _a[y]) === null || _b === void 0 ? void 0 : _b[z]; - }; - Grid3MapHolder.prototype.set = function (x, y, z, value) { - this.data[x][y][z] = value; - }; - Grid3MapHolder.prototype.getBetween = function (pointA, pointB) { - var min = { - x: Math.min(pointA.x, pointB.x), - y: Math.min(pointA.y, pointB.y), - z: Math.min(pointA.z, pointB.z), - }; - var max = { - x: Math.max(pointA.x, pointB.x), - y: Math.max(pointA.y, pointB.y), - z: Math.max(pointA.z, pointB.z), - }; - return this.getAreaInternally(min, { - x: max.x - min.x + 1, - y: max.y - min.y + 1, - z: max.z - min.z + 1, - }, "data"); - }; - Grid3MapHolder.prototype.getArea = function (position, size) { - return this.getAreaInternally(position, size, "data"); - }; - Grid3MapHolder.prototype.setData = function (data) { - this.data.splice(0, this.data.length); - Object.assign(this.data, data); - }; - Grid3MapHolder.prototype.getAreaInternally = function (position, size, select) { - var result = []; - if (select === "block") { - for (var i = 0; i < size.x; i++) { - for (var j = 0; j < size.y; j++) { - for (var k = 0; k < size.z; k++) { - var x = i + position.x; - var y = j + position.y; - var z = k + position.z; - result.push({ - item: this.data[x][y][z], - coordinates: { x: x, y: y, z: z }, - }); - } - } - } - return result; - } - for (var i = 0; i < size.x; i++) { - for (var j = 0; j < size.y; j++) { - for (var k = 0; k < size.z; k++) { - var x = i + position.x; - var y = j + position.y; - var z = k + position.z; - result.push(this.data[x][y][z]); - } - } - } - return result; - }; - Grid3MapHolder.prototype.forEach = function (callback) { - for (var i = 0; i < this.data.length; i++) { - for (var j = 0; j < this.data[i].length; j++) { - for (var k = 0; k < this.data[i][j].length; k++) { - callback(this.data[i][j][k], i, j, k); - } - } - } - }; - Grid3MapHolder.prototype.getRandomBlock = function (filter) { - while (true) { - var x = Math.floor(Math.random() * this.data.length); - var y = Math.floor(Math.random() * this.data[x].length); - var z = Math.floor(Math.random() * this.data[x][y].length); - var item = this.data[x][y][z]; - if (filter && !filter(item)) { - continue; - } - return { - item: item, - coordinates: { x: x, y: y, z: z }, - }; - } - }; - return Grid3MapHolder; -}()); -exports.Grid3MapHolder = Grid3MapHolder; -//# sourceMappingURL=grid3-map-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map deleted file mode 100644 index 21a6340e..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-map-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts"],"names":[],"mappings":";;;AAIA;IACI,wBAAmC,IAAa;QAAb,SAAI,GAAJ,IAAI,CAAS;IAChD,CAAC;IAEa,wBAAS,GAAvB,UAA2B,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,YAAsC;QAAtC,6BAAA,EAAA,eAAkB,IAAoB;QAC9F,IAAM,MAAM,GAAG,IAAI,KAAK,CAAQ,CAAC,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,IAAM,IAAI,GAAG,IAAI,KAAK,CA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AAI,MAAA;gBACJ,WAAW,EAAE,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC;aACzB,CAAC;SACL;IACL,CAAC;IAEL,qBAAC;AAAD,CAAC,AA5HD,IA4HC;AA5HY,wCAAc"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts b/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts deleted file mode 100644 index 695c508a..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare class Grid3ObjectHolder { - private readonly data; - get(x: number, y: number, z: number): T; - set(x: number, y: number, z: number, value: T): void; - forEach(callback: (item: T, x: number, y: number, z: number) => void): void; -} -//# sourceMappingURL=grid3-object-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts.map deleted file mode 100644 index 99fd2a74..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-object-holder.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts"],"names":[],"mappings":"AAEA,qBAAa,iBAAiB,CAAC,CAAC;IAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA4D;IAE1E,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAOvC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAOpD,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;CASrF"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js deleted file mode 100644 index e66f6430..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Grid3ObjectHolder = void 0; -var object_utils_1 = require("../../../../utils/object-utils"); -var Grid3ObjectHolder = (function () { - function Grid3ObjectHolder() { - this.data = {}; - } - Grid3ObjectHolder.prototype.get = function (x, y, z) { - var row = object_utils_1.getOrSetProperty(this.data, x, {}); - var column = object_utils_1.getOrSetProperty(row, y, {}); - return column[z]; - }; - Grid3ObjectHolder.prototype.set = function (x, y, z, value) { - var row = object_utils_1.getOrSetProperty(this.data, x, {}); - var column = object_utils_1.getOrSetProperty(row, y, {}); - column[z] = value; - }; - Grid3ObjectHolder.prototype.forEach = function (callback) { - Object.entries(this.data).forEach(function (_a) { - var x = _a[0], chunkRows = _a[1]; - Object.entries(chunkRows).forEach(function (_a) { - var y = _a[0], chunk = _a[1]; - Object.entries(chunk).forEach(function (_a) { - var z = _a[0], item = _a[1]; - callback(item, +x, +y, +z); - }); - }); - }); - }; - return Grid3ObjectHolder; -}()); -exports.Grid3ObjectHolder = Grid3ObjectHolder; -//# sourceMappingURL=grid3-object-holder.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map deleted file mode 100644 index 1387fd1e..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3-object-holder.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3-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P,CAAC;IACL,wBAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,8CAAiB"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts b/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts deleted file mode 100644 index c440f899..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "mocha"; -//# sourceMappingURL=grid3.perf.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts.map deleted file mode 100644 index 1d9b940e..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3.perf.d.ts","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js b/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js deleted file mode 100644 index 06263b08..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -require("mocha"); -var grid3_array_holder_1 = require("./grid3-array-holder"); -var grid3_hash_holder_1 = require("./grid3-hash-holder"); -var grid3_map_holder_1 = require("./grid3-map-holder"); -var grid3_object_holder_1 = require("./grid3-object-holder"); -describe("Grid3", function () { - describe("default", function () { - var sizeOne = 128; - var size = { x: sizeOne, y: sizeOne, z: sizeOne }; - var arrayHolder = grid3_array_holder_1.Grid3ArrayHolder.initEmpty(size.x, size.y, size.z, 0); - var mapHolder = grid3_map_holder_1.Grid3MapHolder.initEmpty(size.x, size.y, size.z, 0); - var objectHolder = new grid3_object_holder_1.Grid3ObjectHolder(); - var hashHolder = new grid3_hash_holder_1.Grid3HashHolder(); - var sorts = [ - arrayHolder, - objectHolder, - mapHolder, - ]; - var createArray = function () { - var result = new Array(size.x); - for (var i = 0; i < size.x; i++) { - result[i] = new Array(size.y); - for (var j = 0; j < size.y; j++) { - result[i][j] = new Array(size.z); - for (var k = 0; k < size.z; k++) { - result[i][j][k] = Math.random(); - } - } - } - return result; - }; - it("It should test adding", function () { - sorts.forEach(function (holder) { - var testArr = createArray(); - var start = Date.now(); - testArr.forEach(function (row, x) { - row.forEach(function (column, y) { - column.forEach(function (item, z) { - holder.set(x, y, z, item); - }); - }); - }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test getting", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - for (var x = 0; x < size.x; x++) { - for (var y = 0; y < size.y; y++) { - for (var z = 0; z < size.z; z++) { - holder.get(x, y, z); - } - } - } - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - it("It should test iterating", function () { - sorts.forEach(function (holder) { - var start = Date.now(); - holder.forEach(function () { return null; }); - var diff = Date.now() - start; - console.log(holder.constructor.name, ": ", diff, "ms"); - }); - }); - }); -}); -//# sourceMappingURL=grid3.perf.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map b/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map deleted file mode 100644 index 9dc4eeac..00000000 --- a/dist/models/data-structures/grid-accessor/holders-3d/grid3.perf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid3.perf.js","sourceRoot":"","sources":["../../../../../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts"],"names":[],"mappings":";;AAAA,iBAAe;AACf,2DAAwD;AACxD,yDAAsD;AAEtD,uDAAoD;AACpD,6DAA0D;AAE1D,QAAQ,CAAC,OAAO,EAAE;IACd,QAAQ,CAAC,SAAS,EAAE;Q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AAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BAC7B,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;yBACvB;qBACJ;iBACJ;gBAED,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,0BAA0B,EAAE;YAC3B,KAAK,CAAC,OAAO,CAAC,UAAC,MAAM;gBACjB,IAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAEzB,MAAM,CAAC,OAAO,CAAC,cAAM,OAAA,IAAI,EAAJ,CAAI,CAAC,CAAC;gBAE3B,IAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;gBAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAE3D,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/index.d.ts b/dist/models/data-structures/grid-accessor/index.d.ts deleted file mode 100644 index bf546c44..00000000 --- a/dist/models/data-structures/grid-accessor/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from "./grid-filters"; -export * from "./grid2-accessor"; -export * from "./grid2-block-accessor"; -export * from "./holders-2d/grid2-array-holder"; -export * from "./holders-2d/grid2-hash-holder"; -export * from "./holders-2d/grid2-holder"; -export * from "./holders-2d/grid2-map-holder"; -export * from "./holders-2d/grid2-object-holder"; -export * from "./holders-3d/grid3-array-holder"; -export * from "./holders-3d/grid3-hash-holder"; -export * from "./holders-3d/grid3-holder"; -export * from "./holders-3d/grid3-map-holder"; -export * from "./holders-3d/grid3-object-holder"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/index.d.ts.map b/dist/models/data-structures/grid-accessor/index.d.ts.map deleted file mode 100644 index d5cd7c04..00000000 --- a/dist/models/data-structures/grid-accessor/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AAEjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/index.js b/dist/models/data-structures/grid-accessor/index.js deleted file mode 100644 index 35aff67a..00000000 --- a/dist/models/data-structures/grid-accessor/index.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./grid-filters"), exports); -__exportStar(require("./grid2-accessor"), exports); -__exportStar(require("./grid2-block-accessor"), exports); -__exportStar(require("./holders-2d/grid2-array-holder"), exports); -__exportStar(require("./holders-2d/grid2-hash-holder"), exports); -__exportStar(require("./holders-2d/grid2-holder"), exports); -__exportStar(require("./holders-2d/grid2-map-holder"), exports); -__exportStar(require("./holders-2d/grid2-object-holder"), exports); -__exportStar(require("./holders-3d/grid3-array-holder"), exports); -__exportStar(require("./holders-3d/grid3-hash-holder"), exports); -__exportStar(require("./holders-3d/grid3-holder"), exports); -__exportStar(require("./holders-3d/grid3-map-holder"), exports); -__exportStar(require("./holders-3d/grid3-object-holder"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/models/data-structures/grid-accessor/index.js.map b/dist/models/data-structures/grid-accessor/index.js.map deleted file mode 100644 index abf53c6c..00000000 --- a/dist/models/data-structures/grid-accessor/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/data-structures/grid-accessor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,yDAAuC;AAEvC,kEAAgD;AAChD,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD;AAEjD,kEAAgD;AAChD,iEAA+C;AAC/C,4DAA0C;AAC1C,gEAA8C;AAC9C,mEAAiD"} \ No newline at end of file diff --git a/dist/models/data-structures/list/abstract-linked-list.d.ts b/dist/models/data-structures/list/abstract-linked-list.d.ts deleted file mode 100644 index 5fc7a5e0..00000000 --- a/dist/models/data-structures/list/abstract-linked-list.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare abstract class AbstractLinkedList implements Iterable { - protected first: S | null; - protected localLength: number; - get length(): number; - [Symbol.iterator](): IterableIterator; - get empty(): boolean; - contains(item: T): boolean; - toArray(): T[]; -} -//# sourceMappingURL=abstract-linked-list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/abstract-linked-list.d.ts.map b/dist/models/data-structures/list/abstract-linked-list.d.ts.map deleted file mode 100644 index 1d2c49d5..00000000 --- a/dist/models/data-structures/list/abstract-linked-list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-linked-list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/abstract-linked-list.ts"],"names":[],"mappings":"AAAA,8BAAsB,kBAAkB,CAAC,CAAC,EAAE,CAAC,SAAS;IAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IACrG,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAQ;IACjC,SAAS,CAAC,WAAW,SAAK;IAE1B,IAAW,MAAM,IAAI,MAAM,CAE1B;IAEM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC;IA0B/C,IAAW,KAAK,IAAI,OAAO,CAE1B;IAEM,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAU1B,OAAO,IAAI,CAAC,EAAE;CAUxB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/abstract-linked-list.js b/dist/models/data-structures/list/abstract-linked-list.js deleted file mode 100644 index dd84ce6b..00000000 --- a/dist/models/data-structures/list/abstract-linked-list.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbstractLinkedList = void 0; -var AbstractLinkedList = (function () { - function AbstractLinkedList() { - this.first = null; - this.localLength = 0; - } - Object.defineProperty(AbstractLinkedList.prototype, "length", { - get: function () { - return this.localLength; - }, - enumerable: false, - configurable: true - }); - AbstractLinkedList.prototype[Symbol.iterator] = function () { - var _a; - var current = this.first; - return _a = {}, - _a[Symbol.iterator] = function () { - return this; - }, - _a.next = function () { - if (current) { - var value = current.item; - current = current.next; - return { - value: value, - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - _a; - }; - Object.defineProperty(AbstractLinkedList.prototype, "empty", { - get: function () { - return this.localLength === 0; - }, - enumerable: false, - configurable: true - }); - AbstractLinkedList.prototype.contains = function (item) { - for (var current = this.first; current; current = current.next) { - if (current.item === item) { - return true; - } - } - return false; - }; - AbstractLinkedList.prototype.toArray = function () { - var newArray = new Array(this.localLength); - var i = 0; - for (var current = this.first; current; current = current.next) { - newArray[i++] = current.item; - } - return newArray; - }; - return AbstractLinkedList; -}()); -exports.AbstractLinkedList = AbstractLinkedList; -//# sourceMappingURL=abstract-linked-list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/abstract-linked-list.js.map b/dist/models/data-structures/list/abstract-linked-list.js.map deleted file mode 100644 index 0478e956..00000000 --- a/dist/models/data-structures/list/abstract-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-linked-list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/abstract-linked-list.ts"],"names":[],"mappings":";;;AAAA;IAAA;QACc,UAAK,GAAa,IAAI,CAAC;QACvB,gBAAW,GAAG,CAAC,CAAC;IAwD9B,CAAC;IAtDG,sBAAW,sCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;;;OAAA;IAEM,6BAAC,MAAM,CAAC,QAAQ,CAAC,GAAxB;;QACI,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;QAEzB;YACI,GAAC,MAAM,CAAC,QAAQ,IAAhB;gBACI,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAI,GAAJ;gBACI,IAAI,OAAO,EAAE;oBACT,IAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;oBAC3B,OAAO,GAAO,OAAO,CAAC,IAAI,CAAC;oBAE3B,OAAO;wBACH,KAAK,OAAA;wBACL,IAAI,EAAE,KAAK;qBACd,CAAC;iBACL;gBAED,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,IAAI,EAAG,IAAI;iBACd,CAAC;YACN,CAAC;eACH;IACN,CAAC;IAED,sBAAW,qCAAK;aAAhB;YACI,OAAO,IAAI,CAAC,WAAW,KAAK,CAAC,CAAC;QAClC,CAAC;;;OAAA;IAEM,qCAAQ,GAAf,UAAgB,IAAO;QACnB,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE;gBACvB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IAEM,oCAAO,GAAd;QACI,IAAM,QAAQ,GAAG,IAAI,KAAK,CAAI,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhD,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;SAChC;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;IACL,yBAAC;AAAD,CAAC,AA1DD,IA0DC;AA1DqB,gDAAkB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/bi-directional-linked-list.d.ts b/dist/models/data-structures/list/bi-directional-linked-list.d.ts deleted file mode 100644 index 9eeef31e..00000000 --- a/dist/models/data-structures/list/bi-directional-linked-list.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AbstractLinkedList } from "./abstract-linked-list"; -import { BiDirectionalLinkedListEntry } from "./linked-list-entry"; -import { List } from "./list"; -export declare class BiDirectionalLinkedList extends AbstractLinkedList> implements List { - private last; - add(item: T): boolean; - forEach(callback: (item: T, index: number) => boolean): void; - forEachReverse(callback: (item: T, index: number) => boolean): void; - clear(): void; - remove(item: T): boolean; -} -//# sourceMappingURL=bi-directional-linked-list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/bi-directional-linked-list.d.ts.map b/dist/models/data-structures/list/bi-directional-linked-list.d.ts.map deleted file mode 100644 index 6c6c355b..00000000 --- a/dist/models/data-structures/list/bi-directional-linked-list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bi-directional-linked-list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/bi-directional-linked-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,uBAAuB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC,CAAC,CAAE,YAAW,IAAI,CAAC,CAAC,CAAC;IACrH,OAAO,CAAC,IAAI,CAAgD;IAErD,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAgBrB,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAQ5D,cAAc,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAQnE,KAAK,IAAI,IAAI;IAMb,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;CAuClC"} \ No newline at end of file diff --git a/dist/models/data-structures/list/bi-directional-linked-list.js b/dist/models/data-structures/list/bi-directional-linked-list.js deleted file mode 100644 index 83a9e8bf..00000000 --- a/dist/models/data-structures/list/bi-directional-linked-list.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BiDirectionalLinkedList = void 0; -var abstract_linked_list_1 = require("./abstract-linked-list"); -var linked_list_entry_1 = require("./linked-list-entry"); -var BiDirectionalLinkedList = (function (_super) { - __extends(BiDirectionalLinkedList, _super); - function BiDirectionalLinkedList() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this.last = null; - return _this; - } - BiDirectionalLinkedList.prototype.add = function (item) { - var newItem = new linked_list_entry_1.BiDirectionalLinkedListEntry(item); - if (this.empty) { - this.first = newItem; - } - else { - this.last.next = newItem; - } - newItem.prev = this.last; - this.last = newItem; - this.localLength++; - return true; - }; - BiDirectionalLinkedList.prototype.forEach = function (callback) { - var act = this.first; - var index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - }; - BiDirectionalLinkedList.prototype.forEachReverse = function (callback) { - var act = this.last; - var index = this.length - 1; - while (act) { - callback(act.item, index--); - act = act.prev; - } - }; - BiDirectionalLinkedList.prototype.clear = function () { - this.first = null; - this.last = null; - this.localLength = 0; - }; - BiDirectionalLinkedList.prototype.remove = function (item) { - if (this.empty) { - return false; - } - if (this.length === 1) { - this.clear(); - return true; - } - for (var current = this.first; current; current = current.next) { - if (current.item === item) { - if (current === this.first) { - this.first = current.next; - current.next.prev = null; - this.localLength--; - return true; - } - if (current === this.last) { - this.last = current.prev; - current.prev.next = null; - this.localLength--; - return true; - } - current.prev.next = current.next; - current.next.prev = current.prev; - this.localLength--; - return true; - } - } - return true; - }; - return BiDirectionalLinkedList; -}(abstract_linked_list_1.AbstractLinkedList)); -exports.BiDirectionalLinkedList = BiDirectionalLinkedList; -//# sourceMappingURL=bi-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/bi-directional-linked-list.js.map b/dist/models/data-structures/list/bi-directional-linked-list.js.map deleted file mode 100644 index 46774cf9..00000000 --- a/dist/models/data-structures/list/bi-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bi-directional-linked-list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/bi-directional-linked-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4D;AAC5D,yDAAmE;AAGnE;IAAgD,2CAAsD;IAAtG;QAAA,qEAgFC;QA/EW,UAAI,GAA2C,IAAI,CAAC;;IA+EhE,CAAC;IA7EU,qCAAG,GAAV,UAAW,IAAO;QACd,IAAM,OAAO,GAAG,IAAI,gDAA4B,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;SACxB;aAAM;YACH,IAAI,CAAC,IAAK,CAAC,IAAI,GAAG,OAAO,CAAC;SAC7B;QAED,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAM,OAAO,CAAC;QAEvB,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yCAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,CAAC;IACM,gDAAc,GAArB,UAAsB,QAA6C;QAC/D,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QACpB,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5B,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAA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C,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACL,8BAAC;AAAD,CAAC,AAhFD,CAAgD,yCAAkB,GAgFjE;AAhFY,0DAAuB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/index.d.ts b/dist/models/data-structures/list/index.d.ts deleted file mode 100644 index bbd53f7a..00000000 --- a/dist/models/data-structures/list/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./abstract-linked-list"; -export * from "./bi-directional-linked-list"; -export * from "./linked-list-entry"; -export * from "./list"; -export * from "./one-directional-linked-list"; -export * from "./sorted-array-list"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/index.d.ts.map b/dist/models/data-structures/list/index.d.ts.map deleted file mode 100644 index 500c4e53..00000000 --- a/dist/models/data-structures/list/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/models/data-structures/list/index.js b/dist/models/data-structures/list/index.js deleted file mode 100644 index 36065cdd..00000000 --- a/dist/models/data-structures/list/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./abstract-linked-list"), exports); -__exportStar(require("./bi-directional-linked-list"), exports); -__exportStar(require("./linked-list-entry"), exports); -__exportStar(require("./list"), exports); -__exportStar(require("./one-directional-linked-list"), exports); -__exportStar(require("./sorted-array-list"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/index.js.map b/dist/models/data-structures/list/index.js.map deleted file mode 100644 index 3f2bb11f..00000000 --- a/dist/models/data-structures/list/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAuC;AACvC,+DAA6C;AAC7C,sDAAoC;AACpC,yCAAuB;AACvB,gEAA8C;AAC9C,sDAAoC"} \ No newline at end of file diff --git a/dist/models/data-structures/list/linked-list-entry.d.ts b/dist/models/data-structures/list/linked-list-entry.d.ts deleted file mode 100644 index d637a022..00000000 --- a/dist/models/data-structures/list/linked-list-entry.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare class OneDirectionalLinkedListEntry { - readonly item: T; - next: OneDirectionalLinkedListEntry | null; - constructor(item: T); -} -export declare class BiDirectionalLinkedListEntry { - readonly item: T; - prev: BiDirectionalLinkedListEntry | null; - next: BiDirectionalLinkedListEntry | null; - constructor(item: T); -} -//# sourceMappingURL=linked-list-entry.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/linked-list-entry.d.ts.map b/dist/models/data-structures/list/linked-list-entry.d.ts.map deleted file mode 100644 index 3d112923..00000000 --- a/dist/models/data-structures/list/linked-list-entry.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"linked-list-entry.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/linked-list-entry.ts"],"names":[],"mappings":"AAAA,qBAAa,6BAA6B,CAAC,CAAC;aAGL,IAAI,EAAE,CAAC;IAFnC,IAAI,EAAE,6BAA6B,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;gBAEzB,IAAI,EAAE,CAAC;CAE7C;AAED,qBAAa,4BAA4B,CAAC,CAAC;aAIJ,IAAI,EAAE,CAAC;IAHnC,IAAI,EAAE,4BAA4B,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;IACpD,IAAI,EAAE,4BAA4B,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;gBAExB,IAAI,EAAE,CAAC;CAE7C"} \ No newline at end of file diff --git a/dist/models/data-structures/list/linked-list-entry.js b/dist/models/data-structures/list/linked-list-entry.js deleted file mode 100644 index c74fa9c2..00000000 --- a/dist/models/data-structures/list/linked-list-entry.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BiDirectionalLinkedListEntry = exports.OneDirectionalLinkedListEntry = void 0; -var OneDirectionalLinkedListEntry = (function () { - function OneDirectionalLinkedListEntry(item) { - this.item = item; - this.next = null; - } - return OneDirectionalLinkedListEntry; -}()); -exports.OneDirectionalLinkedListEntry = OneDirectionalLinkedListEntry; -var BiDirectionalLinkedListEntry = (function () { - function BiDirectionalLinkedListEntry(item) { - this.item = item; - this.prev = null; - this.next = null; - } - return BiDirectionalLinkedListEntry; -}()); -exports.BiDirectionalLinkedListEntry = BiDirectionalLinkedListEntry; -//# sourceMappingURL=linked-list-entry.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/linked-list-entry.js.map b/dist/models/data-structures/list/linked-list-entry.js.map deleted file mode 100644 index 1ded4a4f..00000000 --- a/dist/models/data-structures/list/linked-list-entry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"linked-list-entry.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/linked-list-entry.ts"],"names":[],"mappings":";;;AAAA;IAGI,uCAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAFnC,SAAI,GAA4C,IAAI,CAAC;IAG5D,CAAC;IACL,oCAAC;AAAD,CAAC,AALD,IAKC;AALY,sEAA6B;AAO1C;IAII,sCAAmC,IAAO;QAAP,SAAI,GAAJ,IAAI,CAAG;QAHnC,SAAI,GAA2C,IAAI,CAAC;QACpD,SAAI,GAA2C,IAAI,CAAC;IAG3D,CAAC;IACL,mCAAC;AAAD,CAAC,AAND,IAMC;AANY,oEAA4B"} \ No newline at end of file diff --git a/dist/models/data-structures/list/list.d.ts b/dist/models/data-structures/list/list.d.ts deleted file mode 100644 index 06b92b57..00000000 --- a/dist/models/data-structures/list/list.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { G43Collection } from "../g43-collection"; -export interface List extends Iterable, G43Collection { - readonly empty: boolean; - toArray(): T[]; -} -//# sourceMappingURL=list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/list.d.ts.map b/dist/models/data-structures/list/list.d.ts.map deleted file mode 100644 index 0b75ffe6..00000000 --- a/dist/models/data-structures/list/list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,IAAI,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAExB,OAAO,IAAI,CAAC,EAAE,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/list.js b/dist/models/data-structures/list/list.js deleted file mode 100644 index ce02ace1..00000000 --- a/dist/models/data-structures/list/list.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/list.js.map b/dist/models/data-structures/list/list.js.map deleted file mode 100644 index ddb0ccb9..00000000 --- a/dist/models/data-structures/list/list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/list.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/data-structures/list/one-directional-linked-list.d.ts b/dist/models/data-structures/list/one-directional-linked-list.d.ts deleted file mode 100644 index 159024a3..00000000 --- a/dist/models/data-structures/list/one-directional-linked-list.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AbstractLinkedList } from "./abstract-linked-list"; -import { OneDirectionalLinkedListEntry } from "./linked-list-entry"; -import { List } from "./list"; -export declare class OneDirectionalLinkedList extends AbstractLinkedList> implements List { - add(item: T): boolean; - forEach(callback: (item: T, index: number) => boolean): void; - clear(): void; - remove(item: T): boolean; -} -//# sourceMappingURL=one-directional-linked-list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/one-directional-linked-list.d.ts.map b/dist/models/data-structures/list/one-directional-linked-list.d.ts.map deleted file mode 100644 index 0c182c40..00000000 --- a/dist/models/data-structures/list/one-directional-linked-list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"one-directional-linked-list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/one-directional-linked-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,wBAAwB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,6BAA6B,CAAC,CAAC,CAAC,CAAE,YAAW,IAAI,CAAC,CAAC,CAAC;IAChH,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAUrB,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAS5D,KAAK,IAAI,IAAI;IAKb,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;CAmBlC"} \ No newline at end of file diff --git a/dist/models/data-structures/list/one-directional-linked-list.js b/dist/models/data-structures/list/one-directional-linked-list.js deleted file mode 100644 index fc8071b8..00000000 --- a/dist/models/data-structures/list/one-directional-linked-list.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OneDirectionalLinkedList = void 0; -var abstract_linked_list_1 = require("./abstract-linked-list"); -var linked_list_entry_1 = require("./linked-list-entry"); -var OneDirectionalLinkedList = (function (_super) { - __extends(OneDirectionalLinkedList, _super); - function OneDirectionalLinkedList() { - return _super !== null && _super.apply(this, arguments) || this; - } - OneDirectionalLinkedList.prototype.add = function (item) { - var newFirst = new linked_list_entry_1.OneDirectionalLinkedListEntry(item); - newFirst.next = this.first; - this.first = newFirst; - this.localLength++; - return true; - }; - OneDirectionalLinkedList.prototype.forEach = function (callback) { - var act = this.first; - var index = 0; - while (act) { - callback(act.item, index++); - act = act.next; - } - }; - OneDirectionalLinkedList.prototype.clear = function () { - this.first = null; - this.localLength = 0; - }; - OneDirectionalLinkedList.prototype.remove = function (item) { - var _a; - for (var current = this.first; current; current = current.next) { - if (current === this.first && current.item === item) { - this.first = current.next; - this.localLength--; - return true; - } - if (((_a = current.next) === null || _a === void 0 ? void 0 : _a.item) === item) { - current.next = current.next.next; - this.localLength--; - return true; - } - } - return false; - }; - return OneDirectionalLinkedList; -}(abstract_linked_list_1.AbstractLinkedList)); -exports.OneDirectionalLinkedList = OneDirectionalLinkedList; -//# sourceMappingURL=one-directional-linked-list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/one-directional-linked-list.js.map b/dist/models/data-structures/list/one-directional-linked-list.js.map deleted file mode 100644 index 4c5556a3..00000000 --- a/dist/models/data-structures/list/one-directional-linked-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"one-directional-linked-list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/one-directional-linked-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4D;AAC5D,yDAAoE;AAGpE;IAAiD,4CAAuD;IAAxG;;IA4CA,CAAC;IA3CU,sCAAG,GAAV,UAAW,IAAO;QACd,IAAM,QAAQ,GAAG,IAAI,iDAA6B,CAAC,IAAI,CAAC,CAAC;QACzD,QAAQ,CAAC,IAAI,GAAI,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAO,QAAQ,CAAC;QAE1B,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QACrB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,OAAM,GAAG,EAAE;YACP,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC;SAClB;IACL,CAAC;IAEM,wCAAK,GAAZ;QACI,IAAI,CAAC,KAAK,GAAS,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,yCAAM,GAAb,UAAc,IAAO;;QACjB,KAAK,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE;YAC5D,IAAI,OAAO,KAAK,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,KAAK,IAAI,EAAE;gBACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;gBAC1B,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;YAED,IAAI,OAAA,OAAO,CAAC,IAAI,0CAAE,IAAI,MAAK,IAAI,EAAE;gBAC7B,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;gBACjC,IAAI,CAAC,WAAW,EAAE,CAAC;gBAEnB,OAAO,IAAI,CAAC;aACf;SACJ;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;IACL,+BAAC;AAAD,CAAC,AA5CD,CAAiD,yCAAkB,GA4ClE;AA5CY,4DAAwB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/sorted-array-list.d.ts b/dist/models/data-structures/list/sorted-array-list.d.ts deleted file mode 100644 index 4632d019..00000000 --- a/dist/models/data-structures/list/sorted-array-list.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { List } from "./list"; -export declare class SortedArrayList implements List { - private readonly comparator; - private readonly data; - constructor(comparator: (a: T, b: T) => number); - forEach(callback: (item: T, index: number) => boolean): void; - [Symbol.iterator](): IterableIterator; - get length(): number; - get empty(): boolean; - add(item: T): boolean; - clear(): void; - contains(item: T): boolean; - remove(item: T): boolean; - toArray(): T[]; -} -//# sourceMappingURL=sorted-array-list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/sorted-array-list.d.ts.map b/dist/models/data-structures/list/sorted-array-list.d.ts.map deleted file mode 100644 index 60db3ffa..00000000 --- a/dist/models/data-structures/list/sorted-array-list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/sorted-array-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,IAAI,CAAC,CAAC,CAAC;IAG3B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAF9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;gBAEI,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IAG/D,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAI5D,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC;IAuB/C,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,KAAK,IAAI,OAAO,CAE1B;IAEM,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAIrB,KAAK,IAAI,IAAI;IAIb,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAI1B,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAIxB,OAAO,IAAI,CAAC,EAAE;CAGxB"} \ No newline at end of file diff --git a/dist/models/data-structures/list/sorted-array-list.js b/dist/models/data-structures/list/sorted-array-list.js deleted file mode 100644 index a06ead37..00000000 --- a/dist/models/data-structures/list/sorted-array-list.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SortedArrayList = void 0; -var sorted_array_utils_1 = require("../../../utils/sorted-array-utils"); -var SortedArrayList = (function () { - function SortedArrayList(comparator) { - this.comparator = comparator; - this.data = []; - } - SortedArrayList.prototype.forEach = function (callback) { - this.data.forEach(callback); - }; - SortedArrayList.prototype[Symbol.iterator] = function () { - var _a; - var _this = this; - var current = 0; - return _a = {}, - _a[Symbol.iterator] = function () { - return this; - }, - _a.next = function () { - if (current < _this.data.length) { - return { - value: _this.data[current++], - done: false, - }; - } - return { - value: null, - done: true, - }; - }, - _a; - }; - Object.defineProperty(SortedArrayList.prototype, "length", { - get: function () { - return this.data.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(SortedArrayList.prototype, "empty", { - get: function () { - return this.data.length === 0; - }, - enumerable: false, - configurable: true - }); - SortedArrayList.prototype.add = function (item) { - return sorted_array_utils_1.sortedInsert(this.data, item, this.comparator) >= 0; - }; - SortedArrayList.prototype.clear = function () { - this.data.splice(0, this.data.length); - }; - SortedArrayList.prototype.contains = function (item) { - return sorted_array_utils_1.binarySearch(this.data, item, this.comparator) >= 0; - }; - SortedArrayList.prototype.remove = function (item) { - return !!sorted_array_utils_1.sortedRemove(this.data, item, this.comparator); - }; - SortedArrayList.prototype.toArray = function () { - return __spreadArrays(this.data); - }; - return SortedArrayList; -}()); -exports.SortedArrayList = SortedArrayList; -//# sourceMappingURL=sorted-array-list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/sorted-array-list.js.map b/dist/models/data-structures/list/sorted-array-list.js.map deleted file mode 100644 index f977e87f..00000000 --- a/dist/models/data-structures/list/sorted-array-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/sorted-array-list.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAA6F;AAG7F;IAGI,yBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAFrD,SAAI,GAAQ,EAAE,CAAC;IAGhC,CAAC;IAEM,iCAAO,GAAd,UAAe,QAA6C;QACxD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAEM,0BAAC,M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;IAEM,iCAAO,GAAd;QACI,sBAAW,IAAI,CAAC,IAAI,EAAE;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AA5DD,IA4DC;AA5DY,0CAAe"} \ No newline at end of file diff --git a/dist/models/data-structures/list/test-list.d.ts b/dist/models/data-structures/list/test-list.d.ts deleted file mode 100644 index be16b5fd..00000000 --- a/dist/models/data-structures/list/test-list.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { List } from "./list"; -export declare function testList(list: List, testOrder?: boolean): void; -//# sourceMappingURL=test-list.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/list/test-list.d.ts.map b/dist/models/data-structures/list/test-list.d.ts.map deleted file mode 100644 index 007a0b72..00000000 --- a/dist/models/data-structures/list/test-list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"test-list.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/list/test-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,UAAQ,GAAG,IAAI,CAsDpE"} \ No newline at end of file diff --git a/dist/models/data-structures/list/test-list.js b/dist/models/data-structures/list/test-list.js deleted file mode 100644 index 5194e1f6..00000000 --- a/dist/models/data-structures/list/test-list.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.testList = void 0; -var utils_1 = require("gtools/utils"); -function testList(list, testOrder) { - if (testOrder === void 0) { testOrder = false; } - list.clear(); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(utils_1.deepEqual(list.toArray(), [])); - list.add("b"); - console.assert(!list.empty); - console.assert(list.length === 1); - console.assert(utils_1.deepEqual(list.toArray(), ["b"])); - console.assert(!list.contains("a")); - console.assert(list.contains("b")); - console.assert(!list.contains("c")); - list.add("a"); - list.add("c"); - list.add("e"); - list.add("d"); - var tmpList = []; - for (var _i = 0, _a = list; _i < _a.length; _i++) { - var item = _a[_i]; - tmpList.push(item); - } - var listArray = list.toArray(); - console.assert(listArray.length === tmpList.length); - tmpList.forEach(function (item) { - console.assert(listArray.indexOf(item) >= 0); - }); - console.assert(list.length === 5); - if (testOrder) { - console.assert(utils_1.deepEqual(list.toArray(), ["a", "b", "c", "d", "e"])); - } - list.remove("b"); - list.remove("d"); - console.assert(list.length === 3); - if (testOrder) { - console.assert(utils_1.deepEqual(list.toArray(), ["a", "c", "e"])); - } - list.remove("a"); - list.remove("c"); - list.remove("e"); - console.assert(list.empty); - console.assert(list.length === 0); - console.assert(utils_1.deepEqual(list.toArray(), [])); -} -exports.testList = testList; -//# sourceMappingURL=test-list.js.map \ No newline at end of file diff --git a/dist/models/data-structures/list/test-list.js.map b/dist/models/data-structures/list/test-list.js.map deleted file mode 100644 index d2da62c5..00000000 --- a/dist/models/data-structures/list/test-list.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"test-list.js","sourceRoot":"","sources":["../../../../src/models/data-structures/list/test-list.ts"],"names":[],"mappings":";;;AAAA,sCAAyC;AAGzC,SAAgB,QAAQ,CAAC,IAAkB,EAAE,SAAiB;IAAjB,0BAAA,EAAA,iBAAiB;IAC1D,IAAI,CAAC,KAAK,EAAE,CAAC;IACb,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAE9C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAEd,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,C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AAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KACxE;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,IAAI,SAAS,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,iBAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;KAC9D;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAClD,CAAC;AAtDD,4BAsDC"} \ No newline at end of file diff --git a/dist/models/data-structures/priority-queue.d.ts b/dist/models/data-structures/priority-queue.d.ts deleted file mode 100644 index a32242de..00000000 --- a/dist/models/data-structures/priority-queue.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { G43BasicCollection } from "./g43-collection"; -export declare class PriorityQueue implements G43BasicCollection { - private readonly comparator; - private heap; - constructor(comparator: (a: T, b: T) => boolean); - static createMaxQueue(valueExtractor: (value: T) => number): PriorityQueue; - static createMinQueue(valueExtractor: (value: T) => number): PriorityQueue; - private swap; - peek(): T; - get length(): number; - contains(item: T): boolean; - clear(): void; - forEach(callback: (item: T, index: number) => boolean): void; - add(element: T): void; - pop(): T | undefined; - private heapify; -} -//# sourceMappingURL=priority-queue.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/priority-queue.d.ts.map b/dist/models/data-structures/priority-queue.d.ts.map deleted file mode 100644 index 512e8288..00000000 --- a/dist/models/data-structures/priority-queue.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priority-queue.d.ts","sourceRoot":"","sources":["../../../src/models/data-structures/priority-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMtD,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAGvC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAF9C,OAAO,CAAC,IAAI,CAAW;gBAEa,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO;WAGzD,cAAc,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC;WAIzE,cAAc,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC;IAIvF,OAAO,CAAC,IAAI;IAML,IAAI,IAAI,CAAC;IAKhB,IAAW,MAAM,IAAI,MAAM,CAE1B;IAEM,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAI1B,KAAK,IAAI,IAAI;IAGb,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAI5D,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI;IAerB,GAAG,IAAI,CAAC,GAAG,SAAS;IAgB3B,OAAO,CAAC,OAAO;CAsBlB"} \ No newline at end of file diff --git a/dist/models/data-structures/priority-queue.js b/dist/models/data-structures/priority-queue.js deleted file mode 100644 index 9efc9a37..00000000 --- a/dist/models/data-structures/priority-queue.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PriorityQueue = void 0; -var leftChild = function (index) { return index * 2 + 1; }; -var rightChild = function (index) { return index * 2 + 2; }; -var getParentIndex = function (index) { return Math.floor((index - 1) / 2); }; -var PriorityQueue = (function () { - function PriorityQueue(comparator) { - this.comparator = comparator; - this.heap = []; - } - PriorityQueue.createMaxQueue = function (valueExtractor) { - return new PriorityQueue(function (a, b) { return valueExtractor(a) > valueExtractor(b); }); - }; - PriorityQueue.createMinQueue = function (valueExtractor) { - return new PriorityQueue(function (a, b) { return valueExtractor(a) < valueExtractor(b); }); - }; - PriorityQueue.prototype.swap = function (indexOne, indexTwo) { - var tmp = this.heap[indexOne]; - this.heap[indexOne] = this.heap[indexTwo]; - this.heap[indexTwo] = tmp; - }; - PriorityQueue.prototype.peek = function () { - return this.heap[0]; - }; - Object.defineProperty(PriorityQueue.prototype, "length", { - get: function () { - return this.heap.length; - }, - enumerable: false, - configurable: true - }); - PriorityQueue.prototype.contains = function (item) { - var _this = this; - return this.heap.some(function (e) { return _this.comparator(e, item); }); - }; - PriorityQueue.prototype.clear = function () { - this.heap = []; - }; - PriorityQueue.prototype.forEach = function (callback) { - this.heap.forEach(callback); - }; - PriorityQueue.prototype.add = function (element) { - this.heap.push(element); - var index = this.heap.length - 1; - while (index !== 0 && this.comparator(this.heap[index], this.heap[getParentIndex(index)])) { - this.swap(index, getParentIndex(index)); - index = getParentIndex(index); - } - }; - PriorityQueue.prototype.pop = function () { - var root = this.heap.shift(); - this.heap.unshift(this.heap[this.heap.length - 1]); - this.heap.pop(); - this.heapify(0); - return root; - }; - PriorityQueue.prototype.heapify = function (index) { - var left = leftChild(index); - var right = rightChild(index); - var smallest = index; - if (left < this.heap.length && this.comparator(this.heap[left], this.heap[smallest])) { - smallest = left; - } - if (right < this.heap.length && this.comparator(this.heap[right], this.heap[smallest])) { - smallest = right; - } - if (smallest !== index) { - this.swap(smallest, index); - this.heapify(smallest); - } - }; - return PriorityQueue; -}()); -exports.PriorityQueue = PriorityQueue; -//# sourceMappingURL=priority-queue.js.map \ No newline at end of file diff --git a/dist/models/data-structures/priority-queue.js.map b/dist/models/data-structures/priority-queue.js.map deleted file mode 100644 index 9aaaf5e7..00000000 --- a/dist/models/data-structures/priority-queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"priority-queue.js","sourceRoot":"","sources":["../../../src/models/data-structures/priority-queue.ts"],"names":[],"mappings":";;;AAEA,IAAM,SAAS,GAAQ,UAAC,KAAa,IAAa,OAAA,KAAK,GAAG,CAAC,GAAG,CAAC,EAAb,CAAa,CAAC;AAChE,IAAM,UAAU,GAAO,UAAC,KAAa,IAAa,OAAA,KAAK,GAAG,CAAC,GAAG,CAAC,EAAb,CAAa,CAAC;AAChE,IAAM,cAAc,GAAG,UAAC,KAAa,IAAa,OAAA,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAA3B,CAA2B,CAAC;AAE9E;IAGI,uBAAoC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;QAF/D,SAAI,GAAQ,EAAE,CAAC;IAGvB,CAAC;IAEa,4BAAc,GAA5B,UAAgC,cAAoC;QAChE,OAAO,IAAI,aAAa,CAAI,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAArC,CAAqC,CAAC,CAAC;IACjF,CAAC;IAEa,4BAAc,GAA5B,UAAgC,cAAoC;QAChE,OAAO,IAAI,aAAa,CAAI,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAArC,CAAqC,CAAC,CAAC;IACjF,CAAC;IAEO,4BAAI,GAAZ,UAAa,QAAgB,EAAE,QAAgB;QAC3C,IAAM,GAAG,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ures/quad-tree/quad-tree.d.ts b/dist/models/data-structures/quad-tree/quad-tree.d.ts deleted file mode 100644 index ff713a92..00000000 --- a/dist/models/data-structures/quad-tree/quad-tree.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -export declare class Point implements SimpleVector2 { - readonly x: number; - readonly y: number; - constructor(x: number, y: number); - lte(point: SimpleVector2): boolean; - gte(point: SimpleVector2): boolean; - equals(point: SimpleVector2): boolean; -} -/** - * generalized box class, defined by two points with lessThan (lte) and greaterThan (gte) functions - */ -export declare class Box { - private readonly low; - private readonly high; - constructor(low: Point, high: Point); - /** - * return true if box contains point - */ - contains(point: Point): boolean; - overlaps(box: Box): boolean; - /** - * return true if the box contains the box provided as argument. - */ - containsBox(box: Box): boolean; - /** - * return array of children - */ - split(): [Box, Box, Box, Box]; -} -export declare class QuadTree { - private readonly box; - private readonly max; - private children; - private value; - constructor(box: Box, max?: number); - insert(point: Point, value: T): this | void; - private subdivide; - queryRange(box: Box): { - point: Point; - value: T; - }[]; - private _queryRangeRec; - queryPoint(point: Point): null | T; - removePoint(point: Point): void; - clear(): void; -} -//# sourceMappingURL=quad-tree.d.ts.map \ No newline at end of file diff --git a/dist/models/data-structures/quad-tree/quad-tree.d.ts.map b/dist/models/data-structures/quad-tree/quad-tree.d.ts.map deleted file mode 100644 index bcd7c7de..00000000 --- a/dist/models/data-structures/quad-tree/quad-tree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quad-tree.d.ts","sourceRoot":"","sources":["../../../../src/models/data-structures/quad-tree/quad-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,qBAAa,KAAM,YAAW,aAAa;aAEnB,CAAC,EAAE,MAAM;aACT,CAAC,EAAE,MAAM;gBADT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM;IAItB,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAIlC,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAIlC,MAAM,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;CAG/C;AAED;;GAEG;AACH,qBAAa,GAAG;IAER,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,GAAG,EAAE,KAAK,EACV,IAAI,EAAE,KAAK;IAIhC;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAI/B,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAiBlC;;OAEG;IACI,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAIrC;;OAEG;IACI,KAAK,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;CAoBvC;AAGD,qBAAa,QAAQ,CAAC,CAAC;IAKf,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,GAAG;IALxB,OAAO,CAAC,QAAQ,CAA0E;IAC1F,OAAO,CAAC,KAAK,CAAoC;gBAG5B,GAAG,EAAE,GAAG,EACR,GAAG,SAAK;IAGtB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;IAmClD,OAAO,CAAC,SAAS;IAaV,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG;QAAC,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAC,EAAE;IAQvD,OAAO,CAAC,cAAc;IA2Bf,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,CAAC;IAyBlC,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IA4B/B,KAAK,IAAI,IAAI;CAIvB"} \ No newline at end of file diff --git a/dist/models/data-structures/quad-tree/quad-tree.js b/dist/models/data-structures/quad-tree/quad-tree.js deleted file mode 100644 index 774486a7..00000000 --- a/dist/models/data-structures/quad-tree/quad-tree.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QuadTree = exports.Box = exports.Point = void 0; -var Point = (function () { - function Point(x, y) { - this.x = x; - this.y = y; - } - Point.prototype.lte = function (point) { - return this.x <= point.x && this.y <= point.y; - }; - Point.prototype.gte = function (point) { - return this.x >= point.x && this.y >= point.y; - }; - Point.prototype.equals = function (point) { - return this.x === point.x && this.y === point.y; - }; - return Point; -}()); -exports.Point = Point; -var Box = (function () { - function Box(low, high) { - this.low = low; - this.high = high; - } - Box.prototype.contains = function (point) { - return this.low.lte(point) && this.high.gte(point); - }; - Box.prototype.overlaps = function (box) { - if (this.high.x < box.low.x) { - return false; - } - if (this.low.x > box.high.x) { - return false; - } - if (this.high.y < box.low.y) { - return false; - } - if (this.low.y > box.high.y) { - return false; - } - return true; - }; - Box.prototype.containsBox = function (box) { - return this.contains(box.low) && this.contains(box.high); - }; - Box.prototype.split = function () { - return [ - new Box(this.low, new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, this.low.y), new Point(this.high.x, (this.low.y + this.high.y) / 2)), - new Box(new Point((this.low.x + this.high.x) / 2, (this.low.y + this.high.y) / 2), this.high), - new Box(new Point(this.low.x, (this.low.y + this.high.y) / 2), new Point((this.low.x + this.high.x) / 2, this.high.y)), - ]; - }; - return Box; -}()); -exports.Box = Box; -var QuadTree = (function () { - function QuadTree(box, max) { - if (max === void 0) { max = 10; } - this.box = box; - this.max = max; - this.children = null; - this.value = []; - } - QuadTree.prototype.insert = function (point, value) { - var _a; - if (!this.box.contains(point)) { - return this; - } - if (this.children === null && this.value.length < this.max) { - for (var _i = 0, _b = this.value; _i < _b.length; _i++) { - var item = _b[_i]; - if (item.point.equals(point)) { - item.value = value; - return; - } - } - this.value.push({ point: point, value: value }); - return this; - } - if (this.children === null) { - this.subdivide(); - } - (_a = this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { - child.insert(point, value); - }); - this.value = []; - return this; - }; - QuadTree.prototype.subdivide = function () { - var _this = this; - this.children = this.box.split().map(function (child) { return new QuadTree(child, _this.max); }); - this.value.forEach(function (item) { - var _a; - (_a = _this.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) { - child.insert(item.point, item.value); - }); - }); - }; - QuadTree.prototype.queryRange = function (box) { - var result = []; - this._queryRangeRec(box, result); - return result; - }; - QuadTree.prototype._queryRangeRec = function (box, result) { - if (!this.box.overlaps(box)) { - return; - } - var i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (box.contains(this.value[i].point)) { - result.push(this.value[i]); - } - } - return; - } - if (this.children === null) { - return; - } - this.children.forEach(function (child) { - child._queryRangeRec(box, result); - }); - }; - QuadTree.prototype.queryPoint = function (point) { - if (!this.box.contains(point)) { - return null; - } - if (this.value.length > 0) { - var result = this.value.find(function (item) { return item.point.equals(point); }); - if (result) { - return result.value; - } - } - if (this.children !== null) { - for (var _i = 0, _a = this.children; _i < _a.length; _i++) { - var child = _a[_i]; - var result = child.queryPoint(point); - if (result) { - return result; - } - } - } - return null; - }; - QuadTree.prototype.removePoint = function (point) { - if (!this.box.contains(point)) { - return; - } - var i; - if (this.value.length > 0) { - for (i = 0; i < this.value.length; i++) { - if (this.value[i].point.equals(point)) { - this.value.splice(i, 1); - return; - } - } - return; - } - if (this.children !== null) { - for (i = 0; i < this.children.length; i++) { - this.children[i].removePoint(point); - } - } - return; - }; - QuadTree.prototype.clear = function () { - this.children = null; - this.value = []; - }; - return QuadTree; -}()); -exports.QuadTree = QuadTree; -//# sourceMappingURL=quad-tree.js.map \ No newline at end of file diff --git a/dist/models/data-structures/quad-tree/quad-tree.js.map b/dist/models/data-structures/quad-tree/quad-tree.js.map deleted file mode 100644 index 9d5323f8..00000000 --- a/dist/models/data-structures/quad-tree/quad-tree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quad-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AAI,MAAM,EAAE;oBACR,OAAO,MAAM,CAAC;iBACjB;aACJ;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8BAAW,GAAlB,UAAmB,KAAY;QAE3B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO;SACV;QAED,IAAI,CAAC,CAAC;QACN,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;oBACnC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAExB,OAAO;iBACV;aACJ;YAED,OAAO;SACV;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YACxB,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACvC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;aACvC;SACJ;QAED,OAAO;IACX,CAAC;IAEM,wBAAK,GAAZ;QACI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,KAAK,GAAM,EAAE,CAAC;IACvB,CAAC;IACL,eAAC;AAAD,CAAC,AArJD,IAqJC;AArJY,4BAAQ"} \ No newline at end of file diff --git a/dist/models/gender.model.d.ts b/dist/models/gender.model.d.ts deleted file mode 100644 index dfafe615..00000000 --- a/dist/models/gender.model.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @deprecated use {@link Gender} instead - */ -export declare type GenderType = "MAN" | "WOMAN" | ""; -export declare enum Gender { - MAN = "MAN", - WOMAN = "WOMAN" -} -export declare function parseGender(gender: string): Gender | null; -/** - * @deprecated use {@link parseGender} and {@link Gender} instead - * Class is used for parsing gender - */ -export declare class GenderClass { - /** - * Method parse string and return GenderType - * @deprecated use {@link parseGender} instead - * @param gender gender in any formatTime - * @returns parsed gender as {@link GenderType} - */ - static parse: typeof parseGender; -} -//# sourceMappingURL=gender.model.d.ts.map \ No newline at end of file diff --git a/dist/models/gender.model.d.ts.map b/dist/models/gender.model.d.ts.map deleted file mode 100644 index fb9fe299..00000000 --- a/dist/models/gender.model.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gender.model.d.ts","sourceRoot":"","sources":["../../src/models/gender.model.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,EAAE,CAAC;AAK9C,oBAAY,MAAM;IACd,GAAG,QAAU;IACb,KAAK,UAAU;CAClB;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAczD;AAED;;;GAGG;AACH,qBAAa,WAAW;IACpB;;;;;OAKG;IACH,OAAc,KAAK,qBAAe;CACrC"} \ No newline at end of file diff --git a/dist/models/gender.model.js b/dist/models/gender.model.js deleted file mode 100644 index bad9126a..00000000 --- a/dist/models/gender.model.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GenderClass = exports.parseGender = exports.Gender = void 0; -var maleRegexp = /^(male|man|muz|boy|chlapec|m)$/g; -var femaleRegexp = /^(female|woman|zena|girl|dievca|f|w|z)$/g; -var Gender; -(function (Gender) { - Gender["MAN"] = "MAN"; - Gender["WOMAN"] = "WOMAN"; -})(Gender = exports.Gender || (exports.Gender = {})); -function parseGender(gender) { - if (!gender) { - return null; - } - var genderLowerCase = gender.trim().toLowerCase().replace("ž", "z").replace("č", "c"); - if (genderLowerCase.match(maleRegexp)) { - return Gender.MAN; - } - if (genderLowerCase.match(femaleRegexp)) { - return Gender.WOMAN; - } - return null; -} -exports.parseGender = parseGender; -var GenderClass = (function () { - function GenderClass() { - } - GenderClass.parse = parseGender; - return GenderClass; -}()); -exports.GenderClass = GenderClass; -//# sourceMappingURL=gender.model.js.map \ No newline at end of file diff --git a/dist/models/gender.model.js.map b/dist/models/gender.model.js.map deleted file mode 100644 index 19f6d451..00000000 --- a/dist/models/gender.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gender.model.js","sourceRoot":"","sources":["../../src/models/gender.model.ts"],"names":[],"mappings":";;;AAKA,IAAM,UAAU,GAAK,iCAAiC,CAAC;AACvD,IAAM,YAAY,GAAG,0CAA0C,CAAC;AAEhE,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,qBAAa,CAAA;IACb,yBAAe,CAAA;AACnB,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB;AAED,SAAgB,WAAW,CAAC,MAAc;IACtC,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,IAAI,CAAC;KACf;IACD,IAAM,eAAe,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxF,IAAI,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;QACnC,OAAO,MAAM,CAAC,GAAG,CAAC;KACrB;IAED,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;QACrC,OAAO,MAAM,CAAC,KAAK,CAAC;KACvB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAdD,kCAcC;AAMD;IAAA;IAQA,CAAC;IADiB,iBAAK,GAAG,WAAW,CAAC;IACtC,kBAAC;CAAA,AARD,IAQC;AARY,kCAAW"} \ No newline at end of file diff --git a/dist/models/index.d.ts b/dist/models/index.d.ts deleted file mode 100644 index 268f1461..00000000 --- a/dist/models/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Model is enum and parser - */ -export * from "./gender.model"; -export * from "./color.model"; -export * from "./transform-2d"; -export * from "./range"; -export * from "./path-2d"; -export * from "./path/djikstra/djikstra"; -export * from "./sorting"; -export * from "./data-structures/priority-queue"; -export * from "./data-structures/binary-queue"; -export * from "./data-structures/binary-tree"; -export * from "./data-structures/quad-tree/quad-tree"; -export * from "./data-structures/grid-accessor"; -export * from "./data-structures/list"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/models/index.d.ts.map b/dist/models/index.d.ts.map deleted file mode 100644 index 150f6f04..00000000 --- a/dist/models/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,WAAW,CAAC;AAE1B,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,uCAAuC,CAAC;AAEtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/models/index.js b/dist/models/index.js deleted file mode 100644 index 178b14ff..00000000 --- a/dist/models/index.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./gender.model"), exports); -__exportStar(require("./color.model"), exports); -__exportStar(require("./transform-2d"), exports); -__exportStar(require("./range"), exports); -__exportStar(require("./path-2d"), exports); -__exportStar(require("./path/djikstra/djikstra"), exports); -__exportStar(require("./sorting"), exports); -__exportStar(require("./data-structures/priority-queue"), exports); -__exportStar(require("./data-structures/binary-queue"), exports); -__exportStar(require("./data-structures/binary-tree"), exports); -__exportStar(require("./data-structures/quad-tree/quad-tree"), exports); -__exportStar(require("./data-structures/grid-accessor"), exports); -__exportStar(require("./data-structures/list"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/models/index.js.map b/dist/models/index.js.map deleted file mode 100644 index e0077634..00000000 --- a/dist/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,0CAAwB;AACxB,4CAA0B;AAC1B,2DAAyC;AAEzC,4CAA0B;AAE1B,mEAAiD;AACjD,iEAA+C;AAC/C,gEAA8C;AAE9C,wEAAsD;AAEtD,kEAAgD;AAChD,yDAAuC"} \ No newline at end of file diff --git a/dist/models/path-2d.d.ts b/dist/models/path-2d.d.ts deleted file mode 100644 index 87c32b63..00000000 --- a/dist/models/path-2d.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -export declare class Path2D { - protected readonly points: readonly T[]; - constructor(points: readonly T[]); - get length(): number; - get first(): T; - get last(): T; - getPoint(index: number): T; -} -//# sourceMappingURL=path-2d.d.ts.map \ No newline at end of file diff --git a/dist/models/path-2d.d.ts.map b/dist/models/path-2d.d.ts.map deleted file mode 100644 index a3d038ed..00000000 --- a/dist/models/path-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"path-2d.d.ts","sourceRoot":"","sources":["../../src/models/path-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,qBAAa,MAAM,CAAC,CAAC,SAAS,aAAa;IACpB,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE;gBAApB,MAAM,EAAE,SAAS,CAAC,EAAE;IAM1D,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,KAAK,IAAI,CAAC,CAEpB;IAED,IAAW,IAAI,IAAI,CAAC,CAEnB;IAEM,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC;CAGpC"} \ No newline at end of file diff --git a/dist/models/path-2d.js b/dist/models/path-2d.js deleted file mode 100644 index 3def6804..00000000 --- a/dist/models/path-2d.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Path2D = void 0; -var Path2D = (function () { - function Path2D(points) { - this.points = points; - if (points.length < 2) { - throw new Error("Cannot create path with less than 2 points"); - } - } - Object.defineProperty(Path2D.prototype, "length", { - get: function () { - return this.points.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Path2D.prototype, "first", { - get: function () { - return this.points[0]; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Path2D.prototype, "last", { - get: function () { - return this.points[this.points.length - 1]; - }, - enumerable: false, - configurable: true - }); - Path2D.prototype.getPoint = function (index) { - return this.points[index]; - }; - return Path2D; -}()); -exports.Path2D = Path2D; -//# sourceMappingURL=path-2d.js.map \ No newline at end of file diff --git a/dist/models/path-2d.js.map b/dist/models/path-2d.js.map deleted file mode 100644 index d645729f..00000000 --- a/dist/models/path-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"path-2d.js","sourceRoot":"","sources":["../../src/models/path-2d.ts"],"names":[],"mappings":";;;AAEA;IACI,gBAAsC,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;QACtD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SACjE;IACL,CAAC;IAED,sBAAW,0BAAM;aAAjB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC9B,CAAC;;;OAAA;IAED,sBAAW,yBAAK;aAAhB;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC;;;OAAA;IAED,sBAAW,wBAAI;aAAf;YACI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAEM,yBAAQ,GAAf,UAAgB,KAAa;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACL,aAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,wBAAM"} \ No newline at end of file diff --git a/dist/models/path/a-star/a-star.d.ts b/dist/models/path/a-star/a-star.d.ts deleted file mode 100644 index d94284a7..00000000 --- a/dist/models/path/a-star/a-star.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=a-star.d.ts.map \ No newline at end of file diff --git a/dist/models/path/a-star/a-star.d.ts.map b/dist/models/path/a-star/a-star.d.ts.map deleted file mode 100644 index ff7ac3f2..00000000 --- a/dist/models/path/a-star/a-star.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star.d.ts","sourceRoot":"","sources":["../../../../src/models/path/a-star/a-star.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/path/a-star/a-star.js b/dist/models/path/a-star/a-star.js deleted file mode 100644 index d296993e..00000000 --- a/dist/models/path/a-star/a-star.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -//# sourceMappingURL=a-star.js.map \ No newline at end of file diff --git a/dist/models/path/a-star/a-star.js.map b/dist/models/path/a-star/a-star.js.map deleted file mode 100644 index 9aeadbad..00000000 --- a/dist/models/path/a-star/a-star.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star.js","sourceRoot":"","sources":["../../../../src/models/path/a-star/a-star.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/path/a-star/a-star_download.d.ts b/dist/models/path/a-star/a-star_download.d.ts deleted file mode 100644 index 6f546b60..00000000 --- a/dist/models/path/a-star/a-star_download.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Graph } from "./graph_download"; -import { GridNode } from "./grid-node_download"; -declare const astar: { - /** - * Perform an A* Search on a graph given a start and end node. - * - * [options.closest] Specifies whether to return the path to the closest node if the target is unreachable. - * [options.heuristic] Heuristic function (see astar.heuristics). - * - */ - search(graph: Graph, start: GridNode, end: GridNode, options?: { - heuristic?: any; - closest?: boolean; - }): GridNode[]; - heuristics: { - manhattan(pos0: SimpleVector2, pos1: SimpleVector2): number; - diagonal(pos0: SimpleVector2, pos1: SimpleVector2): number; - }; - cleanNode(node: GridNode): void; -}; -export { astar }; -//# sourceMappingURL=a-star_download.d.ts.map \ No newline at end of file diff --git a/dist/models/path/a-star/a-star_download.d.ts.map b/dist/models/path/a-star/a-star_download.d.ts.map deleted file mode 100644 index 9839cd85..00000000 --- a/dist/models/path/a-star/a-star_download.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star_download.d.ts","sourceRoot":"","sources":["../../../../src/models/path/a-star/a-star_download.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAehD,QAAA,MAAM,KAAK;IACP;;;;;;OAMG;kBACW,KAAK,SAAS,QAAQ,OAAO,QAAQ,YAAW;QAAC,SAAS,CAAC,EAAE,GAAG,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAC,GAAQ,QAAQ,EAAE;;wBAgFhG,aAAa,QAAQ,aAAa,GAAG,MAAM;uBAM5C,aAAa,QAAQ,aAAa,GAAG,MAAM;;oBAS9C,QAAQ,GAAG,IAAI;CAGlC,CAAC;AAKF,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/models/path/a-star/a-star_download.js b/dist/models/path/a-star/a-star_download.js deleted file mode 100644 index 879ea56c..00000000 --- a/dist/models/path/a-star/a-star_download.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.astar = void 0; -var binary_queue_1 = require("../../data-structures/binary-queue"); -var pathTo = function (node) { - var curr = node; - var path = []; - while (curr.parent) { - path.unshift(curr); - curr = curr.parent; - } - return path; -}; -var getHeap = function () { return new binary_queue_1.BinaryHeap(function (node) { return node.f; }); }; -var astar = { - search: function (graph, start, end, options) { - if (options === void 0) { options = {}; } - graph.cleanDirty(); - options = options || {}; - var heuristic = options.heuristic || astar.heuristics.manhattan; - var closest = options.closest || false; - var openHeap = getHeap(); - var closestNode = start; - start.h = heuristic(start, end); - graph.markDirty(start); - openHeap.push(start); - while (openHeap.size() > 0) { - var currentNode = openHeap.pop(); - if (currentNode === end) { - return pathTo(currentNode); - } - currentNode.closed = true; - var neighbors = graph.neighbors(currentNode); - for (var i = 0, il = neighbors.length; i < il; ++i) { - var neighbor = neighbors[i]; - if (neighbor.closed || neighbor.isWall()) { - continue; - } - var gScore = currentNode.g + neighbor.getCost(currentNode); - var beenVisited = neighbor.visited; - if (!beenVisited || gScore < neighbor.g) { - neighbor.visited = true; - neighbor.parent = currentNode; - neighbor.h = neighbor.h || heuristic(neighbor, end); - neighbor.g = gScore; - neighbor.f = neighbor.g + neighbor.h; - graph.markDirty(neighbor); - if (closest) { - if (neighbor.h < closestNode.h || (neighbor.h === closestNode.h && neighbor.g < closestNode.g)) { - closestNode = neighbor; - } - } - if (!beenVisited) { - openHeap.push(neighbor); - } - else { - openHeap.rescoreElement(neighbor); - } - } - } - } - if (closest) { - return pathTo(closestNode); - } - return []; - }, - heuristics: { - manhattan: function (pos0, pos1) { - var d1 = Math.abs(pos1.x - pos0.x); - var d2 = Math.abs(pos1.y - pos0.y); - return d1 + d2; - }, - diagonal: function (pos0, pos1) { - var D = 1; - var D2 = Math.sqrt(2); - var d1 = Math.abs(pos1.x - pos0.x); - var d2 = Math.abs(pos1.y - pos0.y); - return (D * (d1 + d2)) + ((D2 - (2 * D)) * Math.min(d1, d2)); - }, - }, - cleanNode: function (node) { - node.cleanUp(); - }, -}; -exports.astar = astar; -//# sourceMappingURL=a-star_download.js.map \ No newline at end of file diff --git a/dist/models/path/a-star/a-star_download.js.map b/dist/models/path/a-star/a-star_download.js.map deleted file mode 100644 index 12a1f741..00000000 --- a/dist/models/path/a-star/a-star_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"a-star_download.js","sourceRoot":"","sources":["../../../../src/models/path/a-star/a-star_download.ts"],"names":[],"mappings":";;;AAQA,mEAAgE;AAIhE,IAAM,MAAM,GAAG,UAAC,IAAc;IAC1B,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,IAAI,CAAC,MAAM,EAAE;QAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACtB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,IAAM,OAAO,GAAG,cAA4B,OAAA,IAAI,yBAAU,CAAC,UAAC,IAAc,IAAK,OAAA,IAAI,CAAC,CAAC,EAAN,CAAM,CAAC,EAA1C,CAA0C,CAAC;AAEvF,IAAM,KAAK,GAAG;IAQV,MAAM,EAAN,UAAO,KAAY,EAAE,KAAe,EAAE,GAA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CAAC,CAAC,CAAC;YAErC,OAAO,EAAE,GAAG,EAAE,CAAC;QACnB,CAAC;QACD,QAAQ,EAAR,UAAS,IAAmB,EAAE,IAAmB;YAC7C,IAAM,CAAC,GAAI,CAAC,CAAC;YACb,IAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACxB,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrC,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAErC,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QACjE,CAAC;KACJ;IACD,SAAS,EAAT,UAAU,IAAc;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;CACJ,CAAC;AAKO,sBAAK"} \ No newline at end of file diff --git a/dist/models/path/a-star/graph_download.d.ts b/dist/models/path/a-star/graph_download.d.ts deleted file mode 100644 index 32dff045..00000000 --- a/dist/models/path/a-star/graph_download.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { GridNode } from "./grid-node_download"; -export declare class Graph { - private readonly options; - private readonly nodes; - private readonly grid; - protected dirtyNodes: GridNode[]; - get diagonal(): boolean; - /** - * A graph memory structure - * - * @param gridIn - 2D array of input weights - * @param options - diagonal - Specifies whether diagonal moves are allowed - */ - constructor(gridIn: number[][], options?: { - diagonal?: boolean; - }); - get(x: number, y: number): GridNode; - private init; - cleanDirty(): void; - markDirty(node: GridNode): void; - neighbors(node: GridNode): GridNode[]; - toString(): string; -} -//# sourceMappingURL=graph_download.d.ts.map \ No newline at end of file diff --git a/dist/models/path/a-star/graph_download.d.ts.map b/dist/models/path/a-star/graph_download.d.ts.map deleted file mode 100644 index 6ecf9424..00000000 --- a/dist/models/path/a-star/graph_download.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"graph_download.d.ts","sourceRoot":"","sources":["../../../../src/models/path/a-star/graph_download.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,qBAAa,KAAK;IAeyB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAd/D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoB;IACzC,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAS;IAEzC,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED;;;;;OAKG;gBACgB,MAAM,EAAE,MAAM,EAAE,EAAE,EAAmB,OAAO,GAAE;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAM;IAcnF,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ;IAI1C,OAAO,CAAC,IAAI;IAOL,UAAU,IAAI,IAAI;IAOlB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAI/B,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,EAAE;IAmDrC,QAAQ,IAAI,MAAM;CAa5B"} \ No newline at end of file diff --git a/dist/models/path/a-star/graph_download.js b/dist/models/path/a-star/graph_download.js deleted file mode 100644 index 26dd2b50..00000000 --- a/dist/models/path/a-star/graph_download.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Graph = void 0; -var a_star_download_1 = require("./a-star_download"); -var grid_node_download_1 = require("./grid-node_download"); -var Graph = (function () { - function Graph(gridIn, options) { - if (options === void 0) { options = {}; } - this.options = options; - this.nodes = []; - this.grid = []; - this.dirtyNodes = []; - for (var x = 0; x < gridIn.length; x++) { - this.grid[x] = []; - var row = gridIn[x]; - for (var y = 0; y < row.length; y++) { - var node = new grid_node_download_1.GridNode(x, y, row[y]); - this.grid[x][y] = node; - this.nodes.push(node); - } - } - this.init(); - } - Object.defineProperty(Graph.prototype, "diagonal", { - get: function () { - return !!this.options.diagonal; - }, - enumerable: false, - configurable: true - }); - Graph.prototype.get = function (x, y) { - return this.grid[x][y]; - }; - Graph.prototype.init = function () { - this.dirtyNodes = []; - for (var _i = 0, _a = this.nodes; _i < _a.length; _i++) { - var item = _a[_i]; - a_star_download_1.astar.cleanNode(item); - } - }; - Graph.prototype.cleanDirty = function () { - for (var _i = 0, _a = this.dirtyNodes; _i < _a.length; _i++) { - var item = _a[_i]; - a_star_download_1.astar.cleanNode(item); - } - this.dirtyNodes = []; - }; - Graph.prototype.markDirty = function (node) { - this.dirtyNodes.push(node); - }; - Graph.prototype.neighbors = function (node) { - var ret = []; - var x = node.x; - var y = node.y; - var grid = this.grid; - if (grid[x - 1] && grid[x - 1][y]) { - ret.push(grid[x - 1][y]); - } - if (grid[x + 1] && grid[x + 1][y]) { - ret.push(grid[x + 1][y]); - } - if (grid[x] && grid[x][y - 1]) { - ret.push(grid[x][y - 1]); - } - if (grid[x] && grid[x][y + 1]) { - ret.push(grid[x][y + 1]); - } - if (this.diagonal) { - if (grid[x - 1] && grid[x - 1][y - 1]) { - ret.push(grid[x - 1][y - 1]); - } - if (grid[x + 1] && grid[x + 1][y - 1]) { - ret.push(grid[x + 1][y - 1]); - } - if (grid[x - 1] && grid[x - 1][y + 1]) { - ret.push(grid[x - 1][y + 1]); - } - if (grid[x + 1] && grid[x + 1][y + 1]) { - ret.push(grid[x + 1][y + 1]); - } - } - return ret; - }; - Graph.prototype.toString = function () { - var graphString = []; - var nodes = this.grid; - for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) { - var row = nodes_1[_i]; - var rowDebug = []; - for (var _a = 0, row_1 = row; _a < row_1.length; _a++) { - var item = row_1[_a]; - rowDebug.push(item.weight); - } - graphString.push(rowDebug.join(" ")); - } - return graphString.join("\n"); - }; - return Graph; -}()); -exports.Graph = Graph; -//# sourceMappingURL=graph_download.js.map \ No newline at end of file diff --git a/dist/models/path/a-star/graph_download.js.map b/dist/models/path/a-star/graph_download.js.map deleted file mode 100644 index 2a194f15..00000000 --- a/dist/models/path/a-star/graph_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"graph_download.js","sourceRoot":"","sources":["../../../../src/models/path/a-star/graph_download.ts"],"names":[],"mappings":";;;AAAA,qDAA0C;AAC1C,2DAAgD;AAEhD;IAeI,eAAmB,MAAkB,EAAmB,OAAkC;QAAlC,wBAAA,EAAA,YAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QAdzE,UAAK,GAAgB,EAAE,CAAC;QACxB,SAAI,GAAiB,EAAE,CAAC;QAC/B,eAAU,GAAkB,EAAE,CAAC;QAarC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;YAElB,IAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACjC,IAAM,IAAI,GAAQ,IAAI,6BAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBACvB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACzB;SACJ;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAtBD,sBAAW,2BAAQ;aAAn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AAC,CAAC,GAAG,CAAC,CAAC,EAAE;gBACnC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAChC;YAGD,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE;gBACnC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAChC;SACJ;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,wBAAQ,GAAf;QACI,IAAM,WAAW,GAAG,EAAE,CAAC;QACvB,IAAM,KAAK,GAAS,IAAI,CAAC,IAAI,CAAC;QAC9B,KAAkB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;YAApB,IAAM,GAAG,cAAA;YACV,IAAM,QAAQ,GAAG,EAAE,CAAC;YACpB,KAAmB,UAAG,EAAH,WAAG,EAAH,iBAAG,EAAH,IAAG,EAAE;gBAAnB,IAAM,IAAI,YAAA;gBACX,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aAC9B;YACD,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;SACxC;QAED,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IACL,YAAC;AAAD,CAAC,AAnHD,IAmHC;AAnHY,sBAAK"} \ No newline at end of file diff --git a/dist/models/path/a-star/grid-node_download.d.ts b/dist/models/path/a-star/grid-node_download.d.ts deleted file mode 100644 index 6ad8f0cc..00000000 --- a/dist/models/path/a-star/grid-node_download.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare class GridNode { - readonly x: number; - readonly y: number; - readonly weight: number; - f: number; - g: number; - h: number; - visited: boolean; - closed: boolean; - parent: GridNode | null; - constructor(x: number, y: number, weight: number); - cleanUp(): void; - toString(): string; - getCost(fromNeighbor: GridNode): number; - isWall(): boolean; -} -//# sourceMappingURL=grid-node_download.d.ts.map \ No newline at end of file diff --git a/dist/models/path/a-star/grid-node_download.d.ts.map b/dist/models/path/a-star/grid-node_download.d.ts.map deleted file mode 100644 index 5a9b39c7..00000000 --- a/dist/models/path/a-star/grid-node_download.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-node_download.d.ts","sourceRoot":"","sources":["../../../../src/models/path/a-star/grid-node_download.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;aAWG,CAAC,EAAE,MAAM;aACT,CAAC,EAAE,MAAM;aACT,MAAM,EAAE,MAAM;IAZ3B,CAAC,SAAK;IACN,CAAC,SAAK;IACN,CAAC,SAAK;IAEN,OAAO,UAAS;IAChB,MAAM,UAAS;IAEf,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAQ;gBAGlB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,MAAM;IAI3B,OAAO,IAAI,IAAI;IASf,QAAQ,IAAI,MAAM;IAIlB,OAAO,CAAC,YAAY,EAAE,QAAQ,GAAG,MAAM;IASvC,MAAM,IAAI,OAAO;CAG3B"} \ No newline at end of file diff --git a/dist/models/path/a-star/grid-node_download.js b/dist/models/path/a-star/grid-node_download.js deleted file mode 100644 index 06a64061..00000000 --- a/dist/models/path/a-star/grid-node_download.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GridNode = void 0; -var GridNode = (function () { - function GridNode(x, y, weight) { - this.x = x; - this.y = y; - this.weight = weight; - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - } - GridNode.prototype.cleanUp = function () { - this.f = 0; - this.g = 0; - this.h = 0; - this.visited = false; - this.closed = false; - this.parent = null; - }; - GridNode.prototype.toString = function () { - return "[" + this.x + " " + this.y + "]"; - }; - GridNode.prototype.getCost = function (fromNeighbor) { - if (fromNeighbor && fromNeighbor.x !== this.x && fromNeighbor.y !== this.y) { - return this.weight * 1.41421; - } - return this.weight; - }; - GridNode.prototype.isWall = function () { - return this.weight === 0; - }; - return GridNode; -}()); -exports.GridNode = GridNode; -//# sourceMappingURL=grid-node_download.js.map \ No newline at end of file diff --git a/dist/models/path/a-star/grid-node_download.js.map b/dist/models/path/a-star/grid-node_download.js.map deleted file mode 100644 index 42b22313..00000000 --- a/dist/models/path/a-star/grid-node_download.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"grid-node_download.js","sourceRoot":"","sources":["../../../../src/models/path/a-star/grid-node_download.ts"],"names":[],"mappings":";;;AAAA;IAUI,kBACoB,CAAS,EACT,CAAS,EACT,MAAc;QAFd,MAAC,GAAD,CAAC,CAAQ;QACT,MAAC,GAAD,CAAC,CAAQ;QACT,WAAM,GAAN,MAAM,CAAQ;QAZ3B,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QACN,MAAC,GAAG,CAAC,CAAC;QAEN,YAAO,GAAG,KAAK,CAAC;QAChB,WAAM,GAAG,KAAK,CAAC;QAEf,WAAM,GAAoB,IAAI,CAAC;IAOtC,CAAC;IAEM,0BAAO,GAAd;QACI,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAS,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAI,IAAI,CAAC;IACxB,CAAC;IAEM,2BAAQ,GAAf;QACI,OAAO,MAAI,IAAI,CAAC,CAAC,SAAI,IAAI,CAAC,CAAC,MAAG,CAAC;IACnC,CAAC;IAEM,0BAAO,GAAd,UAAe,YAAsB;QAEjC,IAAI,YAAY,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;YACxE,OAAO,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;SAChC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,yBAAM,GAAb;QACI,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;IAC7B,CAAC;IACL,eAAC;AAAD,CAAC,AA1CD,IA0CC;AA1CY,4BAAQ"} \ No newline at end of file diff --git a/dist/models/path/djikstra/djikstra.d.ts b/dist/models/path/djikstra/djikstra.d.ts deleted file mode 100644 index ead1e39c..00000000 --- a/dist/models/path/djikstra/djikstra.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export interface DjikstraResult { - readonly distance: number; - readonly nodes: readonly string[]; -} -export declare class DjikstraVertex { - readonly name: string; - readonly nodes: { - readonly nameOfVertex: string; - readonly weight: number; - }[]; - weight: number; - constructor(name: string, nodes: { - readonly nameOfVertex: string; - readonly weight: number; - }[], weight: number); -} -export declare class Dijkstra { - vertices: { - [key: string]: DjikstraVertex; - }; - constructor(); - addVertex(vertex: DjikstraVertex): void; - removeVertex(vertexName: string): void; - getVertex(vertexName: string): DjikstraVertex; - requireVertex(name: string, vertexWeight?: number): DjikstraVertex; - findPointsOfShortestWay(start: string, finish: string, weight: number): string[]; - findShortestWay(start: string, finish: string): DjikstraResult; -} -//# sourceMappingURL=djikstra.d.ts.map \ No newline at end of file diff --git a/dist/models/path/djikstra/djikstra.d.ts.map b/dist/models/path/djikstra/djikstra.d.ts.map deleted file mode 100644 index e2ad06fd..00000000 --- a/dist/models/path/djikstra/djikstra.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"djikstra.d.ts","sourceRoot":"","sources":["../../../../src/models/path/djikstra/djikstra.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,qBAAa,cAAc;aAEH,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE;QACnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KAC3B,EAAE;IACI,MAAM,EAAE,MAAM;gBALL,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;QACnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KAC3B,EAAE,EACI,MAAM,EAAE,MAAM;CAG5B;AAED,qBAAa,QAAQ;IACV,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;;IAM5C,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAIvC,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAGtC,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc;IAI7C,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,SAAI,GAAG,cAAc;IAY7D,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAqBhF,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc;CAgCxE"} \ No newline at end of file diff --git a/dist/models/path/djikstra/djikstra.js b/dist/models/path/djikstra/djikstra.js deleted file mode 100644 index 188d6f8c..00000000 --- a/dist/models/path/djikstra/djikstra.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Dijkstra = exports.DjikstraVertex = void 0; -var DjikstraVertex = (function () { - function DjikstraVertex(name, nodes, weight) { - this.name = name; - this.nodes = nodes; - this.weight = weight; - } - return DjikstraVertex; -}()); -exports.DjikstraVertex = DjikstraVertex; -var Dijkstra = (function () { - function Dijkstra() { - this.vertices = {}; - } - Dijkstra.prototype.addVertex = function (vertex) { - this.vertices[vertex.name] = vertex; - }; - Dijkstra.prototype.removeVertex = function (vertexName) { - delete this.vertices[vertexName]; - }; - Dijkstra.prototype.getVertex = function (vertexName) { - return this.vertices[vertexName]; - }; - Dijkstra.prototype.requireVertex = function (name, vertexWeight) { - if (vertexWeight === void 0) { vertexWeight = 0; } - var result = this.getVertex(name); - if (result) { - return result; - } - var newVertex = new DjikstraVertex(name, [], 0); - this.addVertex(newVertex); - return newVertex; - }; - Dijkstra.prototype.findPointsOfShortestWay = function (start, finish, weight) { - var _this = this; - var nextVertex = finish; - var arrayWithVertex = []; - var _loop_1 = function () { - var minWeight = Number.MAX_VALUE; - var minVertex = ""; - this_1.vertices[nextVertex].nodes.forEach(function (node) { - if (node.weight + _this.vertices[node.nameOfVertex].weight < minWeight) { - minWeight = _this.vertices[node.nameOfVertex].weight; - minVertex = node.nameOfVertex; - } - }); - arrayWithVertex.push(minVertex); - nextVertex = minVertex; - }; - var this_1 = this; - while (nextVertex !== start) { - _loop_1(); - } - return arrayWithVertex; - }; - Dijkstra.prototype.findShortestWay = function (start, finish) { - var _this = this; - var nodes = {}; - Object.values(this.vertices).forEach(function (vertex) { - if (vertex.name === start) { - vertex.weight = 0; - } - else { - vertex.weight = Number.MAX_VALUE; - } - nodes[vertex.name] = vertex.weight; - }); - while (Object.keys(nodes).length !== 0) { - var sortedVisitedByWeight = Object.keys(nodes).sort(function (a, b) { return _this.vertices[a].weight - _this.vertices[b].weight; }); - var currentVertex = this.vertices[sortedVisitedByWeight[0]]; - for (var _i = 0, _a = currentVertex.nodes; _i < _a.length; _i++) { - var j = _a[_i]; - var calculateWeight = currentVertex.weight + j.weight; - if (calculateWeight < this.vertices[j.nameOfVertex].weight) { - this.vertices[j.nameOfVertex].weight = calculateWeight; - } - } - delete nodes[sortedVisitedByWeight[0]]; - } - var finishWeight = this.vertices[finish].weight; - var arrayWithVertex = this.findPointsOfShortestWay(start, finish, finishWeight).reverse(); - return { - distance: finishWeight, - nodes: __spreadArrays(arrayWithVertex, [finish]), - }; - }; - return Dijkstra; -}()); -exports.Dijkstra = Dijkstra; -//# sourceMappingURL=djikstra.js.map \ No newline at end of file diff --git a/dist/models/path/djikstra/djikstra.js.map b/dist/models/path/djikstra/djikstra.js.map deleted file mode 100644 index 89abe20a..00000000 --- a/dist/models/path/djikstra/djikstra.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"djikstra.js","sourceRoot":"","sources":["../../../../src/models/path/djikstra/djikstra.ts"],"names":[],"mappings":";;;;;;;;;;AAKA;IACI,wBACoB,IAAY,EACZ,KAGb,EACI,MAAc;QALL,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;QACI,WAAM,GAAN,MAAM,CAAQ;IAEzB,CAAC;IACL,qBAAC;AAAD,CAAC,AAVD,IAUC;AAVY,wCAAc;AAY3B;IAGI;QACI,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAEM,4BAAS,GAAhB,UAAiB,MAAsB;QACnC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IACxC,CAAC;IAEM,+BAAY,GAAnB,UAAoB,UAAkB;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IACM,4BAAS,GAAhB,UAAiB,UAAkB;QAC/B,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC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,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;QAC/D,IAAM,eAAe,GAAa,IAAI,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,OAAO,EAAE,CAAC;QAEtG,OAAO;YACH,QAAQ,EAAE,YAAY;YACtB,KAAK,iBAAM,eAAe,GAAE,MAAM,EAAC;SACtC,CAAC;IACN,CAAC;IACL,eAAC;AAAD,CAAC,AAnFD,IAmFC;AAnFY,4BAAQ"} \ No newline at end of file diff --git a/dist/models/path/nearest-item.d.ts b/dist/models/path/nearest-item.d.ts deleted file mode 100644 index 50a27d98..00000000 --- a/dist/models/path/nearest-item.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export declare class NearestVertex { - readonly name: string; - readonly type: string; - readonly nodes: { - readonly weight: number; - readonly name: string; - }[]; - constructor(name: string, type: string, nodes: { - readonly weight: number; - readonly name: string; - }[]); -} -export interface NearestResult { - readonly distance: number; - readonly nodes: readonly string[]; -} -export declare class NearestItem { - private vertices; - addVertex(vertex: NearestVertex): void; - getVertex(vertex: NearestVertex): NearestVertex; - removeVertex(vertex: NearestVertex): void; - requireVertex(name: string, type: string): NearestVertex; - getNearestItem(name: string, searchedType: string): NearestResult; -} -//# sourceMappingURL=nearest-item.d.ts.map \ No newline at end of file diff --git a/dist/models/path/nearest-item.d.ts.map b/dist/models/path/nearest-item.d.ts.map deleted file mode 100644 index 297071ac..00000000 --- a/dist/models/path/nearest-item.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nearest-item.d.ts","sourceRoot":"","sources":["../../../src/models/path/nearest-item.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;aAEF,IAAI,EAAE,MAAM;aACZ,IAAI,EAAE,MAAM;aACZ,KAAK,EAAE;QACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACzB,EAAE;gBALa,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE;QACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACzB,EAAE;CAGV;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAwC;IAEjD,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAItC,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;IAI/C,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAIzC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa;IAYxD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,aAAa;CAuC3E"} \ No newline at end of file diff --git a/dist/models/path/nearest-item.js b/dist/models/path/nearest-item.js deleted file mode 100644 index 11a4ec83..00000000 --- a/dist/models/path/nearest-item.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NearestItem = exports.NearestVertex = void 0; -var priority_queue_1 = require("../data-structures/priority-queue"); -var NearestVertex = (function () { - function NearestVertex(name, type, nodes) { - this.name = name; - this.type = type; - this.nodes = nodes; - } - return NearestVertex; -}()); -exports.NearestVertex = NearestVertex; -var NearestItem = (function () { - function NearestItem() { - this.vertices = {}; - } - NearestItem.prototype.addVertex = function (vertex) { - this.vertices[vertex.name] = vertex; - }; - NearestItem.prototype.getVertex = function (vertex) { - return this.vertices[vertex.name]; - }; - NearestItem.prototype.removeVertex = function (vertex) { - delete this.vertices[vertex.name]; - }; - NearestItem.prototype.requireVertex = function (name, type) { - var result = this.vertices[name]; - if (result) { - return result; - } - var newVertex = new NearestVertex(name, type, []); - this.addVertex(newVertex); - return newVertex; - }; - NearestItem.prototype.getNearestItem = function (name, searchedType) { - var _this = this; - var resultVertices = []; - var queue = priority_queue_1.PriorityQueue.createMinQueue(function (value) { return value.weight; }); - var visitedVertices = {}; - queue.add({ - weight: 0, - vertices: [this.vertices[name]], - }); - var _loop_1 = function () { - var currentItem = queue.pop(); - var currentVertex = currentItem.vertices[currentItem.vertices.length - 1]; - if (currentVertex.type === searchedType) { - return { value: { - distance: currentItem.weight, - nodes: currentItem.vertices.map(function (e) { return e.name; }), - } }; - } - visitedVertices[currentVertex.name] = true; - currentVertex.nodes.forEach(function (path) { - if (visitedVertices[path.name]) { - return; - } - queue.add({ - weight: currentItem.weight + path.weight, - vertices: __spreadArrays(currentItem.vertices, [_this.vertices[path.name]]), - }); - }); - resultVertices.push(currentVertex); - }; - while (queue.length) { - var state_1 = _loop_1(); - if (typeof state_1 === "object") - return state_1.value; - } - return null; - }; - return NearestItem; -}()); -exports.NearestItem = NearestItem; -//# sourceMappingURL=nearest-item.js.map \ No newline at end of file diff --git a/dist/models/path/nearest-item.js.map b/dist/models/path/nearest-item.js.map deleted file mode 100644 index 449039a5..00000000 --- a/dist/models/path/nearest-item.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nearest-item.js","sourceRoot":"","sources":["../../../src/models/path/nearest-item.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,oEAAkE;AAElE;IACI,uBACoB,IAAY,EACZ,IAAY,EACZ,KAGb;QALa,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAGlB;IAEP,CAAC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AAG,CAAC;YACjC,IAAM,aAAa,GAAG,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAE5E,IAAI,aAAa,CAAC,IAAI,KAAK,YAAY,EAAE;gCAC9B;wBACH,QAAQ,EAAE,WAAW,CAAC,MAAM;wBAC5B,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,EAAN,CAAM,CAAC;qBACjD;aACJ;YAED,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YAE3C,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,UAAC,IAAI;gBAC7B,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC5B,OAAO;iBACV;gBAED,KAAK,CAAC,GAAG,CAAC;oBACN,MAAM,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;oBACxC,QAAQ,iBAAM,WAAW,CAAC,QAAQ,GAAE,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC;iBAChE,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;;QAvBvC,OAAO,KAAK,CAAC,MAAM;;;;SAwBlB;QAED,OAAO,IAAW,CAAC;IACvB,CAAC;IACL,kBAAC;AAAD,CAAC,AAlED,IAkEC;AAlEY,kCAAW"} \ No newline at end of file diff --git a/dist/models/range.d.ts b/dist/models/range.d.ts deleted file mode 100644 index 69a144d0..00000000 --- a/dist/models/range.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SimpleVector2, SimpleVector3, SimpleVector4 } from "gtools/math"; -import { Color } from "./color.model"; -export declare class Range { - readonly min: T; - readonly max: T; - constructor(min: T, max?: T); - static random(range: Range): number; - static randomVector2i(range: Range): SimpleVector2; - static randomVector3i(range: Range): SimpleVector3; - static randomVector4i(range: Range): SimpleVector4; - static randomVector2f(range: Range): SimpleVector2; - static randomVector3f(range: Range): SimpleVector3; - static randomVector4f(range: Range): SimpleVector4; - static randomColorF(range: Range): Color; - static randomColorI(range: Range): Color; -} -//# sourceMappingURL=range.d.ts.map \ No newline at end of file diff --git a/dist/models/range.d.ts.map b/dist/models/range.d.ts.map deleted file mode 100644 index 9333065b..00000000 --- a/dist/models/range.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/models/range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,KAAK,CAAC,CAAC;aACmB,GAAG,EAAE,CAAC;aAAkB,GAAG,EAAE,CAAC;gBAA9B,GAAG,EAAE,CAAC,EAAkB,GAAG,GAAE,CAAO;WAGzD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM;WAGpC,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAO1D,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAQ1D,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAS1D,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAO1D,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAQ1D,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,aAAa;WAS1D,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK;WASxC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK;CAQzD"} \ No newline at end of file diff --git a/dist/models/range.js b/dist/models/range.js deleted file mode 100644 index 2fb017a0..00000000 --- a/dist/models/range.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Range = void 0; -var utils_1 = require("../utils"); -var color_model_1 = require("./color.model"); -var Range = (function () { - function Range(min, max) { - if (max === void 0) { max = min; } - this.min = min; - this.max = max; - } - Range.random = function (range) { - return utils_1.randomFloatBetween(range.min, range.max); - }; - Range.randomVector2i = function (range) { - return { - x: utils_1.randomIntBetween(range.min.x, range.max.x), - y: utils_1.randomIntBetween(range.min.y, range.max.y), - }; - }; - Range.randomVector3i = function (range) { - return { - x: utils_1.randomIntBetween(range.min.x, range.max.x), - y: utils_1.randomIntBetween(range.min.y, range.max.y), - z: utils_1.randomIntBetween(range.min.z, range.max.z), - }; - }; - Range.randomVector4i = function (range) { - return { - x: utils_1.randomIntBetween(range.min.x, range.max.x), - y: utils_1.randomIntBetween(range.min.y, range.max.y), - z: utils_1.randomIntBetween(range.min.z, range.max.z), - w: utils_1.randomIntBetween(range.min.w, range.max.w), - }; - }; - Range.randomVector2f = function (range) { - return { - x: utils_1.randomFloatBetween(range.min.x, range.max.x), - y: utils_1.randomFloatBetween(range.min.y, range.max.y), - }; - }; - Range.randomVector3f = function (range) { - return { - x: utils_1.randomFloatBetween(range.min.x, range.max.x), - y: utils_1.randomFloatBetween(range.min.y, range.max.y), - z: utils_1.randomFloatBetween(range.min.z, range.max.z), - }; - }; - Range.randomVector4f = function (range) { - return { - x: utils_1.randomFloatBetween(range.min.x, range.max.x), - y: utils_1.randomFloatBetween(range.min.y, range.max.y), - z: utils_1.randomFloatBetween(range.min.z, range.max.z), - w: utils_1.randomFloatBetween(range.min.w, range.max.w), - }; - }; - Range.randomColorF = function (range) { - return new color_model_1.Color(utils_1.randomFloatBetween(range.min.red, range.max.red), utils_1.randomFloatBetween(range.min.green, range.max.green), utils_1.randomFloatBetween(range.min.blue, range.max.blue), utils_1.randomFloatBetween(range.min.alpha, range.max.alpha)); - }; - Range.randomColorI = function (range) { - return new color_model_1.Color(utils_1.randomIntBetween(range.min.red, range.max.red), utils_1.randomIntBetween(range.min.green, range.max.green), utils_1.randomIntBetween(range.min.blue, range.max.blue), utils_1.randomIntBetween(range.min.alpha, range.max.alpha)); - }; - return Range; -}()); -exports.Range = Range; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/dist/models/range.js.map b/dist/models/range.js.map deleted file mode 100644 index 89d7a854..00000000 --- a/dist/models/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../src/models/range.ts"],"names":[],"mappings":";;;AACA,kCAAgE;AAChE,6CAAsC;AAEtC;IACI,eAAmC,GAAM,EAAkB,GAAY;QAAZ,oBAAA,EAAA,SAAY;QAApC,QAAG,GAAH,GAAG,CAAG;QAAkB,QAAG,GAAH,GAAG,CAAS;IACvE,CAAC;IAEa,YAAM,GAApB,UAAqB,KAAoB;QACrC,OAAO,0BAAkB,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IACa,oBAAc,GAA5B,UAA6B,KAA2B;QACpD,OAAO;YACH,CAAC,EAAE,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7C,CAAC,EAAE,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;SAChD,CAAC;IACN,CAAC;IAEa,oBAAc,GAA5B,UAA6B,KAA2B;QACpD,OAAO;YACH,CAAC,EAAE,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7C,CAAC,EAAE,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,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,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAClD,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAChD,wBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CACrD,CAAC;IACN,CAAC;IACL,YAAC;AAAD,CAAC,AAxED,IAwEC;AAxEY,sBAAK"} \ No newline at end of file diff --git a/dist/models/selection/selection-holder.d.ts b/dist/models/selection/selection-holder.d.ts deleted file mode 100644 index 2d9c0589..00000000 --- a/dist/models/selection/selection-holder.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export declare class SelectionHolder { - private readonly comparator; - private selectedValues; - onChange?: () => void; - constructor(comparator?: (a: T, b: T) => boolean); - isSelected(item: T): boolean; - private emit; - select(...items: T[]): void; - unselectAll(): void; - selectOnly(...items: T[]): void; - unselect(item: T): void; - get selected(): readonly T[]; - get length(): number; -} -//# sourceMappingURL=selection-holder.d.ts.map \ No newline at end of file diff --git a/dist/models/selection/selection-holder.d.ts.map b/dist/models/selection/selection-holder.d.ts.map deleted file mode 100644 index 08540564..00000000 --- a/dist/models/selection/selection-holder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection-holder.d.ts","sourceRoot":"","sources":["../../../src/models/selection/selection-holder.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe,CAAC,CAAC;IAIP,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH9C,OAAO,CAAC,cAAc,CAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;gBAEO,UAAU,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAA2B;IAGpF,UAAU,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO;IAInC,OAAO,CAAC,IAAI;IAQL,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAI3B,WAAW,IAAI,IAAI;IAInB,UAAU,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAI/B,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAY9B,IAAW,QAAQ,IAAI,SAAS,CAAC,EAAE,CAElC;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;CACJ"} \ No newline at end of file diff --git a/dist/models/selection/selection-holder.js b/dist/models/selection/selection-holder.js deleted file mode 100644 index 9d7b57a8..00000000 --- a/dist/models/selection/selection-holder.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SelectionHolder = void 0; -var SelectionHolder = (function () { - function SelectionHolder(comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - this.comparator = comparator; - this.selectedValues = []; - } - SelectionHolder.prototype.isSelected = function (item) { - var _this = this; - return this.selectedValues.some(function (actualItem) { return _this.comparator(actualItem, item); }); - }; - SelectionHolder.prototype.emit = function (data) { - this.selectedValues = data; - if (typeof this.onChange === "function") { - this.onChange(); - } - }; - SelectionHolder.prototype.select = function () { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - this.emit(__spreadArrays(this.selectedValues, items)); - }; - SelectionHolder.prototype.unselectAll = function () { - this.emit([]); - }; - SelectionHolder.prototype.selectOnly = function () { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - this.emit(__spreadArrays(items)); - }; - SelectionHolder.prototype.unselect = function (item) { - var _this = this; - var newSelectedValues = __spreadArrays(this.selectedValues); - var index = this.selectedValues.findIndex(function (actualItem) { - return _this.comparator(actualItem, item); - }); - if (index < 0) { - return; - } - newSelectedValues.splice(index, 1); - this.emit(newSelectedValues); - }; - Object.defineProperty(SelectionHolder.prototype, "selected", { - get: function () { - return this.selectedValues; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(SelectionHolder.prototype, "length", { - get: function () { - return this.selectedValues.length; - }, - enumerable: false, - configurable: true - }); - return SelectionHolder; -}()); -exports.SelectionHolder = SelectionHolder; -//# sourceMappingURL=selection-holder.js.map \ No newline at end of file diff --git a/dist/models/selection/selection-holder.js.map b/dist/models/selection/selection-holder.js.map deleted file mode 100644 index 4d0b967f..00000000 --- a/dist/models/selection/selection-holder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection-holder.js","sourceRoot":"","sources":["../../../src/models/selection/selection-holder.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAII,yBAAoC,UAAuD;QAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,CAAC,EAAP,CAAO;QAAvD,eAAU,GAAV,UAAU,CAA6C;QAHnF,mBAAc,GAAiB,EAAE,CAAC;IAI1C,CAAC;IAEM,oCAAU,GAAjB,UAAkB,IAAO;QAAzB,iBAEC;QADG,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAC,UAAU,IAAK,OAAA,KAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,EAAjC,CAAiC,CAAC,CAAC;IACvF,CAAC;IAEO,8BAAI,GAAZ,UAAa,IAAkB;QAC3B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAE3B,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;SACnB;IACL,CAAC;IAEM,gCAAM,GAAb;QAAc,eAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,0BAAa;;QACvB,IAAI,CAAC,IAAI,gBAAK,IAAI,CAAC,cAAc,EAAK,KAAK,EAAE,CAAC;IAClD,CAAC;IAEM,qCAAW,GAAlB;QACI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAEM,oCAAU,GAAjB;QAAkB,eAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,0BAAa;;QAC3B,IAAI,CAAC,IAAI,gBAAK,KAAK,EAAE,CAAC;IAC1B,CAAC;IAEM,kCAAQ,GAAf,UAAgB,IAAO;QAAvB,iBAUC;QATG,IAAM,iBAAiB,kBAAO,IAAI,CAAC,cAAc,CAAC,CAAC;QACnD,IAAM,KAAK,GAAe,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,UAAC,UAAU;YAC/D,OAAA,KAAI,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC;QAAjC,CAAiC,CACpC,CAAC;QACF,IAAI,KAAK,GAAG,CAAC,EAAE;YACX,OAAO;SACV;QACD,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjC,CAAC;IAED,sBAAW,qCAAQ;aAAnB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;;;OAAA;IAED,sBAAW,mCAAM;aAAjB;YACI,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;QACtC,CAAC;;;OAAA;IACL,sBAAC;AAAD,CAAC,AAlDD,IAkDC;AAlDY,0CAAe"} \ No newline at end of file diff --git a/dist/models/selection/selection.d.ts b/dist/models/selection/selection.d.ts deleted file mode 100644 index c00db011..00000000 --- a/dist/models/selection/selection.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export declare type SelectionMode = "single" | "multi" | "multi-control" | "multi-continuous"; -interface SelectableOptions { - mode: SelectionMode; - unselectable: boolean; -} -export declare class Selection { - private allValues; - private readonly options; - private readonly selectionHolder; - readonly selection: any; - constructor(allValues?: readonly T[], options?: { - mode: string; - unselectable: boolean; - }); - click(item: T, options?: { - ctrlDown?: boolean; - shiftDown?: boolean; - }): void; - setValues(values: T[]): void; - setOptions(options: Partial): void; - private processSingleClick; - private processMultiClick; - private processMultiControlClick; - private processMultiContinuousClick; -} -export {}; -//# sourceMappingURL=selection.d.ts.map \ No newline at end of file diff --git a/dist/models/selection/selection.d.ts.map b/dist/models/selection/selection.d.ts.map deleted file mode 100644 index 767c55f4..00000000 --- a/dist/models/selection/selection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../src/models/selection/selection.ts"],"names":[],"mappings":"AAEA,oBAAY,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAEtF,UAAU,iBAAiB;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,qBAAa,SAAS,CAAC,CAAC;IAahB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAb5B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAC5D,SAAgB,SAAS,MAQtB;gBAGS,SAAS,GAAE,SAAS,CAAC,EAAO,EACnB,OAAO;;;KAGvB;IAIE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,IAAI;IAa/E,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI;IAI5B,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAK5D,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,wBAAwB;IAoBhC,OAAO,CAAC,2BAA2B;CAuBtC"} \ No newline at end of file diff --git a/dist/models/selection/selection.js b/dist/models/selection/selection.js deleted file mode 100644 index 77ac7ffd..00000000 --- a/dist/models/selection/selection.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Selection = void 0; -var selection_holder_1 = require("./selection-holder"); -var Selection = (function () { - function Selection(allValues, options) { - var _this = this; - if (allValues === void 0) { allValues = []; } - if (options === void 0) { options = { - mode: "single", - unselectable: false, - }; } - this.allValues = allValues; - this.options = options; - this.selectionHolder = new selection_holder_1.SelectionHolder(); - this.selection = Object.defineProperties({}, { - isSelected: { value: function (item) { return _this.selectionHolder.isSelected(item); } }, - selected: { - get: function () { return _this.selectionHolder.selected; }, - }, - length: { - get: function () { return _this.selectionHolder.length; }, - }, - }); - } - Selection.prototype.click = function (item, options) { - if (options === void 0) { options = {}; } - switch (this.options.mode) { - case "single": - return this.processSingleClick(item); - case "multi": - return this.processMultiClick(item); - case "multi-control": - return this.processMultiControlClick(item, !!options.ctrlDown); - case "multi-continuous": - return this.processMultiContinuousClick(item, !!options.shiftDown); - } - }; - Selection.prototype.setValues = function (values) { - this.allValues = values; - }; - Selection.prototype.setOptions = function (options) { - this.options.mode = options.mode || this.options.mode; - this.options.unselectable = typeof options.unselectable === "boolean" ? options.unselectable : this.options.unselectable; - }; - Selection.prototype.processSingleClick = function (item) { - if (this.selectionHolder.isSelected(item)) { - if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.selectOnly(item); - } - }; - Selection.prototype.processMultiClick = function (item) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.unselect(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - this.selectionHolder.select(item); - } - }; - Selection.prototype.processMultiControlClick = function (item, isCtrlDown) { - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - if (isCtrlDown) { - this.selectionHolder.unselect(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isCtrlDown) { - this.selectionHolder.select(item); - } - else { - this.selectionHolder.selectOnly(item); - } - } - }; - Selection.prototype.processMultiContinuousClick = function (item, isShiftDown) { - var _a; - var _this = this; - if (this.selectionHolder.isSelected(item)) { - if (this.selectionHolder.length > 1) { - this.selectionHolder.selectOnly(item); - } - else if (this.options.unselectable) { - this.selectionHolder.unselectAll(); - } - } - else { - if (isShiftDown) { - if (this.selectionHolder.length === 0) { - this.selectionHolder.select(item); - } - else { - var selectedIndices = this.selectionHolder.selected.map(function (actualItem) { return _this.allValues.indexOf(actualItem); }); - var minIndex = Math.min.apply(Math, __spreadArrays([this.allValues.indexOf(item)], selectedIndices)); - var maxIndex = Math.max.apply(Math, __spreadArrays([this.allValues.indexOf(item)], selectedIndices)); - (_a = this.selectionHolder).selectOnly.apply(_a, this.allValues.slice(minIndex, maxIndex + 1)); - } - } - else { - this.selectionHolder.selectOnly(item); - } - } - }; - return Selection; -}()); -exports.Selection = Selection; -//# sourceMappingURL=selection.js.map \ No newline at end of file diff --git a/dist/models/selection/selection.js.map b/dist/models/selection/selection.js.map deleted file mode 100644 index e7a2b287..00000000 --- a/dist/models/selection/selection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../src/models/selection/selection.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uDAAqD;AASrD;IAYI,mBACY,SAA4B,EACnB,OAGhB;QALL,iBAOC;QANW,0BAAA,EAAA,cAA4B;QACnB,wBAAA,EAAA;YACb,IAAI,EAAU,QAAQ;YACtB,YAAY,EAAE,KAAK;SACtB;QAJO,cAAS,GAAT,SAAS,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BAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAK,eAAe,EAAC,CAAC;oBAC5E,CAAA,KAAA,IAAI,CAAC,eAAe,CAAA,CAAC,UAAU,WAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,EAAE;iBACpF;aACJ;iBAAM;gBACH,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;aACzC;SACJ;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AA5GD,IA4GC;AA5GY,8BAAS"} \ No newline at end of file diff --git a/dist/models/sorting/bucket-sort.d.ts b/dist/models/sorting/bucket-sort.d.ts deleted file mode 100644 index 7a239598..00000000 --- a/dist/models/sorting/bucket-sort.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GBucketSort.java - */ -export declare class BucketSort { - sort(a: number[], maxValue: number): void; -} -//# sourceMappingURL=bucket-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/bucket-sort.d.ts.map b/dist/models/sorting/bucket-sort.d.ts.map deleted file mode 100644 index d3100503..00000000 --- a/dist/models/sorting/bucket-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bucket-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/bucket-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,UAAU;IACZ,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAkBnD"} \ No newline at end of file diff --git a/dist/models/sorting/bucket-sort.js b/dist/models/sorting/bucket-sort.js deleted file mode 100644 index 89311522..00000000 --- a/dist/models/sorting/bucket-sort.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BucketSort = void 0; -var BucketSort = (function () { - function BucketSort() { - } - BucketSort.prototype.sort = function (a, maxValue) { - var bucket = new Array(maxValue + 1); - for (var i = 0; i < bucket.length; i++) { - bucket[i] = 0; - } - for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var item = a_1[_i]; - bucket[item]++; - } - var outPos = 0; - for (var i = 0; i < bucket.length; i++) { - for (var j = 0; j < bucket[i]; j++) { - a[outPos++] = i; - } - } - }; - return BucketSort; -}()); -exports.BucketSort = BucketSort; -//# sourceMappingURL=bucket-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/bucket-sort.js.map b/dist/models/sorting/bucket-sort.js.map deleted file mode 100644 index 95eb6768..00000000 --- a/dist/models/sorting/bucket-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bucket-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/bucket-sort.ts"],"names":[],"mappings":";;;AAGA;IAAA;IAmBA,CAAC;IAlBU,yBAAI,GAAX,UAAY,CAAW,EAAE,QAAgB;QACrC,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;QAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACjB;QAED,KAAmB,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC,EAAE;YAAjB,IAAM,IAAI,UAAA;YACX,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;SAClB;QAED,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;aACnB;SACJ;IACL,CAAC;IACL,iBAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBY,gCAAU"} \ No newline at end of file diff --git a/dist/models/sorting/counting-sort.d.ts b/dist/models/sorting/counting-sort.d.ts deleted file mode 100644 index e647835d..00000000 --- a/dist/models/sorting/counting-sort.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GCountingSort.java - */ -export declare class CountingSort { - sort(a: number[], low: number, high: number): void; -} -//# sourceMappingURL=counting-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/counting-sort.d.ts.map b/dist/models/sorting/counting-sort.d.ts.map deleted file mode 100644 index 020ce921..00000000 --- a/dist/models/sorting/counting-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counting-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/counting-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,YAAY;IACd,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;CAe5D"} \ No newline at end of file diff --git a/dist/models/sorting/counting-sort.js b/dist/models/sorting/counting-sort.js deleted file mode 100644 index e2edac44..00000000 --- a/dist/models/sorting/counting-sort.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CountingSort = void 0; -var CountingSort = (function () { - function CountingSort() { - } - CountingSort.prototype.sort = function (a, low, high) { - var counts = new Array(high - low + 1); - for (var _i = 0, a_1 = a; _i < a_1.length; _i++) { - var x = a_1[_i]; - counts[x - low]++; - } - var current = 0; - for (var i = 0; i < counts.length; i++) { - a.fill(current, current + counts[i], i + low); - current += counts[i]; - } - }; - return CountingSort; -}()); -exports.CountingSort = CountingSort; -//# sourceMappingURL=counting-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/counting-sort.js.map b/dist/models/sorting/counting-sort.js.map deleted file mode 100644 index 3eb009c6..00000000 --- a/dist/models/sorting/counting-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"counting-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/counting-sort.ts"],"names":[],"mappings":";;;AAGA;IAAA;IAgBA,CAAC;IAfU,2BAAI,GAAX,UAAY,CAAW,EAAE,GAAW,EAAE,IAAY;QAE9C,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;QACjD,KAAgB,UAAC,EAAD,OAAC,EAAD,eAAC,EAAD,IAAC,EAAE;YAAd,IAAM,CAAC,UAAA;YAER,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC;SACrB;QACD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAEpC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;YAE9C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;SACxB;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,oCAAY"} \ No newline at end of file diff --git a/dist/models/sorting/heap-sort.d.ts b/dist/models/sorting/heap-sort.d.ts deleted file mode 100644 index 94632879..00000000 --- a/dist/models/sorting/heap-sort.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GHeapSort.java - */ -export declare class HeapSort { - private readonly comparator; - private n; - private left; - private right; - private largest; - private tmp; - constructor(comparator: (a: T, b: T) => number); - sort(array: T[]): void; - private buildHeap; - private maxHeap; - private exchange; -} -//# sourceMappingURL=heap-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/heap-sort.d.ts.map b/dist/models/sorting/heap-sort.d.ts.map deleted file mode 100644 index dd45300d..00000000 --- a/dist/models/sorting/heap-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"heap-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/heap-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,QAAQ,CAAC,CAAC;IAOA,OAAO,CAAC,QAAQ,CAAC,UAAU;IAN9C,OAAO,CAAC,CAAC,CAAiB;IAC1B,OAAO,CAAC,IAAI,CAAc;IAC1B,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,OAAO,CAAW;IAC1B,OAAO,CAAC,GAAG,CAAkB;gBAEO,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IAG/D,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAU7B,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,QAAQ;CAKnB"} \ No newline at end of file diff --git a/dist/models/sorting/heap-sort.js b/dist/models/sorting/heap-sort.js deleted file mode 100644 index 317bf437..00000000 --- a/dist/models/sorting/heap-sort.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HeapSort = void 0; -var HeapSort = (function () { - function HeapSort(comparator) { - this.comparator = comparator; - this.n = 0; - this.left = 0; - this.right = 0; - this.largest = 0; - this.tmp = null; - } - HeapSort.prototype.sort = function (array) { - this.buildHeap(array); - for (var i = this.n; i > 0; i--) { - this.exchange(array, 0, i); - this.n--; - this.maxHeap(array, 0); - } - }; - HeapSort.prototype.buildHeap = function (a) { - this.n = a.length - 1; - for (var i = this.n / 2; i >= 0; i--) { - this.maxHeap(a, i); - } - }; - HeapSort.prototype.maxHeap = function (a, i) { - this.left = 2 * i; - this.right = 2 * i + 1; - if (this.left <= this.n && this.comparator(a[this.left], a[i]) > 0) { - this.largest = this.left; - } - else { - this.largest = i; - } - if (this.right <= this.n && this.comparator(a[this.right], a[this.largest]) > 0) { - this.largest = this.right; - } - if (this.largest !== i) { - this.exchange(a, i, this.largest); - this.maxHeap(a, this.largest); - } - }; - HeapSort.prototype.exchange = function (a, i, j) { - this.tmp = a[i]; - a[i] = a[j]; - a[j] = this.tmp; - }; - return HeapSort; -}()); -exports.HeapSort = HeapSort; -//# sourceMappingURL=heap-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/heap-sort.js.map b/dist/models/sorting/heap-sort.js.map deleted file mode 100644 index add5909b..00000000 --- a/dist/models/sorting/heap-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"heap-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/heap-sort.ts"],"names":[],"mappings":";;;AAGA;IAOI,kBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAN9D,MAAC,GAAe,CAAC,CAAC;QAClB,SAAI,GAAY,CAAC,CAAC;QAClB,UAAK,GAAW,CAAC,CAAC;QAClB,YAAO,GAAS,CAAC,CAAC;QAClB,QAAG,GAAa,IAAI,CAAC;IAG7B,CAAC;IAEM,uBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEtB,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YAC7B,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,CAAC,EAAE,CAAC;YACT,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;SAC1B;IACL,CAAC;IAEO,4BAAS,GAAjB,UAAkB,CAAM;QACpB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,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AC,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC,CAAC,GAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC,CAAC,GAAO,IAAI,CAAC,GAAG,CAAC;IACxB,CAAC;IACL,eAAC;AAAD,CAAC,AApDD,IAoDC;AApDY,4BAAQ"} \ No newline at end of file diff --git a/dist/models/sorting/index.d.ts b/dist/models/sorting/index.d.ts deleted file mode 100644 index df1cf367..00000000 --- a/dist/models/sorting/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./bucket-sort"; -export * from "./counting-sort"; -export * from "./heap-sort"; -export * from "./insertion-sort"; -export * from "./merge-sort"; -export * from "./quick-sort"; -export * from "./radix-sort"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/index.d.ts.map b/dist/models/sorting/index.d.ts.map deleted file mode 100644 index a2a82003..00000000 --- a/dist/models/sorting/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/models/sorting/index.js b/dist/models/sorting/index.js deleted file mode 100644 index 0d2ce29f..00000000 --- a/dist/models/sorting/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./bucket-sort"), exports); -__exportStar(require("./counting-sort"), exports); -__exportStar(require("./heap-sort"), exports); -__exportStar(require("./insertion-sort"), exports); -__exportStar(require("./merge-sort"), exports); -__exportStar(require("./quick-sort"), exports); -__exportStar(require("./radix-sort"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/models/sorting/index.js.map b/dist/models/sorting/index.js.map deleted file mode 100644 index 1e71b1b0..00000000 --- a/dist/models/sorting/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/sorting/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B"} \ No newline at end of file diff --git a/dist/models/sorting/insertion-sort.d.ts b/dist/models/sorting/insertion-sort.d.ts deleted file mode 100644 index 81b52cf1..00000000 --- a/dist/models/sorting/insertion-sort.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * https://www.dropbox.com/sh/be1lrxk0h9dhdx7/AAD8G5xdEBdEeTJOi4LnGXePa?dl=0&preview=InsertionSort.java - * Very fast for almost sorted data - */ -export declare class InsertionSort { - private readonly comparator; - constructor(comparator: (a: T, b: T) => number); - sort(list: T[]): void; - private sortUpLowToHigh; -} -//# sourceMappingURL=insertion-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/insertion-sort.d.ts.map b/dist/models/sorting/insertion-sort.d.ts.map deleted file mode 100644 index 222e3bc2..00000000 --- a/dist/models/sorting/insertion-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"insertion-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/insertion-sort.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,aAAa,CAAC,CAAC;IACL,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IAG/D,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI;IAS5B,OAAO,CAAC,eAAe;CAS1B"} \ No newline at end of file diff --git a/dist/models/sorting/insertion-sort.js b/dist/models/sorting/insertion-sort.js deleted file mode 100644 index dec8871a..00000000 --- a/dist/models/sorting/insertion-sort.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InsertionSort = void 0; -var InsertionSort = (function () { - function InsertionSort(comparator) { - this.comparator = comparator; - } - InsertionSort.prototype.sort = function (list) { - for (var i = 1; i < list.length; i++) { - var item = list[i]; - if (this.comparator(item, list[i - 1]) < 0) { - this.sortUpLowToHigh(list, i); - } - } - }; - InsertionSort.prototype.sortUpLowToHigh = function (list, i) { - var item = list[i]; - var attemptPos = i - 1; - while (attemptPos !== 0 && this.comparator(list[attemptPos - 1], item) > 0) { - attemptPos--; - } - list.splice(i, 1); - list.splice(attemptPos, 0, item); - }; - return InsertionSort; -}()); -exports.InsertionSort = InsertionSort; -//# sourceMappingURL=insertion-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/insertion-sort.js.map b/dist/models/sorting/insertion-sort.js.map deleted file mode 100644 index 003ad592..00000000 --- a/dist/models/sorting/insertion-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"insertion-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/insertion-sort.ts"],"names":[],"mappings":";;;AAIA;IACI,uBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;IACtE,CAAC;IAEM,4BAAI,GAAX,UAAY,IAAS;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,IAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACxC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACjC;SACJ;IACL,CAAC;IAEO,uCAAe,GAAvB,UAAwB,IAAS,EAAE,CAAS;QACxC,IAAM,IAAI,GAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,OAAO,UAAU,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACxE,UAAU,EAAE,CAAC;SAChB;QACD,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IACL,oBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,sCAAa"} \ No newline at end of file diff --git a/dist/models/sorting/merge-sort.d.ts b/dist/models/sorting/merge-sort.d.ts deleted file mode 100644 index 20fd8d0f..00000000 --- a/dist/models/sorting/merge-sort.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GMergeSort.java - */ -export declare class MergeSort { - private readonly comparator; - private array; - private tempMergeArray; - constructor(comparator: (a: T, b: T) => number); - sort(array: T[]): void; - private doMergeSort; - private mergeParts; -} -//# sourceMappingURL=merge-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/merge-sort.d.ts.map b/dist/models/sorting/merge-sort.d.ts.map deleted file mode 100644 index ad062193..00000000 --- a/dist/models/sorting/merge-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/merge-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAS,CAAC,CAAC;IAID,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH9C,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,cAAc,CAAW;gBAEG,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IAG/D,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAM7B,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,UAAU;CAqBrB"} \ No newline at end of file diff --git a/dist/models/sorting/merge-sort.js b/dist/models/sorting/merge-sort.js deleted file mode 100644 index 173fcb59..00000000 --- a/dist/models/sorting/merge-sort.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MergeSort = void 0; -var MergeSort = (function () { - function MergeSort(comparator) { - this.comparator = comparator; - this.array = []; - this.tempMergeArray = []; - } - MergeSort.prototype.sort = function (array) { - this.array = array; - this.tempMergeArray = new Array(array.length); - this.doMergeSort(0, array.length - 1); - }; - MergeSort.prototype.doMergeSort = function (lowerIndex, higherIndex) { - if (lowerIndex >= higherIndex) { - return; - } - var middle = Math.floor(lowerIndex + (higherIndex - lowerIndex) / 2); - this.doMergeSort(lowerIndex, middle); - this.doMergeSort(middle + 1, higherIndex); - this.mergeParts(lowerIndex, middle, higherIndex); - }; - MergeSort.prototype.mergeParts = function (lowerIndex, middle, higherIndex) { - for (var index = lowerIndex; index <= higherIndex; index++) { - this.tempMergeArray[index] = this.array[index]; - } - var i = lowerIndex; - var j = middle + 1; - var k = lowerIndex; - while (i <= middle && j <= higherIndex) { - if (this.comparator(this.tempMergeArray[i], this.tempMergeArray[j]) <= 0) { - this.array[k] = this.tempMergeArray[i++]; - } - else { - this.array[k] = this.tempMergeArray[j++]; - } - k++; - } - while (i <= middle) { - this.array[k++] = this.tempMergeArray[i++]; - } - }; - return MergeSort; -}()); -exports.MergeSort = MergeSort; -//# sourceMappingURL=merge-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/merge-sort.js.map b/dist/models/sorting/merge-sort.js.map deleted file mode 100644 index d72e3f96..00000000 --- a/dist/models/sorting/merge-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/merge-sort.ts"],"names":[],"mappings":";;;AAGA;IAII,mBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAiB,EAAE,CAAC;QACzB,mBAAc,GAAQ,EAAE,CAAC;IAGjC,CAAC;IAEM,wBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,CAAC,KAAK,GAAY,KAAK,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,CAAI,KAAK,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC1C,CAAC;IAEO,+BAAW,GAAnB,UAAoB,UAAkB,EAAE,WAAmB;QACvD,IAAI,UAAU,IAAI,WAAW,EAAE;YAC3B,OAAO;SACV;QACD,IAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;QACvE,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;QAC1C,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IACrD,CAAC;IAEO,8BAAU,GAAlB,UAAmB,UAAkB,EAAE,MAAc,EAAE,WAAmB;QACtE,KAAK,IAAI,KAAK,GAAG,UAAU,EAAE,KAAK,IAAI,WAAW,EAAE,KAAK,EAAE,EAAE;YACxD,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAClD;QAED,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,OAAO,CAAC,IAAI,MAAM,IAAI,CAAC,IAAI,WAAW,EAAE;YACpC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE;gBACtE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;iBAAM;gBACH,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;aAC5C;YACD,CAAC,EAAE,CAAC;SACP;QACD,OAAO,CAAC,IAAI,MAAM,EAAE;YAChB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;SAC9C;IAEL,CAAC;IACL,gBAAC;AAAD,CAAC,AA5CD,IA4CC;AA5CY,8BAAS"} \ No newline at end of file diff --git a/dist/models/sorting/quick-sort.d.ts b/dist/models/sorting/quick-sort.d.ts deleted file mode 100644 index f374800b..00000000 --- a/dist/models/sorting/quick-sort.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GQuickSort.java - */ -export declare class QuickSort { - private readonly comparator; - private array; - private tmpValue; - constructor(comparator: (a: T, b: T) => number); - sort(array: T[]): void; - private quickSort; - private exchangeNumbers; -} -//# sourceMappingURL=quick-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/quick-sort.d.ts.map b/dist/models/sorting/quick-sort.d.ts.map deleted file mode 100644 index f454223f..00000000 --- a/dist/models/sorting/quick-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quick-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/quick-sort.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAS,CAAC,CAAC;IAID,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH9C,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,QAAQ,CAAkB;gBAEE,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IAG/D,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI;IAU7B,OAAO,CAAC,SAAS;IA0BjB,OAAO,CAAC,eAAe;CAK1B"} \ No newline at end of file diff --git a/dist/models/sorting/quick-sort.js b/dist/models/sorting/quick-sort.js deleted file mode 100644 index 85c94b48..00000000 --- a/dist/models/sorting/quick-sort.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QuickSort = void 0; -var QuickSort = (function () { - function QuickSort(comparator) { - this.comparator = comparator; - this.array = []; - this.tmpValue = null; - } - QuickSort.prototype.sort = function (array) { - if (!(array === null || array === void 0 ? void 0 : array.length)) { - return; - } - this.array = array; - this.quickSort(0, array.length - 1); - }; - QuickSort.prototype.quickSort = function (lowerIndex, higherIndex) { - var i = lowerIndex; - var j = higherIndex; - var pivot = this.array[~~(lowerIndex + (higherIndex - lowerIndex) / 2)]; - while (i <= j) { - while (this.comparator(this.array[i], pivot) < 0) { - i++; - } - while (this.comparator(this.array[j], pivot) > 0) { - j--; - } - if (i <= j) { - this.exchangeNumbers(i++, j--); - } - } - if (lowerIndex < j) { - this.quickSort(lowerIndex, j); - } - if (i < higherIndex) { - this.quickSort(i, higherIndex); - } - }; - QuickSort.prototype.exchangeNumbers = function (i, j) { - this.tmpValue = this.array[i]; - this.array[i] = this.array[j]; - this.array[j] = this.tmpValue; - }; - return QuickSort; -}()); -exports.QuickSort = QuickSort; -//# sourceMappingURL=quick-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/quick-sort.js.map b/dist/models/sorting/quick-sort.js.map deleted file mode 100644 index 2c2836a1..00000000 --- a/dist/models/sorting/quick-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quick-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/quick-sort.ts"],"names":[],"mappings":";;;AAGA;IAII,mBAAoC,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;QAH9D,UAAK,GAAgB,EAAE,CAAC;QACxB,aAAQ,GAAa,IAAI,CAAC;IAGlC,CAAC;IAEM,wBAAI,GAAX,UAAY,KAAU;QAClB,IAAI,EAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA,EAAE;YAChB,OAAO;SACV;QAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACxC,CAAC;IAEO,6BAAS,GAAjB,UAAkB,UAAkB,EAAE,WAAmB;QACrD,IAAI,CAAC,GAAG,UAAU,CAAC;QACnB,IAAI,CAAC,GAAG,WAAW,CAAC;QAEpB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1E,OAAO,CAAC,IAAI,CAAC,EAAE;YACX,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YACD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;gBAC9C,CAAC,EAAE,CAAC;aACP;YAED,IAAI,CAAC,IAAI,CAAC,EAAE;gBACR,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;aAClC;SACJ;QAED,IAAI,UAAU,GAAG,CAAC,EAAE;YAChB,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;SACjC;QACD,IAAI,CAAC,GAAG,WAAW,EAAE;YACjB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;SAClC;IACL,CAAC;IAEO,mCAAe,GAAvB,UAAwB,CAAS,EAAE,CAAS;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;IAClC,CAAC;IACL,gBAAC;AAAD,CAAC,AAhDD,IAgDC;AAhDY,8BAAS"} \ No newline at end of file diff --git a/dist/models/sorting/radix-sort.d.ts b/dist/models/sorting/radix-sort.d.ts deleted file mode 100644 index 282d49c8..00000000 --- a/dist/models/sorting/radix-sort.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * https://github.com/G43riko/JavaUtils/blob/master/GLib/src/glib/sorts/GRadixSort.java - * - * Only useful for fix length integer keys. - */ -export declare class RadixSort { - private readonly mapper; - constructor(mapper: (item: T) => number); - sort(a: T[]): void; - sort2(a: number[]): void; -} -//# sourceMappingURL=radix-sort.d.ts.map \ No newline at end of file diff --git a/dist/models/sorting/radix-sort.d.ts.map b/dist/models/sorting/radix-sort.d.ts.map deleted file mode 100644 index 45905ca1..00000000 --- a/dist/models/sorting/radix-sort.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"radix-sort.d.ts","sourceRoot":"","sources":["../../../src/models/sorting/radix-sort.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,SAAS,CAAC,CAAC;IACD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM;IAExD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI;IA4BlB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI;CA2BlC"} \ No newline at end of file diff --git a/dist/models/sorting/radix-sort.js b/dist/models/sorting/radix-sort.js deleted file mode 100644 index a7f9e16d..00000000 --- a/dist/models/sorting/radix-sort.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RadixSort = void 0; -var RadixSort = (function () { - function RadixSort(mapper) { - this.mapper = mapper; - } - RadixSort.prototype.sort = function (a) { - var m = a[0]; - var exp = 1; - var b = new Array(a.length); - for (var i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - var mValue = this.mapper(m); - while (mValue / exp > 0) { - var bucket = new Array(10); - for (var i = 0; i < a.length; i++) { - bucket[(this.mapper(a[i]) / exp) % 10]++; - } - for (var i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (var i = a.length - 1; i >= 0; i--) { - b[--bucket[(this.mapper(a[i]) / exp) % 10]] = a[i]; - } - for (var i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - }; - RadixSort.prototype.sort2 = function (a) { - var m = a[0]; - var exp = 1; - var b = new Array(a.length); - for (var i = 1; i < a.length; i++) { - if (a[i] > m) { - m = a[i]; - } - } - while (m / exp > 0) { - var bucket = new Array(10); - for (var i = 0; i < a.length; i++) { - bucket[(a[i] / exp) % 10]++; - } - for (var i = 1; i < 10; i++) { - bucket[i] += bucket[i - 1]; - } - for (var i = a.length - 1; i >= 0; i--) { - b[--bucket[(a[i] / exp) % 10]] = a[i]; - } - for (var i = 0; i < a.length; i++) { - a[i] = b[i]; - } - exp *= 10; - } - }; - return RadixSort; -}()); -exports.RadixSort = RadixSort; -//# sourceMappingURL=radix-sort.js.map \ No newline at end of file diff --git a/dist/models/sorting/radix-sort.js.map b/dist/models/sorting/radix-sort.js.map deleted file mode 100644 index 80b01656..00000000 --- a/dist/models/sorting/radix-sort.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"radix-sort.js","sourceRoot":"","sources":["../../../src/models/sorting/radix-sort.ts"],"names":[],"mappings":";;;AAKA;IACI,mBAAoC,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAC/D,CAAC;IACM,wBAAI,GAAX,UAAY,CAAM;QACd,IAAI,CAAC,GAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAM,CAAC,GAAG,IAAI,KAAK,CAAI,CAAC,CAAC,MAAM,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;gBACV,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACZ;SACJ;QACD,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC9B,OAAO,MAAM,GAAG,GAAG,GAAG,CAAC,EAAE;YACrB,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;YAErC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;g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,GAAG,GAAG,CAAC,EAAE;YAChB,IAAM,MAAM,GAAG,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;YAErC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC/B,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;aAC/B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;gBACzB,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;aAC9B;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;gBACpC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACzC;YACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC/B,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACf;YACD,GAAG,IAAI,EAAE,CAAC;SACb;IACL,CAAC;IACL,gBAAC;AAAD,CAAC,AA1DD,IA0DC;AA1DY,8BAAS"} \ No newline at end of file diff --git a/dist/models/transform-2d.d.ts b/dist/models/transform-2d.d.ts deleted file mode 100644 index 43fc18fd..00000000 --- a/dist/models/transform-2d.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -export interface Transform2D { - readonly offset: Readonly; - readonly scale: number; - readonly rotation: number; -} -export declare function getDefaultTransform2D(): Transform2D; -//# sourceMappingURL=transform-2d.d.ts.map \ No newline at end of file diff --git a/dist/models/transform-2d.d.ts.map b/dist/models/transform-2d.d.ts.map deleted file mode 100644 index 68b4d597..00000000 --- a/dist/models/transform-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-2d.d.ts","sourceRoot":"","sources":["../../src/models/transform-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,IAAI,WAAW,CASnD"} \ No newline at end of file diff --git a/dist/models/transform-2d.js b/dist/models/transform-2d.js deleted file mode 100644 index 4e67de8e..00000000 --- a/dist/models/transform-2d.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDefaultTransform2D = void 0; -function getDefaultTransform2D() { - return { - offset: { - x: 0, - y: 0, - }, - scale: 1, - rotation: 0, - }; -} -exports.getDefaultTransform2D = getDefaultTransform2D; -//# sourceMappingURL=transform-2d.js.map \ No newline at end of file diff --git a/dist/models/transform-2d.js.map b/dist/models/transform-2d.js.map deleted file mode 100644 index 36859f29..00000000 --- a/dist/models/transform-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-2d.js","sourceRoot":"","sources":["../../src/models/transform-2d.ts"],"names":[],"mappings":";;;AAQA,SAAgB,qBAAqB;IACjC,OAAO;QACH,MAAM,EAAI;YACN,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACP;QACD,KAAK,EAAK,CAAC;QACX,QAAQ,EAAE,CAAC;KACd,CAAC;AACN,CAAC;AATD,sDASC"} \ No newline at end of file diff --git a/dist/node.d.ts b/dist/node.d.ts deleted file mode 100644 index 852b52ad..00000000 --- a/dist/node.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/**************************** NODE ****************************/ -export * from "./utils/array-utils"; -export * from "./utils/FileUtils"; -export * from "./utils/math-utils"; -export * from "./utils/misc-utils"; -export * from "./utils/object-utils"; -export * from "./utils/string-utils"; -export * from "./utils/time-utils"; -export * from "./misc/slovak-stemmer"; -/**************************** WEB ****************************/ -export * from "./dom/canvas-manager"; -export * from "./dom/dom-get"; -//# sourceMappingURL=node.d.ts.map \ No newline at end of file diff --git a/dist/node.d.ts.map b/dist/node.d.ts.map deleted file mode 100644 index 6218bdcb..00000000 --- a/dist/node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAIhE,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,uBAAuB,CAAC;AAEtC,+DAA+D;AAI/D,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/node.js b/dist/node.js deleted file mode 100644 index 1c487378..00000000 --- a/dist/node.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./utils/array-utils"), exports); -__exportStar(require("./utils/FileUtils"), exports); -__exportStar(require("./utils/math-utils"), exports); -__exportStar(require("./utils/misc-utils"), exports); -__exportStar(require("./utils/object-utils"), exports); -__exportStar(require("./utils/string-utils"), exports); -__exportStar(require("./utils/time-utils"), exports); -__exportStar(require("./misc/slovak-stemmer"), exports); -__exportStar(require("./dom/canvas-manager"), exports); -__exportStar(require("./dom/dom-get"), exports); -//# sourceMappingURL=node.js.map \ No newline at end of file diff --git a/dist/node.js.map b/dist/node.js.map deleted file mode 100644 index ba5ade8a..00000000 --- a/dist/node.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AAEnC,wDAAsC;AAMtC,uDAAqC;AACrC,gDAA8B"} \ No newline at end of file diff --git a/dist/physics/bounders-2d.d.ts b/dist/physics/bounders-2d.d.ts deleted file mode 100644 index 447d9646..00000000 --- a/dist/physics/bounders-2d.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { MinMax2D, PosSize2d, XYWH } from "gtools/types"; -import { Sphere } from "./objects/2d/sphere"; -export declare function fixXYWH(minMax: MinMax2D, xywh: XYWH): SimpleVector2; -export declare function fixPosSize(minMax: MinMax2D, target: PosSize2d): SimpleVector2; -export declare function fixSphere(minMax: MinMax2D, sphere: Sphere): SimpleVector2; -//# sourceMappingURL=bounders-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/bounders-2d.d.ts.map b/dist/physics/bounders-2d.d.ts.map deleted file mode 100644 index 89dd1977..00000000 --- a/dist/physics/bounders-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bounders-2d.d.ts","sourceRoot":"","sources":["../../src/physics/bounders-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,wBAAgB,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,aAAa,CAgBnE;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,aAAa,CAe7E;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAiBzE"} \ No newline at end of file diff --git a/dist/physics/bounders-2d.js b/dist/physics/bounders-2d.js deleted file mode 100644 index da21ca5c..00000000 --- a/dist/physics/bounders-2d.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fixSphere = exports.fixPosSize = exports.fixXYWH = void 0; -function fixXYWH(minMax, xywh) { - var result = { x: xywh.x, y: xywh.y }; - if (xywh.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (xywh.x + xywh.w > minMax.max.x) { - result.x = minMax.max.x - xywh.w; - } - if (xywh.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (xywh.y + xywh.h > minMax.max.y) { - result.y = minMax.max.y - xywh.h; - } - return result; -} -exports.fixXYWH = fixXYWH; -function fixPosSize(minMax, target) { - var result = __assign({}, target.position); - if (target.position.x < minMax.min.x) { - result.x = minMax.min.x; - } - else if (target.position.x + target.size.x > minMax.max.x) { - result.x = minMax.max.x - target.size.x; - } - if (target.position.y < minMax.min.y) { - result.y = minMax.min.y; - } - else if (target.position.y + target.size.y > minMax.max.y) { - result.y = minMax.max.y - target.size.y; - } - return result; -} -exports.fixPosSize = fixPosSize; -function fixSphere(minMax, sphere) { - var result = __assign({}, sphere.center); - var halfRadius = sphere.radius / 2; - if (sphere.center.x - halfRadius < minMax.min.x) { - result.x = minMax.min.x + halfRadius; - } - else if (sphere.center.x + halfRadius > minMax.max.x) { - result.x = minMax.max.x - halfRadius; - } - if (sphere.center.y - halfRadius < minMax.min.y) { - result.y = minMax.min.y + halfRadius; - } - else if (sphere.center.y + halfRadius > minMax.max.y) { - result.y = minMax.max.y - halfRadius; - } - return result; -} -exports.fixSphere = fixSphere; -//# sourceMappingURL=bounders-2d.js.map \ No newline at end of file diff --git a/dist/physics/bounders-2d.js.map b/dist/physics/bounders-2d.js.map deleted file mode 100644 index 9f501540..00000000 --- a/dist/physics/bounders-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bounders-2d.js","sourceRoot":"","sources":["../../src/physics/bounders-2d.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,SAAgB,OAAO,CAAC,MAAgB,EAAE,IAAU;IAChD,IAAM,MAAM,GAAG,EAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAC,CAAC;IAEtC,IAAI,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvB,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACvC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;KACpC;IAED,IAAI,IAAI,CAAC,CAAC,GAAG,MAAM,CAA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O,MAAM,CAAC;AAClB,CAAC;AAfD,gCAeC;AAED,SAAgB,SAAS,CAAC,MAAgB,EAAE,MAAc;IACtD,IAAM,MAAM,gBAAW,MAAM,CAAC,MAAM,CAAC,CAAC;IACtC,IAAM,UAAU,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAErC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QAC7C,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;SAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACpD,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;IAED,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QAC7C,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;SAAM,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;QACpD,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;KACxC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAjBD,8BAiBC"} \ No newline at end of file diff --git a/dist/physics/bounding-boxes/AABB3.d.ts b/dist/physics/bounding-boxes/AABB3.d.ts deleted file mode 100644 index 2bf68a10..00000000 --- a/dist/physics/bounding-boxes/AABB3.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { MinMax2D } from "gtools/types"; -import { SimpleVector3 } from "../../math"; -import { RayCast, RaycastResult } from "../objects/2d/ray-2d"; -export declare class AABB3 { - protected readonly min: SimpleVector3; - protected readonly max: SimpleVector3; - constructor(min: SimpleVector3, max: SimpleVector3); - rayCast(result: RaycastResult, ray: RayCast, maxFraction?: number): boolean; - expandByScalar(distance: number): void; - expandByVector(vec: SimpleVector3): void; - expandByPoint(point: SimpleVector3): void; - expandBtAABB(other: AABB3): void; - moveByScalar(distance: number): void; - getCenter(): SimpleVector3; - getSize(): SimpleVector3; - getVolume(): number; - moveByVector(vec: SimpleVector3): void; - getMinMax(): MinMax2D; - static fromPosAndSize(pos: SimpleVector3, size: SimpleVector3): AABB3; - getPosition(): SimpleVector3; - static fromCenterAndSize(center: SimpleVector3, size: SimpleVector3): AABB3; - moveCenterTo(center: SimpleVector3): void; -} -//# sourceMappingURL=AABB3.d.ts.map \ No newline at end of file diff --git a/dist/physics/bounding-boxes/AABB3.d.ts.map b/dist/physics/bounding-boxes/AABB3.d.ts.map deleted file mode 100644 index ecbdb6b0..00000000 --- a/dist/physics/bounding-boxes/AABB3.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AABB3.d.ts","sourceRoot":"","sources":["../../../src/physics/bounding-boxes/AABB3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAW,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9D,qBAAa,KAAK;IACK,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa;IAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,aAAa;gBAAzD,GAAG,EAAE,aAAa,EAAqB,GAAG,EAAE,aAAa;IAGxF,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,SAAW,GAAG,OAAO;IA8D7E,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAStC,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IASxC,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAUzC,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAUhC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IASpC,SAAS,IAAI,aAAa;IAQ1B,OAAO,IAAI,aAAa;IAQxB,SAAS,IAAI,MAAM;IAMnB,YAAY,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IAStC,SAAS,IAAI,QAAQ;WAOd,cAAc,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,KAAK;IAerE,WAAW,IAAI,aAAa;WAQrB,iBAAiB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,GAAG,KAAK;IAqB3E,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAenD"} \ No newline at end of file diff --git a/dist/physics/bounding-boxes/AABB3.js b/dist/physics/bounding-boxes/AABB3.js deleted file mode 100644 index 071eb83c..00000000 --- a/dist/physics/bounding-boxes/AABB3.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AABB3 = void 0; -var math_1 = require("../../math"); -var AABB3 = (function () { - function AABB3(min, max) { - this.min = min; - this.max = max; - } - AABB3.prototype.rayCast = function (result, ray, maxFraction) { - if (maxFraction === void 0) { maxFraction = Infinity; } - var tmin = -Infinity; - var tmax = Infinity; - var p = ray.from; - var d = ray.direction; - var absD = math_1.Vector2.getAbs(d); - var normal = math_1.Vector2.ZERO; - for (var f = "x"; f !== null; f = (f === "x" ? "y" : null)) { - if (absD.x < Number.EPSILON) { - if (p[f] < this.min[f] || this.max[f] < p[f]) { - return false; - } - } - else { - var invD = 1 / d[f]; - var t1 = (this.min[f] - p[f]) * invD; - var t2 = (this.max[f] - p[f]) * invD; - var s = -1; - if (t1 > t2) { - var temp = t1; - t1 = t2; - t2 = temp; - s = 1; - } - if (t1 > tmin) { - normal.setData(0, 0); - normal[f] = s; - tmin = t1; - } - tmax = Math.min(tmax, t2); - if (tmin > tmax) { - return false; - } - } - } - if (tmin < 0 || maxFraction < tmin) { - return false; - } - result.fraction = tmin; - result.normal.set(normal); - return true; - }; - AABB3.prototype.expandByScalar = function (distance) { - this.min.x -= distance; - this.min.y -= distance; - this.min.z -= distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - }; - AABB3.prototype.expandByVector = function (vec) { - this.min.x -= vec.x; - this.min.y -= vec.y; - this.min.z -= vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - }; - AABB3.prototype.expandByPoint = function (point) { - this.min.x = Math.min(this.min.x, point.x); - this.min.y = Math.min(this.min.y, point.y); - this.min.z = Math.min(this.min.z, point.z); - this.max.x = Math.max(this.max.x, point.x); - this.max.y = Math.max(this.max.y, point.y); - this.max.z = Math.max(this.max.z, point.z); - }; - AABB3.prototype.expandBtAABB = function (other) { - this.min.x = Math.min(this.min.x, other.min.x); - this.min.y = Math.min(this.min.y, other.min.y); - this.min.z = Math.min(this.min.z, other.min.z); - this.max.x = Math.max(this.max.x, other.max.x); - this.max.y = Math.max(this.max.y, other.max.y); - this.max.z = Math.max(this.max.z, other.max.z); - }; - AABB3.prototype.moveByScalar = function (distance) { - this.min.x += distance; - this.min.y += distance; - this.min.z += distance; - this.max.x += distance; - this.max.y += distance; - this.max.z += distance; - }; - AABB3.prototype.getCenter = function () { - return { - x: (this.max.x + this.min.x) / 2, - y: (this.max.y + this.min.y) / 2, - z: (this.max.z + this.min.z) / 2, - }; - }; - AABB3.prototype.getSize = function () { - return { - x: this.max.x - this.min.x, - y: this.max.y - this.min.y, - z: this.max.z - this.min.z, - }; - }; - AABB3.prototype.getVolume = function () { - var size = this.getSize(); - return size.x * size.y * size.z; - }; - AABB3.prototype.moveByVector = function (vec) { - this.min.x += vec.x; - this.min.y += vec.y; - this.min.z += vec.z; - this.max.x += vec.x; - this.max.y += vec.y; - this.max.z += vec.z; - }; - AABB3.prototype.getMinMax = function () { - return { - min: this.min, - max: this.max, - }; - }; - AABB3.fromPosAndSize = function (pos, size) { - return new AABB3({ - x: pos.x, - y: pos.y, - z: pos.z, - }, { - x: pos.x + size.x, - y: pos.y + size.y, - z: pos.z + size.z, - }); - }; - AABB3.prototype.getPosition = function () { - return { - x: this.min.x, - y: this.min.y, - z: this.min.z, - }; - }; - AABB3.fromCenterAndSize = function (center, size) { - var halfSize = { - x: size.x / 2, - y: size.y / 2, - z: size.z / 2, - }; - return new AABB3({ - x: center.x + halfSize.x, - y: center.y + halfSize.y, - z: center.z + halfSize.z, - }, { - x: center.x - halfSize.x, - y: center.y - halfSize.y, - z: center.z - halfSize.z, - }); - }; - AABB3.prototype.moveCenterTo = function (center) { - var offset = { - x: center.x - (this.max.x + this.min.x) / 2, - y: center.y - (this.max.y + this.min.y) / 2, - z: center.z - (this.max.z + this.min.z) / 2, - }; - this.min.x += offset.x; - this.min.y += offset.y; - this.min.z += offset.z; - this.max.x += offset.x; - this.max.y += offset.y; - this.max.z += offset.z; - }; - return AABB3; -}()); -exports.AABB3 = AABB3; -//# sourceMappingURL=AABB3.js.map \ No newline at end of file diff --git a/dist/physics/bounding-boxes/AABB3.js.map b/dist/physics/bounding-boxes/AABB3.js.map deleted file mode 100644 index 1f7834ef..00000000 --- a/dist/physics/bounding-boxes/AABB3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AABB3.js","sourceRoot":"","sources":["../../../src/physics/bounding-boxes/AABB3.ts"],"names":[],"mappings":";;;AACA,mCAAoD;AAGpD;IACI,eAAsC,GAAkB,EAAqB,GAAkB;QAAzD,QAAG,GAAH,GAAG,CAAe;QAAqB,QAAG,GAAH,GAAG,CAAe;IAC/F,CAAC;IAEM,uBAAO,GAAd,UAAe,MAAqB,EAAE,GAAY,EAAE,WAAsB;QAAtB,4BAAA,EAAA,sBAAsB;QAGtE,IAAI,IAAI,GAAG,CAAC,QAAQ,CAAC;QACrB,IA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;SAC3B,CACJ,CAAC;IACN,CAAC;IAEM,4BAAY,GAAnB,UAAoB,MAAqB;QACrC,IAAM,MAAM,GAAG;YACX,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YAC3C,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YAC3C,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;SAC9C,CAAC;QAEF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC;IAC3B,CAAC;IAEL,YAAC;AAAD,CAAC,AAlND,IAkNC;AAlNY,sBAAK"} \ No newline at end of file diff --git a/dist/physics/closest-2d.d.ts b/dist/physics/closest-2d.d.ts deleted file mode 100644 index 045c83c4..00000000 --- a/dist/physics/closest-2d.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function pointLine2dClosest(sx1: number, sy1: number, sx2: number, sy2: number, px: number, py: number): { - x: number; - y: number; -}; -//# sourceMappingURL=closest-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/closest-2d.d.ts.map b/dist/physics/closest-2d.d.ts.map deleted file mode 100644 index e50f2365..00000000 --- a/dist/physics/closest-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-2d.d.ts","sourceRoot":"","sources":["../../src/physics/closest-2d.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAC9B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAwB1B"} \ No newline at end of file diff --git a/dist/physics/closest-2d.js b/dist/physics/closest-2d.js deleted file mode 100644 index f6bc60ae..00000000 --- a/dist/physics/closest-2d.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pointLine2dClosest = void 0; -function pointLine2dClosest(sx1, sy1, sx2, sy2, px, py) { - var xDelta = sx2 - sx1; - var yDelta = sy2 - sy1; - var u = ((px - sx1) * xDelta + (py - sy1) * yDelta) / (xDelta * xDelta + yDelta * yDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - }; -} -exports.pointLine2dClosest = pointLine2dClosest; -//# sourceMappingURL=closest-2d.js.map \ No newline at end of file diff --git a/dist/physics/closest-2d.js.map b/dist/physics/closest-2d.js.map deleted file mode 100644 index f4bb42cf..00000000 --- a/dist/physics/closest-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-2d.js","sourceRoot":"","sources":["../../src/physics/closest-2d.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAC9B,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU;IAEV,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,IAAM,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE5F,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC;AA/BD,gDA+BC"} \ No newline at end of file diff --git a/dist/physics/closest-3d.d.ts b/dist/physics/closest-3d.d.ts deleted file mode 100644 index 88aac644..00000000 --- a/dist/physics/closest-3d.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SimpleVector3 } from "gtools/math"; -export declare function getClosestPointOnLine(sx1: number, sy1: number, sz1: number, sx2: number, sy2: number, sz2: number, px: number, py: number, pz: number): SimpleVector3; -//# sourceMappingURL=closest-3d.d.ts.map \ No newline at end of file diff --git a/dist/physics/closest-3d.d.ts.map b/dist/physics/closest-3d.d.ts.map deleted file mode 100644 index e9ba143d..00000000 --- a/dist/physics/closest-3d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-3d.d.ts","sourceRoot":"","sources":["../../src/physics/closest-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,qBAAqB,CACjC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,aAAa,CA4Bf"} \ No newline at end of file diff --git a/dist/physics/closest-3d.js b/dist/physics/closest-3d.js deleted file mode 100644 index f65641d5..00000000 --- a/dist/physics/closest-3d.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getClosestPointOnLine = void 0; -function getClosestPointOnLine(sx1, sy1, sz1, sx2, sy2, sz2, px, py, pz) { - var xDelta = sx2 - sx1; - var yDelta = sy2 - sy1; - var zDelta = sz2 - sz1; - var u = ((px - sx1) * xDelta + (py - sy1) * yDelta + (pz - sz1) * zDelta); - u /= (xDelta * xDelta + yDelta * yDelta + zDelta * zDelta); - if (u < 0) { - return { - x: sx1, - y: sy1, - z: sz1, - }; - } - if (u > 1) { - return { - x: sx2, - y: sy2, - z: sz2, - }; - } - return { - x: sx1 + u * xDelta, - y: sy1 + u * yDelta, - z: sz1 + u * zDelta, - }; -} -exports.getClosestPointOnLine = getClosestPointOnLine; -//# sourceMappingURL=closest-3d.js.map \ No newline at end of file diff --git a/dist/physics/closest-3d.js.map b/dist/physics/closest-3d.js.map deleted file mode 100644 index c725a3a4..00000000 --- a/dist/physics/closest-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"closest-3d.js","sourceRoot":"","sources":["../../src/physics/closest-3d.ts"],"names":[],"mappings":";;;AAEA,SAAgB,qBAAqB,CACjC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,EAAU,EACV,EAAU,EACV,EAAU;IAEV,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,IAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;IAC1E,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAE3D,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IACD,IAAI,CAAC,GAAG,CAAC,EAAE;QACP,OAAO;YACH,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;YACN,CAAC,EAAE,GAAG;SACT,CAAC;KACL;IAED,OAAO;QACH,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;QACnB,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,MAAM;KACtB,CAAC;AACN,CAAC;AAtCD,sDAsCC"} \ No newline at end of file diff --git a/dist/physics/collisions-2d.d.ts b/dist/physics/collisions-2d.d.ts deleted file mode 100644 index 50e511fa..00000000 --- a/dist/physics/collisions-2d.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export declare function circleRect2dCollision(cPosX: number, cPosY: number, cRadius: number, rPosX: number, rPosY: number, rSizeX: number, rSizeY: number): boolean; -export declare function lineRectangle2dCollision(aStartX: number, aStartY: number, aEndX: number, aEndY: number, bPosX: number, bPosY: number, bSizeX: number, bSizeY: number): boolean; -export declare function lineLine2dCollision(aStartX: number, aStartY: number, aEndX: number, aEndY: number, bStartX: number, bStartY: number, bEndX: number, bEndY: number): boolean; -/** - * @returns true if the line from (a,b)->(c,d) intersection2dLineLine with (p,q)->(r,s) - */ -export declare function lineLine2dCollision2(a: number, b: number, c: number, d: number, p: number, q: number, r: number, s: number): boolean; -export declare function rectRect2dCollision(ax: number, ay: number, aw: number, ah: number, bx: number, by: number, bw: number, bh: number): boolean; -export declare function circleCircle2dCollision(aX: number, aY: number, aRadius: number, bX: number, bY: number, bRadius: number): boolean; -export declare function pointRect2dCollision(pointX: number, pointY: number, rectX: number, rectY: number, rectW: number, rectH: number): boolean; -export declare function pointRectMinMax2dCollision(pointX: number, pointY: number, minX: number, minY: number, maxX: number, maxY: number): boolean; -export declare function pointCircle2dCollision(pointX: number, pointY: number, circleX: number, circleY: number, circleRadius: number): boolean; -export declare function pointPolygon2dCollision2(x: number, y: number, vs: [number, number][]): boolean; -export declare function pointMultiPolygon2dCollision(pointX: number, pointY: number, polys: [number, number][][], ignoreBoundary?: boolean): boolean; -/** - * pointPolygon2dCollision - * - * @private - * @param {Array} pt [x,y] - * @param {Array>} ring [[x,y], [x,y],..] - * @param {boolean} ignoreBoundary ignoreBoundary - * @returns {boolean} inRing - */ -export declare function pointPolygon2dCollision(pt: number[], ring: number[][], ignoreBoundary: boolean): boolean; -//# sourceMappingURL=collisions-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/collisions-2d.d.ts.map b/dist/physics/collisions-2d.d.ts.map deleted file mode 100644 index 188c49c6..00000000 --- a/dist/physics/collisions-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-2d.d.ts","sourceRoot":"","sources":["../../src/physics/collisions-2d.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACf,OAAO,CAuBT;AAED,wBAAgB,wBAAwB,CACpC,OAAO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BAAgB,0BAA0B,CACtC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACb,OAAO,CAKT;AAED,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACrB,OAAO,CAET;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,OAAO,CAiB9F;AAED,wBAAgB,4BAA4B,CACxC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,EAC3B,cAAc,UAAQ,GACvB,OAAO,CA0BT;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAyBxG"} \ No newline at end of file diff --git a/dist/physics/collisions-2d.js b/dist/physics/collisions-2d.js deleted file mode 100644 index 7e76b4f6..00000000 --- a/dist/physics/collisions-2d.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pointPolygon2dCollision = exports.pointMultiPolygon2dCollision = exports.pointPolygon2dCollision2 = exports.pointCircle2dCollision = exports.pointRectMinMax2dCollision = exports.pointRect2dCollision = exports.circleCircle2dCollision = exports.rectRect2dCollision = exports.lineLine2dCollision2 = exports.lineLine2dCollision = exports.lineRectangle2dCollision = exports.circleRect2dCollision = void 0; -var distances_2d_1 = require("./distances-2d"); -function circleRect2dCollision(cPosX, cPosY, cRadius, rPosX, rPosY, rSizeX, rSizeY) { - var circleDistanceX = Math.abs(cPosX - rPosX); - var circleDistanceY = Math.abs(cPosY - rPosY); - if (circleDistanceX > rSizeX / 2 + cRadius) { - return false; - } - if (circleDistanceY > rSizeY / 2 + cRadius) { - return false; - } - if (circleDistanceX <= rSizeX / 2) { - return true; - } - if (circleDistanceY <= rSizeY / 2) { - return true; - } - var cornerDistanceSQ = Math.pow(circleDistanceX - rPosX / 2, 2) + - Math.pow(circleDistanceY - rPosY / 2, 2); - return cornerDistanceSQ <= Math.pow(cRadius, 2); -} -exports.circleRect2dCollision = circleRect2dCollision; -function lineRectangle2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) { - return pointRect2dCollision(aStartX, aStartY, bPosX, bPosY, bSizeX, bSizeY) || - pointRect2dCollision(aEndX, aEndY, bPosX, bPosY, bSizeX, bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX, bPosY, bPosX + bSizeX, bPosY + bSizeY) || - lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bPosX + bSizeX, bPosY, bPosX, bPosY + bSizeY); -} -exports.lineRectangle2dCollision = lineRectangle2dCollision; -function lineLine2dCollision(aStartX, aStartY, aEndX, aEndY, bStartX, bStartY, bEndX, bEndY) { - var denominator = (aEndX - aStartX) * (bEndY - bStartY) - (aEndY - aStartY) * (bEndX - bStartX); - var numerator1 = (aStartY - bStartY) * (bEndX - bStartX) - (aStartX - bStartX) * (bEndY - bStartY); - var numerator2 = (aStartY - bStartY) * (aEndX - aStartX) - (aStartX - bStartX) * (aEndY - aStartY); - if (denominator === 0) { - return numerator1 === 0 && numerator2 === 0; - } - var r = numerator1 / denominator; - var s = numerator2 / denominator; - return r >= 0 && r <= 1 && (s >= 0 && s <= 1); -} -exports.lineLine2dCollision = lineLine2dCollision; -function lineLine2dCollision2(a, b, c, d, p, q, r, s) { - var det = (c - a) * (s - q) - (r - p) * (d - b); - if (det === 0) { - return false; - } - var lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det; - var gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det; - return (0 < lambda && lambda < 1) && (0 < gamma && gamma < 1); -} -exports.lineLine2dCollision2 = lineLine2dCollision2; -function rectRect2dCollision(ax, ay, aw, ah, bx, by, bw, bh) { - return bx + bw >= ax && by + bh >= ay && bx <= ax + aw && by <= ay + ah; -} -exports.rectRect2dCollision = rectRect2dCollision; -function circleCircle2dCollision(aX, aY, aRadius, bX, bY, bRadius) { - return distances_2d_1.distance2dPointPoint(aX, aY, bX, bY) <= aRadius + bRadius; -} -exports.circleCircle2dCollision = circleCircle2dCollision; -function pointRect2dCollision(pointX, pointY, rectX, rectY, rectW, rectH) { - return pointX >= rectX && - pointY >= rectY && - pointX <= rectX + rectW && - pointY <= rectY + rectH; -} -exports.pointRect2dCollision = pointRect2dCollision; -function pointRectMinMax2dCollision(pointX, pointY, minX, minY, maxX, maxY) { - return pointX >= minX && - pointY >= minY && - pointX <= maxX && - pointY <= maxY; -} -exports.pointRectMinMax2dCollision = pointRectMinMax2dCollision; -function pointCircle2dCollision(pointX, pointY, circleX, circleY, circleRadius) { - return distances_2d_1.distance2dPointPoint(pointX, pointY, circleX, circleY) <= circleRadius; -} -exports.pointCircle2dCollision = pointCircle2dCollision; -function pointPolygon2dCollision2(x, y, vs) { - var inside = false; - var i = 0; - var j = vs.length - 1; - for (; i < vs.length; j = i++) { - var xi = vs[i][0]; - var yi = vs[i][1]; - var xj = vs[j][0]; - var yj = vs[j][1]; - var intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi); - if (intersect) { - inside = !inside; - } - } - return inside; -} -exports.pointPolygon2dCollision2 = pointPolygon2dCollision2; -function pointMultiPolygon2dCollision(pointX, pointY, polys, ignoreBoundary) { - if (ignoreBoundary === void 0) { ignoreBoundary = false; } - var multipolygon = [polys]; - var pt = [pointX, pointY]; - var insidePoly = false; - for (var i = 0; i < multipolygon.length && !insidePoly; i++) { - if (pointPolygon2dCollision(pt, multipolygon[i][0], ignoreBoundary)) { - var inHole = false; - var k = 1; - while (k < multipolygon[i].length && !inHole) { - if (pointPolygon2dCollision(pt, multipolygon[i][k], !ignoreBoundary)) { - inHole = true; - } - k++; - } - if (!inHole) { - insidePoly = true; - } - } - } - return insidePoly; -} -exports.pointMultiPolygon2dCollision = pointMultiPolygon2dCollision; -function pointPolygon2dCollision(pt, ring, ignoreBoundary) { - var isInside = false; - if (ring[0][0] === ring[ring.length - 1][0] && - ring[0][1] === ring[ring.length - 1][1]) { - ring = ring.slice(0, ring.length - 1); - } - for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) { - var xi = ring[i][0]; - var yi = ring[i][1]; - var xj = ring[j][0]; - var yj = ring[j][1]; - var onBoundary = pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0 && (xi - pt[0]) * (xj - pt[0]) <= 0 && (yi - pt[1]) * (yj - pt[1]) <= 0; - if (onBoundary) { - return !ignoreBoundary; - } - var intersect = yi > pt[1] !== yj > pt[1] && pt[0] < ((xj - xi) * (pt[1] - yi)) / (yj - yi) + xi; - if (intersect) { - isInside = !isInside; - } - } - return isInside; -} -exports.pointPolygon2dCollision = pointPolygon2dCollision; -//# sourceMappingURL=collisions-2d.js.map \ No newline at end of file diff --git a/dist/physics/collisions-2d.js.map b/dist/physics/collisions-2d.js.map deleted file mode 100644 index 929936e0..00000000 --- a/dist/physics/collisions-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-2d.js","sourceRoot":"","sources":["../../src/physics/collisions-2d.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AAEtD,SAAgB,qBAAqB,CACjC,KAAa,EACb,KAAa,EACb,OAAe,EACf,KAAa,EACb,KAAa,EACb,MAAc,EACd,MAAc;IAEd,IAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC;IACh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G,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC3J,IAAI,UAAU,EAAE;YACZ,OAAO,CAAC,cAAc,CAAC;SAC1B;QACD,IAAM,SAAS,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QACnG,IAAI,SAAS,EAAE;YACX,QAAQ,GAAG,CAAC,QAAQ,CAAC;SACxB;KACJ;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAzBD,0DAyBC"} \ No newline at end of file diff --git a/dist/physics/collisions-3d.d.ts b/dist/physics/collisions-3d.d.ts deleted file mode 100644 index 65de538e..00000000 --- a/dist/physics/collisions-3d.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { SimpleVector2 } from "../math"; -export declare function collision3dSphereSphere(ax: number, ay: number, az: number, aRadius: number, bx: number, by: number, bz: number, bRadius: number): boolean; -export declare function collision3dPointSphere(ax: number, ay: number, az: number, bx: number, by: number, bz: number, bRadius: number): boolean; -export declare function collision3dLineSphere(ax: number, ay: number, az: number, bx: number, by: number, bz: number, sx: number, sy: number, sz: number, sr: number): boolean; -export declare enum IntersectionType { - OUTSIDE = "OUTSIDE", - INSIDE = "INSIDE", - ONE_INTERSECTION = "ONE_INTERSECTION", - TWO_INTERSECTION = "TWO_INTERSECTION" -} -export declare function collision3dLineBox2(p0X: number, p0Y: number, p0Z: number, p1X: number, p1Y: number, p1Z: number, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number, result: SimpleVector2): IntersectionType; -export declare function collision3dBoxBoxMinMax(ax: number, ay: number, az: number, aWidth: number, aHeight: number, aDepth: number, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): boolean; -export declare function collision3dMinMaxMinMax(minAX: number, minAY: number, minAZ: number, maxAX: number, maxAY: number, maxAZ: number, minBX: number, minBY: number, minBZ: number, maxBX: number, maxBY: number, maxBZ: number): boolean; -export declare function collision3dPointBox(bx: number, by: number, bz: number, ax: number, ay: number, az: number, aWidth: number, aHeight: number, aDepth: number): boolean; -export declare function collision3dPointBoxMinMax(bPosX: number, bPosY: number, bPosZ: number, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): boolean; -export declare function collision3dLineBox(a1x: number, a1y: number, a1z: number, a2x: number, a2y: number, a2z: number, bPosX: number, bPosY: number, bPosZ: number, bSizeX: number, bSizeY: number, bSizeZ: number): boolean; -export declare function collision3dLineSphere2(p0X: number, p0Y: number, p0Z: number, p1X: number, p1Y: number, p1Z: number, centerX: number, centerY: number, centerZ: number, radiusSquared: number): boolean; -export declare function collision3dBoxBox(ax: number, ay: number, az: number, aw: number, ah: number, ad: number, bx: number, by: number, bz: number, bw: number, bh: number, bd: number): boolean; -export declare function collision3dPointEllipsoid(ax: number, ay: number, az: number, bPosX: number, bPosY: number, bPosZ: number, bSizeX: number, bSizeY: number, bSizeZ: number): boolean; -export declare function collision3dLineEllipsoid(aStartX: number, aStartY: number, aStartZ: number, aEndX: number, aEndY: number, aEndZ: number, bPosX: number, bPosY: number, bPosZ: number, bSizeX: number, bSizeY: number, bSizeZ: number): boolean; -export declare function collision3dPointCylinder(ax: number, ay: number, az: number, bx: number, by: number, bz: number, bRadius: number, bHeight: number): boolean; -export declare function collision3dBoxCylinder(ax: number, ay: number, az: number, aSizeX: number, aSizeY: number, aSizeZ: number, bx: number, by: number, bz: number, bRadius: number, bHeight: number): boolean; -export declare function collision3dSphereCylinder(ax: number, ay: number, az: number, aRadius: number, bx: number, by: number, bz: number, bRadius: number, bHeight: number): boolean; -export declare function collision3dSphereBoxMinMax(centerX: number, centerY: number, centerZ: number, radiusSquared: number, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): boolean; -//# sourceMappingURL=collisions-3d.d.ts.map \ No newline at end of file diff --git a/dist/physics/collisions-3d.d.ts.map b/dist/physics/collisions-3d.d.ts.map deleted file mode 100644 index 3b3c3ae1..00000000 --- a/dist/physics/collisions-3d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-3d.d.ts","sourceRoot":"","sources":["../../src/physics/collisions-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,SAAS,CAAC;AAOjD,wBAAgB,uBAAuB,CACnC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GAChB,OAAO,CAIT;AAED,wBAAgB,sBAAsB,CAClC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GAChB,OAAO,CAIT;AAED,wBAAgB,qBAAqB,CACjC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,OAAO,CAET;AAED,oBAAY,gBAAgB;IACxB,OAAO,YAAqB;IAC5B,MAAM,WAAqB;IAC3B,gBAAgB,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E,MAAM,EACf,OAAO,EAAE,MAAM,GAChB,OAAO,CAKT;AAED,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACb,OAAO,CAwBT"} \ No newline at end of file diff --git a/dist/physics/collisions-3d.js b/dist/physics/collisions-3d.js deleted file mode 100644 index 3db00ad4..00000000 --- a/dist/physics/collisions-3d.js +++ /dev/null @@ -1,221 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.collision3dSphereBoxMinMax = exports.collision3dSphereCylinder = exports.collision3dBoxCylinder = exports.collision3dPointCylinder = exports.collision3dLineEllipsoid = exports.collision3dPointEllipsoid = exports.collision3dBoxBox = exports.collision3dLineSphere2 = exports.collision3dLineBox = exports.collision3dPointBoxMinMax = exports.collision3dPointBox = exports.collision3dMinMaxMinMax = exports.collision3dBoxBoxMinMax = exports.collision3dLineBox2 = exports.IntersectionType = exports.collision3dLineSphere = exports.collision3dPointSphere = exports.collision3dSphereSphere = void 0; -var math_1 = require("../math"); -var closest_3d_1 = require("./closest-3d"); -var collisions_2d_1 = require("./collisions-2d"); -var distances_2d_1 = require("./distances-2d"); -var distances_3d_1 = require("./distances-3d"); -var intersects_3d_1 = require("./intersects-3d"); -function collision3dSphereSphere(ax, ay, az, aRadius, bx, by, bz, bRadius) { - var dist = distances_3d_1.pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= aRadius + bRadius; -} -exports.collision3dSphereSphere = collision3dSphereSphere; -function collision3dPointSphere(ax, ay, az, bx, by, bz, bRadius) { - var dist = distances_3d_1.pointPoint3dDistance(ax, ay, az, bx, by, bz); - return dist <= bRadius; -} -exports.collision3dPointSphere = collision3dPointSphere; -function collision3dLineSphere(ax, ay, az, bx, by, bz, sx, sy, sz, sr) { - return distances_3d_1.pointLine3dDistance(ax, ay, az, bx, by, bz, sx, sy, sz) < sr; -} -exports.collision3dLineSphere = collision3dLineSphere; -var IntersectionType; -(function (IntersectionType) { - IntersectionType["OUTSIDE"] = "OUTSIDE"; - IntersectionType["INSIDE"] = "INSIDE"; - IntersectionType["ONE_INTERSECTION"] = "ONE_INTERSECTION"; - IntersectionType["TWO_INTERSECTION"] = "TWO_INTERSECTION"; -})(IntersectionType = exports.IntersectionType || (exports.IntersectionType = {})); -function collision3dLineBox2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, minX, minY, minZ, maxX, maxY, maxZ, result) { - var dirX = p1X - p0X; - var dirY = p1Y - p0Y; - var dirZ = p1Z - p0Z; - var invDirX = 1 / dirX; - var invDirY = 1 / dirY; - var invDirZ = 1 / dirZ; - var tNear; - var tFar; - var tymin; - var tymax; - var tzmin; - var tzmax; - if (invDirX >= 0) { - tNear = (minX - p0X) * invDirX; - tFar = (maxX - p0X) * invDirX; - } - else { - tNear = (maxX - p0X) * invDirX; - tFar = (minX - p0X) * invDirX; - } - if (invDirY >= 0) { - tymin = (minY - p0Y) * invDirY; - tymax = (maxY - p0Y) * invDirY; - } - else { - tymin = (maxY - p0Y) * invDirY; - tymax = (minY - p0Y) * invDirY; - } - if (tNear > tymax || tymin > tFar) { - return IntersectionType.OUTSIDE; - } - if (invDirZ >= 0) { - tzmin = (minZ - p0Z) * invDirZ; - tzmax = (maxZ - p0Z) * invDirZ; - } - else { - tzmin = (maxZ - p0Z) * invDirZ; - tzmax = (minZ - p0Z) * invDirZ; - } - if (tNear > tzmax || tzmin > tFar) { - return IntersectionType.OUTSIDE; - } - tNear = tymin > tNear || isNaN(tNear) ? tymin : tNear; - tFar = tymax < tFar || isNaN(tFar) ? tymax : tFar; - tNear = tzmin > tNear ? tzmin : tNear; - tFar = tzmax < tFar ? tzmax : tFar; - var type = IntersectionType.OUTSIDE; - if (tNear < tFar && tNear <= 1 && tFar >= 0) { - if (tNear > 0 && tFar > 1) { - tFar = tNear; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar < 1) { - tNear = tFar; - type = IntersectionType.ONE_INTERSECTION; - } - else if (tNear < 0 && tFar > 1) { - type = IntersectionType.INSIDE; - } - else { - type = IntersectionType.TWO_INTERSECTION; - } - result.x = tNear; - result.y = tFar; - } - return type; -} -exports.collision3dLineBox2 = collision3dLineBox2; -function collision3dBoxBoxMinMax(ax, ay, az, aWidth, aHeight, aDepth, minX, minY, minZ, maxX, maxY, maxZ) { - return ax + aWidth > minX && ax < maxX - && ay + aHeight > minY && ay < maxY - && az + aDepth > minZ && az < maxZ; -} -exports.collision3dBoxBoxMinMax = collision3dBoxBoxMinMax; -function collision3dMinMaxMinMax(minAX, minAY, minAZ, maxAX, maxAY, maxAZ, minBX, minBY, minBZ, maxBX, maxBY, maxBZ) { - return maxAX > minBX && minAX < maxBX - && maxAY > minBY && minAY < maxBY - && maxAZ > minBZ && minAZ < maxBZ; -} -exports.collision3dMinMaxMinMax = collision3dMinMaxMinMax; -function collision3dPointBox(bx, by, bz, ax, ay, az, aWidth, aHeight, aDepth) { - return ax < bx && ax + aWidth > bx - && ay < by && ay + aHeight > by - && az < bz && az + aDepth > bz; -} -exports.collision3dPointBox = collision3dPointBox; -function collision3dPointBoxMinMax(bPosX, bPosY, bPosZ, minX, minY, minZ, maxX, maxY, maxZ) { - return bPosX >= minX && bPosX <= maxX - && bPosY >= minY && bPosY >= minY - && bPosZ >= minZ && bPosZ <= maxZ; -} -exports.collision3dPointBoxMinMax = collision3dPointBoxMinMax; -function collision3dLineBox(a1x, a1y, a1z, a2x, a2y, a2z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - return intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ - bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ) || - intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY + bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY + bSizeY, bPosZ - bSizeZ) || - intersects_3d_1.intersection3dVectorSquare(a1x, a1y, a1z, a2x, a2y, a2z, bPosX + bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX - bSizeX, bPosY - bSizeY, bPosZ + bSizeZ, bPosX + bSizeX, bPosY - bSizeY, bPosZ - bSizeZ); -} -exports.collision3dLineBox = collision3dLineBox; -function collision3dLineSphere2(p0X, p0Y, p0Z, p1X, p1Y, p1Z, centerX, centerY, centerZ, radiusSquared) { - var dX = p1X - p0X; - var dY = p1Y - p0Y; - var dZ = p1Z - p0Z; - var nom = (centerX - p0X) * dX + (centerY - p0Y) * dY + (centerZ - p0Z) * dZ; - var den = dX * dX + dY * dY + dZ * dZ; - var u = nom / den; - if (u < 0) { - dX = p0X - centerX; - dY = p0Y - centerY; - dZ = p0Z - centerZ; - } - else if (u > 1) { - dX = p1X - centerX; - dY = p1Y - centerY; - dZ = p1Z - centerZ; - } - else { - var pX = p0X + u * dX; - var pY = p0Y + u * dY; - var pZ = p0Z + u * dZ; - dX = pX - centerX; - dY = pY - centerY; - dZ = pZ - centerZ; - } - var dist = dX * dX + dY * dY + dZ * dZ; - return dist <= radiusSquared; -} -exports.collision3dLineSphere2 = collision3dLineSphere2; -function collision3dBoxBox(ax, ay, az, aw, ah, ad, bx, by, bz, bw, bh, bd) { - return ax + aw > bx && bx + bw > ax && - ay + ah > by && by + bh > ay && - az + ad > bz && bz + bd > az; -} -exports.collision3dBoxBox = collision3dBoxBox; -function collision3dPointEllipsoid(ax, ay, az, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - var aposNewX = ax - bPosX; - var aposNewY = ay - bPosY; - var aposNewZ = az - bPosZ; - var xa = (aposNewX * aposNewX) / (bSizeX * bSizeX); - var yb = (aposNewY * aposNewY) / (bSizeY * bSizeY); - var zc = (aposNewZ * aposNewZ) / (bSizeZ * bSizeZ); - return xa + yb + zc <= 1; -} -exports.collision3dPointEllipsoid = collision3dPointEllipsoid; -function collision3dLineEllipsoid(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ) { - var point = closest_3d_1.getClosestPointOnLine(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bPosX, bPosY, bPosZ); - return collision3dPointEllipsoid(point.x, point.y, point.z, bPosX, bPosY, bPosZ, bSizeX, bSizeY, bSizeZ); -} -exports.collision3dLineEllipsoid = collision3dLineEllipsoid; -function collision3dPointCylinder(ax, ay, az, bx, by, bz, bRadius, bHeight) { - var conditionOne = ay > by && ay < by + bHeight; - var conditionTwo = distances_2d_1.distance2dPointPoint(ax, az, bx, bz) < bRadius; - return conditionOne && conditionTwo; -} -exports.collision3dPointCylinder = collision3dPointCylinder; -function collision3dBoxCylinder(ax, ay, az, aSizeX, aSizeY, aSizeZ, bx, by, bz, bRadius, bHeight) { - if (ay < by + bHeight || ay + aSizeY > by) { - return false; - } - return collisions_2d_1.circleRect2dCollision(bx, bz, bRadius, ax, az, aSizeX, aSizeZ); -} -exports.collision3dBoxCylinder = collision3dBoxCylinder; -function collision3dSphereCylinder(ax, ay, az, aRadius, bx, by, bz, bRadius, bHeight) { - var conditionOne = ay + aRadius > by && ay - aRadius < by + bHeight; - var conditionTwo = distances_2d_1.distance2dPointPoint(ax, az, bx, bz) < aRadius + bRadius; - return conditionOne && conditionTwo; -} -exports.collision3dSphereCylinder = collision3dSphereCylinder; -function collision3dSphereBoxMinMax(centerX, centerY, centerZ, radiusSquared, minX, minY, minZ, maxX, maxY, maxZ) { - var radius2 = radiusSquared; - var func = function (val) { - var d = 0; - if (val.z < val.x) { - d = val.z - val.x; - } - else if (val.z > val.y) { - d = val.z - val.y; - } - return d * d; - }; - var params = new math_1.Vector3(); - radius2 -= func(params.setData(minX, maxX, centerX)); - radius2 -= func(params.setData(minY, maxY, centerY)); - radius2 -= func(params.setData(minZ, maxZ, centerZ)); - return radius2 >= 0; -} -exports.collision3dSphereBoxMinMax = collision3dSphereBoxMinMax; -//# sourceMappingURL=collisions-3d.js.map \ No newline at end of file diff --git a/dist/physics/collisions-3d.js.map b/dist/physics/collisions-3d.js.map deleted file mode 100644 index 55d6e9b1..00000000 --- a/dist/physics/collisions-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collisions-3d.js","sourceRoot":"","sources":["../../src/physics/collisions-3d.ts"],"names":[],"mappings":";;;AAAA,gCAAiD;AACjD,2CAAqD;AACrD,iDAAwD;AACxD,+CAAsD;AACtD,+CAA2E;AAC3E,iDAA6D;AAE7D,SAAgB,uBAAuB,CACnC,EAAU,EACV,EAAU,EACV,EAAU,EACV,OAAe,EACf,EAAU,EACV,EAAU,EACV,EAAU,EACV,OAAe;I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IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAErD,OAAO,OAAO,IAAI,CAAC,CAAC;AACxB,CAAC;AAnCD,gEAmCC"} \ No newline at end of file diff --git a/dist/physics/distances-2d.d.ts b/dist/physics/distances-2d.d.ts deleted file mode 100644 index ca85a50a..00000000 --- a/dist/physics/distances-2d.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare function distance2dPointPoint(ax: number, ay: number, bx: number, by: number): number; -export declare function distance2dPointPointSqr(ax: number, ay: number, bx: number, by: number): number; -export declare function distance2dCircleCircle(ax: number, ay: number, ar: number, bx: number, by: number, br: number): number; -export declare function distance2dCircleCircleSqr(ax: number, ay: number, ar: number, bx: number, by: number, br: number): number; -export declare function distance2dPointCircle(ax: number, ay: number, bx: number, by: number, br: number): number; -export declare function distance2dPointCircleSqr(ax: number, ay: number, bx: number, by: number, br: number): number; -export declare function distance2dPointLine(aX: number, aY: number, bX: number, bY: number, pX: number, pY: number): number; -export declare function distance2dPointLineSqr(aX: number, aY: number, bX: number, bY: number, pX: number, pY: number): number; -//# sourceMappingURL=distances-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/distances-2d.d.ts.map b/dist/physics/distances-2d.d.ts.map deleted file mode 100644 index 140037d9..00000000 --- a/dist/physics/distances-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-2d.d.ts","sourceRoot":"","sources":["../../src/physics/distances-2d.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3F;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAK9F;AAED,wBAAgB,sBAAsB,CAClC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CAER;AAED,wBAAgB,yBAAyB,CACrC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CAER;AAED,wBAAgB,qBAAqB,CACjC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CAER;AAED,wBAAgB,wBAAwB,CACpC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CAER;AAED,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CAER;AAED,wBAAgB,sBAAsB,CAClC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,MAAM,CA+BR"} \ No newline at end of file diff --git a/dist/physics/distances-2d.js b/dist/physics/distances-2d.js deleted file mode 100644 index 254b03d3..00000000 --- a/dist/physics/distances-2d.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.distance2dPointLineSqr = exports.distance2dPointLine = exports.distance2dPointCircleSqr = exports.distance2dPointCircle = exports.distance2dCircleCircleSqr = exports.distance2dCircleCircle = exports.distance2dPointPointSqr = exports.distance2dPointPoint = void 0; -function distance2dPointPoint(ax, ay, bx, by) { - return Math.sqrt(distance2dPointPointSqr(ax, ay, bx, by)); -} -exports.distance2dPointPoint = distance2dPointPoint; -function distance2dPointPointSqr(ax, ay, bx, by) { - var distX = ax - bx; - var distY = ay - by; - return distX * distX + distY * distY; -} -exports.distance2dPointPointSqr = distance2dPointPointSqr; -function distance2dCircleCircle(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br - ar, 0); -} -exports.distance2dCircleCircle = distance2dCircleCircle; -function distance2dCircleCircleSqr(ax, ay, ar, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br - ar); -} -exports.distance2dCircleCircleSqr = distance2dCircleCircleSqr; -function distance2dPointCircle(ax, ay, bx, by, br) { - return Math.max(distance2dPointPoint(ax, ay, bx, by) - br, 0); -} -exports.distance2dPointCircle = distance2dPointCircle; -function distance2dPointCircleSqr(ax, ay, bx, by, br) { - return Math.max(distance2dPointPointSqr(ax, ay, bx, by) - br, 0); -} -exports.distance2dPointCircleSqr = distance2dPointCircleSqr; -function distance2dPointLine(aX, aY, bX, bY, pX, pY) { - return Math.sqrt(distance2dPointLineSqr(aX, aY, bX, bY, pX, pY)); -} -exports.distance2dPointLine = distance2dPointLine; -function distance2dPointLineSqr(aX, aY, bX, bY, pX, pY) { - var A = pX - aX; - var B = pY - aY; - var C = bX - aX; - var D = bY - aY; - var dot = A * C + B * D; - var lengthSquare = C * C + D * D; - var param = -1; - if (lengthSquare !== 0) { - param = dot / lengthSquare; - } - var xx; - var yy; - if (param < 0) { - xx = aX; - yy = aY; - } - else if (param > 1) { - xx = bX; - yy = bY; - } - else { - xx = aX + param * C; - yy = aY + param * D; - } - var dx = pX - xx; - var dy = pY - yy; - return dx * dx + dy * dy; -} -exports.distance2dPointLineSqr = distance2dPointLineSqr; -//# sourceMappingURL=distances-2d.js.map \ No newline at end of file diff --git a/dist/physics/distances-2d.js.map b/dist/physics/distances-2d.js.map deleted file mode 100644 index 26468449..00000000 --- a/dist/physics/distances-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-2d.js","sourceRoot":"","sources":["../../src/physics/distances-2d.ts"],"names":[],"mappings":";;;AAAA,SAAgB,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC/E,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAC9D,CAAC;AAFD,oDAEC;AAED,SAAgB,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAClF,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IAEtB,OAAO,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACzC,CAAC;AALD,0DAKC;AAED,SAAgB,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AACvE,CAAC;AATD,wDASC;AAED,SAAgB,yBAAyB,CACrC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACvE,CAAC;AATD,8DASC;AAED,SAAgB,qBAAqB,CACjC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,OAAO,IAAI,CAAC,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AG,CAAC,EAAE;QACX,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QAClB,EAAE,GAAG,EAAE,CAAC;QACR,EAAE,GAAG,EAAE,CAAC;KACX;SAAM;QACH,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;QACpB,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,CAAC;KACvB;IAED,IAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnB,IAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAEnB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,CAAC;AAtCD,wDAsCC"} \ No newline at end of file diff --git a/dist/physics/distances-3d.d.ts b/dist/physics/distances-3d.d.ts deleted file mode 100644 index 53630318..00000000 --- a/dist/physics/distances-3d.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Vector3 } from "../math"; -export declare function pointPoint3dDistance(ax: number, ay: number, az: number, bx: number, by: number, bz: number): number; -export declare function pointPointSqr3dDistance(ax: number, ay: number, az: number, bx: number, by: number, bz: number): number; -export declare function pointLine3dDistance(aStartX: number, aStartY: number, aStartZ: number, aEndX: number, aEndY: number, aEndZ: number, bCenterX: number, bCenterY: number, bCenterZ: number): number; -export declare function pointNormalPlane3dDistance(aNormal: Vector3, aPoint: Vector3, bPoint: Vector3): number; -export declare function vectorPoint3dDistance(startX: number, startY: number, startZ: number, endX: number, endY: number, endZ: number, pointX: number, pointY: number, pointZ: number): number; -//# sourceMappingURL=distances-3d.d.ts.map \ No newline at end of file diff --git a/dist/physics/distances-3d.d.ts.map b/dist/physics/distances-3d.d.ts.map deleted file mode 100644 index 9f4f76d6..00000000 --- a/dist/physics/distances-3d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-3d.d.ts","sourceRoot":"","sources":["../../src/physics/distances-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAEnH;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAMtH;AAED,wBAAgB,mBAAmB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACjB,MAAM,CAwBR;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAIrG;AAMD,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACf,MAAM,CAiBR"} \ No newline at end of file diff --git a/dist/physics/distances-3d.js b/dist/physics/distances-3d.js deleted file mode 100644 index 11f73c9a..00000000 --- a/dist/physics/distances-3d.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.vectorPoint3dDistance = exports.pointNormalPlane3dDistance = exports.pointLine3dDistance = exports.pointPointSqr3dDistance = exports.pointPoint3dDistance = void 0; -var math_1 = require("../math"); -function pointPoint3dDistance(ax, ay, az, bx, by, bz) { - return Math.sqrt(pointPointSqr3dDistance(ax, ay, az, bx, by, bz)); -} -exports.pointPoint3dDistance = pointPoint3dDistance; -function pointPointSqr3dDistance(ax, ay, az, bx, by, bz) { - var distX = ax - bx; - var distY = ay - by; - var distZ = az - bz; - return distX * distX + distY * distY + distZ * distZ; -} -exports.pointPointSqr3dDistance = pointPointSqr3dDistance; -function pointLine3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ) { - var aSubBx = aStartX - aEndX; - var aSubBy = aStartY - aEndY; - var aSubBz = aStartZ - aEndZ; - var pSubBx = bCenterX - aEndX; - var pSubBy = bCenterY - aEndY; - var pSubBz = bCenterZ - aEndZ; - var dotA = aSubBx * pSubBx + aSubBy * pSubBy + aSubBz * pSubBz; - if (dotA < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aEndX, aEndY, aEndZ); - } - var bSubAx = aEndX - aStartX; - var bSubAy = aEndY - aStartY; - var bSubAz = aEndZ - aStartZ; - var pSubAx = bCenterX - aStartX; - var pSubAy = bCenterY - aStartY; - var pSubAz = bCenterZ - aStartZ; - var dotB = bSubAx * pSubAx + bSubAy * pSubAy + bSubAz * pSubAz; - if (dotB < 0) { - return pointPoint3dDistance(bCenterX, bCenterY, bCenterZ, aStartX, aStartY, aStartZ); - } - return vectorPoint3dDistance(aStartX, aStartY, aStartZ, aEndX, aEndY, aEndZ, bCenterX, bCenterY, bCenterZ); -} -exports.pointLine3dDistance = pointLine3dDistance; -function pointNormalPlane3dDistance(aNormal, aPoint, bPoint) { - var d = -math_1.Vector3.mul(aNormal, aPoint, new math_1.Vector3()).sum(); - return Math.abs((math_1.Vector3.mul(aNormal, bPoint, new math_1.Vector3()).sum() + d) / Math.sqrt(math_1.Vector3.mul(aNormal, aNormal, new math_1.Vector3()).sum())); -} -exports.pointNormalPlane3dDistance = pointNormalPlane3dDistance; -function vectorPoint3dDistance(startX, startY, startZ, endX, endY, endZ, pointX, pointY, pointZ) { - var startSubEndX = startX - endX; - var startSubEndY = startY - endY; - var startSubEndZ = startZ - endZ; - var endSubPointX = endX - pointX; - var endSubPointY = endY - pointY; - var endSubPointZ = endZ - pointZ; - var crossX = startSubEndY * endSubPointZ - startSubEndZ * endSubPointY; - var crossY = startSubEndZ * endSubPointX - startSubEndX * endSubPointZ; - var crossZ = startSubEndX * endSubPointY - startSubEndY * endSubPointX; - var length1 = Math.sqrt(crossX * crossX + crossY * crossY + crossZ * crossZ); - var length2 = Math.sqrt(startSubEndX * startSubEndX + startSubEndY * startSubEndY + startSubEndZ * startSubEndZ); - return length1 / length2; -} -exports.vectorPoint3dDistance = vectorPoint3dDistance; -//# sourceMappingURL=distances-3d.js.map \ No newline at end of file diff --git a/dist/physics/distances-3d.js.map b/dist/physics/distances-3d.js.map deleted file mode 100644 index 1cebad88..00000000 --- a/dist/physics/distances-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distances-3d.js","sourceRoot":"","sources":["../../src/physics/distances-3d.ts"],"names":[],"mappings":";;;AAAA,gCAAkC;AAElC,SAAgB,oBAAoB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IACvG,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC;AAFD,oDAEC;AAED,SAAgB,uBAAuB,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;IAC1G,IAAM,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;IACtB,IAAM,KAAK,GAAG,EAAE,GA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AAC;IAEnC,IAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzE,IAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IACzE,IAAM,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;IAEzE,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;IAC/E,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC,CAAC;IAEnH,OAAO,OAAO,GAAG,OAAO,CAAC;AAC7B,CAAC;AA3BD,sDA2BC"} \ No newline at end of file diff --git a/dist/physics/index.d.ts b/dist/physics/index.d.ts deleted file mode 100644 index 1477fde7..00000000 --- a/dist/physics/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./closest-2d"; -export * from "./closest-3d"; -export * from "./collisions-2d"; -export * from "./collisions-3d"; -export * from "./distances-2d"; -export * from "./distances-3d"; -export * from "./bounders-2d"; -export * from "./objects"; -export * from "./intersects-2d"; -export * from "./intersects-3d"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/physics/index.d.ts.map b/dist/physics/index.d.ts.map deleted file mode 100644 index 27dc9e88..00000000 --- a/dist/physics/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/physics/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/physics/index.js b/dist/physics/index.js deleted file mode 100644 index 7ca44c1a..00000000 --- a/dist/physics/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./closest-2d"), exports); -__exportStar(require("./closest-3d"), exports); -__exportStar(require("./collisions-2d"), exports); -__exportStar(require("./collisions-3d"), exports); -__exportStar(require("./distances-2d"), exports); -__exportStar(require("./distances-3d"), exports); -__exportStar(require("./bounders-2d"), exports); -__exportStar(require("./objects"), exports); -__exportStar(require("./intersects-2d"), exports); -__exportStar(require("./intersects-3d"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/physics/index.js.map b/dist/physics/index.js.map deleted file mode 100644 index f61d29d3..00000000 --- a/dist/physics/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/physics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC"} \ No newline at end of file diff --git a/dist/physics/intersects-2d.d.ts b/dist/physics/intersects-2d.d.ts deleted file mode 100644 index 1872292a..00000000 --- a/dist/physics/intersects-2d.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ReadonlySimpleVector2 } from "gtools/math"; -export declare function intersection2dLineLine(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number): null | ReadonlySimpleVector2; -//# sourceMappingURL=intersects-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/intersects-2d.d.ts.map b/dist/physics/intersects-2d.d.ts.map deleted file mode 100644 index 4e9c6d7f..00000000 --- a/dist/physics/intersects-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-2d.d.ts","sourceRoot":"","sources":["../../src/physics/intersects-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,wBAAgB,sBAAsB,CAClC,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACX,IAAI,GAAG,qBAAqB,CAoB9B"} \ No newline at end of file diff --git a/dist/physics/intersects-2d.js b/dist/physics/intersects-2d.js deleted file mode 100644 index 606edc22..00000000 --- a/dist/physics/intersects-2d.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intersection2dLineLine = void 0; -function intersection2dLineLine(x1, y1, x2, y2, x3, y3, x4, y4) { - var denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1); - if (denom === 0) { - return null; - } - var numeA = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3); - var numeB = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3); - var uA = numeA / denom; - var uB = numeB / denom; - if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) { - var x = x1 + uA * (x2 - x1); - var y = y1 + uA * (y2 - y1); - return { x: x, y: y }; - } - return null; -} -exports.intersection2dLineLine = intersection2dLineLine; -//# sourceMappingURL=intersects-2d.js.map \ No newline at end of file diff --git a/dist/physics/intersects-2d.js.map b/dist/physics/intersects-2d.js.map deleted file mode 100644 index c419d797..00000000 --- a/dist/physics/intersects-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-2d.js","sourceRoot":"","sources":["../../src/physics/intersects-2d.ts"],"names":[],"mappings":";;;AAEA,SAAgB,sBAAsB,CAClC,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;IAEV,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAI,KAAK,KAAK,CAAC,EAAE;QACb,OAAO,IAAI,CAAC;KACf;IAED,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,IAAM,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAE5D,IAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IACzB,IAAM,EAAE,GAAG,KAAK,GAAG,KAAK,CAAC;IAEzB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QAC1C,IAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,IAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAE9B,OAAO,EAAC,CAAC,GAAA,EAAE,CAAC,GAAA,EAAC,CAAC;KACjB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AA7BD,wDA6BC"} \ No newline at end of file diff --git a/dist/physics/intersects-3d.d.ts b/dist/physics/intersects-3d.d.ts deleted file mode 100644 index 628e0295..00000000 --- a/dist/physics/intersects-3d.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { ReadonlySimpleVector3, SimpleVector3, Vector3 } from "../math"; -export declare function intersection3dVectorSquare(r1x: number, r1y: number, r1z: number, r2x: number, r2y: number, r2z: number, s1x: number, s1y: number, s1z: number, s2x: number, s2y: number, s2z: number, s3x: number, s3y: number, s3z: number): boolean; -/** - * @param R1 - point 1 of vector - * @param R2 - point 2 of vector - * @param S1 - * @param S2 - * @param S3 - * @param limit - */ -export declare function intersection3dVectorSquare_2(R1: SimpleVector3, R2: SimpleVector3, S1: SimpleVector3, S2: SimpleVector3, S3: SimpleVector3, limit?: number): boolean; -export declare function intersection3dPlaneLine(planePointX: number, planePointY: number, planePointZ: number, planeNormalX: number, planeNormalY: number, planeNormalZ: number, linePointX: number, linePointY: number, linePointZ: number, lineDirectionX: number, lineDirectionY: number, lineDirectionZ: number, limit?: number): null | ReadonlySimpleVector3; -/** - * Determines the point of intersection between a plane defined by a point and a normal vector and a line defined by a point and a direction vector. - * - * @param planePoint A point on the plane. - * @param planeNormal The normal vector of the plane. - * @param linePoint A point on the line. - * @param lineDirection The direction vector of the line. - * @param limit - * @return The point of intersection between the line and the plane, null if the line is parallel to the plane. - */ -export declare function intersection3dPlaneLineIntersectionAdvanced(planePoint: Vector3, planeNormal: Vector3, linePoint: Vector3, lineDirection: Vector3, limit?: number): null | ReadonlySimpleVector3; -//# sourceMappingURL=intersects-3d.d.ts.map \ No newline at end of file diff --git a/dist/physics/intersects-3d.d.ts.map b/dist/physics/intersects-3d.d.ts.map deleted file mode 100644 index 3433ab4c..00000000 --- a/dist/physics/intersects-3d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-3d.d.ts","sourceRoot":"","sources":["../../src/physics/intersects-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAExE,wBAAgB,0BAA0B,CACtC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACZ,OAAO,CAQT;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CACxC,EAAE,EAAE,aAAa,EACjB,EAAE,EAAE,aAAa,EACjB,EAAE,EAAE,aAAa,EACjB,EAAE,EAAE,aAAa,EACjB,EAAE,EAAE,aAAa,EACjB,KAAK,SAAO,GACb,OAAO,CAqBT;AAED,wBAAgB,uBAAuB,CACnC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,EACtB,KAAK,CAAC,EAAE,MAAM,GACf,IAAI,GAAG,qBAAqB,CAQ9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,2CAA2C,CACvD,UAAU,EAAE,OAAO,EACnB,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,OAAO,EACtB,KAAK,SAAO,GACb,IAAI,GAAG,qBAAqB,CAS9B"} \ No newline at end of file diff --git a/dist/physics/intersects-3d.js b/dist/physics/intersects-3d.js deleted file mode 100644 index c9d97c56..00000000 --- a/dist/physics/intersects-3d.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intersection3dPlaneLineIntersectionAdvanced = exports.intersection3dPlaneLine = exports.intersection3dVectorSquare_2 = exports.intersection3dVectorSquare = void 0; -var math_1 = require("../math"); -function intersection3dVectorSquare(r1x, r1y, r1z, r2x, r2y, r2z, s1x, s1y, s1z, s2x, s2y, s2z, s3x, s3y, s3z) { - return intersection3dVectorSquare_2(new math_1.Vector3(r1x, r1y, r1z), new math_1.Vector3(r2x, r2y, r2z), new math_1.Vector3(s1x, s1y, s1z), new math_1.Vector3(s2x, s2y, s2z), new math_1.Vector3(s3x, s3y, s3z)); -} -exports.intersection3dVectorSquare = intersection3dVectorSquare; -function intersection3dVectorSquare_2(R1, R2, S1, S2, S3, limit) { - if (limit === void 0) { limit = 1e-6; } - var dS21 = math_1.Vector3.sub(S2, S1); - var dS31 = math_1.Vector3.sub(S3, S1); - var squareNormal = dS21.cross(dS31); - var dR = math_1.Vector3.sub(R1, R2); - var ndotdR = squareNormal.dot(dR); - if (Math.abs(ndotdR) < limit) { - return false; - } - var t = -squareNormal.dot(math_1.Vector3.sub(R1, S1)) / ndotdR; - var M = math_1.Vector3.sub(R1, dR.mul(t)); - var dMS1 = M.sub(S1); - var u = dMS1.dot(dS21); - var v = dMS1.dot(dS31); - return (u >= 0 && u <= dS21.dot(dS21) && v >= 0 && v <= dS31.dot(dS31)); -} -exports.intersection3dVectorSquare_2 = intersection3dVectorSquare_2; -function intersection3dPlaneLine(planePointX, planePointY, planePointZ, planeNormalX, planeNormalY, planeNormalZ, linePointX, linePointY, linePointZ, lineDirectionX, lineDirectionY, lineDirectionZ, limit) { - return intersection3dPlaneLineIntersectionAdvanced(new math_1.Vector3(planePointX, planePointY, planePointZ), new math_1.Vector3(planeNormalX, planeNormalY, planeNormalZ), new math_1.Vector3(linePointX, linePointY, linePointZ), new math_1.Vector3(lineDirectionX, lineDirectionY, lineDirectionZ), limit); -} -exports.intersection3dPlaneLine = intersection3dPlaneLine; -function intersection3dPlaneLineIntersectionAdvanced(planePoint, planeNormal, linePoint, lineDirection, limit) { - if (limit === void 0) { limit = 1e-6; } - lineDirection.normalize(); - if (planeNormal.dot(lineDirection) < limit) { - return null; - } - var t = (planeNormal.dot(planePoint) - planeNormal.dot(linePoint)) / planeNormal.dot(lineDirection); - return linePoint.add(lineDirection.mul(t)); -} -exports.intersection3dPlaneLineIntersectionAdvanced = intersection3dPlaneLineIntersectionAdvanced; -//# sourceMappingURL=intersects-3d.js.map \ No newline at end of file diff --git a/dist/physics/intersects-3d.js.map b/dist/physics/intersects-3d.js.map deleted file mode 100644 index cda3a583..00000000 --- a/dist/physics/intersects-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intersects-3d.js","sourceRoot":"","sources":["../../src/physics/intersects-3d.ts"],"names":[],"mappings":";;;AAAA,gCAAwE;AAExE,SAAgB,0BAA0B,CACtC,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW,EACX,GAAW;IAEX,OAAO,4BAA4B,CAC/B,IAAI,cAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,cAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC1B,IAAI,cAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,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ule.d.ts b/dist/physics/objects/2d/capsule.d.ts deleted file mode 100644 index 8c1d5ce4..00000000 --- a/dist/physics/objects/2d/capsule.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { MinMax2D } from "gtools/types"; -import { MassAble2D } from "./object2-d"; -/** - * https://github.com/schteppe/p2.js/blob/master/src/shapes/Capsule.js - */ -export declare class Capsule implements MassAble2D { - private readonly start; - private readonly end; - private readonly radius; - constructor(start: SimpleVector2, end: SimpleVector2, radius: number); - get boundingRadius(): number; - get area(): number; - get circuit(): number; - toMinMax(): MinMax2D; - get momentOfInertia(): number; - get length(): number; -} -//# sourceMappingURL=capsule.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/capsule.d.ts.map b/dist/physics/objects/2d/capsule.d.ts.map deleted file mode 100644 index e3f1c67c..00000000 --- a/dist/physics/objects/2d/capsule.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"capsule.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/capsule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,qBAAa,OAAQ,YAAW,UAAU;IAElC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,MAAM;IAInC,IAAW,cAAc,IAAI,MAAM,CAElC;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAEM,QAAQ,IAAI,QAAQ;IAI3B,IAAW,eAAe,IAAI,MAAM,CAwBnC;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;CACJ"} \ No newline at end of file diff --git a/dist/physics/objects/2d/capsule.js b/dist/physics/objects/2d/capsule.js deleted file mode 100644 index 3ec36267..00000000 --- a/dist/physics/objects/2d/capsule.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Capsule = void 0; -var math_1 = require("gtools/math"); -var Capsule = (function () { - function Capsule(start, end, radius) { - this.start = start; - this.end = end; - this.radius = radius; - } - Object.defineProperty(Capsule.prototype, "boundingRadius", { - get: function () { - return this.radius + this.length / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "area", { - get: function () { - return Math.PI * this.radius * this.radius + this.radius * 2 * this.length; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "circuit", { - get: function () { - return 2 * Math.PI * this.radius + 2 * math_1.Vector2.dist(this.start, this.end); - }, - enumerable: false, - configurable: true - }); - Capsule.prototype.toMinMax = function () { - throw new Error("Not implemented"); - }; - Object.defineProperty(Capsule.prototype, "momentOfInertia", { - get: function () { - var boxI = function (w, h) { return w * h * (Math.pow(w, 2) + Math.pow(h, 2)) / 12; }; - var semiA = function (r) { return Math.PI * Math.pow(r, 2) / 2; }; - var semiI = function (r) { return ((Math.PI / 4) - (8 / (9 * Math.PI))) * Math.pow(r, 4); }; - var semiC = function (r) { return (4 * r) / (3 * Math.PI); }; - var capsuleA = function (l, r) { return l * 2 * r + Math.PI * Math.pow(r, 2); }; - var capsuleI = function (l, r) { - var d = l / 2 + semiC(r); - return boxI(l, 2 * r) + 2 * (semiI(r) + semiA(r) * Math.pow(d, 2)); - }; - var length = this.length; - var area = capsuleA(length, this.radius); - return (area > 0) ? capsuleI(length, this.radius) / area : 0; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Capsule.prototype, "length", { - get: function () { - return math_1.Vector2.dist(this.start, this.end); - }, - enumerable: false, - configurable: true - }); - return Capsule; -}()); -exports.Capsule = Capsule; -//# sourceMappingURL=capsule.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/capsule.js.map b/dist/physics/objects/2d/capsule.js.map deleted file mode 100644 index 11ac1eb0..00000000 --- a/dist/physics/objects/2d/capsule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"capsule.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/capsule.ts"],"names":[],"mappings":";;;AAAA,oCAAqD;AAOrD;IACI,iBACqB,KAAoB,EACpB,GAAkB,EAClB,MAAc;QAFd,UAAK,GAAL,KAAK,CAAe;QACpB,QAAG,GAAH,GAAG,CAAe;QAClB,WAAM,GAAN,MAAM,CAAQ;IAEnC,CAAC;IAED,sBAAW,mCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QACzC,CAAC;;;OAAA;IAED,sBAAW,yBAAI;aAAf;YACI,OAAO,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/E,CAAC;;;OAAA;IAED,sBAAW,4BAAO;aAAlB;YACI,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9E,CAAC;;;OAAA;IAEM,0BAAQ,GAAf;QACI,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED,sBAAW,oCAAe;aAA1B;YAEI,IAAM,IAAI,GAAG,UAAC,CAAS,EAAE,CAAS,IAAa,OAAA,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE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C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAE7C,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,CAAC;;;OAAA;IAED,sBAAW,2BAAM;aAAjB;YACI,OAAO,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,CAAC;;;OAAA;IACL,cAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,0BAAO"} \ No newline at end of file diff --git a/dist/physics/objects/2d/line.d.ts b/dist/physics/objects/2d/line.d.ts deleted file mode 100644 index db96012d..00000000 --- a/dist/physics/objects/2d/line.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { MinMax2D } from "gtools/types"; -import { Object2D } from "./object2-d"; -/** - * https://github.com/schteppe/p2.js/blob/master/src/shapes/Line.js - */ -export declare class Line implements Object2D { - readonly pointA: SimpleVector2; - readonly pointB: SimpleVector2; - constructor(pointA: SimpleVector2, pointB: SimpleVector2); - get length(): number; - angle(): number; - get boundingRadius(): number; - static fromPoints(aX: number, aY: number, bX: number, bY: number): Line; - get momentOfInertia(): number; - toMinMax(): MinMax2D; -} -//# sourceMappingURL=line.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/line.d.ts.map b/dist/physics/objects/2d/line.d.ts.map deleted file mode 100644 index 9983c68f..00000000 --- a/dist/physics/objects/2d/line.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,qBAAa,IAAK,YAAW,QAAQ;aACE,MAAM,EAAE,aAAa;aACrB,MAAM,EAAE,aAAa;gBADrB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa;IAGxD,IAAW,MAAM,IAAI,MAAM,CAE1B;IAIM,KAAK,IAAI,MAAM;IAOtB,IAAW,cAAc,IAAI,MAAM,CAElC;WAGa,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAa9E,IAAW,eAAe,IAAI,MAAM,CAEnC;IAEM,QAAQ,IAAI,QAAQ;CAM9B"} \ No newline at end of file diff --git a/dist/physics/objects/2d/line.js b/dist/physics/objects/2d/line.js deleted file mode 100644 index 32492f49..00000000 --- a/dist/physics/objects/2d/line.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Line = void 0; -var math_1 = require("gtools/math"); -var Line = (function () { - function Line(pointA, pointB) { - this.pointA = pointA; - this.pointB = pointB; - } - Object.defineProperty(Line.prototype, "length", { - get: function () { - return math_1.Vector2.dist(this.pointA, this.pointB); - }, - enumerable: false, - configurable: true - }); - Line.prototype.angle = function () { - return Math.atan2(this.pointB.y - this.pointA.y, this.pointB.x - this.pointA.x); - }; - Object.defineProperty(Line.prototype, "boundingRadius", { - get: function () { - return this.length / 2; - }, - enumerable: false, - configurable: true - }); - Line.fromPoints = function (aX, aY, bX, bY) { - return new Line({ - x: aX, - y: aY, - }, { - x: bX, - y: bY, - }); - }; - Object.defineProperty(Line.prototype, "momentOfInertia", { - get: function () { - return Math.pow(this.length, 2) / 12; - }, - enumerable: false, - configurable: true - }); - Line.prototype.toMinMax = function () { - return { - min: math_1.Vector2.min(this.pointA, this.pointB), - max: math_1.Vector2.max(this.pointA, this.pointB), - }; - }; - return Line; -}()); -exports.Line = Line; -//# sourceMappingURL=line.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/line.js.map b/dist/physics/objects/2d/line.js.map deleted file mode 100644 index 0dbc534a..00000000 --- a/dist/physics/objects/2d/line.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/line.ts"],"names":[],"mappings":";;;AAAA,oCAAqD;AAOrD;IACI,cAAmC,MAAqB,EACrB,MAAqB;QADrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;IACxD,CAAC;IAED,sBAAW,wBAAM;aAAjB;YACI,OAAO,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC;;;OAAA;IAIM,oBAAK,GAAZ;QACI,OAAO,IAAI,CAAC,KAAK,CACb,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAC7B,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAChC,CAAC;IACN,CAAC;IAED,sBAAW,gCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3B,CAAC;;;OAAA;IAGa,eAAU,GAAxB,UAAyB,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU;QACnE,OAAO,IAAI,IAAI,CACX;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,EACD;YACI,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACR,CACJ,CAAC;IACN,CAAC;IAED,sBAAW,iCAAe;aAA1B;YACI,OAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;QAC1C,CAAC;;;OAAA;IAEM,uBAAQ,GAAf;QACI,OAAO;YACH,GAAG,EAAE,cAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;YAC1C,GAAG,EAAE,cAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;SAC7C,CAAC;IACN,CAAC;IACL,WAAC;AAAD,CAAC,AA9CD,IA8CC;AA9CY,oBAAI"} \ No newline at end of file diff --git a/dist/physics/objects/2d/object2-d.d.ts b/dist/physics/objects/2d/object2-d.d.ts deleted file mode 100644 index de9e2b5e..00000000 --- a/dist/physics/objects/2d/object2-d.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { MinMax2D } from "gtools/types"; -import { Ray2D, RayCast } from "./ray-2d"; -export interface Object2D { - readonly momentOfInertia: number; - readonly boundingRadius: number; - rayCast?(ray: Ray2D, result: RayCast): void; - toMinMax(): MinMax2D; -} -export interface MassAble2D extends Object2D { - readonly area: number; - readonly circuit: number; -} -//# sourceMappingURL=object2-d.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/object2-d.d.ts.map b/dist/physics/objects/2d/object2-d.d.ts.map deleted file mode 100644 index 498cedaa..00000000 --- a/dist/physics/objects/2d/object2-d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object2-d.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/object2-d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,QAAQ,IAAI,QAAQ,CAAC;CACxB;AAED,MAAM,WAAW,UAAW,SAAQ,QAAQ;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/physics/objects/2d/object2-d.js b/dist/physics/objects/2d/object2-d.js deleted file mode 100644 index fc010912..00000000 --- a/dist/physics/objects/2d/object2-d.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=object2-d.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/object2-d.js.map b/dist/physics/objects/2d/object2-d.js.map deleted file mode 100644 index 13e32a82..00000000 --- a/dist/physics/objects/2d/object2-d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object2-d.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/object2-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/physics/objects/2d/ray-2d.d.ts b/dist/physics/objects/2d/ray-2d.d.ts deleted file mode 100644 index b5f7e89e..00000000 --- a/dist/physics/objects/2d/ray-2d.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { SimpleVector2, Vector2 } from "../../../math"; -export declare class Ray2D { - readonly origin: SimpleVector2; - readonly direction: SimpleVector2; - readonly length: number; - constructor(origin: SimpleVector2, direction: SimpleVector2, length?: number); - get end(): SimpleVector2; - static fromLine(start: SimpleVector2, end: SimpleVector2): Ray2D; -} -export declare enum RayMode { - /** - * This raycasting mode will make the Ray2D stop when it finds the first intersection point. - */ - ANY = "ANY", - /** - * This raycasting mode will make the Ray2D traverse through all intersection points and only return the closest one. - */ - CLOSEST = "CLOSEST", - /** - * This raycasting mode will traverse all intersection points and executes a callback for each one. - */ - ALL = "ALL" -} -export declare class RaycastResult { - readonly normal: Vector2; - shape?: any; - body?: any; - faceIndex: number; - fraction: number; - isStopped: boolean; - reset(): void; - getHitDistance(ray: RayCast): number; - hasHit(): boolean; - getHitPoint(ray: RayCast): SimpleVector2; - stop(): void; - shouldStop(ray: RayCast): boolean; - set(normal: SimpleVector2, shape: any, body: any, fraction: number, faceIndex: number): void; -} -export declare class RayCast { - readonly ray: Ray2D; - checkCollisionResponse: boolean; - skipBackfaces: boolean; - collisionMask: number; - collisionGroup: number; - mode: RayMode; - callback?: (arg: any) => any; - get from(): SimpleVector2; - get to(): SimpleVector2; - get direction(): SimpleVector2; - constructor(ray: Ray2D); - reportIntersection(result: RaycastResult, fraction: number, normal: SimpleVector2, faceIndex: number): void; -} -//# sourceMappingURL=ray-2d.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/ray-2d.d.ts.map b/dist/physics/objects/2d/ray-2d.d.ts.map deleted file mode 100644 index 38049ede..00000000 --- a/dist/physics/objects/2d/ray-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray-2d.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/ray-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAEvD,qBAAa,KAAK;aAEM,MAAM,EAAE,aAAa;aACrB,SAAS,EAAE,aAAa;aACxB,MAAM;gBAFN,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,aAAa,EACxB,MAAM,SAAW;IAIrC,IAAW,GAAG,IAAI,aAAa,CAE9B;WAEa,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,GAAG,KAAK;CAO1E;AAED,oBAAY,OAAO;IAEf;;OAEG;IACH,GAAG,QAAY;IACf;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,GAAG,QAAY;CAClB;AAED,qBAAa,aAAa;IACtB,SAAgB,MAAM,UAAiB;IAChC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,SAAY;IACrB,QAAQ,SAAa;IACrB,SAAS,UAAe;IAExB,KAAK,IAAI,IAAI;IASb,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IAIpC,MAAM,IAAI,OAAO;IAIjB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,aAAa;IAIxC,IAAI,IAAI,IAAI;IAIZ,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAIjC,GAAG,CACN,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,GAAG,EACV,IAAI,EAAE,GAAG,EACT,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAClB,IAAI;CAOV;AAED,qBAAa,OAAO;aAmBmB,GAAG,EAAE,KAAK;IAlBtC,sBAAsB,UAAQ;IAC9B,aAAa,UAAkB;IAC/B,aAAa,SAAe;IAC5B,cAAc,SAAc;IAC5B,IAAI,EAAE,OAAO,CAAwB;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;IAEpC,IAAW,IAAI,IAAI,aAAa,CAE/B;IAED,IAAW,EAAE,IAAI,aAAa,CAE7B;IACD,IAAW,SAAS,IAAI,aAAa,CAEpC;gBAEkC,GAAG,EAAE,KAAK;IAGtC,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAiDrH"} \ No newline at end of file diff --git a/dist/physics/objects/2d/ray-2d.js b/dist/physics/objects/2d/ray-2d.js deleted file mode 100644 index 85f0faa8..00000000 --- a/dist/physics/objects/2d/ray-2d.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RayCast = exports.RaycastResult = exports.RayMode = exports.Ray2D = void 0; -var math_1 = require("../../../math"); -var Ray2D = (function () { - function Ray2D(origin, direction, length) { - if (length === void 0) { length = Infinity; } - this.origin = origin; - this.direction = direction; - this.length = length; - } - Object.defineProperty(Ray2D.prototype, "end", { - get: function () { - return math_1.Vector2.from(this.direction.x, this.direction.y).mul(this.length).add(this.origin); - }, - enumerable: false, - configurable: true - }); - Ray2D.fromLine = function (start, end) { - var direction = math_1.Vector2.sub(end, start); - var length = direction.length; - return new Ray2D(start, math_1.Vector2.normalize(direction), length); - }; - return Ray2D; -}()); -exports.Ray2D = Ray2D; -var RayMode; -(function (RayMode) { - RayMode["ANY"] = "ANY"; - RayMode["CLOSEST"] = "CLOSEST"; - RayMode["ALL"] = "ALL"; -})(RayMode = exports.RayMode || (exports.RayMode = {})); -var RaycastResult = (function () { - function RaycastResult() { - this.normal = new math_1.Vector2(); - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - } - RaycastResult.prototype.reset = function () { - this.normal.setData(0, 0); - this.shape = null; - this.body = null; - this.faceIndex = -1; - this.fraction = -1; - this.isStopped = false; - }; - RaycastResult.prototype.getHitDistance = function (ray) { - return math_1.Vector2.dist(ray.from, ray.to) * this.fraction; - }; - RaycastResult.prototype.hasHit = function () { - return this.fraction !== -1; - }; - RaycastResult.prototype.getHitPoint = function (ray) { - return math_1.Vector2.lerp(ray.from, ray.to, this.fraction); - }; - RaycastResult.prototype.stop = function () { - this.isStopped = true; - }; - RaycastResult.prototype.shouldStop = function (ray) { - return this.isStopped || (this.fraction !== -1 && ray.mode === RayMode.ANY); - }; - RaycastResult.prototype.set = function (normal, shape, body, fraction, faceIndex) { - this.normal.set(normal); - this.shape = shape; - this.body = body; - this.fraction = fraction; - this.faceIndex = faceIndex; - }; - return RaycastResult; -}()); -exports.RaycastResult = RaycastResult; -var RayCast = (function () { - function RayCast(ray) { - this.ray = ray; - this.checkCollisionResponse = true; - this.skipBackfaces = false; - this.collisionMask = -1; - this.collisionGroup = -1; - this.mode = RayMode.ANY; - } - Object.defineProperty(RayCast.prototype, "from", { - get: function () { - return this.ray.origin; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(RayCast.prototype, "to", { - get: function () { - return this.ray.end; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(RayCast.prototype, "direction", { - get: function () { - return this.ray.direction; - }, - enumerable: false, - configurable: true - }); - RayCast.prototype.reportIntersection = function (result, fraction, normal, faceIndex) { - var shape = null; - var body = null; - if (this.skipBackfaces && math_1.Vector2.dot(normal, this.ray.direction) > 0) { - return; - } - switch (this.mode) { - case RayMode.ALL: - result.set(normal, shape, body, fraction, faceIndex); - this.callback && this.callback(result); - break; - case RayMode.CLOSEST: - if (fraction < result.fraction || !result.hasHit()) { - result.set(normal, shape, body, fraction, faceIndex); - } - break; - case RayMode.ANY: - result.set(normal, shape, body, fraction, faceIndex); - break; - } - }; - return RayCast; -}()); -exports.RayCast = RayCast; -//# sourceMappingURL=ray-2d.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/ray-2d.js.map b/dist/physics/objects/2d/ray-2d.js.map deleted file mode 100644 index 0938e016..00000000 --- a/dist/physics/objects/2d/ray-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray-2d.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/ray-2d.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AAEvD;IACI,eACoB,MAAqB,EACrB,SAAwB,EACxB,MAAiB;QAAjB,uBAAA,EAAA,iBAAiB;QAFjB,WAAM,GAAN,MAAM,CAAe;QACrB,cAAS,GAAT,SAAS,CAAe;QACxB,WAAM,GAAN,MAAM,CAAW;IAErC,CAAC;IAED,sBAAW,sBAAG;aAAd;YACI,OAAO,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9F,CAAC;;;OAAA;IAEa,cAAQ,GAAtB,UAAuB,KAAoB,EAAE,GAAkB;QAC3D,IAAM,SAAS,GAAG,cAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC1C,IAAM,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AkB,GAAzB,UAA0B,MAAqB,EAAE,QAAgB,EAAE,MAAqB,EAAE,SAAiB;QACvG,IAAM,KAAK,GAAG,IAAI,CAAC;QACnB,IAAM,IAAI,GAAI,IAAI,CAAC;QAGnB,IAAI,IAAI,CAAC,aAAa,IAAI,cAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YACnE,OAAO;SACV;QAED,QAAQ,IAAI,CAAC,IAAI,EAAE;YAEf,KAAK,OAAO,CAAC,GAAG;gBACZ,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;gBACF,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBACvC,MAAM;YAEV,KAAK,OAAO,CAAC,OAAO;gBAGhB,IAAI,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE;oBAChD,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;iBACL;gBACD,MAAM;YAEV,KAAK,OAAO,CAAC,GAAG;gBAGZ,MAAM,CAAC,GAAG,CACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,CACZ,CAAC;gBACF,MAAM;SACb;IACL,CAAC;IACL,cAAC;AAAD,CAAC,AAvED,IAuEC;AAvEY,0BAAO"} \ No newline at end of file diff --git a/dist/physics/objects/2d/rect.d.ts b/dist/physics/objects/2d/rect.d.ts deleted file mode 100644 index 27c6dd52..00000000 --- a/dist/physics/objects/2d/rect.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SimpleVector2 } from "../../../math"; -import { MinMax2D } from "gtools/types"; -import { MassAble2D } from "./object2-d"; -import { Ray2D } from "./ray-2d"; -import { Sphere } from "./sphere"; -/** - * https://github.com/schteppe/p2.js/blob/master/src/shapes/Box.js - */ -export declare class Rect implements MassAble2D { - readonly position: SimpleVector2; - readonly size: SimpleVector2; - constructor(position: SimpleVector2, size: SimpleVector2); - get area(): number; - get momentOfInertia(): number; - get boundingRadius(): number; - get circuit(): number; - toMinMax(): MinMax2D; - static fromSphere({ radius, center }: Pick): Rect; - static fromRay({ origin, direction, length }: Pick, realLength?: number): Rect; - static fromPoints(points: SimpleVector2[], offsetX?: number, offsetY?: number): Rect; - static fromMinMax({ min, max }: MinMax2D): Rect; -} -//# sourceMappingURL=rect.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/rect.d.ts.map b/dist/physics/objects/2d/rect.d.ts.map deleted file mode 100644 index b42c2ef8..00000000 --- a/dist/physics/objects/2d/rect.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rect.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,qBAAa,IAAK,YAAW,UAAU;aAEf,QAAQ,EAAE,aAAa;aACvB,IAAI,EAAE,aAAa;gBADnB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,aAAa;IAIvC,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,IAAW,cAAc,IAAI,MAAM,CAElC;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAEM,QAAQ,IAAI,QAAQ;WAIb,UAAU,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG,IAAI;WAarE,OAAO,CAAC,EAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAC,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC,EAAE,UAAU,SAAS,GAAG,IAAI;WAqB/G,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,OAAO,SAAI,EAAE,OAAO,SAAU,GAAG,IAAI;WAmBzE,UAAU,CAAC,EAAC,GAAG,EAAE,GAAG,EAAC,EAAE,QAAQ,GAAG,IAAI;CAQvD"} \ No newline at end of file diff --git a/dist/physics/objects/2d/rect.js b/dist/physics/objects/2d/rect.js deleted file mode 100644 index 196cbf17..00000000 --- a/dist/physics/objects/2d/rect.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Rect = void 0; -var math_1 = require("../../../math"); -var object_convertors_1 = require("../object-convertors"); -var Rect = (function () { - function Rect(position, size) { - this.position = position; - this.size = size; - } - Object.defineProperty(Rect.prototype, "area", { - get: function () { - return this.size.x * this.size.y; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "momentOfInertia", { - get: function () { - return (this.size.x * this.size.x + this.size.y * this.size.y) / 12; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "boundingRadius", { - get: function () { - return Math.sqrt(this.size.x * this.size.x + this.size.y * this.size.y) / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Rect.prototype, "circuit", { - get: function () { - return this.size.x + this.size.x + this.size.y + this.size.y; - }, - enumerable: false, - configurable: true - }); - Rect.prototype.toMinMax = function () { - return object_convertors_1.convertPosSizeToMinMax(this); - }; - Rect.fromSphere = function (_a) { - var radius = _a.radius, center = _a.center; - return Rect.fromMinMax({ - min: { - x: center.x - radius, - y: center.y - radius, - }, - max: { - x: center.x + radius, - y: center.y + radius, - }, - }); - }; - Rect.fromRay = function (_a, realLength) { - var origin = _a.origin, direction = _a.direction, length = _a.length; - if (realLength === void 0) { realLength = length; } - if (realLength === Infinity) { - throw new Error("Cannot create rectangle from infinite ray"); - } - var end = { - x: origin.x + direction.x * realLength, - y: origin.y + direction.y * realLength, - }; - return Rect.fromMinMax({ - min: { - x: Math.min(end.x, origin.x), - y: Math.min(end.y, origin.y), - }, - max: { - x: Math.max(end.x, origin.x), - y: Math.max(end.y, origin.y), - }, - }); - }; - Rect.fromPoints = function (points, offsetX, offsetY) { - if (offsetX === void 0) { offsetX = 0; } - if (offsetY === void 0) { offsetY = offsetX; } - var range = math_1.Vector2.createOutlineRange(points); - if (!offsetX && !offsetY) { - return Rect.fromMinMax(range); - } - return Rect.fromMinMax({ - min: { - x: range.min.x - offsetX, - y: range.min.y - offsetY, - }, - max: { - x: range.max.x + offsetX, - y: range.max.y + offsetY, - }, - }); - }; - Rect.fromMinMax = function (_a) { - var min = _a.min, max = _a.max; - var size = { - x: max.x - min.x, - y: max.y - min.y, - }; - return new Rect(Object.assign({}, min), size); - }; - return Rect; -}()); -exports.Rect = Rect; -//# sourceMappingURL=rect.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/rect.js.map b/dist/physics/objects/2d/rect.js.map deleted file mode 100644 index ee131d45..00000000 --- a/dist/physics/objects/2d/rect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rect.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/rect.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AAEvD,0DAA8D;AAQ9D;IACI,cACoB,QAAuB,EACvB,IAAmB;QADnB,aAAQ,GAAR,QAAQ,CAAe;QACvB,SAAI,GAAJ,IAAI,CAAe;IAEvC,CAAC;IAED,sBAAW,sBAAI;aAAf;YACI,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACrC,CAAC;;;OAAA;IAED,sBAAW,iCAAe;aAA1B;YACI,OAAO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BACD,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;gBACxB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;IAEa,eAAU,GAAxB,UAAyB,EAAoB;YAAnB,GAAG,SAAA,EAAE,GAAG,SAAA;QAC9B,IAAM,IAAI,GAAG;YACT,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB,CAAC;QAEF,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,WAAC;AAAD,CAAC,AAxFD,IAwFC;AAxFY,oBAAI"} \ No newline at end of file diff --git a/dist/physics/objects/2d/sphere.d.ts b/dist/physics/objects/2d/sphere.d.ts deleted file mode 100644 index 04d7d7ef..00000000 --- a/dist/physics/objects/2d/sphere.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { SimpleVector2 } from "../../../math"; -import { MinMax2D, PosSize2d } from "gtools/types"; -import { MassAble2D } from "./object2-d"; -import { RayCast, RaycastResult } from "./ray-2d"; -/** - * https://github.com/schteppe/p2.js/blob/master/src/shapes/Circle.js - */ -export declare class Sphere implements MassAble2D { - readonly radius: number; - readonly center: SimpleVector2; - constructor(radius: number, center: SimpleVector2); - get circuit(): number; - get momentOfInertia(): number; - get boundingRadius(): number; - get area(): number; - static fromMinMax({ min, max }: MinMax2D, chooseSize?: "min" | "max"): Sphere; - static fromPosSize(posSize: PosSize2d, chooseSize?: "min" | "max"): Sphere; - toMinMax(): MinMax2D; - raycast(result: RaycastResult, ray: RayCast): void; -} -//# sourceMappingURL=sphere.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/sphere.d.ts.map b/dist/physics/objects/2d/sphere.d.ts.map deleted file mode 100644 index 82fe8c0a..00000000 --- a/dist/physics/objects/2d/sphere.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sphere.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/sphere.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,qBAAa,MAAO,YAAW,UAAU;aAEjB,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,aAAa;gBADrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,aAAa;IAIzC,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED,IAAW,eAAe,IAAI,MAAM,CAInC;IAED,IAAW,cAAc,IAAI,MAAM,CAElC;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;WAEa,UAAU,CAAC,EAAC,GAAG,EAAE,GAAG,EAAC,EAAE,QAAQ,EAAE,UAAU,GAAE,KAAK,GAAG,KAAa,GAAG,MAAM;WAc3E,WAAW,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,GAAE,KAAK,GAAG,KAAa,GAAG,MAAM;IAIjF,QAAQ,IAAI,QAAQ;IAOpB,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI;CA0D5D"} \ No newline at end of file diff --git a/dist/physics/objects/2d/sphere.js b/dist/physics/objects/2d/sphere.js deleted file mode 100644 index 2c8aab4c..00000000 --- a/dist/physics/objects/2d/sphere.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Sphere = void 0; -var math_1 = require("../../../math"); -var object_convertors_1 = require("../object-convertors"); -var Sphere = (function () { - function Sphere(radius, center) { - this.radius = radius; - this.center = center; - } - Object.defineProperty(Sphere.prototype, "circuit", { - get: function () { - return 2 * Math.PI * this.radius; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "momentOfInertia", { - get: function () { - var r = this.radius; - return r * r / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "boundingRadius", { - get: function () { - return this.radius; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Sphere.prototype, "area", { - get: function () { - return Math.PI * this.radius * this.radius; - }, - enumerable: false, - configurable: true - }); - Sphere.fromMinMax = function (_a, chooseSize) { - var min = _a.min, max = _a.max; - if (chooseSize === void 0) { chooseSize = "max"; } - var center = { - x: (min.x + max.x) / 2, - y: (min.y + max.y) / 2, - }; - var sizeX = max.x - min.x; - var sizeY = max.y - min.y; - var radius = chooseSize === "min" ? Math.min(sizeX, sizeY) : Math.max(sizeX, sizeY); - return new Sphere(radius, center); - }; - Sphere.fromPosSize = function (posSize, chooseSize) { - if (chooseSize === void 0) { chooseSize = "max"; } - return Sphere.fromMinMax(object_convertors_1.convertPosSizeToMinMax(posSize), chooseSize); - }; - Sphere.prototype.toMinMax = function () { - return { - min: math_1.Vector2.addNum(this.center, -this.radius), - max: math_1.Vector2.addNum(this.center, this.radius), - }; - }; - Sphere.prototype.raycast = function (result, ray) { - var from = ray.from; - var to = ray.to; - var r = this.radius; - var position = new math_1.Vector2(this.center.x, this.center.y); - var a = Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2); - var b = 2 * ((to.x - from.x) * (from.x - position.x) + (to.y - from.y) * (from.y - position.y)); - var c = Math.pow(from.x - position.x, 2) + Math.pow(from.y - position.y, 2) - Math.pow(r, 2); - var delta = Math.pow(b, 2) - 4 * a * c; - var intersectionPoint = new math_1.Vector2(); - var normal = new math_1.Vector2(); - if (delta < 0) { - return; - } - if (delta === 0) { - intersectionPoint.set(math_1.Vector2.lerp(from, to, delta)); - math_1.Vector2.sub(intersectionPoint, position, normal); - math_1.Vector2.normalize(normal, normal); - ray.reportIntersection(result, delta, normal, -1); - } - else { - var sqrtDelta = Math.sqrt(delta); - var inv2a = 1 / (2 * a); - var d1 = (-b - sqrtDelta) * inv2a; - var d2 = (-b + sqrtDelta) * inv2a; - if (d1 >= 0 && d1 <= 1) { - intersectionPoint.set(math_1.Vector2.lerp(from, to, d1)); - math_1.Vector2.sub(intersectionPoint, position, normal); - math_1.Vector2.normalize(normal, normal); - ray.reportIntersection(result, d1, normal, -1); - if (result.shouldStop(ray)) { - return; - } - } - if (d2 >= 0 && d2 <= 1) { - intersectionPoint.set(math_1.Vector2.lerp(from, to, d2)); - math_1.Vector2.sub(intersectionPoint, position, normal); - math_1.Vector2.normalize(normal, normal); - ray.reportIntersection(result, d2, normal, -1); - } - } - }; - return Sphere; -}()); -exports.Sphere = Sphere; -//# sourceMappingURL=sphere.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/sphere.js.map b/dist/physics/objects/2d/sphere.js.map deleted file mode 100644 index 0ec58bf4..00000000 --- a/dist/physics/objects/2d/sphere.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sphere.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/sphere.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AAEvD,0DAA8D;AAO9D;IACI,gBACoB,MAAc,EACd,MAAqB;QADrB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAe;IAEzC,CAAC;IAED,sBAAW,2BAAO;aAAlB;YACI,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QACrC,CAAC;;;OAAA;IAED,sBAAW,mCAAe;aAA1B;YACI,IAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YAEtB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;;;OAAA;IAED,sBAAW,kCAAc;aAAzB;YACI,OAAO,IAAI,CAAC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,CAAC,CAAC,CAAC;gBAE/C,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBACxB,OAAO;iBACV;aACJ;YAED,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;gBACpB,iBAAiB,CAAC,GAAG,CAAC,cAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;gBAElD,cAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;gBACjD,cAAO,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAElC,GAAG,CAAC,kBAAkB,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;aAClD;SACJ;IACL,CAAC;IACL,aAAC;AAAD,CAAC,AA5GD,IA4GC;AA5GY,wBAAM"} \ No newline at end of file diff --git a/dist/physics/objects/2d/triangle.d.ts b/dist/physics/objects/2d/triangle.d.ts deleted file mode 100644 index 4dfa3242..00000000 --- a/dist/physics/objects/2d/triangle.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { MinMax2D } from "gtools/types"; -import { MassAble2D } from "./object2-d"; -/** - * https://github.com/schteppe/p2.js/blob/master/src/shapes/Convex.js - */ -export declare class Triangle implements MassAble2D { - private readonly pointA; - private readonly pointB; - private readonly pointC; - constructor(pointA: SimpleVector2, pointB: SimpleVector2, pointC: SimpleVector2); - get area(): number; - get boundingRadius(): number; - get circuit(): number; - /** - * http://www.gamedev.net/topic/342822-moment-of-inertia-of-a-polygon-2d/ - */ - get momentOfInertia(): number; - toMinMax(): MinMax2D; -} -//# sourceMappingURL=triangle.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/2d/triangle.d.ts.map b/dist/physics/objects/2d/triangle.d.ts.map deleted file mode 100644 index 12737d76..00000000 --- a/dist/physics/objects/2d/triangle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triangle.d.ts","sourceRoot":"","sources":["../../../../src/physics/objects/2d/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,qBAAa,QAAS,YAAW,UAAU;IAEnC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa;IAI1C,IAAW,IAAI,IAAI,MAAM,CAKxB;IAED,IAAW,cAAc,IAAI,MAAM,CAOlC;IAED,IAAW,OAAO,IAAI,MAAM,CAI3B;IAED;;OAEG;IACH,IAAW,eAAe,IAAI,MAAM,CAEnC;IAEM,QAAQ,IAAI,QAAQ;CAG9B"} \ No newline at end of file diff --git a/dist/physics/objects/2d/triangle.js b/dist/physics/objects/2d/triangle.js deleted file mode 100644 index 507caf7e..00000000 --- a/dist/physics/objects/2d/triangle.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Triangle = void 0; -var math_1 = require("gtools/math"); -var Triangle = (function () { - function Triangle(pointA, pointB, pointC) { - this.pointA = pointA; - this.pointB = pointB; - this.pointC = pointC; - } - Object.defineProperty(Triangle.prototype, "area", { - get: function () { - return (((this.pointB.x - this.pointA.x) * (this.pointC.y - this.pointA.y)) - - ((this.pointC.x - this.pointA.x) * (this.pointB.y - this.pointA.y))) * 0.5; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "boundingRadius", { - get: function () { - return Math.max(math_1.Vector2.dist(this.pointA, this.pointB), math_1.Vector2.dist(this.pointB, this.pointC), math_1.Vector2.dist(this.pointA, this.pointC)) / 2; - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "circuit", { - get: function () { - return math_1.Vector2.dist(this.pointA, this.pointB) + - math_1.Vector2.dist(this.pointB, this.pointC) + - math_1.Vector2.dist(this.pointA, this.pointC); - }, - enumerable: false, - configurable: true - }); - Object.defineProperty(Triangle.prototype, "momentOfInertia", { - get: function () { - throw new Error("Not implemented"); - }, - enumerable: false, - configurable: true - }); - Triangle.prototype.toMinMax = function () { - return math_1.Vector2.createOutlineRange([this.pointA, this.pointB, this.pointC]); - }; - return Triangle; -}()); -exports.Triangle = Triangle; -//# sourceMappingURL=triangle.js.map \ No newline at end of file diff --git a/dist/physics/objects/2d/triangle.js.map b/dist/physics/objects/2d/triangle.js.map deleted file mode 100644 index 37fab728..00000000 --- a/dist/physics/objects/2d/triangle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triangle.js","sourceRoot":"","sources":["../../../../src/physics/objects/2d/triangle.ts"],"names":[],"mappings":";;;AAAA,oCAAqD;AAOrD;IACI,kBACqB,MAAqB,EACrB,MAAqB,EACrB,MAAqB;QAFrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;QACrB,WAAM,GAAN,MAAM,CAAe;IAE1C,CAAC;IAED,sBAAW,0BAAI;aAAf;YACI,OAAO,CACH,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBACnE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACtE,GAAG,GAAG,CAAC;QACZ,CAAC;;;OAAA;IAED,sBAAW,oCAAc;aAAzB;YACI,OAAO,IAAI,CAAC,GAAG,CACX,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EACtC,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EACtC,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CACzC,GAAG,CAAC,CAAC;QAEV,CAAC;;;OAAA;IAED,sBAAW,6BAAO;aAAlB;YACI,OAAO,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;gBACzC,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;gBACtC,cAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;;;OAAA;IAKD,sBAAW,qCAAe;aAA1B;YACI,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACvC,CAAC;;;OAAA;IAEM,2BAAQ,GAAf;QACI,OAAO,cAAO,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/E,CAAC;IACL,eAAC;AAAD,CAAC,AAxCD,IAwCC;AAxCY,4BAAQ"} \ No newline at end of file diff --git a/dist/physics/objects/index.d.ts b/dist/physics/objects/index.d.ts deleted file mode 100644 index 43a360e7..00000000 --- a/dist/physics/objects/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./2d/rect"; -export * from "./2d/sphere"; -export * from "./object-convertors"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/index.d.ts.map b/dist/physics/objects/index.d.ts.map deleted file mode 100644 index 765d4fce..00000000 --- a/dist/physics/objects/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/physics/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/physics/objects/index.js b/dist/physics/objects/index.js deleted file mode 100644 index d7f1606e..00000000 --- a/dist/physics/objects/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./2d/rect"), exports); -__exportStar(require("./2d/sphere"), exports); -__exportStar(require("./object-convertors"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/physics/objects/index.js.map b/dist/physics/objects/index.js.map deleted file mode 100644 index 4883aa9a..00000000 --- a/dist/physics/objects/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/physics/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B;AAC5B,sDAAoC"} \ No newline at end of file diff --git a/dist/physics/objects/object-convertors.d.ts b/dist/physics/objects/object-convertors.d.ts deleted file mode 100644 index 3fcab099..00000000 --- a/dist/physics/objects/object-convertors.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MinMax2D, PosSize2d } from "gtools/types"; -export declare function convertMinMaxToPosSize({ min, max }: MinMax2D): PosSize2d; -export declare function convertPosSizeToMinMax({ position, size }: PosSize2d): MinMax2D; -//# sourceMappingURL=object-convertors.d.ts.map \ No newline at end of file diff --git a/dist/physics/objects/object-convertors.d.ts.map b/dist/physics/objects/object-convertors.d.ts.map deleted file mode 100644 index 8431f2d4..00000000 --- a/dist/physics/objects/object-convertors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-convertors.d.ts","sourceRoot":"","sources":["../../../src/physics/objects/object-convertors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEnD,wBAAgB,sBAAsB,CAAC,EAAC,GAAG,EAAE,GAAG,EAAC,EAAE,QAAQ,GAAG,SAAS,CAWtE;AACD,wBAAgB,sBAAsB,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,EAAE,SAAS,GAAG,QAAQ,CAW5E"} \ No newline at end of file diff --git a/dist/physics/objects/object-convertors.js b/dist/physics/objects/object-convertors.js deleted file mode 100644 index 6129b4c7..00000000 --- a/dist/physics/objects/object-convertors.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertPosSizeToMinMax = exports.convertMinMaxToPosSize = void 0; -function convertMinMaxToPosSize(_a) { - var min = _a.min, max = _a.max; - return { - position: { - x: min.x, - y: min.y, - }, - size: { - x: max.x - min.x, - y: max.y - min.y, - }, - }; -} -exports.convertMinMaxToPosSize = convertMinMaxToPosSize; -function convertPosSizeToMinMax(_a) { - var position = _a.position, size = _a.size; - return { - min: { - x: position.x, - y: position.y, - }, - max: { - x: position.x + size.x, - y: position.y + size.y, - }, - }; -} -exports.convertPosSizeToMinMax = convertPosSizeToMinMax; -//# sourceMappingURL=object-convertors.js.map \ No newline at end of file diff --git a/dist/physics/objects/object-convertors.js.map b/dist/physics/objects/object-convertors.js.map deleted file mode 100644 index 9d55c790..00000000 --- a/dist/physics/objects/object-convertors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-convertors.js","sourceRoot":"","sources":["../../../src/physics/objects/object-convertors.ts"],"names":[],"mappings":";;;AAEA,SAAgB,sBAAsB,CAAC,EAAoB;QAAnB,GAAG,SAAA,EAAE,GAAG,SAAA;IAC5C,OAAO;QACH,QAAQ,EAAE;YACN,CAAC,EAAE,GAAG,CAAC,CAAC;YACR,CAAC,EAAE,GAAG,CAAC,CAAC;SACX;QACD,IAAI,EAAE;YACF,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;YAChB,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;SACnB;KACJ,CAAC;AACN,CAAC;AAXD,wDAWC;AACD,SAAgB,sBAAsB,CAAC,EAA2B;QAA1B,QAAQ,cAAA,EAAE,IAAI,UAAA;IAClD,OAAO;QACH,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC;YACb,CAAC,EAAE,QAAQ,CAAC,CAAC;SAChB;QACD,GAAG,EAAE;YACD,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;YACtB,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;SACzB;KACJ,CAAC;AACN,CAAC;AAXD,wDAWC"} \ No newline at end of file diff --git a/dist/tests/abstract-database.fixture.d.ts b/dist/tests/abstract-database.fixture.d.ts deleted file mode 100644 index 4bee0aa8..00000000 --- a/dist/tests/abstract-database.fixture.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { AbstractFixture } from "./abstract.fixture"; -import { AbstractMapper } from "./abstract.mapper"; -export declare abstract class AbstractDatabaseFixture extends AbstractFixture { - readonly listDto: ObjDto[]; - readonly detailDto: ObjDto; - protected constructor(list: Obj[], mapper: AbstractMapper); -} -//# sourceMappingURL=abstract-database.fixture.d.ts.map \ No newline at end of file diff --git a/dist/tests/abstract-database.fixture.d.ts.map b/dist/tests/abstract-database.fixture.d.ts.map deleted file mode 100644 index 1d4e2cc7..00000000 --- a/dist/tests/abstract-database.fixture.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-database.fixture.d.ts","sourceRoot":"","sources":["../../src/tests/abstract-database.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,8BAAsB,uBAAuB,CAAC,GAAG,EAAE,MAAM,CAAE,SAAQ,eAAe,CAAC,GAAG,CAAC;IACnF,SAAgB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAElC,SAAS,aAAa,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC;CAKzE"} \ No newline at end of file diff --git a/dist/tests/abstract-database.fixture.js b/dist/tests/abstract-database.fixture.js deleted file mode 100644 index 1f7ee7cb..00000000 --- a/dist/tests/abstract-database.fixture.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbstractDatabaseFixture = void 0; -var abstract_fixture_1 = require("./abstract.fixture"); -var AbstractDatabaseFixture = (function (_super) { - __extends(AbstractDatabaseFixture, _super); - function AbstractDatabaseFixture(list, mapper) { - var _this = _super.call(this, list) || this; - _this.listDto = list.map(mapper.mapToDto, mapper); - _this.detailDto = _this.listDto[0]; - return _this; - } - return AbstractDatabaseFixture; -}(abstract_fixture_1.AbstractFixture)); -exports.AbstractDatabaseFixture = AbstractDatabaseFixture; -//# sourceMappingURL=abstract-database.fixture.js.map \ No newline at end of file diff --git a/dist/tests/abstract-database.fixture.js.map b/dist/tests/abstract-database.fixture.js.map deleted file mode 100644 index 97ac3fb7..00000000 --- a/dist/tests/abstract-database.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract-database.fixture.js","sourceRoot":"","sources":["../../src/tests/abstract-database.fixture.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqD;AAGrD;IAAmE,2CAAoB;IAInF,iCAAsB,IAAW,EAAE,MAAmC;QAAtE,YACI,kBAAM,IAAI,CAAC,SAGd;QAFG,KAAI,CAAC,OAAO,GAAK,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACnD,KAAI,CAAC,SAAS,GAAG,KAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;;IACrC,CAAC;IACL,8BAAC;AAAD,CAAC,AATD,CAAmE,kCAAe,GASjF;AATqB,0DAAuB"} \ No newline at end of file diff --git a/dist/tests/abstract.fixture.d.ts b/dist/tests/abstract.fixture.d.ts deleted file mode 100644 index f7add5af..00000000 --- a/dist/tests/abstract.fixture.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare abstract class AbstractFixture { - readonly list: Obj[]; - readonly detail: Obj; - protected constructor(list: Obj[]); -} -//# sourceMappingURL=abstract.fixture.d.ts.map \ No newline at end of file diff --git a/dist/tests/abstract.fixture.d.ts.map b/dist/tests/abstract.fixture.d.ts.map deleted file mode 100644 index b1cf5ad9..00000000 --- a/dist/tests/abstract.fixture.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.fixture.d.ts","sourceRoot":"","sources":["../../src/tests/abstract.fixture.ts"],"names":[],"mappings":"AAAA,8BAAsB,eAAe,CAAC,GAAG;aAGC,IAAI,EAAE,GAAG,EAAE;IAFjD,SAAgB,MAAM,EAAE,GAAG,CAAC;IAE5B,SAAS,aAA6B,IAAI,EAAE,GAAG,EAAE;CAGpD"} \ No newline at end of file diff --git a/dist/tests/abstract.fixture.js b/dist/tests/abstract.fixture.js deleted file mode 100644 index 44f8152b..00000000 --- a/dist/tests/abstract.fixture.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbstractFixture = void 0; -var AbstractFixture = (function () { - function AbstractFixture(list) { - this.list = list; - this.detail = list[0]; - } - return AbstractFixture; -}()); -exports.AbstractFixture = AbstractFixture; -//# sourceMappingURL=abstract.fixture.js.map \ No newline at end of file diff --git a/dist/tests/abstract.fixture.js.map b/dist/tests/abstract.fixture.js.map deleted file mode 100644 index 52ab331f..00000000 --- a/dist/tests/abstract.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.fixture.js","sourceRoot":"","sources":["../../src/tests/abstract.fixture.ts"],"names":[],"mappings":";;;AAAA;IAGI,yBAAsC,IAAW;QAAX,SAAI,GAAJ,IAAI,CAAO;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACL,sBAAC;AAAD,CAAC,AAND,IAMC;AANqB,0CAAe"} \ No newline at end of file diff --git a/dist/tests/abstract.mapper.d.ts b/dist/tests/abstract.mapper.d.ts deleted file mode 100644 index e5f4895d..00000000 --- a/dist/tests/abstract.mapper.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare abstract class AbstractMapper { - abstract mapToDto(object: Partial): ObjDto; - abstract mapFromDto(object: Partial): Obj; -} -//# sourceMappingURL=abstract.mapper.d.ts.map \ No newline at end of file diff --git a/dist/tests/abstract.mapper.d.ts.map b/dist/tests/abstract.mapper.d.ts.map deleted file mode 100644 index ae81620b..00000000 --- a/dist/tests/abstract.mapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.mapper.d.ts","sourceRoot":"","sources":["../../src/tests/abstract.mapper.ts"],"names":[],"mappings":"AAAA,8BAAsB,cAAc,CAAC,GAAG,EAAE,MAAM;aAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM;aAEtC,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,GAAG;CAC3D"} \ No newline at end of file diff --git a/dist/tests/abstract.mapper.js b/dist/tests/abstract.mapper.js deleted file mode 100644 index 8678df2f..00000000 --- a/dist/tests/abstract.mapper.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbstractMapper = void 0; -var AbstractMapper = (function () { - function AbstractMapper() { - } - return AbstractMapper; -}()); -exports.AbstractMapper = AbstractMapper; -//# sourceMappingURL=abstract.mapper.js.map \ No newline at end of file diff --git a/dist/tests/abstract.mapper.js.map b/dist/tests/abstract.mapper.js.map deleted file mode 100644 index eb7c1a48..00000000 --- a/dist/tests/abstract.mapper.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"abstract.mapper.js","sourceRoot":"","sources":["../../src/tests/abstract.mapper.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAIA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAJD,IAIC;AAJqB,wCAAc"} \ No newline at end of file diff --git a/dist/tests/paginate.model.d.ts b/dist/tests/paginate.model.d.ts deleted file mode 100644 index a9fbf086..00000000 --- a/dist/tests/paginate.model.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare class PaginateModel { - static ITEMS_PER_PAGE: number; - limit: number; - offset: number; - constructor(count?: number, offset?: number); - static validate(paginate?: PaginateModel): PaginateModel; -} -//# sourceMappingURL=paginate.model.d.ts.map \ No newline at end of file diff --git a/dist/tests/paginate.model.d.ts.map b/dist/tests/paginate.model.d.ts.map deleted file mode 100644 index f0f77601..00000000 --- a/dist/tests/paginate.model.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginate.model.d.ts","sourceRoot":"","sources":["../../src/tests/paginate.model.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACtB,OAAc,cAAc,SAAM;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,SAA+B,EAAE,MAAM,SAAI;WAKrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,aAAa;CAUlE"} \ No newline at end of file diff --git a/dist/tests/paginate.model.js b/dist/tests/paginate.model.js deleted file mode 100644 index 2ef1a858..00000000 --- a/dist/tests/paginate.model.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaginateModel = void 0; -var PaginateModel = (function () { - function PaginateModel(count, offset) { - if (count === void 0) { count = PaginateModel.ITEMS_PER_PAGE; } - if (offset === void 0) { offset = 0; } - this.limit = +count; - this.offset = +offset; - } - PaginateModel.validate = function (paginate) { - if (!paginate) { - return new PaginateModel(); - } - return new PaginateModel(isNaN(paginate.limit) ? PaginateModel.ITEMS_PER_PAGE : paginate.limit, isNaN(paginate.offset) ? 0 : paginate.offset); - }; - PaginateModel.ITEMS_PER_PAGE = 10; - return PaginateModel; -}()); -exports.PaginateModel = PaginateModel; -//# sourceMappingURL=paginate.model.js.map \ No newline at end of file diff --git a/dist/tests/paginate.model.js.map b/dist/tests/paginate.model.js.map deleted file mode 100644 index eed4c716..00000000 --- a/dist/tests/paginate.model.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginate.model.js","sourceRoot":"","sources":["../../src/tests/paginate.model.ts"],"names":[],"mappings":";;;AAAA;IAKI,uBAAmB,KAAoC,EAAE,MAAU;QAAhD,sBAAA,EAAA,QAAQ,aAAa,CAAC,cAAc;QAAE,uBAAA,EAAA,UAAU;QAC/D,IAAI,CAAC,KAAK,GAAI,CAAC,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC;IAC1B,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,QAAwB;QAC3C,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,IAAI,aAAa,EAAE,CAAC;SAC9B;QAED,OAAO,IAAI,aAAa,CACpB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,EACrE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAC/C,CAAC;IACN,CAAC;IAlBa,4BAAc,GAAG,EAAE,CAAC;IAmBtC,oBAAC;CAAA,AApBD,IAoBC;AApBY,sCAAa"} \ No newline at end of file diff --git a/dist/tsconfig.cjs.tsbuildinfo b/dist/tsconfig.cjs.tsbuildinfo deleted file mode 100644 index c595dcec..00000000 --- a/dist/tsconfig.cjs.tsbuildinfo +++ /dev/null @@ -1,3420 +0,0 @@ -{ - "program": { - "fileInfos": { - "../node_modules/typescript/lib/lib.es5.d.ts": { - "version": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "signature": "9622e8bd7cc72a7dab819a8011ecbf81d443638082e5cb99ecf2e75ff56ffc9d", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.d.ts": { - "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", - "affectsGlobalScope": false - }, - "../node_modules/typescript/lib/lib.es2016.d.ts": { - "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", - "affectsGlobalScope": false - }, - "../node_modules/typescript/lib/lib.es2017.d.ts": { - "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", - "affectsGlobalScope": false - }, - "../node_modules/typescript/lib/lib.es2018.d.ts": { - "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", - "affectsGlobalScope": false - }, - "../node_modules/typescript/lib/lib.dom.d.ts": { - "version": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "signature": "abadddbf660adeec27e9a56584907d52fa1d6e1e1dc49f639a921baa951b7a84", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.core.d.ts": { - "version": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "signature": "46ee15e9fefa913333b61eaf6b18885900b139867d89832a515059b62cf16a17", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.collection.d.ts": { - "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.generator.d.ts": { - "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { - "version": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "signature": "8b2a5df1ce95f78f6b74f1a555ccdb6baab0486b42d8345e0871dd82811f9b9a", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.promise.d.ts": { - "version": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "signature": "2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { - "version": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "signature": "7207e317a2cb07a177e7d963ab7b8c0e85dde7f9ddb50351f830239bf597569e", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { - "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { - "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { - "version": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "signature": "9d122b7e8c1a5c72506eea50c0973cba55b92b5532d5cafa8a6ce2c547d57551", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { - "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2017.object.d.ts": { - "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { - "version": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "signature": "7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2017.string.d.ts": { - "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2017.intl.d.ts": { - "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { - "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { - "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { - "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2018.intl.d.ts": { - "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2018.promise.d.ts": { - "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { - "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { - "version": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "signature": "7b5a10e3c897fabece5a51aa85b4111727d7adb53c2734b5d37230ff96802a09", - "affectsGlobalScope": true - }, - "../node_modules/typescript/lib/lib.esnext.intl.d.ts": { - "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", - "affectsGlobalScope": true - }, - "../src/enums/button.enum.ts": { - "version": "50c86b5e00222387bfb7ff7a2c9ccc762947134a33777a75ae5538192f7f0bd6", - "signature": "357fbf6edfd6d4f5e2f4a883a1766e9284bc65595a9c21cef39dfccd7305f648", - "affectsGlobalScope": false - }, - "../src/enums/days.enum.ts": { - "version": "bddca260222d9bced7ace11ff9eaef229387a2a46d78142af4164d18e5f49bbb", - "signature": "4b653e7dba3ff8e0438f85fd6ed37c56fb6f747cc83e764f1620c8ec7db7649f", - "affectsGlobalScope": false - }, - "../src/enums/encodings.enum.ts": { - "version": "3bdf87d3b2d15129abc87ed545543cf68ced22d958779f45d03214e6b4414e13", - "signature": "95fbe4ec96c0b9eac9fd35fd431c1cc11f67082709b7558cfe7429b5b57ba64a", - "affectsGlobalScope": false - }, - "../src/enums/file-types.enum.ts": { - "version": "4a555a8dcb615ae92031c999c8d67d28fabfb15eb450e0004696ae3a52fe1fc4", - "signature": "48601b16415287ce515b4069827b954f79c3ed1aaf9356dcb1ec97b72b2527fe", - "affectsGlobalScope": false - }, - "../src/enums/http-status-codes.enum.ts": { - "version": "18cd245a404949328db6ad30f9329b5b770ee2b2a132d49aa08fb989af9139c2", - "signature": "5ae271fc0ca310f7c8151a228dcc2db47a30b55ada389272881662f088dfedeb", - "affectsGlobalScope": false - }, - "../src/enums/keys.enum.ts": { - "version": "83901b0fd0917145eca09e4aa2abd8d8bab37ad6d13aae029263fe4b07a63516", - "signature": "ce18b139714a54f9786d8779b39cb0d48e3d7f0d88408c612155846c0de8f2f7", - "affectsGlobalScope": false - }, - "../src/enums/index.ts": { - "version": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "signature": "bc0c5720913d96eaee10398c2ee09021f6e4e90b01a942d5ebe3a3f5326739c1", - "affectsGlobalScope": false - }, - "../src/config/gtools-config.interface.ts": { - "version": "e6e113eadb1ccaaae2e957e8de27034dfb13482e63ccf39fb05437bcbe1eecfb", - "signature": "86ed1beceb38e1af1bb7ec598db14a491e07a8b1d8ad479a5df6edc1c6231e27", - "affectsGlobalScope": false - }, - "../src/config/gtools-config.ts": { - "version": "5810ad019f74c6261146aa2e0d9a0de42f2d0797e440d5c69528fb77e20d68cf", - "signature": "cd0a8bbee4c1af364206cbec7fc471dc238edb40d1f04f856691c042bcf8a323", - "affectsGlobalScope": false - }, - "../src/math/simple-vector2.ts": { - "version": "d4d6ff7da12f4962aaba6f91a555d1400daa8606752489267c925bee578ff16a", - "signature": "38b51082ed2d0f1e705b3a89d065dac8186e595ab15367004db1627fbc1cbe4e", - "affectsGlobalScope": false - }, - "../src/math/simple-vector3.ts": { - "version": "8fc7d99d317738030fef5e8879d62147fa8c8d592ceb7467e319b7aea4ccf2ed", - "signature": "884a2b1d52b4d040fa53b8ec8a25f94f4d8ac9a90e68c37c3b225044c35c71e1", - "affectsGlobalScope": false - }, - "../src/math/simple-vector4.ts": { - "version": "25044c1276889db43155f523aa265089776a944cf015bcf2c4a5612e04462221", - "signature": "0287860853f48f9d38f275000a66f84960dae622ee07bf479c5f3372851fb10f", - "affectsGlobalScope": false - }, - "../src/math/simple-vector-xz.ts": { - "version": "e69a9ec9c1cc9e8a2f2eb4ba03004277657eae50a29397028e3e9b0baf6d1db7", - "signature": "7ceb21ba1e1525d5906df1e8b9aa68ec219abd6bb9f6150adbc83f9f6a311378", - "affectsGlobalScope": false - }, - "../src/math/vector.ts": { - "version": "6b89380b6e3149d20d0ca39499b73a29a9b1afa867ac38c6460e8104abec5720", - "signature": "ed564b28801d51e6448d794401b6d9476e55f479b9e19e14ce5d07a407fe607f", - "affectsGlobalScope": false - }, - "../src/models/gender.model.ts": { - "version": "c0156a95eaa6dcee76503a6bbe3a59e7e062d50327d3182425dd6a7cb6ee451a", - "signature": "714f3b5c4b8480f89e190efec48fe8bab94b22315a686a1524ac62585c16c7dc", - "affectsGlobalScope": false - }, - "../src/utils/analytics-utils.ts": { - "version": "8f5deea470c150bbfbd6a22d0a9085ef2d7de3c823b5ce10eb20c1bf40bc0e7b", - "signature": "f16cda2102a252a1b7125383579338ac618c8e89c4f14fabfac49cc5653b4865", - "affectsGlobalScope": false - }, - "../src/utils/array-utils.ts": { - "version": "0a3fbbae03181f578627838ee3644e5dde88ff68ac875a728e587760a6b2a9ff", - "signature": "5e3e18271dc1c1bfe3222c25b45cac9e1502c7b21016a47cbba3ec7e976aeec1", - "affectsGlobalScope": false - }, - "../src/utils/coerce-util.ts": { - "version": "ac3e2db41f1a56ad772ebf21936fb24707b8d0a53af7120ad21de28521808753", - "signature": "3aaf01dd98093fd4ef879a5f99085ea0167cf4c86c550f79d469cf0155911cd4", - "affectsGlobalScope": false - }, - "../src/utils/random-utils.ts": { - "version": "96e92fedd1be573dcfb4daa243dfc72a3c368958dd9ff1911d1fd57299fa6b29", - "signature": "7fac6144ce84a39f446b61eadcda61cb0af9b9da06ef2374fe6c91b301bd1272", - "affectsGlobalScope": false - }, - "../src/utils/math-utils.ts": { - "version": "d381be6ba051c5ac4bca040587c2c4705f4b3439666a4e1867ce625a3a45e75e", - "signature": "224ab6ead2e690aaa38f89767b28777acf6c733b4459ca4c223c72a102730aea", - "affectsGlobalScope": false - }, - "../src/utils/color-utils.ts": { - "version": "b1a7daa04816a62243e8a9de44d83e2f14fea57868f372fb34cc4b70fb97fed2", - "signature": "057993534c988f4a46b9aad2b8a5e1698ac87a35ac30ecb13bf0a4853cf68760", - "affectsGlobalScope": false - }, - "../src/utils/date-utils.ts": { - "version": "a8d6342d0b8c2f7197f82d48a6ffa7df900024fb77262e2b1e485e7f2072126d", - "signature": "6d1b6f491a48bf845fca87057eb17a74164488c8879a0c4f051794d6a818e239", - "affectsGlobalScope": false - }, - "../src/constants.ts": { - "version": "eef8f7f75d5446d4800b4cd903cef08b5688eec7a3cd154672d58c07ba9fd2e1", - "signature": "6206c715117e5baf07cf492519cc4e20b9de983cc5aeecd383f21d49dcd848e5", - "affectsGlobalScope": false - }, - "../src/utils/html-utils.ts": { - "version": "97c3a73a8814fe6771fd0b8da9f9bc1cc8390733a0f6250b0dd39cb07acceb0c", - "signature": "066eef6e1a0c48ed649caf7c6babd5abb95226e5153e6dcb3efaf090d38b98a2", - "affectsGlobalScope": false - }, - "../src/utils/image-utils.ts": { - "version": "07de68ef3da9195d4bcb19f3caa51533eec574e0bea13653422df940626e5d4a", - "signature": "e912699c22f69c3b2f62cba5b34aab381a9a191d271fd2802c55afe5fdb1b65e", - "affectsGlobalScope": false - }, - "../src/utils/misc-utils.ts": { - "version": "aa906aad39fbb9a96e590c0a3f6bec7463c6d725747605dd17ffd4592839627a", - "signature": "0bb79967b16de2d62e750a9c5727c5258c0932ebd9c7e26084c3e974f56409b7", - "affectsGlobalScope": false - }, - "../src/utils/time-utils.ts": { - "version": "a3a92fa449c14364c40afc22015f329ff4c59e9fe7c8c58f2cbe41181d3477c9", - "signature": "a92b28a616d6f4587fe85e8da1d494b941c26abf5804c3667c3e48be49998816", - "affectsGlobalScope": false - }, - "../src/utils/sorted-array-utils.ts": { - "version": "1416a4fce6896efe303e94a1c286783631ab4d9be50ba7e0d4276e34fcad61df", - "signature": "e1691429dc711ca2dde4464972f7d134422374a589d8bc0943276e7c89a731f0", - "affectsGlobalScope": false - }, - "../src/utils/input-utils.ts": { - "version": "87ee8b0e6ef48c43e01aff4529f8c2d77edd0ca5ede2125cc7e993bcd1df5b1f", - "signature": "b773a1db1447ad901b3959f7ebf9dec66ef5c54ee71b84d5a0d00beae95d07a9", - "affectsGlobalScope": false - }, - "../src/utils/object-utils.ts": { - "version": "86955e6e55d3d74525667034238431f630585c24b46574d6e3026073b024e2f4", - "signature": "7354537a868d8db11316b7ecbbd79680f4a236b1edad9f1d65dbb52d133fe415", - "affectsGlobalScope": false - }, - "../src/utils/parser-utils.ts": { - "version": "e3d8d06a5f58a2e70f21bbc54f64929883fd62cab6a3002ee508b3e564230d61", - "signature": "2410ea7c356f48e75a706195428e733904e53c2dc96d69cc1ee4ee8ef0df05d9", - "affectsGlobalScope": false - }, - "../src/utils/process-utils.ts": { - "version": "e37d49bb6877656ab1cb17ac45762cffa2bafe3996cc642f9ddffaf53e51056e", - "signature": "55a13238f3ab9f5c277bf2370c7a93fc5a7b5d6735675297d4b284e2829a17d1", - "affectsGlobalScope": false - }, - "../src/utils/reflection-utils.ts": { - "version": "a67fb26f92fa18df700eff0a831cd6b8be2186d68ee5c42781c6bd5b243a10d6", - "signature": "e3208d46a8ed13ac223e6f8134da360682f06c43bebb74b45bacb6901e543c01", - "affectsGlobalScope": false - }, - "../src/validators/misc-validators.ts": { - "version": "f8a70f820a5cab033987717bc2aec3efc4b26bc8065d9d905b37e4a82b84f58c", - "signature": "91980d7ad79023a898afb63323530c75c7750cc9edab3b966f50010c145d24d6", - "affectsGlobalScope": false - }, - "../src/utils/string-checkers.ts": { - "version": "187e5ffc9e612af3378833d7aabddb8f322140be491e1f4fc7e2fd3fe88b09a6", - "signature": "da699f0dd9860fe47044464afcbb21cfedded1c9a47a97ddd9f05d46860522d6", - "affectsGlobalScope": false - }, - "../src/utils/string-utils.ts": { - "version": "d91538e7f3b7bad31500d2560d9c6a9c0db8e05a9ce7b61d3fa4197fc214f3d6", - "signature": "6bbf2a79575477f413b697c41ec2159bf57cce295ed85e5b7e299188d9711622", - "affectsGlobalScope": false - }, - "../src/utils/svg-utils.ts": { - "version": "8dc63882eb4946c49b8c315b7dcb8b86ade9ec3209d734797d3edb0051c9790d", - "signature": "132eb56f2336282750f83ea9fb2c8979ec2b4c98d20e728b76f8484c1983894d", - "affectsGlobalScope": false - }, - "../src/utils/index.ts": { - "version": "abf2ab6a696c7583e874db156ae487c8c944b563f2f1c4af493bfebe828b094c", - "signature": "28bbcec9fef8585bfaa13a5afbd11c4ade3a5c1b30878c27512742be51e14118", - "affectsGlobalScope": false - }, - "../src/models/color.model.ts": { - "version": "776ee2acf248a92bc52e0706bf35a963a2d80511572b1afa14923163396390c1", - "signature": "aff357a9a89f0c7b85b8d0c5061731af7505ef541ab980bf356e4586529f9304", - "affectsGlobalScope": false - }, - "../src/models/transform-2d.ts": { - "version": "13719834050bd0e27ae58038ae4a6f428db75a52e5c3de530eb82e79d3a1c7ff", - "signature": "aacdf251efa1e5c9a1ceaa58f84ee68e6db05a08807c7c62eea0fd462bd3f9c7", - "affectsGlobalScope": false - }, - "../src/models/range.ts": { - "version": "92f02406cb8b2237c7b6a3015df0a315e2a040d5c68d7a54951110e6a4519037", - "signature": "f0361570883ac73a6dbbe01cbcb471e27cfa190584d9aba1d3639617b9b27230", - "affectsGlobalScope": false - }, - "../src/models/path-2d.ts": { - "version": "4231db73734d02129ed02a6a05fc82e3bec213344223fc1c1d4a583b756c1b2b", - "signature": "99ef7180919cc31f0e7c4dd5d81d2f41eba5c15dab215a75d30180f4ac0bbb82", - "affectsGlobalScope": false - }, - "../src/models/path/djikstra/djikstra.ts": { - "version": "ada966ef7a16ee7fd377515d18a7a934734026ff85538ad22465ef6fc2599e70", - "signature": "dcc5fec32da18167a6a2eeac0c1ba1cbc4dd293fffab77e8d21e8905182f208c", - "affectsGlobalScope": false - }, - "../src/models/sorting/bucket-sort.ts": { - "version": "7456e8e54c6fc6adf53fb80383c80266cd7d589216303e130747e0e6afa4c40f", - "signature": "97af01927d229d5d49d6fc4c4d46f4f601132b97b4684780ce52fef4640650fb", - "affectsGlobalScope": false - }, - "../src/models/sorting/counting-sort.ts": { - "version": "09950cd35aaa17810cbde1ded879d17cb3819f4910d93b7f1a980ab274c00c47", - "signature": "1c477c1dbdace75d884e2faaca94d7482bb09c162804716e1ecad65447582c2b", - "affectsGlobalScope": false - }, - "../src/models/sorting/heap-sort.ts": { - "version": "9d334ddf33fb83502bacc1017d2f12369fe71c2ebf710c3afdd2699028e44087", - "signature": "630f14e5e499ef5d5f1586068a5a4292990bfc530f2611d871b70437ba71256a", - "affectsGlobalScope": false - }, - "../src/models/sorting/insertion-sort.ts": { - "version": "b33d5bf0f475a14465b1b42adbdf66d85922162921356cbb9da19fa8e8ef8f77", - "signature": "dda38ae26d2f43e25a69c76f03165a460e0532ca729547ab0d1980b418e53d37", - "affectsGlobalScope": false - }, - "../src/models/sorting/merge-sort.ts": { - "version": "5e3f40dec0d5bb3fb6920fa13e8708f74b28b3f7cf0113e9f6b25746033ba83b", - "signature": "93c771a7938f5415b498f35ffafd1ecf5552303be140d0d1016c6d3fcf94d4f2", - "affectsGlobalScope": false - }, - "../src/models/sorting/quick-sort.ts": { - "version": "5b24474867613b601d4f75837021a8cae6a615175a7fe75b1b370e545bfa1223", - "signature": "4a3e314336fe8b3a0da4df3a46250984c0c63fd4c83eb0c800a77730e5340576", - "affectsGlobalScope": false - }, - "../src/models/sorting/radix-sort.ts": { - "version": "de22ad70b194787bbc13c6d31d9656c9460bc82814a8cdd699b0008438068c4e", - "signature": "1dd8e87a920201f78246875539d750572442351d8c819b498c46eb17bcbfa4be", - "affectsGlobalScope": false - }, - "../src/models/sorting/index.ts": { - "version": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "signature": "e8e66fef0333cd3fe22fa19934094931d06a7edb078885941a1870e7e4a82882", - "affectsGlobalScope": false - }, - "../src/models/data-structures/g43-collection.ts": { - "version": "3491c6d39311fbe4fc3bcbe1ec5fb8bef395ef0662091e9ad4c254e741d3d202", - "signature": "6a3dbd63b33ad6af0c049e9bb949cae11375bbc0aa3e157197b2b416d3cdec80", - "affectsGlobalScope": false - }, - "../src/models/data-structures/priority-queue.ts": { - "version": "f065b3f3566f3b354be2b5e7fae311719af9efcd64e8ae9d819e21349de633ed", - "signature": "e59a1132446be69ceec38ed1fecefd092365a2d26922e3c9138b5a84cc06ba6e", - "affectsGlobalScope": false - }, - "../src/models/data-structures/binary-queue.ts": { - "version": "2b5bf36ed31e60402bc51b5ea793a638e3fa42d83d8fe0de3812508a49574e5f", - "signature": "e448ca5920dff37a1a39653848f69d9cb38ac533bb574afb4b8c56de7831a149", - "affectsGlobalScope": false - }, - "../src/models/data-structures/binary-tree.ts": { - "version": "ff4401d8052ee4f7c325c971add9788a75512562410abac1be7df15ee41cc6f7", - "signature": "8057c79c325359294c01e10128eb255d1e23f383496e9e1c8ac70f90e0bbb7a0", - "affectsGlobalScope": false - }, - "../src/models/data-structures/quad-tree/quad-tree.ts": { - "version": "91245f2d3f1f4473a55a8a9aa86fe26961a576a27c1cb400cbae453d571e178c", - "signature": "d640f0eeda4021c66c1e2bf5e9066f6435c48ca338fba266f66f498fbcdb5418", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": { - "version": "8fa132202258e51203aa89aedfdc7cf6cecfd1da59681b0409e6efc5decdcc58", - "signature": "e5aff4adb33c5aecd93fba3e3161a30d7910445c5983b976ea5f262cd9085fe2", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": { - "version": "07a8b76963bb23ab2b00ada85c87498ee71632399ee0c845742c35376b722cd5", - "signature": "b339503e7cbe900de0526f42342633a464dbad618c373293a15f3ca995d07631", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": { - "version": "de50505542440d115e784036ac4ec7fd2773527d9a08584b047b954b7c77ca35", - "signature": "8aa93210ec89f2a1a5246e43b1f045c6f86865d2f627eebfa09409d72cafa762", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/grid-filters.ts": { - "version": "cb0bc6a63d71271e1f3d4c7c1ebb2d1bb29124a3ab33ee0eec35d2221ce941a1", - "signature": "ab7dcd1168a23b50c2ea1d190244130d0a0b8f422ccede6b180ab18a86af3fa7", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/grid2-accessor.ts": { - "version": "96a463327277ce295d2a9ca78f31c2d74ffd15983957190c3fae2b3ca9081126", - "signature": "94a20cdb32c9a8a5819b9401e1bb95af366bcc05b3c6e6356ac6bd47dadd19ec", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": { - "version": "29d80a04115c8635e6b0b24ecc98f7e16ce58d4c0b8a37063207434e94eb98cf", - "signature": "f249d93fd0d9da3c6f5887a7c8a5fda1ecfd8af1301a9b7872dafc4cdecf0e24", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": { - "version": "86de318f728a60ca3bf5401a67408101cd98f77525a2d65d10598d81b3ddf188", - "signature": "0fc33a551fb7744d0eef4c40cf2731388f59f44121355b3c3500450189f43265", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": { - "version": "824986806ea8d9f18c11ce093e65c999fae5ce390dd7e33814b0797d6a246c06", - "signature": "e0fbd7048f44fdcd7dd56f20dcf931fd7457e41425ca06e1a015999d3702734d", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": { - "version": "c755274560b257a713c780ba8590bdff31d9d29c47ba4cfc85886ad2cda52c8c", - "signature": "1af16b4f587f08a9500636b75dfc434fd4c7dc18b1c98d2d9caa1a338648956b", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": { - "version": "598165b4196d328977dff28960441dbfc039e4a9098e0efa97cc82920a9dda4d", - "signature": "f9cdf170f7d0e1b9f46f07683109fa3b5dfc822f5d30324cc8b46078a42bee3a", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": { - "version": "bf6eda0dc000371278644110ca27282397bc8a8ad82fd85cb88e335a6f75a496", - "signature": "8a1fd266929ab3cf53371a7c1b717c2eb84b4ef047601d2cf449617b0c8fb90e", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": { - "version": "51f0b9c0aa74388752a0d63292601271fbd257eccc83544d5447374624e641e7", - "signature": "534686a8904822637fd9a6d927639713a022112c4236ae9538765ca6cec23910", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": { - "version": "24929a70c0258a058d34ee0b72aef8fb6514f3e49d45daf191a9b190228fc713", - "signature": "5cf90fa058553cdfebe7d7dcd90ec458870cbf88c0135ea45fe6f3e8f6712382", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/index.ts": { - "version": "2bdb43e0b9ea7d462087cac6200de24c66125fa06bae506ce10daa1b5729b18e", - "signature": "7c98072d94cc4ad693a11c195a961857c9041cae0db42352fda68e732ff86d94", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/abstract-linked-list.ts": { - "version": "be75ae95c781328fa24ccb2bc41b16f90a30300e8939524517405ee4a0761da7", - "signature": "7c54b172a294a0570b9c9a899584657dff8ba681c73e421bb9196f25c6cbf447", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/linked-list-entry.ts": { - "version": "e53c7c0c413705bb052cd7b357709f7a467e4b1370894d04a01c6158fffca91b", - "signature": "67465698c48aa367337f2462317f0cffffe35fad41f461ad698b9df519400f70", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/list.ts": { - "version": "7eef19e3ee169f7911e044bac2fbd0c91fd2a362d61283b56c346478a7381eb9", - "signature": "2c051e5ab0bef0bc0c682b21378db49d5bd89cc1febc1fa72af9793e6273dc14", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/bi-directional-linked-list.ts": { - "version": "1437ecf610ae51b56ac43db4a65a8a965eaaacdaf8c6a2a0b99bfeb02b6b41c9", - "signature": "12dbcd0a59507177a27a51ddddf41277cb26f57602b95c81904f5bbdebfa67b4", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/one-directional-linked-list.ts": { - "version": "476a322328b312c8b5aa856adec99f4f004da34d29bcab2502b12a0e41c9cf1f", - "signature": "b4676081c53323149ef89408cbba62e0c7abcacdb76ff1f41bf101c4ec8019ee", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/sorted-array-list.ts": { - "version": "94fa42fe048888659c39f29d35b892d6cb54734e08dc5aad30ad7b41806124a6", - "signature": "40ec3e93fc1bf2cadf20863dabce10d76c5fccc0f9f8684a4466d3925adb6204", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/index.ts": { - "version": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "signature": "773b407f4f9e040733bf14fd702ef708e79f2799a22717ce17910247e0ff15b7", - "affectsGlobalScope": false - }, - "../src/models/index.ts": { - "version": "d2da69f5e5dd6b37e959fd863a802128dcac9cc2fbe98b3bbb51a5dcb4c0794f", - "signature": "df8689b1080d4d4cfdde1f31b6b7ea8d753f4b46a7d9d131c8ca1988a9b11b60", - "affectsGlobalScope": false - }, - "../src/math/vector2.ts": { - "version": "d0eb17a32cd6e3248b0cec4687cbaf8128c1ee8554611cb50e38b80cb8319cac", - "signature": "962b5952f2e8639f056e5b77ab990c7d73ce8f675433bba5e8481e81fcc9079b", - "affectsGlobalScope": false - }, - "../src/math/vector2f.ts": { - "version": "0b5821c94c6d8dd5c8aaa3527f3e3a236f0cc53038b1ce71e20c8e45e4728207", - "signature": "a1b318776c0473f523ff369a8350511c269aff650d7e2a50fbb961ffd4981848", - "affectsGlobalScope": false - }, - "../src/math/vector3.ts": { - "version": "0d403a453b972a684c05fdbabfb5b70c7e389905d1f9d4a483ea0fd351c39558", - "signature": "55d7e0e90e70c571f6282c2a2cf7d8ab145ff46d3c4728793ee001992568eecb", - "affectsGlobalScope": false - }, - "../src/math/vector4.ts": { - "version": "d1871cd97f10f4462513e1ae61643563ad9f4ae3b6b1ddd2bc018d75219f6420", - "signature": "0ffef5cb77a17fe28a0ca6b28dcf2357b5e23f1096c341bf7420607545896b8c", - "affectsGlobalScope": false - }, - "../src/math/mat4.ts": { - "version": "c4095c8789d6fa82bb277e0bc001b6441243804a8f02d3ec6aaf761877043b4c", - "signature": "209eaf230089927380d1d264db1cdb07056573b6849795f7a5fc99771b63d552", - "affectsGlobalScope": false - }, - "../src/math/index.ts": { - "version": "4258d5499ff9f2e172bc3610870a934e344badf88e240240b26e1e3a542675d1", - "signature": "63b0eef4c9792504d1eaef92d614fe2d7f12bd3d500d7e33c37e2e5a07c77d65", - "affectsGlobalScope": false - }, - "../src/types/helpers/min-max-2d.interface.ts": { - "version": "9d51a573f378e14c274418a605f66c21c430fe4cc7b021144d90993fbdcd63d0", - "signature": "ade565f39670710be3e5b076faeb6746f9db5b7e403316c101ade466f25c9aa2", - "affectsGlobalScope": false - }, - "../src/types/helpers/min-max-3d.interface.ts": { - "version": "109172f30136e4a2883cef0d4744a6a9eff312e7b51a408ccd5bef44d3b84247", - "signature": "855f4dd6b62df6dc1c60d542cdcf0b51def2b735eb7010f22247efd5b7daf034", - "affectsGlobalScope": false - }, - "../src/types/helpers/xywh.ts": { - "version": "04bf6473f1eac63f9a79cc38e67709d4c805c54e2fc5af322e16fa1f3b07444d", - "signature": "15e87df320d6cdd970d63692cf2aff06872df87832ee40a4a6ef2b2220fcddf1", - "affectsGlobalScope": false - }, - "../src/types/helpers/xyzwhd.ts": { - "version": "4380cd1db1f0a315cafef3dc0d1cae48e0c5548bfd92077fe803d29a3db6993c", - "signature": "9ac9ded8a43336d4f2a4f0a0e2358dfa1ad9ba32b5458f327a847d87175f1374", - "affectsGlobalScope": false - }, - "../src/types/helpers/pos-size-2d.ts": { - "version": "95a7b1acee9e3fe6ed3fdc75291255e2c74c5387e0d0b50aad2657b9fa9b66b1", - "signature": "4748d9a2c21bb4d6df6220ce86bb3886009d72cf9524369ac17ed20bbc10a3ca", - "affectsGlobalScope": false - }, - "../src/types/helpers/pos-size-3d.ts": { - "version": "1a09dc77656bf3fda15451f1185b29f4b7f1794424fe806b253c58bc7234f5a4", - "signature": "49c4ae94c87f582936792dad6cc64e96ffcba0a6464e60a45f645d4cae22bf33", - "affectsGlobalScope": false - }, - "../src/types/horizontal-align.type.ts": { - "version": "d06ba169f6324ee50312674700ba9ee696ac17c0c08212f27f99e75bea5993fe", - "signature": "fda93671fd83980a94ab38048cf2eb1780c0bcfe7db4f97c3103b7076fb34765", - "affectsGlobalScope": false - }, - "../src/types/key-value.interface.ts": { - "version": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "signature": "fc275af8c096f3a7e887cbd2e6bb7d4f3c6a777c9359ca25804ec5c059e6a2f2", - "affectsGlobalScope": false - }, - "../src/types/nested-string-map.interface.ts": { - "version": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "signature": "daaf8525f6c123bd5fd6da1e6d96aa7a7d81830772afdab6af48e450da376d25", - "affectsGlobalScope": false - }, - "../src/types/object-entry.interface.ts": { - "version": "d3b9f85cd2d7253362168e060b8885d3d8a19d189ade6e0c10cf1e93d18e23d8", - "signature": "a552777985330cc98b0eec4d6bcb2de6ac8f11de46cc9a713022f694b9e9843d", - "affectsGlobalScope": false - }, - "../src/types/optional.type.ts": { - "version": "6997dfaba3a558195a3cc79dead1c37ce3d997a61ed7ed84620a374fee6b0836", - "signature": "845ab0b08b564e517cf09bf70c12224980c90048e1744720b2ac19117314e60d", - "affectsGlobalScope": false - }, - "../src/types/prop.type.ts": { - "version": "661af54a97b7b109ac73573ab3a225407099a23a63bf03ff3b5345e7e0a5a6f9", - "signature": "b1315a2ee2da0cb7ab6a1a6dbe1bcb1035b1a287640a6b370b5d8c201b19f866", - "affectsGlobalScope": false - }, - "../src/types/property-decorator.type.ts": { - "version": "c4e5ecc5e5f701b9312c0f936c9e2ef84e475eb132018417d67432e393e43fdd", - "signature": "3dde93e76ac376c7f7fc9e3e9b2f71dcd586d6b58a4bc224a54c8fe4f79f2963", - "affectsGlobalScope": false - }, - "../src/types/ray2d.ts": { - "version": "99e3cf17e8d6c9df593bdaa44193233da0e7d07b58cd88c2d34c2eb154f7aac6", - "signature": "f920c4be30195aa7d6857635352f2b3d15c4e9defee5998b78b6e04ce861b739", - "affectsGlobalScope": false - }, - "../src/types/ray3d.ts": { - "version": "7eabde7d54f900db71c2d174506d4c10dbca9a08154fea4228e7cf8d921ce532", - "signature": "9c6b270ae159c7c5e79122d37b8bbe06d17e6a3861bd334714aedc987b1dd2d5", - "affectsGlobalScope": false - }, - "../src/types/round-data.type.ts": { - "version": "b3491a4f6737e390c14ecad6ecdd65c6dec6fc48da8c0e1466dae90d5640b6e2", - "signature": "80fbbfeb93fe88fb8d858a350b02fe6aa4423503aeb5dbf3090e3a7412bc1dc8", - "affectsGlobalScope": false - }, - "../src/types/size.interaface.ts": { - "version": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "signature": "019910ff5c79332c85d282d9cafd9e0d7ca7feab2ab428afe50d3f2992ebe80d", - "affectsGlobalScope": false - }, - "../src/types/string-map.interface.ts": { - "version": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "signature": "f56d3d709fd6077c34c5f6f92076954d44dc8ed0ca5cc26f9e09ba4ae5097524", - "affectsGlobalScope": false - }, - "../src/types/vertical-align.type.ts": { - "version": "16c78f374aa3023e0cc2cd2f07d17c50449a00003a71fa62f62bf9a026dc19c8", - "signature": "da8264e53a7ebd72060051e86af1f9a75269dcb074b4a1a4a3e79345960a44d2", - "affectsGlobalScope": false - }, - "../src/types/text-options.interface.ts": { - "version": "e484dc0310cb9eeebe96571fc6bf1966f5d2bdf1bb4e4bd6b2dc612f2938f323", - "signature": "651002f3fa3d848be716e5629d60a82d8e54860ff31c0566d518ec9abec5e124", - "affectsGlobalScope": false - }, - "../src/types/type.interface.ts": { - "version": "9e3cca0b8b220ab9b2e7156ef114dd57e3af8c45825cceecbf1039101cf92f91", - "signature": "5229e30a8070892ff53abbbfeed68c8501c8aa20e9d9d3058e413285add0a540", - "affectsGlobalScope": false - }, - "../src/types/unit-number.type.ts": { - "version": "79bc140a34c49381a3a4cc0dc92f5843b9d36e1e17075a79c7f2529555b927c4", - "signature": "1ece0739292250136df033f718d3ae572989eff650e18015f79e0c0c0e66ab2f", - "affectsGlobalScope": false - }, - "../src/types/index.ts": { - "version": "661d955487f751a303b88bbddb52ebc9306fed67e9f92022cd8686787718ffea", - "signature": "5e78289f84211e154a1f54213c4928913bcbe7fea15dcfdc9c2311bbf215793a", - "affectsGlobalScope": false - }, - "../src/decorators/deprecated.decorator.ts": { - "version": "8ab122563b7c824c2dac645a344f797bcaeac7c0932d81a4186232d5a7becdb0", - "signature": "6694bd27111fff2d5c9db6c60bfa2f6da9de398bf5ee9678b50b17e9f65b241a", - "affectsGlobalScope": false - }, - "../src/decorators/final-class.decorator.ts": { - "version": "af9bbd0c0f43d0928d56fe4a9bbe391f230bd7f7b5b1862c3006fd60f0ad6c70", - "signature": "a47b07a689396df20a7b6da401a04399e847a779ad6028ca344ddd16a7edcfa1", - "affectsGlobalScope": false - }, - "../src/decorators/mapper.decorator.ts": { - "version": "7c4b9c096895327b2a8d16d72b221370408bc6ecc9bd4ffd65f233b74cb885e7", - "signature": "abedd024cc1a57e2886282d60fd011dbb9e9dc14bb33abe66c959029efc921d4", - "affectsGlobalScope": false - }, - "../src/decorators/singleton.decorator.ts": { - "version": "27948b31c1aad486b9b96fcf44519c895d3ea5289c0a3b20a318c255f09cc73a", - "signature": "84926c3e0db086e60a26337f0abb38449ac83cfdeb555588dbce0663d6ca7ba3", - "affectsGlobalScope": false - }, - "../src/decorators/watch.decorator.ts": { - "version": "7f7ef493115bd5df9e207bb648f0b8317c213c87e67f9ba01241c116d37602d4", - "signature": "8d1a7fe3bdebc1b00243625a08e839653f19b591fc85ef02377a846293b334c4", - "affectsGlobalScope": false - }, - "../src/decorators/index.ts": { - "version": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "signature": "1af4d1819b90cbba2840b7f55e7cdafe1e7206c0654ddf83827eea264cc50848", - "affectsGlobalScope": false - }, - "../src/errors/not-browser.exception.ts": { - "version": "7ac9a7cc60ae78bc4170a03c03af39fb03ffa79f1b1e47f7fe5e69a830d14a28", - "signature": "cecb037f713162767a6345d5b74fcc6f50ee2cbbf52d27cdd6dc6777fe94bba4", - "affectsGlobalScope": false - }, - "../src/errors/null-pointer.exception.ts": { - "version": "5e4c28420df4a6cbafad6d11832de5f435badbafb7deecd0278c8222e1cffd67", - "signature": "84f2239b5c384d12bc122aeab17d6147720a2c05a45e7c60e8c760d600aca3c9", - "affectsGlobalScope": false - }, - "../src/errors/wrong-parameter.exception.ts": { - "version": "0a6beec39c8e46002f99f858b3d8427d7a413b01d5d7e0e6d7b32c86fe7317c7", - "signature": "0eb0fefbebefe664a50256f24e670a6fdbb61682a15434e5111d28eccde6c972", - "affectsGlobalScope": false - }, - "../src/errors/missing-parameter.error.ts": { - "version": "98c39b59e0dc611b25b773a0be984859f57c7b3e4eeeb4e91e1a81656d1c544f", - "signature": "1462d6fdae79ddb9d35fbe2d91646e000373f944b08d6c716a95c8368a32453b", - "affectsGlobalScope": false - }, - "../src/errors/no-database-connection.error.ts": { - "version": "2e6a228de7228ac55c73a72006b1c9b62fda994e59787377825000faa3349741", - "signature": "1b419fef46fb80a50d79b3b1a75535d91f33cabeee68487282c79bf9b74b8f3d", - "affectsGlobalScope": false - }, - "../src/errors/wrong-type.exception.ts": { - "version": "eec78e492e246937c13113dd1349e2ccf495dc44a853ccbaea7c758b1e8b7fc3", - "signature": "de45bfece05ace8859827e8b7ec9e24553387b4662632ccea825d82ff05493f8", - "affectsGlobalScope": false - }, - "../src/errors/index.ts": { - "version": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "signature": "439bd9a868c4498fec5604d8efb4952bdaa98736230e14242871bfcfb927c647", - "affectsGlobalScope": false - }, - "../src/dom/canvas-manager.ts": { - "version": "704a103f3a2ab7f645caee9d1458c81ce4778f376869e400ec5f901d2b57eb07", - "signature": "38df54fe86efdedd2c8a9dfec356e5f0d535eb03892ed26675b10957ba01b71c", - "affectsGlobalScope": false - }, - "../src/dom/types/canvas-shadow-config.ts": { - "version": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "signature": "ba122529d42f28761fb1c1f8fd1aeee83de462de9e8516bcc9628b5e12fa17c4", - "affectsGlobalScope": false - }, - "../src/dom/canvas-utils.ts": { - "version": "0388fe6cdbe24e3e657d2acb6209086e28339c8a5ac4f9826d50a359caf2c697", - "signature": "dba894fb04c7175a0949fd1c4b6359ce7adc52810aaac833e5cdcc813d496615", - "affectsGlobalScope": false - }, - "../src/dom/dom-get.ts": { - "version": "01869a90d48283a227656b7b8432ece2b78e4740989a923e5f9a6fd01c40d8ed", - "signature": "3d2f3580b512794b58d4c27077641c7ba15e6969de3a45ccffe25769c366b0ba", - "affectsGlobalScope": false - }, - "../src/components/file-manager.ts": { - "version": "4ac2f4b362b3a4697d7ff17cf13211bb2cc688c76dc4a98b568b8dbf94a25ad8", - "signature": "43961df2c2fff0fb28d34607cb14fa4bf7eaa6706fa47bd97633577d4b84441e", - "affectsGlobalScope": false - }, - "../src/components/logger/g-logger-priority.ts": { - "version": "fc0cd570131b61e553eb24277b28ee885323a13599a4bd549f12091491d38513", - "signature": "16f9614ec07e7ce3f5903cf15fe47b95c76e65ca53f0b2ae8411ac972d6fa3cc", - "affectsGlobalScope": false - }, - "../src/components/logger/g-logger-default-formatter.ts": { - "version": "e2969d84a9dff58e2ed1ded0bf3b3504054164456595d3ddd04c5ab01b55e06f", - "signature": "40986e5798b7a98ba2c646d6c84bd9213fc619300375e1af45332945b6ca7d64", - "affectsGlobalScope": false - }, - "../src/components/logger/g-logger-callback-holder.ts": { - "version": "6dd9141ab5ff84dfb270ced5b06b2724434ebbf9b88110e9dc4fdf0b1408825f", - "signature": "cf7500bb9afe40afb60618ef88e22685082eda4351ece51ad6085c9940fb02cb", - "affectsGlobalScope": false - }, - "../src/components/logger/g-logger-instance.ts": { - "version": "e7baa1c085fcc280bce17bccdaa67f76e355ecc4e0e4784655e9441e9337a2d0", - "signature": "a66693f3e0aa4f3b99361943fb36b458073acc0614c0140540ca13f23e4bcc29", - "affectsGlobalScope": false - }, - "../src/components/logger/g-logger.ts": { - "version": "0abfbc222e7aa1222e93ceb0bd99f161e5e3a8f2e5039007e2efe6e1cd9f2a54", - "signature": "a4f518f2914c1cddffa0ccba8f82facc3fe791cd4fdb40c16368f24aa7effe29", - "affectsGlobalScope": false - }, - "../src/components/g-map.ts": { - "version": "6403a6e7b80fe9689dfdd8cc4866687d7a3847d14755d7cb39980d0c5af7d967", - "signature": "b6d1ffc0e87b2b5a5e6964847ae9e2b77fa9b1934053a38c94a3ed85d93ef669", - "affectsGlobalScope": false - }, - "../src/components/key-value-counter.ts": { - "version": "dfecbf131b84c1629d1c43286e64d42e3987204f98aca41d0f32909a85b65a68", - "signature": "bd506792e3d0f86c1b148870a530470c37c0234319114953473dbe73a84940ec", - "affectsGlobalScope": false - }, - "../src/components/number-counter.ts": { - "version": "ad78c0b6bef281b4ca28e4eadc7e6fc399e67f08a2322497930cac5ae559ac82", - "signature": "3ccf0c0de44729cc182e1f6aad37c7bf3562dc9b3ccc339e7b10e1ea3592cab1", - "affectsGlobalScope": false - }, - "../src/components/paginator.ts": { - "version": "1ae846e1f799abb1ffdc26539894217991dd4a2c1a885baf291ba0b0851af312", - "signature": "fec09413ee4e53b7534333443ae2cafce7f5a21cd817369f46293fbb39194dcf", - "affectsGlobalScope": false - }, - "../src/components/bidirectional-graph.ts": { - "version": "39ee7b58ac907fff42acfcd04711a51d782ed1ad4f9affc4abf3447b24158e2b", - "signature": "75c0f524b8a9d4bd571ce0c68ab80c1d831259b9654b02fc35cfa64f3cffc612", - "affectsGlobalScope": false - }, - "../src/components/index.ts": { - "version": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "signature": "687d3e041ae8e3e54173adbbc61d37659547bb141a2e0c6bb00d92cac99c30e4", - "affectsGlobalScope": false - }, - "../src/validators/index.ts": { - "version": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "signature": "e390ad019891cf501c6e70dc43f27cb172e0c6d60c9e17ac628c6098854020f7", - "affectsGlobalScope": false - }, - "../src/misc/slovak-stemmer.ts": { - "version": "6d5b2710b30af486ecd78c384281e5c4b25b6f5050f67402a8fb0afee709ea56", - "signature": "97ef5ec860c7355db6cf7c1ee5a8adcdfd86ceb3e5165803961f56b3757d8647", - "affectsGlobalScope": false - }, - "../src/misc/ajax.ts": { - "version": "6a24655e92cf6b5c79334bca1070de293462e2886d9724e498925114732a1554", - "signature": "47e4fcd63be64c766df7e9d0445e6794e277ba4e31a88483ae8c209203af921a", - "affectsGlobalScope": false - }, - "../src/misc/file-size-formatter.ts": { - "version": "10d25383ee7fcd8aef05c6ffc59c1b38c105ee737c8e470b6fbc23b59e4b78f4", - "signature": "a60ae53946c945ed78bfdad82c0f0b69af9033ef7a59632a2381ec1e60d00717", - "affectsGlobalScope": false - }, - "../src/misc/simple-loop.ts": { - "version": "55f3539e92174fd5608777e34178e9dd157aee2be3e8b792890baccedfd83bf7", - "signature": "d5cdadaff8c2dd309daa8dbbe3c0dd7cb3e171b28ea8f35130d474d48f123e16", - "affectsGlobalScope": false - }, - "../src/misc/runtime-validators.ts": { - "version": "eaa40834d14246581c556e6e0e246610e8a11de53b7cab941fce5af6c3dbe602", - "signature": "d0e256ede4130bfa23543f342bffbb84019ebedffadb5a0dace8b99bfa756739", - "affectsGlobalScope": false - }, - "../src/misc/index.ts": { - "version": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "signature": "f46b3fbef51f98c7930b779fd51fd5d65fc1cec9bda2265696f003eb40958c71", - "affectsGlobalScope": false - }, - "../src/physics/closest-2d.ts": { - "version": "083451549e5d2866a406baecfae5bc6d83d9b9d355061a3950f46fe26b3dd26d", - "signature": "33d797af592edeb1eb2e343cdf22e4321707257e9832641240150ac742875f5e", - "affectsGlobalScope": false - }, - "../src/physics/closest-3d.ts": { - "version": "65c1b49820c1db877ce527535e6bd1e5acc9af0d24f691d4bb91c813e156b562", - "signature": "6daa9238a5defd6245e97bb12cbb74c14146a0b3e93c74311feb01246ef6a26f", - "affectsGlobalScope": false - }, - "../src/physics/distances-2d.ts": { - "version": "b0151f7046ff0444d1f2382a3f58fbe663920c6565ad0219be52ee265ec2ee79", - "signature": "ef5b2120ebfce476d2295100363146af7a3cccb939a01c235a418d41360e45d3", - "affectsGlobalScope": false - }, - "../src/physics/collisions-2d.ts": { - "version": "06144ab2cc324d688c3e83d3078f9bc8e86f4cf0ba59de534d442810263b072d", - "signature": "5cbeca0bb58b5504c2573890a3f710cb386fcd2b2260ad39508f57f92e023f80", - "affectsGlobalScope": false - }, - "../src/physics/distances-3d.ts": { - "version": "5cacf11412f8d5c6791b0aad3323482bd995233aa2ca1b8ef93185a991f29ae3", - "signature": "391950cd497a146f3bb33ec37aeb6821bad9e6d594383d8cf104c8e2c92df569", - "affectsGlobalScope": false - }, - "../src/physics/intersects-3d.ts": { - "version": "c16ac35d28ebb83f247eb5c6aab289e818218e231ae4e8347b421e121651152b", - "signature": "4a5c737cec4c5e97ac063fd7a7bb79823a12e3a158d208153ef421993a9827b6", - "affectsGlobalScope": false - }, - "../src/physics/collisions-3d.ts": { - "version": "e9070b9f5b4255f97935125c7cdeb53823bae23ede5afdd7932b8069f76d886f", - "signature": "6ede89f2bc636d58fc256d3e44014f9d65285f0505ce4dba4e713d5efdd3e81b", - "affectsGlobalScope": false - }, - "../src/physics/objects/object-convertors.ts": { - "version": "5cfe350a5a71db156ae34cdebb9659eab327dd19e6477dadd06e2d2579adb186", - "signature": "57bd6f64232764990bb1d877c29c8c4b3cc77cd78267d47b65fddbb73997afa4", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/ray-2d.ts": { - "version": "985de7949c35d39c15fd4d6b244a3f70feabed52054ce21bf0b67740cf16afd0", - "signature": "3000b6e35b3fecb95a4c268c6bf225b0bf2415e949f347a68727cb2f77adcdc8", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/object2-d.ts": { - "version": "9452670a2067e2a1f31316fa9051e0d6be7caa13870e18eb280291a491e6900c", - "signature": "dd7fb9327c53dfcb289884fe0344d94c97ee63a1616191632703cdf071d89c77", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/sphere.ts": { - "version": "7fa784ed4b1b7f6144cf3921edb7bc797d82b74397157e92311f28ffa2a766f0", - "signature": "2fb382a291e244f73d43ad20f46a99786f5bce47a4a52f88d0ada278b06d25de", - "affectsGlobalScope": false - }, - "../src/physics/bounders-2d.ts": { - "version": "d477990b0e1a0ac464bfcda31561fb3b334580bbce81217815ab0c0c73bea4a8", - "signature": "34411f5ca9c07bc8264fbca05f9778ef816c6c01317405794d162b5c33dc11fb", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/rect.ts": { - "version": "d10f001dc7fcb86dd3b1314da4cb15d1c6bad835b3728d8f631a02d77ca0bcae", - "signature": "886ece4475d033c76ca56099404a6ff3eb212e4b985a2d39761d19c84e152a94", - "affectsGlobalScope": false - }, - "../src/physics/objects/index.ts": { - "version": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "signature": "bdd84cc3082eb4ce367c44aa57f81eadcfcf0e380f3c2fb01363524c68c45d1b", - "affectsGlobalScope": false - }, - "../src/physics/intersects-2d.ts": { - "version": "4323af0c0af0ba6ea021ed5e28975db23be983eff8d6e018765c594fa52a3a37", - "signature": "d3cbba6a7adfa0ce84b393f9df210ffb259d7b34078daa0ca6b354d98286e418", - "affectsGlobalScope": false - }, - "../src/physics/index.ts": { - "version": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "signature": "3cef37821f6b755af6d91d843a27fe42c475b9cfdccc931fc8d4e3683080676a", - "affectsGlobalScope": false - }, - "../src/tests/abstract.fixture.ts": { - "version": "6f75fc70576fee07afd8ac355436f9c045fbee5d72004e6125ea6d22c7b8979e", - "signature": "ce94af9d0980c8e834150dd9c4090f51ea51867140420e5494b51470c48a77d1", - "affectsGlobalScope": false - }, - "../src/tests/abstract.mapper.ts": { - "version": "8295eb4539f238dba561098741feea64af34ba11058d61c640410d7fca16bc2f", - "signature": "02c3356891ac37b8cc8db91a1f1f3ec58f5e002cf0e425b909d3e212f7cad0cb", - "affectsGlobalScope": false - }, - "../src/tests/abstract-database.fixture.ts": { - "version": "91adb8c41b44915cc262e32a88c0747ae9551e7e272e898dda04f5a3759a3c47", - "signature": "3d9d147c31ba4bad323cca97e4e5dfe10c2d7b10a6422da98a1923dd4336787d", - "affectsGlobalScope": false - }, - "../src/tests/paginate.model.ts": { - "version": "e7ba927d5a8c8653c7f3416b7e9c6b7246e329bef258b3d03b0020b9075c2708", - "signature": "86f823fd364c395ef3eee14e7b377296c523d2846e7ddb85388a01fc609db2ac", - "affectsGlobalScope": false - }, - "../src/gutils.ts": { - "version": "12b68468830f1c6169062eae3030671eae3a97bc0e3c574065810ef68d356f65", - "signature": "79b9cdaa38e363129b0aca2a79a301789ea09ceeb69747c74e0bfda3202aed68", - "affectsGlobalScope": false - }, - "../src/mockdata.ts": { - "version": "90c9877cd2e693edf94f8392f615a2e4927733ace7a1c072454f6aa9b52aa3f7", - "signature": "69456433797556ac60f72c60226e7589f86e1af8bc833c1157cc713adbc7de18", - "affectsGlobalScope": false - }, - "../src/common.ts": { - "version": "4ed4fb6cbd50c20471f867f405dc6a05023956b0e7bbc69d41f948785294d46a", - "signature": "b054c6aded2ec2b4c3e98da3b613e66ddc528ebd840c606bbe7f94b2be84ebd1", - "affectsGlobalScope": false - }, - "../src/index.ts": { - "version": "830adf9f6d6531c5159fc4f4148fa383a9e100411732b17a44d1e2039137973d", - "signature": "213e8b02b44c33d262dccc853629e9f2e505a7f644d5f10fb6358d3755d67dd5", - "affectsGlobalScope": false - }, - "../src/utils/fileutils.ts": { - "version": "4417956f5fcda4969f0491aee842ebf83b9f7a11334825c8a6bd715c013a28fc", - "signature": "8ae96f6f0a7b3ac77a6f9b9498f0852f65d72a2e075e2a2edcdce519df2084bd", - "affectsGlobalScope": false - }, - "../src/node.ts": { - "version": "9485d520ccfe74c26606276355e3396cab9ffc508a3f23e6204fe019a6055fb1", - "signature": "4fd53277b23af7187f1044ac011feaefc4cf3369f639accb7816b1d23c50e0e6", - "affectsGlobalScope": false - }, - "../src/utils/domutils.ts": { - "version": "fce9cb6be46acbc59599c5402d3b957fbdd1f1adf1313d71da746e40f6732748", - "signature": "84c29941630a7ff933926990ba86721a24fe4324657525c3fde6e57450eea613", - "affectsGlobalScope": false - }, - "../src/web.ts": { - "version": "b38301821dcde1763e53ff6abb7b93d872ce87e9659e51df891c44dd222bb9f3", - "signature": "0aacf4428ad5f748eed087e113f83b8ea7fa88c4f9e7734a884c0a1751ae9bf4", - "affectsGlobalScope": false - }, - "../src/dom/canvas-camera.ts": { - "version": "9438ea841f924cc78350099aebf81d06b739ad80abc7400e17a56c6f290216c3", - "signature": "f8776af88c918a6752dfb6f91cfed753817c2302e8961065a32ef4d3671ecf30", - "affectsGlobalScope": false - }, - "../src/dom/canvas-misc-utilts.ts": { - "version": "4bd7748a9263f42c74088869b563af32f1049ac8888077bfef37c913dc7748b8", - "signature": "a0f436ac0bc6d56c9559e7976cc1badea7c296b023b7034db6af0f53af3b1210", - "affectsGlobalScope": false - }, - "../src/dom/drawer.ts": { - "version": "ec7b4797ff8a62aceecd60adb122ffa79a7efd8c161d8e9949f2d77c09715de3", - "signature": "bcc65583f6a3709e4d3994cf3c95b2cba3488be5b02146f5017b050d0539675c", - "affectsGlobalScope": false - }, - "../src/dom/canvas-drawer.ts": { - "version": "d2b05e002b13d3a498582a417c22a6fa9dd305f0c6120294443827dc1ae39be6", - "signature": "ea3cd09e41390c96971ba5182d1879adb4b75b3cd0c6fc381dcddb7f13a48fe1", - "affectsGlobalScope": false - }, - "../src/dom/canvas-drawer-advanced.ts": { - "version": "108154eec4375866544b8b590592bdd9544121838a98cfc72bdc19391edc74eb", - "signature": "8379b8a60762750d76d3d5a4a142639af2cd224908d605a5801865bce5452aa8", - "affectsGlobalScope": false - }, - "../src/dom/element-builder.ts": { - "version": "f77bf02ac480cc5619af127394a55bc29dc1c1316460d56c888fdc1c52b4c9ac", - "signature": "d75b4f87328adcb411a0483f140575d4e360982d57e8ce3791dc5c4c37a2d103", - "affectsGlobalScope": false - }, - "../src/models/countries/country.interface.ts": { - "version": "5d0c6b9dad60dde0fb8e3703bde5d6c93912da4786a5ce9d23675ccd9154b885", - "signature": "7989797f0d8fdf465436c35c4312d0b1ad68e02329f46174b4f2e11b1f3270cb", - "affectsGlobalScope": false - }, - "../src/models/countries/country.model.ts": { - "version": "ddd91a1b4bcedd7dfa467e5d61160ecb03e3ffc1dfbd3d8d6ecf11ab7300bfce", - "signature": "67ecaf5354bbaa4b5bd6a0868c97d2ed404e981840f986aefe2c92f074dc7ddb", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": { - "version": "973392b476ce717b24accaf327ab93d6b8fdb8b3900cc460f1770cd7720a2cfe", - "signature": "1c02d1c6ffe3e006a77ec1951955b9a8803a6f31e92e9ab4bf2ce0182891a1d3", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": { - "version": "59ac9d02f3adb87bc6753d263bfeefe1548d07f373bd574b58cbea05b4e2d5a2", - "signature": "3fb6574da6d5c3a4a2830d14c950b5346136b7125bdab011d9d89e051071095f", - "affectsGlobalScope": false - }, - "../node_modules/@types/mocha/index.d.ts": { - "version": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "signature": "a3a5fc3a8b77a1b96277eff237a15d065d525a6c1c66b303dc98be708e30e7f8", - "affectsGlobalScope": true - }, - "../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": { - "version": "1e29c7fb52b89d69500edf01dbd3c4248a09f30cc33f85d13e951af55ad5b4f8", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": { - "version": "504d4a8c02830dc7ea9d80f22af6f0a225cdab817f46d7bb3193a3053f87aa11", - "signature": "e0c0d55d0b3a14a888989df248d2817b1c684e70531ad07a26677c993463818a", - "affectsGlobalScope": false - }, - "../src/models/data-structures/list/test-list.ts": { - "version": "44726fcd1f6f7102248e882e318f7778b5a1527244680c26f04e2f6f7fc50c91", - "signature": "38d3a1989f758c08cec83245796865fd64101a0969e5fb8f8773688b0e5adbd2", - "affectsGlobalScope": false - }, - "../src/models/path/nearest-item.ts": { - "version": "4646a4b85e4ff83c29baf51a234126ca299e22fb8a90bfab32a8db950331f102", - "signature": "5197c86ccd3aafc3751bb9f190770574c128096d53a0f346662b6865dc012531", - "affectsGlobalScope": false - }, - "../src/models/path/a-star/a-star.ts": { - "version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "affectsGlobalScope": false - }, - "../src/models/path/a-star/grid-node_download.ts": { - "version": "cda59720c81e8c9f62f06e0786c079e1df21a9bc3886f2b7cb97ad362340cdd8", - "signature": "5b2fd1cf8bce1994ad8288b444fe47b504b0bd43444cb03c83ec7e71261418ee", - "affectsGlobalScope": false - }, - "../src/models/path/a-star/graph_download.ts": { - "version": "52e49884568177fcf39efd49781fc1a6673f6df37eb8728b81a9779f7a93d3f9", - "signature": "40b3f2a8f10d4dc70ef53e5518108bee8e9edd6d1a090a1df5df840eb3b23d18", - "affectsGlobalScope": false - }, - "../src/models/path/a-star/a-star_download.ts": { - "version": "5a4893e97ce499c8ea1ec1369216272990535c708473159c8b1b097a9bc648d3", - "signature": "eb797cf8c54f7a5645a14ae87c86a8392d58dbf8c9770996455b94b0e68572df", - "affectsGlobalScope": false - }, - "../src/models/selection/selection-holder.ts": { - "version": "0fe6a52cb242aa6e455dcb096dbad449b647397d9fefbeb3784f9b901c614186", - "signature": "f7583833a39194d273f475fbb608aa0bcfed8a31b45a4d068cc235c0481f21c2", - "affectsGlobalScope": false - }, - "../src/models/selection/selection.ts": { - "version": "31a79b56fece18fa9b6fb2bf561fd1adc217334743bdf886db2d1c196dcd0b7d", - "signature": "32b66b1d55f5f5e262c494e7088b4d96664bee6e43c19f692d88843339a42a99", - "affectsGlobalScope": false - }, - "../src/physics/bounding-boxes/aabb3.ts": { - "version": "efe80cf839597d19fe42b5618905862e2c435e192366c5313760e45fe69521b5", - "signature": "a3b949bf8b44a4fe34f08efba79a27fc7d5cf9e19192342970f76027f521ffa9", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/capsule.ts": { - "version": "d1f952b2ef4bd0a6947301f69141d84934e7c3c28056926fb90cf89fb70c29f6", - "signature": "72657a17bef86c97c10a8f90125c0823dd7ccdbad32afbdf37a43f1f4ab1553c", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/line.ts": { - "version": "d649540f390bef131b1c0380831a9086cd746c0f004d71c095590a55e149d3aa", - "signature": "c99648fb327ac35ae9eade9cef7e17a5272d349343a8375c82f87df9b9e39abc", - "affectsGlobalScope": false - }, - "../src/physics/objects/2d/triangle.ts": { - "version": "f8af68568738ce2e8087acb36753aeb5ac094e18bc8e5a3b384a5def43c49f8d", - "signature": "cfee0b2219fb8b5225953545e9c97bf290ad377c944f7b4b75d7f337b1f7742b", - "affectsGlobalScope": false - }, - "../src/utils/runtime.ts": { - "version": "00edc406523038cce8911333f31690fe488a9ffa542c14e1e36efea9f0aabe45", - "signature": "28ed40676f5cbab9b602191089eb4e99518e3e44ec4dc6aa489a6a589bb0b307", - "affectsGlobalScope": false - }, - "../src/utils/net-client-utils.ts": { - "version": "d5393a04c5ded9a06274e8560c68329329ce1266929e40c3b52fb1f7d6ebe9b1", - "signature": "32d6f2c32bb9683d9dfb89e63bff518d8d4418baa679f96cfce3c13ef221e2a1", - "affectsGlobalScope": false - }, - "../src/utils/net-server-utils.ts": { - "version": "87d178e86d5e83f10f450fb797672a577c5afd130688409311d491ae7a413952", - "signature": "6fadafb88959fadb4f7bf2283e8bd38ac833776f103db811228248818a0dec72", - "affectsGlobalScope": false - }, - "../node_modules/@types/chai/index.d.ts": { - "version": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "signature": "267813ae499a9c070ea61bca2d235e31e785181d967e4461719cbcc78a35abfe", - "affectsGlobalScope": true - }, - "../node_modules/@types/eslint/helpers.d.ts": { - "version": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "signature": "f345b0888d003fd69cb32bad3a0aa04c615ccafc572019e4bd86a52bd5e49e46", - "affectsGlobalScope": true - }, - "../node_modules/@types/json-schema/index.d.ts": { - "version": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "signature": "3a1e165b22a1cb8df82c44c9a09502fd2b33f160cd277de2cd3a055d8e5c6b27", - "affectsGlobalScope": false - }, - "../node_modules/@types/estree/index.d.ts": { - "version": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "signature": "745a853d60bf782583a58584f59e202cae5c7a898b0c92696442602a3ef17a87", - "affectsGlobalScope": false - }, - "../node_modules/@types/eslint/index.d.ts": { - "version": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "signature": "edb3e2f61a2a6e29a5f9043f73adf65951d52b4c1f22e84050381f7ef0d77318", - "affectsGlobalScope": false - }, - "../node_modules/@types/eslint-scope/index.d.ts": { - "version": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "signature": "274bda283ef15f4205603ca9967313fc013aa77ae89f2cbeab5fbd51439e96ed", - "affectsGlobalScope": false - }, - "../node_modules/@types/json5/index.d.ts": { - "version": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "signature": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/globals.d.ts": { - "version": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "signature": "215d8d9a2c480fd460127edc048d68d9931d3b27f95132253a6e71975f060bb1", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/async_hooks.d.ts": { - "version": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "signature": "7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/buffer.d.ts": { - "version": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "signature": "5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/child_process.d.ts": { - "version": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "signature": "89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/cluster.d.ts": { - "version": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "signature": "714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/console.d.ts": { - "version": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "signature": "23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/constants.d.ts": { - "version": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "signature": "0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/crypto.d.ts": { - "version": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "signature": "64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/dgram.d.ts": { - "version": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "signature": "5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/dns.d.ts": { - "version": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "signature": "2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/domain.d.ts": { - "version": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "signature": "06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/events.d.ts": { - "version": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "signature": "bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/fs.d.ts": { - "version": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "signature": "c6e08c755c7dad4c282d2701c2c370fee96a1570d66b1d4ae9be36f34763c9bb", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/fs/promises.d.ts": { - "version": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "signature": "1c082a7783c301909a8da31748ef54bd84d85120f9d78c7d299ce08949f73c88", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/http.d.ts": { - "version": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "signature": "1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/http2.d.ts": { - "version": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "signature": "4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/https.d.ts": { - "version": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "signature": "1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/inspector.d.ts": { - "version": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "signature": "05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/module.d.ts": { - "version": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "signature": "8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/net.d.ts": { - "version": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "signature": "f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/os.d.ts": { - "version": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "signature": "32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/path.d.ts": { - "version": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "signature": "0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/perf_hooks.d.ts": { - "version": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "signature": "ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/process.d.ts": { - "version": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "signature": "06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/punycode.d.ts": { - "version": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "signature": "a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/querystring.d.ts": { - "version": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "signature": "f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/readline.d.ts": { - "version": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "signature": "73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/repl.d.ts": { - "version": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "signature": "8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/stream.d.ts": { - "version": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "signature": "d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/string_decoder.d.ts": { - "version": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "signature": "94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/timers.d.ts": { - "version": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "signature": "2f9c94d2805d249de1ed836937ce1c62dd051bae445661e62ecf238b69893b29", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/tls.d.ts": { - "version": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "signature": "bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/trace_events.d.ts": { - "version": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "signature": "0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/tty.d.ts": { - "version": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "signature": "3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/url.d.ts": { - "version": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "signature": "631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/util.d.ts": { - "version": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "signature": "2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/v8.d.ts": { - "version": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "signature": "da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/vm.d.ts": { - "version": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "signature": "9311a490af2c8590ecb1459efb3cf5faedc11a55e509de6dfaaa733925c88a01", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/worker_threads.d.ts": { - "version": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "signature": "ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/zlib.d.ts": { - "version": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "signature": "515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/ts3.4/base.d.ts": { - "version": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "signature": "d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/globals.global.d.ts": { - "version": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "signature": "2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1", - "affectsGlobalScope": true - }, - "../node_modules/@types/node/wasi.d.ts": { - "version": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "signature": "780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/ts3.6/base.d.ts": { - "version": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "signature": "ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/assert.d.ts": { - "version": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "signature": "19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/base.d.ts": { - "version": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "signature": "e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b", - "affectsGlobalScope": false - }, - "../node_modules/@types/node/index.d.ts": { - "version": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "signature": "744e6430bafc6f39f66c4fc1e6a0d8c9551260ffd1782aa7e3f5166ac6aa1f86", - "affectsGlobalScope": false - } - }, - "options": { - "declaration": false, - "diagnostics": true, - "rootDir": "../src", - "experimentalDecorators": true, - "outDir": "./", - "module": 1, - "noImplicitAny": true, - "strict": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "alwaysStrict": true, - "strictPropertyInitialization": true, - "target": 1, - "lib": [ - "lib.es2016.d.ts", - "lib.dom.d.ts" - ], - "moduleResolution": 2, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "baseUrl": "..", - "paths": { - "gtools/utils": [ - "./src/utils" - ], - "gtools/math": [ - "./src/math" - ], - "gtools/errors": [ - "./src/errors" - ], - "gtools/enums": [ - "./src/enums" - ], - "gtools/models": [ - "./src/models" - ], - "gtools/types": [ - "./src/types" - ], - "gtools/physics": [ - "./src/physics" - ], - "gtools/components": [ - "./src/components" - ] - }, - "incremental": true, - "sourceMap": true, - "removeComments": true, - "pathsBasePath": "D:/Projects/gtools", - "noEmit": false, - "configFilePath": "../src/tsconfig.cjs.json" - }, - "referencedMap": { - "../node_modules/@types/eslint-scope/index.d.ts": [ - "../node_modules/@types/eslint/index.d.ts", - "../node_modules/@types/estree/index.d.ts" - ], - "../node_modules/@types/eslint/index.d.ts": [ - "../node_modules/@types/eslint/helpers.d.ts", - "../node_modules/@types/estree/index.d.ts", - "../node_modules/@types/json-schema/index.d.ts" - ], - "../node_modules/@types/node/assert.d.ts": [ - "../node_modules/@types/node/assert.d.ts" - ], - "../node_modules/@types/node/async_hooks.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts" - ], - "../node_modules/@types/node/base.d.ts": [ - "../node_modules/@types/node/assert.d.ts", - "../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../node_modules/@types/node/buffer.d.ts": [ - "../node_modules/@types/node/buffer.d.ts" - ], - "../node_modules/@types/node/child_process.d.ts": [ - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/cluster.d.ts": [ - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/cluster.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts" - ], - "../node_modules/@types/node/console.d.ts": [ - "../node_modules/@types/node/util.d.ts" - ], - "../node_modules/@types/node/constants.d.ts": [ - "../node_modules/@types/node/constants.d.ts", - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/os.d.ts" - ], - "../node_modules/@types/node/crypto.d.ts": [ - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/dgram.d.ts": [ - "../node_modules/@types/node/dgram.d.ts", - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts" - ], - "../node_modules/@types/node/dns.d.ts": [ - "../node_modules/@types/node/dns.d.ts" - ], - "../node_modules/@types/node/domain.d.ts": [ - "../node_modules/@types/node/domain.d.ts", - "../node_modules/@types/node/events.d.ts" - ], - "../node_modules/@types/node/events.d.ts": [ - "../node_modules/@types/node/events.d.ts" - ], - "../node_modules/@types/node/fs.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/fs/promises.d.ts": [ - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts" - ], - "../node_modules/@types/node/http.d.ts": [ - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/http2.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/http2.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/https.d.ts": [ - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/https.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/index.d.ts": [ - "../node_modules/@types/node/base.d.ts" - ], - "../node_modules/@types/node/inspector.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/inspector.d.ts" - ], - "../node_modules/@types/node/module.d.ts": [ - "../node_modules/@types/node/module.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/net.d.ts": [ - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/os.d.ts": [ - "../node_modules/@types/node/os.d.ts" - ], - "../node_modules/@types/node/path.d.ts": [ - "../node_modules/@types/node/path.d.ts" - ], - "../node_modules/@types/node/perf_hooks.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts", - "../node_modules/@types/node/perf_hooks.d.ts" - ], - "../node_modules/@types/node/process.d.ts": [ - "../node_modules/@types/node/tty.d.ts" - ], - "../node_modules/@types/node/punycode.d.ts": [ - "../node_modules/@types/node/punycode.d.ts" - ], - "../node_modules/@types/node/querystring.d.ts": [ - "../node_modules/@types/node/querystring.d.ts" - ], - "../node_modules/@types/node/readline.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/readline.d.ts" - ], - "../node_modules/@types/node/repl.d.ts": [ - "../node_modules/@types/node/readline.d.ts", - "../node_modules/@types/node/repl.d.ts", - "../node_modules/@types/node/util.d.ts", - "../node_modules/@types/node/vm.d.ts" - ], - "../node_modules/@types/node/stream.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/string_decoder.d.ts": [ - "../node_modules/@types/node/string_decoder.d.ts" - ], - "../node_modules/@types/node/timers.d.ts": [ - "../node_modules/@types/node/timers.d.ts" - ], - "../node_modules/@types/node/tls.d.ts": [ - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/tls.d.ts" - ], - "../node_modules/@types/node/trace_events.d.ts": [ - "../node_modules/@types/node/trace_events.d.ts" - ], - "../node_modules/@types/node/ts3.4/base.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts", - "../node_modules/@types/node/buffer.d.ts", - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/cluster.d.ts", - "../node_modules/@types/node/console.d.ts", - "../node_modules/@types/node/constants.d.ts", - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/dgram.d.ts", - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/domain.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/globals.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/http2.d.ts", - "../node_modules/@types/node/https.d.ts", - "../node_modules/@types/node/inspector.d.ts", - "../node_modules/@types/node/module.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/os.d.ts", - "../node_modules/@types/node/path.d.ts", - "../node_modules/@types/node/perf_hooks.d.ts", - "../node_modules/@types/node/process.d.ts", - "../node_modules/@types/node/punycode.d.ts", - "../node_modules/@types/node/querystring.d.ts", - "../node_modules/@types/node/readline.d.ts", - "../node_modules/@types/node/repl.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/string_decoder.d.ts", - "../node_modules/@types/node/timers.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/trace_events.d.ts", - "../node_modules/@types/node/tty.d.ts", - "../node_modules/@types/node/url.d.ts", - "../node_modules/@types/node/util.d.ts", - "../node_modules/@types/node/v8.d.ts", - "../node_modules/@types/node/vm.d.ts", - "../node_modules/@types/node/worker_threads.d.ts", - "../node_modules/@types/node/zlib.d.ts" - ], - "../node_modules/@types/node/ts3.6/base.d.ts": [ - "../node_modules/@types/node/globals.global.d.ts", - "../node_modules/@types/node/ts3.4/base.d.ts", - "../node_modules/@types/node/wasi.d.ts" - ], - "../node_modules/@types/node/tty.d.ts": [ - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/tty.d.ts" - ], - "../node_modules/@types/node/url.d.ts": [ - "../node_modules/@types/node/querystring.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/util.d.ts": [ - "../node_modules/@types/node/util.d.ts" - ], - "../node_modules/@types/node/v8.d.ts": [ - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/v8.d.ts" - ], - "../node_modules/@types/node/vm.d.ts": [ - "../node_modules/@types/node/vm.d.ts" - ], - "../node_modules/@types/node/wasi.d.ts": [ - "../node_modules/@types/node/wasi.d.ts" - ], - "../node_modules/@types/node/worker_threads.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts", - "../node_modules/@types/node/vm.d.ts", - "../node_modules/@types/node/worker_threads.d.ts" - ], - "../node_modules/@types/node/zlib.d.ts": [ - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/zlib.d.ts" - ], - "../src/common.ts": [ - "../src/components/file-manager.ts", - "../src/components/key-value-counter.ts", - "../src/components/number-counter.ts", - "../src/components/paginator.ts", - "../src/config/gtools-config.ts", - "../src/enums/encodings.enum.ts", - "../src/enums/file-types.enum.ts", - "../src/enums/http-status-codes.enum.ts", - "../src/enums/keys.enum.ts", - "../src/math/vector2f.ts", - "../src/models/gender.model.ts", - "../src/tests/abstract-database.fixture.ts", - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts", - "../src/tests/paginate.model.ts", - "../src/types/key-value.interface.ts", - "../src/types/size.interaface.ts", - "../src/types/string-map.interface.ts", - "../src/utils/string-checkers.ts" - ], - "../src/components/file-manager.ts": [ - "../src/enums/index.ts" - ], - "../src/components/index.ts": [ - "../src/components/bidirectional-graph.ts", - "../src/components/file-manager.ts", - "../src/components/g-map.ts", - "../src/components/key-value-counter.ts", - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-default-formatter.ts", - "../src/components/logger/g-logger-instance.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts", - "../src/components/number-counter.ts", - "../src/components/paginator.ts" - ], - "../src/components/logger/g-logger-callback-holder.ts": [ - "../src/components/logger/g-logger-default-formatter.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts" - ], - "../src/components/logger/g-logger-default-formatter.ts": [ - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts", - "../src/utils/index.ts" - ], - "../src/components/logger/g-logger-instance.ts": [ - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts" - ], - "../src/components/logger/g-logger.ts": [ - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-instance.ts", - "../src/components/logger/g-logger-priority.ts" - ], - "../src/components/paginator.ts": [ - "../src/config/gtools-config.ts" - ], - "../src/config/gtools-config.ts": [ - "../src/config/gtools-config.interface.ts" - ], - "../src/decorators/deprecated.decorator.ts": [ - "../src/types/index.ts" - ], - "../src/decorators/index.ts": [ - "../src/decorators/deprecated.decorator.ts", - "../src/decorators/final-class.decorator.ts", - "../src/decorators/mapper.decorator.ts", - "../src/decorators/singleton.decorator.ts", - "../src/decorators/watch.decorator.ts" - ], - "../src/decorators/watch.decorator.ts": [ - "../src/types/index.ts" - ], - "../src/dom/canvas-camera.ts": [ - "../src/math/index.ts" - ], - "../src/dom/canvas-drawer-advanced.ts": [ - "../src/dom/canvas-drawer.ts", - "../src/dom/canvas-manager.ts", - "../src/dom/types/canvas-shadow-config.ts", - "../src/types/index.ts" - ], - "../src/dom/canvas-drawer.ts": [ - "../src/dom/canvas-misc-utilts.ts", - "../src/dom/drawer.ts", - "../src/math/index.ts", - "../src/types/index.ts" - ], - "../src/dom/canvas-manager.ts": [ - "../src/errors/index.ts", - "../src/models/index.ts" - ], - "../src/dom/canvas-misc-utilts.ts": [ - "../src/types/index.ts" - ], - "../src/dom/canvas-utils.ts": [ - "../src/dom/canvas-manager.ts", - "../src/dom/types/canvas-shadow-config.ts", - "../src/math/index.ts" - ], - "../src/dom/drawer.ts": [ - "../src/math/index.ts", - "../src/types/index.ts" - ], - "../src/dom/element-builder.ts": [ - "../src/types/index.ts" - ], - "../src/enums/index.ts": [ - "../src/enums/button.enum.ts", - "../src/enums/days.enum.ts", - "../src/enums/encodings.enum.ts", - "../src/enums/file-types.enum.ts", - "../src/enums/http-status-codes.enum.ts", - "../src/enums/keys.enum.ts" - ], - "../src/errors/index.ts": [ - "../src/errors/missing-parameter.error.ts", - "../src/errors/no-database-connection.error.ts", - "../src/errors/not-browser.exception.ts", - "../src/errors/null-pointer.exception.ts", - "../src/errors/wrong-parameter.exception.ts", - "../src/errors/wrong-type.exception.ts" - ], - "../src/gutils.ts": [ - "../src/components/index.ts", - "../src/config/gtools-config.interface.ts", - "../src/config/gtools-config.ts", - "../src/decorators/index.ts", - "../src/dom/canvas-manager.ts", - "../src/dom/canvas-utils.ts", - "../src/dom/dom-get.ts", - "../src/dom/types/canvas-shadow-config.ts", - "../src/enums/index.ts", - "../src/errors/index.ts", - "../src/math/index.ts", - "../src/misc/index.ts", - "../src/models/index.ts", - "../src/physics/index.ts", - "../src/tests/abstract-database.fixture.ts", - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts", - "../src/tests/paginate.model.ts", - "../src/types/index.ts", - "../src/utils/index.ts", - "../src/validators/index.ts" - ], - "../src/index.ts": [ - "../src/gutils.ts" - ], - "../src/math/index.ts": [ - "../src/math/mat4.ts", - "../src/math/simple-vector-xz.ts", - "../src/math/simple-vector2.ts", - "../src/math/simple-vector3.ts", - "../src/math/simple-vector4.ts", - "../src/math/vector.ts", - "../src/math/vector2.ts", - "../src/math/vector2f.ts", - "../src/math/vector3.ts", - "../src/math/vector4.ts" - ], - "../src/math/simple-vector3.ts": [ - "../src/math/simple-vector2.ts" - ], - "../src/math/simple-vector4.ts": [ - "../src/math/simple-vector3.ts" - ], - "../src/math/vector.ts": [ - "../src/math/simple-vector2.ts" - ], - "../src/math/vector2.ts": [ - "../src/math/simple-vector2.ts", - "../src/models/index.ts" - ], - "../src/math/vector3.ts": [ - "../src/math/simple-vector3.ts", - "../src/math/vector2.ts" - ], - "../src/math/vector4.ts": [ - "../src/math/simple-vector4.ts" - ], - "../src/misc/index.ts": [ - "../src/misc/ajax.ts", - "../src/misc/file-size-formatter.ts", - "../src/misc/runtime-validators.ts", - "../src/misc/simple-loop.ts", - "../src/misc/slovak-stemmer.ts" - ], - "../src/models/color.model.ts": [ - "../src/utils/index.ts" - ], - "../src/models/countries/country.model.ts": [ - "../src/models/countries/country.interface.ts", - "../src/utils/index.ts" - ], - "../src/models/data-structures/binary-tree.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts", - "../src/utils/math-utils.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts", - "../src/utils/object-utils.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../node_modules/@types/mocha/index.d.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/utils/math-utils.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts": [ - "../src/utils/object-utils.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../node_modules/@types/mocha/index.d.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../src/models/data-structures/grid-accessor/index.ts": [ - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/list/index.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/bi-directional-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts", - "../src/models/data-structures/list/one-directional-linked-list.ts", - "../src/models/data-structures/list/sorted-array-list.ts" - ], - "../src/models/data-structures/list/list.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/list/sorted-array-list.ts": [ - "../src/models/data-structures/list/list.ts", - "../src/utils/sorted-array-utils.ts" - ], - "../src/models/data-structures/list/test-list.ts": [ - "../src/models/data-structures/list/list.ts", - "../src/utils/index.ts" - ], - "../src/models/data-structures/priority-queue.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../src/math/index.ts" - ], - "../src/models/index.ts": [ - "../src/models/color.model.ts", - "../src/models/data-structures/binary-queue.ts", - "../src/models/data-structures/binary-tree.ts", - "../src/models/data-structures/grid-accessor/index.ts", - "../src/models/data-structures/list/index.ts", - "../src/models/data-structures/priority-queue.ts", - "../src/models/data-structures/quad-tree/quad-tree.ts", - "../src/models/gender.model.ts", - "../src/models/path-2d.ts", - "../src/models/path/djikstra/djikstra.ts", - "../src/models/range.ts", - "../src/models/sorting/index.ts", - "../src/models/transform-2d.ts" - ], - "../src/models/path-2d.ts": [ - "../src/math/index.ts" - ], - "../src/models/path/a-star/a-star_download.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/binary-queue.ts", - "../src/models/path/a-star/graph_download.ts", - "../src/models/path/a-star/grid-node_download.ts" - ], - "../src/models/path/a-star/graph_download.ts": [ - "../src/models/path/a-star/a-star_download.ts", - "../src/models/path/a-star/grid-node_download.ts" - ], - "../src/models/path/nearest-item.ts": [ - "../src/models/data-structures/priority-queue.ts" - ], - "../src/models/range.ts": [ - "../src/math/index.ts", - "../src/models/color.model.ts", - "../src/utils/index.ts" - ], - "../src/models/selection/selection.ts": [ - "../src/models/selection/selection-holder.ts" - ], - "../src/models/sorting/index.ts": [ - "../src/models/sorting/bucket-sort.ts", - "../src/models/sorting/counting-sort.ts", - "../src/models/sorting/heap-sort.ts", - "../src/models/sorting/insertion-sort.ts", - "../src/models/sorting/merge-sort.ts", - "../src/models/sorting/quick-sort.ts", - "../src/models/sorting/radix-sort.ts" - ], - "../src/models/transform-2d.ts": [ - "../src/math/index.ts" - ], - "../src/node.ts": [ - "../src/dom/canvas-manager.ts", - "../src/dom/dom-get.ts", - "../src/misc/slovak-stemmer.ts", - "../src/utils/array-utils.ts", - "../src/utils/fileutils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/time-utils.ts" - ], - "../src/physics/bounders-2d.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/types/index.ts" - ], - "../src/physics/bounding-boxes/aabb3.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/types/index.ts" - ], - "../src/physics/closest-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/collisions-2d.ts": [ - "../src/physics/distances-2d.ts" - ], - "../src/physics/collisions-3d.ts": [ - "../src/math/index.ts", - "../src/physics/closest-3d.ts", - "../src/physics/collisions-2d.ts", - "../src/physics/distances-2d.ts", - "../src/physics/distances-3d.ts", - "../src/physics/intersects-3d.ts" - ], - "../src/physics/distances-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/index.ts": [ - "../src/physics/bounders-2d.ts", - "../src/physics/closest-2d.ts", - "../src/physics/closest-3d.ts", - "../src/physics/collisions-2d.ts", - "../src/physics/collisions-3d.ts", - "../src/physics/distances-2d.ts", - "../src/physics/distances-3d.ts", - "../src/physics/intersects-2d.ts", - "../src/physics/intersects-3d.ts", - "../src/physics/objects/index.ts" - ], - "../src/physics/intersects-2d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/intersects-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/objects/2d/capsule.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/line.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/object2-d.ts": [ - "../src/physics/objects/2d/ray-2d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/ray-2d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/objects/2d/rect.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/physics/objects/object-convertors.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/sphere.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/physics/objects/object-convertors.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/triangle.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/index.ts": [ - "../src/physics/objects/2d/rect.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/physics/objects/object-convertors.ts" - ], - "../src/physics/objects/object-convertors.ts": [ - "../src/types/index.ts" - ], - "../src/tests/abstract-database.fixture.ts": [ - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts" - ], - "../src/types/helpers/min-max-2d.interface.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/min-max-3d.interface.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/pos-size-2d.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/pos-size-3d.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/xywh.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/xyzwhd.ts": [ - "../src/math/index.ts" - ], - "../src/types/index.ts": [ - "../src/types/helpers/min-max-2d.interface.ts", - "../src/types/helpers/min-max-3d.interface.ts", - "../src/types/helpers/pos-size-2d.ts", - "../src/types/helpers/pos-size-3d.ts", - "../src/types/helpers/xywh.ts", - "../src/types/helpers/xyzwhd.ts", - "../src/types/horizontal-align.type.ts", - "../src/types/key-value.interface.ts", - "../src/types/nested-string-map.interface.ts", - "../src/types/object-entry.interface.ts", - "../src/types/optional.type.ts", - "../src/types/prop.type.ts", - "../src/types/property-decorator.type.ts", - "../src/types/ray2d.ts", - "../src/types/ray3d.ts", - "../src/types/round-data.type.ts", - "../src/types/size.interaface.ts", - "../src/types/string-map.interface.ts", - "../src/types/text-options.interface.ts", - "../src/types/type.interface.ts", - "../src/types/unit-number.type.ts", - "../src/types/vertical-align.type.ts" - ], - "../src/types/object-entry.interface.ts": [ - "../src/types/key-value.interface.ts" - ], - "../src/types/ray2d.ts": [ - "../src/math/index.ts" - ], - "../src/types/ray3d.ts": [ - "../src/math/index.ts" - ], - "../src/types/text-options.interface.ts": [ - "../src/types/horizontal-align.type.ts", - "../src/types/vertical-align.type.ts" - ], - "../src/utils/color-utils.ts": [ - "../src/utils/math-utils.ts" - ], - "../src/utils/domutils.ts": [ - "../src/dom/dom-get.ts", - "../src/errors/index.ts", - "../src/math/index.ts", - "../src/types/index.ts", - "../src/validators/misc-validators.ts" - ], - "../src/utils/fileutils.ts": [ - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/path.d.ts", - "../src/utils/string-utils.ts" - ], - "../src/utils/html-utils.ts": [ - "../src/constants.ts" - ], - "../src/utils/image-utils.ts": [ - "../src/utils/html-utils.ts" - ], - "../src/utils/index.ts": [ - "../src/utils/analytics-utils.ts", - "../src/utils/array-utils.ts", - "../src/utils/coerce-util.ts", - "../src/utils/color-utils.ts", - "../src/utils/date-utils.ts", - "../src/utils/html-utils.ts", - "../src/utils/image-utils.ts", - "../src/utils/input-utils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/parser-utils.ts", - "../src/utils/process-utils.ts", - "../src/utils/random-utils.ts", - "../src/utils/reflection-utils.ts", - "../src/utils/sorted-array-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/svg-utils.ts", - "../src/utils/time-utils.ts" - ], - "../src/utils/input-utils.ts": [ - "../src/enums/index.ts" - ], - "../src/utils/math-utils.ts": [ - "../src/utils/random-utils.ts" - ], - "../src/utils/misc-utils.ts": [ - "../src/types/index.ts" - ], - "../src/utils/net-client-utils.ts": [ - "../src/errors/index.ts", - "../src/utils/html-utils.ts" - ], - "../src/utils/net-server-utils.ts": [ - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/https.d.ts" - ], - "../src/utils/object-utils.ts": [ - "../src/types/index.ts" - ], - "../src/utils/runtime.ts": [ - "../src/errors/index.ts", - "../src/validators/misc-validators.ts" - ], - "../src/utils/string-checkers.ts": [ - "../src/validators/misc-validators.ts" - ], - "../src/utils/string-utils.ts": [ - "../src/types/index.ts", - "../src/utils/array-utils.ts", - "../src/utils/string-checkers.ts" - ], - "../src/utils/time-utils.ts": [ - "../src/types/index.ts" - ], - "../src/validators/index.ts": [ - "../src/validators/misc-validators.ts" - ], - "../src/web.ts": [ - "../src/dom/canvas-manager.ts", - "../src/dom/dom-get.ts", - "../src/misc/slovak-stemmer.ts", - "../src/utils/array-utils.ts", - "../src/utils/domutils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/time-utils.ts" - ] - }, - "exportedModulesMap": { - "../node_modules/@types/eslint-scope/index.d.ts": [ - "../node_modules/@types/eslint/index.d.ts", - "../node_modules/@types/estree/index.d.ts" - ], - "../node_modules/@types/eslint/index.d.ts": [ - "../node_modules/@types/eslint/helpers.d.ts", - "../node_modules/@types/estree/index.d.ts", - "../node_modules/@types/json-schema/index.d.ts" - ], - "../node_modules/@types/node/assert.d.ts": [ - "../node_modules/@types/node/assert.d.ts" - ], - "../node_modules/@types/node/async_hooks.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts" - ], - "../node_modules/@types/node/base.d.ts": [ - "../node_modules/@types/node/assert.d.ts", - "../node_modules/@types/node/ts3.6/base.d.ts" - ], - "../node_modules/@types/node/buffer.d.ts": [ - "../node_modules/@types/node/buffer.d.ts" - ], - "../node_modules/@types/node/child_process.d.ts": [ - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/cluster.d.ts": [ - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/cluster.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts" - ], - "../node_modules/@types/node/console.d.ts": [ - "../node_modules/@types/node/util.d.ts" - ], - "../node_modules/@types/node/constants.d.ts": [ - "../node_modules/@types/node/constants.d.ts", - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/os.d.ts" - ], - "../node_modules/@types/node/crypto.d.ts": [ - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/dgram.d.ts": [ - "../node_modules/@types/node/dgram.d.ts", - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts" - ], - "../node_modules/@types/node/dns.d.ts": [ - "../node_modules/@types/node/dns.d.ts" - ], - "../node_modules/@types/node/domain.d.ts": [ - "../node_modules/@types/node/domain.d.ts", - "../node_modules/@types/node/events.d.ts" - ], - "../node_modules/@types/node/events.d.ts": [ - "../node_modules/@types/node/events.d.ts" - ], - "../node_modules/@types/node/fs.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/fs/promises.d.ts": [ - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts" - ], - "../node_modules/@types/node/http.d.ts": [ - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/http2.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/http2.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/https.d.ts": [ - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/https.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/index.d.ts": [ - "../node_modules/@types/node/base.d.ts" - ], - "../node_modules/@types/node/inspector.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/inspector.d.ts" - ], - "../node_modules/@types/node/module.d.ts": [ - "../node_modules/@types/node/module.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/net.d.ts": [ - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/os.d.ts": [ - "../node_modules/@types/node/os.d.ts" - ], - "../node_modules/@types/node/path.d.ts": [ - "../node_modules/@types/node/path.d.ts" - ], - "../node_modules/@types/node/perf_hooks.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts", - "../node_modules/@types/node/perf_hooks.d.ts" - ], - "../node_modules/@types/node/process.d.ts": [ - "../node_modules/@types/node/tty.d.ts" - ], - "../node_modules/@types/node/punycode.d.ts": [ - "../node_modules/@types/node/punycode.d.ts" - ], - "../node_modules/@types/node/querystring.d.ts": [ - "../node_modules/@types/node/querystring.d.ts" - ], - "../node_modules/@types/node/readline.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/readline.d.ts" - ], - "../node_modules/@types/node/repl.d.ts": [ - "../node_modules/@types/node/readline.d.ts", - "../node_modules/@types/node/repl.d.ts", - "../node_modules/@types/node/util.d.ts", - "../node_modules/@types/node/vm.d.ts" - ], - "../node_modules/@types/node/stream.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/stream.d.ts" - ], - "../node_modules/@types/node/string_decoder.d.ts": [ - "../node_modules/@types/node/string_decoder.d.ts" - ], - "../node_modules/@types/node/timers.d.ts": [ - "../node_modules/@types/node/timers.d.ts" - ], - "../node_modules/@types/node/tls.d.ts": [ - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/tls.d.ts" - ], - "../node_modules/@types/node/trace_events.d.ts": [ - "../node_modules/@types/node/trace_events.d.ts" - ], - "../node_modules/@types/node/ts3.4/base.d.ts": [ - "../node_modules/@types/node/async_hooks.d.ts", - "../node_modules/@types/node/buffer.d.ts", - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/cluster.d.ts", - "../node_modules/@types/node/console.d.ts", - "../node_modules/@types/node/constants.d.ts", - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/dgram.d.ts", - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/domain.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/globals.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/http2.d.ts", - "../node_modules/@types/node/https.d.ts", - "../node_modules/@types/node/inspector.d.ts", - "../node_modules/@types/node/module.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/os.d.ts", - "../node_modules/@types/node/path.d.ts", - "../node_modules/@types/node/perf_hooks.d.ts", - "../node_modules/@types/node/process.d.ts", - "../node_modules/@types/node/punycode.d.ts", - "../node_modules/@types/node/querystring.d.ts", - "../node_modules/@types/node/readline.d.ts", - "../node_modules/@types/node/repl.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/string_decoder.d.ts", - "../node_modules/@types/node/timers.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/trace_events.d.ts", - "../node_modules/@types/node/tty.d.ts", - "../node_modules/@types/node/url.d.ts", - "../node_modules/@types/node/util.d.ts", - "../node_modules/@types/node/v8.d.ts", - "../node_modules/@types/node/vm.d.ts", - "../node_modules/@types/node/worker_threads.d.ts", - "../node_modules/@types/node/zlib.d.ts" - ], - "../node_modules/@types/node/ts3.6/base.d.ts": [ - "../node_modules/@types/node/globals.global.d.ts", - "../node_modules/@types/node/ts3.4/base.d.ts", - "../node_modules/@types/node/wasi.d.ts" - ], - "../node_modules/@types/node/tty.d.ts": [ - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/tty.d.ts" - ], - "../node_modules/@types/node/url.d.ts": [ - "../node_modules/@types/node/querystring.d.ts", - "../node_modules/@types/node/url.d.ts" - ], - "../node_modules/@types/node/util.d.ts": [ - "../node_modules/@types/node/util.d.ts" - ], - "../node_modules/@types/node/v8.d.ts": [ - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/v8.d.ts" - ], - "../node_modules/@types/node/vm.d.ts": [ - "../node_modules/@types/node/vm.d.ts" - ], - "../node_modules/@types/node/wasi.d.ts": [ - "../node_modules/@types/node/wasi.d.ts" - ], - "../node_modules/@types/node/worker_threads.d.ts": [ - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/url.d.ts", - "../node_modules/@types/node/vm.d.ts", - "../node_modules/@types/node/worker_threads.d.ts" - ], - "../node_modules/@types/node/zlib.d.ts": [ - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/zlib.d.ts" - ], - "../src/common.ts": [ - "../src/components/file-manager.ts", - "../src/components/key-value-counter.ts", - "../src/components/number-counter.ts", - "../src/components/paginator.ts", - "../src/config/gtools-config.ts", - "../src/enums/encodings.enum.ts", - "../src/enums/file-types.enum.ts", - "../src/enums/http-status-codes.enum.ts", - "../src/enums/keys.enum.ts", - "../src/math/vector2f.ts", - "../src/models/gender.model.ts", - "../src/tests/abstract-database.fixture.ts", - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts", - "../src/tests/paginate.model.ts", - "../src/types/key-value.interface.ts", - "../src/types/size.interaface.ts", - "../src/types/string-map.interface.ts", - "../src/utils/string-checkers.ts" - ], - "../src/components/file-manager.ts": [ - "../src/enums/index.ts" - ], - "../src/components/index.ts": [ - "../src/components/bidirectional-graph.ts", - "../src/components/file-manager.ts", - "../src/components/g-map.ts", - "../src/components/key-value-counter.ts", - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-default-formatter.ts", - "../src/components/logger/g-logger-instance.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts", - "../src/components/number-counter.ts", - "../src/components/paginator.ts" - ], - "../src/components/logger/g-logger-callback-holder.ts": [ - "../src/components/logger/g-logger-default-formatter.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts" - ], - "../src/components/logger/g-logger-default-formatter.ts": [ - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts" - ], - "../src/components/logger/g-logger-instance.ts": [ - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts" - ], - "../src/components/logger/g-logger.ts": [ - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-instance.ts", - "../src/components/logger/g-logger-priority.ts" - ], - "../src/config/gtools-config.ts": [ - "../src/config/gtools-config.interface.ts" - ], - "../src/decorators/deprecated.decorator.ts": [ - "../src/types/index.ts" - ], - "../src/decorators/index.ts": [ - "../src/decorators/deprecated.decorator.ts", - "../src/decorators/final-class.decorator.ts", - "../src/decorators/mapper.decorator.ts", - "../src/decorators/singleton.decorator.ts", - "../src/decorators/watch.decorator.ts" - ], - "../src/decorators/watch.decorator.ts": [ - "../src/types/index.ts" - ], - "../src/dom/canvas-camera.ts": [ - "../src/math/index.ts" - ], - "../src/dom/canvas-drawer-advanced.ts": [ - "../src/dom/types/canvas-shadow-config.ts", - "../src/types/index.ts" - ], - "../src/dom/canvas-drawer.ts": [ - "../src/dom/drawer.ts", - "../src/math/index.ts", - "../src/types/index.ts" - ], - "../src/dom/canvas-manager.ts": [ - "../src/models/index.ts" - ], - "../src/dom/canvas-misc-utilts.ts": [ - "../src/types/index.ts" - ], - "../src/dom/canvas-utils.ts": [ - "../src/dom/types/canvas-shadow-config.ts", - "../src/math/index.ts" - ], - "../src/dom/drawer.ts": [ - "../src/math/index.ts", - "../src/types/index.ts" - ], - "../src/enums/index.ts": [ - "../src/enums/button.enum.ts", - "../src/enums/days.enum.ts", - "../src/enums/encodings.enum.ts", - "../src/enums/file-types.enum.ts", - "../src/enums/http-status-codes.enum.ts", - "../src/enums/keys.enum.ts" - ], - "../src/errors/index.ts": [ - "../src/errors/missing-parameter.error.ts", - "../src/errors/no-database-connection.error.ts", - "../src/errors/not-browser.exception.ts", - "../src/errors/null-pointer.exception.ts", - "../src/errors/wrong-parameter.exception.ts", - "../src/errors/wrong-type.exception.ts" - ], - "../src/gutils.ts": [ - "../src/components/index.ts", - "../src/config/gtools-config.interface.ts", - "../src/config/gtools-config.ts", - "../src/decorators/index.ts", - "../src/dom/canvas-manager.ts", - "../src/dom/canvas-utils.ts", - "../src/dom/dom-get.ts", - "../src/dom/types/canvas-shadow-config.ts", - "../src/enums/index.ts", - "../src/errors/index.ts", - "../src/math/index.ts", - "../src/misc/index.ts", - "../src/models/index.ts", - "../src/physics/index.ts", - "../src/tests/abstract-database.fixture.ts", - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts", - "../src/tests/paginate.model.ts", - "../src/types/index.ts", - "../src/utils/index.ts", - "../src/validators/index.ts" - ], - "../src/index.ts": [ - "../src/gutils.ts" - ], - "../src/math/index.ts": [ - "../src/math/mat4.ts", - "../src/math/simple-vector-xz.ts", - "../src/math/simple-vector2.ts", - "../src/math/simple-vector3.ts", - "../src/math/simple-vector4.ts", - "../src/math/vector.ts", - "../src/math/vector2.ts", - "../src/math/vector2f.ts", - "../src/math/vector3.ts", - "../src/math/vector4.ts" - ], - "../src/math/simple-vector3.ts": [ - "../src/math/simple-vector2.ts" - ], - "../src/math/simple-vector4.ts": [ - "../src/math/simple-vector3.ts" - ], - "../src/math/vector.ts": [ - "../src/math/simple-vector2.ts" - ], - "../src/math/vector2.ts": [ - "../src/math/simple-vector2.ts", - "../src/models/index.ts" - ], - "../src/math/vector3.ts": [ - "../src/math/simple-vector3.ts", - "../src/math/vector2.ts" - ], - "../src/math/vector4.ts": [ - "../src/math/simple-vector4.ts" - ], - "../src/misc/index.ts": [ - "../src/misc/ajax.ts", - "../src/misc/file-size-formatter.ts", - "../src/misc/runtime-validators.ts", - "../src/misc/simple-loop.ts", - "../src/misc/slovak-stemmer.ts" - ], - "../src/models/countries/country.model.ts": [ - "../src/models/countries/country.interface.ts" - ], - "../src/models/data-structures/binary-tree.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/grid-accessor/grid-filters.ts": [ - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../src/models/data-structures/grid-accessor/grid2-accessor.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts": [ - "../src/math/index.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts": [ - "../node_modules/@types/mocha/index.d.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts": [ - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts": [ - "../src/math/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts": [ - "../src/math/index.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/index.ts" - ], - "../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts": [ - "../node_modules/@types/mocha/index.d.ts" - ], - "../src/models/data-structures/grid-accessor/index.ts": [ - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts" - ], - "../src/models/data-structures/list/bi-directional-linked-list.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/list/index.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/bi-directional-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts", - "../src/models/data-structures/list/one-directional-linked-list.ts", - "../src/models/data-structures/list/sorted-array-list.ts" - ], - "../src/models/data-structures/list/list.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/list/one-directional-linked-list.ts": [ - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/list/sorted-array-list.ts": [ - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/list/test-list.ts": [ - "../src/models/data-structures/list/list.ts" - ], - "../src/models/data-structures/priority-queue.ts": [ - "../src/models/data-structures/g43-collection.ts" - ], - "../src/models/data-structures/quad-tree/quad-tree.ts": [ - "../src/math/index.ts" - ], - "../src/models/index.ts": [ - "../src/models/color.model.ts", - "../src/models/data-structures/binary-queue.ts", - "../src/models/data-structures/binary-tree.ts", - "../src/models/data-structures/grid-accessor/index.ts", - "../src/models/data-structures/list/index.ts", - "../src/models/data-structures/priority-queue.ts", - "../src/models/data-structures/quad-tree/quad-tree.ts", - "../src/models/gender.model.ts", - "../src/models/path-2d.ts", - "../src/models/path/djikstra/djikstra.ts", - "../src/models/range.ts", - "../src/models/sorting/index.ts", - "../src/models/transform-2d.ts" - ], - "../src/models/path-2d.ts": [ - "../src/math/index.ts" - ], - "../src/models/path/a-star/a-star_download.ts": [ - "../src/math/index.ts", - "../src/models/path/a-star/graph_download.ts", - "../src/models/path/a-star/grid-node_download.ts" - ], - "../src/models/path/a-star/graph_download.ts": [ - "../src/models/path/a-star/grid-node_download.ts" - ], - "../src/models/range.ts": [ - "../src/math/index.ts", - "../src/models/color.model.ts" - ], - "../src/models/sorting/index.ts": [ - "../src/models/sorting/bucket-sort.ts", - "../src/models/sorting/counting-sort.ts", - "../src/models/sorting/heap-sort.ts", - "../src/models/sorting/insertion-sort.ts", - "../src/models/sorting/merge-sort.ts", - "../src/models/sorting/quick-sort.ts", - "../src/models/sorting/radix-sort.ts" - ], - "../src/models/transform-2d.ts": [ - "../src/math/index.ts" - ], - "../src/node.ts": [ - "../src/dom/canvas-manager.ts", - "../src/dom/dom-get.ts", - "../src/misc/slovak-stemmer.ts", - "../src/utils/array-utils.ts", - "../src/utils/fileutils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/time-utils.ts" - ], - "../src/physics/bounders-2d.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/types/index.ts" - ], - "../src/physics/bounding-boxes/aabb3.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/types/index.ts" - ], - "../src/physics/closest-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/collisions-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/distances-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/index.ts": [ - "../src/physics/bounders-2d.ts", - "../src/physics/closest-2d.ts", - "../src/physics/closest-3d.ts", - "../src/physics/collisions-2d.ts", - "../src/physics/collisions-3d.ts", - "../src/physics/distances-2d.ts", - "../src/physics/distances-3d.ts", - "../src/physics/intersects-2d.ts", - "../src/physics/intersects-3d.ts", - "../src/physics/objects/index.ts" - ], - "../src/physics/intersects-2d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/intersects-3d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/objects/2d/capsule.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/line.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/object2-d.ts": [ - "../src/physics/objects/2d/ray-2d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/ray-2d.ts": [ - "../src/math/index.ts" - ], - "../src/physics/objects/2d/rect.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/sphere.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/2d/triangle.ts": [ - "../src/math/index.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/types/index.ts" - ], - "../src/physics/objects/index.ts": [ - "../src/physics/objects/2d/rect.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/physics/objects/object-convertors.ts" - ], - "../src/physics/objects/object-convertors.ts": [ - "../src/types/index.ts" - ], - "../src/tests/abstract-database.fixture.ts": [ - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts" - ], - "../src/types/helpers/min-max-2d.interface.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/min-max-3d.interface.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/pos-size-2d.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/pos-size-3d.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/xywh.ts": [ - "../src/math/index.ts" - ], - "../src/types/helpers/xyzwhd.ts": [ - "../src/math/index.ts" - ], - "../src/types/index.ts": [ - "../src/types/helpers/min-max-2d.interface.ts", - "../src/types/helpers/min-max-3d.interface.ts", - "../src/types/helpers/pos-size-2d.ts", - "../src/types/helpers/pos-size-3d.ts", - "../src/types/helpers/xywh.ts", - "../src/types/helpers/xyzwhd.ts", - "../src/types/horizontal-align.type.ts", - "../src/types/key-value.interface.ts", - "../src/types/nested-string-map.interface.ts", - "../src/types/object-entry.interface.ts", - "../src/types/optional.type.ts", - "../src/types/prop.type.ts", - "../src/types/property-decorator.type.ts", - "../src/types/ray2d.ts", - "../src/types/ray3d.ts", - "../src/types/round-data.type.ts", - "../src/types/size.interaface.ts", - "../src/types/string-map.interface.ts", - "../src/types/text-options.interface.ts", - "../src/types/type.interface.ts", - "../src/types/unit-number.type.ts", - "../src/types/vertical-align.type.ts" - ], - "../src/types/object-entry.interface.ts": [ - "../src/types/key-value.interface.ts" - ], - "../src/types/ray2d.ts": [ - "../src/math/index.ts" - ], - "../src/types/ray3d.ts": [ - "../src/math/index.ts" - ], - "../src/types/text-options.interface.ts": [ - "../src/types/horizontal-align.type.ts", - "../src/types/vertical-align.type.ts" - ], - "../src/utils/domutils.ts": [ - "../src/math/index.ts", - "../src/types/index.ts" - ], - "../src/utils/index.ts": [ - "../src/utils/analytics-utils.ts", - "../src/utils/array-utils.ts", - "../src/utils/coerce-util.ts", - "../src/utils/color-utils.ts", - "../src/utils/date-utils.ts", - "../src/utils/html-utils.ts", - "../src/utils/image-utils.ts", - "../src/utils/input-utils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/parser-utils.ts", - "../src/utils/process-utils.ts", - "../src/utils/random-utils.ts", - "../src/utils/reflection-utils.ts", - "../src/utils/sorted-array-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/svg-utils.ts", - "../src/utils/time-utils.ts" - ], - "../src/utils/input-utils.ts": [ - "../src/enums/index.ts" - ], - "../src/utils/misc-utils.ts": [ - "../src/types/index.ts" - ], - "../src/utils/net-server-utils.ts": [ - "../node_modules/@types/node/fs.d.ts" - ], - "../src/utils/object-utils.ts": [ - "../src/types/index.ts" - ], - "../src/utils/string-utils.ts": [ - "../src/types/index.ts" - ], - "../src/validators/index.ts": [ - "../src/validators/misc-validators.ts" - ], - "../src/web.ts": [ - "../src/dom/canvas-manager.ts", - "../src/dom/dom-get.ts", - "../src/misc/slovak-stemmer.ts", - "../src/utils/array-utils.ts", - "../src/utils/domutils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/string-utils.ts", - "../src/utils/time-utils.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../node_modules/@types/chai/index.d.ts", - "../node_modules/@types/eslint-scope/index.d.ts", - "../node_modules/@types/eslint/helpers.d.ts", - "../node_modules/@types/eslint/index.d.ts", - "../node_modules/@types/estree/index.d.ts", - "../node_modules/@types/json-schema/index.d.ts", - "../node_modules/@types/json5/index.d.ts", - "../node_modules/@types/mocha/index.d.ts", - "../node_modules/@types/node/assert.d.ts", - "../node_modules/@types/node/async_hooks.d.ts", - "../node_modules/@types/node/base.d.ts", - "../node_modules/@types/node/buffer.d.ts", - "../node_modules/@types/node/child_process.d.ts", - "../node_modules/@types/node/cluster.d.ts", - "../node_modules/@types/node/console.d.ts", - "../node_modules/@types/node/constants.d.ts", - "../node_modules/@types/node/crypto.d.ts", - "../node_modules/@types/node/dgram.d.ts", - "../node_modules/@types/node/dns.d.ts", - "../node_modules/@types/node/domain.d.ts", - "../node_modules/@types/node/events.d.ts", - "../node_modules/@types/node/fs.d.ts", - "../node_modules/@types/node/fs/promises.d.ts", - "../node_modules/@types/node/globals.d.ts", - "../node_modules/@types/node/globals.global.d.ts", - "../node_modules/@types/node/http.d.ts", - "../node_modules/@types/node/http2.d.ts", - "../node_modules/@types/node/https.d.ts", - "../node_modules/@types/node/index.d.ts", - "../node_modules/@types/node/inspector.d.ts", - "../node_modules/@types/node/module.d.ts", - "../node_modules/@types/node/net.d.ts", - "../node_modules/@types/node/os.d.ts", - "../node_modules/@types/node/path.d.ts", - "../node_modules/@types/node/perf_hooks.d.ts", - "../node_modules/@types/node/process.d.ts", - "../node_modules/@types/node/punycode.d.ts", - "../node_modules/@types/node/querystring.d.ts", - "../node_modules/@types/node/readline.d.ts", - "../node_modules/@types/node/repl.d.ts", - "../node_modules/@types/node/stream.d.ts", - "../node_modules/@types/node/string_decoder.d.ts", - "../node_modules/@types/node/timers.d.ts", - "../node_modules/@types/node/tls.d.ts", - "../node_modules/@types/node/trace_events.d.ts", - "../node_modules/@types/node/ts3.4/base.d.ts", - "../node_modules/@types/node/ts3.6/base.d.ts", - "../node_modules/@types/node/tty.d.ts", - "../node_modules/@types/node/url.d.ts", - "../node_modules/@types/node/util.d.ts", - "../node_modules/@types/node/v8.d.ts", - "../node_modules/@types/node/vm.d.ts", - "../node_modules/@types/node/wasi.d.ts", - "../node_modules/@types/node/worker_threads.d.ts", - "../node_modules/@types/node/zlib.d.ts", - "../node_modules/typescript/lib/lib.dom.d.ts", - "../node_modules/typescript/lib/lib.es2015.collection.d.ts", - "../node_modules/typescript/lib/lib.es2015.core.d.ts", - "../node_modules/typescript/lib/lib.es2015.d.ts", - "../node_modules/typescript/lib/lib.es2015.generator.d.ts", - "../node_modules/typescript/lib/lib.es2015.iterable.d.ts", - "../node_modules/typescript/lib/lib.es2015.promise.d.ts", - "../node_modules/typescript/lib/lib.es2015.proxy.d.ts", - "../node_modules/typescript/lib/lib.es2015.reflect.d.ts", - "../node_modules/typescript/lib/lib.es2015.symbol.d.ts", - "../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", - "../node_modules/typescript/lib/lib.es2016.array.include.d.ts", - "../node_modules/typescript/lib/lib.es2016.d.ts", - "../node_modules/typescript/lib/lib.es2017.d.ts", - "../node_modules/typescript/lib/lib.es2017.intl.d.ts", - "../node_modules/typescript/lib/lib.es2017.object.d.ts", - "../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", - "../node_modules/typescript/lib/lib.es2017.string.d.ts", - "../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", - "../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", - "../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", - "../node_modules/typescript/lib/lib.es2018.d.ts", - "../node_modules/typescript/lib/lib.es2018.intl.d.ts", - "../node_modules/typescript/lib/lib.es2018.promise.d.ts", - "../node_modules/typescript/lib/lib.es2018.regexp.d.ts", - "../node_modules/typescript/lib/lib.es2020.bigint.d.ts", - "../node_modules/typescript/lib/lib.es5.d.ts", - "../node_modules/typescript/lib/lib.esnext.intl.d.ts", - "../src/common.ts", - "../src/components/bidirectional-graph.ts", - "../src/components/file-manager.ts", - "../src/components/g-map.ts", - "../src/components/index.ts", - "../src/components/key-value-counter.ts", - "../src/components/logger/g-logger-callback-holder.ts", - "../src/components/logger/g-logger-default-formatter.ts", - "../src/components/logger/g-logger-instance.ts", - "../src/components/logger/g-logger-priority.ts", - "../src/components/logger/g-logger.ts", - "../src/components/number-counter.ts", - "../src/components/paginator.ts", - "../src/config/gtools-config.interface.ts", - "../src/config/gtools-config.ts", - "../src/constants.ts", - "../src/decorators/deprecated.decorator.ts", - "../src/decorators/final-class.decorator.ts", - "../src/decorators/index.ts", - "../src/decorators/mapper.decorator.ts", - "../src/decorators/singleton.decorator.ts", - "../src/decorators/watch.decorator.ts", - "../src/dom/canvas-camera.ts", - "../src/dom/canvas-drawer-advanced.ts", - "../src/dom/canvas-drawer.ts", - "../src/dom/canvas-manager.ts", - "../src/dom/canvas-misc-utilts.ts", - "../src/dom/canvas-utils.ts", - "../src/dom/dom-get.ts", - "../src/dom/drawer.ts", - "../src/dom/element-builder.ts", - "../src/dom/types/canvas-shadow-config.ts", - "../src/enums/button.enum.ts", - "../src/enums/days.enum.ts", - "../src/enums/encodings.enum.ts", - "../src/enums/file-types.enum.ts", - "../src/enums/http-status-codes.enum.ts", - "../src/enums/index.ts", - "../src/enums/keys.enum.ts", - "../src/errors/index.ts", - "../src/errors/missing-parameter.error.ts", - "../src/errors/no-database-connection.error.ts", - "../src/errors/not-browser.exception.ts", - "../src/errors/null-pointer.exception.ts", - "../src/errors/wrong-parameter.exception.ts", - "../src/errors/wrong-type.exception.ts", - "../src/gutils.ts", - "../src/index.ts", - "../src/math/index.ts", - "../src/math/mat4.ts", - "../src/math/simple-vector-xz.ts", - "../src/math/simple-vector2.ts", - "../src/math/simple-vector3.ts", - "../src/math/simple-vector4.ts", - "../src/math/vector.ts", - "../src/math/vector2.ts", - "../src/math/vector2f.ts", - "../src/math/vector3.ts", - "../src/math/vector4.ts", - "../src/misc/ajax.ts", - "../src/misc/file-size-formatter.ts", - "../src/misc/index.ts", - "../src/misc/runtime-validators.ts", - "../src/misc/simple-loop.ts", - "../src/misc/slovak-stemmer.ts", - "../src/mockdata.ts", - "../src/models/color.model.ts", - "../src/models/countries/country.interface.ts", - "../src/models/countries/country.model.ts", - "../src/models/data-structures/binary-queue.ts", - "../src/models/data-structures/binary-tree.ts", - "../src/models/data-structures/g43-collection.ts", - "../src/models/data-structures/grid-accessor/grid-filters.ts", - "../src/models/data-structures/grid-accessor/grid2-accessor.ts", - "../src/models/data-structures/grid-accessor/grid2-block-accessor.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-object-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2-string-holder.ts", - "../src/models/data-structures/grid-accessor/holders-2d/grid2.perf.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-array-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-hash-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-map-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3-object-holder.ts", - "../src/models/data-structures/grid-accessor/holders-3d/grid3.perf.ts", - "../src/models/data-structures/grid-accessor/index.ts", - "../src/models/data-structures/list/abstract-linked-list.ts", - "../src/models/data-structures/list/bi-directional-linked-list.ts", - "../src/models/data-structures/list/index.ts", - "../src/models/data-structures/list/linked-list-entry.ts", - "../src/models/data-structures/list/list.ts", - "../src/models/data-structures/list/one-directional-linked-list.ts", - "../src/models/data-structures/list/sorted-array-list.ts", - "../src/models/data-structures/list/test-list.ts", - "../src/models/data-structures/priority-queue.ts", - "../src/models/data-structures/quad-tree/quad-tree.ts", - "../src/models/gender.model.ts", - "../src/models/index.ts", - "../src/models/path-2d.ts", - "../src/models/path/a-star/a-star.ts", - "../src/models/path/a-star/a-star_download.ts", - "../src/models/path/a-star/graph_download.ts", - "../src/models/path/a-star/grid-node_download.ts", - "../src/models/path/djikstra/djikstra.ts", - "../src/models/path/nearest-item.ts", - "../src/models/range.ts", - "../src/models/selection/selection-holder.ts", - "../src/models/selection/selection.ts", - "../src/models/sorting/bucket-sort.ts", - "../src/models/sorting/counting-sort.ts", - "../src/models/sorting/heap-sort.ts", - "../src/models/sorting/index.ts", - "../src/models/sorting/insertion-sort.ts", - "../src/models/sorting/merge-sort.ts", - "../src/models/sorting/quick-sort.ts", - "../src/models/sorting/radix-sort.ts", - "../src/models/transform-2d.ts", - "../src/node.ts", - "../src/physics/bounders-2d.ts", - "../src/physics/bounding-boxes/aabb3.ts", - "../src/physics/closest-2d.ts", - "../src/physics/closest-3d.ts", - "../src/physics/collisions-2d.ts", - "../src/physics/collisions-3d.ts", - "../src/physics/distances-2d.ts", - "../src/physics/distances-3d.ts", - "../src/physics/index.ts", - "../src/physics/intersects-2d.ts", - "../src/physics/intersects-3d.ts", - "../src/physics/objects/2d/capsule.ts", - "../src/physics/objects/2d/line.ts", - "../src/physics/objects/2d/object2-d.ts", - "../src/physics/objects/2d/ray-2d.ts", - "../src/physics/objects/2d/rect.ts", - "../src/physics/objects/2d/sphere.ts", - "../src/physics/objects/2d/triangle.ts", - "../src/physics/objects/index.ts", - "../src/physics/objects/object-convertors.ts", - "../src/tests/abstract-database.fixture.ts", - "../src/tests/abstract.fixture.ts", - "../src/tests/abstract.mapper.ts", - "../src/tests/paginate.model.ts", - "../src/types/helpers/min-max-2d.interface.ts", - "../src/types/helpers/min-max-3d.interface.ts", - "../src/types/helpers/pos-size-2d.ts", - "../src/types/helpers/pos-size-3d.ts", - "../src/types/helpers/xywh.ts", - "../src/types/helpers/xyzwhd.ts", - "../src/types/horizontal-align.type.ts", - "../src/types/index.ts", - "../src/types/key-value.interface.ts", - "../src/types/nested-string-map.interface.ts", - "../src/types/object-entry.interface.ts", - "../src/types/optional.type.ts", - "../src/types/prop.type.ts", - "../src/types/property-decorator.type.ts", - "../src/types/ray2d.ts", - "../src/types/ray3d.ts", - "../src/types/round-data.type.ts", - "../src/types/size.interaface.ts", - "../src/types/string-map.interface.ts", - "../src/types/text-options.interface.ts", - "../src/types/type.interface.ts", - "../src/types/unit-number.type.ts", - "../src/types/vertical-align.type.ts", - "../src/utils/analytics-utils.ts", - "../src/utils/array-utils.ts", - "../src/utils/coerce-util.ts", - "../src/utils/color-utils.ts", - "../src/utils/date-utils.ts", - "../src/utils/domutils.ts", - "../src/utils/fileutils.ts", - "../src/utils/html-utils.ts", - "../src/utils/image-utils.ts", - "../src/utils/index.ts", - "../src/utils/input-utils.ts", - "../src/utils/math-utils.ts", - "../src/utils/misc-utils.ts", - "../src/utils/net-client-utils.ts", - "../src/utils/net-server-utils.ts", - "../src/utils/object-utils.ts", - "../src/utils/parser-utils.ts", - "../src/utils/process-utils.ts", - "../src/utils/random-utils.ts", - "../src/utils/reflection-utils.ts", - "../src/utils/runtime.ts", - "../src/utils/sorted-array-utils.ts", - "../src/utils/string-checkers.ts", - "../src/utils/string-utils.ts", - "../src/utils/svg-utils.ts", - "../src/utils/time-utils.ts", - "../src/validators/index.ts", - "../src/validators/misc-validators.ts", - "../src/web.ts" - ] - }, - "version": "4.1.5" -} \ No newline at end of file diff --git a/dist/types/helpers/min-max-2d.interface.d.ts b/dist/types/helpers/min-max-2d.interface.d.ts deleted file mode 100644 index 33674dc7..00000000 --- a/dist/types/helpers/min-max-2d.interface.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ReadonlySimpleVector2, SimpleVector2 } from "gtools/math"; -export interface MinMaxFlat2D { - minX: number; - minY: number; - maxX: number; - maxY: number; -} -export interface MinMax2D { - min: SimpleVector2; - max: SimpleVector2; -} -export interface ReadonlyMinMax2D { - min: ReadonlySimpleVector2; - max: ReadonlySimpleVector2; -} -//# sourceMappingURL=min-max-2d.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/min-max-2d.interface.d.ts.map b/dist/types/helpers/min-max-2d.interface.d.ts.map deleted file mode 100644 index b4115d79..00000000 --- a/dist/types/helpers/min-max-2d.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-2d.interface.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/min-max-2d.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,GAAG,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,qBAAqB,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/types/helpers/min-max-2d.interface.js b/dist/types/helpers/min-max-2d.interface.js deleted file mode 100644 index 7b9a0098..00000000 --- a/dist/types/helpers/min-max-2d.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=min-max-2d.interface.js.map \ No newline at end of file diff --git a/dist/types/helpers/min-max-2d.interface.js.map b/dist/types/helpers/min-max-2d.interface.js.map deleted file mode 100644 index 1339afbf..00000000 --- a/dist/types/helpers/min-max-2d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-2d.interface.js","sourceRoot":"","sources":["../../../src/types/helpers/min-max-2d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/helpers/min-max-3d.interface.d.ts b/dist/types/helpers/min-max-3d.interface.d.ts deleted file mode 100644 index 1f1e29a3..00000000 --- a/dist/types/helpers/min-max-3d.interface.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { ReadonlySimpleVector3, SimpleVector3 } from "gtools/math"; -export interface MinMaxFlat3D { - minX: number; - minY: number; - minZ: number; - maxX: number; - maxY: number; - maxZ: number; -} -export interface MinMax3D { - min: SimpleVector3; - max: SimpleVector3; -} -export interface ReadonlyMinMax3D { - min: ReadonlySimpleVector3; - max: ReadonlySimpleVector3; -} -//# sourceMappingURL=min-max-3d.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/min-max-3d.interface.d.ts.map b/dist/types/helpers/min-max-3d.interface.d.ts.map deleted file mode 100644 index fe660e59..00000000 --- a/dist/types/helpers/min-max-3d.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-3d.interface.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/min-max-3d.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,GAAG,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,qBAAqB,CAAC;IAC3B,GAAG,EAAE,qBAAqB,CAAC;CAC9B"} \ No newline at end of file diff --git a/dist/types/helpers/min-max-3d.interface.js b/dist/types/helpers/min-max-3d.interface.js deleted file mode 100644 index 971e5b04..00000000 --- a/dist/types/helpers/min-max-3d.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=min-max-3d.interface.js.map \ No newline at end of file diff --git a/dist/types/helpers/min-max-3d.interface.js.map b/dist/types/helpers/min-max-3d.interface.js.map deleted file mode 100644 index c518ab5d..00000000 --- a/dist/types/helpers/min-max-3d.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min-max-3d.interface.js","sourceRoot":"","sources":["../../../src/types/helpers/min-max-3d.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/helpers/pos-size-2d.d.ts b/dist/types/helpers/pos-size-2d.d.ts deleted file mode 100644 index c48fe97a..00000000 --- a/dist/types/helpers/pos-size-2d.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ReadonlySimpleVector2, SimpleVector2 } from "gtools/math"; -export interface PosSize2d { - readonly position: SimpleVector2; - readonly size: SimpleVector2; -} -export interface ReadonlyPosSize2D { - readonly position: ReadonlySimpleVector2; - readonly size: ReadonlySimpleVector2; -} -//# sourceMappingURL=pos-size-2d.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/pos-size-2d.d.ts.map b/dist/types/helpers/pos-size-2d.d.ts.map deleted file mode 100644 index 9c13d052..00000000 --- a/dist/types/helpers/pos-size-2d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-2d.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/pos-size-2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/types/helpers/pos-size-2d.js b/dist/types/helpers/pos-size-2d.js deleted file mode 100644 index 7267dba6..00000000 --- a/dist/types/helpers/pos-size-2d.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=pos-size-2d.js.map \ No newline at end of file diff --git a/dist/types/helpers/pos-size-2d.js.map b/dist/types/helpers/pos-size-2d.js.map deleted file mode 100644 index 936700ae..00000000 --- a/dist/types/helpers/pos-size-2d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-2d.js","sourceRoot":"","sources":["../../../src/types/helpers/pos-size-2d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/helpers/pos-size-3d.d.ts b/dist/types/helpers/pos-size-3d.d.ts deleted file mode 100644 index eef51be6..00000000 --- a/dist/types/helpers/pos-size-3d.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ReadonlySimpleVector3, SimpleVector3 } from "gtools/math"; -export interface PosSize3D { - readonly position: SimpleVector3; - readonly size: SimpleVector3; -} -export interface ReadonlyPosSize3D { - readonly position: ReadonlySimpleVector3; - readonly size: ReadonlySimpleVector3; -} -//# sourceMappingURL=pos-size-3d.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/pos-size-3d.d.ts.map b/dist/types/helpers/pos-size-3d.d.ts.map deleted file mode 100644 index cfca458a..00000000 --- a/dist/types/helpers/pos-size-3d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-3d.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/pos-size-3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;CACxC"} \ No newline at end of file diff --git a/dist/types/helpers/pos-size-3d.js b/dist/types/helpers/pos-size-3d.js deleted file mode 100644 index dba75f1f..00000000 --- a/dist/types/helpers/pos-size-3d.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=pos-size-3d.js.map \ No newline at end of file diff --git a/dist/types/helpers/pos-size-3d.js.map b/dist/types/helpers/pos-size-3d.js.map deleted file mode 100644 index 0362f3e8..00000000 --- a/dist/types/helpers/pos-size-3d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pos-size-3d.js","sourceRoot":"","sources":["../../../src/types/helpers/pos-size-3d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/helpers/xywh.d.ts b/dist/types/helpers/xywh.d.ts deleted file mode 100644 index 938e731e..00000000 --- a/dist/types/helpers/xywh.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ReadonlySimpleVector2, SimpleVector2 } from "gtools/math"; -export interface XYWH extends SimpleVector2 { - w: number; - h: number; -} -export interface ReadonlyXYWH extends ReadonlySimpleVector2 { - readonly w: number; - readonly h: number; -} -//# sourceMappingURL=xywh.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/xywh.d.ts.map b/dist/types/helpers/xywh.d.ts.map deleted file mode 100644 index 819cc414..00000000 --- a/dist/types/helpers/xywh.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xywh.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/xywh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,IAAK,SAAQ,aAAa;IACvC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAa,SAAQ,qBAAqB;IACvD,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/types/helpers/xywh.js b/dist/types/helpers/xywh.js deleted file mode 100644 index f1712c31..00000000 --- a/dist/types/helpers/xywh.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=xywh.js.map \ No newline at end of file diff --git a/dist/types/helpers/xywh.js.map b/dist/types/helpers/xywh.js.map deleted file mode 100644 index 27a672dc..00000000 --- a/dist/types/helpers/xywh.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xywh.js","sourceRoot":"","sources":["../../../src/types/helpers/xywh.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/helpers/xyzwhd.d.ts b/dist/types/helpers/xyzwhd.d.ts deleted file mode 100644 index 7edba728..00000000 --- a/dist/types/helpers/xyzwhd.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ReadonlySimpleVector3, SimpleVector3 } from "gtools/math"; -export interface XYZWHD extends SimpleVector3 { - w: number; - h: number; - d: number; -} -export interface ReadonlyXYZWHD extends ReadonlySimpleVector3 { - readonly w: number; - readonly h: number; - readonly d: number; -} -//# sourceMappingURL=xyzwhd.d.ts.map \ No newline at end of file diff --git a/dist/types/helpers/xyzwhd.d.ts.map b/dist/types/helpers/xyzwhd.d.ts.map deleted file mode 100644 index 80ad748e..00000000 --- a/dist/types/helpers/xyzwhd.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xyzwhd.d.ts","sourceRoot":"","sources":["../../../src/types/helpers/xyzwhd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,MAAO,SAAQ,aAAa;IACzC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACtB"} \ No newline at end of file diff --git a/dist/types/helpers/xyzwhd.js b/dist/types/helpers/xyzwhd.js deleted file mode 100644 index f4390790..00000000 --- a/dist/types/helpers/xyzwhd.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=xyzwhd.js.map \ No newline at end of file diff --git a/dist/types/helpers/xyzwhd.js.map b/dist/types/helpers/xyzwhd.js.map deleted file mode 100644 index 8e0f9a19..00000000 --- a/dist/types/helpers/xyzwhd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xyzwhd.js","sourceRoot":"","sources":["../../../src/types/helpers/xyzwhd.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/horizontal-align.type.d.ts b/dist/types/horizontal-align.type.d.ts deleted file mode 100644 index c3808f91..00000000 --- a/dist/types/horizontal-align.type.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type HorizontalAlign = "left" | "center" | "right"; -//# sourceMappingURL=horizontal-align.type.d.ts.map \ No newline at end of file diff --git a/dist/types/horizontal-align.type.d.ts.map b/dist/types/horizontal-align.type.d.ts.map deleted file mode 100644 index ba394bdb..00000000 --- a/dist/types/horizontal-align.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-align.type.d.ts","sourceRoot":"","sources":["../../src/types/horizontal-align.type.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/types/horizontal-align.type.js b/dist/types/horizontal-align.type.js deleted file mode 100644 index 48293304..00000000 --- a/dist/types/horizontal-align.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=horizontal-align.type.js.map \ No newline at end of file diff --git a/dist/types/horizontal-align.type.js.map b/dist/types/horizontal-align.type.js.map deleted file mode 100644 index b10dc645..00000000 --- a/dist/types/horizontal-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"horizontal-align.type.js","sourceRoot":"","sources":["../../src/types/horizontal-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts deleted file mode 100644 index 825be697..00000000 --- a/dist/types/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export * from "./helpers/min-max-2d.interface"; -export * from "./helpers/min-max-3d.interface"; -export * from "./helpers/xywh"; -export * from "./helpers/xyzwhd"; -export * from "./helpers/pos-size-2d"; -export * from "./helpers/pos-size-3d"; -export * from "./horizontal-align.type"; -export * from "./key-value.interface"; -export * from "./nested-string-map.interface"; -export * from "./object-entry.interface"; -export * from "./optional.type"; -export * from "./prop.type"; -export * from "./property-decorator.type"; -export * from "./ray2D"; -export * from "./ray3D"; -export * from "./round-data.type"; -export * from "./size.interaface"; -export * from "./string-map.interface"; -export * from "./text-options.interface"; -export * from "./type.interface"; -export * from "./unit-number.type"; -export * from "./vertical-align.type"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/types/index.d.ts.map b/dist/types/index.d.ts.map deleted file mode 100644 index dae43488..00000000 --- a/dist/types/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"} \ No newline at end of file diff --git a/dist/types/index.js b/dist/types/index.js deleted file mode 100644 index b3cf58dd..00000000 --- a/dist/types/index.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./helpers/min-max-2d.interface"), exports); -__exportStar(require("./helpers/min-max-3d.interface"), exports); -__exportStar(require("./helpers/xywh"), exports); -__exportStar(require("./helpers/xyzwhd"), exports); -__exportStar(require("./helpers/pos-size-2d"), exports); -__exportStar(require("./helpers/pos-size-3d"), exports); -__exportStar(require("./horizontal-align.type"), exports); -__exportStar(require("./key-value.interface"), exports); -__exportStar(require("./nested-string-map.interface"), exports); -__exportStar(require("./object-entry.interface"), exports); -__exportStar(require("./optional.type"), exports); -__exportStar(require("./prop.type"), exports); -__exportStar(require("./property-decorator.type"), exports); -__exportStar(require("./ray2D"), exports); -__exportStar(require("./ray3D"), exports); -__exportStar(require("./round-data.type"), exports); -__exportStar(require("./size.interaface"), exports); -__exportStar(require("./string-map.interface"), exports); -__exportStar(require("./text-options.interface"), exports); -__exportStar(require("./type.interface"), exports); -__exportStar(require("./unit-number.type"), exports); -__exportStar(require("./vertical-align.type"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/types/index.js.map b/dist/types/index.js.map deleted file mode 100644 index 2e67fc50..00000000 --- a/dist/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iEAA+C;AAC/C,iEAA+C;AAC/C,iDAA+B;AAC/B,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AAEtC,0DAAwC;AACxC,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,kDAAgC;AAChC,8CAA4B;AAC5B,4DAA0C;AAC1C,0CAAwB;AACxB,0CAAwB;AACxB,oDAAkC;AAClC,oDAAkC;AAClC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,qDAAmC;AACnC,wDAAsC"} \ No newline at end of file diff --git a/dist/types/key-value.interface.d.ts b/dist/types/key-value.interface.d.ts deleted file mode 100644 index ec844577..00000000 --- a/dist/types/key-value.interface.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface KeyValue { - key: S; - value: T; -} -//# sourceMappingURL=key-value.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/key-value.interface.d.ts.map b/dist/types/key-value.interface.d.ts.map deleted file mode 100644 index e7821ace..00000000 --- a/dist/types/key-value.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value.interface.d.ts","sourceRoot":"","sources":["../../src/types/key-value.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG;IACtC,GAAG,EAAE,CAAC,CAAC;IACP,KAAK,EAAE,CAAC,CAAC;CACZ"} \ No newline at end of file diff --git a/dist/types/key-value.interface.js b/dist/types/key-value.interface.js deleted file mode 100644 index afb9d14d..00000000 --- a/dist/types/key-value.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=key-value.interface.js.map \ No newline at end of file diff --git a/dist/types/key-value.interface.js.map b/dist/types/key-value.interface.js.map deleted file mode 100644 index 72a02400..00000000 --- a/dist/types/key-value.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-value.interface.js","sourceRoot":"","sources":["../../src/types/key-value.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/nested-string-map.interface.d.ts b/dist/types/nested-string-map.interface.d.ts deleted file mode 100644 index ef2576c4..00000000 --- a/dist/types/nested-string-map.interface.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface NestedStringMap { - [key: string]: T | NestedStringMap; -} -//# sourceMappingURL=nested-string-map.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/nested-string-map.interface.d.ts.map b/dist/types/nested-string-map.interface.d.ts.map deleted file mode 100644 index 95de15c9..00000000 --- a/dist/types/nested-string-map.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nested-string-map.interface.d.ts","sourceRoot":"","sources":["../../src/types/nested-string-map.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;CACzC"} \ No newline at end of file diff --git a/dist/types/nested-string-map.interface.js b/dist/types/nested-string-map.interface.js deleted file mode 100644 index 5cf0869c..00000000 --- a/dist/types/nested-string-map.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=nested-string-map.interface.js.map \ No newline at end of file diff --git a/dist/types/nested-string-map.interface.js.map b/dist/types/nested-string-map.interface.js.map deleted file mode 100644 index 0f98666f..00000000 --- a/dist/types/nested-string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nested-string-map.interface.js","sourceRoot":"","sources":["../../src/types/nested-string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/object-entry.interface.d.ts b/dist/types/object-entry.interface.d.ts deleted file mode 100644 index 4bf6f65c..00000000 --- a/dist/types/object-entry.interface.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { KeyValue } from "./key-value.interface"; -export declare type ObjectEntry = KeyValue; -//# sourceMappingURL=object-entry.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/object-entry.interface.d.ts.map b/dist/types/object-entry.interface.d.ts.map deleted file mode 100644 index 63f4e7ff..00000000 --- a/dist/types/object-entry.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-entry.interface.d.ts","sourceRoot":"","sources":["../../src/types/object-entry.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/types/object-entry.interface.js b/dist/types/object-entry.interface.js deleted file mode 100644 index b72c2120..00000000 --- a/dist/types/object-entry.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=object-entry.interface.js.map \ No newline at end of file diff --git a/dist/types/object-entry.interface.js.map b/dist/types/object-entry.interface.js.map deleted file mode 100644 index 1c00c44b..00000000 --- a/dist/types/object-entry.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-entry.interface.js","sourceRoot":"","sources":["../../src/types/object-entry.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/optional.type.d.ts b/dist/types/optional.type.d.ts deleted file mode 100644 index bb47e518..00000000 --- a/dist/types/optional.type.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type Optional = { - -readonly [P in keyof T]: T[P]; -}; -//# sourceMappingURL=optional.type.d.ts.map \ No newline at end of file diff --git a/dist/types/optional.type.d.ts.map b/dist/types/optional.type.d.ts.map deleted file mode 100644 index 0b8dcd4d..00000000 --- a/dist/types/optional.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optional.type.d.ts","sourceRoot":"","sources":["../../src/types/optional.type.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,CAAC,CAAC,IAAI;IACtB,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC"} \ No newline at end of file diff --git a/dist/types/optional.type.js b/dist/types/optional.type.js deleted file mode 100644 index f8046e67..00000000 --- a/dist/types/optional.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=optional.type.js.map \ No newline at end of file diff --git a/dist/types/optional.type.js.map b/dist/types/optional.type.js.map deleted file mode 100644 index ebe3b8e9..00000000 --- a/dist/types/optional.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"optional.type.js","sourceRoot":"","sources":["../../src/types/optional.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/prop.type.d.ts b/dist/types/prop.type.d.ts deleted file mode 100644 index bbfdbc75..00000000 --- a/dist/types/prop.type.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type PropType = TObj[TProp]; -//# sourceMappingURL=prop.type.d.ts.map \ No newline at end of file diff --git a/dist/types/prop.type.d.ts.map b/dist/types/prop.type.d.ts.map deleted file mode 100644 index 6b64026b..00000000 --- a/dist/types/prop.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prop.type.d.ts","sourceRoot":"","sources":["../../src/types/prop.type.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,CAAC,IAAI,EAAE,KAAK,SAAS,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/types/prop.type.js b/dist/types/prop.type.js deleted file mode 100644 index 6e92c512..00000000 --- a/dist/types/prop.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=prop.type.js.map \ No newline at end of file diff --git a/dist/types/prop.type.js.map b/dist/types/prop.type.js.map deleted file mode 100644 index 85f5a842..00000000 --- a/dist/types/prop.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prop.type.js","sourceRoot":"","sources":["../../src/types/prop.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/property-decorator.type.d.ts b/dist/types/property-decorator.type.d.ts deleted file mode 100644 index 9d86ad6b..00000000 --- a/dist/types/property-decorator.type.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type PropertyDecorator = (target: any, methodName: any, descriptor: PropertyDescriptor) => any; -//# sourceMappingURL=property-decorator.type.d.ts.map \ No newline at end of file diff --git a/dist/types/property-decorator.type.d.ts.map b/dist/types/property-decorator.type.d.ts.map deleted file mode 100644 index 60bdb26e..00000000 --- a/dist/types/property-decorator.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property-decorator.type.d.ts","sourceRoot":"","sources":["../../src/types/property-decorator.type.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,kBAAkB,KAAK,GAAG,CAAC"} \ No newline at end of file diff --git a/dist/types/property-decorator.type.js b/dist/types/property-decorator.type.js deleted file mode 100644 index d9e39c8c..00000000 --- a/dist/types/property-decorator.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=property-decorator.type.js.map \ No newline at end of file diff --git a/dist/types/property-decorator.type.js.map b/dist/types/property-decorator.type.js.map deleted file mode 100644 index e9b83d36..00000000 --- a/dist/types/property-decorator.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"property-decorator.type.js","sourceRoot":"","sources":["../../src/types/property-decorator.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/ray2D.d.ts b/dist/types/ray2D.d.ts deleted file mode 100644 index 003a8594..00000000 --- a/dist/types/ray2D.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -export interface Ray2D { - origin: SimpleVector2; - direction: SimpleVector2; -} -//# sourceMappingURL=ray2D.d.ts.map \ No newline at end of file diff --git a/dist/types/ray2D.d.ts.map b/dist/types/ray2D.d.ts.map deleted file mode 100644 index 5d0f3e2b..00000000 --- a/dist/types/ray2D.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray2D.d.ts","sourceRoot":"","sources":["../../src/types/ray2D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,KAAK;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,aAAa,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/types/ray2D.js b/dist/types/ray2D.js deleted file mode 100644 index 7f7ac388..00000000 --- a/dist/types/ray2D.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ray2D.js.map \ No newline at end of file diff --git a/dist/types/ray2D.js.map b/dist/types/ray2D.js.map deleted file mode 100644 index 83095b5e..00000000 --- a/dist/types/ray2D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray2D.js","sourceRoot":"","sources":["../../src/types/ray2D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/ray3D.d.ts b/dist/types/ray3D.d.ts deleted file mode 100644 index bddacccd..00000000 --- a/dist/types/ray3D.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SimpleVector3 } from "gtools/math"; -export interface Ray3D { - origin: SimpleVector3; - direction: SimpleVector3; -} -//# sourceMappingURL=ray3D.d.ts.map \ No newline at end of file diff --git a/dist/types/ray3D.d.ts.map b/dist/types/ray3D.d.ts.map deleted file mode 100644 index 56e7e6e6..00000000 --- a/dist/types/ray3D.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray3D.d.ts","sourceRoot":"","sources":["../../src/types/ray3D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,KAAK;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,aAAa,CAAC;CAC5B"} \ No newline at end of file diff --git a/dist/types/ray3D.js b/dist/types/ray3D.js deleted file mode 100644 index ca15aff2..00000000 --- a/dist/types/ray3D.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ray3D.js.map \ No newline at end of file diff --git a/dist/types/ray3D.js.map b/dist/types/ray3D.js.map deleted file mode 100644 index c691aab1..00000000 --- a/dist/types/ray3D.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ray3D.js","sourceRoot":"","sources":["../../src/types/ray3D.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/round-data.type.d.ts b/dist/types/round-data.type.d.ts deleted file mode 100644 index d79c0365..00000000 --- a/dist/types/round-data.type.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare type RoundData = number | { - tr?: number; - tl?: number; - br?: number; - bl?: number; -}; -//# sourceMappingURL=round-data.type.d.ts.map \ No newline at end of file diff --git a/dist/types/round-data.type.d.ts.map b/dist/types/round-data.type.d.ts.map deleted file mode 100644 index 749fe54d..00000000 --- a/dist/types/round-data.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"round-data.type.d.ts","sourceRoot":"","sources":["../../src/types/round-data.type.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG,MAAM,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"} \ No newline at end of file diff --git a/dist/types/round-data.type.js b/dist/types/round-data.type.js deleted file mode 100644 index 9c0dc1e7..00000000 --- a/dist/types/round-data.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=round-data.type.js.map \ No newline at end of file diff --git a/dist/types/round-data.type.js.map b/dist/types/round-data.type.js.map deleted file mode 100644 index 3da1d5af..00000000 --- a/dist/types/round-data.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"round-data.type.js","sourceRoot":"","sources":["../../src/types/round-data.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/size.interaface.d.ts b/dist/types/size.interaface.d.ts deleted file mode 100644 index d8f4ba4b..00000000 --- a/dist/types/size.interaface.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Size { - width: number; - height: number; -} -//# sourceMappingURL=size.interaface.d.ts.map \ No newline at end of file diff --git a/dist/types/size.interaface.d.ts.map b/dist/types/size.interaface.d.ts.map deleted file mode 100644 index 4205846a..00000000 --- a/dist/types/size.interaface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"size.interaface.d.ts","sourceRoot":"","sources":["../../src/types/size.interaface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/types/size.interaface.js b/dist/types/size.interaface.js deleted file mode 100644 index 69e4d5ba..00000000 --- a/dist/types/size.interaface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=size.interaface.js.map \ No newline at end of file diff --git a/dist/types/size.interaface.js.map b/dist/types/size.interaface.js.map deleted file mode 100644 index 04ac0478..00000000 --- a/dist/types/size.interaface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"size.interaface.js","sourceRoot":"","sources":["../../src/types/size.interaface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/string-map.interface.d.ts b/dist/types/string-map.interface.d.ts deleted file mode 100644 index 5cf3b02c..00000000 --- a/dist/types/string-map.interface.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface StringMap { - [s: string]: T; -} -//# sourceMappingURL=string-map.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/string-map.interface.d.ts.map b/dist/types/string-map.interface.d.ts.map deleted file mode 100644 index 021120d4..00000000 --- a/dist/types/string-map.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-map.interface.d.ts","sourceRoot":"","sources":["../../src/types/string-map.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,MAAM;IACjC,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;CAClB"} \ No newline at end of file diff --git a/dist/types/string-map.interface.js b/dist/types/string-map.interface.js deleted file mode 100644 index b0479a83..00000000 --- a/dist/types/string-map.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=string-map.interface.js.map \ No newline at end of file diff --git a/dist/types/string-map.interface.js.map b/dist/types/string-map.interface.js.map deleted file mode 100644 index 5ca4d32e..00000000 --- a/dist/types/string-map.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-map.interface.js","sourceRoot":"","sources":["../../src/types/string-map.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/text-options.interface.d.ts b/dist/types/text-options.interface.d.ts deleted file mode 100644 index 0b2d6ce8..00000000 --- a/dist/types/text-options.interface.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { HorizontalAlign } from "./horizontal-align.type"; -import { VerticalAlign } from "./vertical-align.type"; -export interface TextOptionsInterface { - fontSize: number; - font: string; - fontColor: string; - verticalAlign: VerticalAlign; - horizontalAlign: HorizontalAlign; -} -//# sourceMappingURL=text-options.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/text-options.interface.d.ts.map b/dist/types/text-options.interface.d.ts.map deleted file mode 100644 index 7e15b805..00000000 --- a/dist/types/text-options.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"text-options.interface.d.ts","sourceRoot":"","sources":["../../src/types/text-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CACpC"} \ No newline at end of file diff --git a/dist/types/text-options.interface.js b/dist/types/text-options.interface.js deleted file mode 100644 index 973fc98b..00000000 --- a/dist/types/text-options.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=text-options.interface.js.map \ No newline at end of file diff --git a/dist/types/text-options.interface.js.map b/dist/types/text-options.interface.js.map deleted file mode 100644 index 4145fa0a..00000000 --- a/dist/types/text-options.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"text-options.interface.js","sourceRoot":"","sources":["../../src/types/text-options.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/type.interface.d.ts b/dist/types/type.interface.d.ts deleted file mode 100644 index c4069a96..00000000 --- a/dist/types/type.interface.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Type> { - name?: string; - new (...args: any[]): T; -} -//# sourceMappingURL=type.interface.d.ts.map \ No newline at end of file diff --git a/dist/types/type.interface.d.ts.map b/dist/types/type.interface.d.ts.map deleted file mode 100644 index fa87828f..00000000 --- a/dist/types/type.interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.interface.d.ts","sourceRoot":"","sources":["../../src/types/type.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CAC1B"} \ No newline at end of file diff --git a/dist/types/type.interface.js b/dist/types/type.interface.js deleted file mode 100644 index 5fb9baa5..00000000 --- a/dist/types/type.interface.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=type.interface.js.map \ No newline at end of file diff --git a/dist/types/type.interface.js.map b/dist/types/type.interface.js.map deleted file mode 100644 index bfd266cd..00000000 --- a/dist/types/type.interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type.interface.js","sourceRoot":"","sources":["../../src/types/type.interface.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/unit-number.type.d.ts b/dist/types/unit-number.type.d.ts deleted file mode 100644 index cb37cf4a..00000000 --- a/dist/types/unit-number.type.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare type UnitNumber = { - unit: T; - value: number; -} | string | null; -//# sourceMappingURL=unit-number.type.d.ts.map \ No newline at end of file diff --git a/dist/types/unit-number.type.d.ts.map b/dist/types/unit-number.type.d.ts.map deleted file mode 100644 index 570786b9..00000000 --- a/dist/types/unit-number.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unit-number.type.d.ts","sourceRoot":"","sources":["../../src/types/unit-number.type.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/types/unit-number.type.js b/dist/types/unit-number.type.js deleted file mode 100644 index 3696e2aa..00000000 --- a/dist/types/unit-number.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=unit-number.type.js.map \ No newline at end of file diff --git a/dist/types/unit-number.type.js.map b/dist/types/unit-number.type.js.map deleted file mode 100644 index 71b27798..00000000 --- a/dist/types/unit-number.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unit-number.type.js","sourceRoot":"","sources":["../../src/types/unit-number.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/types/vertical-align.type.d.ts b/dist/types/vertical-align.type.d.ts deleted file mode 100644 index 3a18c0b4..00000000 --- a/dist/types/vertical-align.type.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type VerticalAlign = "top" | "center" | "bottom"; -//# sourceMappingURL=vertical-align.type.d.ts.map \ No newline at end of file diff --git a/dist/types/vertical-align.type.d.ts.map b/dist/types/vertical-align.type.d.ts.map deleted file mode 100644 index 9d87d12f..00000000 --- a/dist/types/vertical-align.type.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vertical-align.type.d.ts","sourceRoot":"","sources":["../../src/types/vertical-align.type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/types/vertical-align.type.js b/dist/types/vertical-align.type.js deleted file mode 100644 index dff739e2..00000000 --- a/dist/types/vertical-align.type.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=vertical-align.type.js.map \ No newline at end of file diff --git a/dist/types/vertical-align.type.js.map b/dist/types/vertical-align.type.js.map deleted file mode 100644 index d1b611a1..00000000 --- a/dist/types/vertical-align.type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vertical-align.type.js","sourceRoot":"","sources":["../../src/types/vertical-align.type.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/utils/DomUtils.d.ts b/dist/utils/DomUtils.d.ts deleted file mode 100644 index ccbb63bd..00000000 --- a/dist/utils/DomUtils.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { SimpleVector2 } from "gtools/math"; -import { Size, StringMap } from "gtools/types"; -export interface ObjectCreatorParams { - name: string; - attr?: StringMap; - cont?: string | HTMLElement | HTMLElement[]; - style?: CSSStyleDeclaration; -} -export declare class DomUtils { - /** - * Function returns height of window - * - * @returns window height in pixels - */ - static getWindowHeight(): number; - /** - * Function returns width of window - * - * @returns window width in pixels - */ - static getWindowWidth(): number; - /** - * Function set, append or returns text of element - * - * @param element - input element - * @param text - text to put in element - * @param append - flag if text should be append or replace previous text - * @returns element given as input - */ - static text(element: HTMLElement, text: string, append?: boolean): HTMLElement; - /** - * Function set, append or returns html content of element - * - * @param element - input element - * @param html - html to put in element - * @param append - flag if html should be append or replace previous content - * @returns element given as input - */ - static html(element: HTMLElement, html: string | HTMLElement, append?: boolean): HTMLElement; - /** - * Function returns, add, remove or toggle elements classes - * - * @param element - input element - * @param name - class name or data-structures of class names - * @param force - flag if class should be toggled false - * @returns boolean if function is used to check class presence otherwise element given as input - */ - static class(element: HTMLElement, name: string | string[], force?: boolean): HTMLElement | boolean; - /** - * Function crete new element - * - * ElementManager.createElement("div") =>
; - * ElementManager.createElement("div", {id: "ide"}) =>
; - * ElementManager.createElement("div", {}, "text") =>
text
; - * ElementManager.createElement("div", {}, "text") =>
text
; - * ElementManager.createElement("div", {}, "text", {color: "blue"}) =>
text
- * - * ElementManager.createElement({name: "div"}) =>
; - * ElementManager.createElement({name: "div"}) =>
; - * ElementManager.createElement({name: "div", attr: {id: "ide"}}) =>
; - * - * @param name - name of element or object contains all configuration - * @param attr - map of all element attributes - * @param cont - element content. Can be string, element or array of elements - * @param style - styles that will be applied to the element - * @returns created element - */ - static createElement(name: string | ObjectCreatorParams, attr?: StringMap, cont?: string | HTMLElement | HTMLElement[], style?: CSSStyleDeclaration): HTMLElement; - /** - * Function remove element - * - * @param element - input element - * @returns removed element - */ - static remove(element: Element): Element; - /** - * Function returns object with element position - * - * @param element - input element - * @returns position of element - */ - static position(element: HTMLElement): SimpleVector2; - /** - * Function returns order of element between siblings - * - * @param element - input element - * @returns index of number - */ - static indexOf(element: Element | null): number; - /** - * Function returns object with element size - * - * @param element - input element - * @returns size of element - */ - static size(element: HTMLElement): Size; - static serialize(form: HTMLFormElement): StringMap; -} -//# sourceMappingURL=DomUtils.d.ts.map \ No newline at end of file diff --git a/dist/utils/DomUtils.d.ts.map b/dist/utils/DomUtils.d.ts.map deleted file mode 100644 index 4a5312cf..00000000 --- a/dist/utils/DomUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DomUtils.d.ts","sourceRoot":"","sources":["../../src/utils/DomUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI/C,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,EAAE,CAAC;IAC5C,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,qBAAa,QAAQ;IACjB;;;;OAIG;WACW,eAAe,IAAI,MAAM;IASvC;;;;OAIG;WACW,cAAc,IAAI,MAAM;IAStC;;;;;;;OAOG;WACW,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,WAAW;IAUlF;;;;;;;OAOG;WACW,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,MAAM,UAAO,GAAG,WAAW;IAiBhG;;;;;;;OAOG;WACW,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,UAAQ,GAAG,WAAW,GAAG,OAAO;IA6BxG;;;;;;;;;;;;;;;;;;OAkBG;WACW,aAAa,CACvB,IAAI,EAAE,MAAM,GAAG,mBAAmB,EAClC,IAAI,CAAC,EAAE,SAAS,EAChB,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,EAAE,EAC3C,KAAK,CAAC,EAAE,mBAAmB,GAC5B,WAAW;IAsCd;;;;;OAKG;WACW,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAS/C;;;;;OAKG;WACW,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa;IAgB3D;;;;;OAKG;WACW,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM;IAUtD;;;;;OAKG;WACW,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;WAOhC,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS;CA6B5D"} \ No newline at end of file diff --git a/dist/utils/DomUtils.js b/dist/utils/DomUtils.js deleted file mode 100644 index 04c52178..00000000 --- a/dist/utils/DomUtils.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DomUtils = void 0; -var errors_1 = require("gtools/errors"); -var dom_get_1 = require("../dom/dom-get"); -var Checkers = __importStar(require("../validators/misc-validators")); -var DomUtils = (function () { - function DomUtils() { - } - DomUtils.getWindowHeight = function () { - if (typeof window === "undefined") { - throw new errors_1.NotBrowserException(); - } - return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; - }; - DomUtils.getWindowWidth = function () { - if (typeof window === "undefined") { - throw new errors_1.NotBrowserException(); - } - return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - }; - DomUtils.text = function (element, text, append) { - if (append === void 0) { append = true; } - if (append) { - element.textContent += text; - } - else { - element.textContent = text; - } - return element; - }; - DomUtils.html = function (element, html, append) { - if (append === void 0) { append = true; } - if (append) { - if (typeof html === "string") { - element.innerHTML += html; - } - else if (Checkers.isElement(html)) { - element.appendChild(html); - } - } - else if (typeof html === "string") { - element.innerHTML = html; - } - else if (Checkers.isElement(html)) { - element.innerHTML = ""; - element.appendChild(html); - } - return element; - }; - DomUtils.class = function (element, name, force) { - if (force === void 0) { force = false; } - if (Array.isArray(name)) { - for (var _i = 0, name_1 = name; _i < name_1.length; _i++) { - var className = name_1[_i]; - DomUtils.class(element, className, force); - } - } - else { - switch (name[0]) { - case "+": - element.classList.add(name.substring(1)); - break; - case "-": - element.classList.remove(name.substring(1)); - break; - case "/": - name = name.substring(1); - if (Checkers.isBoolean(force)) { - element.classList.toggle(name, force); - } - else { - element.classList.toggle(name); - } - break; - default: - return element.classList.contains(name); - } - } - return element; - }; - DomUtils.createElement = function (name, attr, cont, style) { - if (typeof document === "undefined") { - throw new errors_1.NotBrowserException(); - } - if (typeof name === "object") { - return DomUtils.createElement(name.name, name.attr || {}, name.cont || "", name.style); - } - var el = document.createElement(name); - if (typeof attr === "object") { - for (var key in attr) { - if (attr.hasOwnProperty(key)) { - el.setAttribute(key, attr[key]); - } - } - } - if (typeof style === "object") { - for (var key in style) { - if (style.hasOwnProperty(key)) { - el.style[key] = style[key]; - } - } - } - if (Array.isArray(cont)) { - cont.forEach(function (e) { - DomUtils.html(el, e, true); - }); - } - else { - DomUtils.html(el, cont); - } - return el; - }; - DomUtils.remove = function (element) { - var parentElement = element.parentElement; - if (parentElement) { - parentElement.removeChild(element); - } - return element; - }; - DomUtils.position = function (element) { - var top = 0; - var left = 0; - do { - top += element.offsetTop || 0; - left += element.offsetLeft || 0; - element = element.offsetParent; - } while (element); - return { - x: left, - y: top, - }; - }; - DomUtils.indexOf = function (element) { - var index = 0; - while (element) { - element = element.previousElementSibling; - index++; - } - return index; - }; - DomUtils.size = function (element) { - return { - height: element.offsetHeight, - width: element.offsetWidth, - }; - }; - DomUtils.serialize = function (form) { - var result = {}; - if (!Checkers.isElement(form)) { - return result; - } - if (form.tagName.toLowerCase() !== "form") { - return result; - } - var elements = dom_get_1.DomGet.byTag("input"); - for (var key in elements) { - if (!elements.hasOwnProperty(key)) { - continue; - } - var e = elements[key]; - var name_2 = e.getAttribute("name"); - if (name_2) { - result[name_2] = e.getAttribute("value"); - } - } - return result; - }; - return DomUtils; -}()); -exports.DomUtils = DomUtils; -//# sourceMappingURL=DomUtils.js.map \ No newline at end of file diff --git a/dist/utils/DomUtils.js.map b/dist/utils/DomUtils.js.map deleted file mode 100644 index 41e5d882..00000000 --- a/dist/utils/DomUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DomUtils.js","sourceRoot":"","sources":["../../src/utils/DomUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAoD;AAGpD,0CAAwC;AACxC,sEAA0D;AAS1D;IAAA;IA0QA,CAAC;IApQiB,wBAAe,GAA7B;QACI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAC/B,MAAM,IAAI,4BAAmB,EAAE,CAAC;SACnC;QAGD,OAAO,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,YAAY,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;IACrG,CA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OAAO,CAAW,CAAC;aACpD;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IACL,eAAC;AAAD,CAAC,AA1QD,IA0QC;AA1QY,4BAAQ"} \ No newline at end of file diff --git a/dist/utils/FileUtils.d.ts b/dist/utils/FileUtils.d.ts deleted file mode 100644 index 0f9972c0..00000000 --- a/dist/utils/FileUtils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -export declare class FileUtils { - static scanDirRecursive(dir: string): Promise; - static loadFileJSON(url: string, callback: (err: NodeJS.ErrnoException | null, data: any) => any): void; - static loadFile(url: string, callback: (err: NodeJS.ErrnoException | null, data: string) => any, encoding?: string): void; - static saveJsonFile(data: any, fileName: string): Promise; - static saveFile(data: string, fileName: string): Promise; - static removeFile(fileName: string): Promise; - static checkExtension(name: string, extension: string): string; -} -//# sourceMappingURL=FileUtils.d.ts.map \ No newline at end of file diff --git a/dist/utils/FileUtils.d.ts.map b/dist/utils/FileUtils.d.ts.map deleted file mode 100644 index 1635cdc3..00000000 --- a/dist/utils/FileUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileUtils.d.ts","sourceRoot":"","sources":["../../src/utils/FileUtils.ts"],"names":[],"mappings":";AAwCA,qBAAa,SAAS;WACJ,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;WAmBhD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,GAAG,GAAG,IAAI;WAIhG,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,GAAG,EAAE,QAAQ,SAAS,GAAG,IAAI;WAIlH,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;WAI1D,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;WAQzD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;WAQ7C,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;CAOxE"} \ No newline at end of file diff --git a/dist/utils/FileUtils.js b/dist/utils/FileUtils.js deleted file mode 100644 index 24f8280e..00000000 --- a/dist/utils/FileUtils.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileUtils = void 0; -var fs = __importStar(require("fs")); -var path = __importStar(require("path")); -var string_utils_1 = require("./string-utils"); -function walk(dir, done) { - var results = []; - fs.readdir(dir, function (err, list) { - if (err) { - return done(err); - } - var pending = list.length; - if (!pending) { - return done(null, results); - } - list.forEach(function (file) { - file = path.resolve(dir, file); - fs.stat(file, function (err1, stat) { - if (stat && stat.isDirectory()) { - walk(file, function (err2, res) { - if (!res) { - return; - } - results.push.apply(results, res); - pending--; - if (!pending) { - done(null, results); - } - }); - } - else { - results.push(file); - pending--; - if (!pending) { - done(null, results); - } - } - }); - }); - }); -} -var FileUtils = (function () { - function FileUtils() { - } - FileUtils.scanDirRecursive = function (dir) { - return new Promise(function (success, reject) { - fs.stat(dir, function (err0, stats) { - if (err0) { - return reject(err0); - } - if (!stats.isDirectory()) { - return reject(dir + " is not directory"); - } - walk(dir, function (err, data) { - if (err) { - return reject(err); - } - success(data); - }); - }); - }); - }; - FileUtils.loadFileJSON = function (url, callback) { - FileUtils.loadFile(url, function (err, data) { return callback(err, JSON.parse(data)); }); - }; - FileUtils.loadFile = function (url, callback, encoding) { - if (encoding === void 0) { encoding = "utf8"; } - fs.readFile(url, encoding, callback); - }; - FileUtils.saveJsonFile = function (data, fileName) { - return FileUtils.saveFile(JSON.stringify(data), fileName); - }; - FileUtils.saveFile = function (data, fileName) { - return new Promise(function (success, reject) { - fs.writeFile(fileName, data, function (err) { - err ? reject(err) : success("The file was saved!"); - }); - }); - }; - FileUtils.removeFile = function (fileName) { - return new Promise(function (success, reject) { - fs.unlink(fileName, function (err) { - err ? reject(err) : success("The file was removed!"); - }); - }); - }; - FileUtils.checkExtension = function (name, extension) { - if (name.endsWith(extension)) { - return name; - } - return string_utils_1.joinSingle(name, ".", extension); - }; - return FileUtils; -}()); -exports.FileUtils = FileUtils; -//# sourceMappingURL=FileUtils.js.map \ No newline at end of file diff --git a/dist/utils/FileUtils.js.map b/dist/utils/FileUtils.js.map deleted file mode 100644 index 04286c53..00000000 --- a/dist/utils/FileUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileUtils.js","sourceRoot":"","sources":["../../src/utils/FileUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAC7B,+CAA4C;AAE5C,SAAS,IAAI,CAAC,GAAW,EAAE,IAA2C;IAClE,IAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,UAAC,GAAiC,EAAE,IAAc;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,CAAC;YACvD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAEa,oBAAU,GAAxB,UAAyB,QAAgB;QACrC,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;YAC/B,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAC,GAAG;gBACpB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;YACzD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAEa,wBAAc,GAA5B,UAA6B,IAAY,EAAE,SAAiB;QACxD,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QAED,OAAO,yBAAU,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,CAAC;IACL,gBAAC;AAAD,CAAC,AAvDD,IAuDC;AAvDY,8BAAS"} \ No newline at end of file diff --git a/dist/utils/Runtime.d.ts b/dist/utils/Runtime.d.ts deleted file mode 100644 index 127a33ee..00000000 --- a/dist/utils/Runtime.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare class Runtime { - static useRuntimeExceptions(value: boolean): void; - static notNull(obj: T): T; - static exists(obj: T): T; - static isArray(obj: T[]): T[]; - static isString(obj: string): string; - static isNumber(obj: number): number; - static isFunction(obj: T): T; - static checkFunction(func: Function, args?: any[], thisArg?: typeof Runtime): boolean; - static isBoolean(obj: boolean): boolean; - static min(obj: number, value: number): number; - static max(obj: number, value: number): number; -} -//# sourceMappingURL=Runtime.d.ts.map \ No newline at end of file diff --git a/dist/utils/Runtime.d.ts.map b/dist/utils/Runtime.d.ts.map deleted file mode 100644 index acb77fe3..00000000 --- a/dist/utils/Runtime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../src/utils/Runtime.ts"],"names":[],"mappings":"AAKA,qBAAa,OAAO;WACF,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;WAI1C,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;WAQrB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;WAQpB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;WAQzB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;WAQ7B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;WAQ7B,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;WAUxB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,GAAG,EAAO,EAAE,OAAO,iBAAO,GAAG,OAAO;WAUxE,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;WAQhC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;WAQvC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;CAOxD"} \ No newline at end of file diff --git a/dist/utils/Runtime.js b/dist/utils/Runtime.js deleted file mode 100644 index c6e35b59..00000000 --- a/dist/utils/Runtime.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Runtime = void 0; -var errors_1 = require("gtools/errors"); -var Checkers = __importStar(require("../validators/misc-validators")); -var useRuntimeCheckers = true; -var Runtime = (function () { - function Runtime() { - } - Runtime.useRuntimeExceptions = function (value) { - useRuntimeCheckers = value; - }; - Runtime.notNull = function (obj) { - if (useRuntimeCheckers && obj === null) { - throw new errors_1.NullPointerException(); - } - return obj; - }; - Runtime.exists = function (obj) { - if (useRuntimeCheckers && (typeof obj !== "boolean" && !obj)) { - throw new Error("Variable "); - } - return obj; - }; - Runtime.isArray = function (obj) { - if (useRuntimeCheckers && !Checkers.isArray(obj)) { - throw new errors_1.WrongTypeException("Array"); - } - return obj; - }; - Runtime.isString = function (obj) { - if (useRuntimeCheckers && !Checkers.isString(obj)) { - throw new errors_1.WrongTypeException("string"); - } - return obj; - }; - Runtime.isNumber = function (obj) { - if (useRuntimeCheckers && !Checkers.isNumber(obj)) { - throw new errors_1.WrongTypeException("number"); - } - return obj; - }; - Runtime.isFunction = function (obj) { - if (useRuntimeCheckers && !Checkers.isFunction(obj)) { - throw new errors_1.WrongTypeException("function"); - } - return obj; - }; - Runtime.checkFunction = function (func, args, thisArg) { - if (args === void 0) { args = []; } - if (thisArg === void 0) { thisArg = this; } - try { - func.apply(thisArg, args); - return true; - } - catch (e) { - return false; - } - }; - Runtime.isBoolean = function (obj) { - if (useRuntimeCheckers && !Checkers.isBoolean(obj)) { - throw new errors_1.WrongTypeException("boolean"); - } - return obj; - }; - Runtime.min = function (obj, value) { - if (useRuntimeCheckers && obj <= value) { - throw new errors_1.WrongParameterException("Number " + obj + " must be greater than " + value); - } - return obj; - }; - Runtime.max = function (obj, value) { - if (useRuntimeCheckers && obj >= value) { - throw new errors_1.WrongParameterException("Number " + obj + " must be lower than " + value); - } - return obj; - }; - return Runtime; -}()); -exports.Runtime = Runtime; -//# sourceMappingURL=Runtime.js.map \ No newline at end of file diff --git a/dist/utils/Runtime.js.map b/dist/utils/Runtime.js.map deleted file mode 100644 index 32ab35e9..00000000 --- a/dist/utils/Runtime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../src/utils/Runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAkG;AAClG,sEAA0D;AAE1D,IAAI,kBAAkB,GAAG,IAAI,CAAC;AAE9B;IAAA;IAwFA,CAAC;IAvFiB,4BAAoB,GAAlC,UAAmC,KAAc;QAC7C,kBAAkB,GAAG,KAAK,CAAC;IAC/B,CAAC;IAEa,eAAO,GAArB,UAAyB,GAAM;QAC3B,IAAI,kBAAkB,IAAI,GAAG,KAAK,IAAI,EAAE;YACpC,MAAM,IAAI,6BAAoB,EAAE,CAAC;SACpC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,cAAM,GAApB,UAAwB,GAAM;QAC1B,IAAI,kBAAkB,IAAI,CAAC,OAAO,GAAG,KAAK,SAAS,IAAI,CAAC,GAAG,CAAC,EAAE;YAC1D,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;SAChC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,eAAO,GAArB,UAAyB,GAAQ;QAC7B,IAAI,kBAAkB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC9C,MAAM,IAAI,2BAAkB,CAAC,OAAO,CAAC,CAAC;SACzC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IAEa,gBAAQ,GAAtB,UAAuB,GAAW;QAC9B,IAAI,kBAAkB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC/C,MAAM,IAAI,2BAAkB,CAAC,QAAQ,CAAC,CAAC;SAC1C;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IA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AAwB,KAAO,CAAC,CAAC;SACnF;QAED,OAAO,GAAG,CAAC;IACf,CAAC;IACL,cAAC;AAAD,CAAC,AAxFD,IAwFC;AAxFY,0BAAO"} \ No newline at end of file diff --git a/dist/utils/analytics-utils.d.ts b/dist/utils/analytics-utils.d.ts deleted file mode 100644 index 2b8cd020..00000000 --- a/dist/utils/analytics-utils.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Method check if app is running inside Internet explorer - */ -export declare function isIE(): boolean; -/** - * Method check if app is running inside Internet explorer 6 - */ -export declare function isIE6(): boolean; -/** - * Method check if app is running inside Internet explorer 11 - */ -export declare function isIE11(): boolean; -/** - * Method check if app is running inside Edge - */ -export declare function isEdge(): boolean; -/** - * Method check if app is running inside Safary - */ -export declare function isSafari(): boolean; -/** - * Method check if app is running inside IOS - */ -export declare function isIOS(): boolean; -/** - * Method check if app is running inside Chrome - */ -export declare function isChromeApp(): boolean; -/** - * Method check if app is running onMessage Windows - */ -export declare function isWin(): boolean; -/** - * Method check if app is running onMessage Mac OS - */ -export declare function isMac(): boolean; -/** - * Method check if app is running Chrome OS - */ -export declare function isChromeOs(): boolean; -/** - * Method check if device support touch events - */ -export declare function isTouch(): boolean; -/** - * Method check if device support mouse events - */ -export declare function hasMouse(): boolean; -//# sourceMappingURL=analytics-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/analytics-utils.d.ts.map b/dist/utils/analytics-utils.d.ts.map deleted file mode 100644 index 94355179..00000000 --- a/dist/utils/analytics-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analytics-utils.d.ts","sourceRoot":"","sources":["../../src/utils/analytics-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,IAAI,IAAI,OAAO,CAE9B;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAIlC;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;GAEG;AACH,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAElC"} \ No newline at end of file diff --git a/dist/utils/analytics-utils.js b/dist/utils/analytics-utils.js deleted file mode 100644 index d0d92041..00000000 --- a/dist/utils/analytics-utils.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hasMouse = exports.isTouch = exports.isChromeOs = exports.isMac = exports.isWin = exports.isChromeApp = exports.isIOS = exports.isSafari = exports.isEdge = exports.isIE11 = exports.isIE6 = exports.isIE = void 0; -function isIE() { - return navigator.userAgent.indexOf("MSIE") >= 0; -} -exports.isIE = isIE; -function isIE6() { - return navigator.userAgent.indexOf("MSIE 6") >= 0; -} -exports.isIE6 = isIE6; -function isIE11() { - return !!navigator.userAgent.match(/Trident\/7\./); -} -exports.isIE11 = isIE11; -function isEdge() { - return !!navigator.userAgent.match(/Edge\//); -} -exports.isEdge = isEdge; -function isSafari() { - return navigator.userAgent.indexOf("AppleWebKit/") >= 0 && - navigator.userAgent.indexOf("Chrome/") < 0 && - navigator.userAgent.indexOf("Edge/") < 0; -} -exports.isSafari = isSafari; -function isIOS() { - return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g); -} -exports.isIOS = isIOS; -function isChromeApp() { - var _a, _b, _c; - return (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.chrome) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.runtime; -} -exports.isChromeApp = isChromeApp; -function isWin() { - return navigator.appVersion.indexOf("Win") > 0; -} -exports.isWin = isWin; -function isMac() { - return navigator.appVersion.indexOf("Mac") > 0; -} -exports.isMac = isMac; -function isChromeOs() { - return /\bCrOS\b/.test(navigator.userAgent); -} -exports.isChromeOs = isChromeOs; -function isTouch() { - return "ontouchstart" in document.documentElement; -} -exports.isTouch = isTouch; -function hasMouse() { - return "onmousemove" in document.documentElement; -} -exports.hasMouse = hasMouse; -//# sourceMappingURL=analytics-utils.js.map \ No newline at end of file diff --git a/dist/utils/analytics-utils.js.map b/dist/utils/analytics-utils.js.map deleted file mode 100644 index 45493580..00000000 --- a/dist/utils/analytics-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analytics-utils.js","sourceRoot":"","sources":["../../src/utils/analytics-utils.ts"],"names":[],"mappings":";;;AAGA,SAAgB,IAAI;IAChB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAFD,oBAEC;AAKD,SAAgB,KAAK;IACjB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAFD,sBAEC;AAKD,SAAgB,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AACvD,CAAC;AAFD,wBAEC;AAKD,SAAgB,MAAM;IAClB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC;AAFD,wBAEC;AAKD,SAAgB,QAAQ;IACpB,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC;QACnD,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;QAC1C,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACjD,CAAC;AAJD,4BAIC;AAKD,SAAgB,KAAK;IACjB,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAC9D,CAAC;AAFD,sBAEC;AAKD,SAAgB,WAAW;;IACvB,yBAAQ,MAAc,0CAAE,MAAM,0CAAE,GAAG,0CAAE,OAAO,CAAC;AACjD,CAAC;AAFD,kCAEC;AAKD,SAAgB,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAFD,sBAEC;AAKD,SAAgB,KAAK;IACjB,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AAFD,sBAEC;AAKD,SAAgB,UAAU;IACtB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC;AAFD,gCAEC;AAKD,SAAgB,OAAO;IACnB,OAAO,cAAc,IAAI,QAAQ,CAAC,eAAe,CAAC;AACtD,CAAC;AAFD,0BAEC;AAKD,SAAgB,QAAQ;IACpB,OAAO,aAAa,IAAI,QAAQ,CAAC,eAAe,CAAC;AACrD,CAAC;AAFD,4BAEC"} \ No newline at end of file diff --git a/dist/utils/array-utils.d.ts b/dist/utils/array-utils.d.ts deleted file mode 100644 index 3a0e8ad8..00000000 --- a/dist/utils/array-utils.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * - * @example - * const array = [{name: "Michael", age: 23}, {name: "Joachim", age: 15}, {name: "Enrico", age: 15}, {name: "Monica", age: 59}] - * const conditions = {age: 23, name: "Monica"} - * where(array, conditions); // [{name: "Michael", age: 23}, {name: "Enrico", age: 15}, {name: "Monica", age: 59}] - */ -export declare function where>(array: T[], condition: Partial): T[]; -/** - * @example - * compareArrays(["a", "b", "c"], ["a", "b", "c"]) => true - * compareArrays([{v: "a"}, {v: "b"}, {v: "c"}], [{v: "a"}, {v: "b"}, {v: "c"}]) => false - * compareArrays([{v: "a"}, {v: "b"}, {v: "c"}], [{v: "a"}, {v: "b"}, {v: "c"}], (a, b) => a.v === b.v) => true - */ -export declare function compareArrays(prev: T[], act: T[], comparator?: (a: T, b: T) => boolean): boolean; -/** - * @example - * groupByLast([{a: "a", b: "A"}, {a: "b", b: "B"}, {a: "c", b: "C"}, {a: "a", b: "D"}], "a") ==> {a: {a: "a", b: "D"}, b: {a: "b", b: "B"}, c: {a: "c", b: "C"}} - */ -export declare function groupByLast(arr: T[], key: S): { - [k in S]: T; -}; -/** - * - * @example - * analyzeArrayChanges(["a", "b", "c"], ["a", "b", "c"]) ==> {toAdd: [], toRemove: []} - * analyzeArrayChanges(["a", "b", "c"], ["b", "c", "d"]) ==> {toAdd: ["d"], toRemove: ["a"]} - */ -export declare function analyzeArrayChanges(prev: T[], act: T[], comparator?: (a: T, b: T) => boolean): { - toAdd: T[]; - toRemove: T[]; -}; -/** - * Return sub array from array - * - * @deprecated use {@link Array.prototype.slice} instead - * @param array - input array - * @param minIndex - start index - * @param maxIndex - end index - * @returns final array - */ -export declare function subArray(array: T[], minIndex?: number, maxIndex?: number): T[]; -/** - * Function return maximal value from numeric array - * - * @param array - array of numbers - * @returns maximal number from array - * @deprecated use {@link Math.max} instead - */ -export declare function max(array: number[]): number; -/** - * Function return minimal value from numeric array - * - * @param array - array of numbers - * @returns minimal number from array - * @deprecated use {@link Math.min} instead - */ -export declare function min(array: number[]): number; -/** - * Function return total value of all elements in numeric array - * @example - * sum([1, 2, 3, 4, 5]) => 15 - * @param array - array of numbers - * @returns summary of all numbers in array - */ -export declare function sum(array: number[]): number; -/** - * Function returns average of numeric array given as input - * @example - * avg([1, 2, 3, 4, 5]) => 3 - * @param array - array of numbers - * @returns average of all numbers in array - */ -export declare function avg(array: number[]): number; -/** - * Function join array by delimiter and append prefix and postfix - * @example - * join(["a", "b", "c", "d"], "") => abcd - * join(["a", "b", "c", "d"], "=") => a=b=c=d - * join(["a", "b", "c", "d"], "=", ">>", "<<") => >>a=b=c=d<< - * @param array - not empty array - * @param delimiter - character used for join elements in array - * @param prefix - string append at the beginning of final string - * @param postfix - string append at the end of final string - * @returns final string - */ -export declare function join(array: T[], delimiter: string, prefix?: string, postfix?: string): string; -/** - * Method returns last element from array or null if array is empty. If argument is not array, method returns argument - * @example - * getLast([]) => undefined - * getLast(["a", "b"]) => b - * getLast([5, 6]) => 6 - * @param array - not empty array - * @returns last value from array - */ -export declare function getLast(array: T[]): T | undefined; -/** - * Method returns random element from array - * - * @param array - not empty array - * @returns random value from array - */ -export declare function getRandomItem(array: T[]): T | null; -export declare function getNRandom(args: T[], count: number): T[]; -/** - * Method return copy of array with only distinct elements - * @example - * makeUnique([5, 5, 3, 2, 1, 4, 5, 4]) ==> [5, 3, 2, 1, 4] - * makeUnique(["5", "5", "3", "2", "1", "4", "5", "4"]) ==> ["5", "3", "2", "1", "4"] - * @param array - array with duplicate elements - * @returns unique array - */ -export declare function makeUnique(array: T[]): T[]; -export declare function createFilledArray(length: number, provider: (() => T) | T): T[]; -/** - * Combine 2 array each other - */ -export declare function eachOther(arr: T[], callback: (a: T, b: T) => void): void; -export declare function mergeArrays2(arr1: S[], arr2: T[], callback: (item1: S, item2: T) => R): R[]; -export declare function mergeArrays3(arr1: S[], arr2: T[], arr3: U[], callback: (item1: S, item2: T, item3: U) => R): R[]; -//# sourceMappingURL=array-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/array-utils.d.ts.map b/dist/utils/array-utils.d.ts.map deleted file mode 100644 index 62fd060e..00000000 --- a/dist/utils/array-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-utils.d.ts","sourceRoot":"","sources":["../../src/utils/array-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,CA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AgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAW5H"} \ No newline at end of file diff --git a/dist/utils/array-utils.js b/dist/utils/array-utils.js deleted file mode 100644 index 6c91f56c..00000000 --- a/dist/utils/array-utils.js +++ /dev/null @@ -1,212 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeArrays3 = exports.mergeArrays2 = exports.eachOther = exports.createFilledArray = exports.makeUnique = exports.getNRandom = exports.getRandomItem = exports.getLast = exports.join = exports.avg = exports.sum = exports.min = exports.max = exports.subArray = exports.analyzeArrayChanges = exports.groupByLast = exports.compareArrays = exports.where = void 0; -function where(array, condition) { - if (!Array.isArray(array)) { - return array; - } - if (!condition || typeof condition !== "object") { - return []; - } - var result = []; - var conditionEntries = Object.entries(condition); - array.forEach(function (e) { - var add = conditionEntries.some(function (conditionEntry) { return e[conditionEntry[0]] === conditionEntry[1]; }); - if (add) { - result[result.length] = e; - } - }); - return result; -} -exports.where = where; -function compareArrays(prev, act, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - if (prev.length !== act.length) { - return false; - } - for (var i = 0; i < prev.length; i++) { - if (!comparator(prev[i], act[i])) { - return false; - } - } - return true; -} -exports.compareArrays = compareArrays; -function groupByLast(arr, key) { - return arr.reduce(function (acc, curr) { - var _a; - return Object.assign({}, acc, (_a = {}, _a[curr[key]] = curr, _a)); - }, {}); -} -exports.groupByLast = groupByLast; -function analyzeArrayChanges(prev, act, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - var existingPrevIndices = {}; - var toRemove = []; - var toAdd = []; - act.forEach(function (e) { - var prevIndex = prev.findIndex(function (item) { return comparator(e, item); }); - if (prevIndex < 0) { - toAdd.push(e); - } - else { - existingPrevIndices[prevIndex] = true; - } - }); - prev.forEach(function (e, i) { - if (i in existingPrevIndices) { - return; - } - toRemove.push(e); - }); - return { toAdd: toAdd, toRemove: toRemove }; -} -exports.analyzeArrayChanges = analyzeArrayChanges; -function subArray(array, minIndex, maxIndex) { - if (minIndex === void 0) { minIndex = 0; } - if (maxIndex === void 0) { maxIndex = array.length - 1; } - if (!Array.isArray(array)) { - return array; - } - var result = []; - var final = array.length < maxIndex ? array.length - 1 : maxIndex; - for (var i = minIndex; i <= final; i++) { - result[result.length] = array[i]; - } - return result; -} -exports.subArray = subArray; -function max(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a > b ? a : b; }); -} -exports.max = max; -function min(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a < b ? a : b; }); -} -exports.min = min; -function sum(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a + b; }); -} -exports.sum = sum; -function avg(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return 0; - } - return array.reduce(function (a, b) { return a + b; }) / array.length; -} -exports.avg = avg; -function join(array, delimiter, prefix, postfix) { - if (prefix === void 0) { prefix = ""; } - if (postfix === void 0) { postfix = ""; } - if (!Array.isArray(array)) { - return prefix + array + postfix; - } - return prefix + array.join(delimiter) + postfix; -} -exports.join = join; -function getLast(array) { - if (!Array.isArray(array)) { - return array; - } - return array[array.length - 1]; -} -exports.getLast = getLast; -function getRandomItem(array) { - if (!Array.isArray(array)) { - return array; - } - if (array.length === 0) { - return null; - } - return array[Math.floor(Math.random() * array.length)]; -} -exports.getRandomItem = getRandomItem; -function getNRandom(args, count) { - if (!Array.isArray(args)) { - return args; - } - if (args.length === 0 || count === 0) { - return []; - } - if (args.length <= count) { - return args; - } - if (Math.random() < 2) { - throw new Error("Not implemented because of infinity loop"); - } - var result = new Set(); - while (result.size <= count) { - var randomItem = getRandomItem(args); - if (randomItem) { - result.add(randomItem); - } - } - return Array.from(result); -} -exports.getNRandom = getNRandom; -function makeUnique(array) { - if (!Array.isArray(array)) { - return array; - } - return Array.from(new Set(array)); -} -exports.makeUnique = makeUnique; -function createFilledArray(length, provider) { - if (typeof provider === "function") { - return new Array(length).fill(null).map(function () { return provider(); }); - } - return new Array(length).fill(provider); -} -exports.createFilledArray = createFilledArray; -function eachOther(arr, callback) { - arr.forEach(function (e, i) { - for (var j = i + 1; j < arr.length; j++) { - callback(e, arr[j]); - } - }); -} -exports.eachOther = eachOther; -function mergeArrays2(arr1, arr2, callback) { - var result = []; - arr1.forEach(function (item1) { - arr2.forEach(function (item2) { - result.push(callback(item1, item2)); - }); - }); - return result; -} -exports.mergeArrays2 = mergeArrays2; -function mergeArrays3(arr1, arr2, arr3, callback) { - var result = []; - arr1.forEach(function (item1) { - arr2.forEach(function (item2) { - arr3.forEach(function (item3) { - result.push(callback(item1, item2, item3)); - }); - }); - }); - return result; -} -exports.mergeArrays3 = mergeArrays3; -//# sourceMappingURL=array-utils.js.map \ No newline at end of file diff --git a/dist/utils/array-utils.js.map b/dist/utils/array-utils.js.map deleted file mode 100644 index ba040bb8..00000000 --- a/dist/utils/array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-utils.js","sourceRoot":"","sources":["../../src/utils/array-utils.ts"],"names":[],"mappings":";;;AAOA,SAAgB,KAAK,CAAoC,KAAU,EAAE,SAAqB;IACtF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACvB,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,CAAC,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QAC7C,OAAO,EAAE,CAAC;KACb;IAED,IAAM,MAAM,GAAa,EAAE,CAAC;IAC5B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AC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC;AAXD,oCAWC"} \ No newline at end of file diff --git a/dist/utils/coerce-util.d.ts b/dist/utils/coerce-util.d.ts deleted file mode 100644 index a5ef60f0..00000000 --- a/dist/utils/coerce-util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function coerceBooleanProperty(value: T): boolean; -//# sourceMappingURL=coerce-util.d.ts.map \ No newline at end of file diff --git a/dist/utils/coerce-util.d.ts.map b/dist/utils/coerce-util.d.ts.map deleted file mode 100644 index 2a49bbc3..00000000 --- a/dist/utils/coerce-util.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"coerce-util.d.ts","sourceRoot":"","sources":["../../src/utils/coerce-util.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAE1D"} \ No newline at end of file diff --git a/dist/utils/coerce-util.js b/dist/utils/coerce-util.js deleted file mode 100644 index f4af87f2..00000000 --- a/dist/utils/coerce-util.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.coerceBooleanProperty = void 0; -function coerceBooleanProperty(value) { - return value !== null && "" + value !== "false"; -} -exports.coerceBooleanProperty = coerceBooleanProperty; -//# sourceMappingURL=coerce-util.js.map \ No newline at end of file diff --git a/dist/utils/coerce-util.js.map b/dist/utils/coerce-util.js.map deleted file mode 100644 index a639c15b..00000000 --- a/dist/utils/coerce-util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"coerce-util.js","sourceRoot":"","sources":["../../src/utils/coerce-util.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB,CAAI,KAAQ;IAC7C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAG,KAAO,KAAK,OAAO,CAAC;AACpD,CAAC;AAFD,sDAEC"} \ No newline at end of file diff --git a/dist/utils/color-utils.d.ts b/dist/utils/color-utils.d.ts deleted file mode 100644 index ef16c046..00000000 --- a/dist/utils/color-utils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare function lerpColor(fromColor: [number, number, number, number], toColor: [number, number, number, number], progress: number): [number, number, number, number]; -export declare function lerpHexaColor(a: string, b: string, amount: number): string; -export declare function hex2rgb(color: string): [number, number, number]; -export declare function shadeColor(color: string, percent: number): string; -export declare function rgb2hex(R: number, G: number, B: number): string; -export declare function int2hex(val: number): string; -export declare function int2rgb(val: number): [number, number, number]; -export declare function hex2int(val: string): number; -export declare function rgb2int(R: number, G: number, B: number): number; -export declare function parseColor(color: string): [number, number, number]; -//# sourceMappingURL=color-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/color-utils.d.ts.map b/dist/utils/color-utils.d.ts.map deleted file mode 100644 index 62033889..00000000 --- a/dist/utils/color-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color-utils.d.ts","sourceRoot":"","sources":["../../src/utils/color-utils.ts"],"names":[],"mappings":"AAeA,wBAAgB,SAAS,CACrB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC3C,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACzC,QAAQ,EAAE,MAAM,GACjB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAYlC;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAc1E;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAI/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK3C;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAM7D;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAwBlE"} \ No newline at end of file diff --git a/dist/utils/color-utils.js b/dist/utils/color-utils.js deleted file mode 100644 index e02924e8..00000000 --- a/dist/utils/color-utils.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseColor = exports.rgb2int = exports.hex2int = exports.int2rgb = exports.int2hex = exports.rgb2hex = exports.shadeColor = exports.hex2rgb = exports.lerpHexaColor = exports.lerpColor = void 0; -var math_utils_1 = require("./math-utils"); -var colors = { - black: [0, 0, 0], - white: [255, 255, 255], - red: [255, 0, 0], - green: [0, 255, 0], - blue: [0, 0, 255], -}; -function lerpColor(fromColor, toColor, progress) { - var red = progress * fromColor[0] + (1 - progress) * toColor[0]; - var green = progress * fromColor[1] + (1 - progress) * toColor[1]; - var blue = progress * fromColor[2] + (1 - progress) * toColor[2]; - var alpha = progress * fromColor[3] + (1 - progress) * toColor[3]; - return [ - math_utils_1.clamp(red, 0, 255), - math_utils_1.clamp(green, 0, 255), - math_utils_1.clamp(blue, 0, 255), - math_utils_1.clamp(alpha, 0, 255), - ]; -} -exports.lerpColor = lerpColor; -function lerpHexaColor(a, b, amount) { - var ah = +a.replace("#", "0x"); - var ar = ah >> 16; - var ag = ah >> 8 & 0xFF; - var ab = ah & 0xFF; - var bh = +b.replace("#", "0x"); - var br = bh >> 16; - var bg = bh >> 8 & 0xFF; - var bb = bh & 0xFF; - var rr = ar + amount * (br - ar); - var rg = ag + amount * (bg - ag); - var rb = ab + amount * (bb - ab); - return "#" + ((1 << 24) + (rr << 16) + (rg << 8) + rb | 0).toString(16).slice(1); -} -exports.lerpHexaColor = lerpHexaColor; -function hex2rgb(color) { - var num = parseInt(color.slice(1), 16); - return [num >> 16, num >> 8 & 0x00FF, num & 0x0000FF]; -} -exports.hex2rgb = hex2rgb; -function shadeColor(color, percent) { - var num = hex2rgb(color); - var amt = Math.round(2.55 * percent); - var R = num[0] + amt; - var G = num[1] + amt; - var B = num[2] + amt; - return rgb2hex(R, G, B); -} -exports.shadeColor = shadeColor; -function rgb2hex(R, G, B) { - return "#" + (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + - (G < 255 ? G < 1 ? 0 : G : 255) * 0x100 + - (B < 255 ? B < 1 ? 0 : B : 255)).toString(16).slice(1); -} -exports.rgb2hex = rgb2hex; -function int2hex(val) { - var value = val.toString(16); - var result = "000000".substr(0, 6 - value.length) + value; - return "#" + result.toUpperCase(); -} -exports.int2hex = int2hex; -function int2rgb(val) { - return [ - val >> 16, - val >> 8 & 0xFF, - val & 0xFF, - ]; -} -exports.int2rgb = int2rgb; -function hex2int(val) { - return parseInt(val, 16); -} -exports.hex2int = hex2int; -function rgb2int(R, G, B) { - return R << 16 | G << 8 & 0xFFFF | B; -} -exports.rgb2int = rgb2int; -function parseColor(color) { - if (colors[color]) { - return colors[color]; - } - var hexaMatch = color.match(/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/); - if (hexaMatch) { - return [ - parseInt(hexaMatch[1], 16), - parseInt(hexaMatch[2], 16), - parseInt(hexaMatch[3], 16), - ]; - } - var rgbaMath = color.match(/rgba?\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3})( *, *\d*.?\d*)\)/); - if (rgbaMath) { - return [ - parseInt(rgbaMath[1], 10), - parseInt(rgbaMath[2], 10), - parseInt(rgbaMath[3], 10), - ]; - } - throw new Error("Cannot parse color: " + color); -} -exports.parseColor = parseColor; -//# sourceMappingURL=color-utils.js.map \ No newline at end of file diff --git a/dist/utils/color-utils.js.map b/dist/utils/color-utils.js.map deleted file mode 100644 index 42890c20..00000000 --- a/dist/utils/color-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color-utils.js","sourceRoot":"","sources":["../../src/utils/color-utils.ts"],"names":[],"mappings":";;;AAAA,2CAAqC;AAOrC,IAAM,MAAM,GAAkD;IAC1D,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACtB,GAAG,EAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAClB,IAAI,EAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,SAAgB,SAAS,CACrB,SAA2C,EAC3C,OAAyC,EACzC,QAAgB;IAEhB,IAAM,GAAG,GAAK,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACpE,IAAM,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACpE,IAAM,IAAI,GAAI,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,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AC,CAAC;KACxB;IAED,IAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACrF,IAAI,SAAS,EAAE;QACX,OAAO;YACH,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YAC1B,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YAC1B,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;SAC7B,CAAC;KACL;IAED,IAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;IAC9F,IAAI,QAAQ,EAAE;QACV,OAAO;YACH,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YACzB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YACzB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;SAC5B,CAAC;KACL;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AACpD,CAAC;AAxBD,gCAwBC"} \ No newline at end of file diff --git a/dist/utils/date-utils.d.ts b/dist/utils/date-utils.d.ts deleted file mode 100644 index 1330220d..00000000 --- a/dist/utils/date-utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function isValidDate(obj: T): boolean; -//# sourceMappingURL=date-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/date-utils.d.ts.map b/dist/utils/date-utils.d.ts.map deleted file mode 100644 index e4296adb..00000000 --- a/dist/utils/date-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAQ7E"} \ No newline at end of file diff --git a/dist/utils/date-utils.js b/dist/utils/date-utils.js deleted file mode 100644 index 8d2e6c3f..00000000 --- a/dist/utils/date-utils.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidDate = void 0; -function isValidDate(obj) { - try { - var date = new Date(obj); - return !isNaN(date.getTime()); - } - catch (e) { - return false; - } -} -exports.isValidDate = isValidDate; -//# sourceMappingURL=date-utils.js.map \ No newline at end of file diff --git a/dist/utils/date-utils.js.map b/dist/utils/date-utils.js.map deleted file mode 100644 index 264a6c17..00000000 --- a/dist/utils/date-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../src/utils/date-utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAmC,GAAM;IAChE,IAAI;QACA,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAE3B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE;QACR,OAAO,KAAK,CAAC;KAChB;AACL,CAAC;AARD,kCAQC"} \ No newline at end of file diff --git a/dist/utils/html-utils.d.ts b/dist/utils/html-utils.d.ts deleted file mode 100644 index e93f1744..00000000 --- a/dist/utils/html-utils.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export interface ElementAttributes { - className?: string; - children?: (Node | string)[] | Node | string; - type?: string; - onChange?: (value: any) => void; - onClick?: (value: any) => void; - onInput?: (value: string) => void; - styles?: { - [style in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[style]; - }; - content?: string; - value?: string; - src?: string; - for?: string; - id?: string; - autoplay?: boolean; - href?: string; - download?: string; - checked?: boolean; - width?: number; - height?: number; -} -export declare function elementToString(element: HTMLElement): string; -export declare function dragElement(element: HTMLElement, headerSelector?: string): { - clear: () => void; -}; -export declare function CreateImage(options?: ElementAttributes): HTMLElementTagNameMap["img"]; -export declare function createCheckbox(label: string, onChange: (checked: boolean) => void, checked?: boolean): HTMLLabelElement; -export declare function CreateElement(type: K, options?: ElementAttributes): HTMLElementTagNameMap[K]; -/** - * TODO: element remains after deletion onMessage screen - */ -export declare function chooseColorUsingDefaultInput(color?: string, onInput?: (value: string) => void): Promise; -export declare function getOrCreate(parent: HTMLElement, type: K, ...classes: string[]): HTMLElementTagNameMap[K]; -export declare function getOrCreateAndAppend(parent: HTMLElement, type: K, ...classes: string[]): HTMLElementTagNameMap[K]; -//# sourceMappingURL=html-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/html-utils.d.ts.map b/dist/utils/html-utils.d.ts.map deleted file mode 100644 index 535827a4..00000000 --- a/dist/utils/html-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html-utils.d.ts","sourceRoot":"","sources":["../../src/utils/html-utils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,GAAG,MAAM,CAAC;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE;SAAG,KAAK,IAAI,MAAM,mBAAmB,CAAC,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC;KAAE,CAAC;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,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E,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAKxJ"} \ No newline at end of file diff --git a/dist/utils/html-utils.js b/dist/utils/html-utils.js deleted file mode 100644 index 2a5a02a4..00000000 --- a/dist/utils/html-utils.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getOrCreateAndAppend = exports.getOrCreate = exports.chooseColorUsingDefaultInput = exports.CreateElement = exports.createCheckbox = exports.CreateImage = exports.dragElement = exports.elementToString = void 0; -var constants_1 = require("../constants"); -function elementToString(element) { - var classes = Array.from(element.classList).join("."); - var id = element.id ? "#" + element.id : ""; - var parent = element.parentElement ? elementToString(element.parentElement) + " > " : ""; - return parent + element.localName + id + (classes ? "." + classes : ""); -} -exports.elementToString = elementToString; -function dragElement(element, headerSelector) { - if (headerSelector === void 0) { headerSelector = ".header"; } - var pos1 = 0; - var pos2 = 0; - var pos3 = 0; - var pos4 = 0; - var elementDrag = function (e) { - e = e || window.event; - e.preventDefault(); - pos1 = pos3 - e.clientX; - pos2 = pos4 - e.clientY; - pos3 = e.clientX; - pos4 = e.clientY; - element.style.top = element.offsetTop - pos2 + "px"; - element.style.left = element.offsetLeft - pos1 + "px"; - }; - var dragMouseDown = function (e) { - e = e || window.event; - e.preventDefault(); - pos3 = e.clientX; - pos4 = e.clientY; - document.onpointerup = closeDragElement; - document.onpointermove = elementDrag; - }; - var header = element.querySelector(headerSelector); - if (header) { - header.addEventListener("pointerdown", dragMouseDown); - } - else { - element.addEventListener("pointerdown", dragMouseDown); - } - function closeDragElement() { - document.onpointerup = null; - document.onpointermove = null; - } - return { - clear: function () { - if (header) { - header.removeEventListener("pointerdown", dragMouseDown); - } - else { - element.removeEventListener("pointerdown", dragMouseDown); - } - }, - }; -} -exports.dragElement = dragElement; -function CreateImage(options) { - var result = CreateElement("img", options); - if (constants_1.ALLOW_IMAGES_ONLY_WITH_ALLOWED_CORS) { - result.crossOrigin = "Anonymous"; - } - return result; -} -exports.CreateImage = CreateImage; -function createCheckbox(label, onChange, checked) { - if (checked === void 0) { checked = false; } - var inputElement = CreateElement("input", { - checked: checked, - type: "checkbox", - onChange: function () { return onChange(inputElement.checked); }, - }); - return CreateElement("label", { - className: "checkbox-container", - children: [label, inputElement, CreateElement("span", { className: "checkmark" })], - }); -} -exports.createCheckbox = createCheckbox; -function CreateElement(type, options) { - var result = document.createElement(type); - if (!options) { - return result; - } - Object.entries(options).forEach(function (entry) { - switch (entry[0]) { - case "className": - result.className = entry[1]; - break; - case "onChange": - result.addEventListener("change", entry[1]); - break; - case "onClick": - result.addEventListener("click", entry[1]); - break; - case "checked": - result.checked = entry[1]; - break; - case "styles": - Object.entries(entry[1]).forEach(function (styleEntry) { - result.style[styleEntry[0]] = styleEntry[1]; - }); - break; - case "children": - if (Array.isArray(entry[1])) { - result.append.apply(result, entry[1]); - } - else { - result.append(entry[1]); - } - break; - case "content": - if (entry[1]) { - result.innerHTML = entry[1]; - } - break; - default: - result.setAttribute(entry[0], entry[1]); - } - }); - return result; -} -exports.CreateElement = CreateElement; -function chooseColorUsingDefaultInput(color, onInput) { - if (color === void 0) { color = "#000000"; } - return new Promise(function (success) { - var input = CreateElement("input", { - type: "color", - className: "hidden", - value: color, - onInput: typeof onInput === "function" ? function () { return onInput(input.value); } : undefined, - onChange: function () { - success(input.value); - document.body.removeChild(input); - }, - }); - document.body.appendChild(input); - input.click(); - }); -} -exports.chooseColorUsingDefaultInput = chooseColorUsingDefaultInput; -function getOrCreate(parent, type) { - var classes = []; - for (var _i = 2; _i < arguments.length; _i++) { - classes[_i - 2] = arguments[_i]; - } - var result = parent.querySelector(type + "." + classes.join(".")); - if (result) { - return result; - } - return CreateElement(type, { className: classes.join(" ") }); -} -exports.getOrCreate = getOrCreate; -function getOrCreateAndAppend(parent, type) { - var classes = []; - for (var _i = 2; _i < arguments.length; _i++) { - classes[_i - 2] = arguments[_i]; - } - var result = getOrCreate.apply(void 0, __spreadArrays([parent, type], classes)); - parent.appendChild(result); - return result; -} -exports.getOrCreateAndAppend = getOrCreateAndAppend; -//# sourceMappingURL=html-utils.js.map \ No newline at end of file diff --git a/dist/utils/html-utils.js.map b/dist/utils/html-utils.js.map deleted file mode 100644 index 06ff6a7e..00000000 --- a/dist/utils/html-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html-utils.js","sourceRoot":"","sources":["../../src/utils/html-utils.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,0CAAmE;AAuBnE,SAAgB,eAAe,CAAC,OAAoB;IAChD,IAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,IAAM,EAAE,GAAQ,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,IAAM,MAAM,GAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE5F,OAAO,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5E,CAAC;AAND,0CAMC;AAED,SAAgB,WAAW,CAAC,OAAoB,EAAE,cAA0B;IAA1B,+BAAA,EAAA,0BAA0B;IACxE,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,I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,UAAoB,EAApB,qBAAoB,EAApB,IAAoB;QAApB,gCAAoB;;IAC1H,IAAM,MAAM,GAAG,WAAW,+BAAI,MAAM,EAAE,IAAI,GAAK,OAAO,EAAC,CAAC;IACxD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3B,OAAO,MAAM,CAAC;AAClB,CAAC;AALD,oDAKC"} \ No newline at end of file diff --git a/dist/utils/image-utils.d.ts b/dist/utils/image-utils.d.ts deleted file mode 100644 index 7904dcbf..00000000 --- a/dist/utils/image-utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function serializeImage(image: HTMLImageElement): string; -export declare function deserializeImage(image: string): HTMLImageElement; -export declare function createImage(callback: (context: CanvasRenderingContext2D) => void, width: number, height?: number): HTMLCanvasElement; -export declare function imageAsPromise(src: string): Promise; -//# sourceMappingURL=image-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/image-utils.d.ts.map b/dist/utils/image-utils.d.ts.map deleted file mode 100644 index d40282b4..00000000 --- a/dist/utils/image-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"image-utils.d.ts","sourceRoot":"","sources":["../../src/utils/image-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAQ9D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAIhE;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAQ,GAAG,iBAAiB,CASnI;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAmBrE"} \ No newline at end of file diff --git a/dist/utils/image-utils.js b/dist/utils/image-utils.js deleted file mode 100644 index b851585d..00000000 --- a/dist/utils/image-utils.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.imageAsPromise = exports.createImage = exports.deserializeImage = exports.serializeImage = void 0; -var html_utils_1 = require("./html-utils"); -function serializeImage(image) { - var canvas = html_utils_1.CreateElement("canvas", { - width: image.width, - height: image.height, - }); - canvas.getContext("2d").drawImage(image, 0, 0); - return canvas.toDataURL("image/png"); -} -exports.serializeImage = serializeImage; -function deserializeImage(image) { - return html_utils_1.CreateImage({ - src: image, - }); -} -exports.deserializeImage = deserializeImage; -function createImage(callback, width, height) { - if (height === void 0) { height = width; } - var canvas = html_utils_1.CreateElement("canvas", { - width: width, - height: height, - }); - callback(canvas.getContext("2d")); - return canvas; -} -exports.createImage = createImage; -function imageAsPromise(src) { - return new Promise(function (success, reject) { - var image = document.createElement("img"); - var callback = function (e) { - image.dataset.hasError = e ? "true" : "false"; - if (e.type === "error") { - reject(e); - return console.error("Error during loading image ", src); - } - image.removeEventListener("load", callback); - image.removeEventListener("error", callback); - success(image); - }; - image.addEventListener("load", callback); - image.addEventListener("error", callback); - image.src = src; - }); -} -exports.imageAsPromise = imageAsPromise; -//# sourceMappingURL=image-utils.js.map \ No newline at end of file diff --git a/dist/utils/image-utils.js.map b/dist/utils/image-utils.js.map deleted file mode 100644 index 7db214e6..00000000 --- a/dist/utils/image-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"image-utils.js","sourceRoot":"","sources":["../../src/utils/image-utils.ts"],"names":[],"mappings":";;;AAAA,2CAA0D;AAE1D,SAAgB,cAAc,CAAC,KAAuB;IAClD,IAAM,MAAM,GAAG,0BAAa,CAAC,QAAQ,EAAE;QACnC,KAAK,EAAG,KAAK,CAAC,KAAK;QACnB,MAAM,EAAE,KAAK,CAAC,MAAM;KACvB,CAAC,CAAC;IACF,MAAM,CAAC,UAAU,CAAC,IAAI,CAA8B,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE7E,OAAO,MAAM,CAAC,SAA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C,CAAC;QAE1C,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAnBD,wCAmBC"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts deleted file mode 100644 index fb327777..00000000 --- a/dist/utils/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export * from "./analytics-utils"; -export * from "./array-utils"; -export * from "./coerce-util"; -export * from "./color-utils"; -export * from "./date-utils"; -export * from "./html-utils"; -export * from "./image-utils"; -export * from "./math-utils"; -export * from "./misc-utils"; -export * from "./time-utils"; -export * from "./sorted-array-utils"; -export * from "./input-utils"; -export * from "./object-utils"; -export * from "./parser-utils"; -export * from "./process-utils"; -export * from "./reflection-utils"; -export * from "./random-utils"; -export * from "./string-utils"; -export * from "./svg-utils"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/utils/index.d.ts.map b/dist/utils/index.d.ts.map deleted file mode 100644 index 9230932f..00000000 --- a/dist/utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AAKrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/utils/index.js b/dist/utils/index.js deleted file mode 100644 index e5ce4393..00000000 --- a/dist/utils/index.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./analytics-utils"), exports); -__exportStar(require("./array-utils"), exports); -__exportStar(require("./coerce-util"), exports); -__exportStar(require("./color-utils"), exports); -__exportStar(require("./date-utils"), exports); -__exportStar(require("./html-utils"), exports); -__exportStar(require("./image-utils"), exports); -__exportStar(require("./math-utils"), exports); -__exportStar(require("./misc-utils"), exports); -__exportStar(require("./time-utils"), exports); -__exportStar(require("./sorted-array-utils"), exports); -__exportStar(require("./input-utils"), exports); -__exportStar(require("./object-utils"), exports); -__exportStar(require("./parser-utils"), exports); -__exportStar(require("./process-utils"), exports); -__exportStar(require("./reflection-utils"), exports); -__exportStar(require("./random-utils"), exports); -__exportStar(require("./string-utils"), exports); -__exportStar(require("./svg-utils"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/utils/index.js.map b/dist/utils/index.js.map deleted file mode 100644 index 5638339c..00000000 --- a/dist/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,uDAAqC;AAKrC,gDAA8B;AAC9B,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,8CAA4B"} \ No newline at end of file diff --git a/dist/utils/input-utils.d.ts b/dist/utils/input-utils.d.ts deleted file mode 100644 index df7c11de..00000000 --- a/dist/utils/input-utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Button, Keys } from "../enums"; -export declare function getButtonFromEvent(event: MouseEvent): Button | undefined; -export declare function getButtonFromEventButtons(button: MouseEvent["button"]): Button | undefined; -export declare function compareEventKey(event: KeyboardEvent, key: Keys): boolean; -//# sourceMappingURL=input-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/input-utils.d.ts.map b/dist/utils/input-utils.d.ts.map deleted file mode 100644 index cbc9dad6..00000000 --- a/dist/utils/input-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"input-utils.d.ts","sourceRoot":"","sources":["../../src/utils/input-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAExE;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,GAAG,SAAS,CAU1F;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAExE"} \ No newline at end of file diff --git a/dist/utils/input-utils.js b/dist/utils/input-utils.js deleted file mode 100644 index 0b594ff8..00000000 --- a/dist/utils/input-utils.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.compareEventKey = exports.getButtonFromEventButtons = exports.getButtonFromEvent = void 0; -var enums_1 = require("../enums"); -function getButtonFromEvent(event) { - return getButtonFromEventButtons(event.button); -} -exports.getButtonFromEvent = getButtonFromEvent; -function getButtonFromEventButtons(button) { - if (button === 0) { - return enums_1.Button.LEFT; - } - if (button === 1) { - return enums_1.Button.MIDDLE; - } - if (button === 2) { - return enums_1.Button.RIGHT; - } -} -exports.getButtonFromEventButtons = getButtonFromEventButtons; -function compareEventKey(event, key) { - return event.code === key; -} -exports.compareEventKey = compareEventKey; -//# sourceMappingURL=input-utils.js.map \ No newline at end of file diff --git a/dist/utils/input-utils.js.map b/dist/utils/input-utils.js.map deleted file mode 100644 index 374bbd41..00000000 --- a/dist/utils/input-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"input-utils.js","sourceRoot":"","sources":["../../src/utils/input-utils.ts"],"names":[],"mappings":";;;AAAA,kCAAwC;AAExC,SAAgB,kBAAkB,CAAC,KAAiB;IAChD,OAAO,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAFD,gDAEC;AAED,SAAgB,yBAAyB,CAAC,MAA4B;IAClE,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,cAAM,CAAC,IAAI,CAAC;KACtB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,cAAM,CAAC,MAAM,CAAC;KACxB;IACD,IAAI,MAAM,KAAK,CAAC,EAAE;QACd,OAAO,cAAM,CAAC,KAAK,CAAC;KACvB;AACL,CAAC;AAVD,8DAUC;AAED,SAAgB,eAAe,CAAC,KAAoB,EAAE,GAAS;IAC3D,OAAO,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;AAC9B,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/dist/utils/math-utils.d.ts b/dist/utils/math-utils.d.ts deleted file mode 100644 index 0721f96f..00000000 --- a/dist/utils/math-utils.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -export declare function pad(num: number, size: number): string; -export declare function roundToDecimals(num: number, decimals?: number, type?: "floor" | "ceil" | "round"): string; -export declare function hash2Numbers(x: number, y: number): number; -export declare function hash3Numbers(x: number, y: number, z: number): number; -export declare function clamp(value: number, min: number, max: number): number; -export declare function binomialCoefficient(n: number, k: number): number; -export declare function lerp(a: number, b: number, val: number): number; -export declare function log2i(value: number): number; -export declare function lamp(min: number, max: number, scale: number): number; -/** - * @deprecated use {@link randomIntBetween} instead; - * - * @param min - min value - * @param max - max value - */ -export declare function randomInt(min: number, max: number): number; -/** - * @deprecated use {@link randomFloatBetween} instead; - * - * @param min - min value - * @param max - max value - */ -export declare function random(min: number, max: number): number; -export declare function average(args: number[]): number; -export declare function isPowerOf2(value: number): boolean; -export declare function getDiff(num1: number, num2: number): number; -export declare function toDegrees(radians: number): number; -//# sourceMappingURL=math-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/math-utils.d.ts.map b/dist/utils/math-utils.d.ts.map deleted file mode 100644 index 4ece24af..00000000 --- a/dist/utils/math-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"math-utils.d.ts","sourceRoot":"","sources":["../../src/utils/math-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIrD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAI,EAAE,IAAI,GAAE,OAAO,GAAG,MAAM,GAAG,OAAiB,GAAG,MAAM,CAI7G;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAKzD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAYhE;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ3C;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAO9C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1D;AAID,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjD"} \ No newline at end of file diff --git a/dist/utils/math-utils.js b/dist/utils/math-utils.js deleted file mode 100644 index 2668706c..00000000 --- a/dist/utils/math-utils.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDegrees = exports.getDiff = exports.isPowerOf2 = exports.average = exports.random = exports.randomInt = exports.lamp = exports.log2i = exports.lerp = exports.binomialCoefficient = exports.clamp = exports.hash3Numbers = exports.hash2Numbers = exports.roundToDecimals = exports.pad = void 0; -var Random = __importStar(require("./random-utils")); -function pad(num, size) { - var s = "00000000000000" + num; - return s.substr(s.length - size); -} -exports.pad = pad; -function roundToDecimals(num, decimals, type) { - if (decimals === void 0) { decimals = 2; } - if (type === void 0) { type = "round"; } - var divider = parseInt(1 + new Array(decimals + 1).join("0"), 10); - return (Math[type](num * divider) / divider).toFixed(decimals); -} -exports.roundToDecimals = roundToDecimals; -function hash2Numbers(x, y) { - var xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - var yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - return (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; -} -exports.hash2Numbers = hash2Numbers; -function hash3Numbers(x, y, z) { - var xFinal = x >= 0 ? x * 2 : -x * 2 - 1; - var yFinal = y >= 0 ? y * 2 : -y * 2 - 1; - var zFinal = z >= 0 ? z * 2 : -z * 2 - 1; - var xyHash = (xFinal + yFinal) * (xFinal + yFinal + 1) / 2 + yFinal; - return (xyHash + zFinal) * (xyHash + zFinal + 1) / 2 + zFinal; -} -exports.hash3Numbers = hash3Numbers; -function clamp(value, min, max) { - return Math.max(min, Math.min(value, max)); -} -exports.clamp = clamp; -function binomialCoefficient(n, k) { - var r = 1; - if (k > n) { - return 0; - } - for (var d = 1; d <= k; d++) { - r *= n; - n--; - r /= d; - } - return r; -} -exports.binomialCoefficient = binomialCoefficient; -function lerp(a, b, val) { - return b * val + (1 - val) * a; -} -exports.lerp = lerp; -function log2i(value) { - var r = 0; - while ((value >>= 1) > 0) { - r++; - } - return r; -} -exports.log2i = log2i; -function lamp(min, max, scale) { - return clamp((max - min) * scale + min, min, max); -} -exports.lamp = lamp; -function randomInt(min, max) { - return Random.randomIntBetween(min, max); -} -exports.randomInt = randomInt; -function random(min, max) { - return Random.randomFloatBetween(min, max); -} -exports.random = random; -function average(args) { - var sum = 0; - for (var _i = 0, args_1 = args; _i < args_1.length; _i++) { - var item = args_1[_i]; - sum += item; - } - return sum / args.length; -} -exports.average = average; -function isPowerOf2(value) { - return (value & value - 1) === 0; -} -exports.isPowerOf2 = isPowerOf2; -function getDiff(num1, num2) { - return Math.abs(num1 - num2); -} -exports.getDiff = getDiff; -var ratio = 180 / Math.PI; -function toDegrees(radians) { - return radians * ratio; -} -exports.toDegrees = toDegrees; -//# sourceMappingURL=math-utils.js.map \ No newline at end of file diff --git a/dist/utils/math-utils.js.map b/dist/utils/math-utils.js.map deleted file mode 100644 index 28837fd6..00000000 --- a/dist/utils/math-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"math-utils.js","sourceRoot":"","sources":["../../src/utils/math-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAyC;AAEzC,SAAgB,GAAG,CAAC,GAAW,EAAE,IAAY;IACzC,IAAM,CAAC,GAAG,gBAAgB,GAAG,GAAG,CAAC;IAEjC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;AACrC,CAAC;AAJD,kBAIC;AAED,SAAgB,eAAe,CAAC,GAAW,EAAE,QAAY,EAAE,IAA0C;IAAxD,yBAAA,EAAA,YAAY;IAAE,qBAAA,EAAA,cAA0C;IACjG,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,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AAC,CAAC;AACtD,CAAC;AAFD,oBAEC;AAQD,SAAgB,SAAS,CAAC,GAAW,EAAE,GAAW;IAC9C,OAAO,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AAFD,8BAEC;AAQD,SAAgB,MAAM,CAAC,GAAW,EAAE,GAAW;IAC3C,OAAO,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC/C,CAAC;AAFD,wBAEC;AAED,SAAgB,OAAO,CAAC,IAAc;IAClC,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,KAAmB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;QAApB,IAAM,IAAI,aAAA;QACX,GAAG,IAAI,IAAI,CAAC;KACf;IAED,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;AAC7B,CAAC;AAPD,0BAOC;AAED,SAAgB,UAAU,CAAC,KAAa;IACpC,OAAO,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC;AAFD,gCAEC;AAED,SAAgB,OAAO,CAAC,IAAY,EAAE,IAAY;IAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;AACjC,CAAC;AAFD,0BAEC;AAED,IAAM,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;AAE5B,SAAgB,SAAS,CAAC,OAAe;IACrC,OAAO,OAAO,GAAG,KAAK,CAAC;AAC3B,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/dist/utils/misc-utils.d.ts b/dist/utils/misc-utils.d.ts deleted file mode 100644 index 701a4cdc..00000000 --- a/dist/utils/misc-utils.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { StringMap } from "gtools/types"; -/** - * Method parse cookies - * @param cookies - cooke to parse - */ -export declare function parseCookies(cookies: string): StringMap; -/** - * Method check if object is in array - * @example - * isIn("a", "b", "d", "a") => true - * isIn("a", ["b", "d", "a"]) => true - * isIn("c", "b", "d", "a") => false - * isIn("c", ["b", "d", "a"]) => false - * isIn("c") => false - * isIn("c", []) => false - * @param obj - searched object - * @param data - array of objects to be compare with searched object - */ -export declare function isIn(obj: T, ...data: unknown[]): boolean; -/** - * Method parse JSON content with comments - * @param content - stringify JSON - */ -export declare function parseJSONWithComments(content: string): T; -export declare function setCookie(name: string, value: string | number | boolean, days: number): string; -export declare function getCookie(cname: string, source?: string): string; -/** - * @example - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test") typeof object - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").name => Gabriel - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").age => "23" - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").email typeof array - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").email[0] => gcsollei - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").email[1] => gabrielcsollei - * parseParams("name=Gabriel&age=23&email=gcsollei&email=gabrielcsollei&email=test").email[2] => test - */ -export declare function parseParams(query?: string, separator?: string, delimiter?: string): T; -/** - * @example - * objectToQueryParams({a: "aa", b: "bb"}) => ?a=aa&b=bb - * objectToQueryParams({a: 21, b: 22}) => ?a=21&b=22 - */ -export declare function objectToQueryParams(obj: StringMap): string; -export declare function serialize(obj: any): string; -export declare function parse(obj: string): T; -export declare function map(source: S, data: { - attrS: keyof S; - attrD?: keyof T; - mapFunction: (src: any) => any; -}[]): T; -//# sourceMappingURL=misc-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/misc-utils.d.ts.map b/dist/utils/misc-utils.d.ts.map deleted file mode 100644 index 6c901871..00000000 --- a/dist/utils/misc-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-utils.d.ts","sourceRoot":"","sources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,CAqB7H"} \ No newline at end of file diff --git a/dist/utils/misc-utils.js b/dist/utils/misc-utils.js deleted file mode 100644 index bafc2235..00000000 --- a/dist/utils/misc-utils.js +++ /dev/null @@ -1,145 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.map = exports.parse = exports.serialize = exports.objectToQueryParams = exports.parseParams = exports.getCookie = exports.setCookie = exports.parseJSONWithComments = exports.isIn = exports.parseCookies = void 0; -function parseCookies(cookies) { - var list = {}; - var data = cookies ? cookies.toString() - .split(";") : []; - data.forEach(function (cookie) { - var parts = cookie.split("="); - var shiftPart = parts.shift(); - if (shiftPart) { - list[shiftPart.trim()] = decodeURI(parts.join("=")); - } - }); - return list; -} -exports.parseCookies = parseCookies; -function isIn(obj) { - var data = []; - for (var _i = 1; _i < arguments.length; _i++) { - data[_i - 1] = arguments[_i]; - } - if (Array.isArray(data[0])) { - if (data[0].indexOf(obj) >= 0) { - return true; - } - } - else if (data.indexOf(obj) >= 0) { - return true; - } - return false; -} -exports.isIn = isIn; -function parseJSONWithComments(content) { - return JSON.parse(content.replace(/\/\/.*\n/g, "")); -} -exports.parseJSONWithComments = parseJSONWithComments; -function setCookie(name, value, days) { - var d = new Date(); - d.setTime(d.getTime() + days * 24 * 60 * 60 * 1000); - var finalCookies = name + "=" + value + ";expires=" + d.toUTCString(); - if (typeof document !== "undefined") { - document.cookie = finalCookies; - } - return name + "=" + value; -} -exports.setCookie = setCookie; -function getCookie(cname, source) { - if (source === void 0) { source = typeof document !== "undefined" ? document.cookie : ""; } - var name = cname + "="; - var ca = source.split(";"); - for (var _i = 0, ca_1 = ca; _i < ca_1.length; _i++) { - var c = ca_1[_i]; - while (c.charAt(0) === " ") { - c = c.substring(1); - } - if (c.indexOf(name) === 0) { - return c.substring(name.length, c.length); - } - } - return ""; -} -exports.getCookie = getCookie; -function parseParams(query, separator, delimiter) { - if (query === void 0) { query = typeof window !== "undefined" ? window.location.search.substring(1) : ""; } - if (separator === void 0) { separator = "&"; } - if (delimiter === void 0) { delimiter = "="; } - var queryString = {}; - var vars = query.split(separator); - for (var _i = 0, vars_1 = vars; _i < vars_1.length; _i++) { - var pair = vars_1[_i]; - var _a = pair.split(delimiter), key = _a[0], value = _a[1]; - if (typeof queryString[key] === "undefined") { - queryString[key] = decodeURIComponent(value); - } - else if (typeof queryString[key] === "string") { - queryString[key] = [queryString[key], decodeURIComponent(value)]; - } - else { - queryString[key].push(decodeURIComponent(value)); - } - } - return queryString; -} -exports.parseParams = parseParams; -function objectToQueryParams(obj) { - var result = ""; - for (var objKey in obj) { - if (obj.hasOwnProperty(objKey)) { - result += "" + (result.length > 0 ? "&" : "?") + objKey + "=" + obj[objKey]; - } - } - return result; -} -exports.objectToQueryParams = objectToQueryParams; -function serialize(obj) { - for (var key in obj) { - if (obj.hasOwnProperty(key) && typeof obj[key] === "function") { - obj[key] = obj[key].toString(); - } - } - return JSON.stringify(obj); -} -exports.serialize = serialize; -function parse(obj) { - var result = JSON.parse(obj); - for (var i in result) { - if (!result.hasOwnProperty(i) || - typeof result[i] !== "string" || !(result[i].indexOf("function (") === 0 || - result[i].match(/^\([_a-zA-Z0-9]+( *, *[_a-zA-Z0-9]+)*\) *=>/))) { - continue; - } - try { - eval("result[i] = " + result[i]); - } - catch (e) { - result[i] = e; - } - } - return result; -} -exports.parse = parse; -function map(source, data) { - var destination = {}; - data.forEach(function (item) { - if (item.mapFunction) { - if (item.attrD) { - destination[item.attrD] = item.mapFunction(source[item.attrS]); - } - else { - destination[item.attrS] = item.mapFunction(source[item.attrS]); - } - return; - } - if (item.attrD) { - destination[item.attrD] = source[item.attrS]; - } - else { - destination[item.attrS] = source[item.attrS]; - } - }); - return destination; -} -exports.map = map; -//# sourceMappingURL=misc-utils.js.map \ No newline at end of file diff --git a/dist/utils/misc-utils.js.map b/dist/utils/misc-utils.js.map deleted file mode 100644 index 07768527..00000000 --- a/dist/utils/misc-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-ut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I,IAAI,CAAC,WAAW,EAAE;YAClB,IAAI,IAAI,CAAC,KAAK,EAAE;gBACZ,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aAClE;iBAAM;gBACH,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aAClE;YAED,OAAO;SACV;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD;aAAM;YACH,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACvB,CAAC;AArBD,kBAqBC"} \ No newline at end of file diff --git a/dist/utils/net-client-utils.d.ts b/dist/utils/net-client-utils.d.ts deleted file mode 100644 index fc2b54ef..00000000 --- a/dist/utils/net-client-utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function uploadImage(): Promise; -export declare function uploadFile(): Promise; -export declare function clientDownloadFile(text: string, name: string): void; -export declare function includeFile(file: string): void; -//# sourceMappingURL=net-client-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/net-client-utils.d.ts.map b/dist/utils/net-client-utils.d.ts.map deleted file mode 100644 index 924e4d0a..00000000 --- a/dist/utils/net-client-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-client-utils.d.ts","sourceRoot":"","sources":["../../src/utils/net-client-utils.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAsB7D;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAmBlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAYnE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAY9C"} \ No newline at end of file diff --git a/dist/utils/net-client-utils.js b/dist/utils/net-client-utils.js deleted file mode 100644 index 9a2637f1..00000000 --- a/dist/utils/net-client-utils.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.includeFile = exports.clientDownloadFile = exports.uploadFile = exports.uploadImage = void 0; -var errors_1 = require("gtools/errors"); -var html_utils_1 = require("./html-utils"); -function uploadImage() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2, new Promise(function (success, reject) { - var element = html_utils_1.CreateElement("input", { - type: "file", - onChange: function (event) { - var reader = new FileReader(); - reader.onload = function () { - success(html_utils_1.CreateImage({ - src: reader.result, - })); - }; - reader.onerror = reject; - reader.readAsDataURL(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - })]; - }); - }); -} -exports.uploadImage = uploadImage; -function uploadFile() { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - return [2, new Promise(function (success) { - var element = html_utils_1.CreateElement("input", { - type: "file", - onChange: function (event) { - var reader = new FileReader(); - reader.onload = function () { - success(reader.result); - }; - reader.readAsText(event.target.files[0]); - }, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); - })]; - }); - }); -} -exports.uploadFile = uploadFile; -function clientDownloadFile(text, name) { - var element = html_utils_1.CreateElement("a", { - href: "data:text/plain;charset=utf-8," + encodeURIComponent(text), - download: name, - }); - element.style.display = "none"; - document.body.appendChild(element); - element.click(); - document.body.removeChild(element); -} -exports.clientDownloadFile = clientDownloadFile; -function includeFile(file) { - if (typeof document === "undefined") { - throw new errors_1.NotBrowserException(); - } - var script = document.createElement("script"); - if (!script) { - return; - } - script.src = file; - script.type = "text/javascript"; - script.defer = true; - document.head.appendChild(script); -} -exports.includeFile = includeFile; -//# sourceMappingURL=net-client-utils.js.map \ No newline at end of file diff --git a/dist/utils/net-client-utils.js.map b/dist/utils/net-client-utils.js.map deleted file mode 100644 index b0649729..00000000 --- a/dist/utils/net-client-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-client-utils.js","sourceRoot":"","sources":["../../src/utils/net-client-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wCAAoD;AACpD,2CAA0D;AAE1D,SAAsB,WAAW;;;YAC7B,WAAO,IAAI,OAAO,CAAmB,UAAC,OAAO,EAAE,MAAM;oBACjD,IAAM,OAAO,GAAW,0BAAa,CAAC,OAAO,EAAE;wBAC3C,IAAI,EAAM,MAAM;wBAChB,QAAQ,EAAE,UAAC,KAAY;4BACnB,IAAM,MAAM,GAAK,IAAI,UAAU,EAAE,CAAC;4BAClC,MAAM,CAAC,MAAM,GAAI;gCACb,OAAO,CAAC,wBAAW,CAAC;oCAChB,GAAG,EAAE,MAAM,CAAC,MAAgB;iCAC/B,CAAC,CAAC,CAAC;4BACR,CAAC,CAAC;4BACF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;4BACxB,MAAM,CAAC,aAAa,CAAE,KAAK,CAAC,MAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;wBACzD,CAAC;qBACJ,CAAC,CAAC;oBACH,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;oBAC/B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;oBAEnC,OAAO,CAAC,KAAK,EAAE,CAAC;oBAEhB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACvC,CAAC,CAAC,EAAC;;;CACN;AAtBD,kCAsBC;AAED,SAAsB,UAAU;;;YAC5B,WAAO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C;KACnC;IACD,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,IAAI,CAAC,MAAM,EAAE;QACT,OAAO;KACV;IACD,MAAM,CAAC,GAAG,GAAK,IAAI,CAAC;IACpB,MAAM,CAAC,IAAI,GAAI,iBAAiB,CAAC;IACjC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAZD,kCAYC"} \ No newline at end of file diff --git a/dist/utils/net-server-utils.d.ts b/dist/utils/net-server-utils.d.ts deleted file mode 100644 index 9686ec66..00000000 --- a/dist/utils/net-server-utils.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { PathLike } from "fs"; -export declare function serverDownloadFile(url: string, fileName: string): void; -export declare function getPublicIp(): Promise; -export declare function getContent(uri: PathLike): Promise; -export declare function getContentFromUrl(url: URL): Promise; -export declare function getContentFromFile(path: PathLike, encoding?: "utf8"): Promise; -/** - * @deprecated use {@link getContentFromUrl} instead - * @param url - resource url - */ -export declare function getContentFrom(url: string): Promise; -//# sourceMappingURL=net-server-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/net-server-utils.d.ts.map b/dist/utils/net-server-utils.d.ts.map deleted file mode 100644 index 1d794fea..00000000 --- a/dist/utils/net-server-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-server-utils.d.ts","sourceRoot":"","sources":["../../src/utils/net-server-utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAqB,QAAQ,EAAY,MAAM,IAAI,CAAC;AAI3D,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGtE;AAED,wBAAgB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAc7C;AAiCD,wBAAgB,UAAU,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAQzD;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAS3D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAE,MAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAU7F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE3D"} \ No newline at end of file diff --git a/dist/utils/net-server-utils.js b/dist/utils/net-server-utils.js deleted file mode 100644 index 31aafaf2..00000000 --- a/dist/utils/net-server-utils.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getContentFrom = exports.getContentFromFile = exports.getContentFromUrl = exports.getContent = exports.getPublicIp = exports.serverDownloadFile = void 0; -var fs_1 = require("fs"); -var http_1 = require("http"); -var https_1 = require("https"); -function serverDownloadFile(url, fileName) { - var file = fs_1.createWriteStream(fileName); - http_1.get(url, function (response) { return response.pipe(file); }); -} -exports.serverDownloadFile = serverDownloadFile; -function getPublicIp() { - var options = { - host: "ipv4bot.whatismyipaddress.com", - port: 80, - path: "/", - }; - return new Promise(function (success, reject) { - http_1.get(options, function (res) { - res.on("data", function (chunk) { - success(String(chunk)); - }); - }).on("error", reject); - }); -} -exports.getPublicIp = getPublicIp; -function tryParseUrl(url) { - if (url instanceof URL) { - return url; - } - try { - return new URL(url.toString()); - } - catch (e) { - return null; - } -} -function processClientRequest(url, req) { - return new Promise(function (success, reject) { - var request = req(url, function (res) { - var data = ""; - res.on("data", function (chunk) { - data += chunk; - }); - res.on("end", function () { - success(data); - }); - }); - request.on("error", function (e) { - reject(e); - }); - request.end(); - }); -} -function getContent(uri) { - var url = tryParseUrl(uri); - if (url) { - return getContentFromUrl(url); - } - return getContentFromFile(uri); -} -exports.getContent = getContent; -function getContentFromUrl(url) { - if (url.protocol === "http") { - return processClientRequest(url.href, http_1.request); - } - if (url.protocol === "https") { - return processClientRequest(url.href, https_1.request); - } - throw new Error("Unknown protocol " + url.protocol); -} -exports.getContentFromUrl = getContentFromUrl; -function getContentFromFile(path, encoding) { - if (encoding === void 0) { encoding = "utf8"; } - return new Promise(function (success, reject) { - fs_1.readFile(path, { encoding: encoding }, function (error, data) { - if (error) { - return reject(error); - } - success(data); - }); - }); -} -exports.getContentFromFile = getContentFromFile; -function getContentFrom(url) { - return getContent(url); -} -exports.getContentFrom = getContentFrom; -//# sourceMappingURL=net-server-utils.js.map \ No newline at end of file diff --git a/dist/utils/net-server-utils.js.map b/dist/utils/net-server-utils.js.map deleted file mode 100644 index fdf7f5c3..00000000 --- a/dist/utils/net-server-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"net-server-utils.js","sourceRoot":"","sources":["../../src/utils/net-server-utils.ts"],"names":[],"mappings":";;;AAAA,yBAA2D;AAC3D,6BAA+E;AAC/E,+BAAgD;AAEhD,SAAgB,kBAAkB,CAAC,GAAW,EAAE,QAAgB;IAC5D,IAAM,IAAI,GAAG,sBAAiB,CAAC,QAAQ,CAAC,CAAC;IACzC,UAAO,CAAC,GAAG,EAAE,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAnB,CAAmB,CAAC,CAAC;AACpD,CAAC;AAHD,gDAGC;AAED,SAAgB,WAAW;IACvB,IAAM,OAAO,GAAG;QACZ,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,GAAG;KACZ,CAAC;IAEF,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QAC/B,UAAO,CAAC,OAAO,EAAE,UAAC,GAAG;YACjB,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,UAAC,KAAK;gBACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACP,CAA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GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE;QACzB,OAAO,oBAAoB,CAAC,GAAG,CAAC,IAAI,EAAE,cAAW,CAAC,CAAC;KACtD;IACD,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,EAAE;QAC1B,OAAO,oBAAoB,CAAC,GAAG,CAAC,IAAI,EAAE,eAAY,CAAC,CAAC;KACvD;IAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;AACxD,CAAC;AATD,8CASC;AAED,SAAgB,kBAAkB,CAAC,IAAc,EAAE,QAAyB;IAAzB,yBAAA,EAAA,iBAAyB;IACxE,OAAO,IAAI,OAAO,CAAS,UAAC,OAAO,EAAE,MAAM;QACvC,aAAQ,CAAC,IAAI,EAAE,EAAC,QAAQ,UAAA,EAAC,EAAE,UAAC,KAAmC,EAAE,IAAI;YACjE,IAAI,KAAK,EAAE;gBACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;aACxB;YAED,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AAVD,gDAUC;AAMD,SAAgB,cAAc,CAAC,GAAW;IACtC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AAFD,wCAEC"} \ No newline at end of file diff --git a/dist/utils/object-utils.d.ts b/dist/utils/object-utils.d.ts deleted file mode 100644 index 014b2a3f..00000000 --- a/dist/utils/object-utils.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { ObjectEntry } from "gtools/types"; -export declare function without>(obj: T, items: (keyof T)[]): Omit; -export declare function deepEqual(objA: T, objB: T): boolean; -export declare function deepCopy(source: T): T; -export declare function getOrSetProperty(obj: S, index: T, value: S[T]): S[T]; -export declare function getObjectEntries>(obj: T): ObjectEntry[]; -export declare function getNestedProperty(object: any, propertyPath: string | string[], separator?: string): any; -export declare function setNestedProperty(item: any, key: string | string[], value: T): void; -export declare function createMergedObject(source: T, ...updates: Partial[]): T; -export declare function roughSizeOfObject(object: T): number; -/** - * Freeze object recursively - * @param o - object to be freeze - */ -export declare function deepFreeze(o: T): T; -/** - * @deprecated use {@link Object.keys(object).length} - */ -export declare function size | unknown[])>(object: T): number; -export declare function isPlain>(object: T): boolean; -export declare function toBoolean(value: T): boolean; -export declare function isNotInstance>(value: T): boolean; -/** - * - * @param list - data-structures to flat - * @param propertyPath - path to property - * @param separator - separator in propertyPath - * @param skipUndefined - true if undefined should be skipped - * - * @example - * ``` - * const items = [ - * { - * person: { - * name: "Gabriel" - * } - * }, - * { - * person: { - * name: "Ella" - * } - * }, - * { - * person: { - * name: "Gabriel" - * } - * }, - * { - * person: { - * name: "Joe" - * } - * } - * ] - * - * console.log(makeFlat(items), "person.name"); - * // ["Gabriel", "Ella", "Gabriel", "Joe"] - * console.log(makeFlat(items), "person_name", "_"); - * // ["Gabriel", "Ella", "Gabriel", "Joe"] - * console.log(makeFlat(items), "person.name", ".", true); - * // ["Gabriel", "Ella", "Joe"] - * ``` - */ -export declare function makeFlat(list: T[], propertyPath: string, separator?: string, skipUndefined?: boolean): T[]; -//# sourceMappingURL=object-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/object-utils.d.ts.map b/dist/utils/object-utils.d.ts.map deleted file mode 100644 index 3e4c6a0e..00000000 --- a/dist/utils/object-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-utils.d.ts","sourceRoot":"","sources":["../../src/utils/object-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAOnG;AAED,wBAAgB,SAAS,CAAC,CAAC,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AC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAQ7E;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAE9C;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAElF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,SAAM,EAAE,aAAa,UAAQ,GAAG,CAAC,EAAE,CAYxG"} \ No newline at end of file diff --git a/dist/utils/object-utils.js b/dist/utils/object-utils.js deleted file mode 100644 index 3b40a0a7..00000000 --- a/dist/utils/object-utils.js +++ /dev/null @@ -1,208 +0,0 @@ -"use strict"; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.makeFlat = exports.isNotInstance = exports.toBoolean = exports.isPlain = exports.size = exports.deepFreeze = exports.roughSizeOfObject = exports.createMergedObject = exports.setNestedProperty = exports.getNestedProperty = exports.getObjectEntries = exports.getOrSetProperty = exports.deepCopy = exports.deepEqual = exports.without = void 0; -function without(obj, items) { - return getObjectEntries(obj).filter(function (entry) { return !items.includes(entry.key); }) - .reduce(function (prev, entry) { - prev[entry.key] = entry.value; - return prev; - }, {}); -} -exports.without = without; -function deepEqual(objA, objB) { - var _a, _b, _c, _d; - if (typeof objA !== typeof objB) { - return false; - } - if (typeof objA === "object") { - if (!objA || !objB) { - return objA === objB; - } - if (((_b = (_a = objA) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== ((_d = (_c = objB) === null || _c === void 0 ? void 0 : _c.constructor) === null || _d === void 0 ? void 0 : _d.name)) { - return false; - } - var keys = Object.keys(objA); - if (keys.length !== Object.keys(objB).length) { - return false; - } - for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { - var key = keys_1[_i]; - if (!deepEqual(objA[key], objB[key])) { - return false; - } - } - return true; - } - if (typeof objA === "number" && typeof objB === "number") { - if (isNaN(+objA) && isNaN(+objB)) { - return true; - } - } - return objA === objB; -} -exports.deepEqual = deepEqual; -function deepCopy(source) { - var _a, _b; - if (typeof source === "object") { - if (Array.isArray(source)) { - return source.map(function (e) { return deepCopy(e); }); - } - if (((_b = (_a = source) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== "Object") { - throw new Error("This method cannot copy class instances"); - } - var result_1 = {}; - Object.entries(source).forEach(function (_a) { - var key = _a[0], value = _a[1]; - result_1[key] = deepCopy(value); - }); - return result_1; - } - if (typeof source === "function") { - throw new Error("This method cannot copy functions"); - } - return source; -} -exports.deepCopy = deepCopy; -function getOrSetProperty(obj, index, value) { - var result = obj[index]; - if (result) { - return result; - } - obj[index] = value; - return value; -} -exports.getOrSetProperty = getOrSetProperty; -function getObjectEntries(obj) { - var result = []; - for (var objKey in obj) { - if (!obj.hasOwnProperty(objKey)) { - continue; - } - result.push({ - key: objKey, - value: obj[objKey], - }); - } - return result; -} -exports.getObjectEntries = getObjectEntries; -function getNestedProperty(object, propertyPath, separator) { - if (separator === void 0) { separator = "."; } - if (typeof propertyPath === "string") { - return getNestedProperty(object, propertyPath.split(separator)); - } - return propertyPath.reduce(function (currentNestedPropertyValue, propertyName) { return currentNestedPropertyValue ? currentNestedPropertyValue[propertyName] : undefined; }, object); -} -exports.getNestedProperty = getNestedProperty; -function setNestedProperty(item, key, value) { - if (typeof key === "string") { - return setNestedProperty(item, key.split("."), value); - } - var obj = item; - for (var i = 0; i < key.length - 1; i++) { - obj = obj[key[i]]; - } - obj[key[key.length - 1]] = value; -} -exports.setNestedProperty = setNestedProperty; -function createMergedObject(source) { - var updates = []; - for (var _i = 1; _i < arguments.length; _i++) { - updates[_i - 1] = arguments[_i]; - } - return Object.assign.apply(Object, __spreadArrays([{}, source], updates)); -} -exports.createMergedObject = createMergedObject; -function roughSizeOfObject(object) { - var objectList = []; - var stack = [object]; - var bytes = 0; - while (stack.length) { - var value = stack.pop(); - if (typeof value === "boolean") { - bytes += 4; - } - else if (typeof value === "string") { - bytes += value.length << 1; - } - else if (typeof value === "number") { - bytes += 8; - } - else if (typeof value === "object" && objectList.indexOf(value) === -1) { - objectList.push(value); - for (var key in value) { - if (value.hasOwnProperty(key)) { - stack.push(value[key]); - } - } - } - } - return bytes; -} -exports.roughSizeOfObject = roughSizeOfObject; -function deepFreeze(o) { - Object.freeze(o); - var oIsFunction = typeof o === "function"; - var hasOwnProp = Object.prototype.hasOwnProperty; - var item = null; - Object.getOwnPropertyNames(o).forEach(function (prop) { - item = o[prop]; - if (hasOwnProp.call(o, prop) && - (oIsFunction ? prop !== "caller" && prop !== "callee" && prop !== "arguments" : true) && - item !== null && (typeof item === "object" || typeof item === "function") - && !Object.isFrozen(item)) { - deepFreeze(item); - } - }); - return o; -} -exports.deepFreeze = deepFreeze; -function size(object) { - var result = 0; - for (var i in object) { - if (object.hasOwnProperty(i)) { - result++; - } - } - return result; -} -exports.size = size; -function isPlain(object) { - for (var index in object) { - if (object.hasOwnProperty(index) && typeof object[index] === "object") { - return false; - } - } - return true; -} -exports.isPlain = isPlain; -function toBoolean(value) { - return value !== null && "" + value !== "false"; -} -exports.toBoolean = toBoolean; -function isNotInstance(value) { - return toBoolean(value) && value.constructor.name === "Object"; -} -exports.isNotInstance = isNotInstance; -function makeFlat(list, propertyPath, separator, skipUndefined) { - if (separator === void 0) { separator = "."; } - if (skipUndefined === void 0) { skipUndefined = false; } - var propertyList = propertyPath.indexOf(separator) >= 0 ? propertyPath.split(separator) : [propertyPath]; - return list.reduce(function (acc, curr) { - var value = propertyList.reduce(function (propVal, propertyName) { return propVal ? propVal[propertyName] : undefined; }, curr); - if (typeof value === "undefined" && skipUndefined) { - return acc; - } - acc.push(value); - return acc; - }, []); -} -exports.makeFlat = makeFlat; -//# sourceMappingURL=object-utils.js.map \ No newline at end of file diff --git a/dist/utils/object-utils.js.map b/dist/utils/object-utils.js.map deleted file mode 100644 index dcdba780..00000000 --- a/dist/utils/object-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-utils.js","sourceRoot":"","sources":["../../src/utils/object-utils.ts"],"names":[],"mappings":";;;;;;;;;;AAEA,SAAgB,OAAO,CAAoC,GAAM,EAAE,KAAkB;IACjF,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAA1B,CAA0B,CAAC;SAC7C,MAAM,CAAC,UAAC,IAAI,EAAE,KAAK;QAChB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAE9B,OAAO,IAAI,CAAC;IAChB,CAAC,EAAE,EAAO,CAAC,CAAC;AAC5C,CAAC;AAPD,0BAOC;AAED,SAAgB,SAAS,CAAI,IAAO,EAAE,IAAO;;IACzC,IAAI,OAAO,IAAI,KAAK,OAAO,IAAI,EAAE;QAC7B,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC1B,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;YAChB,OAAO,IAAI,KAAK,IAAI,CAAC;SACxB;QACD,IAAI,aAAC,IAAY,0CAAE,WAAW,0CAAE,IAAI,mBAAM,IAAY,0CAAE,WAAW,0CAAE,IAAI,CAAA,EAAE;YACvE,OAAO,KAAK,CAAC;SAChB;Q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;QACzB,IAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,UAAC,OAAY,EAAE,YAAY,IAAK,OAAA,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,EAA3C,CAA2C,EAAE,IAAI,CAAC,CAAC;QACrH,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,aAAa,EAAE;YAC/C,OAAO,GAAG,CAAC;SACd;QACD,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEhB,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAS,CAAC,CAAC;AAClB,CAAC;AAZD,4BAYC"} \ No newline at end of file diff --git a/dist/utils/parser-utils.d.ts b/dist/utils/parser-utils.d.ts deleted file mode 100644 index 2005bb70..00000000 --- a/dist/utils/parser-utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function parseBooleanValue(key: string): boolean | undefined; -//# sourceMappingURL=parser-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/parser-utils.d.ts.map b/dist/utils/parser-utils.d.ts.map deleted file mode 100644 index a9cae98f..00000000 --- a/dist/utils/parser-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-utils.d.ts","sourceRoot":"","sources":["../../src/utils/parser-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAOlE"} \ No newline at end of file diff --git a/dist/utils/parser-utils.js b/dist/utils/parser-utils.js deleted file mode 100644 index 645696be..00000000 --- a/dist/utils/parser-utils.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseBooleanValue = void 0; -function parseBooleanValue(key) { - if (key.match(/(1|true|yes|ano|áno)/i)) { - return true; - } - if (key.match(/(0|false|no|nie)/i)) { - return false; - } -} -exports.parseBooleanValue = parseBooleanValue; -//# sourceMappingURL=parser-utils.js.map \ No newline at end of file diff --git a/dist/utils/parser-utils.js.map b/dist/utils/parser-utils.js.map deleted file mode 100644 index 3fcd9505..00000000 --- a/dist/utils/parser-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-utils.js","sourceRoot":"","sources":["../../src/utils/parser-utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB,CAAC,GAAW;IACzC,IAAI,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC;KACf;IACD,IAAI,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KAChB;AACL,CAAC;AAPD,8CAOC"} \ No newline at end of file diff --git a/dist/utils/process-utils.d.ts b/dist/utils/process-utils.d.ts deleted file mode 100644 index bc24ed39..00000000 --- a/dist/utils/process-utils.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -export interface ProcessData { - memoryUsage: NodeJS.MemoryUsage; - cpuUsage: NodeJS.CpuUsage; - upTime: number; - version: string; - platform: NodeJS.Platform; -} -export declare function isTest(): boolean; -export declare function isProd(): boolean; -export declare function isDev(): boolean; -export declare function setEnvironment(type: "test" | "production" | "development"): void; -export declare function getProcessData(): ProcessData; -export declare function setDefaultEnvironment(): void; -//# sourceMappingURL=process-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/process-utils.d.ts.map b/dist/utils/process-utils.d.ts.map deleted file mode 100644 index 0528c270..00000000 --- a/dist/utils/process-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"process-utils.d.ts","sourceRoot":"","sources":["../../src/utils/process-utils.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;CAC7B;AAED,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED,wBAAgB,MAAM,IAAI,OAAO,CAEhC;AAED,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAGD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,GAAG,IAAI,CAEhF;AAED,wBAAgB,cAAc,IAAI,WAAW,CAQ5C;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C"} \ No newline at end of file diff --git a/dist/utils/process-utils.js b/dist/utils/process-utils.js deleted file mode 100644 index 475209e8..00000000 --- a/dist/utils/process-utils.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setDefaultEnvironment = exports.getProcessData = exports.setEnvironment = exports.isDev = exports.isProd = exports.isTest = void 0; -function isTest() { - return process.env.NODE_ENV === "test"; -} -exports.isTest = isTest; -function isProd() { - return process.env.NODE_ENV === "production"; -} -exports.isProd = isProd; -function isDev() { - return process.env.NODE_ENV === "development" || !process.env.NODE_ENV; -} -exports.isDev = isDev; -function setEnvironment(type) { -} -exports.setEnvironment = setEnvironment; -function getProcessData() { - return { - memoryUsage: process.memoryUsage(), - cpuUsage: process.cpuUsage(), - upTime: process.uptime(), - version: process.version, - platform: process.platform, - }; -} -exports.getProcessData = getProcessData; -function setDefaultEnvironment() { - if (!process.env.NODE_ENV) { - setEnvironment("development"); - } -} -exports.setDefaultEnvironment = setDefaultEnvironment; -//# sourceMappingURL=process-utils.js.map \ No newline at end of file diff --git a/dist/utils/process-utils.js.map b/dist/utils/process-utils.js.map deleted file mode 100644 index 402d6ead..00000000 --- a/dist/utils/process-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"process-utils.js","sourceRoot":"","sources":["../../src/utils/process-utils.ts"],"names":[],"mappings":";;;AAQA,SAAgB,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC;AAC3C,CAAC;AAFD,wBAEC;AAED,SAAgB,MAAM;IAClB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;AACjD,CAAC;AAFD,wBAEC;AAED,SAAgB,KAAK;IACjB,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3E,CAAC;AAFD,sBAEC;AAGD,SAAgB,cAAc,CAAC,IAA2C;AAE1E,CAAC;AAFD,wCAEC;AAED,SAAgB,cAAc;IAC1B,OAAO;QACH,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;QAClC,QAAQ,EAAK,OAAO,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAO,OAAO,CAAC,MAAM,EAAE;QAC7B,OAAO,EAAM,OAAO,CAAC,OAAO;QAC5B,QAAQ,EAAK,OAAO,CAAC,QAAQ;KAChC,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,qBAAqB;IACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACvB,cAAc,CAAC,aAAa,CAAC,CAAC;KACjC;AACL,CAAC;AAJD,sDAIC"} \ No newline at end of file diff --git a/dist/utils/random-utils.d.ts b/dist/utils/random-utils.d.ts deleted file mode 100644 index 37d0972a..00000000 --- a/dist/utils/random-utils.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare function randomFloatBetween(min: number, max: number): number; -export declare function randomIntBetween(min: number, max: number): number; -export declare function randomBoolean(): boolean; -export declare function randomItem(...items: T[]): T; -//# sourceMappingURL=random-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/random-utils.d.ts.map b/dist/utils/random-utils.d.ts.map deleted file mode 100644 index 91d8a34e..00000000 --- a/dist/utils/random-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"random-utils.d.ts","sourceRoot":"","sources":["../../src/utils/random-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAE9C"} \ No newline at end of file diff --git a/dist/utils/random-utils.js b/dist/utils/random-utils.js deleted file mode 100644 index c0ae924e..00000000 --- a/dist/utils/random-utils.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomItem = exports.randomBoolean = exports.randomIntBetween = exports.randomFloatBetween = void 0; -function randomFloatBetween(min, max) { - return min + Math.random() * (max - min); -} -exports.randomFloatBetween = randomFloatBetween; -function randomIntBetween(min, max) { - return Math.round(randomFloatBetween(min, max)); -} -exports.randomIntBetween = randomIntBetween; -function randomBoolean() { - return Math.random() < 0.5; -} -exports.randomBoolean = randomBoolean; -function randomItem() { - var items = []; - for (var _i = 0; _i < arguments.length; _i++) { - items[_i] = arguments[_i]; - } - return items[Math.floor(Math.random() * items.length)]; -} -exports.randomItem = randomItem; -//# sourceMappingURL=random-utils.js.map \ No newline at end of file diff --git a/dist/utils/random-utils.js.map b/dist/utils/random-utils.js.map deleted file mode 100644 index d4309cf1..00000000 --- a/dist/utils/random-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"random-utils.js","sourceRoot":"","sources":["../../src/utils/random-utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAAC,GAAW,EAAE,GAAW;IACvD,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AAC7C,CAAC;AAFD,gDAEC;AAED,SAAgB,gBAAgB,CAAC,GAAW,EAAE,GAAW;IACrD,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACpD,CAAC;AAFD,4CAEC;AAED,SAAgB,aAAa;IACzB,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAC/B,CAAC;AAFD,sCAEC;AAED,SAAgB,UAAU;IAAI,eAAa;SAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;QAAb,0BAAa;;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3D,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/dist/utils/reflection-utils.d.ts b/dist/utils/reflection-utils.d.ts deleted file mode 100644 index 687d1e5d..00000000 --- a/dist/utils/reflection-utils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Create class by name and data-structures of parameters - * - * @param name - class name - * @param args - constructor parameter - * @returns created object - */ -export declare function createClass(name: any, args: any[]): any; -export declare function createInstance T>(type: S, ...params: ConstructorParameters): T; -export declare function callFirstFunction(...functions: any[]): Promise; -//# sourceMappingURL=reflection-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/reflection-utils.d.ts.map b/dist/utils/reflection-utils.d.ts.map deleted file mode 100644 index adf9b95a..00000000 --- a/dist/utils/reflection-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reflection-utils.d.ts","sourceRoot":"","sources":["../../src/utils/reflection-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAKvD;AAGD,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAG,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,CAAC,CAEvH;AAED,wBAAsB,iBAAiB,CAAC,GAAG,SAAS,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAOzE"} \ No newline at end of file diff --git a/dist/utils/reflection-utils.js b/dist/utils/reflection-utils.js deleted file mode 100644 index 70217806..00000000 --- a/dist/utils/reflection-utils.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callFirstFunction = exports.createInstance = exports.createClass = void 0; -function createClass(name, args) { - var temp = Object.create(name.prototype); - name.apply(temp, args); - return temp; -} -exports.createClass = createClass; -function createInstance(type) { - var params = []; - for (var _i = 1; _i < arguments.length; _i++) { - params[_i - 1] = arguments[_i]; - } - return new (type.bind.apply(type, __spreadArrays([void 0], params)))(); -} -exports.createInstance = createInstance; -function callFirstFunction() { - var functions = []; - for (var _i = 0; _i < arguments.length; _i++) { - functions[_i] = arguments[_i]; - } - return __awaiter(this, void 0, void 0, function () { - var _a, functions_1, func; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _a = 0, functions_1 = functions; - _b.label = 1; - case 1: - if (!(_a < functions_1.length)) return [3, 4]; - func = functions_1[_a]; - if (!(typeof func === "function")) return [3, 3]; - return [4, func()]; - case 2: return [2, _b.sent()]; - case 3: - _a++; - return [3, 1]; - case 4: return [2]; - } - }); - }); -} -exports.callFirstFunction = callFirstFunction; -//# sourceMappingURL=reflection-utils.js.map \ No newline at end of file diff --git a/dist/utils/reflection-utils.js.map b/dist/utils/reflection-utils.js.map deleted file mode 100644 index 40139309..00000000 --- a/dist/utils/reflection-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reflection-utils.js","sourceRoot":"","sources":["../../src/utils/reflection-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAgB,WAAW,CAAC,IAAS,EAAE,IAAW;IAC9C,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAEvB,OAAO,IAAI,CAAC;AAChB,CAAC;AALD,kCAKC;AAGD,SAAgB,cAAc,CAA0C,IAAO;IAAE,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,+BAAmC;;IAChH,YAAW,IAAI,YAAJ,IAAI,2BAAI,MAAM,MAAE;AAC/B,CAAC;AAFD,wCAEC;AAED,SAAsB,iBAAiB;IAAC,mBAAmB;SAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;QAAnB,8BAAmB;;;;;;;0BAC3B,EAAT,uBAAS;;;yBAAT,CAAA,uBAAS,CAAA;oBAAjB,IAAI;yBACP,CAAA,OAAO,IAAI,KAAK,UAAU,CAAA,EAA1B,cAA0B;oBAEnB,WAAM,IAAI,EAAE,EAAA;wBAAnB,WAAO,SAAY,EAAC;;oBAHT,IAAS,CAAA;;;;;;CAM/B;AAPD,8CAOC"} \ No newline at end of file diff --git a/dist/utils/sorted-array-utils.d.ts b/dist/utils/sorted-array-utils.d.ts deleted file mode 100644 index 73a2a479..00000000 --- a/dist/utils/sorted-array-utils.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * If return positive value so this number is index of the element - * but if it returns negative value than you can use ~result to determine index of new element - * @example - * binarySearch(["b", "d"], "a", (a, b) => a.localeCompare(b)) => -1 - * binarySearch(["b", "d"], "b", (a, b) => a.localeCompare(b)) => 0 - * binarySearch(["b", "d"], "c", (a, b) => a.localeCompare(b)) => -2 - * binarySearch(["b", "d"], "d", (a, b) => a.localeCompare(b)) => 1 - * binarySearch(["b", "d"], "e", (a, b) => a.localeCompare(b)) => -3 - */ -export declare function binarySearch(array: readonly T[], item: T, comparator: (a: T, b: T) => number): number; -/** - * sortedFind(["a", "c"], "a", (a, b) => a.localeCompare(b)) => a - * sortedFind(["a", "c"], "b", (a, b) => a.localeCompare(b)) => undefined - * sortedFind(["a", "c"], "c", (a, b) => a.localeCompare(b)) => c - */ -export declare function sortedFind(array: readonly T[], el: T, compare: (left: T, right: T) => number): T | undefined; -export declare function sortedInsert(array: T[], value: T, compare: (left: T, right: T) => number): number; -export declare function sortedInsertAll(array: T[], values: T[], compare: (left: T, right: T) => number, skipDuplicates?: boolean): number; -export declare function sortedRemove(array: T[], value: T, compare: (left: T, right: T) => number): T | undefined; -/** - * Picks values from the 'array' that are present in 'values'. - * Both 'array' and 'values' are expected to be sorted. - * @example - * sortedPickAll(["a", "b", "c"], ["b", "c", "d"], (a, b) => a.localeCompare(b)) ==> ["b", "c"] - */ -export declare function sortedPickAll(array: readonly T[], values: readonly T[], compare: (left: T, right: T) => number): T[]; -/** - * Picks values from the 'array' that are NOT present in 'values'. - * Both 'array' and 'values' are expected to be sorted. - * @example - * SortedDifference(["a", "b", "c"], ["b", "c", "d"], (a, b) => a.localeCompare(b)) ==> ["a"] - */ -export declare function SortedDifference(array: readonly T[], values: readonly T[], compare: (left: T, right: T) => number): T[]; -export declare function SortedPartition(array: readonly T[], values: readonly T[], compare: (left: T, right: T) => number): [T[], T[]]; -/** - * Merges values from the 'array' and 'values' into one sorted array. - * Both 'array' and 'values' are expected to be sorted. - * @example - * sortedMerge(["a", "c", "e"], ["b", "d", "f"], (a, b) => a.localeCompare(b)) ==> ["a", "b", "c", "d", "e"] - */ -export declare function sortedMerge(array: readonly T[], values: readonly T[], compare: (left: T, right: T) => number): T[]; -//# sourceMappingURL=sorted-array-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/sorted-array-utils.d.ts.map b/dist/utils/sorted-array-utils.d.ts.map deleted file mode 100644 index cf0e5bad..00000000 --- a/dist/utils/sorted-array-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-utils.d.ts","sourceRoot":"","sources":["../../src/utils/sorted-array-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAkBxG;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EACxB,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,EAAE,EAAE,CAAC,EACL,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GACvC,CAAC,GAAG,SAAS,CAOf;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAMpG;AAID,wBAAgB,eAAe,CAAC,CAAC,EAC7B,KAAK,EAAE,CAAC,EAAE,EACV,MAAM,EAAE,CAAC,EAAE,EACX,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,EACtC,cAAc,UAAQ,GACvB,MAAM,CAcR;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,CAAC,GAAG,SAAS,CAY3G;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC3B,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GACvC,CAAC,EAAE,CAoBL;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GACvC,CAAC,EAAE,CAyBL;AAKD,wBAAgB,eAAe,CAAC,CAAC,EAC7B,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GACvC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CA2BZ;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EACzB,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,MAAM,GACvC,CAAC,EAAE,CAgCL"} \ No newline at end of file diff --git a/dist/utils/sorted-array-utils.js b/dist/utils/sorted-array-utils.js deleted file mode 100644 index e4f79770..00000000 --- a/dist/utils/sorted-array-utils.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sortedMerge = exports.SortedPartition = exports.SortedDifference = exports.sortedPickAll = exports.sortedRemove = exports.sortedInsertAll = exports.sortedInsert = exports.sortedFind = exports.binarySearch = void 0; -function binarySearch(array, item, comparator) { - var m = 0; - var n = array.length - 1; - while (m <= n) { - var k = (n + m) >> 1; - var cmp = comparator(item, array[k]); - if (cmp > 0) { - m = k + 1; - } - else if (cmp < 0) { - n = k - 1; - } - else { - return k; - } - } - return ~m; -} -exports.binarySearch = binarySearch; -function sortedFind(array, el, compare) { - var idx = binarySearch(array, el, compare); - if (idx < 0) { - return; - } - return array[idx]; -} -exports.sortedFind = sortedFind; -function sortedInsert(array, value, compare) { - var idx = binarySearch(array, value, compare); - var newIdx = idx < 0 ? ~idx : idx; - array.splice(newIdx, 0, value); - return newIdx; -} -exports.sortedInsert = sortedInsert; -function sortedInsertAll(array, values, compare, skipDuplicates) { - if (skipDuplicates === void 0) { skipDuplicates = false; } - var actualIndex = 0; - for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { - var value = values_1[_i]; - actualIndex = binarySearch(array.slice(actualIndex), value, compare); - if (skipDuplicates && actualIndex >= 0) { - break; - } - if (actualIndex < 0) { - actualIndex = ~actualIndex; - } - array.splice(actualIndex, 0, value); - } - return values.length; -} -exports.sortedInsertAll = sortedInsertAll; -function sortedRemove(array, value, compare) { - var idx = binarySearch(array, value, compare); - if (idx < 0) { - return; - } - var r = array[idx]; - array.splice(idx, 1); - return r; -} -exports.sortedRemove = sortedRemove; -function sortedPickAll(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r.push(f); - ++i1; - ++i2; - } - } - return r; -} -exports.sortedPickAll = sortedPickAll; -function SortedDifference(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - r.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - ++i1; - ++i2; - } - } - while (i2 < array.length) { - var f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -exports.SortedDifference = SortedDifference; -function SortedPartition(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r1 = []; - var r2 = []; - while (i1 < values.length && i2 < array.length) { - var id = values[i1]; - var f = array[i2]; - var cmp = compare(id, f); - if (cmp > 0) { - r2.push(f); - ++i2; - } - else if (cmp < 0) { - ++i1; - } - else { - r1.push(f); - ++i1; - ++i2; - } - } - while (i2 < array.length) { - var f = array[i2]; - r2.push(f); - ++i2; - } - return [r1, r2]; -} -exports.SortedPartition = SortedPartition; -function sortedMerge(array, values, compare) { - var i1 = 0; - var i2 = 0; - var r = []; - while (i1 < values.length && i2 < array.length) { - var f1 = values[i1]; - var f2 = array[i2]; - var cmp = compare(f1, f2); - if (cmp > 0) { - r.push(f2); - ++i2; - } - else if (cmp < 0) { - r.push(f1); - ++i1; - } - else { - r.push(f1); - ++i1; - ++i2; - } - } - while (i1 < values.length) { - var f = values[i1]; - r.push(f); - ++i1; - } - while (i2 < array.length) { - var f = array[i2]; - r.push(f); - ++i2; - } - return r; -} -exports.sortedMerge = sortedMerge; -//# sourceMappingURL=sorted-array-utils.js.map \ No newline at end of file diff --git a/dist/utils/sorted-array-utils.js.map b/dist/utils/sorted-array-utils.js.map deleted file mode 100644 index a256539d..00000000 --- a/dist/utils/sorted-array-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sorted-array-utils.js","sourceRoot":"","sources":["../../src/utils/sorted-array-utils.ts"],"names":[],"mappings":";;;AAUA,SAAgB,YAAY,CAAI,KAAmB,EAAE,IAAO,EAAE,UAAkC;IAC5F,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzB,OAAO,CAAC,IAAI,CAAC,EAAE;QACX,IAAM,CAAC,GAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACzB,IAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,C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AAG,GAAG,CAAC,EAAE;YACT,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;SACR;aAAM,IAAI,GAAG,GAAG,CAAC,EAAE;YAChB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;SACR;aAAM;YACH,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACX,EAAE,EAAE,CAAC;YACL,EAAE,EAAE,CAAC;SACR;KACJ;IACD,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE;QACvB,IAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IACD,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE;QACtB,IAAM,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,EAAE,EAAE,CAAC;KACR;IAED,OAAO,CAAC,CAAC;AACb,CAAC;AApCD,kCAoCC"} \ No newline at end of file diff --git a/dist/utils/string-checkers.d.ts b/dist/utils/string-checkers.d.ts deleted file mode 100644 index 3196f9ce..00000000 --- a/dist/utils/string-checkers.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare function isCamelCase(text: string): boolean; -export declare function isUpperCamelCase(text: string): boolean; -export declare function isLowerCamelCase(text: string): boolean; -export declare function isLowerSnakeCase(text: string): boolean; -export declare function isUpperSnakeCase(text: string): boolean; -export declare function isSnakeCase(text: string): boolean; -export declare function isTimeFormat(text: string, format: string): boolean; -/** - * @deprecated use {@link MiscValidators.isValidPhoneNumber} instead - * @param num - num to validate - */ -export declare function isValidPhoneNumber(num: string): boolean; -/** - * @deprecated use {@link MiscValidators.isValidEmail} instead - * @param email - email to validate - */ -export declare function isValidEmail(email: string): boolean; -//# sourceMappingURL=string-checkers.d.ts.map \ No newline at end of file diff --git a/dist/utils/string-checkers.d.ts.map b/dist/utils/string-checkers.d.ts.map deleted file mode 100644 index 7217733a..00000000 --- a/dist/utils/string-checkers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-checkers.d.ts","sourceRoot":"","sources":["../../src/utils/string-checkers.ts"],"names":[],"mappings":"AAoBA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAQlE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD"} \ No newline at end of file diff --git a/dist/utils/string-checkers.js b/dist/utils/string-checkers.js deleted file mode 100644 index 21b15d8f..00000000 --- a/dist/utils/string-checkers.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidEmail = exports.isValidPhoneNumber = exports.isTimeFormat = exports.isSnakeCase = exports.isUpperSnakeCase = exports.isLowerSnakeCase = exports.isLowerCamelCase = exports.isUpperCamelCase = exports.isCamelCase = void 0; -var MiscValidators = __importStar(require("../validators/misc-validators")); -var timeFormats = { - HH: "(2[0-3]|[01]\\d)", - H: "(2[0-3]|[01]?\\d)", - mm: "([0-5]\\d)", - m: "([0-5]?\\d)", - MM: "(0\\d|1[0-2]|\\d)", - M: "([1-9]|1[0-2])", - ss: "([0-5]\\d)", - s: "([0-5]?\\d)", - YYYY: "([1-9]\\d{3,3})", - YY: "(\\d{2,2})", - DD: "([0-3]\\d)", -}; -function isCamelCase(text) { - return new RegExp("^[A-Z]?[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -exports.isCamelCase = isCamelCase; -function isUpperCamelCase(text) { - return new RegExp("^([A-Z][a-z]*)*$", "g").test(text); -} -exports.isUpperCamelCase = isUpperCamelCase; -function isLowerCamelCase(text) { - return new RegExp("^[a-z]+([A-Z][a-z]*)*$", "g").test(text); -} -exports.isLowerCamelCase = isLowerCamelCase; -function isLowerSnakeCase(text) { - return new RegExp("^[a-z]*(_[a-z]*)*$", "g").test(text); -} -exports.isLowerSnakeCase = isLowerSnakeCase; -function isUpperSnakeCase(text) { - return new RegExp("^[A-Z]*(_[A-Z]*)*$", "g").test(text); -} -exports.isUpperSnakeCase = isUpperSnakeCase; -function isSnakeCase(text) { - return new RegExp("^([a-z]*|[A-Z]*)(_[a-zA-Z]*)*$", "g").test(text); -} -exports.isSnakeCase = isSnakeCase; -function isTimeFormat(text, format) { - for (var key in timeFormats) { - if (timeFormats.hasOwnProperty(key)) { - format = format.replace(key, timeFormats[key]); - } - } - return new RegExp("^" + format + "$").test(text); -} -exports.isTimeFormat = isTimeFormat; -function isValidPhoneNumber(num) { - return MiscValidators.isValidPhoneNumber(num); -} -exports.isValidPhoneNumber = isValidPhoneNumber; -function isValidEmail(email) { - return MiscValidators.isValidEmail(email); -} -exports.isValidEmail = isValidEmail; -//# sourceMappingURL=string-checkers.js.map \ No newline at end of file diff --git a/dist/utils/string-checkers.js.map b/dist/utils/string-checkers.js.map deleted file mode 100644 index 023fe6b2..00000000 --- a/dist/utils/string-checkers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-checkers.js","sourceRoot":"","sources":["../../src/utils/string-checkers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,4EAAgE;AAEhE,IAAM,WAAW,GAA8B;IAC3C,EAAE,EAAI,kBAAkB;IACxB,CAAC,EAAK,mBAAmB;IACzB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,EAAE,EAAI,mBAAmB;IACzB,CAAC,EAAK,gBAAgB;IACtB,EAAE,EAAI,YAAY;IAClB,CAAC,EAAK,aAAa;IACnB,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAI,YAAY;IAClB,EAAE,EAAI,YAAY;CACrB,CAAC;AAEF,SAAgB,WAAW,CAAC,IAAY;IACpC,OAAO,IAAI,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAFD,kCAEC;AAED,SAAgB,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1D,CAAC;AAFD,4CAEC;AAED,SAAgB,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAFD,4CAEC;AAED,SAAgB,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAFD,4CAEC;AAED,SAAgB,gBAAgB,CAAC,IAAY;IACzC,OAAO,IAAI,MAAM,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAFD,4CAEC;AAED,SAAgB,WAAW,CAAC,IAAY;IACpC,OAAO,IAAI,MAAM,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC;AAFD,kCAEC;AAED,SAAgB,YAAY,CAAC,IAAY,EAAE,MAAc;IACrD,KAAK,IAAM,GAAG,IAAI,WAAW,EAAE;QAC3B,IAAI,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACjC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;SAClD;KACJ;IAED,OAAO,IAAI,MAAM,CAAC,MAAI,MAAM,MAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC;AARD,oCAQC;AAMD,SAAgB,kBAAkB,CAAC,GAAW;IAC1C,OAAO,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC;AAFD,gDAEC;AAMD,SAAgB,YAAY,CAAC,KAAa;IACtC,OAAO,cAAc,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/dist/utils/string-utils.d.ts b/dist/utils/string-utils.d.ts deleted file mode 100644 index 1413bb25..00000000 --- a/dist/utils/string-utils.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { StringMap } from "gtools/types"; -export declare function removeAccentedCharacters(word: string): string; -/** - * @example - * cutUsing("abcdefghij", 10) => abcdefghij - * cutUsing("abcdefghij", 15) => abcdefghij - * cutUsing("abcdefghij", 9) => abcdefg... - * cutUsing("abcdefghij", 9, "...", false) => abcdefghi... - */ -export declare function cutUsing(text: string, maxLength: number, suffix?: string, lengthIncludeSuffix?: boolean): string; -export declare function toUpperSnakeCase(text: string): string; -export declare function toLowerSnakeCase(text: string): string; -export declare function toLowerCamelCase(text: string): string; -export declare function toUpperCamelCase(text: string): string; -/** - * @example - * capitalize("gabo") => Gabo - * capitalize("GABO") => Gabo - * capitalize("gABO") => Gabo - */ -export declare function capitalize(text: string): string; -/** - * @deprecated use {@link capitalize} instead - */ -export declare function toCapital(text: string): string; -export declare function getLastPart(text: string, divider?: string): string; -/** - * @deprecated use {@link occurrences} instead - */ -export declare function count(text: string, key: string): number; -/** - * @param text - text need to be repeat - * @param numberOfRepetitions - number of iterations - * @deprecated - use {@link String#repeat} - */ -export declare function repeat(text: string, numberOfRepetitions: number): string; -export declare function removeAll(text: string, words: string[]): string; -/** - * @example - * template("{{name}} is {{age}} years old", {name: "Gabriel", age: 23}) => Gabriel is 23 years old - */ -export declare function template(text: string, values: StringMap, start?: string, end?: string): string; -export declare function removeEmptyLines(content: string): string; -/** - * @example - * between("my name is gabriel and I am 26 years old", "NAME", "gabriel") => "my name is " - * between("my name is gabriel and I am 26 years old", "name", "GABRIEL") => " is gabriel and I am 26 years old" - * between("my name is gabriel and I am 26 years old", "name", "gabriel") => " is " - * between("my name is gabriel and I am 26 years old", "name", "gabriel", true) => "is" - */ -export declare function between(text: string, key1: string, key2: string, trim?: boolean): string; -/** - * Returns number of occurrences of substring - * @version 0.2.40 - much faster then previous regex method using `return (text.match(new RegExp(key, "g")) || []).length;` - * @example - * occurrences("foofoofoo", "bar"); => 0 - * occurrences("foofoofoo", "foo"); => 3 - * occurrences("foofoofoo", "foofoo"); => 1 - * occurrences("foofoofoo", "foofoo", true); => 2 - * @param text - text - * @param key - searched substring - * @param overlapping - allows math overlapping - */ -export declare function occurrences(text: string, key: string, overlapping?: boolean): number; -export declare function collapseWhitespace(text: string): string; -export declare function swapCase(text: string): string; -/** - * @example - * formatTime("{} is a big {}", ["Gabo", "hero"]) => Gabo is a big hero - * formatTime("<> is a big <>", ["Gabo", "hero"], "<>") => Gabo is a big hero - */ -export declare function format(text: string, values: string[], placeHolder?: string): string; -export declare function transformToBasicFormat(text: string): string; -/** - * @example - * getAsciiArray("abcdefg") ==> [97, 98, 99, 100, 101, 102, 103] - * @param thisArg - argument - */ -export declare function getAsciiArray(thisArg: string): number[]; -export declare function toBasicForm(text: string): string; -export declare function contains(text: string, substring: string): boolean; -/** - * @example - * joinSingle("package", ".", "json") => package.json - * joinSingle("package.", ".", "json") => package.json - * joinSingle("package", ".", ".json") => package.json - * joinSingle("package.", ".", ".json") => package.json - */ -export declare function joinSingle(prefix: string, divider: string, postfix: string): string; -/** - * @deprecated use {@link join} instead - * @param data - data to join - * @param delimiter - delimiter - * @param prefix - prefix - * @param postfix - postfix - */ -export declare function joinString(data: string[], delimiter?: string, prefix?: string, postfix?: string): string; -export declare function getFormattedNumber(num: string, prefix?: string): string; -export declare function replaceForAll(content: string, values: string[], placeHolder: string): string[]; -//# sourceMappingURL=string-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/string-utils.d.ts.map b/dist/utils/string-utils.d.ts.map deleted file mode 100644 index 24af7ac2..00000000 --- a/dist/utils/string-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA2BzC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU7D;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,SAA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/utils/string-utils.js +++ /dev/null @@ -1,264 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.replaceForAll = exports.getFormattedNumber = exports.joinString = exports.joinSingle = exports.contains = exports.toBasicForm = exports.getAsciiArray = exports.transformToBasicFormat = exports.format = exports.swapCase = exports.collapseWhitespace = exports.occurrences = exports.between = exports.removeEmptyLines = exports.template = exports.removeAll = exports.repeat = exports.count = exports.getLastPart = exports.toCapital = exports.capitalize = exports.toUpperCamelCase = exports.toLowerCamelCase = exports.toLowerSnakeCase = exports.toUpperSnakeCase = exports.cutUsing = exports.removeAccentedCharacters = void 0; -var array_utils_1 = require("./array-utils"); -var StringCheckers = __importStar(require("./string-checkers")); -var accentedLowerCharacters = "ąàáäâãåæăćčĉďęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž"; -var normalLowerCharacters = "aaaaaaaaacccdeeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz"; -var accentedCharacters = accentedLowerCharacters + accentedLowerCharacters.toUpperCase(); -var normalCharacters = normalLowerCharacters + normalLowerCharacters.toUpperCase(); -function removeAccentedCharacters(word) { - if (!word || !word.replace) { - return word; - } - return word.replace(/./g, function (e) { - var index = accentedCharacters.indexOf(e); - return index >= 0 ? normalCharacters[index] : e; - }); -} -exports.removeAccentedCharacters = removeAccentedCharacters; -function cutUsing(text, maxLength, suffix, lengthIncludeSuffix) { - if (suffix === void 0) { suffix = "..."; } - if (lengthIncludeSuffix === void 0) { lengthIncludeSuffix = true; } - if (text.length <= maxLength) { - return text; - } - return text.substr(0, maxLength - (lengthIncludeSuffix ? suffix.length - 1 : 0)) + suffix; -} -exports.cutUsing = cutUsing; -function toUpperSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toUpperCase(); - } - if (StringCheckers.isUpperSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, function (i, u, e) { return e ? "_" + e : ""; }) - .replace(/^_/, "") - .toUpperCase(); -} -exports.toUpperSnakeCase = toUpperSnakeCase; -function toLowerSnakeCase(text) { - if (StringCheckers.isCamelCase(text)) { - return text.replace(/([a-z])([A-Z])/g, "$1_$2") - .replace(/([A-Z])([A-Z])/g, "$1_$2") - .toLowerCase(); - } - if (StringCheckers.isLowerSnakeCase(text)) { - return text; - } - return text.replace(/(-|_| |\s)+(.)?/g, function (i, u, e) { return e ? "_" + e : ""; }) - .replace(/^_/, "") - .toLowerCase(); -} -exports.toLowerSnakeCase = toLowerSnakeCase; -function toLowerCamelCase(text) { - if (StringCheckers.isLowerCamelCase(text)) { - return text; - } - return text.trim() - .replace(/([a-z])([A-Z])([A-Z])/g, "$1$2_$3") - .replace(/([a-z])([A-Z])/g, "$1_$2") - .toLowerCase() - .replace(/(-|_| |\s)+(.)?/g, function (math, sep, c) { return c ? c.toUpperCase() : ""; }) - .replace(/^./, function (e) { return e.toLowerCase(); }); -} -exports.toLowerCamelCase = toLowerCamelCase; -function toUpperCamelCase(text) { - if (StringCheckers.isUpperCamelCase(text)) { - return text; - } - return toCapital(toLowerCamelCase(text)); -} -exports.toUpperCamelCase = toUpperCamelCase; -function capitalize(text) { - return text.toLowerCase().replace(/^./, function (char) { return char.toUpperCase(); }); -} -exports.capitalize = capitalize; -function toCapital(text) { - return text.replace(/^./, function (e) { return e.toUpperCase(); }); -} -exports.toCapital = toCapital; -function getLastPart(text, divider) { - if (divider === void 0) { divider = " "; } - if (!text || !text.split) { - return text; - } - var splitText = text.split(divider); - return splitText[splitText.length - 1]; -} -exports.getLastPart = getLastPart; -function count(text, key) { - return (text.match(new RegExp(key, "g")) || []).length; -} -exports.count = count; -function repeat(text, numberOfRepetitions) { - return new Array(numberOfRepetitions + 1).join(text); -} -exports.repeat = repeat; -function removeAll(text, words) { - return text.replace(new RegExp("(" + words.join("|") + ")", "g"), ""); -} -exports.removeAll = removeAll; -function template(text, values, start, end) { - if (start === void 0) { start = "{{"; } - if (end === void 0) { end = "}}"; } - var updatedStart = start.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - var updatedEnd = end.replace(/[-[\]()*\s]/g, "\\$&").replace(/\$/g, "\\$"); - return text.replace(new RegExp(updatedStart + "(.+?)" + updatedEnd, "g"), function (math, key) { return String(values[key]); }); -} -exports.template = template; -function removeEmptyLines(content) { - return content.replace(/^\s*$(?:\r\n?|\n)/gm, ""); -} -exports.removeEmptyLines = removeEmptyLines; -function between(text, key1, key2, trim) { - if (trim === void 0) { trim = false; } - var processResult = function (result) { return trim ? result.trim() : result; }; - var startPos = text.indexOf(key1); - var endPos = text.indexOf(key2); - if (startPos < 0 && endPos >= 0) { - return processResult(text.substring(0, endPos)); - } - if (endPos < 0 && startPos >= 0) { - return processResult(text.substring(startPos + key1.length, text.length)); - } - return processResult(text.substring(startPos + key1.length, endPos)); -} -exports.between = between; -function occurrences(text, key, overlapping) { - if (overlapping === void 0) { overlapping = false; } - var index = text.indexOf(key); - var counter = 0; - var step = overlapping ? 1 : key.length; - while (index >= 0) { - counter++; - index = text.indexOf(key, index + step); - } - return counter; -} -exports.occurrences = occurrences; -function collapseWhitespace(text) { - return text.replace(/[\s\uFEFF\xA0]{2,}/g, " "); -} -exports.collapseWhitespace = collapseWhitespace; -function swapCase(text) { - return text.replace(/\S/g, function (char) { - var lowerCase = char.toLowerCase(); - return lowerCase === char ? char.toUpperCase() : lowerCase; - }); -} -exports.swapCase = swapCase; -function format(text, values, placeHolder) { - if (placeHolder === void 0) { placeHolder = "{}"; } - var result = []; - var lastIndex; - var actualIndex = 0; - var counter = 0; - while (counter < values.length) { - lastIndex = actualIndex; - actualIndex = text.indexOf(placeHolder, actualIndex); - result.push(text.substring(lastIndex, actualIndex)); - result.push(values[counter++]); - actualIndex += placeHolder.length; - } - result.push(text.substring(actualIndex)); - return result.join(""); -} -exports.format = format; -function transformToBasicFormat(text) { - return collapseWhitespace(removeAccentedCharacters(text).toLowerCase()).trim(); -} -exports.transformToBasicFormat = transformToBasicFormat; -function getAsciiArray(thisArg) { - var result = []; - for (var _i = 0, thisArg_1 = thisArg; _i < thisArg_1.length; _i++) { - var letter = thisArg_1[_i]; - result[result.length] = letter.charCodeAt(0); - } - return result; -} -exports.getAsciiArray = getAsciiArray; -function toBasicForm(text) { - return removeAccentedCharacters(text.toLowerCase()); -} -exports.toBasicForm = toBasicForm; -function contains(text, substring) { - return !!text && removeAccentedCharacters(text.toLowerCase()).indexOf(substring) >= 0; -} -exports.contains = contains; -function joinSingle(prefix, divider, postfix) { - if (postfix.startsWith(divider) && prefix.endsWith(divider)) { - return prefix + postfix.substring(divider.length); - } - if (postfix.startsWith(divider) || prefix.endsWith(divider)) { - return prefix + postfix; - } - return prefix + divider + postfix; -} -exports.joinSingle = joinSingle; -function joinString(data, delimiter, prefix, postfix) { - if (delimiter === void 0) { delimiter = " "; } - if (prefix === void 0) { prefix = ""; } - if (postfix === void 0) { postfix = ""; } - return array_utils_1.join(data, delimiter, prefix, postfix); -} -exports.joinString = joinString; -function getFormattedNumber(num, prefix) { - if (prefix === void 0) { prefix = "+421"; } - num = num.replace(/[( )/-]/g, ""); - if (num.startsWith("+")) { - return num; - } - if (num.startsWith("00")) { - return num.substring(2); - } - if (num.startsWith("09") || num.startsWith("02")) { - return prefix + num.substring(1); - } - return num; -} -exports.getFormattedNumber = getFormattedNumber; -function fuzzy_match_simple(pattern, str) { - var patternIdx = 0; - var strIdx = 0; - var patternLength = pattern.length; - var strLength = str.length; - while (patternIdx !== patternLength && strIdx !== strLength) { - var patternChar = pattern.charAt(patternIdx) - .toLowerCase(); - var strChar = str.charAt(strIdx) - .toLowerCase(); - if (patternChar === strChar) { - ++patternIdx; - } - ++strIdx; - } - return patternLength !== 0 && strLength !== 0 && patternIdx === patternLength; -} -function replaceForAll(content, values, placeHolder) { - return values.map(function (value) { return content.replace(placeHolder, value); }); -} -exports.replaceForAll = replaceForAll; -//# sourceMappingURL=string-utils.js.map \ No newline at end of file diff --git a/dist/utils/string-utils.js.map b/dist/utils/string-utils.js.map deleted file mode 100644 index 5158e084..00000000 --- a/dist/utils/string-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,6CAAqC;AACrC,gEAAoD;AAEpD,IAAM,uBAAuB,GAAG,4DAA4D,CAAC;AAC7F,IAAM,qBAAqB,GAAK,4DAA4D,CAAC;AAC7F,IAAM,kBAAkB,GAAQ,uBAAuB,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC;AAChG,IAAM,gBAAgB,GAAU,qBAAqB,GAAG,qBAAqB,CAAC,WAAW,EAAE,CAAC;AAoB5F,SAAgB,wBAAwB,CAAC,IAAY;IACjD,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACxB,OAAO,IAAI,CAAC;KACf;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,UAAC,CAAS;QAChC,IAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAE5C,OAAO,KAAK,IAAI,CAAC,CAAC,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ist/utils/svg-utils.d.ts deleted file mode 100644 index b89e8f49..00000000 --- a/dist/utils/svg-utils.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function createSvg(type: T): SVGElementTagNameMap[T]; -export declare function getTransform(selectedElement: SVGGraphicsElement): SVGTransform; -//# sourceMappingURL=svg-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/svg-utils.d.ts.map b/dist/utils/svg-utils.d.ts.map deleted file mode 100644 index 03cba381..00000000 --- a/dist/utils/svg-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"svg-utils.d.ts","sourceRoot":"","sources":["../../src/utils/svg-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,oBAAoB,EAAE,IAAI,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAEhG;AAED,wBAAgB,YAAY,CAAC,eAAe,EAAE,kBAAkB,GAAG,YAAY,CAU9E"} \ No newline at end of file diff --git a/dist/utils/svg-utils.js b/dist/utils/svg-utils.js deleted file mode 100644 index bd6d2a19..00000000 --- a/dist/utils/svg-utils.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTransform = exports.createSvg = void 0; -var svgns = "http://www.w3.org/2000/svg"; -function createSvg(type) { - return document.createElementNS(svgns, type); -} -exports.createSvg = createSvg; -function getTransform(selectedElement) { - var transforms = selectedElement.transform.baseVal; - if (transforms.numberOfItems === 0 || - transforms.getItem(0).type !== SVGTransform.SVG_TRANSFORM_TRANSLATE) { - var translate = selectedElement.ownerSVGElement.createSVGTransform(); - translate.setTranslate(0, 0); - selectedElement.transform.baseVal.insertItemBefore(translate, 0); - } - return transforms.getItem(0); -} -exports.getTransform = getTransform; -//# sourceMappingURL=svg-utils.js.map \ No newline at end of file diff --git a/dist/utils/svg-utils.js.map b/dist/utils/svg-utils.js.map deleted file mode 100644 index 5a4762e8..00000000 --- a/dist/utils/svg-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"svg-utils.js","sourceRoot":"","sources":["../../src/utils/svg-utils.ts"],"names":[],"mappings":";;;AAAA,IAAM,KAAK,GAAG,4BAA4B,CAAC;AAE3C,SAAgB,SAAS,CAAuC,IAAO;IACnE,OAAO,QAAQ,CAAC,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACjD,CAAC;AAFD,8BAEC;AAED,SAAgB,YAAY,CAAC,eAAmC;IAC5D,IAAM,UAAU,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC;IACrD,IAAI,UAAU,CAAC,aAAa,KAAK,CAAC;QAC9B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,uBAAuB,EAAE;QACrE,IAAM,SAAS,GAAI,eAAe,CAAC,eAAiC,CAAC,kBAAkB,EAAE,CAAC;QAC1F,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7B,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;KACpE;IAED,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACjC,CAAC;AAVD,oCAUC"} \ No newline at end of file diff --git a/dist/utils/time-utils.d.ts b/dist/utils/time-utils.d.ts deleted file mode 100644 index 3ce2eb27..00000000 --- a/dist/utils/time-utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare function dateAgo(value: number | string | Date): number | string | Date; -export declare function formatTime(date: Date, pattern: string): string; -export declare function createStopWatch(): { - getDiffMs(): number; - getDiff(): string; -}; -export declare function getStartOfTheDay(date: Date): Date; -export declare function getEndOfTheDay(date: Date): Date; -//# sourceMappingURL=time-utils.d.ts.map \ No newline at end of file diff --git a/dist/utils/time-utils.d.ts.map b/dist/utils/time-utils.d.ts.map deleted file mode 100644 index 2d3f5e56..00000000 --- a/dist/utils/time-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../src/utils/time-utils.ts"],"names":[],"mappings":"AAcA,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAqB7E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAmC9D;AACD,wBAAgB,eAAe,IAAI;IAAE,SAAS,IAAI,MAAM,CAAC;IAAC,OAAO,IAAI,MAAM,CAAA;CAAE,CAW5E;AAuBD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAOjD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAO/C"} \ No newline at end of file diff --git a/dist/utils/time-utils.js b/dist/utils/time-utils.js deleted file mode 100644 index 136af5e6..00000000 --- a/dist/utils/time-utils.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndOfTheDay = exports.getStartOfTheDay = exports.createStopWatch = exports.formatTime = exports.dateAgo = void 0; -var intervals = { - "year": 31536000, - "month": 2592000, - "week": 604800, - "day": 86400, - "hour": 3600, - "minute": 60, - "second": 1, -}; -var intervalEntries = Object.entries(intervals); -function dateAgo(value) { - if (value) { - var seconds = Math.floor((+new Date() - +new Date(value)) / 1000); - if (seconds < 29) { - return "Just now"; - } - var counter = void 0; - for (var _i = 0, intervalEntries_1 = intervalEntries; _i < intervalEntries_1.length; _i++) { - var _a = intervalEntries_1[_i], key = _a[0], interval = _a[1]; - counter = Math.floor(seconds / interval); - if (counter <= 0) { - continue; - } - if (counter === 1) { - return counter + " " + key + " ago"; - } - return counter + " " + key + "s ago"; - } - } - return value; -} -exports.dateAgo = dateAgo; -function formatTime(date, pattern) { - var toString = function (time) { return time < 10 ? "0" + time : "" + time; }; - var regex = new RegExp("(DD|MM|YYYY|YYY|YY|HH|mm|SS)", "g"); - var DD = toString(date.getDate()); - var MM = toString(date.getMonth() + 1); - var YYYY = date.getFullYear() + ""; - var YYY = YYYY.substr(1, 4); - var YY = YYY.substr(1, 4); - var HH = toString(date.getHours()); - var mm = toString(date.getMinutes()); - var SS = toString(date.getSeconds()); - return pattern.replace(regex, function (e) { - switch (e) { - case "DD": - return DD; - case "MM": - return MM; - case "YYYY": - return YYYY; - case "YYY": - return YYY; - case "YY": - return YY; - case "HH": - return HH; - case "mm": - return mm; - case "SS": - return SS; - default: - return e; - } - }); -} -exports.formatTime = formatTime; -function createStopWatch() { - var start = Date.now(); - var getDiffMs = function () { return Date.now() - start; }; - return { - getDiffMs: getDiffMs, - getDiff: function () { - return getDiffMs() + "ms"; - }, - }; -} -exports.createStopWatch = createStopWatch; -function setDate(date, opt) { - if (!date) { - return new Date(""); - } - if (!isNaN(opt.ms)) { - date.setMilliseconds(opt.ms); - } - if (!isNaN(opt.s)) { - date.setSeconds(opt.s); - } - if (!isNaN(opt.m)) { - date.setMinutes(opt.m); - } - if (!isNaN(opt.h)) { - date.setHours(opt.h); - } - return date; -} -function getStartOfTheDay(date) { - return setDate(date, { - ms: 0, - s: 0, - m: 0, - h: 0, - }); -} -exports.getStartOfTheDay = getStartOfTheDay; -function getEndOfTheDay(date) { - return setDate(date, { - ms: 999, - s: 59, - m: 59, - h: 23, - }); -} -exports.getEndOfTheDay = getEndOfTheDay; -//# sourceMappingURL=time-utils.js.map \ No newline at end of file diff --git a/dist/utils/time-utils.js.map b/dist/utils/time-utils.js.map deleted file mode 100644 index d85e91d7..00000000 --- a/dist/utils/time-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"time-utils.js","sourceRoot":"","sources":["../../src/utils/time-utils.ts"],"names":[],"mappings":";;;AAEA,IAAM,SAAS,GAAsB;IACjC,MAAM,EAAI,QAAQ;IAClB,OAAO,EAAG,OAAO;IACj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--git a/dist/validators/index.d.ts b/dist/validators/index.d.ts deleted file mode 100644 index f82304e4..00000000 --- a/dist/validators/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./misc-validators"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/validators/index.d.ts.map b/dist/validators/index.d.ts.map deleted file mode 100644 index 18c42cda..00000000 --- a/dist/validators/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/validators/index.js b/dist/validators/index.js deleted file mode 100644 index e1aba1eb..00000000 --- a/dist/validators/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./misc-validators"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/validators/index.js.map b/dist/validators/index.js.map deleted file mode 100644 index bbbb7f56..00000000 --- a/dist/validators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC"} \ No newline at end of file diff --git a/dist/validators/misc-validators.d.ts b/dist/validators/misc-validators.d.ts deleted file mode 100644 index 927646dd..00000000 --- a/dist/validators/misc-validators.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare function isFunction(arg: unknown): boolean; -export declare function isString(arg: unknown): arg is string; -export declare function isObject(value: unknown): value is T; -export declare function isNumber(arg: unknown): arg is number; -export declare function isBoolean(arg: unknown): arg is boolean; -export declare function isArray(arg: unknown): arg is T[]; -export declare function isInt(arg: unknown): arg is number; -export declare function isFloat(arg: unknown): arg is number; -export declare function isUndefined(arg?: unknown): boolean; -export declare function isElement(obj: unknown): boolean; -export declare function isEmpty(value: unknown): boolean; -export declare function isValidPhoneNumber(num: string): boolean; -export declare function isValidEmail(email: string): boolean; -//# sourceMappingURL=misc-validators.d.ts.map \ No newline at end of file diff --git a/dist/validators/misc-validators.d.ts.map b/dist/validators/misc-validators.d.ts.map deleted file mode 100644 index 3fbfe339..00000000 --- a/dist/validators/misc-validators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-validators.d.ts","sourceRoot":"","sources":["../../src/validators/misc-validators.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEhD;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpD;AAED,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAIhE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,OAAO,CAEtD;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,CAAC,EAAE,CAEnD;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEjD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEnD;AAED,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,OAAO,CAElD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAS/C;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAiB/C;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAMvD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAMnD"} \ No newline at end of file diff --git a/dist/validators/misc-validators.js b/dist/validators/misc-validators.js deleted file mode 100644 index d4f74ef8..00000000 --- a/dist/validators/misc-validators.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidEmail = exports.isValidPhoneNumber = exports.isEmpty = exports.isElement = exports.isUndefined = exports.isFloat = exports.isInt = exports.isArray = exports.isBoolean = exports.isNumber = exports.isObject = exports.isString = exports.isFunction = void 0; -var validEmailRegex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i; -var validPhoneNumberRegex = /^([+]|00)?[(]?[0-9]{3,4}[)]?[-\s.]?[0-9]{2,3}[-\s.]?[0-9]{2,6}([-\s.]?[0-9]{3})?$/im; -function isFunction(arg) { - return typeof arg === "function"; -} -exports.isFunction = isFunction; -function isString(arg) { - return typeof arg === "string"; -} -exports.isString = isString; -function isObject(value) { - var type = typeof value; - return value !== null && (type === "object" || type === "function"); -} -exports.isObject = isObject; -function isNumber(arg) { - return typeof arg === "number"; -} -exports.isNumber = isNumber; -function isBoolean(arg) { - return typeof arg === "boolean"; -} -exports.isBoolean = isBoolean; -function isArray(arg) { - return Array.isArray(arg); -} -exports.isArray = isArray; -function isInt(arg) { - return typeof arg === "number" && arg % 1 === 0; -} -exports.isInt = isInt; -function isFloat(arg) { - return typeof arg === "number" && arg % 1 !== 0; -} -exports.isFloat = isFloat; -function isUndefined(arg) { - return typeof arg === "undefined"; -} -exports.isUndefined = isUndefined; -function isElement(obj) { - try { - return obj instanceof HTMLElement; - } - catch (e) { - return isObject(obj) && - obj.nodeType === 1 && - isObject(obj.style) && - isObject(obj.ownerDocument); - } -} -exports.isElement = isElement; -function isEmpty(value) { - if (value === null || value === undefined) { - return true; - } - if (typeof value === "string") { - return value.length === 0 || /^[\s\xa0]*$/.test(value); - } - if (Array.isArray(value)) { - return value.length === 0; - } - if (isObject(value)) { - return Object.keys(value).length === 0; - } - return false; -} -exports.isEmpty = isEmpty; -function isValidPhoneNumber(num) { - if (!num) { - return false; - } - return validPhoneNumberRegex.test(num.trim()); -} -exports.isValidPhoneNumber = isValidPhoneNumber; -function isValidEmail(email) { - if (!email) { - return false; - } - return validEmailRegex.test(email.trim()); -} -exports.isValidEmail = isValidEmail; -//# sourceMappingURL=misc-validators.js.map \ No newline at end of file diff --git a/dist/validators/misc-validators.js.map b/dist/validators/misc-validators.js.map deleted file mode 100644 index 457e40a7..00000000 --- a/dist/validators/misc-validators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc-validators.js","sourceRoot":"","sources":["../../src/validators/misc-validators.ts"],"names":[],"mappings":";;;AAAA,IAAM,eAAe,GAAS,uJAAuJ,CAAC;AACtL,IAAM,qBAAqB,GAAG,qFAAqF,CAAC;AAEpH,SAAgB,UAAU,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC;AACrC,CAAC;AAFD,gCAEC;AAED,SAAgB,QAAQ,CAAC,GAAY;IACjC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC;AACnC,CAAC;AAFD,4BAEC;AAED,SAAgB,QAAQ,CAAc,KAAc;IAChD,IAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAE1B,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IA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AC,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1D;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACtB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;KAC7B;IAED,IAAI,QAAQ,CAA0B,KAAK,CAAC,EAAE;QAC1C,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;KAC1C;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAjBD,0BAiBC;AAED,SAAgB,kBAAkB,CAAC,GAAW;IAC1C,IAAI,CAAC,GAAG,EAAE;QACN,OAAO,KAAK,CAAC;KAChB;IAED,OAAO,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;AAND,gDAMC;AAED,SAAgB,YAAY,CAAC,KAAa;IACtC,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,KAAK,CAAC;KAChB;IAED,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9C,CAAC;AAND,oCAMC"} \ No newline at end of file diff --git a/dist/web.d.ts b/dist/web.d.ts deleted file mode 100644 index 0924bc25..00000000 --- a/dist/web.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/**************************** WEB ****************************/ -export * as arrays from "./utils/array-utils"; -export * as math from "./utils/math-utils"; -export * as dom from "./utils/DomUtils"; -export * as misc from "./utils/misc-utils"; -export * as object from "./utils/object-utils"; -export * as string from "./utils/string-utils"; -export * as time from "./utils/time-utils"; -export { SlovakStemmer as stemmer } from "./misc/slovak-stemmer"; -export { CanvasManager as canvas } from "./dom/canvas-manager"; -export { DomGet as get } from "./dom/dom-get"; -//# sourceMappingURL=web.d.ts.map \ No newline at end of file diff --git a/dist/web.d.ts.map b/dist/web.d.ts.map deleted file mode 100644 index e20b8194..00000000 --- a/dist/web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAI/D,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js deleted file mode 100644 index c62c4284..00000000 --- a/dist/web.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.get = exports.canvas = exports.stemmer = exports.time = exports.string = exports.object = exports.misc = exports.dom = exports.math = exports.arrays = void 0; -exports.arrays = __importStar(require("./utils/array-utils")); -exports.math = __importStar(require("./utils/math-utils")); -exports.dom = __importStar(require("./utils/DomUtils")); -exports.misc = __importStar(require("./utils/misc-utils")); -exports.object = __importStar(require("./utils/object-utils")); -exports.string = __importStar(require("./utils/string-utils")); -exports.time = __importStar(require("./utils/time-utils")); -var slovak_stemmer_1 = require("./misc/slovak-stemmer"); -Object.defineProperty(exports, "stemmer", { enumerable: true, get: function () { return slovak_stemmer_1.SlovakStemmer; } }); -var canvas_manager_1 = require("./dom/canvas-manager"); -Object.defineProperty(exports, "canvas", { enumerable: true, get: function () { return canvas_manager_1.CanvasManager; } }); -var dom_get_1 = require("./dom/dom-get"); -Object.defineProperty(exports, "get", { enumerable: true, get: function () { return dom_get_1.DomGet; } }); -//# sourceMappingURL=web.js.map \ No newline at end of file diff --git a/dist/web.js.map b/dist/web.js.map deleted file mode 100644 index 17c2bf76..00000000 --- a/dist/web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,8DAA8C;AAC9C,2DAA2C;AAC3C,wDAAwC;AACxC,2DAA2C;AAC3C,+DAA+C;AAC/C,+DAA+C;AAC/C,2DAA2C;AAE3C,wDAAiE;AAAxD,yGAAA,aAAa,OAAW;AAIjC,uDAA+D;AAAtD,wGAAA,aAAa,OAAU;AAChC,yCAA8C;AAArC,8FAAA,MAAM,OAAO"} \ No newline at end of file diff --git a/package.json b/package.json index 449199b3..de4af6aa 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "gtools", - "version": "0.2.56", + "version": "0.2.57", "description": "Small library including utils methods for easier life", - "main": "./index.js", - "module": "./_esm5/index.js", + "main": "./_cjs-index.js", + "module": "./index.js", "es2015": "./_esm/index.js", "types": "./types/index.d.ts", "sideEffects": false, diff --git a/src/tsconfig.cjs.json b/src/tsconfig.cjs.json index 00dfdec9..880400f7 100644 --- a/src/tsconfig.cjs.json +++ b/src/tsconfig.cjs.json @@ -3,6 +3,6 @@ "compilerOptions": { "module": "commonjs", "target": "es5", - "outDir": "../dist" + "outDir": "../dist/_cjs" }, } diff --git a/src/tsconfig.esm5.json b/src/tsconfig.esm5.json index eb7821f6..e39a66c6 100644 --- a/src/tsconfig.esm5.json +++ b/src/tsconfig.esm5.json @@ -4,6 +4,6 @@ "module": "esnext", "importHelpers": true, "target": "es5", - "outDir": "../dist/_esm5" + "outDir": "../dist" }, }