@fmsim/machine 0.0.77 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agv.js +3 -2
- package/dist/agv.js.map +1 -1
- package/dist/crane.js +5 -4
- package/dist/crane.js.map +1 -1
- package/dist/mcs-carrier-holder.js +2 -2
- package/dist/mcs-carrier-holder.js.map +1 -1
- package/dist/mcs-machine.js +13 -27
- package/dist/mcs-machine.js.map +1 -1
- package/dist/mcs-popup.js +6 -15
- package/dist/mcs-popup.js.map +1 -1
- package/dist/oht.js +3 -2
- package/dist/oht.js.map +1 -1
- package/dist/port.js +3 -2
- package/dist/port.js.map +1 -1
- package/dist/shelf.js +2 -1
- package/dist/shelf.js.map +1 -1
- package/dist/shuttle.js +4 -3
- package/dist/shuttle.js.map +1 -1
- package/dist/stocker-capacity-bar.js +5 -4
- package/dist/stocker-capacity-bar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/round-rect.js +33 -0
- package/dist/utils/round-rect.js.map +1 -0
- package/dist/zone-capacity-bar.js +5 -4
- package/dist/zone-capacity-bar.js.map +1 -1
- package/package.json +3 -3
- package/src/agv.ts +3 -2
- package/src/crane.ts +5 -4
- package/src/mcs-carrier-holder.ts +3 -3
- package/src/mcs-machine.ts +13 -28
- package/src/mcs-popup.ts +6 -17
- package/src/oht.ts +3 -2
- package/src/port.ts +3 -2
- package/src/shelf.ts +2 -1
- package/src/shuttle.ts +4 -3
- package/src/stocker-capacity-bar.ts +5 -4
- package/src/utils/round-rect.ts +40 -0
- package/src/zone-capacity-bar.ts +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.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.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.intl.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.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.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@hatiolab/things-scene/things-scene.d.ts","../../api/dist/src/types.d.ts","../../api/dist/src/graphql/board.d.ts","../../../node_modules/zen-observable-ts/module.d.ts","../../api/dist/src/graphql/data-subscription.d.ts","../../api/dist/src/graphql/favorite-board.d.ts","../../api/dist/src/graphql/group.d.ts","../../api/dist/src/graphql/scenario.d.ts","../../api/dist/src/graphql/theme.d.ts","../../api/dist/src/graphql/index.d.ts","../../api/dist/src/index.d.ts","../src/features/mcs-status-default.ts","../src/features/mcs-status-mixin.ts","../src/utils/safe-round.ts","../src/utils/get-locale.ts","../src/mcs-machine.ts","../src/mcs-transport.ts","../src/agv-line.ts","../src/mcs-unit.ts","../src/mcs-carrier-holder.ts","../src/mcs-vehicle.ts","../src/agv.ts","../src/buffer.ts","../src/features/conveyor-mixin.ts","../src/utils/normalize-angle.ts","../src/conveyor-join.ts","../src/conveyor.ts","../src/crane.ts","../src/equipment.ts","../src/groups/mcs-acs.ts","../src/groups/mcs-bcs.ts","../src/groups/mcs-ccs.ts","../src/groups/mcs-ecs.ts","../src/groups/mcs-ocs.ts","../src/groups/mcs-scs.ts","../src/groups/mcs-path.ts","../src/groups/mcs-shape.ts","../src/groups/index.ts","../src/utils/get-value-on-ranges.ts","../src/stocker-capacity-bar.ts","../src/features/mcs-zone-mixin.ts","../src/zone-capacity-bar.ts","../src/oht-line.ts","../src/stocker.ts","../src/oht.ts","../src/shuttle.ts","../src/port.ts","../src/shelf.ts","../src/index.ts","../src/mcs-popup.ts","../src/editors/index.ts","../src/templates/agv-line.ts","../src/templates/agv.ts","../src/templates/buffer.ts","../src/templates/conveyor.ts","../src/templates/crane.ts","../src/templates/data-subscription.js","../src/templates/equipment.ts","../src/templates/stocker-capacity-bar.ts","../src/templates/zone-capacity-bar.ts","../src/templates/oht.ts","../src/templates/stocker.ts","../src/templates/shuttle.ts","../src/templates/port.ts","../src/templates/shelf.ts","../src/templates/oht-line.ts","../src/templates/index.ts","../src/templates/stocker-capacity-circle.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.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/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.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/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/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.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/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","55d162e1a8bac3a519c76ade32091af8c2a8fea9ad25443f84b9326166947afa","3fa5e64e94d423eba10a9e83afdecfdd709a0aabafa492113133917a30a3148c","e7e1634c7b58a18b4d5cd00a52a595200311be8b46fa218d65f83c5caf78a7cc","9b51dd74a388c13e157c457cc39d59dc2aae2134f6a21cc6b695219932cb8817","7a1d0c7c54fb2bda7480b4bd0a23787ffe77fc528d6bad79c1d0407bff9bdeeb","df2daeaeaeb13ff90da550ad449fd1d106c1d8d466a01062a8c094d0d5a29a04","372c0725ab3e1a8de4e92fdb51a8119cd85b92a5021e401c33a40e7b8f9ffeb7","308b74d903d587a5e94d07285f29aad2f2f434b6e8159a32a10c5c55304c827a","e423710b108fe366e94cc01fa9e475dde02432c5655c6e44c388a9f8566dba5b","de779aeeeb503c11cf88e3fd87c02219667926f7f0f304476bcdb436a0faed83","0dba9e788784d32f789bdc16c5325cea75e114a889e908e0261bada8f634539a","130d455ad7532745bb2ad2b359fbb64f45be1ff6868fa2fb7cbc80699f143a57","206320767d3f2c390044213486a6f6a6ca3b2f7b6fee87b016907753753d3cbb","b80de81ca95b5ff6d8206c7016342e472166bfea4389d179363b1bdf7b5c7428","09f31f96e0103f98e1d2c6d85bb5a9d918560867a389c2ebd982b36e202f4b7a","4543187cab5bed2c34bd0b3774d6b18a91730fdf7496874aee7ef6ff922b7a44","3be77ba21004eaa812accc57bdea8551c539d02b4c7469364e50e7ee5386490b","71e2dbd3506598977f949865e84458a1760212338c4cd086e21c2d81bc23b5ec","828d2cbb68c7fc74b675a3e00f01d22b33b3f7be4cc20a36789337da8f4d4230","2c94fe2883089ac41f6e60b30f2334edbacb4024a4204abb017fe74cdbb34375","d0100634f723a618d19a0181ea309675ab23879c38228353849eb955f8061e7b","16536f0102b3c49618ea129842292d554390425106631c4ab3752847a329b8ac","9735957bfaaff9481953a948ede5b75c0e19c00570c0b1560cd124abfef31413","7c962f32106dbd4aed7cae530c476d35e7b3b146cb8919a0d642305de53bbcae","4c8d2abfc10f175bee954963c1999e804f737138a156d25bf33f7fcc96b6a4ff","2a7d3810be50a37cc4fd0943d3041c9dbd6177c132d5c011cc4efee89950d695","cc19e2b2224a86a0966b3ac59b52fbedf29160140520226d31f80e8121754453","b6a4487e4f8a807c79faeb4ec058ae357c6fe1a4747b83525c0ab2f732adf940","f9982f39463e0ad7bc26821ea65ccf0f8e21b122e3c7240cc38a9b41c8fc7dbe","5cf7bd99b4001ee01519cfe438b5243c4d599d147d12e3f17ab27c41eb5eb4f7","5061683e6ab299e3323dad880f12043e0c44bf5f617c496994891eace1ee2b0a","3a9b3ca027dd6a2eb3f287d1d8c07b6d5a2d4258b15e62ae9d43259521f30a86","7bfa04d191ef30a7396591f6099a36c22a9c1e012b44c75fa7053a66115a5224","104caacd4ff3469c86bb69f8629f6e03a660ae4216b7563ba00e5cc5d7e78196","9895951c9b18385c8bb5c22b48b5474da5eb174b3d172fa3fcc47a6996ef161e","240a586ed5a6c7ac321099817b6d9a9579dc5248df4a57c83840a78b0db86126","65ec7fa06330a7939286576d641c9fb3a2347b2cae0d23522147984eefa5b554","d5e6ea4290a454ebbd4df6cd547ea6cc8e34ea0bca87f1b1f5018cb6891efb87","d4fa7c1258363ef15cf546d98455c58f8df4cc4c8a5714f8e6c63eb5a4e6f6c8","1859dc7fb59b4e2ccedfa2ed93a17ba9a35c48d1d219fa903d044ca5618a1034","cd47ea48de4b7d7305fc1e93085108f32bf4b06ae93a7ca1c5edd6cacd4f3028","5a48ae1965b735028f678db5a9fea56aa243391eb0660e814de0d0465f99d6d9","5a1908fb468a402ba0789000ac3cb558650998b9ae940f3f97d501c6f0c13eee","cb84f9cd2f2c41ab4fd2e4e75aef6b951531f666f4dad48b26d1439876fe7c6d","b4845847318849fda24cfb8a926481267c44aba13ecae9a87612039589de41ff","0069e592359f82aa4a749d96341dd05d722289fd3163b73135956b64f3859f29","f100279f4e9218e247a695186387c5760c95201878e334a36a640b5aeca32591","53635f3e369dcefb22b279a65b2b2a97f4468dc6ece5c73015acf0dfd3e3fce8","111d2707e299ce785c68ed62543fe4e60d8a3783831c79294a8b3ef10feebda4","bd7cb3619d2c5b73defbbdada3b0998bf811836d4ec422cb4d622d953e22bf9e","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","3fc7c6bc770af7c3baad2fd5a15e469e8c6d0daf27e6e70c71602c4485ec298a","778cbab406cb9061671fcd26cee039e353e6461e7fc59bfe73dfa239282977e8","4cb3888dd3407f1b59430087b0a2dfb370ead7be67eb29f47bd8254058bb0530","7f7bc2ac8dd3e5f61c892591df33db7df55cc7f11cde5facae9bfb50858422e4","aabe8a1cf992b5f4d1f3c32436ce86a3b4bc53e5ff8508d17f7af39363ece4a1","0a8756869fdf7b830eaff19569fc0f914ed7ed0273633215dde7a1d45563695b","c67a8968a66c1ad3355bebbde781caf590c2244b5b9ac3d42b30ada49777aafb","e1ab04a9cf673edad359a19c1633ed3e3c022c48d0c9d4bf2975e85e00623bc9","83235dbd88ee5802fb486cc7c6b366bcc847d42a97d48f8caa75037deb77f1ad","7bdecc687401ec2d0b99b3327516c579452f2b42cb3ad49b2010e95c6b08ad33","f924ee8f634f0963b64c4e0e1e851b07cba783930e55c0e25db29cd87d5a5614","d9c0f9c63660fb591939b3d58f64a434d6dba8b5c4c7d61499d56902232a1075","1c3cb9ed79470327f8014f05b4c2dd6ac9440bf197439778cbefce4971669038","65d3a8f424faf3b13daeb790292090abc300bc2c930c18b161c2e3e997a9d142","d4f2080f9ce4d7c5a42f4b6708745ec1144ee533e739749512fe1ee4eb638c62","4987c8404e9021d5176f7d76c62694fbaabb680e59d6e21c8f22c4cae30a08d6","6f7ad3f0a5c37dc2a3b6ebe735216b29568ad0550fb086a6ecf0924a09f5b03e","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"d32f90e6cf32e99c86009b5f79fa50bc750fe54e17137d9bb029c377a2822ee2","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"3dd49afd822c82b63b3905a13e22240f34cf367aea4f4dd0e6564f4bddcb8370","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","93db4c949a785a3dbef7f5e08523be538e468c580dd276178b818e761b3b68cd","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"6e335a70826a634c5a1a1fa36a2dacbf3712ef2be7a517540ae1de8a1e8ea4f6","affectsGlobalScope":true},"576115ea69691c96f8f2b9fcfde5d0fb9b5f047dfa7dec242ebc08694c3b3190","df8529626079d6f9d5d3cd7b6fb7db9cda5a3118d383d8cd46c52aadb59593e7","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","3122a3f1136508a27a229e0e4e2848299028300ffa11d0cdfe99df90c492fe20","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","d0cc270398605df704892142947b7b90e7b0ae354523dd2e1ae9a185a06440e7",{"version":"8c30d54a10914cecc89f0ae444e8a3786a39f1ab33640274f85232127aa3e49e","affectsGlobalScope":true},"fe6dba0e8c69f2b244e3da38e53dd2cc9e51b2543e647e805396af73006613f7","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"5810080a0da989a944d3b691b7b479a4a13c75947fb538abb8070710baa5ccee","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","8bbe7e6c5844e38754c041b52e3d90f7bbd5a0d60739daf30805c92e4f0c65c6","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"99822adc2defda34dc1b28b727577ec7c098d878d713157dbe90d212c6bf5e58","affectsGlobalScope":true},{"version":"8a985c7d30aea82342d5017730b546bb2b734fe37a2684ca55d4734deb019d58","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"4d06f3abc2a6aae86f1be39e397372f74fb6e7964f594d645926b4a3419cc15d","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4905d61a3e1e9b12e12dbf8660fc8d2f085734da6da8d725f395bf41a04853d6","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"1fe4f59d471c69fd533049505081f7e5d6d56486416b12aafb22ba9616034ab7","affectsGlobalScope":true}],"root":[[58,114]],"options":{"allowSyntheticDefaultImports":true,"declaration":false,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":4,"useDefineForClassFields":false},"fileIdsList":[[161],[161,171],[161,173,176],[115,161],[118,161],[119,124,152,161],[120,131,132,139,149,160,161],[120,121,131,139,161],[122,161],[123,124,132,140,161],[124,149,157,161],[125,127,131,139,161],[126,161],[127,128,161],[131,161],[129,131,161],[131,132,133,149,160,161],[131,132,133,146,149,152,161],[161,165],[127,131,134,139,149,160,161],[131,132,134,135,139,149,157,160,161],[134,136,149,157,160,161],[115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167],[131,137,161],[138,160,161,165],[127,131,139,149,161],[140,161],[141,161],[118,142,161],[143,159,161,165],[144,161],[145,161],[131,146,147,161],[146,148,161,163],[119,131,149,150,151,152,161],[119,149,151,161],[149,150,161],[152,161],[153,161],[118,149,161],[131,155,156,161],[155,156,161],[124,139,149,157,161],[158,161],[139,159,161],[119,134,145,160,161],[124,161],[149,161,162],[161,163],[161,164],[119,124,131,133,142,149,160,161,163,165],[149,161,166],[161,169,175],[161,173],[161,170,174],[161,172],[48,161],[47,50,161],[49,51,52,53,54,55,161],[56,161],[47,161],[46,47,57,63,161],[46,47,67,161],[46,47,62,161],[46,47,63,70,71,161],[46,47,63,161],[46,47,161],[46,161],[46,57,58,161],[46,65,161],[46,76,77,78,79,80,81,82,83,161],[46,62,63,64,65,66,67,68,69,72,73,74,75,84,86,88,89,90,91,92,93,94,161],[46,47,57,58,59,65,161],[46,47,57,58,59,60,61,161],[46,58,62,161],[46,47,58,59,161],[46,58,66,161],[46,47,57,66,87,161],[46,47,66,87,161],[46,47,57,58,59,60,85,161],[46,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,161],[46,47,57,58,60,65,85,87,161]],"referencedMap":[[47,1],[169,1],[172,2],[171,1],[177,3],[115,4],[116,4],[118,5],[119,6],[120,7],[121,8],[122,9],[123,10],[124,11],[125,12],[126,13],[127,14],[128,14],[130,15],[129,16],[131,15],[132,17],[133,18],[117,19],[167,1],[134,20],[135,21],[136,22],[168,23],[137,24],[138,25],[139,26],[140,27],[141,28],[142,29],[143,30],[144,31],[145,32],[146,33],[147,33],[148,34],[149,35],[151,36],[150,37],[152,38],[153,39],[154,40],[155,41],[156,42],[157,43],[158,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[170,1],[176,53],[174,54],[175,55],[173,56],[46,1],[44,1],[45,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[23,1],[20,1],[21,1],[22,1],[24,1],[25,1],[26,1],[5,1],[27,1],[28,1],[29,1],[30,1],[6,1],[34,1],[31,1],[32,1],[33,1],[35,1],[7,1],[36,1],[41,1],[42,1],[37,1],[38,1],[39,1],[40,1],[1,1],[43,1],[50,1],[49,57],[51,58],[52,1],[53,57],[56,59],[54,1],[55,1],[57,60],[48,61],[64,62],[68,63],[69,64],[72,65],[73,66],[74,63],[97,1],[75,64],[70,67],[58,68],[59,69],[87,70],[84,71],[76,68],[77,68],[78,68],[79,68],[80,68],[82,68],[81,68],[83,68],[95,72],[66,73],[62,74],[96,67],[63,75],[65,76],[67,77],[89,66],[91,63],[93,78],[94,79],[92,63],[86,80],[90,62],[98,68],[99,68],[100,68],[101,68],[102,68],[103,68],[104,68],[113,81],[112,68],[107,68],[110,68],[111,68],[109,68],[105,68],[114,68],[108,68],[106,68],[61,68],[85,68],[71,68],[60,68],[88,82]],"exportedModulesMap":[[47,1],[169,1],[172,2],[171,1],[177,3],[115,4],[116,4],[118,5],[119,6],[120,7],[121,8],[122,9],[123,10],[124,11],[125,12],[126,13],[127,14],[128,14],[130,15],[129,16],[131,15],[132,17],[133,18],[117,19],[167,1],[134,20],[135,21],[136,22],[168,23],[137,24],[138,25],[139,26],[140,27],[141,28],[142,29],[143,30],[144,31],[145,32],[146,33],[147,33],[148,34],[149,35],[151,36],[150,37],[152,38],[153,39],[154,40],[155,41],[156,42],[157,43],[158,44],[159,45],[160,46],[161,47],[162,48],[163,49],[164,50],[165,51],[166,52],[170,1],[176,53],[174,54],[175,55],[173,56],[46,1],[44,1],[45,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[23,1],[20,1],[21,1],[22,1],[24,1],[25,1],[26,1],[5,1],[27,1],[28,1],[29,1],[30,1],[6,1],[34,1],[31,1],[32,1],[33,1],[35,1],[7,1],[36,1],[41,1],[42,1],[37,1],[38,1],[39,1],[40,1],[1,1],[43,1],[50,1],[49,57],[51,58],[52,1],[53,57],[56,59],[54,1],[55,1],[57,60],[48,61],[64,62],[68,63],[69,64],[72,65],[73,66],[74,63],[97,1],[75,64],[70,67],[58,68],[59,69],[87,70],[84,71],[76,68],[77,68],[78,68],[79,68],[80,68],[82,68],[81,68],[83,68],[95,72],[66,73],[62,74],[96,67],[63,75],[65,76],[67,77],[89,66],[91,63],[93,78],[94,79],[92,63],[86,80],[90,62],[98,68],[99,68],[100,68],[101,68],[102,68],[103,68],[104,68],[113,81],[112,68],[107,68],[110,68],[111,68],[109,68],[105,68],[114,68],[108,68],[106,68],[61,68],[85,68],[71,68],[60,68],[88,82]],"semanticDiagnosticsPerFile":[47,169,172,171,177,115,116,118,119,120,121,122,123,124,125,126,127,128,130,129,131,132,133,117,167,134,135,136,168,137,138,139,140,141,142,143,144,145,146,147,148,149,151,150,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,170,176,174,175,173,46,44,45,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,34,31,32,33,35,7,36,41,42,37,38,39,40,1,43,50,49,51,52,53,56,54,55,57,48,64,68,69,72,73,74,97,75,70,58,59,87,84,76,77,78,79,80,82,81,83,95,66,62,96,63,65,67,89,91,93,94,92,86,90,98,99,100,101,102,103,104,113,112,107,110,111,109,105,114,108,106,61,85,71,60,88]},"version":"5.1.6"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.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.es2017.date.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.intl.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.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.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@hatiolab/things-scene/things-scene.d.ts","../../api/dist/src/types.d.ts","../../api/dist/src/graphql/board.d.ts","../../../node_modules/zen-observable-ts/module.d.ts","../../api/dist/src/graphql/data-subscription.d.ts","../../api/dist/src/graphql/favorite-board.d.ts","../../api/dist/src/graphql/group.d.ts","../../api/dist/src/graphql/scenario.d.ts","../../api/dist/src/graphql/theme.d.ts","../../api/dist/src/graphql/index.d.ts","../../api/dist/src/index.d.ts","../src/features/mcs-status-default.ts","../src/features/mcs-status-mixin.ts","../src/utils/get-locale.ts","../src/utils/safe-round.ts","../src/utils/round-rect.ts","../src/mcs-machine.ts","../src/mcs-transport.ts","../src/agv-line.ts","../src/mcs-unit.ts","../src/mcs-carrier-holder.ts","../src/mcs-vehicle.ts","../src/agv.ts","../src/buffer.ts","../src/features/conveyor-mixin.ts","../src/utils/normalize-angle.ts","../src/conveyor-join.ts","../src/conveyor.ts","../src/crane.ts","../src/equipment.ts","../src/groups/mcs-acs.ts","../src/groups/mcs-bcs.ts","../src/groups/mcs-ccs.ts","../src/groups/mcs-ecs.ts","../src/groups/mcs-ocs.ts","../src/groups/mcs-scs.ts","../src/groups/mcs-path.ts","../src/groups/mcs-shape.ts","../src/groups/index.ts","../src/utils/get-value-on-ranges.ts","../src/stocker-capacity-bar.ts","../src/features/mcs-zone-mixin.ts","../src/zone-capacity-bar.ts","../src/oht-line.ts","../src/stocker.ts","../src/oht.ts","../src/shuttle.ts","../src/port.ts","../src/shelf.ts","../src/index.ts","../src/mcs-popup.ts","../src/editors/index.ts","../src/templates/agv-line.ts","../src/templates/agv.ts","../src/templates/buffer.ts","../src/templates/conveyor.ts","../src/templates/crane.ts","../src/templates/data-subscription.js","../src/templates/equipment.ts","../src/templates/stocker-capacity-bar.ts","../src/templates/zone-capacity-bar.ts","../src/templates/oht.ts","../src/templates/stocker.ts","../src/templates/shuttle.ts","../src/templates/port.ts","../src/templates/shelf.ts","../src/templates/oht-line.ts","../src/templates/index.ts","../src/templates/stocker-capacity-circle.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.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/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.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/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/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.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/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"2ac9cdcfb8f8875c18d14ec5796a8b029c426f73ad6dc3ffb580c228b58d1c44","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"0075fa5ceda385bcdf3488e37786b5a33be730e8bc4aa3cf1e78c63891752ce8","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"09226e53d1cfda217317074a97724da3e71e2c545e18774484b61562afc53cd2","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"8b41361862022eb72fcc8a7f34680ac842aca802cf4bc1f915e8c620c9ce4331","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"f35a831e4f0fe3b3697f4a0fe0e3caa7624c92b78afbecaf142c0f93abfaf379","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","55d162e1a8bac3a519c76ade32091af8c2a8fea9ad25443f84b9326166947afa","3fa5e64e94d423eba10a9e83afdecfdd709a0aabafa492113133917a30a3148c","e7e1634c7b58a18b4d5cd00a52a595200311be8b46fa218d65f83c5caf78a7cc","9b51dd74a388c13e157c457cc39d59dc2aae2134f6a21cc6b695219932cb8817","7a1d0c7c54fb2bda7480b4bd0a23787ffe77fc528d6bad79c1d0407bff9bdeeb","df2daeaeaeb13ff90da550ad449fd1d106c1d8d466a01062a8c094d0d5a29a04","372c0725ab3e1a8de4e92fdb51a8119cd85b92a5021e401c33a40e7b8f9ffeb7","308b74d903d587a5e94d07285f29aad2f2f434b6e8159a32a10c5c55304c827a","e423710b108fe366e94cc01fa9e475dde02432c5655c6e44c388a9f8566dba5b","de779aeeeb503c11cf88e3fd87c02219667926f7f0f304476bcdb436a0faed83","0dba9e788784d32f789bdc16c5325cea75e114a889e908e0261bada8f634539a","130d455ad7532745bb2ad2b359fbb64f45be1ff6868fa2fb7cbc80699f143a57","206320767d3f2c390044213486a6f6a6ca3b2f7b6fee87b016907753753d3cbb","09f31f96e0103f98e1d2c6d85bb5a9d918560867a389c2ebd982b36e202f4b7a","b80de81ca95b5ff6d8206c7016342e472166bfea4389d179363b1bdf7b5c7428","4ea71e852889a6561d0495aa35ce148ab10df95b7f40d56853e0d1d05c3fd2e3","b63216d835e9524da85846168a97ce634c21baaa0374b7765cccd3efe08de895","3be77ba21004eaa812accc57bdea8551c539d02b4c7469364e50e7ee5386490b","71e2dbd3506598977f949865e84458a1760212338c4cd086e21c2d81bc23b5ec","828d2cbb68c7fc74b675a3e00f01d22b33b3f7be4cc20a36789337da8f4d4230","23e4d3cd23262af4623f30680cd1935da3daddaf77c4b98f504573dc1ba38462","d0100634f723a618d19a0181ea309675ab23879c38228353849eb955f8061e7b","5dad462caf73054736dd590652620cb2ee3f3431e8e029fb91d27b79f359788d","9735957bfaaff9481953a948ede5b75c0e19c00570c0b1560cd124abfef31413","7c962f32106dbd4aed7cae530c476d35e7b3b146cb8919a0d642305de53bbcae","4c8d2abfc10f175bee954963c1999e804f737138a156d25bf33f7fcc96b6a4ff","2a7d3810be50a37cc4fd0943d3041c9dbd6177c132d5c011cc4efee89950d695","cc19e2b2224a86a0966b3ac59b52fbedf29160140520226d31f80e8121754453","7e94d0f87a7574274db5e9a4c88c229853dad6c93a19470e1d77a80c0e69f03f","f9982f39463e0ad7bc26821ea65ccf0f8e21b122e3c7240cc38a9b41c8fc7dbe","5cf7bd99b4001ee01519cfe438b5243c4d599d147d12e3f17ab27c41eb5eb4f7","5061683e6ab299e3323dad880f12043e0c44bf5f617c496994891eace1ee2b0a","3a9b3ca027dd6a2eb3f287d1d8c07b6d5a2d4258b15e62ae9d43259521f30a86","7bfa04d191ef30a7396591f6099a36c22a9c1e012b44c75fa7053a66115a5224","104caacd4ff3469c86bb69f8629f6e03a660ae4216b7563ba00e5cc5d7e78196","9895951c9b18385c8bb5c22b48b5474da5eb174b3d172fa3fcc47a6996ef161e","240a586ed5a6c7ac321099817b6d9a9579dc5248df4a57c83840a78b0db86126","65ec7fa06330a7939286576d641c9fb3a2347b2cae0d23522147984eefa5b554","d5e6ea4290a454ebbd4df6cd547ea6cc8e34ea0bca87f1b1f5018cb6891efb87","d4fa7c1258363ef15cf546d98455c58f8df4cc4c8a5714f8e6c63eb5a4e6f6c8","857c67275defdd2e5af646500892493ba7dea78e1117826802b9cf6e6db4afc3","cd47ea48de4b7d7305fc1e93085108f32bf4b06ae93a7ca1c5edd6cacd4f3028","3788b15fba3b565f451e6f3b109e3b35c7187dc1b4cde0f024d2c4f8aa3099a6","5a1908fb468a402ba0789000ac3cb558650998b9ae940f3f97d501c6f0c13eee","cb84f9cd2f2c41ab4fd2e4e75aef6b951531f666f4dad48b26d1439876fe7c6d","a918ed37ab61eeb6b3098c64cb43571006fab6f59811fc6b0d6fb894ed28f43b","170a6b6fffd04f8c18a255ec94a0fe4a3f941314820df7adeef719b178d190b9","95954e76f094bb4da355c1a5e7b9c7ebb7b6c17c9991c8488c25da45d2dbd77a","98b8f68f6860a777d1e01ecd81951c8671a4f66129afca9798a8749daa53de8d","111d2707e299ce785c68ed62543fe4e60d8a3783831c79294a8b3ef10feebda4","787649875a0b611df24b3d736c0883342237a32c956ac1191d35a2b26aaba9a2","e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","3fc7c6bc770af7c3baad2fd5a15e469e8c6d0daf27e6e70c71602c4485ec298a","778cbab406cb9061671fcd26cee039e353e6461e7fc59bfe73dfa239282977e8","4cb3888dd3407f1b59430087b0a2dfb370ead7be67eb29f47bd8254058bb0530","7f7bc2ac8dd3e5f61c892591df33db7df55cc7f11cde5facae9bfb50858422e4","aabe8a1cf992b5f4d1f3c32436ce86a3b4bc53e5ff8508d17f7af39363ece4a1","0a8756869fdf7b830eaff19569fc0f914ed7ed0273633215dde7a1d45563695b","c67a8968a66c1ad3355bebbde781caf590c2244b5b9ac3d42b30ada49777aafb","e1ab04a9cf673edad359a19c1633ed3e3c022c48d0c9d4bf2975e85e00623bc9","83235dbd88ee5802fb486cc7c6b366bcc847d42a97d48f8caa75037deb77f1ad","7bdecc687401ec2d0b99b3327516c579452f2b42cb3ad49b2010e95c6b08ad33","f924ee8f634f0963b64c4e0e1e851b07cba783930e55c0e25db29cd87d5a5614","d9c0f9c63660fb591939b3d58f64a434d6dba8b5c4c7d61499d56902232a1075","1c3cb9ed79470327f8014f05b4c2dd6ac9440bf197439778cbefce4971669038","65d3a8f424faf3b13daeb790292090abc300bc2c930c18b161c2e3e997a9d142","d4f2080f9ce4d7c5a42f4b6708745ec1144ee533e739749512fe1ee4eb638c62","4987c8404e9021d5176f7d76c62694fbaabb680e59d6e21c8f22c4cae30a08d6","6f7ad3f0a5c37dc2a3b6ebe735216b29568ad0550fb086a6ecf0924a09f5b03e","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"d32f90e6cf32e99c86009b5f79fa50bc750fe54e17137d9bb029c377a2822ee2","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"3dd49afd822c82b63b3905a13e22240f34cf367aea4f4dd0e6564f4bddcb8370","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","93db4c949a785a3dbef7f5e08523be538e468c580dd276178b818e761b3b68cd","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"6e335a70826a634c5a1a1fa36a2dacbf3712ef2be7a517540ae1de8a1e8ea4f6","affectsGlobalScope":true},"576115ea69691c96f8f2b9fcfde5d0fb9b5f047dfa7dec242ebc08694c3b3190","df8529626079d6f9d5d3cd7b6fb7db9cda5a3118d383d8cd46c52aadb59593e7","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","3122a3f1136508a27a229e0e4e2848299028300ffa11d0cdfe99df90c492fe20","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","d0cc270398605df704892142947b7b90e7b0ae354523dd2e1ae9a185a06440e7",{"version":"0066ebbd0f4ef9656983a2017969afa6460879e894ebaf6f2969631ad9b5b430","affectsGlobalScope":true},"fe6dba0e8c69f2b244e3da38e53dd2cc9e51b2543e647e805396af73006613f7","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"5810080a0da989a944d3b691b7b479a4a13c75947fb538abb8070710baa5ccee","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","8904e5b670bbfc712dda607853de9227206e7dad93ac97109fe30875c5f12b78","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"99822adc2defda34dc1b28b727577ec7c098d878d713157dbe90d212c6bf5e58","affectsGlobalScope":true},{"version":"8a985c7d30aea82342d5017730b546bb2b734fe37a2684ca55d4734deb019d58","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"4d06f3abc2a6aae86f1be39e397372f74fb6e7964f594d645926b4a3419cc15d","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","5ba5b760345053acdf5beb1a9048ff43a51373f3d87849963779c1711ea7cbcc","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4905d61a3e1e9b12e12dbf8660fc8d2f085734da6da8d725f395bf41a04853d6","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"1fe4f59d471c69fd533049505081f7e5d6d56486416b12aafb22ba9616034ab7","affectsGlobalScope":true}],"root":[[59,116]],"options":{"allowSyntheticDefaultImports":true,"declaration":false,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":4,"useDefineForClassFields":false},"fileIdsList":[[163],[163,173],[163,175,178],[117,163],[120,163],[121,126,154,163],[122,133,134,141,151,162,163],[122,123,133,141,163],[124,163],[125,126,134,142,163],[126,151,159,163],[127,129,133,141,163],[128,163],[129,130,163],[133,163],[131,133,163],[133,134,135,151,162,163],[133,134,135,148,151,154,163],[163,167],[129,133,136,141,151,162,163],[133,134,136,137,141,151,159,162,163],[136,138,151,159,162,163],[117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169],[133,139,163],[140,162,163,167],[129,133,141,151,163],[142,163],[143,163],[120,144,163],[145,161,163,167],[146,163],[147,163],[133,148,149,163],[148,150,163,165],[121,133,151,152,153,154,163],[121,151,153,163],[151,152,163],[154,163],[155,163],[120,151,163],[133,157,158,163],[157,158,163],[126,141,151,159,163],[160,163],[141,161,163],[121,136,147,162,163],[126,163],[151,163,164],[140,163,165],[163,166],[121,126,133,135,144,151,162,163,165,167],[151,163,168],[163,171,177],[163,175],[163,172,176],[163,174],[49,163],[48,51,163],[50,52,53,54,55,56,163],[57,163],[48,163],[47,48,58,65,163],[47,48,63,69,163],[47,48,64,163],[47,48,65,72,73,163],[47,48,65,163],[47,48,163],[47,163],[47,58,59,163],[47,67,163],[47,78,79,80,81,82,83,84,85,163],[47,64,65,66,67,68,69,70,71,74,75,76,77,86,88,90,91,92,93,94,95,96,163],[47,48,58,59,60,67,163],[47,48,58,59,60,61,63,163],[47,48,62,163],[47,59,64,163],[47,48,59,60,163],[47,59,68,163],[47,48,58,63,68,89,163],[47,48,63,68,89,163],[47,48,58,59,60,62,63,87,163],[47,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,163],[47,62,163],[47,48,58,59,62,63,67,87,89,163]],"referencedMap":[[48,1],[171,1],[174,2],[173,1],[179,3],[117,4],[118,4],[120,5],[121,6],[122,7],[123,8],[124,9],[125,10],[126,11],[127,12],[128,13],[129,14],[130,14],[132,15],[131,16],[133,15],[134,17],[135,18],[119,19],[169,1],[136,20],[137,21],[138,22],[170,23],[139,24],[140,25],[141,26],[142,27],[143,28],[144,29],[145,30],[146,31],[147,32],[148,33],[149,33],[150,34],[151,35],[153,36],[152,37],[154,38],[155,39],[156,40],[157,41],[158,42],[159,43],[160,44],[161,45],[162,46],[163,47],[164,48],[165,49],[166,50],[167,51],[168,52],[172,1],[178,53],[176,54],[177,55],[175,56],[47,1],[45,1],[46,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[20,1],[24,1],[21,1],[22,1],[23,1],[25,1],[26,1],[27,1],[5,1],[28,1],[29,1],[30,1],[31,1],[6,1],[35,1],[32,1],[33,1],[34,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[1,1],[44,1],[51,1],[50,57],[52,58],[53,1],[54,57],[57,59],[55,1],[56,1],[58,60],[49,61],[66,62],[70,63],[71,64],[74,65],[75,66],[76,63],[99,1],[77,64],[72,67],[59,68],[60,69],[89,70],[86,71],[78,68],[79,68],[80,68],[81,68],[82,68],[84,68],[83,68],[85,68],[97,72],[68,73],[64,74],[98,75],[65,76],[67,77],[69,78],[91,66],[93,63],[95,79],[96,80],[94,63],[88,81],[92,62],[100,68],[101,68],[102,68],[103,68],[104,68],[105,68],[106,68],[115,82],[114,68],[109,68],[112,68],[113,68],[111,68],[107,68],[116,68],[110,68],[108,68],[61,68],[87,68],[73,68],[63,83],[62,68],[90,84]],"exportedModulesMap":[[48,1],[171,1],[174,2],[173,1],[179,3],[117,4],[118,4],[120,5],[121,6],[122,7],[123,8],[124,9],[125,10],[126,11],[127,12],[128,13],[129,14],[130,14],[132,15],[131,16],[133,15],[134,17],[135,18],[119,19],[169,1],[136,20],[137,21],[138,22],[170,23],[139,24],[140,25],[141,26],[142,27],[143,28],[144,29],[145,30],[146,31],[147,32],[148,33],[149,33],[150,34],[151,35],[153,36],[152,37],[154,38],[155,39],[156,40],[157,41],[158,42],[159,43],[160,44],[161,45],[162,46],[163,47],[164,48],[165,49],[166,50],[167,51],[168,52],[172,1],[178,53],[176,54],[177,55],[175,56],[47,1],[45,1],[46,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[4,1],[20,1],[24,1],[21,1],[22,1],[23,1],[25,1],[26,1],[27,1],[5,1],[28,1],[29,1],[30,1],[31,1],[6,1],[35,1],[32,1],[33,1],[34,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[1,1],[44,1],[51,1],[50,57],[52,58],[53,1],[54,57],[57,59],[55,1],[56,1],[58,60],[49,61],[66,62],[70,63],[71,64],[74,65],[75,66],[76,63],[99,1],[77,64],[72,67],[59,68],[60,69],[89,70],[86,71],[78,68],[79,68],[80,68],[81,68],[82,68],[84,68],[83,68],[85,68],[97,72],[68,73],[64,74],[98,75],[65,76],[67,77],[69,78],[91,66],[93,63],[95,79],[96,80],[94,63],[88,81],[92,62],[100,68],[101,68],[102,68],[103,68],[104,68],[105,68],[106,68],[115,82],[114,68],[109,68],[112,68],[113,68],[111,68],[107,68],[116,68],[110,68],[108,68],[61,68],[87,68],[73,68],[63,83],[62,68],[90,84]],"semanticDiagnosticsPerFile":[48,171,174,173,179,117,118,120,121,122,123,124,125,126,127,128,129,130,132,131,133,134,135,119,169,136,137,138,170,139,140,141,142,143,144,145,146,147,148,149,150,151,153,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,172,178,176,177,175,47,45,46,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,44,51,50,52,53,54,57,55,56,58,49,66,70,71,74,75,76,99,77,72,59,60,89,86,78,79,80,81,82,84,83,85,97,68,64,98,65,67,69,91,93,95,96,94,88,92,100,101,102,103,104,105,106,115,114,109,112,113,111,107,116,110,108,61,87,73,63,62,90]},"version":"5.2.2"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { safeRound } from './safe-round';
|
|
2
|
+
/**
|
|
3
|
+
* Draws a rounded rectangle using the current state of the canvas.
|
|
4
|
+
* If you omit the last three params, it will draw a rectangle
|
|
5
|
+
* outline with a 5 pixel border radius
|
|
6
|
+
* @param {CanvasRenderingContext2D} context
|
|
7
|
+
* @param {Number} x The top left x coordinate
|
|
8
|
+
* @param {Number} y The top left y coordinate
|
|
9
|
+
* @param {Number} width The width of the rectangle
|
|
10
|
+
* @param {Number} height The height of the rectangle
|
|
11
|
+
* @param {Number|Array<Number>} [radius = 0] The corner radius; It can also be an object
|
|
12
|
+
* to specify different radii for corners
|
|
13
|
+
* @param {Number} [radius.tl = 0] Top left
|
|
14
|
+
* @param {Number} [radius.tr = 0] Top right
|
|
15
|
+
* @param {Number} [radius.br = 0] Bottom right
|
|
16
|
+
* @param {Number} [radius.bl = 0] Bottom left
|
|
17
|
+
* @param {Boolean} [fill = false] Whether to fill the rectangle.
|
|
18
|
+
* @param {Boolean} [stroke = true] Whether to stroke the rectangle.
|
|
19
|
+
*/
|
|
20
|
+
export function roundRect(context, x, y, width, height, round = 0) {
|
|
21
|
+
round = safeRound(round, width, height);
|
|
22
|
+
if (round > 0) {
|
|
23
|
+
context.moveTo(x + round, y);
|
|
24
|
+
context.arcTo(x + width, y, x + width, y + height, round);
|
|
25
|
+
context.arcTo(x + width, y + height, x, y + height, round);
|
|
26
|
+
context.arcTo(x, y + height, x, y, round);
|
|
27
|
+
context.arcTo(x, y, x + width, y, round);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
context.rect(x, y, width, height);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=round-rect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"round-rect.js","sourceRoot":"","sources":["../../src/utils/round-rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,SAAS,CACvB,OAAiC,EACjC,CAAS,EACT,CAAS,EACT,KAAa,EACb,MAAc,EACd,QAAgB,CAAC;IAEjB,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;IAEvC,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAA;QAC5B,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAA;QACzD,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAA;QAC1D,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;QACzC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;KACzC;SAAM;QACL,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;KAClC;AACH,CAAC","sourcesContent":["import { safeRound } from './safe-round'\n\n/**\n * Draws a rounded rectangle using the current state of the canvas.\n * If you omit the last three params, it will draw a rectangle\n * outline with a 5 pixel border radius\n * @param {CanvasRenderingContext2D} context\n * @param {Number} x The top left x coordinate\n * @param {Number} y The top left y coordinate\n * @param {Number} width The width of the rectangle\n * @param {Number} height The height of the rectangle\n * @param {Number|Array<Number>} [radius = 0] The corner radius; It can also be an object\n * to specify different radii for corners\n * @param {Number} [radius.tl = 0] Top left\n * @param {Number} [radius.tr = 0] Top right\n * @param {Number} [radius.br = 0] Bottom right\n * @param {Number} [radius.bl = 0] Bottom left\n * @param {Boolean} [fill = false] Whether to fill the rectangle.\n * @param {Boolean} [stroke = true] Whether to stroke the rectangle.\n */\nexport function roundRect(\n context: CanvasRenderingContext2D,\n x: number,\n y: number,\n width: number,\n height: number,\n round: number = 0\n) {\n round = safeRound(round, width, height)\n\n if (round > 0) {\n context.moveTo(x + round, y)\n context.arcTo(x + width, y, x + width, y + height, round)\n context.arcTo(x + width, y + height, x, y + height, round)\n context.arcTo(x, y + height, x, y, round)\n context.arcTo(x, y, x + width, y, round)\n } else {\n context.rect(x, y, width, height)\n }\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import { safeRound } from './utils/safe-round';
|
|
|
5
5
|
import { getVaueOnRanges } from './utils/get-value-on-ranges';
|
|
6
6
|
import { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin';
|
|
7
7
|
import MCSUnit from './mcs-unit';
|
|
8
|
+
import { roundRect } from './utils/round-rect';
|
|
8
9
|
const NATURE = {
|
|
9
10
|
mutable: false,
|
|
10
11
|
resizable: true,
|
|
@@ -113,7 +114,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
113
114
|
// gauge background
|
|
114
115
|
context.beginPath();
|
|
115
116
|
context.fillStyle = fillStyle;
|
|
116
|
-
|
|
117
|
+
roundRect(context, 0, 0, width, height, round);
|
|
117
118
|
context.fill();
|
|
118
119
|
context.stroke();
|
|
119
120
|
context.clip();
|
|
@@ -149,7 +150,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
149
150
|
context.setLineDash([]);
|
|
150
151
|
context.strokeStyle = strokeStyle;
|
|
151
152
|
context.lineWidth = lineWidth;
|
|
152
|
-
|
|
153
|
+
roundRect(context, 0, 0, width, height, round);
|
|
153
154
|
context.stroke();
|
|
154
155
|
context.beginPath();
|
|
155
156
|
context.translate(-left, -top);
|
|
@@ -163,7 +164,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
163
164
|
// gauge background
|
|
164
165
|
context.beginPath();
|
|
165
166
|
context.fillStyle = fillStyle;
|
|
166
|
-
|
|
167
|
+
roundRect(context, 0, 0, width, height, round);
|
|
167
168
|
context.fill();
|
|
168
169
|
context.clip();
|
|
169
170
|
// gauge foreground
|
|
@@ -198,7 +199,7 @@ export default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {
|
|
|
198
199
|
context.setLineDash([]);
|
|
199
200
|
context.strokeStyle = strokeStyle;
|
|
200
201
|
context.lineWidth = lineWidth;
|
|
201
|
-
|
|
202
|
+
roundRect(context, 0, 0, width, height, round);
|
|
202
203
|
context.stroke();
|
|
203
204
|
context.beginPath();
|
|
204
205
|
context.translate(-left, -top);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone-capacity-bar.js","sourceRoot":"","sources":["../src/zone-capacity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AC,IAAI,GAAG,CAAA;QAC9C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,GAAG,CAAA;QAClD,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAE9C,IAAI,CAAC,QAAQ,CAAC;YACZ,YAAY;YACZ,WAAW;YACX,aAAa;YACb,YAAY;YACZ,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;SACtD,CAAC,CAAA;IACJ,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA","sourcesContent":["import { Component, ComponentNature, POSITION, Properties } from '@hatiolab/things-scene'\nimport { themesColorRange } from '@fmsim/api'\nimport { LEGEND_CAPACITY } from './features/mcs-status-default'\nimport { safeRound } from './utils/safe-round'\nimport { getVaueOnRanges } from './utils/get-value-on-ranges'\nimport { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin'\nimport MCSUnit from './mcs-unit'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n ...MCSZoneMixinProperties,\n {\n type: 'select',\n label: 'legend-name',\n name: 'legendName',\n property: {\n options: themesColorRange\n }\n },\n {\n type: 'number',\n name: 'currentUsage',\n label: 'current-usage'\n },\n {\n type: 'number',\n name: 'highWatermark',\n label: 'high-watermark'\n },\n {\n type: 'number',\n name: 'lowWatermark',\n label: 'low-watermark'\n },\n {\n type: 'number',\n name: 'maxCapacity',\n label: 'max-capacity'\n },\n {\n type: 'boolean',\n name: 'fullup',\n label: 'fullup'\n },\n {\n type: 'number',\n label: 'round',\n name: 'round',\n property: {\n min: 0\n }\n },\n {\n type: 'hidden',\n name: 'usage',\n label: 'usage'\n }\n ],\n 'value-property': 'usage'\n}\n\nvar controlHandler = {\n ondragmove: function (point: POSITION, index: number, component: Component) {\n var { left, top, width, height } = component.model\n\n var transcoorded = component.transcoordP2S(point.x, point.y)\n var round = ((transcoorded.x - left) / (width / 2)) * 100\n\n round = safeRound(round, width, height)\n\n component.set({\n round\n })\n }\n}\n\nexport default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {\n static get nature() {\n return NATURE\n }\n\n get controls() {\n var { left, top, width, round, height } = this.state\n round = round == undefined ? 0 : safeRound(round, width, height)\n\n return [\n {\n x: left + (width / 2) * (round / 100),\n y: top,\n handler: controlHandler\n }\n ]\n }\n\n getLegendFallback() {\n return LEGEND_CAPACITY\n }\n\n get statusColor() {\n const { fullup } = this.state\n return fullup ? 'red' : getVaueOnRanges(this.usage, this.legend)\n }\n\n get text() {\n return this.usage + '%'\n }\n\n render(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n\n if (width >= height) {\n this.renderLandscape(context)\n } else {\n this.renderPortrait(context)\n }\n }\n\n renderLandscape(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { highWatermark, lowWatermark, lineWidth, strokeStyle, round, fillStyle = 'white' } = this.state\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n context.roundRect(0, 0, width, height, round)\n\n context.fill()\n context.stroke()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, 0, (width / 100) * this.usage, height)\n context.fill()\n\n // high-watermark level\n\n if (highWatermark && highWatermark > 0 && highWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const x = (width / 100) * highWatermark\n context.moveTo(x, 0)\n context.lineTo(x, height)\n\n context.stroke()\n }\n\n // low-watermark level\n\n if (lowWatermark && lowWatermark > 0 && lowWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const x = (width / 100) * lowWatermark\n context.moveTo(x, 0)\n context.lineTo(x, height)\n\n context.stroke()\n }\n\n // gauge outline\n context.beginPath()\n\n context.setLineDash([])\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n context.roundRect(0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n renderPortrait(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { highWatermark, lowWatermark, lineWidth, strokeStyle, round, fillStyle = 'white' } = this.state\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n context.roundRect(0, 0, width, height, round)\n\n context.fill()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, height - (height / 100) * this.usage, width, (height / 100) * this.usage)\n context.fill()\n\n // high-watermark level\n\n if (highWatermark && highWatermark > 0 && highWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const y = height - (height / 100) * highWatermark\n context.moveTo(0, y)\n context.lineTo(width, y)\n\n context.stroke()\n }\n\n // low-watermark level\n\n if (lowWatermark && lowWatermark > 0 && lowWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const y = height - (height / 100) * lowWatermark\n context.moveTo(0, y)\n context.lineTo(width, y)\n\n context.stroke()\n }\n\n // gauge outline\n context.beginPath()\n\n context.setLineDash([])\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n context.roundRect(0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n get usage() {\n const { currentUsage = 0, maxCapacity = 100 } = this.state\n return Math.round((currentUsage / maxCapacity) * 100)\n }\n\n set usage(usage: number) {\n // intentionally have done nothing\n }\n\n onchangeData(after: Properties, before: Properties): void {\n const {\n CURRENTCAPACITY = 0,\n MAXCAPACITY = 100,\n HIGHWATERMARK = 100,\n LOWWATERMARK = 0,\n FULLUP = false\n } = typeof this.data == 'object' ? this.data : {}\n\n const currentUsage = Number(CURRENTCAPACITY) || 0\n const maxCapacity = Number(MAXCAPACITY) || 100\n const highWatermark = Number(HIGHWATERMARK) || 100\n const lowWatermark = Number(LOWWATERMARK) || 0\n\n this.setState({\n currentUsage,\n maxCapacity,\n highWatermark,\n lowWatermark,\n fullup: FULLUP,\n usage: Math.round((currentUsage / maxCapacity) * 100)\n })\n }\n}\n\nComponent.register('ZoneCapacityBar', ZoneCapacityBar)\n"]}
|
|
1
|
+
{"version":3,"file":"zone-capacity-bar.js","sourceRoot":"","sources":["../src/zone-capacity-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyC,MAAM,wBAAwB,CAAA;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,OAAO,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,GAAG,sBAAsB;QACzB;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE;gBACR,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,eAAe;SACvB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI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vD,CAAC;IAED,IAAI,KAAK,CAAC,KAAa;QACrB,kCAAkC;IACpC,CAAC;IAED,YAAY,CAAC,KAAiB,EAAE,MAAkB;QAChD,MAAM,EACJ,eAAe,GAAG,CAAC,EACnB,WAAW,GAAG,GAAG,EACjB,aAAa,GAAG,GAAG,EACnB,YAAY,GAAG,CAAC,EAChB,MAAM,GAAG,KAAK,EACf,GAAG,OAAO,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QAEjD,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAA;QACjD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,CAAA;QAC9C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,IAAI,GAAG,CAAA;QAClD,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAE9C,IAAI,CAAC,QAAQ,CAAC;YACZ,YAAY;YACZ,WAAW;YACX,aAAa;YACb,YAAY;YACZ,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC;SACtD,CAAC,CAAA;IACJ,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA","sourcesContent":["import { Component, ComponentNature, POSITION, Properties } from '@hatiolab/things-scene'\nimport { themesColorRange } from '@fmsim/api'\nimport { LEGEND_CAPACITY } from './features/mcs-status-default'\nimport { safeRound } from './utils/safe-round'\nimport { getVaueOnRanges } from './utils/get-value-on-ranges'\nimport { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin'\nimport MCSUnit from './mcs-unit'\nimport { roundRect } from './utils/round-rect'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n ...MCSZoneMixinProperties,\n {\n type: 'select',\n label: 'legend-name',\n name: 'legendName',\n property: {\n options: themesColorRange\n }\n },\n {\n type: 'number',\n name: 'currentUsage',\n label: 'current-usage'\n },\n {\n type: 'number',\n name: 'highWatermark',\n label: 'high-watermark'\n },\n {\n type: 'number',\n name: 'lowWatermark',\n label: 'low-watermark'\n },\n {\n type: 'number',\n name: 'maxCapacity',\n label: 'max-capacity'\n },\n {\n type: 'boolean',\n name: 'fullup',\n label: 'fullup'\n },\n {\n type: 'number',\n label: 'round',\n name: 'round',\n property: {\n min: 0\n }\n },\n {\n type: 'hidden',\n name: 'usage',\n label: 'usage'\n }\n ],\n 'value-property': 'usage'\n}\n\nvar controlHandler = {\n ondragmove: function (point: POSITION, index: number, component: Component) {\n var { left, top, width, height } = component.model\n\n var transcoorded = component.transcoordP2S(point.x, point.y)\n var round = ((transcoorded.x - left) / (width / 2)) * 100\n\n round = safeRound(round, width, height)\n\n component.set({\n round\n })\n }\n}\n\nexport default class ZoneCapacityBar extends MCSZoneMixin(MCSUnit) {\n static get nature() {\n return NATURE\n }\n\n get controls() {\n var { left, top, width, round, height } = this.state\n round = round == undefined ? 0 : safeRound(round, width, height)\n\n return [\n {\n x: left + (width / 2) * (round / 100),\n y: top,\n handler: controlHandler\n }\n ]\n }\n\n getLegendFallback() {\n return LEGEND_CAPACITY\n }\n\n get statusColor() {\n const { fullup } = this.state\n return fullup ? 'red' : getVaueOnRanges(this.usage, this.legend)\n }\n\n get text() {\n return this.usage + '%'\n }\n\n render(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n\n if (width >= height) {\n this.renderLandscape(context)\n } else {\n this.renderPortrait(context)\n }\n }\n\n renderLandscape(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { highWatermark, lowWatermark, lineWidth, strokeStyle, round, fillStyle = 'white' } = this.state\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n roundRect(context, 0, 0, width, height, round)\n\n context.fill()\n context.stroke()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, 0, (width / 100) * this.usage, height)\n context.fill()\n\n // high-watermark level\n\n if (highWatermark && highWatermark > 0 && highWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const x = (width / 100) * highWatermark\n context.moveTo(x, 0)\n context.lineTo(x, height)\n\n context.stroke()\n }\n\n // low-watermark level\n\n if (lowWatermark && lowWatermark > 0 && lowWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const x = (width / 100) * lowWatermark\n context.moveTo(x, 0)\n context.lineTo(x, height)\n\n context.stroke()\n }\n\n // gauge outline\n context.beginPath()\n\n context.setLineDash([])\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n roundRect(context, 0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n renderPortrait(context: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { highWatermark, lowWatermark, lineWidth, strokeStyle, round, fillStyle = 'white' } = this.state\n\n context.save()\n context.translate(left, top)\n\n // gauge background\n context.beginPath()\n\n context.fillStyle = fillStyle\n roundRect(context, 0, 0, width, height, round)\n\n context.fill()\n\n context.clip()\n\n // gauge foreground\n context.beginPath()\n\n context.fillStyle = this.statusColor!\n\n context.rect(0, height - (height / 100) * this.usage, width, (height / 100) * this.usage)\n context.fill()\n\n // high-watermark level\n\n if (highWatermark && highWatermark > 0 && highWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const y = height - (height / 100) * highWatermark\n context.moveTo(0, y)\n context.lineTo(width, y)\n\n context.stroke()\n }\n\n // low-watermark level\n\n if (lowWatermark && lowWatermark > 0 && lowWatermark < 100) {\n context.beginPath()\n\n context.strokeStyle = 'black'\n context.lineWidth = 1\n context.setLineDash([3])\n\n const y = height - (height / 100) * lowWatermark\n context.moveTo(0, y)\n context.lineTo(width, y)\n\n context.stroke()\n }\n\n // gauge outline\n context.beginPath()\n\n context.setLineDash([])\n context.strokeStyle = strokeStyle\n context.lineWidth = lineWidth\n roundRect(context, 0, 0, width, height, round)\n context.stroke()\n\n context.beginPath()\n\n context.translate(-left, -top)\n context.restore()\n }\n\n get usage() {\n const { currentUsage = 0, maxCapacity = 100 } = this.state\n return Math.round((currentUsage / maxCapacity) * 100)\n }\n\n set usage(usage: number) {\n // intentionally have done nothing\n }\n\n onchangeData(after: Properties, before: Properties): void {\n const {\n CURRENTCAPACITY = 0,\n MAXCAPACITY = 100,\n HIGHWATERMARK = 100,\n LOWWATERMARK = 0,\n FULLUP = false\n } = typeof this.data == 'object' ? this.data : {}\n\n const currentUsage = Number(CURRENTCAPACITY) || 0\n const maxCapacity = Number(MAXCAPACITY) || 100\n const highWatermark = Number(HIGHWATERMARK) || 100\n const lowWatermark = Number(LOWWATERMARK) || 0\n\n this.setState({\n currentUsage,\n maxCapacity,\n highWatermark,\n lowWatermark,\n fullup: FULLUP,\n usage: Math.round((currentUsage / maxCapacity) * 100)\n })\n }\n}\n\nComponent.register('ZoneCapacityBar', ZoneCapacityBar)\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fmsim/machine",
|
|
3
3
|
"description": "Layout View를 구성하는 설비(machine)들과 유닛을 구현한 모듈입니다.",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.79",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"things-scene": true,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"migration": "things-factory-migration"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@fmsim/api": "^0.0.
|
|
28
|
+
"@fmsim/api": "^0.0.79",
|
|
29
29
|
"@hatiolab/things-scene": "^3.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"prettier --write"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "591d5d059097519f3e300f7813c32a751831f446"
|
|
59
59
|
}
|
package/src/agv.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, ComponentNature, Properties } from '@hatiolab/things-scene'
|
|
2
2
|
import MCSVehicle from './mcs-vehicle'
|
|
3
|
+
import { roundRect } from './utils/round-rect'
|
|
3
4
|
|
|
4
5
|
const NATURE: ComponentNature = {
|
|
5
6
|
mutable: false,
|
|
@@ -31,8 +32,8 @@ export default class AGV extends MCSVehicle {
|
|
|
31
32
|
ctx.setLineDash([])
|
|
32
33
|
|
|
33
34
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
roundRect(ctx, 1, 0, width - 2, height, radius)
|
|
36
|
+
roundRect(ctx, GAP + 1, GAP, width - (GAP + 1) * 2, height - GAP * 2, radius - 1)
|
|
36
37
|
|
|
37
38
|
ctx.fill()
|
|
38
39
|
ctx.stroke()
|
package/src/crane.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, ComponentNature, Properties } from '@hatiolab/things-scene'
|
|
2
2
|
import MCSVehicle from './mcs-vehicle'
|
|
3
|
+
import { roundRect } from './utils/round-rect'
|
|
3
4
|
|
|
4
5
|
const NATURE: ComponentNature = {
|
|
5
6
|
mutable: false,
|
|
@@ -37,8 +38,8 @@ export default class Crane extends MCSVehicle {
|
|
|
37
38
|
ctx.setLineDash([])
|
|
38
39
|
|
|
39
40
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
roundRect(ctx, 1, 0, width - 2, height, radius)
|
|
42
|
+
roundRect(ctx, GAP + 1, GAP, width - (GAP + 1) * 2, height - GAP * 2, radius - 1)
|
|
42
43
|
ctx.fill()
|
|
43
44
|
ctx.stroke()
|
|
44
45
|
|
|
@@ -47,8 +48,8 @@ export default class Crane extends MCSVehicle {
|
|
|
47
48
|
ctx.stroke()
|
|
48
49
|
|
|
49
50
|
ctx.beginPath()
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
roundRect(ctx, width / 2 - (round * 2) / 4 - round / 8, height / 2 - (round * 6) / 5, round / 4, (round * 6) / 5, 1)
|
|
52
|
+
roundRect(ctx, width / 2 + (round * 2) / 4 - round / 8, height / 2 - (round * 6) / 5, round / 4, (round * 6) / 5, 1)
|
|
52
53
|
|
|
53
54
|
ctx.fill()
|
|
54
55
|
ctx.stroke()
|
|
@@ -9,7 +9,7 @@ export class Carrier extends MCSStatusMixin(Object) {
|
|
|
9
9
|
|
|
10
10
|
id?: string
|
|
11
11
|
type: ('ALL' | 'BOBIN' | 'MAGAZINE' | 'PALLET' | 'REEL_TRAY' | 'PLATE')[] = []
|
|
12
|
-
emptyType?: 'Full' | 'Empty' | 'EmptyEmpty'
|
|
12
|
+
emptyType?: '5000' | '5001' | '5002' // 'Full' | 'Empty' | 'EmptyEmpty'
|
|
13
13
|
|
|
14
14
|
constructor(host: Component) {
|
|
15
15
|
super()
|
|
@@ -51,7 +51,7 @@ export class Carrier extends MCSStatusMixin(Object) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
render(ctx: CanvasRenderingContext2D) {
|
|
54
|
-
if (!this.
|
|
54
|
+
if (!this.emptyType) {
|
|
55
55
|
return
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -93,7 +93,7 @@ export class Carrier extends MCSStatusMixin(Object) {
|
|
|
93
93
|
ctx.beginPath()
|
|
94
94
|
|
|
95
95
|
// 숫자 그리기
|
|
96
|
-
const count =
|
|
96
|
+
const count = 1 // this.type?.length
|
|
97
97
|
|
|
98
98
|
if (count > 1) {
|
|
99
99
|
const { x: cx, y: cy } = this.host.center
|
package/src/mcs-machine.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Component, ContainerAbstract } from '@hatiolab/things-scene'
|
|
|
2
2
|
import { getProcessPopupData } from '@fmsim/api'
|
|
3
3
|
import { MCSStatusMixin, MCSStatusMixinProperties } from './features/mcs-status-mixin'
|
|
4
4
|
|
|
5
|
-
import { safeRound } from './utils/safe-round'
|
|
6
5
|
import { LEGEND_MACHINE, Legend } from './features/mcs-status-default'
|
|
7
6
|
import { getLocaleLanguage } from './utils/get-locale'
|
|
7
|
+
import { roundRect } from './utils/round-rect'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* MCS Machine의 공통 속성을 정의한 최상위 오브젝트
|
|
@@ -83,26 +83,24 @@ export default class MCSMachine extends MCSStatusMixin(ContainerAbstract) {
|
|
|
83
83
|
ctx.lineCap = 'round'
|
|
84
84
|
ctx.setLineDash([])
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
ctx.roundRect(left, top, width, height, round)
|
|
86
|
+
roundRect(ctx, left, top, width, height, round)
|
|
89
87
|
|
|
90
88
|
ctx.fill()
|
|
91
89
|
ctx.stroke()
|
|
92
90
|
}
|
|
93
91
|
|
|
94
|
-
get text() {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
// get text() {
|
|
93
|
+
// if (this.data?.LOCALENAME) {
|
|
94
|
+
// // TODO 왜 LOCALENAME 데이타는 문자열인가 ? 오브젝트로 보내달라.
|
|
95
|
+
// return JSON.parse(this.data.LOCALENAME)[getLocaleLanguage()]
|
|
96
|
+
// }
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
}
|
|
98
|
+
// return super.text
|
|
99
|
+
// }
|
|
102
100
|
|
|
103
|
-
set text(text) {
|
|
104
|
-
|
|
105
|
-
}
|
|
101
|
+
// set text(text) {
|
|
102
|
+
// super.text = text
|
|
103
|
+
// }
|
|
106
104
|
|
|
107
105
|
async detailInfo() {
|
|
108
106
|
const { id } = this.state
|
|
@@ -111,19 +109,6 @@ export default class MCSMachine extends MCSStatusMixin(ContainerAbstract) {
|
|
|
111
109
|
return
|
|
112
110
|
}
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
if (!response || !response.status) {
|
|
116
|
-
document.dispatchEvent(
|
|
117
|
-
new CustomEvent('notify', {
|
|
118
|
-
detail: {
|
|
119
|
-
level: 'error',
|
|
120
|
-
message: 'Error : getProcessPopupData'
|
|
121
|
-
}
|
|
122
|
-
})
|
|
123
|
-
)
|
|
124
|
-
throw new Error('Error : getProcessPopupData')
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return response.processPopupData
|
|
112
|
+
return await getProcessPopupData(id)
|
|
128
113
|
}
|
|
129
114
|
}
|
package/src/mcs-popup.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component, ComponentNature, RectPath, Shape, error } from '@hatiolab/things-scene'
|
|
2
|
+
import { safeRound } from './utils/safe-round'
|
|
2
3
|
|
|
3
4
|
const NATURE: ComponentNature = {
|
|
4
5
|
mutable: false,
|
|
@@ -7,15 +8,6 @@ const NATURE: ComponentNature = {
|
|
|
7
8
|
properties: []
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
function safeRound(round, width, height) {
|
|
11
|
-
var max = width > height ? (height / width) * 100 : 100
|
|
12
|
-
|
|
13
|
-
if (round >= max) round = max
|
|
14
|
-
else if (round <= 0) round = 0
|
|
15
|
-
|
|
16
|
-
return round
|
|
17
|
-
}
|
|
18
|
-
|
|
19
11
|
export default class MCSPopup extends RectPath(Shape) {
|
|
20
12
|
static get nature() {
|
|
21
13
|
return NATURE
|
|
@@ -29,7 +21,6 @@ export default class MCSPopup extends RectPath(Shape) {
|
|
|
29
21
|
var { round = 0 } = this.model
|
|
30
22
|
|
|
31
23
|
var { left, top, width, height } = this.bounds
|
|
32
|
-
var { radius, extend } = this.model
|
|
33
24
|
|
|
34
25
|
drawPopup(ctx, left, top, width, height)
|
|
35
26
|
|
|
@@ -39,14 +30,12 @@ export default class MCSPopup extends RectPath(Shape) {
|
|
|
39
30
|
|
|
40
31
|
round = safeRound(round, width, height)
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
ctx.moveTo(radius, 0)
|
|
33
|
+
ctx.moveTo(round, 0)
|
|
45
34
|
|
|
46
|
-
ctx.arcTo(width, 0, width, height,
|
|
47
|
-
ctx.arcTo(width, height, 0, height,
|
|
48
|
-
ctx.arcTo(0, height, 0, 0,
|
|
49
|
-
ctx.arcTo(0, 0, width, 0,
|
|
35
|
+
ctx.arcTo(width, 0, width, height, round)
|
|
36
|
+
ctx.arcTo(width, height, 0, height, round)
|
|
37
|
+
ctx.arcTo(0, height, 0, 0, round)
|
|
38
|
+
ctx.arcTo(0, 0, width, 0, round)
|
|
50
39
|
|
|
51
40
|
ctx.translate(-left, -top)
|
|
52
41
|
}
|
package/src/oht.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, ComponentNature, Properties } from '@hatiolab/things-scene'
|
|
2
2
|
import MCSVehicle from './mcs-vehicle'
|
|
3
|
+
import { roundRect } from './utils/round-rect'
|
|
3
4
|
|
|
4
5
|
const NATURE: ComponentNature = {
|
|
5
6
|
mutable: false,
|
|
@@ -32,8 +33,8 @@ export default class OHT extends MCSVehicle {
|
|
|
32
33
|
ctx.setLineDash([])
|
|
33
34
|
|
|
34
35
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
roundRect(ctx, 0, 0, width, height, radius)
|
|
37
|
+
roundRect(ctx, GAP, GAP, width - GAP * 2, height - GAP * 2, radius - 1)
|
|
37
38
|
|
|
38
39
|
ctx.fill()
|
|
39
40
|
ctx.stroke()
|
package/src/port.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Component, ComponentNature } from '@hatiolab/things-scene'
|
|
2
|
+
import { getStockerEqpPortPopupData } from '@fmsim/api'
|
|
2
3
|
import { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin'
|
|
3
4
|
import MCSCarrierHolder from './mcs-carrier-holder'
|
|
4
|
-
import {
|
|
5
|
+
import { roundRect } from './utils/round-rect'
|
|
5
6
|
|
|
6
7
|
const NATURE: ComponentNature = {
|
|
7
8
|
mutable: false,
|
|
@@ -32,7 +33,7 @@ export default class Port extends MCSZoneMixin(MCSCarrierHolder) {
|
|
|
32
33
|
|
|
33
34
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
roundRect(ctx, left, top, width, height, radius)
|
|
36
37
|
|
|
37
38
|
ctx.fill()
|
|
38
39
|
ctx.stroke()
|
package/src/shelf.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component, ComponentNature } from '@hatiolab/things-scene'
|
|
2
2
|
import MCSCarrierHolder from './mcs-carrier-holder'
|
|
3
3
|
import { MCSZoneMixin, MCSZoneMixinProperties } from './features/mcs-zone-mixin'
|
|
4
|
+
import { roundRect } from './utils/round-rect'
|
|
4
5
|
|
|
5
6
|
const NATURE: ComponentNature = {
|
|
6
7
|
mutable: false,
|
|
@@ -33,7 +34,7 @@ export default class Shelf extends MCSZoneMixin(MCSCarrierHolder) {
|
|
|
33
34
|
ctx.setLineDash([])
|
|
34
35
|
|
|
35
36
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
36
|
-
|
|
37
|
+
roundRect(ctx, 0, 0, width, height, radius)
|
|
37
38
|
|
|
38
39
|
ctx.clip()
|
|
39
40
|
|
package/src/shuttle.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, ComponentNature } from '@hatiolab/things-scene'
|
|
2
2
|
import MCSVehicle from './mcs-vehicle'
|
|
3
|
+
import { roundRect } from './utils/round-rect'
|
|
3
4
|
|
|
4
5
|
const NATURE: ComponentNature = {
|
|
5
6
|
mutable: false,
|
|
@@ -46,12 +47,12 @@ export default class Shuttle extends MCSVehicle {
|
|
|
46
47
|
|
|
47
48
|
const radius = Math.round(Math.min(width, height) * 0.1)
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
roundRect(ctx, RAILWIDTH / 2, RAILWIDTH / 2, width - RAILWIDTH, height - RAILWIDTH, radius)
|
|
50
51
|
ctx.fill()
|
|
51
52
|
|
|
52
53
|
ctx.beginPath()
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
roundRect(ctx, 0, RAILWIDTH, width, RAILWIDTH, radius)
|
|
55
|
+
roundRect(ctx, 0, height - RAILWIDTH * 2, width, RAILWIDTH, radius)
|
|
55
56
|
|
|
56
57
|
ctx.fill()
|
|
57
58
|
ctx.stroke()
|