From a875aa4166df64b0f6a77dd654b2ad90ee2459d8 Mon Sep 17 00:00:00 2001 From: Chris Trevino Date: Tue, 7 Sep 2021 11:50:09 -0700 Subject: [PATCH 1/2] update autolayout, cremove cache files --- .../.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json | 2 +- .../.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json | 2 +- .../GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx | 2 +- webpack.config.js | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json b/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json index 0bf0ef6..6124690 100644 --- a/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json +++ b/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json @@ -1 +1 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","mtime":1631029334747},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBEZWZhdWx0QnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IG1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCB7IEFVVE9MQVlPVVRfVVJMIH0gZnJvbSAnfi9jb25zdGFudHMnOwovKioNCiAqIENvbmZpZyBmb3IgVU1BUCBhdXRvbGF5b3V0LiBSaWdodCBub3cgaXQganVzdCB1c2VzIGRlZmF1bHQgcGFyYW1zLA0KICogYnV0IG9ubHkgZXhwb3NlcyB0aGUgYnV0dG9uIGlmIGEgc2VydmljZSBVUkwgaGFzIGJlZW4gY29uZmlndXJlZC4NCiAqLwoKZXhwb3J0IGNvbnN0IFVtYXBMYXlvdXQgPSBtZW1vKGZ1bmN0aW9uIFVtYXBMYXlvdXQoewogIG9uQ2xpY2sKfSkgewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFJlYWN0LkZyYWdtZW50LCBudWxsLCBBVVRPTEFZT1VUX1VSTCAhPT0gdW5kZWZpbmVkID8gUmVhY3QuY3JlYXRlRWxlbWVudChEZWZhdWx0QnV0dG9uLCB7CiAgICB0ZXh0OiAnVU1BUCcsCiAgICBvbkNsaWNrOiBvbkNsaWNrCiAgfSkgOiBudWxsKTsKfSk7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx"],"names":["DefaultButton","React","memo","AUTOLAYOUT_URL","UmapLayout","onClick","createElement","Fragment","undefined","text"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,QAA4B,OAA5B;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,UAAU,GAAGF,IAAI,CAAC,SAASE,UAAT,CAAoB;AAAEC,EAAAA;AAAF,CAApB,EAAkC;AAC7D,SAAQJ,KAAK,CAACK,aAAN,CAAoBL,KAAK,CAACM,QAA1B,EAAoC,IAApC,EAA0CJ,cAAc,KAAKK,SAAnB,GAAgCP,KAAK,CAACK,aAAN,CAAoBN,aAApB,EAAmC;AAAES,IAAAA,IAAI,EAAE,MAAR;AAAgBJ,IAAAA,OAAO,EAAEA;AAAzB,GAAnC,CAAhC,GAA0G,IAApJ,CAAR;AACH,CAF6B,CAAvB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { memo } from 'react';\r\nimport { AUTOLAYOUT_URL } from '~/constants';\r\n/**\r\n * Config for UMAP autolayout. Right now it just uses default params,\r\n * but only exposes the button if a service URL has been configured.\r\n */\r\nexport const UmapLayout = memo(function UmapLayout({ onClick, }) {\r\n return (React.createElement(React.Fragment, null, AUTOLAYOUT_URL !== undefined ? (React.createElement(DefaultButton, { text: 'UMAP', onClick: onClick })) : null));\r\n});\r\n"]}]} \ No newline at end of file +{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","mtime":1631040491999},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBEZWZhdWx0QnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IG1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCB7IEFVVE9MQVlPVVRfVVJMIH0gZnJvbSAnfi9jb25zdGFudHMnOwovKioNCiAqIENvbmZpZyBmb3IgVU1BUCBhdXRvbGF5b3V0LiBSaWdodCBub3cgaXQganVzdCB1c2VzIGRlZmF1bHQgcGFyYW1zLA0KICogYnV0IG9ubHkgZXhwb3NlcyB0aGUgYnV0dG9uIGlmIGEgc2VydmljZSBVUkwgaGFzIGJlZW4gY29uZmlndXJlZC4NCiAqLwoKZXhwb3J0IGNvbnN0IFVtYXBMYXlvdXQgPSBtZW1vKGZ1bmN0aW9uIFVtYXBMYXlvdXQoewogIG9uQ2xpY2sKfSkgewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFJlYWN0LkZyYWdtZW50LCBudWxsLCBCb29sZWFuKEFVVE9MQVlPVVRfVVJMKSA/IFJlYWN0LmNyZWF0ZUVsZW1lbnQoRGVmYXVsdEJ1dHRvbiwgewogICAgdGV4dDogJ1VNQVAnLAogICAgb25DbGljazogb25DbGljawogIH0pIDogbnVsbCk7Cn0pOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx"],"names":["DefaultButton","React","memo","AUTOLAYOUT_URL","UmapLayout","onClick","createElement","Fragment","Boolean","text"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,QAA4B,OAA5B;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,UAAU,GAAGF,IAAI,CAAC,SAASE,UAAT,CAAoB;AAAEC,EAAAA;AAAF,CAApB,EAAkC;AAC7D,SAAQJ,KAAK,CAACK,aAAN,CAAoBL,KAAK,CAACM,QAA1B,EAAoC,IAApC,EAA0CC,OAAO,CAACL,cAAD,CAAP,GAA2BF,KAAK,CAACK,aAAN,CAAoBN,aAApB,EAAmC;AAAES,IAAAA,IAAI,EAAE,MAAR;AAAgBJ,IAAAA,OAAO,EAAEA;AAAzB,GAAnC,CAA3B,GAAqG,IAA/I,CAAR;AACH,CAF6B,CAAvB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { memo } from 'react';\r\nimport { AUTOLAYOUT_URL } from '~/constants';\r\n/**\r\n * Config for UMAP autolayout. Right now it just uses default params,\r\n * but only exposes the button if a service URL has been configured.\r\n */\r\nexport const UmapLayout = memo(function UmapLayout({ onClick, }) {\r\n return (React.createElement(React.Fragment, null, Boolean(AUTOLAYOUT_URL) ? (React.createElement(DefaultButton, { text: 'UMAP', onClick: onClick })) : null));\r\n});\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json b/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json index b124e8f..c6f2609 100644 --- a/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json +++ b/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json @@ -1 +1 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\constants.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\constants.ts","mtime":1631029334812},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgY29uc3QgUk9PVF9DT01NVU5JVFlfSUQgPSAnLTEnOwpleHBvcnQgY29uc3QgQVVUT0xBWU9VVF9VUkwgPSBwcm9jZXNzLmVudi5BVVRPTEFZT1VUX1VSTDs="},{"version":3,"sources":["C:/ws/graph-drill/src/constants.ts"],"names":["ROOT_COMMUNITY_ID","AUTOLAYOUT_URL","process","env"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAG,IAA1B;AACP,OAAO,MAAMC,cAAc,GAAGC,OAAO,CAACC,GAAR,CAAYF,cAAnC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport const ROOT_COMMUNITY_ID = '-1';\r\nexport const AUTOLAYOUT_URL = process.env.AUTOLAYOUT_URL;\r\n"]}]} \ No newline at end of file +{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\constants.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\constants.ts","mtime":1631040468991},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgY29uc3QgUk9PVF9DT01NVU5JVFlfSUQgPSAnLTEnOwpleHBvcnQgY29uc3QgQVVUT0xBWU9VVF9VUkwgPSBwcm9jZXNzLmVudi5BVVRPTEFZT1VUX1VSTDs="},{"version":3,"sources":["C:/ws/graph-drill/src/constants.ts"],"names":["ROOT_COMMUNITY_ID","AUTOLAYOUT_URL","process","env"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAG,IAA1B;AACP,OAAO,MAAMC,cAAc,GAAGC,OAAO,CAACC,GAAR,CAAYF,cAAnC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport const ROOT_COMMUNITY_ID = '-1';\r\nexport const AUTOLAYOUT_URL = process.env.AUTOLAYOUT_URL;\r\n"]}]} \ No newline at end of file diff --git a/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx b/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx index e64cbcf..6f5b45d 100644 --- a/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx +++ b/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx @@ -19,7 +19,7 @@ export const UmapLayout: React.FC = memo(function UmapLayout({ }) { return ( <> - {AUTOLAYOUT_URL !== undefined ? ( + {Boolean(AUTOLAYOUT_URL) ? ( ) : null} diff --git a/webpack.config.js b/webpack.config.js index 0dd89dd..235bd4e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,11 +5,9 @@ const { configure } = require('@essex/webpack-config') require('dotenv').config() -const AUTOLAYOUT_URL = process.env.AUTOLAYOUT_URL - const base = configure({ pnp: true, - environment: () => (AUTOLAYOUT_URL ? { AUTOLAYOUT_URL } : {}), + environment: () => ({ AUTOLAYOUT_URL: process.env.AUTOLAYOUT_URL || '' }), }) const lineupRules = [ From 40bd948d4c7b59f647ec74b32df121ed262a7077 Mon Sep 17 00:00:00 2001 From: Chris Trevino Date: Tue, 7 Sep 2021 11:50:25 -0700 Subject: [PATCH 2/2] remove cache files --- .gitignore | 1 + .../.cache/cache-loader/00349e6c0bca07649f748b8a804fc394.json | 1 - .../.cache/cache-loader/0159f7b6ebe949eb731da33411f2cfcf.json | 1 - .../.cache/cache-loader/02e350f9300b3f792a4f23c93c81a188.json | 1 - .../.cache/cache-loader/03bab04621a60788a157d404577dcac3.json | 1 - .../.cache/cache-loader/04b64252b72901b6fc64e097a0688860.json | 1 - .../.cache/cache-loader/05c6be67de773ef6cff4be27bccce101.json | 1 - .../.cache/cache-loader/070307f08801bfd191c517e429194af0.json | 1 - .../.cache/cache-loader/07cfdeb24b4064fb72de55baec074e08.json | 1 - .../.cache/cache-loader/08d9a069b593e3dcc1a009be13fed9a0.json | 1 - .../.cache/cache-loader/091a7aa9420ebced5a59f6adbdcc87af.json | 1 - .../.cache/cache-loader/0a3874c7eb569d1af643aaf22a351255.json | 1 - .../.cache/cache-loader/0a719749d47998e444684f78314c4d8f.json | 1 - .../.cache/cache-loader/0c1763ccc839d8b93e143c11f50ef505.json | 1 - .../.cache/cache-loader/0dd5e7660b0d31c8ae2bc5251e5473b1.json | 1 - .../.cache/cache-loader/0ef34e2dee22b3f6d71c9b3519964d80.json | 1 - .../.cache/cache-loader/0f917c0b74b0dc7ceb84c1b1fa9b6e8d.json | 1 - .../.cache/cache-loader/1106cb40cc0f62ab7f492f75e7042b47.json | 1 - .../.cache/cache-loader/13f28c5712617dd9ff8fb9ff15edea96.json | 1 - .../.cache/cache-loader/16a0ac9e28a8cd1af407d734f8ec2785.json | 1 - .../.cache/cache-loader/1777a5e86aaf7dc1afb821f07ea49a2b.json | 1 - .../.cache/cache-loader/1e3fdbe7b61d5182d5f2367cb0f86722.json | 1 - .../.cache/cache-loader/20017c159b3162f7446a9f3762d8b692.json | 1 - .../.cache/cache-loader/20d4cbfd17a2af35c2fa2017c44a9915.json | 1 - .../.cache/cache-loader/233fe960c210b93953489f68d9549278.json | 1 - .../.cache/cache-loader/28241ffd866182d96a9fd7915de2bdaf.json | 1 - .../.cache/cache-loader/2933577bfefdf9013ce6751315388988.json | 1 - .../.cache/cache-loader/2bdedb0da9986305e9194bc7cd772228.json | 1 - .../.cache/cache-loader/2c2ac982c7c8cb93592f32fdd8826c6e.json | 1 - .../.cache/cache-loader/2d635602479c6c131a63e271ed23702b.json | 1 - .../.cache/cache-loader/2e5542ddb68ba45d20c10ec374884169.json | 1 - .../.cache/cache-loader/2fc5c606229b8c65ad5d7f34ee398b6d.json | 1 - .../.cache/cache-loader/366387d1c9b7807f911db33872e281a2.json | 1 - .../.cache/cache-loader/36c8fd65c7d6eb546b1bcb34cb590c79.json | 1 - .../.cache/cache-loader/374eeb9ef574d7ccf8bf6de6281fff71.json | 1 - .../.cache/cache-loader/39b48799797fa0bc47bb0eab81477259.json | 1 - .../.cache/cache-loader/3ec7362360268352b00f0ed9edf4e772.json | 1 - .../.cache/cache-loader/3eee2aece377882ea5f3e955091acf40.json | 1 - .../.cache/cache-loader/3f589f45f41f0d1ee6c720c1acf86ec3.json | 1 - .../.cache/cache-loader/404ccd058c752dbedcd8c251ca32154a.json | 1 - .../.cache/cache-loader/404d54960af98a188af96e3d169f48d4.json | 1 - .../.cache/cache-loader/41bccdc5e12f091006cc3bc7979dd3c5.json | 1 - .../.cache/cache-loader/41f222a2bde60cbbb280c80d36e38484.json | 1 - .../.cache/cache-loader/4229755410ecdc78d73863c4818fcfee.json | 1 - .../.cache/cache-loader/42467b6446d635ffad2df5060e841855.json | 1 - .../.cache/cache-loader/4317c3f1fad1c1bce4a5bc9bcc91c297.json | 1 - .../.cache/cache-loader/43acc0ef5603e3f8b7a286b1dba89290.json | 1 - .../.cache/cache-loader/4436fe681397dd218edbf0c488a984bf.json | 1 - .../.cache/cache-loader/4440f8dfd823a7552caf034994320de1.json | 1 - .../.cache/cache-loader/4588212d5650614b4495ca31a8c1a631.json | 1 - .../.cache/cache-loader/46f0abc65ac743f7bdfe6e6ad833aa3b.json | 1 - .../.cache/cache-loader/49b0476bd0b9de0db06ced92cc72e3b8.json | 1 - .../.cache/cache-loader/4aa70094bc1d5942e8119dc5193b9f40.json | 1 - .../.cache/cache-loader/4e3c417313d638463d65eb49a3f1c636.json | 1 - .../.cache/cache-loader/4f52c0f3fc251f73293863c0acc75ae0.json | 1 - .../.cache/cache-loader/4fef6fae6fd40f20ca1f259bfc0e1ce8.json | 1 - .../.cache/cache-loader/51983d6f24d80fa9b95ebc4b850caed2.json | 1 - .../.cache/cache-loader/532b8f97ccfa36cc2f15bfeba2943d86.json | 1 - .../.cache/cache-loader/535b1c729209e9ae3228aebfb6fab352.json | 1 - .../.cache/cache-loader/5703c618533fa72aa80a17b8dcaf5c89.json | 1 - .../.cache/cache-loader/582bee67d465d328b66173ccd717f04c.json | 1 - .../.cache/cache-loader/59b941ae390df57ccba5f8e089051e02.json | 1 - .../.cache/cache-loader/59ff9fcd63cdb9d15a0087c315141264.json | 1 - .../.cache/cache-loader/5a2c8e55e20fbf0a71efa64da474fbaf.json | 1 - .../.cache/cache-loader/5a45f03bb53e6eb1d3f82034f40171d8.json | 1 - .../.cache/cache-loader/5ad678393cbd7344128ee6ecb3b9a954.json | 1 - .../.cache/cache-loader/5e02c5a7efcd1ed662ffce25d06bc134.json | 1 - .../.cache/cache-loader/60aa4b8f1dce84df191a56626d10bab1.json | 1 - .../.cache/cache-loader/60aefabb65db00c04b8c4b25275afb79.json | 1 - .../.cache/cache-loader/61eacbcf24487f7f5a892d3bad8fadd4.json | 1 - .../.cache/cache-loader/62215c1ff20e6eac5cccfaa320d48c9a.json | 1 - .../.cache/cache-loader/6429e97a6b902d887f78aec3916ebe96.json | 1 - .../.cache/cache-loader/647cead8d6e6615f9fd4b77de56f910f.json | 1 - .../.cache/cache-loader/6521714bf451d1161321161bea18e5c4.json | 1 - .../.cache/cache-loader/659948c82f4f6e6a014cb2d9d67fb91a.json | 1 - .../.cache/cache-loader/662ab3fdada5efc4f23d8d943b88bae9.json | 1 - .../.cache/cache-loader/67e9631e688a79f0365d2913b0cf72f9.json | 1 - .../.cache/cache-loader/69aec30cfc3c9cfe9d00d08db2623f2e.json | 1 - .../.cache/cache-loader/6bdfce993f5cb7f7fe68c3eb2816336e.json | 1 - .../.cache/cache-loader/6c2ac0a21033334154fcd491cd4ba866.json | 1 - .../.cache/cache-loader/6c319574ad2221a532539097096a9211.json | 1 - .../.cache/cache-loader/6e497c3765531cc7f22233cb7ca3cb93.json | 1 - .../.cache/cache-loader/6e4d59e7ba965f62d5a95925ccce9ce6.json | 1 - .../.cache/cache-loader/6e8b137c1f335ea469db4107088ed70e.json | 1 - .../.cache/cache-loader/71d1feb830ffd848ef3cd87ff8d0d1a7.json | 1 - .../.cache/cache-loader/7562e4f22838a2bd5b13f1a36f1ae71d.json | 1 - .../.cache/cache-loader/761d26dfbd5dcdbc8fa5f92a290eb5cc.json | 1 - .../.cache/cache-loader/77b9812609e155cb3ba836d691b30f97.json | 1 - .../.cache/cache-loader/79d644e50834d4488d45e682128bb207.json | 1 - .../.cache/cache-loader/7bdef32efc0c03ce4dd9e9d5e363e6b6.json | 1 - .../.cache/cache-loader/7f823f68ccb49daa14da839c9db47935.json | 1 - .../.cache/cache-loader/7fdd39701243250dca2c9c098a329771.json | 1 - .../.cache/cache-loader/8273dae46368f3169ec35c7377e02445.json | 1 - .../.cache/cache-loader/82e0b595b06df8b68d31ab7ed9b59231.json | 1 - .../.cache/cache-loader/83df60a9188bc46dcc798f4d31eebeb8.json | 1 - .../.cache/cache-loader/84b1e27c3cf59045133eb1fe526604d7.json | 1 - .../.cache/cache-loader/8701c5eee1e23b178c0012dbeddf6f9d.json | 1 - .../.cache/cache-loader/8888181596d34844e744232ac198ca0a.json | 1 - .../.cache/cache-loader/88f6fd483b689b26e5df1785594cf3ae.json | 1 - .../.cache/cache-loader/8a350b13147ae732159ed5d19ec1511e.json | 1 - .../.cache/cache-loader/8a578dcca855553a2df2ed768606a34a.json | 1 - .../.cache/cache-loader/8e17d87520bf5a9d21bcf67bf7e4fcad.json | 1 - .../.cache/cache-loader/8e290b52f03ab62c51c4bbca3ccc08f8.json | 1 - .../.cache/cache-loader/91eca423812ab12a07bcfc46434f5ad5.json | 1 - .../.cache/cache-loader/92f5238cec80d1e3f960ceb99c7f5747.json | 1 - .../.cache/cache-loader/93fc92db10423e62900e3727a37fb89b.json | 1 - .../.cache/cache-loader/951bbf9ae82a12e70d318b9e288c4d7b.json | 1 - .../.cache/cache-loader/97b03d2150bae4464a8c0cac919cc42c.json | 1 - .../.cache/cache-loader/988c659ef67073b4f5791b12fb897c8f.json | 1 - .../.cache/cache-loader/9e75c93175544290003aba9eef002590.json | 1 - .../.cache/cache-loader/a17e08a8315e626ed3deb0512bf972e7.json | 1 - .../.cache/cache-loader/a1f0a53dcf85f67ad0464fc041a4982c.json | 1 - .../.cache/cache-loader/a32b6899794daa391c6ee30fb58acf39.json | 1 - .../.cache/cache-loader/a32f4d334a3e2e26ac995abad3aecdda.json | 1 - .../.cache/cache-loader/a403bf62b4dfaf7bfa3482734f81bb69.json | 1 - .../.cache/cache-loader/a52198692fe84d0e6634fb6826443a86.json | 1 - .../.cache/cache-loader/a80e1c5710e18de176a48a3828a74b3d.json | 1 - .../.cache/cache-loader/a94baf60034dbec82e84f8f775b4c907.json | 1 - .../.cache/cache-loader/ab231c4a9df43b0c154f9ffcea35197b.json | 1 - .../.cache/cache-loader/ac249296a3cbb881c6a6da100d6057dc.json | 1 - .../.cache/cache-loader/ad2d1f103eabf55aa0dd58cb4fc362b6.json | 1 - .../.cache/cache-loader/ad374aada8ff42eb6743ef2dec6372b7.json | 1 - .../.cache/cache-loader/adb861e9b85e56f907afa17017b7c621.json | 1 - .../.cache/cache-loader/ae545b98333b2681b90716474f14833a.json | 1 - .../.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json | 1 - .../.cache/cache-loader/b0e1519e35056d8dba0f2692a68c7504.json | 1 - .../.cache/cache-loader/b12d146b6656557690340ead7b13e60c.json | 1 - .../.cache/cache-loader/b15885ec96cba2bd280d2d01bc158f91.json | 1 - .../.cache/cache-loader/b1b1454aa513882eeb9a6b782296480d.json | 1 - .../.cache/cache-loader/b1f38c5f10ef422368b69e1d620a2afe.json | 1 - .../.cache/cache-loader/b219f4bf7cb708997f1562b593a0f879.json | 1 - .../.cache/cache-loader/b278ed4bea79fd5d0ac144af6c0bc941.json | 1 - .../.cache/cache-loader/b404332713f486f0fde5026f74d8e5a6.json | 1 - .../.cache/cache-loader/b54de8838449e8ae038e9f416a8e247e.json | 1 - .../.cache/cache-loader/b571823cc95f73ba8bdb2eea16a0db81.json | 1 - .../.cache/cache-loader/b69ae5fdb2a9cf4d981545dd3e5feec3.json | 1 - .../.cache/cache-loader/b6b3ea3dbaecb558ecd26ceb3536f554.json | 1 - .../.cache/cache-loader/b7f3a6ef440f2ed047f6af5fa7cb260b.json | 1 - .../.cache/cache-loader/b86fdfb412377ab3953f2c62638d6d9e.json | 1 - .../.cache/cache-loader/b8a3cefa73027b6736a2c68aaa42d71d.json | 1 - .../.cache/cache-loader/b8df816429379c5fdc068855d41d2b73.json | 1 - .../.cache/cache-loader/bc359d85dfac16e910abee149f9a9bca.json | 1 - .../.cache/cache-loader/bd09c3ca7e18e99ae47c1f8d9c62ffb2.json | 1 - .../.cache/cache-loader/be63717a206ad34ca5c7ccc0af66717d.json | 1 - .../.cache/cache-loader/bf1640b5826229c572d2bd998568078b.json | 1 - .../.cache/cache-loader/bf86dcd1bd44c87de52508328b5461d4.json | 1 - .../.cache/cache-loader/bf979606fcad222ba2726f01848a1da6.json | 1 - .../.cache/cache-loader/c08741df749e4053043d15561b6175dd.json | 1 - .../.cache/cache-loader/c2bcdc612ae0f84917ad576f14f97040.json | 1 - .../.cache/cache-loader/c4f38e2b1cd685876493d6a21a9cc566.json | 1 - .../.cache/cache-loader/c52566f2239e48ccdd7380b45b5bad7f.json | 1 - .../.cache/cache-loader/c56a23a1c94c30ee6a10d11d94e480f5.json | 1 - .../.cache/cache-loader/c5b32723a30bdb62b4f052ddfaef457b.json | 1 - .../.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json | 1 - .../.cache/cache-loader/c77f2d22e22c0dc022617c0c2ad1c397.json | 1 - .../.cache/cache-loader/c7e1433f695f98d34ead4069a318107e.json | 1 - .../.cache/cache-loader/c94066049d3fb36026656828a48dd3b6.json | 1 - .../.cache/cache-loader/c9c19bc832e364263e6f731479dd8040.json | 1 - .../.cache/cache-loader/cc8b7056541cf76dfb04be06105828ae.json | 1 - .../.cache/cache-loader/ceb1683bb259f86ce42bef534abd2ed9.json | 1 - .../.cache/cache-loader/cee2b249f164ed41052dd9d20ff53244.json | 1 - .../.cache/cache-loader/cef5f329b442ef542fb6c3db1c0731c0.json | 1 - .../.cache/cache-loader/cfe8b246ba476a61a30c9842dd9f8df9.json | 1 - .../.cache/cache-loader/d0a529dad7c2471e1592742601ebf6ce.json | 1 - .../.cache/cache-loader/d107fa8cb552516f2b9a98fee65c69fb.json | 1 - .../.cache/cache-loader/d36ecdabab866ccaf465f84bcee20f53.json | 1 - .../.cache/cache-loader/d5ccb222a401ac97301a8f37b6f2f10e.json | 1 - .../.cache/cache-loader/d60314aa6aac467614226b6d00b765b9.json | 1 - .../.cache/cache-loader/d6b10496ac44ba3985ec6f79547c83e1.json | 1 - .../.cache/cache-loader/d70e6054cfc37b612b1d601cafa6f4ca.json | 1 - .../.cache/cache-loader/d8d1c27b181014289e11e649e39fa01c.json | 1 - .../.cache/cache-loader/d9c9d69818c9ff9ff309346ddc0f131d.json | 1 - .../.cache/cache-loader/da9f57b718e4b3d838dca9e967f2b586.json | 1 - .../.cache/cache-loader/dbd4f684c6fefe08206f648f4035cd8f.json | 1 - .../.cache/cache-loader/dccacc87477f3ac8fa930558f094c069.json | 1 - .../.cache/cache-loader/de03e79117b01323d11834a868813df6.json | 1 - .../.cache/cache-loader/e03a2eb42e5ecd26f56718b497f3240e.json | 1 - .../.cache/cache-loader/e3e3994796369a45ea9dd9a3815d7249.json | 1 - .../.cache/cache-loader/e41863b9488b62b0d3f6eacf971532bb.json | 1 - .../.cache/cache-loader/e4d5308f17173afb873a78ec4fb5889e.json | 1 - .../.cache/cache-loader/e5cb39f1726585c29b950fb80164d3d6.json | 1 - .../.cache/cache-loader/e5f8ce811ced9fc96afa08ef532b9e68.json | 1 - .../.cache/cache-loader/e670f1101ccb60c86706309f26172244.json | 1 - .../.cache/cache-loader/e6860eb52fd666f1b50bf39697cdcf8b.json | 1 - .../.cache/cache-loader/e96ba5f2e65142a196e87e20a4ec4ac9.json | 1 - .../.cache/cache-loader/eb0f905d4992b40d399b141f0ed2cd93.json | 1 - .../.cache/cache-loader/eb9272199f0cca7fc4b9f9444f9eefe1.json | 1 - .../.cache/cache-loader/ec80b3125f2683dfa69753b1269a5760.json | 1 - .../.cache/cache-loader/ed5bd954702f5bb4d52e9c258eade2ef.json | 1 - .../.cache/cache-loader/ed7e6584076eba7374be38e8cc7d89e4.json | 1 - .../.cache/cache-loader/eef094059fcec12a769649c72a1a57ca.json | 1 - .../.cache/cache-loader/eef1c5b1a7edee9e756973a320bbe78b.json | 1 - .../.cache/cache-loader/f1d73f29a226e968caed834f7f57711b.json | 1 - .../.cache/cache-loader/f1ef8c32b9148ea3c57183d4452537d1.json | 1 - .../.cache/cache-loader/f3cef5586fed6d3c279150435300244a.json | 1 - .../.cache/cache-loader/f50b17a069b5f319f008ad2deb63810c.json | 1 - .../.cache/cache-loader/f64cb6b007e91718c377ebc2513837ed.json | 1 - .../.cache/cache-loader/f9a4bca8a415cb061b036cc6c5cd355e.json | 1 - .../.cache/cache-loader/fac149d89add8f4008c791938644dae9.json | 1 - .../.cache/cache-loader/fedfa5d38ab7ac2d0067c75a308e5b31.json | 1 - 200 files changed, 1 insertion(+), 199 deletions(-) delete mode 100644 node_modules/.cache/cache-loader/00349e6c0bca07649f748b8a804fc394.json delete mode 100644 node_modules/.cache/cache-loader/0159f7b6ebe949eb731da33411f2cfcf.json delete mode 100644 node_modules/.cache/cache-loader/02e350f9300b3f792a4f23c93c81a188.json delete mode 100644 node_modules/.cache/cache-loader/03bab04621a60788a157d404577dcac3.json delete mode 100644 node_modules/.cache/cache-loader/04b64252b72901b6fc64e097a0688860.json delete mode 100644 node_modules/.cache/cache-loader/05c6be67de773ef6cff4be27bccce101.json delete mode 100644 node_modules/.cache/cache-loader/070307f08801bfd191c517e429194af0.json delete mode 100644 node_modules/.cache/cache-loader/07cfdeb24b4064fb72de55baec074e08.json delete mode 100644 node_modules/.cache/cache-loader/08d9a069b593e3dcc1a009be13fed9a0.json delete mode 100644 node_modules/.cache/cache-loader/091a7aa9420ebced5a59f6adbdcc87af.json delete mode 100644 node_modules/.cache/cache-loader/0a3874c7eb569d1af643aaf22a351255.json delete mode 100644 node_modules/.cache/cache-loader/0a719749d47998e444684f78314c4d8f.json delete mode 100644 node_modules/.cache/cache-loader/0c1763ccc839d8b93e143c11f50ef505.json delete mode 100644 node_modules/.cache/cache-loader/0dd5e7660b0d31c8ae2bc5251e5473b1.json delete mode 100644 node_modules/.cache/cache-loader/0ef34e2dee22b3f6d71c9b3519964d80.json delete mode 100644 node_modules/.cache/cache-loader/0f917c0b74b0dc7ceb84c1b1fa9b6e8d.json delete mode 100644 node_modules/.cache/cache-loader/1106cb40cc0f62ab7f492f75e7042b47.json delete mode 100644 node_modules/.cache/cache-loader/13f28c5712617dd9ff8fb9ff15edea96.json delete mode 100644 node_modules/.cache/cache-loader/16a0ac9e28a8cd1af407d734f8ec2785.json delete mode 100644 node_modules/.cache/cache-loader/1777a5e86aaf7dc1afb821f07ea49a2b.json delete mode 100644 node_modules/.cache/cache-loader/1e3fdbe7b61d5182d5f2367cb0f86722.json delete mode 100644 node_modules/.cache/cache-loader/20017c159b3162f7446a9f3762d8b692.json delete mode 100644 node_modules/.cache/cache-loader/20d4cbfd17a2af35c2fa2017c44a9915.json delete mode 100644 node_modules/.cache/cache-loader/233fe960c210b93953489f68d9549278.json delete mode 100644 node_modules/.cache/cache-loader/28241ffd866182d96a9fd7915de2bdaf.json delete mode 100644 node_modules/.cache/cache-loader/2933577bfefdf9013ce6751315388988.json delete mode 100644 node_modules/.cache/cache-loader/2bdedb0da9986305e9194bc7cd772228.json delete mode 100644 node_modules/.cache/cache-loader/2c2ac982c7c8cb93592f32fdd8826c6e.json delete mode 100644 node_modules/.cache/cache-loader/2d635602479c6c131a63e271ed23702b.json delete mode 100644 node_modules/.cache/cache-loader/2e5542ddb68ba45d20c10ec374884169.json delete mode 100644 node_modules/.cache/cache-loader/2fc5c606229b8c65ad5d7f34ee398b6d.json delete mode 100644 node_modules/.cache/cache-loader/366387d1c9b7807f911db33872e281a2.json delete mode 100644 node_modules/.cache/cache-loader/36c8fd65c7d6eb546b1bcb34cb590c79.json delete mode 100644 node_modules/.cache/cache-loader/374eeb9ef574d7ccf8bf6de6281fff71.json delete mode 100644 node_modules/.cache/cache-loader/39b48799797fa0bc47bb0eab81477259.json delete mode 100644 node_modules/.cache/cache-loader/3ec7362360268352b00f0ed9edf4e772.json delete mode 100644 node_modules/.cache/cache-loader/3eee2aece377882ea5f3e955091acf40.json delete mode 100644 node_modules/.cache/cache-loader/3f589f45f41f0d1ee6c720c1acf86ec3.json delete mode 100644 node_modules/.cache/cache-loader/404ccd058c752dbedcd8c251ca32154a.json delete mode 100644 node_modules/.cache/cache-loader/404d54960af98a188af96e3d169f48d4.json delete mode 100644 node_modules/.cache/cache-loader/41bccdc5e12f091006cc3bc7979dd3c5.json delete mode 100644 node_modules/.cache/cache-loader/41f222a2bde60cbbb280c80d36e38484.json delete mode 100644 node_modules/.cache/cache-loader/4229755410ecdc78d73863c4818fcfee.json delete mode 100644 node_modules/.cache/cache-loader/42467b6446d635ffad2df5060e841855.json delete mode 100644 node_modules/.cache/cache-loader/4317c3f1fad1c1bce4a5bc9bcc91c297.json delete mode 100644 node_modules/.cache/cache-loader/43acc0ef5603e3f8b7a286b1dba89290.json delete mode 100644 node_modules/.cache/cache-loader/4436fe681397dd218edbf0c488a984bf.json delete mode 100644 node_modules/.cache/cache-loader/4440f8dfd823a7552caf034994320de1.json delete mode 100644 node_modules/.cache/cache-loader/4588212d5650614b4495ca31a8c1a631.json delete mode 100644 node_modules/.cache/cache-loader/46f0abc65ac743f7bdfe6e6ad833aa3b.json delete mode 100644 node_modules/.cache/cache-loader/49b0476bd0b9de0db06ced92cc72e3b8.json delete mode 100644 node_modules/.cache/cache-loader/4aa70094bc1d5942e8119dc5193b9f40.json delete mode 100644 node_modules/.cache/cache-loader/4e3c417313d638463d65eb49a3f1c636.json delete mode 100644 node_modules/.cache/cache-loader/4f52c0f3fc251f73293863c0acc75ae0.json delete mode 100644 node_modules/.cache/cache-loader/4fef6fae6fd40f20ca1f259bfc0e1ce8.json delete mode 100644 node_modules/.cache/cache-loader/51983d6f24d80fa9b95ebc4b850caed2.json delete mode 100644 node_modules/.cache/cache-loader/532b8f97ccfa36cc2f15bfeba2943d86.json delete mode 100644 node_modules/.cache/cache-loader/535b1c729209e9ae3228aebfb6fab352.json delete mode 100644 node_modules/.cache/cache-loader/5703c618533fa72aa80a17b8dcaf5c89.json delete mode 100644 node_modules/.cache/cache-loader/582bee67d465d328b66173ccd717f04c.json delete mode 100644 node_modules/.cache/cache-loader/59b941ae390df57ccba5f8e089051e02.json delete mode 100644 node_modules/.cache/cache-loader/59ff9fcd63cdb9d15a0087c315141264.json delete mode 100644 node_modules/.cache/cache-loader/5a2c8e55e20fbf0a71efa64da474fbaf.json delete mode 100644 node_modules/.cache/cache-loader/5a45f03bb53e6eb1d3f82034f40171d8.json delete mode 100644 node_modules/.cache/cache-loader/5ad678393cbd7344128ee6ecb3b9a954.json delete mode 100644 node_modules/.cache/cache-loader/5e02c5a7efcd1ed662ffce25d06bc134.json delete mode 100644 node_modules/.cache/cache-loader/60aa4b8f1dce84df191a56626d10bab1.json delete mode 100644 node_modules/.cache/cache-loader/60aefabb65db00c04b8c4b25275afb79.json delete mode 100644 node_modules/.cache/cache-loader/61eacbcf24487f7f5a892d3bad8fadd4.json delete mode 100644 node_modules/.cache/cache-loader/62215c1ff20e6eac5cccfaa320d48c9a.json delete mode 100644 node_modules/.cache/cache-loader/6429e97a6b902d887f78aec3916ebe96.json delete mode 100644 node_modules/.cache/cache-loader/647cead8d6e6615f9fd4b77de56f910f.json delete mode 100644 node_modules/.cache/cache-loader/6521714bf451d1161321161bea18e5c4.json delete mode 100644 node_modules/.cache/cache-loader/659948c82f4f6e6a014cb2d9d67fb91a.json delete mode 100644 node_modules/.cache/cache-loader/662ab3fdada5efc4f23d8d943b88bae9.json delete mode 100644 node_modules/.cache/cache-loader/67e9631e688a79f0365d2913b0cf72f9.json delete mode 100644 node_modules/.cache/cache-loader/69aec30cfc3c9cfe9d00d08db2623f2e.json delete mode 100644 node_modules/.cache/cache-loader/6bdfce993f5cb7f7fe68c3eb2816336e.json delete mode 100644 node_modules/.cache/cache-loader/6c2ac0a21033334154fcd491cd4ba866.json delete mode 100644 node_modules/.cache/cache-loader/6c319574ad2221a532539097096a9211.json delete mode 100644 node_modules/.cache/cache-loader/6e497c3765531cc7f22233cb7ca3cb93.json delete mode 100644 node_modules/.cache/cache-loader/6e4d59e7ba965f62d5a95925ccce9ce6.json delete mode 100644 node_modules/.cache/cache-loader/6e8b137c1f335ea469db4107088ed70e.json delete mode 100644 node_modules/.cache/cache-loader/71d1feb830ffd848ef3cd87ff8d0d1a7.json delete mode 100644 node_modules/.cache/cache-loader/7562e4f22838a2bd5b13f1a36f1ae71d.json delete mode 100644 node_modules/.cache/cache-loader/761d26dfbd5dcdbc8fa5f92a290eb5cc.json delete mode 100644 node_modules/.cache/cache-loader/77b9812609e155cb3ba836d691b30f97.json delete mode 100644 node_modules/.cache/cache-loader/79d644e50834d4488d45e682128bb207.json delete mode 100644 node_modules/.cache/cache-loader/7bdef32efc0c03ce4dd9e9d5e363e6b6.json delete mode 100644 node_modules/.cache/cache-loader/7f823f68ccb49daa14da839c9db47935.json delete mode 100644 node_modules/.cache/cache-loader/7fdd39701243250dca2c9c098a329771.json delete mode 100644 node_modules/.cache/cache-loader/8273dae46368f3169ec35c7377e02445.json delete mode 100644 node_modules/.cache/cache-loader/82e0b595b06df8b68d31ab7ed9b59231.json delete mode 100644 node_modules/.cache/cache-loader/83df60a9188bc46dcc798f4d31eebeb8.json delete mode 100644 node_modules/.cache/cache-loader/84b1e27c3cf59045133eb1fe526604d7.json delete mode 100644 node_modules/.cache/cache-loader/8701c5eee1e23b178c0012dbeddf6f9d.json delete mode 100644 node_modules/.cache/cache-loader/8888181596d34844e744232ac198ca0a.json delete mode 100644 node_modules/.cache/cache-loader/88f6fd483b689b26e5df1785594cf3ae.json delete mode 100644 node_modules/.cache/cache-loader/8a350b13147ae732159ed5d19ec1511e.json delete mode 100644 node_modules/.cache/cache-loader/8a578dcca855553a2df2ed768606a34a.json delete mode 100644 node_modules/.cache/cache-loader/8e17d87520bf5a9d21bcf67bf7e4fcad.json delete mode 100644 node_modules/.cache/cache-loader/8e290b52f03ab62c51c4bbca3ccc08f8.json delete mode 100644 node_modules/.cache/cache-loader/91eca423812ab12a07bcfc46434f5ad5.json delete mode 100644 node_modules/.cache/cache-loader/92f5238cec80d1e3f960ceb99c7f5747.json delete mode 100644 node_modules/.cache/cache-loader/93fc92db10423e62900e3727a37fb89b.json delete mode 100644 node_modules/.cache/cache-loader/951bbf9ae82a12e70d318b9e288c4d7b.json delete mode 100644 node_modules/.cache/cache-loader/97b03d2150bae4464a8c0cac919cc42c.json delete mode 100644 node_modules/.cache/cache-loader/988c659ef67073b4f5791b12fb897c8f.json delete mode 100644 node_modules/.cache/cache-loader/9e75c93175544290003aba9eef002590.json delete mode 100644 node_modules/.cache/cache-loader/a17e08a8315e626ed3deb0512bf972e7.json delete mode 100644 node_modules/.cache/cache-loader/a1f0a53dcf85f67ad0464fc041a4982c.json delete mode 100644 node_modules/.cache/cache-loader/a32b6899794daa391c6ee30fb58acf39.json delete mode 100644 node_modules/.cache/cache-loader/a32f4d334a3e2e26ac995abad3aecdda.json delete mode 100644 node_modules/.cache/cache-loader/a403bf62b4dfaf7bfa3482734f81bb69.json delete mode 100644 node_modules/.cache/cache-loader/a52198692fe84d0e6634fb6826443a86.json delete mode 100644 node_modules/.cache/cache-loader/a80e1c5710e18de176a48a3828a74b3d.json delete mode 100644 node_modules/.cache/cache-loader/a94baf60034dbec82e84f8f775b4c907.json delete mode 100644 node_modules/.cache/cache-loader/ab231c4a9df43b0c154f9ffcea35197b.json delete mode 100644 node_modules/.cache/cache-loader/ac249296a3cbb881c6a6da100d6057dc.json delete mode 100644 node_modules/.cache/cache-loader/ad2d1f103eabf55aa0dd58cb4fc362b6.json delete mode 100644 node_modules/.cache/cache-loader/ad374aada8ff42eb6743ef2dec6372b7.json delete mode 100644 node_modules/.cache/cache-loader/adb861e9b85e56f907afa17017b7c621.json delete mode 100644 node_modules/.cache/cache-loader/ae545b98333b2681b90716474f14833a.json delete mode 100644 node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json delete mode 100644 node_modules/.cache/cache-loader/b0e1519e35056d8dba0f2692a68c7504.json delete mode 100644 node_modules/.cache/cache-loader/b12d146b6656557690340ead7b13e60c.json delete mode 100644 node_modules/.cache/cache-loader/b15885ec96cba2bd280d2d01bc158f91.json delete mode 100644 node_modules/.cache/cache-loader/b1b1454aa513882eeb9a6b782296480d.json delete mode 100644 node_modules/.cache/cache-loader/b1f38c5f10ef422368b69e1d620a2afe.json delete mode 100644 node_modules/.cache/cache-loader/b219f4bf7cb708997f1562b593a0f879.json delete mode 100644 node_modules/.cache/cache-loader/b278ed4bea79fd5d0ac144af6c0bc941.json delete mode 100644 node_modules/.cache/cache-loader/b404332713f486f0fde5026f74d8e5a6.json delete mode 100644 node_modules/.cache/cache-loader/b54de8838449e8ae038e9f416a8e247e.json delete mode 100644 node_modules/.cache/cache-loader/b571823cc95f73ba8bdb2eea16a0db81.json delete mode 100644 node_modules/.cache/cache-loader/b69ae5fdb2a9cf4d981545dd3e5feec3.json delete mode 100644 node_modules/.cache/cache-loader/b6b3ea3dbaecb558ecd26ceb3536f554.json delete mode 100644 node_modules/.cache/cache-loader/b7f3a6ef440f2ed047f6af5fa7cb260b.json delete mode 100644 node_modules/.cache/cache-loader/b86fdfb412377ab3953f2c62638d6d9e.json delete mode 100644 node_modules/.cache/cache-loader/b8a3cefa73027b6736a2c68aaa42d71d.json delete mode 100644 node_modules/.cache/cache-loader/b8df816429379c5fdc068855d41d2b73.json delete mode 100644 node_modules/.cache/cache-loader/bc359d85dfac16e910abee149f9a9bca.json delete mode 100644 node_modules/.cache/cache-loader/bd09c3ca7e18e99ae47c1f8d9c62ffb2.json delete mode 100644 node_modules/.cache/cache-loader/be63717a206ad34ca5c7ccc0af66717d.json delete mode 100644 node_modules/.cache/cache-loader/bf1640b5826229c572d2bd998568078b.json delete mode 100644 node_modules/.cache/cache-loader/bf86dcd1bd44c87de52508328b5461d4.json delete mode 100644 node_modules/.cache/cache-loader/bf979606fcad222ba2726f01848a1da6.json delete mode 100644 node_modules/.cache/cache-loader/c08741df749e4053043d15561b6175dd.json delete mode 100644 node_modules/.cache/cache-loader/c2bcdc612ae0f84917ad576f14f97040.json delete mode 100644 node_modules/.cache/cache-loader/c4f38e2b1cd685876493d6a21a9cc566.json delete mode 100644 node_modules/.cache/cache-loader/c52566f2239e48ccdd7380b45b5bad7f.json delete mode 100644 node_modules/.cache/cache-loader/c56a23a1c94c30ee6a10d11d94e480f5.json delete mode 100644 node_modules/.cache/cache-loader/c5b32723a30bdb62b4f052ddfaef457b.json delete mode 100644 node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json delete mode 100644 node_modules/.cache/cache-loader/c77f2d22e22c0dc022617c0c2ad1c397.json delete mode 100644 node_modules/.cache/cache-loader/c7e1433f695f98d34ead4069a318107e.json delete mode 100644 node_modules/.cache/cache-loader/c94066049d3fb36026656828a48dd3b6.json delete mode 100644 node_modules/.cache/cache-loader/c9c19bc832e364263e6f731479dd8040.json delete mode 100644 node_modules/.cache/cache-loader/cc8b7056541cf76dfb04be06105828ae.json delete mode 100644 node_modules/.cache/cache-loader/ceb1683bb259f86ce42bef534abd2ed9.json delete mode 100644 node_modules/.cache/cache-loader/cee2b249f164ed41052dd9d20ff53244.json delete mode 100644 node_modules/.cache/cache-loader/cef5f329b442ef542fb6c3db1c0731c0.json delete mode 100644 node_modules/.cache/cache-loader/cfe8b246ba476a61a30c9842dd9f8df9.json delete mode 100644 node_modules/.cache/cache-loader/d0a529dad7c2471e1592742601ebf6ce.json delete mode 100644 node_modules/.cache/cache-loader/d107fa8cb552516f2b9a98fee65c69fb.json delete mode 100644 node_modules/.cache/cache-loader/d36ecdabab866ccaf465f84bcee20f53.json delete mode 100644 node_modules/.cache/cache-loader/d5ccb222a401ac97301a8f37b6f2f10e.json delete mode 100644 node_modules/.cache/cache-loader/d60314aa6aac467614226b6d00b765b9.json delete mode 100644 node_modules/.cache/cache-loader/d6b10496ac44ba3985ec6f79547c83e1.json delete mode 100644 node_modules/.cache/cache-loader/d70e6054cfc37b612b1d601cafa6f4ca.json delete mode 100644 node_modules/.cache/cache-loader/d8d1c27b181014289e11e649e39fa01c.json delete mode 100644 node_modules/.cache/cache-loader/d9c9d69818c9ff9ff309346ddc0f131d.json delete mode 100644 node_modules/.cache/cache-loader/da9f57b718e4b3d838dca9e967f2b586.json delete mode 100644 node_modules/.cache/cache-loader/dbd4f684c6fefe08206f648f4035cd8f.json delete mode 100644 node_modules/.cache/cache-loader/dccacc87477f3ac8fa930558f094c069.json delete mode 100644 node_modules/.cache/cache-loader/de03e79117b01323d11834a868813df6.json delete mode 100644 node_modules/.cache/cache-loader/e03a2eb42e5ecd26f56718b497f3240e.json delete mode 100644 node_modules/.cache/cache-loader/e3e3994796369a45ea9dd9a3815d7249.json delete mode 100644 node_modules/.cache/cache-loader/e41863b9488b62b0d3f6eacf971532bb.json delete mode 100644 node_modules/.cache/cache-loader/e4d5308f17173afb873a78ec4fb5889e.json delete mode 100644 node_modules/.cache/cache-loader/e5cb39f1726585c29b950fb80164d3d6.json delete mode 100644 node_modules/.cache/cache-loader/e5f8ce811ced9fc96afa08ef532b9e68.json delete mode 100644 node_modules/.cache/cache-loader/e670f1101ccb60c86706309f26172244.json delete mode 100644 node_modules/.cache/cache-loader/e6860eb52fd666f1b50bf39697cdcf8b.json delete mode 100644 node_modules/.cache/cache-loader/e96ba5f2e65142a196e87e20a4ec4ac9.json delete mode 100644 node_modules/.cache/cache-loader/eb0f905d4992b40d399b141f0ed2cd93.json delete mode 100644 node_modules/.cache/cache-loader/eb9272199f0cca7fc4b9f9444f9eefe1.json delete mode 100644 node_modules/.cache/cache-loader/ec80b3125f2683dfa69753b1269a5760.json delete mode 100644 node_modules/.cache/cache-loader/ed5bd954702f5bb4d52e9c258eade2ef.json delete mode 100644 node_modules/.cache/cache-loader/ed7e6584076eba7374be38e8cc7d89e4.json delete mode 100644 node_modules/.cache/cache-loader/eef094059fcec12a769649c72a1a57ca.json delete mode 100644 node_modules/.cache/cache-loader/eef1c5b1a7edee9e756973a320bbe78b.json delete mode 100644 node_modules/.cache/cache-loader/f1d73f29a226e968caed834f7f57711b.json delete mode 100644 node_modules/.cache/cache-loader/f1ef8c32b9148ea3c57183d4452537d1.json delete mode 100644 node_modules/.cache/cache-loader/f3cef5586fed6d3c279150435300244a.json delete mode 100644 node_modules/.cache/cache-loader/f50b17a069b5f319f008ad2deb63810c.json delete mode 100644 node_modules/.cache/cache-loader/f64cb6b007e91718c377ebc2513837ed.json delete mode 100644 node_modules/.cache/cache-loader/f9a4bca8a415cb061b036cc6c5cd355e.json delete mode 100644 node_modules/.cache/cache-loader/fac149d89add8f4008c791938644dae9.json delete mode 100644 node_modules/.cache/cache-loader/fedfa5d38ab7ac2d0067c75a308e5b31.json diff --git a/.gitignore b/.gitignore index 9a1ff0f..3e22920 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +node_modules/ # testing /coverage diff --git a/node_modules/.cache/cache-loader/00349e6c0bca07649f748b8a804fc394.json b/node_modules/.cache/cache-loader/00349e6c0bca07649f748b8a804fc394.json deleted file mode 100644 index b0df62a..0000000 --- a/node_modules/.cache/cache-loader/00349e6c0bca07649f748b8a804fc394.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\FileUploadMessage.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\FileUploadMessage.tsx","mtime":1624559748119},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBTZXBhcmF0b3IgfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgbW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N0eWxlOiB7CiAgICAgICAgY3Vyc29yOiBvbkNsaWNrID8gJ3BvaW50ZXInIDogJ2RlZmF1bHQnCiAgICAgIH0KICAgIH0sIFJlYWN0LmNyZWF0ZUVsZW1lbnQoVGQsIG51bGwsIGZpbGUudXJsKSwgUmVhY3QuY3JlYXRlRWxlbWVudChUZCwgbnVsbCwgZmlsZS5vcmlnaW4pLCBSZWFjdC5jcmVhdGVFbGVtZW50KFRkLCBudWxsLCBmaWxlLnRhYmxlVHlwZSB8fCAndW5rbm93bicpLCBSZWFjdC5jcmVhdGVFbGVtZW50KFRkLCBudWxsLCBmaWxlLnJvd3MpKTsKICB9KSA6IFJlYWN0LmNyZWF0ZUVsZW1lbnQoInRyIiwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudCgidGQiLCBudWxsLCAibm9uZSBsb2FkZWQiKSkpKSk7Cn0pOwpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJbWFyZ2luOiAxMHB4OwoJbWFyZ2luLWJvdHRvbTogMTBweDsKYDsKY29uc3QgVGFibGUgPSBzdHlsZWQudGFibGVgCgl3aWR0aDogMTAwJTsKYDsKY29uc3QgVGQgPSBzdHlsZWQudGRgCgltYXJnaW46IDRweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/panels/FileUploadMessage.tsx"],"names":["Separator","React","memo","useCallback","styled","FileUploadMessage","files","onClick","handleClick","file","createElement","Container","Table","length","map","key","url","style","cursor","Td","origin","tableType","rows","div","table","td"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,iBAA1B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,WAAtB,QAAyC,OAAzC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,iBAAiB,GAAGH,IAAI,CAAC,SAASG,iBAAT,CAA2B;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAA3B,EAA+C;AACjF,QAAMC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K,CAACS,aAAN,CAAoBS,EAApB,EAAwB,IAAxB,EAA8BV,IAAI,CAACW,MAAnC,CAJI,EAKJnB,KAAK,CAACS,aAAN,CAAoBS,EAApB,EAAwB,IAAxB,EAA8BV,IAAI,CAACY,SAAL,IAAkB,SAAhD,CALI,EAMJpB,KAAK,CAACS,aAAN,CAAoBS,EAApB,EAAwB,IAAxB,EAA8BV,IAAI,CAACa,IAAnC,CANI,CAAR;AAOH,GARsD,CAApB,GAQ5BrB,KAAK,CAACS,aAAN,CAAoB,IAApB,EAA0B,IAA1B,EACHT,KAAK,CAACS,aAAN,CAAoB,IAApB,EAA0B,IAA1B,EAAgC,aAAhC,CADG,CARP,CAPJ,CAFI,CAAR;AAmBH,CAvBoC,CAA9B;AAwBP,MAAMC,SAAS,GAAGP,MAAM,CAACmB,GAAK;AAC9B;AACA;AACA,CAHA;AAIA,MAAMX,KAAK,GAAGR,MAAM,CAACoB,KAAO;AAC5B;AACA,CAFA;AAGA,MAAML,EAAE,GAAGf,MAAM,CAACqB,EAAI;AACtB;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Separator } from '@fluentui/react';\r\nimport React, { memo, useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const FileUploadMessage = memo(function FileUploadMessage({ files, onClick }) {\r\n const handleClick = useCallback((file) => {\r\n onClick && onClick(file);\r\n }, [onClick]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Separator, null),\r\n React.createElement(Table, null,\r\n React.createElement(\"thead\", null,\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"th\", null, \"Name\"),\r\n React.createElement(\"th\", null, \"Source\"),\r\n React.createElement(\"th\", null, \"Type\"),\r\n React.createElement(\"th\", null, \"Rows\"))),\r\n React.createElement(\"tbody\", null, files.length > 0 ? (files.map(file => {\r\n return (React.createElement(\"tr\", { key: `loaded-file-${file.url}`, onClick: () => handleClick(file), style: {\r\n cursor: onClick ? 'pointer' : 'default',\r\n } },\r\n React.createElement(Td, null, file.url),\r\n React.createElement(Td, null, file.origin),\r\n React.createElement(Td, null, file.tableType || 'unknown'),\r\n React.createElement(Td, null, file.rows)));\r\n })) : (React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null, \"none loaded\")))))));\r\n});\r\nconst Container = styled.div `\r\n\tmargin: 10px;\r\n\tmargin-bottom: 10px;\r\n`;\r\nconst Table = styled.table `\r\n\twidth: 100%;\r\n`;\r\nconst Td = styled.td `\r\n\tmargin: 4px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0159f7b6ebe949eb731da33411f2cfcf.json b/node_modules/.cache/cache-loader/0159f7b6ebe949eb731da33411f2cfcf.json deleted file mode 100644 index 0bb9881..0000000 --- a/node_modules/.cache/cache-loader/0159f7b6ebe949eb731da33411f2cfcf.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeOpacityControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeOpacityControls\\index.tsx","mtime":1620403249376},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL05vZGVPcGFjaXR5Q29udHJvbHMnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeOpacityControls/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,uBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './NodeOpacityControls';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/02e350f9300b3f792a4f23c93c81a188.json b/node_modules/.cache/cache-loader/02e350f9300b3f792a4f23c93c81a188.json deleted file mode 100644 index 67cfb2b..0000000 --- a/node_modules/.cache/cache-loader/02e350f9300b3f792a4f23c93c81a188.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\types.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\types.ts","mtime":1624559748438},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZXhwb3J0IHZhciBGaWxlT3JpZ2luOwoKKGZ1bmN0aW9uIChGaWxlT3JpZ2luKSB7CiAgLyoqDQogICAqIExvY2FsIGZpbGUgdXBsb2FkZWQgZGlyZWN0bHkgZnJvbSB0aGUgdXNlciwgZS5nLiwgdmlhIGRyYWcvZHJvcA0KICAgKi8KICBGaWxlT3JpZ2luWyJMb2NhbCJdID0gImxvY2FsIjsKICAvKioNCiAgICogQmFrZWQgaW4gcHJlc2V0IGZpbGUsIHB1Ymxpc2hlZCBpbiAvcHVibGljL2RhdGENCiAgICovCgogIEZpbGVPcmlnaW5bIlByZXNldCJdID0gInByZXNldCI7CiAgLyoqDQogICAqIFJlbW90ZSB1cmwgZmlsZSwgc3VjaCBhcyBwaXBlbGluZSBvdXRwdXRzDQogICAqLwoKICBGaWxlT3JpZ2luWyJSZW1vdGUiXSA9ICJyZW1vdGUiOwp9KShGaWxlT3JpZ2luIHx8IChGaWxlT3JpZ2luID0ge30pKTsKCmV4c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,GAAG,EAAnB,CAbd","sourcesContent":["export var FileOrigin;\r\n(function (FileOrigin) {\r\n /**\r\n * Local file uploaded directly from the user, e.g., via drag/drop\r\n */\r\n FileOrigin[\"Local\"] = \"local\";\r\n /**\r\n * Baked in preset file, published in /public/data\r\n */\r\n FileOrigin[\"Preset\"] = \"preset\";\r\n /**\r\n * Remote url file, such as pipeline outputs\r\n */\r\n FileOrigin[\"Remote\"] = \"remote\";\r\n})(FileOrigin || (FileOrigin = {}));\r\nexport var ViewType;\r\n(function (ViewType) {\r\n ViewType[ViewType[\"SingleGraph\"] = 0] = \"SingleGraph\";\r\n ViewType[ViewType[\"SmallMultiple\"] = 1] = \"SmallMultiple\";\r\n})(ViewType || (ViewType = {}));\r\nexport var BrowserOptions;\r\n(function (BrowserOptions) {\r\n BrowserOptions[\"Browser\"] = \"browser\";\r\n BrowserOptions[\"Lineup\"] = \"lineup\";\r\n})(BrowserOptions || (BrowserOptions = {}));\r\n/**\r\n * Indicates how a column's visual config is data-bound\r\n */\r\nexport var DataBinding;\r\n(function (DataBinding) {\r\n /**\r\n * No data binding, uses a fixed value\r\n */\r\n DataBinding[\"Fixed\"] = \"fixed\";\r\n /**\r\n * Bound to a palette value, e.g., thematic colors\r\n */\r\n DataBinding[\"Palette\"] = \"palette\";\r\n /**\r\n * Bound to a variable scale\r\n */\r\n DataBinding[\"Scaled\"] = \"scaled\";\r\n})(DataBinding || (DataBinding = {}));\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/03bab04621a60788a157d404577dcac3.json b/node_modules/.cache/cache-loader/03bab04621a60788a157d404577dcac3.json deleted file mode 100644 index 21fff25..0000000 --- a/node_modules/.cache/cache-loader/03bab04621a60788a157d404577dcac3.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeSizeControls\\NodeSizeControls.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeSizeControls\\NodeSizeControls.tsx","mtime":1631029330215},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb1Zpc2libGVOb2Rlc1RhYmxlIH0gZnJvbSAnfi9hcnF1ZXJvJzsKaW1wb3J0IHsgTnVtZXJpY1NlbGVjdG9yIH0gZnJvbSAnfi9jb250cm9scy9OdW1lcmljU2VsZWN0b3InOwppbXBvcnQgeyB1c2VOb2RlU2l6ZUVuY29kaW5nLCB1c2VVcGRhdGVOb2RlU2l6ZUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBOb2RlU2l6ZUNvbnRyb2xzID0gKCkgPT4gewogIGNvbnN0IGVuY29kaW5nID0gdXNlTm9kZVNpemVFbmNvZGluZygpOwogIGNvbnN0IHVwZGF0ZUVuY29kaW5nID0gdXNlVXBkYXRlTm9kZVNpemVFbmNvZGluZygpOwogIGNvbnN0IHRhYmxlID0gdXNlQXJxdWVyb1Zpc2libGVOb2Rlc1RhYmxlKCk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGFpbmVyLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KE51bWVyaWNTZWxlY3RvciwgewogICAgbGFiZWw6ICJub2RlIHNpemUiLAogICAgdGFibGU6IHRhYmxlLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb25DaGFuZ2U6IHVwZGF0ZUVuY29kaW5nLAogICAgbWluOiAwLjUsCiAgICBtYXg6IDUwLAogICAgc3RlcDogMC41CiAgfSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeSizeControls/NodeSizeControls.tsx"],"names":["React","styled","useArqueroVisibleNodesTable","NumericSelector","useNodeSizeEncoding","useUpdateNodeSizeEncoding","NodeSizeControls","encoding","updateEncoding","table","createElement","Container","label","onChange","min","max","step","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,2BAAT,QAA4C,WAA5C;AACA,SAASC,eAAT,QAAgC,4BAAhC;AACA,SAASC,mBAAT,EAA8BC,yBAA9B,QAA+D,SAA/D;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAM;AAClC,QAAMC,QAAQ,GAAGH,mBAAmB,EAApC;AACA,QAAMI,cAAc,GAAGH,yBAAyB,EAAhD;AACA,QAAMI,KAAK,GAAGP,2BAA2B,EAAzC;AACA,SAAQF,KAAK,CAACU,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJX,KAAK,CAACU,aAAN,CAAoBP,eAApB,EAAqC;AAAES,IAAAA,KAAK,EAAE,WAAT;AAAsBH,IAAAA,KAAK,EAAEA,KAA7B;AAAoCF,IAAAA,QAAQ,EAAEA,QAA9C;AAAwDM,IAAAA,QAAQ,EAAEL,cAAlE;AAAkFM,IAAAA,GAAG,EAAE,GAAvF;AAA4FC,IAAAA,GAAG,EAAE,EAAjG;AAAqGC,IAAAA,IAAI,EAAE;AAA3G,GAArC,CADI,CAAR;AAEH,CANM;AAOP,MAAML,SAAS,GAAGV,MAAM,CAACgB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroVisibleNodesTable } from '~/arquero';\r\nimport { NumericSelector } from '~/controls/NumericSelector';\r\nimport { useNodeSizeEncoding, useUpdateNodeSizeEncoding } from '~/state';\r\nexport const NodeSizeControls = () => {\r\n const encoding = useNodeSizeEncoding();\r\n const updateEncoding = useUpdateNodeSizeEncoding();\r\n const table = useArqueroVisibleNodesTable();\r\n return (React.createElement(Container, null,\r\n React.createElement(NumericSelector, { label: \"node size\", table: table, encoding: encoding, onChange: updateEncoding, min: 0.5, max: 50, step: 0.5 })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/04b64252b72901b6fc64e097a0688860.json b/node_modules/.cache/cache-loader/04b64252b72901b6fc64e097a0688860.json deleted file mode 100644 index ed68b32..0000000 --- a/node_modules/.cache/cache-loader/04b64252b72901b6fc64e097a0688860.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\RightSidePanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\RightSidePanel.tsx","mtime":1631029334749},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBUb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IGNvdW50ID09PSAwCiAgfSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/RightSidePanel.tsx"],"names":["ToggleHeader","EdgeColorHeaderLegend","EdgeOpacityHeaderLegend","EdgeSizeHeaderLegend","NodeColorHeaderLegend","NodeOpacityHeaderLegend","NodeSizeHeaderLegend","ColumnEditorPanel","EdgeColorControlsPanel","EdgeOpacityControlsPanel","EdgeSizeControlsPanel","Layout","NodeColorControlsPanel","NodeDetailsPanel","NodeHoverHeader","NodeOpacityControlsPanel","NodeSizeControlsPanel","SearchPanel","CollapsiblePanel","CollapsiblePanelContainer","format","React","useCallback","styled","useEdgeCount","useNodeCount","QuickDrop","useEdgesVisible","useNodesVisible","useSetEdgesVisible","useSetNodesVisible","GUTTER","RightSidePanel","style","renderNodeHoverHeader","createElement","renderNodeColorHeader","renderNodeOpacityHeader","renderNodeSizeHeader","renderEdgeColorHeader","renderEdgeOpacityHeader","renderEdgeSizeHeader","Container","DisplayRelative","NodesHeader","title","onRenderHeader","EdgesHeader","defaultExpanded","dropWidthSize","dropHeightSize","compact","Privacy","href","div","pretty","count","checked","handleChecked","subtitle","onChange","disabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,sCAA7B;AACA,SAASC,qBAAT,QAAsC,2CAAtC;AACA,SAASC,uBAAT,QAAwC,6CAAxC;AACA,SAASC,oBAAT,QAAqC,0CAArC;AACA,SAASC,qBAAT,QAAsC,2CAAtC;AACA,SAASC,uBAAT,QAAwC,6CAAxC;AACA,SAASC,oBAAT,QAAqC,0CAArC;AACA,SAASC,iBAAT,QAAkC,qCAAlC;AACA,SAASC,sBAAT,QAAuC,0CAAvC;AACA,SAASC,wBAAT,QAAyC,4CAAzC;AACA,SAASC,qBAAT,QAAsC,yCAAtC;AACA,SAASC,MAAT,QAAuB,0BAAvB;AACA,SAASC,sBAAT,QAAuC,0CAAvC;AACA,SAASC,gBAAT,QAAiC,oCAAjC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Y,EAA1B;AACA,QAAMiC,OAAO,GAAG9B,eAAe,EAA/B;AACA,QAAM+B,aAAa,GAAG7B,kBAAkB,EAAxC;AACA,SAAQR,KAAK,CAACc,aAAN,CAAoBnC,YAApB,EAAkC;AAAE6C,IAAAA,KAAK,EAAE,OAAT;AAAkBc,IAAAA,QAAQ,EAAG,GAAEJ,MAAM,CAACC,KAAD,CAAQ,QAAOA,KAAK,KAAK,CAAV,GAAc,GAAd,GAAoB,EAAG,EAA3E;AAA8EI,IAAAA,QAAQ,EAAEF,aAAxF;AAAuGD,IAAAA,OAAO,EAAEA,OAAhH;AAAyHI,IAAAA,QAAQ,EAAEL,KAAK,KAAK;AAA7I,GAAlC,CAAR;AACH,CALD","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ToggleHeader } from '../../../../../controls/ToggleHeader';\r\nimport { EdgeColorHeaderLegend } from '../../../../legends/EdgeColorHeaderLegend';\r\nimport { EdgeOpacityHeaderLegend } from '../../../../legends/EdgeOpacityHeaderLegend';\r\nimport { EdgeSizeHeaderLegend } from '../../../../legends/EdgeSizeHeaderLegend';\r\nimport { NodeColorHeaderLegend } from '../../../../legends/NodeColorHeaderLegend';\r\nimport { NodeOpacityHeaderLegend } from '../../../../legends/NodeOpacityHeaderLegend';\r\nimport { NodeSizeHeaderLegend } from '../../../../legends/NodeSizeHeaderLegend';\r\nimport { ColumnEditorPanel } from './PanelComponents/ColumnEditorPanel';\r\nimport { EdgeColorControlsPanel } from './PanelComponents/EdgeColorControlsPanel';\r\nimport { EdgeOpacityControlsPanel } from './PanelComponents/EdgeOpacityControlsPanel';\r\nimport { EdgeSizeControlsPanel } from './PanelComponents/EdgeSizeControlsPanel';\r\nimport { Layout } from './PanelComponents/Layout';\r\nimport { NodeColorControlsPanel } from './PanelComponents/NodeColorControlsPanel';\r\nimport { NodeDetailsPanel } from './PanelComponents/NodeDetailsPanel';\r\nimport { NodeHoverHeader } from './PanelComponents/NodeHoverHeader';\r\nimport { NodeOpacityControlsPanel } from './PanelComponents/NodeOpacityControlsPanel';\r\nimport { NodeSizeControlsPanel } from './PanelComponents/NodeSizeControlsPanel';\r\nimport { SearchPanel } from './PanelComponents/SearchPanel';\r\nimport { CollapsiblePanel, CollapsiblePanelContainer, } from '@essex-js-toolkit/themed-components';\r\nimport { format } from 'd3-format';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useEdgeCount, useNodeCount } from '~/arquero';\r\nimport { QuickDrop } from '~/components/QuickDrop';\r\nimport { useEdgesVisible, useNodesVisible, useSetEdgesVisible, useSetNodesVisible, } from '~/state';\r\nexport const GUTTER = 10;\r\nexport const RightSidePanel = ({ style }) => {\r\n const renderNodeHoverHeader = useCallback(() => React.createElement(NodeHoverHeader, null), []);\r\n const renderNodeColorHeader = useCallback(() => React.createElement(NodeColorHeaderLegend, null), []);\r\n const renderNodeOpacityHeader = useCallback(() => React.createElement(NodeOpacityHeaderLegend, null), []);\r\n const renderNodeSizeHeader = useCallback(() => React.createElement(NodeSizeHeaderLegend, null), []);\r\n const renderEdgeColorHeader = useCallback(() => React.createElement(EdgeColorHeaderLegend, null), []);\r\n const renderEdgeOpacityHeader = useCallback(() => React.createElement(EdgeOpacityHeaderLegend, null), []);\r\n const renderEdgeSizeHeader = useCallback(() => React.createElement(EdgeSizeHeaderLegend, null), []);\r\n return (React.createElement(Container, { style: style },\r\n React.createElement(DisplayRelative, null,\r\n React.createElement(SearchPanel, null),\r\n React.createElement(NodesHeader, null),\r\n React.createElement(CollapsiblePanelContainer, null,\r\n React.createElement(CollapsiblePanel, { title: 'Hovered node', onRenderHeader: renderNodeHoverHeader },\r\n React.createElement(NodeDetailsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Node color', onRenderHeader: renderNodeColorHeader },\r\n React.createElement(NodeColorControlsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Node opacity', onRenderHeader: renderNodeOpacityHeader },\r\n React.createElement(NodeOpacityControlsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Node size', onRenderHeader: renderNodeSizeHeader },\r\n React.createElement(NodeSizeControlsPanel, null)),\r\n React.createElement(EdgesHeader, null),\r\n React.createElement(CollapsiblePanel, { title: 'Edge color', onRenderHeader: renderEdgeColorHeader },\r\n React.createElement(EdgeColorControlsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Edge opacity', onRenderHeader: renderEdgeOpacityHeader },\r\n React.createElement(EdgeOpacityControlsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Edge size', onRenderHeader: renderEdgeSizeHeader },\r\n React.createElement(EdgeSizeControlsPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Data editor' },\r\n React.createElement(ColumnEditorPanel, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Layout' },\r\n React.createElement(Layout, null)),\r\n React.createElement(CollapsiblePanel, { title: 'Quick drop', defaultExpanded: true },\r\n React.createElement(QuickDrop, { dropWidthSize: 40, dropHeightSize: 20, compact: true }))),\r\n React.createElement(Privacy, null,\r\n React.createElement(\"a\", { href: \"https://go.microsoft.com/fwlink/?LinkId=521839\" }, \"Privacy & Cookies\"),\r\n React.createElement(\"br\", null),\r\n \"This application does not collect any data or use cookies.\"))));\r\n};\r\nconst Container = styled.div `\r\n\tz-index: 10;\r\n`;\r\nconst DisplayRelative = styled.div `\r\n\tposition: relative;\r\n`;\r\nconst Privacy = styled.div `\r\n\tmargin-top: 10px;\r\n\ttext-align: center;\r\n\tfont-size: 0.7em;\r\n`;\r\nconst pretty = format(',');\r\nconst NodesHeader = () => {\r\n const count = useNodeCount();\r\n const checked = useNodesVisible();\r\n const handleChecked = useSetNodesVisible();\r\n return (React.createElement(ToggleHeader, { title: 'Nodes', subtitle: `${pretty(count)} node${count !== 1 ? 's' : ''}`, onChange: handleChecked, checked: checked, disabled: count === 0 }));\r\n};\r\nconst EdgesHeader = () => {\r\n const count = useEdgeCount();\r\n const checked = useEdgesVisible();\r\n const handleChecked = useSetEdgesVisible();\r\n return (React.createElement(ToggleHeader, { title: 'Edges', subtitle: `${pretty(count)} edge${count !== 1 ? 's' : ''}`, onChange: handleChecked, checked: checked, disabled: count === 0 }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/05c6be67de773ef6cff4be27bccce101.json b/node_modules/.cache/cache-loader/05c6be67de773ef6cff4be27bccce101.json deleted file mode 100644 index 14432fd..0000000 --- a/node_modules/.cache/cache-loader/05c6be67de773ef6cff4be27bccce101.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\styles\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\styles\\index.ts","mtime":1620403249596},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2ZsdWVudCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/styles/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,UAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './fluent';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/070307f08801bfd191c517e429194af0.json b/node_modules/.cache/cache-loader/070307f08801bfd191c517e429194af0.json deleted file mode 100644 index 700ba89..0000000 --- a/node_modules/.cache/cache-loader/070307f08801bfd191c517e429194af0.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericRangeEditor\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericRangeEditor\\index.tsx","mtime":1631029334845},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgRG9tYWluQnJ1c2ggfSBmcm9tICcuLi9Eb21haW5CcnVzaCc7CmltcG9ydCB7IExhYmVsIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IHsgZm9ybWF0IH0gZnJvbSAnZDMtZm9ybWF0JzsKaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKZXhwb3J0IGNvbnN0IE51bWVyaWNSYW5nZUVkaXRvciA9ICh7CiAgZW5jb2RpbmcsCiAgb25DaGFuZ2UsCiAgbWluID0gMCwKICBtYXggPSAxLAogIHByZWNpc2lvbiA9IDEKfSkgPT4gewogIGNvbnN0IGhhbmRsZVJhbmdlQ2hhbmdlID0gdXNlQ2FsbGJhY2soZCA9PiB7CiAgICBvbkNoYW5nZSAmJiBvbkNoYW5nZSh7CiAgICAgIHJhbmdlOiBkCiAgICB9KTsKICB9LCBbb25DaGFuZ2VdKTsKICBjb25zdCBmbXQgPSB1c2VNZW1vKCgpID0+IGZvcm1hdChgLiR7cHJlY2lzaW9ufWZgKSwgW3ByZWNpc2lvbl0pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRhaW5lciwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChMYWJlbCwgbnVsbCwgYE91dHB1dCByYW5nZSAoJHtmbXQobWluKX0gLSAke2ZtdChtYXgpfSlgKSwgUmVhY3QuY3JlYXRlRWxlbWVudChEb21haW5CcnVzaCwgewogICAgbWluOiBtaW4sCiAgICBtYXg6IG1heCwKICAgIHByZWNpc2lvbjogcHJlY2lzaW9uLAogICAgY3VycmVudERvbWFpbjogZW5jb2RpbmcucmFuZ2UsCiAgICBvbkNoYW5nZTogaGFuZGxlUmFuZ2VDaGFuZ2UsCiAgICBzaG93VGV4dElucHV0czogdHJ1ZQogIH0pKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericRangeEditor/index.tsx"],"names":["DomainBrush","Label","format","React","useCallback","useMemo","styled","NumericRangeEditor","encoding","onChange","min","max","precision","handleRangeChange","d","range","fmt","createElement","Container","currentDomain","showTextInputs","div"],"mappings":"AAAA,SAASA,WAAT,QAA4B,gBAA5B;AACA,SAASC,KAAT,QAAsB,iBAAtB;AACA,SAASC,MAAT,QAAuB,WAAvB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,kBAAkB,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA,QAAZ;AAAsBC,EAAAA,GAAG,GAAG,CAA5B;AAA+BC,EAAAA,GAAG,GAAG,CAArC;AAAwCC,EAAAA,SAAS,GAAG;AAApD,CAAD,KAA8D;AAC5F,QAAMC,iBAAiB,GAAGT,WAAW,CAACU,CAAC,IAAI;AACvCL,IAAAA,QAAQ,IACJA,QAAQ,CAAC;AACLM,MAAAA,KAAK,EAAED;AADF,KAAD,CADZ;AAIH,GALoC,EAKlC,CAACL,QAAD,CALkC,CAArC;AAMA,QAAMO,GAAG,GAAGX,OAAO,CAAC,MAAMH,MAAM,CAAE,IAAGU,SAAU,GAAf,CAAb,EAAiC,CAACA,SAAD,CAAjC,CAAnB;AACA,SAAQT,KAAK,CAACc,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJf,KAAK,CAACc,aAAN,CAAoBhB,KAApB,EAA2B,IAA3B,EAAkC,iBAAgBe,GAAG,CAACN,GAAD,CAAM,MAAKM,GAAG,CAACL,GAAD,CAAM,GAAzE,CADI,EAEJR,KAAK,CAACc,aAAN,CAAoBjB,WAApB,EAAiC;AAAEU,IAAAA,GAAG,EAAEA,GAAP;AAAYC,IAAAA,GAAG,EAAEA,GAAjB;AAAsBC,IAAAA,SAAS,EAAEA,SAAjC;AAA4CO,IAAAA,aAAa,EAAEX,QAAQ,CAACO,KAApE;AAA2EN,IAAAA,QAAQ,EAAEI,iBAArF;AAAwGO,IAAAA,cAAc,EAAE;AAAxH,GAAjC,CAFI,CAAR;AAGH,CAXM;AAYP,MAAMF,SAAS,GAAGZ,MAAM,CAACe,GAAK,EAA9B","sourcesContent":["import { DomainBrush } from '../DomainBrush';\r\nimport { Label } from '@fluentui/react';\r\nimport { format } from 'd3-format';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const NumericRangeEditor = ({ encoding, onChange, min = 0, max = 1, precision = 1, }) => {\r\n const handleRangeChange = useCallback(d => {\r\n onChange &&\r\n onChange({\r\n range: d,\r\n });\r\n }, [onChange]);\r\n const fmt = useMemo(() => format(`.${precision}f`), [precision]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Label, null, `Output range (${fmt(min)} - ${fmt(max)})`),\r\n React.createElement(DomainBrush, { min: min, max: max, precision: precision, currentDomain: encoding.range, onChange: handleRangeChange, showTextInputs: true })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/07cfdeb24b4064fb72de55baec074e08.json b/node_modules/.cache/cache-loader/07cfdeb24b4064fb72de55baec074e08.json deleted file mode 100644 index ad1b8ed..0000000 --- a/node_modules/.cache/cache-loader/07cfdeb24b4064fb72de55baec074e08.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\index.tsx","mtime":1620403249179},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0FwcCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,OAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './App';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/08d9a069b593e3dcc1a009be13fed9a0.json b/node_modules/.cache/cache-loader/08d9a069b593e3dcc1a009be13fed9a0.json deleted file mode 100644 index 8b8b66e..0000000 --- a/node_modules/.cache/cache-loader/08d9a069b593e3dcc1a009be13fed9a0.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\edges.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\edges.ts","mtime":1631029334860},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-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VuY29kaW5nKCk7CiAgY29uc3QgbWFwID0gdXNlVmlzaWJsZUVkZ2VNYXAoKTsKICByZXR1cm4gdXNlQ29sb3JpemVyKGNvbG9yRW5jb2RpbmcsIG9wYWNpdHlFbmNvZGluZywgbWFwKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlRWRnZVdlaWdodGVyKCkgewogIGNvbnN0IGVuY29kaW5nID0gdXNlRWRnZVNpemVFbmNvZGluZygpOwogIGNvbnN0IG1hcCA9IHVzZVZpc2libGVFZGdlTWFwKCk7CiAgcmV0dXJuIHVzZVdlaWdodGVyKGVuY29kaW5nLCBtYXApOwp9Ci8qKg0KICogV2VpZ2h0cyBhcmUgYm91bmQgdG8gYSBtaW4vbWF4IHdpZHRoIHJhdGhlciB0aGFuDQogKiBjb21wbGV0ZWx5IHNjYWxlLWRyaXZlbiBsaWtlIGNvbG9yLg0KICogVGhpcyB0b2dnbGVzIGJldHdlZW4gdGhlIGZpeGVkIG1pbi9tYXggYW5kIHNjYWxlZC4NCiAqLwoKZXhwb3J0IGZ1bmN0aW9uIHVzZUVkZ2VTaXplUmFuZ2UoKSB7CiAgY29uc3QgZW5jb2RpbmcgPSB1c2VFZGdlU2l6ZUVuY29kaW5nKCk7CiAgcmV0dXJuIHVzZVJhbmdlKGVuY29kaW5nKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/edges.ts"],"names":["useColorizer","useRange","useWeighter","useMemo","useArqueroVisibleEdges","useEdgeColorEncoding","useEdgeOpacityEncoding","useEdgeSizeEncoding","useVisibleEdgeMap","edges","toMap","useEdgeColorizer","colorEncoding","opacityEncoding","map","useEdgeWeighter","encoding","useEdgeSizeRange"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,EAAuBC,QAAvB,EAAiCC,WAAjC,QAAoD,eAApD;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,sBAAT,QAAuC,WAAvC;AACA,SAASC,oBAAT,EAA+BC,sBAA/B,EAAuDC,mBAAvD,QAAmF,SAAnF;;AACA,SAASC,iBAAT,GAA6B;AACzB,QAAMC,KAAK,GAAGL,sBAAsB,EAApC;AACA,SAAOD,OAAO,CAAC,MAAMM,KAAK,CAACC,KAAN,EAAP,EAAsB,CAACD,KAAD,CAAtB,CAAd;AACH;AACD;AACA;AACA;AACA;AACA;;;AACA,OAAO,SAASE,gBAAT,GAA4B;AAC/B,QAAMC,aAAa,GAAGP,oBAAoB,EAA1C;AACA,QAAMQ,eAAe,GAAGP,sBAAsB,EAA9C;AACA,QAAMQ,GAAG,GAAGN,iBAAiB,EAA7B;AACA,SAAOR,YAAY,CAACY,aAAD,EAAgBC,eAAhB,EAAiCC,GAAjC,CAAnB;AACH;AACD,OAAO,SAASC,eAAT,GAA2B;AAC9B,QAAMC,QAAQ,GAAGT,mBAAmB,EAApC;AACA,QAAMO,GAAG,GAAGN,iBAAiB,EAA7B;AACA,SAAON,WAAW,CAACc,QAAD,EAAWF,GAAX,CAAlB;AACH;AACD;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASG,gBAAT,GAA4B;AAC/B,QAAMD,QAAQ,GAAGT,mBAAmB,EAApC;AACA,SAAON,QAAQ,CAACe,QAAD,CAAf;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useColorizer, useRange, useWeighter } from './graspologic';\r\nimport { useMemo } from 'react';\r\nimport { useArqueroVisibleEdges } from '~/arquero';\r\nimport { useEdgeColorEncoding, useEdgeOpacityEncoding, useEdgeSizeEncoding, } from '~/state';\r\nfunction useVisibleEdgeMap() {\r\n const edges = useArqueroVisibleEdges();\r\n return useMemo(() => edges.toMap(), [edges]);\r\n}\r\n/**\r\n * Combines the color and opacity scales to derive a single brga int\r\n * @param colorEncoding\r\n * @param opacityEncoding\r\n */\r\nexport function useEdgeColorizer() {\r\n const colorEncoding = useEdgeColorEncoding();\r\n const opacityEncoding = useEdgeOpacityEncoding();\r\n const map = useVisibleEdgeMap();\r\n return useColorizer(colorEncoding, opacityEncoding, map);\r\n}\r\nexport function useEdgeWeighter() {\r\n const encoding = useEdgeSizeEncoding();\r\n const map = useVisibleEdgeMap();\r\n return useWeighter(encoding, map);\r\n}\r\n/**\r\n * Weights are bound to a min/max width rather than\r\n * completely scale-driven like color.\r\n * This toggles between the fixed min/max and scaled.\r\n */\r\nexport function useEdgeSizeRange() {\r\n const encoding = useEdgeSizeEncoding();\r\n return useRange(encoding);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/091a7aa9420ebced5a59f6adbdcc87af.json b/node_modules/.cache/cache-loader/091a7aa9420ebced5a59f6adbdcc87af.json deleted file mode 100644 index 928886d..0000000 --- a/node_modules/.cache/cache-loader/091a7aa9420ebced5a59f6adbdcc87af.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\NodeSizeHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\NodeSizeHeaderLegend.tsx","mtime":1631029334811},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VOb2RlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VOb2RlU2l6ZUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBOb2RlU2l6ZUhlYWRlckxlZ2VuZCA9ICgpID0+IHsKICBjb25zdCBjb3VudCA9IHVzZU5vZGVDb3VudCgpOwogIGNvbnN0IGVuY29kaW5nID0gdXNlTm9kZVNpemVFbmNvZGluZygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhlYWRlckxlZ2VuZCwgewogICAgbGFiZWw6ICdOb2RlIHNpemUnLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgc2l6ZUVuY29kaW5nOiBlbmNvZGluZywKICAgIGlzVW5zZXQ6IGNvdW50ID09PSAwCiAgfSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/NodeSizeHeaderLegend.tsx"],"names":["HeaderLegend","React","useNodeCount","useNodeSizeEncoding","NodeSizeHeaderLegend","count","encoding","createElement","label","sizeEncoding","isUnset"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,mBAAT,QAAoC,SAApC;AACA,OAAO,MAAMC,oBAAoB,GAAG,MAAM;AACtC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,mBAAmB,EAApC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,WAAT;AAAsBF,IAAAA,QAAQ,EAAEA,QAAhC;AAA0CG,IAAAA,YAAY,EAAEH,QAAxD;AAAkEI,IAAAA,OAAO,EAAEL,KAAK,KAAK;AAArF,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useNodeCount } from '~/arquero';\r\nimport { useNodeSizeEncoding } from '~/state';\r\nexport const NodeSizeHeaderLegend = () => {\r\n const count = useNodeCount();\r\n const encoding = useNodeSizeEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Node size', encoding: encoding, sizeEncoding: encoding, isUnset: count === 0 }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0a3874c7eb569d1af643aaf22a351255.json b/node_modules/.cache/cache-loader/0a3874c7eb569d1af643aaf22a351255.json deleted file mode 100644 index cfd3fa2..0000000 --- a/node_modules/.cache/cache-loader/0a3874c7eb569d1af643aaf22a351255.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\LeftSidePanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\LeftSidePanel.tsx","mtime":1631029334711},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBNaW5pbWFwIH0gZnJvbSAnLi4vLi4vLi4vLi4vTWluaW1hcCc7CmltcG9ydCB7IEJyZWFkY3J1bWJQYW5lbCB9IGZyb20gJy4vUGFuZWxDb21wb25lbnRzL0JyZWFkY3J1bWJQYW5lbCc7CmltcG9ydCB7IENvbW11bml0eV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W11bml0eVN0eWxlCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChIZWFkZXJMYWJlbCwgewogICAgc3R5bGU6IGhlYWRlckxhYmVsU3R5bGUKICB9LCBSZWFjdC5jcmVhdGVFbGVtZW50KFRleHQsIHsKICAgIHZhcmlhbnQ6IHZhcmlhbnRzLm1lZGl1bVBsdXMKICB9LCAnICcsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoImIiLCBudWxsLCAiQ29tbXVuaXRpZXMiKSkpLCBSZWFjdC5jcmVhdGVFbGVtZW50KENvbW11bml0eVBhbmVsQ29udGFpbmVyLCB7CiAgICB0YWJJbmRleDogMCwKICAgIHN0eWxlOiBjb21tdW5pdHlQYW5lbFN0eWxlCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChDb21tdW5pdHlQYW5lbCwgbnVsbCkpKSwgbWluaU1hcCk7Cn0pOyAvLyBib3JkZXI6ICR7KHsgdGhlbWUgfSkgPT4gYDFweCBzb2xpZCAke3RoZW1lLmFwcGxpY2F0aW9uKCkuZmFpbnQoKS5oZXgoKX1gfTsKCmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDsKY29uc3QgQnJlYWRjcnVtYkNvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDsKY29uc3QgQ29tbXVuaXR5Q29udGFpbmVyID0gc3R5bGVkLmRpdmBgOwpjb25zdCBIZWFkZXJMYWJlbCA9IHN0eWxlZC5kaXZgYDsKY29uc3QgQ29tbXVuaXR5UGFuZWxDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IE1pbmlNYXBDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJcG9zaXRpb246IGFic29sdXRlOwoJYm90dG9tOiAke0hFQURFUl9IRUlHSFQgLSAxfXB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/LeftSidePanel.tsx"],"names":["Minimap","BreadcrumbPanel","CommunityPanel","useDimensions","Text","React","useMemo","useRef","memo","styled","useArqueroHoveredNodes","useArqueroSelectedNodes","useDataBounds","useStaticInputGraph","useSettings","BREAD_CRUMB_STYLES","HEADER_HEIGHT","variants","textContainerLabel","headerLabelStyle","margin","marginLeft","marginBottom","maxHeight","textAlign","LeftSidePanel","style","height","width","ref","dimensions","settings","miniMapSize","showMiniMap","data","hoveredNodes","selectedNodes","dataBounds","communityHeight","breadcrumbContainer","miniMap","padding","createElement","MiniMapContainer","minRadius","miniMapNodeRadius","maxRadius","aoiBounds","communityStyle","communityPanelStyle","overflow","Container","BreadcrumbContainer","styles","CommunityContainer","HeaderLabel","variant","mediumPlus","CommunityPanelContainer","tabIndex","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,OAAT,QAAwB,qBAAxB;AACA,SAASC,eAAT,QAAgC,mCAAhC;AACA,SAASC,cAAT,QAA+B,kCAA/B;AACA,SAASC,aAAT,QAA8B,yBAA9B;AACA,SAASC,IAAT,QAAqB,iBAArB;AACA,OAAOC,KAAP,IAAgBC,OAAhB,EAAyBC,MAAzB,EAAiCC,IAAjC,QAA6C,OAA7C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,sBAAT,EAAiCC,uBAAjC,QAAgE,WAAhE;AACA,SAASC,aAAT,EAAwBC,mBAAxB,QAAmD,eAAnD;AACA,SAASC,WAAT,QAA4B,SAA5B;AACA,SAASC,kBAAT,EAA6BC,aAA7B,EAA4CC,QAA5C,QAA4D,UAA5D;AACA,MAAMC,kBAAkB,GAAG,EAA3B;AACA,MAAMC,gBAAgB,GAAG;AACrBC,EAAAA,MAAM,EAAE,CADa;AAErBC,EAAAA,UAAU,EAAE,CAFS;AAGrBC,EAAAA,YAAY,EAAE,EAHO;AAIrBC,EAAAA,SAAS,EAAEL,kBAJU;AAKrBM,EAAAA,SAAS,EAAE;AALU,CAAzB;AAOA,OAAO,MAAMC,aAAa,GAAGjB,IAAI,CAAC,SAASiB,aAAT,CAAuB;AAAEC,EAAAA,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,IAAzB,EAA+B,aAA/B,CAFJ,CADJ,CADJ,EAKIrC,KAAK,CAACqC,aAAN,CAAoBgB,uBAApB,EAA6C;AAAEC,IAAAA,QAAQ,EAAE,CAAZ;AAAejC,IAAAA,KAAK,EAAEuB;AAAtB,GAA7C,EAA0F5C,KAAK,CAACqC,aAAN,CAAoBxC,cAApB,EAAoC,IAApC,CAA1F,CALJ,CAHI,EASJsC,OATI,CAAR;AAUH,CA5CgC,CAA1B,C,CA6CP;;AACA,MAAMW,SAAS,GAAG1C,MAAM,CAACmD,GAAK,EAA9B;AACA,MAAMR,mBAAmB,GAAG3C,MAAM,CAACmD,GAAK,EAAxC;AACA,MAAMN,kBAAkB,GAAG7C,MAAM,CAACmD,GAAK,EAAvC;AACA,MAAML,WAAW,GAAG9C,MAAM,CAACmD,GAAK,EAAhC;AACA,MAAMF,uBAAuB,GAAGjD,MAAM,CAACmD,GAAK,EAA5C;AACA,MAAMjB,gBAAgB,GAAGlC,MAAM,CAACmD,GAAK;AACrC;AACA,WAAW5C,aAAa,GAAG,CAAE;AAC7B,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Minimap } from '../../../../Minimap';\r\nimport { BreadcrumbPanel } from './PanelComponents/BreadcrumbPanel';\r\nimport { CommunityPanel } from './PanelComponents/CommunityPanel';\r\nimport { useDimensions } from '@essex-js-toolkit/hooks';\r\nimport { Text } from '@fluentui/react';\r\nimport React, { useMemo, useRef, memo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroHoveredNodes, useArqueroSelectedNodes } from '~/arquero';\r\nimport { useDataBounds, useStaticInputGraph } from '~/hooks/graph';\r\nimport { useSettings } from '~/state';\r\nimport { BREAD_CRUMB_STYLES, HEADER_HEIGHT, variants } from '~/styles';\r\nconst textContainerLabel = 15;\r\nconst headerLabelStyle = {\r\n margin: 2,\r\n marginLeft: 4,\r\n marginBottom: 10,\r\n maxHeight: textContainerLabel,\r\n textAlign: 'center',\r\n};\r\nexport const LeftSidePanel = memo(function LeftSidePanel({ style, height, width }) {\r\n const ref = useRef(null);\r\n const dimensions = useDimensions(ref);\r\n const [settings] = useSettings();\r\n const miniMapSize = settings.showMiniMap ? width : 0;\r\n const data = useStaticInputGraph();\r\n const hoveredNodes = useArqueroHoveredNodes();\r\n const selectedNodes = useArqueroSelectedNodes();\r\n const dataBounds = useDataBounds();\r\n const communityHeight = useMemo(() => {\r\n const breadcrumbContainer = dimensions?.height || 100;\r\n return height - (breadcrumbContainer + miniMapSize + HEADER_HEIGHT);\r\n }, [height, dimensions, miniMapSize]);\r\n const miniMap = useMemo(() => {\r\n const padding = 0;\r\n if (settings.showMiniMap) {\r\n return (React.createElement(MiniMapContainer, null,\r\n React.createElement(Minimap, { data: data, width: width - padding, height: miniMapSize - padding, minRadius: settings.miniMapNodeRadius, maxRadius: settings.miniMapNodeRadius, hoveredNodes: hoveredNodes, selectedNodes: selectedNodes, aoiBounds: dataBounds })));\r\n }\r\n return null;\r\n }, [\r\n width,\r\n settings,\r\n hoveredNodes,\r\n dataBounds,\r\n selectedNodes,\r\n data,\r\n miniMapSize,\r\n ]);\r\n const communityStyle = useMemo(() => ({ maxHeight: communityHeight }), [communityHeight]);\r\n const communityPanelStyle = useMemo(() => ({\r\n overflow: 'auto',\r\n maxHeight: communityHeight - (textContainerLabel + 50),\r\n }), [communityHeight]);\r\n return (React.createElement(Container, { style: style },\r\n React.createElement(BreadcrumbContainer, { ref: ref },\r\n React.createElement(BreadcrumbPanel, { styles: BREAD_CRUMB_STYLES })),\r\n React.createElement(CommunityContainer, { style: communityStyle },\r\n React.createElement(HeaderLabel, { style: headerLabelStyle },\r\n React.createElement(Text, { variant: variants.mediumPlus },\r\n ' ',\r\n React.createElement(\"b\", null, \"Communities\"))),\r\n React.createElement(CommunityPanelContainer, { tabIndex: 0, style: communityPanelStyle }, React.createElement(CommunityPanel, null))),\r\n miniMap));\r\n});\r\n// border: ${({ theme }) => `1px solid ${theme.application().faint().hex()}`};\r\nconst Container = styled.div ``;\r\nconst BreadcrumbContainer = styled.div ``;\r\nconst CommunityContainer = styled.div ``;\r\nconst HeaderLabel = styled.div ``;\r\nconst CommunityPanelContainer = styled.div ``;\r\nconst MiniMapContainer = styled.div `\r\n\tposition: absolute;\r\n\tbottom: ${HEADER_HEIGHT - 1}px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0a719749d47998e444684f78314c4d8f.json b/node_modules/.cache/cache-loader/0a719749d47998e444684f78314c4d8f.json deleted file mode 100644 index 03cd4d2..0000000 --- a/node_modules/.cache/cache-loader/0a719749d47998e444684f78314c4d8f.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\grid.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\grid.ts","mtime":1624559748403},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBvcCB9IGZyb20gJ2FycXVlcm8nOwppbXBvcnQgeyBub3JtYWxpemVYWSB9IGZyb20gJ34vYXJxdWVybyc7Ci8qKg0KICogQXNzaWducyBub2RlIHBvc2l0aW9ucyBieSB1bnJvbGxpbmcgaW50byBhIHNxdWFyZSBncmlkLg0KICogVGhpcyBjYW4gYmUgdXNlZnVsIHdoZW4gbm9kZXMgYXJlIHNvcnRlZCBieSBhIGdyb3VwaW5nIGZpZWxkLA0KICogYXMgaXQgd2lsbCBjb25zb2xpZGF0ZSBibG9ja3Mgb2YgY29sb3IgaW4gc3RyaXBzLg0KICogQHBhcmFtIG5vZGVzDQogKi8KCmV4cG9ydCBhc3luYyBmdW5jdGlvbiBsYXlvdXRHcmlkKG5vZGVzKSB7CiAgcmV0dXJuIG5ldyBQcm9taXNlKHJlc29sdmUgPT4gewogICAgY29uc3QgcmFua2VkID0gbm9kZXMucGFyYW1zKHsKICAgICAgcm93czogbm9kZXMubnVtUm93cygpLAogICAgICByb290OiBNYXRoLnNxcnQobm9kZXMubnVtUm93cygpKQogICAgfSkuZGVyaXZlKHsKICAgICAgcm93OiBvcC5yb3dfbnVtYmVyKCkKICAgIH0pLmRlcml2ZSh7CiAgICAgICdub2RlLnknOiAoZCwgJCkgPT4gewogICAgICAgIGNvbnN0IHIgPSBNYXRoLmZsb29yKGQucm93IC8gJC5yb290KTsKICAgICAgICBjb25zdCBiYXNlWSA9IDEgLyAkLnJvb3QgKiByOwogICAgICAgIHJldHVybiAxIC0gYmFzZVkgLSAxIC8gJC5yb290OwogICAgICB9LAogICAgICAnbm9kZS54JzogKGQsICQpID0+IHsKICAgICAgICBjb25zdCByID0gTWF0aC5mbG9vcihkLnJvdyAvICQucm9vdCk7CiAgICAgICAgY29uc3QgY29sID0gZC5yb3cgLSByICogJC5yb290OwogICAgICAgIHJldHVybiAxIC8gJC5yb290ICogY29sOwogICAgICB9CiAgICB9KTsKICAgIGNvbnN0IG5vcm1hbGl6ZWQgPSBub3JtYWxpemVYWShyYW5rZWQpOwogICAgcmVzb2x2ZShub3JtYWxpemVkKTsKICB9KTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/layout/grid.ts"],"names":["op","normalizeXY","layoutGrid","nodes","Promise","resolve","ranked","params","rows","numRows","root","Math","sqrt","derive","row","row_number","d","$","r","floor","baseY","col","normalized"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,EAAT,QAAmB,SAAnB;AACA,SAASC,WAAT,QAA4B,WAA5B;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,eAAeC,UAAf,CAA0BC,KAA1B,EAAiC;AACpC,SAAO,IAAIC,OAAJ,CAAYC,OAAO,IAAI;AAC1B,UAAMC,MAAM,GAAGH,KAAK,CACfI,MADU,CACH;AACRC,MAAAA,IAAI,EAAEL,KAAK,CAACM,OAAN,EADE;AAERC,MAAAA,IAAI,EAAEC,IAAI,CAACC,IAAL,CAAUT,KAAK,CAACM,OAAN,EAAV;AAFE,KADG,EAKVI,MALU,CAKH;AACRC,MAAAA,GAAG,EAAEd,EAAE,CAACe,UAAH;AADG,KALG,EAQVF,MARU,CAQH;AACR,gBAAU,CAACG,CAAD,EAAIC,CAAJ,KAAU;AAChB,cAAMC,CAAC,GAAGP,IAAI,CAACQ,KAAL,CAAWH,CAAC,CAACF,GAAF,GAAQG,CAAC,CAACP,IAArB,CAAV;AACA,cAAMU,KAAK,GAAI,IAAIH,CAAC,CAACP,IAAP,GAAeQ,CAA7B;AACA,eAAO,IAAIE,KAAJ,GAAY,IAAIH,CAAC,CAACP,IAAzB;AACH,OALO;AAMR,gBAAU,CAACM,CAAD,EAAIC,CAAJ,KAAU;AAChB,cAAMC,CAAC,GAAGP,IAAI,CAACQ,KAAL,CAAWH,CAAC,CAACF,GAAF,GAAQG,CAAC,CAACP,IAArB,CAAV;AACA,cAAMW,GAAG,GAAGL,CAAC,CAACF,GAAF,GAAQI,CAAC,GAAGD,CAAC,CAACP,IAA1B;AACA,eAAQ,IAAIO,CAAC,CAACP,IAAP,GAAeW,GAAtB;AACH;AAVO,KARG,CAAf;AAoBA,UAAMC,UAAU,GAAGrB,WAAW,CAACK,MAAD,CAA9B;AACAD,IAAAA,OAAO,CAACiB,UAAD,CAAP;AACH,GAvBM,CAAP;AAwBH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { op } from 'arquero';\r\nimport { normalizeXY } from '~/arquero';\r\n/**\r\n * Assigns node positions by unrolling into a square grid.\r\n * This can be useful when nodes are sorted by a grouping field,\r\n * as it will consolidate blocks of color in strips.\r\n * @param nodes\r\n */\r\nexport async function layoutGrid(nodes) {\r\n return new Promise(resolve => {\r\n const ranked = nodes\r\n .params({\r\n rows: nodes.numRows(),\r\n root: Math.sqrt(nodes.numRows()),\r\n })\r\n .derive({\r\n row: op.row_number(),\r\n })\r\n .derive({\r\n 'node.y': (d, $) => {\r\n const r = Math.floor(d.row / $.root);\r\n const baseY = (1 / $.root) * r;\r\n return 1 - baseY - 1 / $.root;\r\n },\r\n 'node.x': (d, $) => {\r\n const r = Math.floor(d.row / $.root);\r\n const col = d.row - r * $.root;\r\n return (1 / $.root) * col;\r\n },\r\n });\r\n const normalized = normalizeXY(ranked);\r\n resolve(normalized);\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0c1763ccc839d8b93e143c11f50ef505.json b/node_modules/.cache/cache-loader/0c1763ccc839d8b93e143c11f50ef505.json deleted file mode 100644 index 953bf04..0000000 --- a/node_modules/.cache/cache-loader/0c1763ccc839d8b93e143c11f50ef505.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\graspologic.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\graspologic.ts","mtime":1631029334862},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVj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Bjb21wb25lbnQuDQogKiBUaGlzIHByb3ZpZGVzIGEgdG9nZ2xlZCByYW5nZSB0byBlbnN1cmUgdmFsaWQgbWluL21heA0KICogdmFsdWVzIHN3aXRjaCBmb3IgZml4ZWQgdmVyc3VzIHNjYWxlZCByYW5nZXMuDQogKiBAcGFyYW0gZW5jb2RpbmcNCiAqLwoKZXhwb3J0IGZ1bmN0aW9uIHVzZVJhbmdlKGVuY29kaW5nKSB7CiAgcmV0dXJuIHVzZU1lbW8oKCkgPT4gewogICAgaWYgKGVuY29kaW5nLmJpbmRpbmcgPT09IERhdGFCaW5kaW5nLkZpeGVkKSB7CiAgICAgIHJldHVybiBlbmNvZGluZy52YWx1ZSA/IFtlbmNvZGluZy52YWx1ZSwgZW5jb2RpbmcudmFsdWVdIDogWzAsIDBdOwogICAgfQoKICAgIHJldHVybiBlbmNvZGluZy5yYW5nZSB8fCBbMCwgMV07CiAgfSwgW2VuY29kaW5nXSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/graspologic.ts"],"names":["DataBinding","useColorEncodingScale","useNumericEncodingScale","toGraphColor","useCallback","useMemo","useColorCache","OVERRIDES","range","useWeighter","encoding","map","scale","id","field","node","get","value","useColorizer","colorEncoding","opacityEncoding","colorScale","opacityScale","colorCache","item","color","opacity","colorData","opacityData","key","raw","cached","rgbav","set","useRange","binding","Fixed"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA6B,aAA7B;AACA,SAASC,qBAAT,EAAgCC,uBAAhC,QAA+D,UAA/D;AACA,SAASC,YAAT,QAA8B,oBAA9B;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,OAArC;AACA,SAASC,aAAT,QAA8B,gBAA9B,C,CACA;AACA;AACA;;AACA,MAAMC,SAAS,GAAG;AACdC,EAAAA,KAAK,EAAE,CAAC,CAAD,EAAI,CAAJ;AADO,CAAlB;AAGA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,WAAT,CA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C;AAC/B,YAAMc,WAAW,GAAGJ,IAAI,CAACR,GAAL,CAASI,eAAe,CAACN,KAAzB,CAApB;AACAY,MAAAA,OAAO,GAAGJ,YAAY,CAACM,WAAD,CAAtB;AACH,KAHD,MAIK;AACDF,MAAAA,OAAO,GAAGJ,YAAY,EAAtB;AACH;;AACD,UAAMO,GAAG,GAAI,GAAEJ,KAAK,CAACK,GAAI,IAAGJ,OAAQ,EAApC;AACA,QAAIK,MAAM,GAAGR,UAAU,CAACP,GAAX,CAAea,GAAf,CAAb;;AACA,QAAI,CAACE,MAAL,EAAa;AACTA,MAAAA,MAAM,GAAG5B,YAAY,CAACsB,KAAK,CAACO,KAAN,CAAYN,OAAZ,CAAD,CAArB;AACAH,MAAAA,UAAU,CAACU,GAAX,CAAeJ,GAAf,EAAoBE,MAApB;AACH;;AACD,WAAOA,MAAP;AACH,GAzBiB,EAyBf,CAACV,UAAD,EAAaC,YAAb,EAA2BH,aAA3B,EAA0CC,eAA1C,EAA2DT,GAA3D,EAAgEY,UAAhE,CAzBe,CAAlB;AA0BH;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASW,QAAT,CAAkBxB,QAAlB,EAA4B;AAC/B,SAAOL,OAAO,CAAC,MAAM;AACjB,QAAIK,QAAQ,CAACyB,OAAT,KAAqBnC,WAAW,CAACoC,KAArC,EAA4C;AACxC,aAAO1B,QAAQ,CAACO,KAAT,GAAiB,CAACP,QAAQ,CAACO,KAAV,EAAiBP,QAAQ,CAACO,KAA1B,CAAjB,GAAoD,CAAC,CAAD,EAAI,CAAJ,CAA3D;AACH;;AACD,WAAOP,QAAQ,CAACF,KAAT,IAAkB,CAAC,CAAD,EAAI,CAAJ,CAAzB;AACH,GALa,EAKX,CAACE,QAAD,CALW,CAAd;AAMH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding, } from '../../types';\r\nimport { useColorEncodingScale, useNumericEncodingScale } from './scales';\r\nimport { toGraphColor, } from '@graspologic/graph';\r\nimport { useCallback, useMemo } from 'react';\r\nimport { useColorCache } from '~/state/caches';\r\n// TODO: use the node/edge sizer instead of weighter,\r\n// so it can be bound directly to the encoding range\r\n// as it is we need to set min/max radius/size on the GraphView\r\nconst OVERRIDES = {\r\n range: [0, 1],\r\n};\r\n/**\r\n * This provides a callback conforming to the Weighter interfaces\r\n * for node/edge sizes.\r\n * @param encoding\r\n * @param map\r\n */\r\nexport function useWeighter(encoding, map) {\r\n const scale = useNumericEncodingScale(encoding, OVERRIDES);\r\n return useCallback((id) => {\r\n if (!encoding.field) {\r\n return scale();\r\n }\r\n const node = map.get(id);\r\n if (node) {\r\n const value = node.get(encoding.field);\r\n return scale(value);\r\n }\r\n return 0;\r\n }, [scale, encoding, map]);\r\n}\r\n/**\r\n * This provides a callback conforming to the Colorizer interfaces\r\n * for node/edge colors. Note that it unifies color + opacity so\r\n * they can be configured separately and each scaled to table properties.\r\n * (The graspologic interface does not have a separate scaled opacity prop)\r\n * @param colorEncoding\r\n * @param opacityEncoding\r\n * @param map\r\n */\r\nexport function useColorizer(colorEncoding, opacityEncoding, map) {\r\n const colorScale = useColorEncodingScale(colorEncoding);\r\n const opacityScale = useNumericEncodingScale(opacityEncoding);\r\n const colorCache = useColorCache();\r\n return useCallback((id) => {\r\n const item = map.get(id);\r\n let color;\r\n let opacity;\r\n if (item && colorEncoding.field) {\r\n const colorData = item.get(colorEncoding.field);\r\n color = colorScale(colorData);\r\n }\r\n else {\r\n color = colorScale();\r\n }\r\n if (item && opacityEncoding.field) {\r\n const opacityData = item.get(opacityEncoding.field);\r\n opacity = opacityScale(opacityData);\r\n }\r\n else {\r\n opacity = opacityScale();\r\n }\r\n const key = `${color.raw}-${opacity}`;\r\n let cached = colorCache.get(key);\r\n if (!cached) {\r\n cached = toGraphColor(color.rgbav(opacity));\r\n colorCache.set(key, cached);\r\n }\r\n return cached;\r\n }, [colorScale, opacityScale, colorEncoding, opacityEncoding, map, colorCache]);\r\n}\r\n/**\r\n * Some graspologic apis have a weighter that scales 0-1,\r\n * accompanied by min/max props on the component.\r\n * This provides a toggled range to ensure valid min/max\r\n * values switch for fixed versus scaled ranges.\r\n * @param encoding\r\n */\r\nexport function useRange(encoding) {\r\n return useMemo(() => {\r\n if (encoding.binding === DataBinding.Fixed) {\r\n return encoding.value ? [encoding.value, encoding.value] : [0, 0];\r\n }\r\n return encoding.range || [0, 1];\r\n }, [encoding]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0dd5e7660b0d31c8ae2bc5251e5473b1.json b/node_modules/.cache/cache-loader/0dd5e7660b0d31c8ae2bc5251e5473b1.json deleted file mode 100644 index df54e21..0000000 --- a/node_modules/.cache/cache-loader/0dd5e7660b0d31c8ae2bc5251e5473b1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\fa2.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\fa2.ts","mtime":1624559748401},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBPYmplY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SBvcHRpb25hbCwgd2lsbCBiZSBkZXJpdmVkIGZyb20gZWRnZSBsaXN0IGlmIG5lY2Vzc2FyeQ0KICogQHBhcmFtIG9wdGlvbnMgLSBhZGRsIGxheW91dCB3b3JrZXIgb3B0aW9ucw0KICovCgoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGxheW91dEZhMihlZGdlcywgbm9kZXMsIG9wdGlvbnMpIHsKICBjb25zb2xlLnRpbWUoJ2xheW91dC1mYTInKTsKICBjb25zdCBncmFwaCA9IHByZXBHcmFwaChlZGdlcywgbm9kZXMpOwogIGNvbnN0IGxheW91dE1hbmFnZXIgPSBuZXcgTGF5b3V0V29ya2VyTWFuYWdlcihnZXRGYTJXb3JrZXIpOwoKICBjb25zdCBvcHRzID0gX29iamVjdFNwcmVhZCh7CiAgICBzY2FsaW5nUmF0aW86IDEwMDAsCiAgICBzbG93RG93bjogMTAwLjgsCiAgICB0YXJnZXRJdGVyYXRpb25zOiAyMDAsCiAgICBlZGdlV2VpZ2h0SW5mbHVlbmNlOiAxLjEKICB9LCBvcHRpb25zKTsKCiAgbGF5b3V0TWFuYWdlci5jb25maWd1cmUob3B0cyk7CiAgYXdhaXQgbGF5b3V0TWFuYWdlci5sYXlvdXQoZ3JhcGgpOwogIGNvbnN0IHJlc3VsdCA9IHBvc3RQcm9jZXNzTGF5b3V0KGdyYXBoKTsKICBjb25zb2xlLnRpbWVFbmQoJ2xheW91dC1mYTInKTsKICByZXR1cm4gcmVzdWx0Owp9"},{"version":3,"sources":["C:/ws/graph-drill/src/layout/fa2.ts"],"names":["GraphContainer","LayoutWorkerManager","from","normalizeXY","getFa2Worker","require","default","prepGraph","edgeTable","nodeTable","edges","source","getter","target","weight","scan","row","push","nTable","fold","dedupe","select","value","nodes","id","x","y","graph","intern","console","log","count","reduce","acc","cur","length","postProcessLayout","n","table","layoutFa2","options","time","layoutManager","opts","scalingRatio","slowDown","targetIterations","edgeWeightInfluence","configure","layout","result","timeEnd"],"mappings":";;;;;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AAtB;;AACA,QAAMuC,IAAI;AACNC,IAAAA,YAAY,EAAE,IADR;AAENC,IAAAA,QAAQ,EAAE,KAFJ;AAGNC,IAAAA,gBAAgB,EAAE,GAHZ;AAINC,IAAAA,mBAAmB,EAAE;AAJf,KAKHP,OALG,CAAV;;AAOAE,EAAAA,aAAa,CAACM,SAAd,CAAwBL,IAAxB;AACA,QAAMD,aAAa,CAACO,MAAd,CAAqBtB,KAArB,CAAN;AACA,QAAMuB,MAAM,GAAGd,iBAAiB,CAACT,KAAD,CAAhC;AACAE,EAAAA,OAAO,CAACsB,OAAR,CAAgB,YAAhB;AACA,SAAOD,MAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { GraphContainer } from '@graspologic/graph';\r\nimport { LayoutWorkerManager } from '@graspologic/layout-core';\r\nimport { from } from 'arquero';\r\nimport { normalizeXY } from '~/arquero';\r\nfunction getFa2Worker() {\r\n //eslint-disable-next-line\r\n return require('worker-loader!@graspologic/layout-fa2/dist/fa2_worker').default();\r\n}\r\n// this gets the nodes + edges ready for the graspologic layout worker\r\nfunction prepGraph(edgeTable, nodeTable) {\r\n // edgeTable should just be source + target cols, plus optional weight\r\n // derive a weight if needed, and then extract individual nodes\r\n const edges = [];\r\n const source = edgeTable.getter('edge.source');\r\n const target = edgeTable.getter('edge.target');\r\n const weight = edgeTable.getter('edge.weight');\r\n edgeTable.scan(row => edges.push({\r\n source: source(row),\r\n target: target(row),\r\n weight: weight(row),\r\n }));\r\n const nTable = nodeTable ||\r\n edgeTable\r\n .fold(['edge.source', 'edge.target'])\r\n .dedupe('value')\r\n .select({ value: 'node.id' });\r\n const nodes = [];\r\n const id = nTable.getter('node.id');\r\n nTable.scan(row => nodes.push({\r\n id: id(row),\r\n x: 0,\r\n y: 0,\r\n }));\r\n const graph = GraphContainer.intern({\r\n nodes,\r\n edges,\r\n });\r\n console.log(edges);\r\n const count = edges.reduce((acc, cur) => (acc + cur.weight === 1 ? 1 : 0), 0);\r\n console.log('1 weight edge count', count, edges.length, count / edges.length);\r\n return graph;\r\n}\r\n// once we have layout complete, extract it from the graph container and move back to a table\r\nfunction postProcessLayout(graph) {\r\n const nodes = [];\r\n graph.nodes.scan(n => {\r\n nodes.push({\r\n 'node.id': n.id,\r\n 'node.x': n.x,\r\n 'node.y': n.y,\r\n });\r\n });\r\n const table = from(nodes);\r\n return normalizeXY(table);\r\n}\r\n/**\r\n * Executes ForceAtlas2 layout on an edge list,\r\n * returning a table of nodes with x/y columns.\r\n * @param edges\r\n * @param nodes - optional, will be derived from edge list if necessary\r\n * @param options - addl layout worker options\r\n */\r\nexport async function layoutFa2(edges, nodes, options) {\r\n console.time('layout-fa2');\r\n const graph = prepGraph(edges, nodes);\r\n const layoutManager = new LayoutWorkerManager(getFa2Worker);\r\n const opts = {\r\n scalingRatio: 1000,\r\n slowDown: 100.8,\r\n targetIterations: 200,\r\n edgeWeightInfluence: 1.1,\r\n ...options,\r\n };\r\n layoutManager.configure(opts);\r\n await layoutManager.layout(graph);\r\n const result = postProcessLayout(graph);\r\n console.timeEnd('layout-fa2');\r\n return result;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0ef34e2dee22b3f6d71c9b3519964d80.json b/node_modules/.cache/cache-loader/0ef34e2dee22b3f6d71c9b3519964d80.json deleted file mode 100644 index e45409c..0000000 --- a/node_modules/.cache/cache-loader/0ef34e2dee22b3f6d71c9b3519964d80.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NominalLegend\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NominalLegend\\index.tsx","mtime":1631029334840},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgVmVydGljYWxOb21pbmFsQ2hpcHMgfSBmcm9tICcuL1ZlcnRpY2FsTm9taW5hbENoaXBzJzsKaW1wb3J0IHsgdXNlRGltZW5zaW9ucyB9IGZyb20gJ0Blc3NleC1qcy10b29sa2l0L2hvb2tzJzsKaW1wb3J0IHsgTGFiZWwgfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgdXNlUmVmIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKY29uc3QgSVRFTV9IRUlHSFQgPSAxNjsKY29uc3QgTUFYX0lURU1TID0gNTsKZXhwb3J0IGNvbnN0IE5vbWluYWxMZWdlbmQgPSAoewogIGVuY29kaW5nCn0pID0+IHsKICBjb25zdCByZWYgPSB1c2VSZWYobnVsbCk7CiAgY29uc3QgZGltZW5zaW9ucyA9IHVzZURpbWVuc2lvbnMocmVmKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIHsKICAgIHJlZjogcmVmCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChMYWJlbCwgbnVsbCwgIkxlZ2VuZCIpLCBSZWFjdC5jcmVhdGVFbGVtZW50KFZlcnRpY2FsTm9taW5hbENoaXBzLCB7CiAgICBlbmNvZGluZzogZW5jb2RpbmcsCiAgICB3aWR0aDogZGltZW5zaW9ucyA9PT0gbnVsbCB8fCBkaW1lbnNpb25zID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkaW1lbnNpb25zLndpZHRoLAogICAgaGVpZ2h0OiBJVEVNX0hFSUdIVCwKICAgIG1heEl0ZW1zOiBNQVhfSVRFTVMKICB9KSk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NominalLegend/index.tsx"],"names":["VerticalNominalChips","useDimensions","Label","React","useRef","styled","ITEM_HEIGHT","MAX_ITEMS","NominalLegend","encoding","ref","dimensions","createElement","Container","width","height","maxItems","div"],"mappings":"AAAA,SAASA,oBAAT,QAAqC,wBAArC;AACA,SAASC,aAAT,QAA8B,yBAA9B;AACA,SAASC,KAAT,QAAsB,iBAAtB;AACA,OAAOC,KAAP,IAAgBC,MAAhB,QAA8B,OAA9B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,WAAW,GAAG,EAApB;AACA,MAAMC,SAAS,GAAG,CAAlB;AACA,OAAO,MAAMC,aAAa,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAkB;AAC3C,QAAMC,GAAG,GAAGN,MAAM,CAAC,IAAD,CAAlB;AACA,QAAMO,UAAU,GAAGV,aAAa,CAACS,GAAD,CAAhC;AACA,SAAQP,KAAK,CAACS,aAAN,CAAoBC,SAApB,EAA+B;AAAEH,IAAAA,GAAG,EAAEA;AAAP,GAA/B,EACJP,KAAK,CAACS,aAAN,CAAoBV,KAApB,EAA2B,IAA3B,EAAiC,QAAjC,CADI,EAEJC,KAAK,CAACS,aAAN,CAAoBZ,oBAApB,EAA0C;AAAES,IAAAA,QAAQ,EAAEA,QAAZ;AAAsBK,IAAAA,KAAK,EAAEH,UAAF,aAAEA,UAAF,uBAAEA,UAAU,CAAEG,KAAzC;AAAgDC,IAAAA,MAAM,EAAET,WAAxD;AAAqEU,IAAAA,QAAQ,EAAET;AAA/E,GAA1C,CAFI,CAAR;AAGH,CANM;AAOP,MAAMM,SAAS,GAAGR,MAAM,CAACY,GAAK,EAA9B","sourcesContent":["import { VerticalNominalChips } from './VerticalNominalChips';\r\nimport { useDimensions } from '@essex-js-toolkit/hooks';\r\nimport { Label } from '@fluentui/react';\r\nimport React, { useRef } from 'react';\r\nimport styled from 'styled-components';\r\nconst ITEM_HEIGHT = 16;\r\nconst MAX_ITEMS = 5;\r\nexport const NominalLegend = ({ encoding }) => {\r\n const ref = useRef(null);\r\n const dimensions = useDimensions(ref);\r\n return (React.createElement(Container, { ref: ref },\r\n React.createElement(Label, null, \"Legend\"),\r\n React.createElement(VerticalNominalChips, { encoding: encoding, width: dimensions?.width, height: ITEM_HEIGHT, maxItems: MAX_ITEMS })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/0f917c0b74b0dc7ceb84c1b1fa9b6e8d.json b/node_modules/.cache/cache-loader/0f917c0b74b0dc7ceb84c1b1fa9b6e8d.json deleted file mode 100644 index 2213015..0000000 --- a/node_modules/.cache/cache-loader/0f917c0b74b0dc7ceb84c1b1fa9b6e8d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\styles\\fluent.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\styles\\fluent.ts","mtime":1620403249587},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZXhwb3J0IGNvbnN0IENPTU1BTkRCQVJfSEVJR0hUID0gMzI7CmV4cG9ydCBjb25zdCBDT01NQU5EQkFSX01BUkdJTiA9IDEyOwpleHBvcnQgY29uc3QgSEVBREVSX0hFSUdIVCA9IENPTU1BTkRCQVJfSEVJR0hUICsgQ09NTUFOREJBUl9NQVJHSU4gKiAyOwpleHBvcnQgY29uc3QgUEFORUxfV0lEVEggPSAzMDA7CmV4cG9ydCBjb25zdCBBUFBfUEFERElOR19MRUZUID0gMzA7CmV4cG9ydCBjb25zdCBCUkVBRF9DUlVNQl9TVFlMRVMgPSB7CiAgcm9vdDogewogICAgbWFyZ2luVG9wOiAwCiAgfSwKICBpdGVtOiB7CiAgICBmb250U2l6ZTogJ3h4TGFyZ2UnCiAgfQp9OwpleHBvcnQgY29uc3QgU1BJTk5FUl9TVFlMR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c3ViSGVhZGVyTGFiZWwgPSB2YXJpYW50cy5tZWRpdW07"},{"version":3,"sources":["C:/ws/graph-drill/src/styles/fluent.ts"],"names":["COMMANDBAR_HEIGHT","COMMANDBAR_MARGIN","HEADER_HEIGHT","PANEL_WIDTH","APP_PADDING_LEFT","BREAD_CRUMB_STYLES","root","marginTop","item","fontSize","SPINNER_STYLE","zIndex","marginLeft","label","circle","width","height","SIDE_PANEL_STYLE","position","HELP_PANEL_STYLE","GUTTER","ANIMATION_DURATION","tiny","xSmall","small","smallPlus","medium","mediumPlus","large","xLarge","xxLarge","mega","variants","headerLabel","subHeaderLabel"],"mappings":"AAAA,OAAO,MAAMA,iBAAiB,GAAG,EAA1B;AACP,OAAO,MAAMC,iBAAiB,GAAG,EAA1B;AACP,OAAO,MAAMC,aAAa,GAAGF,iBAAiB,GAAGC,iBAAiB,GAAG,CAA9D;AACP,OAAO,MAAME,WAAW,GAAG,GAApB;AACP,OAAO,MAAMC,gBAAgB,GAAG,EAAzB;AACP,OAAO,MAAMC,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE;AACFC,IAAAA,SAAS,EAAE;AADT,GADwB;AAI9BC,EAAAA,IAAI,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAZ;AAJwB,CAA3B;AAMP,OAAO,MAAMC,aAAa,GAAG;AACzBJ,EAAAA,IAAI,EAAE;AACFK,IAAAA,MAAM,EAAE,CADN;AAEFC,IAAAA,UAAU,EAAE,GAFV;AAGFL,IAAAA,SAAS,EAAE;AAHT,GADmB;AAMzBM,EAAAA,KAAK,EAAE;AAAEJ,IAAAA,QAAQ,EAAE;AAAZ,GANkB;AAOzBK,EAAAA,MAAM,EAAE;AAAEC,IAAAA,KAAK,EAAE,GAAT;AAAcC,IAAAA,MAAM,EAAE;AAAtB;AAPiB,CAAtB;AASP,OAAO,MAAMC,gBAAgB,GAAG;AAC5BC,EAAAA,QAAQ,EAAE;AADkB,CAAzB;AAGP,OAAO,MAAMC,gBAAgB,GAAG;AAAEV,EAAAA,QAAQ,EAAE;AAAZ,CAAzB;AACP,OAAO,MAAMW,MAAM,GAAG,EAAf;AACP,OAAO,MAAMC,kBAAkB,GAAG,GAA3B,C,CACP;;AACA,MAAMC,IAAI,GAAG,MAAb;AACA,MAAMC,MAAM,GAAG,QAAf;AACA,MAAMC,KAAK,GAAG,OAAd;AACA,MAAMC,SAAS,GAAG,WAAlB;AACA,MAAMC,MAAM,GAAG,QAAf;AACA,MAAMC,UAAU,GAAG,YAAnB;AACA,MAAMC,KAAK,GAAG,OAAd;AACA,MAAMC,MAAM,GAAG,QAAf;AACA,MAAMC,OAAO,GAAG,SAAhB;AACA,MAAMC,IAAI,GAAG,MAAb;AACA,OAAO,MAAMC,QAAQ,GAAG;AACpBV,EAAAA,IADoB;AAEpBC,EAAAA,MAFoB;AAGpBC,EAAAA,KAHoB;AAIpBC,EAAAA,SAJoB;AAKpBC,EAAAA,MALoB;AAMpBC,EAAAA,UANoB;AAOpBC,EAAAA,KAPoB;AAQpBC,EAAAA,MARoB;AASpBC,EAAAA,OAToB;AAUpBC,EAAAA;AAVoB,CAAjB;AAYP,OAAO,MAAME,WAAW,GAAGD,QAAQ,CAACL,UAA7B;AACP,OAAO,MAAMO,cAAc,GAAGF,QAAQ,CAACN,MAAhC","sourcesContent":["export const COMMANDBAR_HEIGHT = 32;\r\nexport const COMMANDBAR_MARGIN = 12;\r\nexport const HEADER_HEIGHT = COMMANDBAR_HEIGHT + COMMANDBAR_MARGIN * 2;\r\nexport const PANEL_WIDTH = 300;\r\nexport const APP_PADDING_LEFT = 30;\r\nexport const BREAD_CRUMB_STYLES = {\r\n root: {\r\n marginTop: 0,\r\n },\r\n item: { fontSize: 'xxLarge' },\r\n};\r\nexport const SPINNER_STYLE = {\r\n root: {\r\n zIndex: 1,\r\n marginLeft: 300,\r\n marginTop: 300,\r\n },\r\n label: { fontSize: 32 },\r\n circle: { width: 200, height: 200 },\r\n};\r\nexport const SIDE_PANEL_STYLE = {\r\n position: 'relative',\r\n};\r\nexport const HELP_PANEL_STYLE = { fontSize: '0.8em' };\r\nexport const GUTTER = 10;\r\nexport const ANIMATION_DURATION = 500;\r\n// Fluent Text Styles\r\nconst tiny = 'tiny';\r\nconst xSmall = 'xSmall';\r\nconst small = 'small';\r\nconst smallPlus = 'smallPlus';\r\nconst medium = 'medium';\r\nconst mediumPlus = 'mediumPlus';\r\nconst large = 'large';\r\nconst xLarge = 'xLarge';\r\nconst xxLarge = 'xxLarge';\r\nconst mega = 'mega';\r\nexport const variants = {\r\n tiny,\r\n xSmall,\r\n small,\r\n smallPlus,\r\n medium,\r\n mediumPlus,\r\n large,\r\n xLarge,\r\n xxLarge,\r\n mega,\r\n};\r\nexport const headerLabel = variants.mediumPlus;\r\nexport const subHeaderLabel = variants.medium;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/1106cb40cc0f62ab7f492f75e7042b47.json b/node_modules/.cache/cache-loader/1106cb40cc0f62ab7f492f75e7042b47.json deleted file mode 100644 index 4f2d8d1..0000000 --- a/node_modules/.cache/cache-loader/1106cb40cc0f62ab7f492f75e7042b47.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\EdgeColorControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\EdgeColorControls\\index.tsx","mtime":1624559748295},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb0VkZ2VUYWJsZSB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IENvbG9yU2VsZWN0b3IgfSBmcm9tICd+L2NvbnRyb2xzL0NvbG9yU2VsZWN0b3IvQ29sb3JTZWxlY3Rvcic7CmltcG9ydCB7IHVzZUVkZ2VDb2xvckVuY29kaW5nLCB1c2VVcGRhdGVFZGdlQ29sb3JFbmNvZGluZyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgRWRnZUNvbG9yQ29udHJvbHMgPSAoKSA9PiB7CiAgY29uc3QgZW5jb2RpbmcgPSB1c2VFZGdlQ29sb3JFbmNvZGluZygpOwogIGNvbnN0IHVwZGF0ZUVuY29kaW5nID0gdXNlVXBkYXRlRWRnZUNvbG9yRW5jb2RpbmcoKTsKICBjb25zdCB0YWJsZSA9IHVzZUFycXVlcm9FZGdlVGFibGUoKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29sb3JTZWxlY3RvciwgewogICAgdGFibGU6IHRhYmxlLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb25DaGFuZ2U6IHVwZGF0ZUVuY29kaW5nCiAgfSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/EdgeColorControls/index.tsx"],"names":["React","styled","useArqueroEdgeTable","ColorSelector","useEdgeColorEncoding","useUpdateEdgeColorEncoding","EdgeColorControls","encoding","updateEncoding","table","createElement","Container","onChange","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,mBAAT,QAAoC,WAApC;AACA,SAASC,aAAT,QAA8B,wCAA9B;AACA,SAASC,oBAAT,EAA+BC,0BAA/B,QAAiE,SAAjE;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAAM;AACnC,QAAMC,QAAQ,GAAGH,oBAAoB,EAArC;AACA,QAAMI,cAAc,GAAGH,0BAA0B,EAAjD;AACA,QAAMI,KAAK,GAAGP,mBAAmB,EAAjC;AACA,SAAQF,KAAK,CAACU,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJX,KAAK,CAACU,aAAN,CAAoBP,aAApB,EAAmC;AAAEM,IAAAA,KAAK,EAAEA,KAAT;AAAgBF,IAAAA,QAAQ,EAAEA,QAA1B;AAAoCK,IAAAA,QAAQ,EAAEJ;AAA9C,GAAnC,CADI,CAAR;AAEH,CANM;AAOP,MAAMG,SAAS,GAAGV,MAAM,CAACY,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroEdgeTable } from '~/arquero';\r\nimport { ColorSelector } from '~/controls/ColorSelector/ColorSelector';\r\nimport { useEdgeColorEncoding, useUpdateEdgeColorEncoding } from '~/state';\r\nexport const EdgeColorControls = () => {\r\n const encoding = useEdgeColorEncoding();\r\n const updateEncoding = useUpdateEdgeColorEncoding();\r\n const table = useArqueroEdgeTable();\r\n return (React.createElement(Container, null,\r\n React.createElement(ColorSelector, { table: table, encoding: encoding, onChange: updateEncoding })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/13f28c5712617dd9ff8fb9ff15edea96.json b/node_modules/.cache/cache-loader/13f28c5712617dd9ff8fb9ff15edea96.json deleted file mode 100644 index 9657143..0000000 --- a/node_modules/.cache/cache-loader/13f28c5712617dd9ff8fb9ff15edea96.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchItems.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchItems.tsx","mtime":1631029334742},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBDb21tdW5pdHlDb2xsZWN0aW9uLCBsaXN0Q29sdW1uRGVmcywgTm9kZUNvbGxlY3Rpb24gfSBmcm9tICcuLi8uLi8uLi8uLi8uLi8uLi9hcnF1ZXJvJzsKaW1wb3J0IHsgdXNlTm9kZUlkcyB9IGZyb20gJy4uLy4uLy4uLy4uLy4uLy4uL2hvb2tzL2dyYXBoJzsKaW1wb3J0IHsgdXNlQ29tbXVuaXR5U29ydCwgdXNlSG92ZXJlZENvbW11bml0eSwgdXNlU2VsZWN0ZWRDb21tdW5pdHksIHVzZVNlbGVjdGVkTm9kZXNTdGF0ZSwgdXNlU2V0SG92ZXJlZENvbW11bml0eSwgdXNlU2V0SG92ZXJlZE5vZGUsIHVzZVNldFNlbGVjdGVkQ29tbXVuaXR5LCB1c2VTZXRTZWxlY3RlZE5vZGVzIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vLi4vc3RhdGUnOwppbXBvcnQgeyBDb21tdW5pdHlSb3cgfSBmcm9tICcuLi8uLi8uLi8uLi8uLi9Db21tdW5pdHlMaXN0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hOb2RlVGFibGUpIHsKICAgICAgICBjb25zdCBrZXkgPSBzZWFyY2hOb2RlVGFibGUuZ2V0dGVyKCdub2RlLmlkJyk7CiAgICAgICAgbGV0IGZvdW5kOwogICAgICAgIGNvbnN0IGNvbHMgPSBsaXN0Q29sdW1uRGVmcyhzZWFyY2hOb2RlVGFibGUudGFibGUpOwogICAgICAgIHNlYXJjaE5vZGVUYWJsZS5zY2FuKChpZHgsIGRhdGEsIHN0b3ApID0+IHsKICAgICAgICAgIGNvbnN0IGlkID0ga2V5KGlkeCk7CgogICAgICAgICAgaWYgKG5vZGVpZCA9PT0gaWQgJiYgIWZvdW5kKSB7CiAgICAgICAgICAgIGNvbnN0IG9iaiA9IGNvbHMucmVkdWNlKChhY2MsIGNvbCkgPT4gewogICAgICAgICAgICAgIGNvbnN0IGFjY2Vzc29yID0gc2VhcmNoTm9kZVRhYmxlLmdldHRlcihjb2wubmFtZSk7CiAgICAgICAgICAgICAgY29uc3QgdmFsID0gYWNjZXNzb3IoaWR4KTsKICAgICAgICAgICAgICBhY2NbY29sLm5hbWVdID0gdmFsOwogICAgICAgICAgICAgIHJldHVybiBhY2M7CiAgICAgICAgICAgIH0sIHt9KTsKICAgICAgICAgICAgZm91bmQgPSBvYmo7CiAgICAgICAgICAgIHN0b3AoKTsKICAgICAgICAgIH0KICAgICAgICB9LCB0cnVlKTsKCiAgICAgICAgaWYgKGZvdW5kKSB7CiAgICAgICAgICBjb25zdCBjb21tSWQgPSBmb3VuZFsnY29tbXVuaXR5LmlkJ107CgogICAgICAgICAgaWYgKGNvbW1JZCkgewogICAgICAgICAgICBzZXRTZWxlY3RlZENvbW11bml0eShjb21tSWQpOwogICAgICAgICAgfQoKICAgICAgICAgIGNvbnN0IHRibCA9IGZyb20oW2ZvdW5kXSk7CiAgICAgICAgICBzZXRTZWxlY3RlZE5vZGUobmV3IE5vZGVDb2xsZWN0aW9uKHRibCkpOwogICAgICAgIH0KICAgICAgfQogICAgfQogIH0sIFtzZWFyY2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b21tdW5pdHkuaWQnKSwgW3NlYXJjaENvbHVtbnNdKTsKICBjb25zdCByb3dzID0gdXNlTWVtbygoKSA9PiB7CiAgICBpZiAoc29ydGVkICYmIGNvbHMubGVuZ3RoID4gMCkgewogICAgICBjb25zdCByb3dzID0gc29ydGVkLm1hcChjb21tID0+IHsKICAgICAgICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb21tdW5pdHlSb3csIHsKICAgICAgICAgIGNvbW11bml0eTogY29tbSwKICAgICAgICAgIG9uSG92ZXI6IGhhbmRsZVJvd0hvdmVyLAogICAgICAgICAgb25DbGljazogaGFuZGxlUm93Q2xpY2ssCiAgICAgICAgICBob3ZlcmVkOiBjb21tLmlkID09PSBob3ZlcmVkLAogICAgICAgICAgY29sdW1uczogY29scywKICAgICAgICAgIHN0eWxlczogSXRlbVN0eWxlcywKICAgICAgICAgIHNlbGVjdGVkOiBzZWxlY3RlZENvbW11bml0eUlEID09PSBjb21tLmlkLAogICAgICAgICAga2V5OiBgY29tbXVuaXR5LXJvdy0ke2NvbW0uaWR9YAogICAgICAgIH0pOwogICAgICB9LCB0cnVlKTsKICAgICAgcmV0dXJuIHJvd3M7CiAgICB9CgogICAgcmV0dXJuIG51bGw7CiAgfSwgW3NvcnRlZCwgaG92ZXJlZCwgY29scywgc2VsZWN0ZWRDb21tdW5pdHlJRCwgaGFuZGxlUm93Q2xpY2ssIGhhbmRsZVJvd0hvdmVyXSk7CiAgY29uc3Qgbm9kZVJvd3MgPSB1c2VNZW1vKCgpID0+IHsKICAgIGlmIChzZWFyY2hOb2RlVGFibGUpIHsKICAgICAgY29uc3Qgcm93cyA9IHNlYXJjaE5vZGVUYWJsZS5tYXAobm9kZSA9PiB7CiAgICAgICAgY29uc3Qgbm9kZWlkID0gbm9kZS5nZXQoJ25vZGUuaWQnKTsKICAgICAgICBjb25zdCBzZWxlY3RlZCA9IHNlbGVjdGVkTm9kZUlkcy5pbmNsdWRlcyhub2RlaWQpOwogICAgICAgIHJ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xlbWVudCgidGJvZHkiLCBudWxsLCByb3dzKSkpKSA6IG51bGwsIHNlYXJjaE5vZGVUYWJsZSAmJiBzZWFyY2hOb2RlVGFibGUuc2l6ZSA+IDAgPyBSZWFjdC5jcmVhdGVFbGVtZW50KFBpdm90SXRlbSwgewogICAgaGVhZGVyVGV4dDogIk5vZGVzIiwKICAgIGhlYWRlckJ1dHRvblByb3BzOiB7CiAgICAgICdkYXRhLW9yZGVyJzogMiwKICAgICAgJ2RhdGEtdGl0bGUnOiAnbm9kZSBtYXRjaGVzJywKICAgICAgJ2FyaWEtbGFiZWwnOiAnbm9kZS5pZCcKICAgIH0KICB9LCBSZWFjdC5jcmVhdGVFbGVtZW50KExpc3RDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoVGFibGUsIHsKICAgIHRhYkluZGV4OiAwCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudCgidGJvZHkiLCBudWxsLCBub2RlUm93cykpKSkgOiBudWxsKSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogYmxvY2s7CmA7CmNvbnN0IExpc3RDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJb3ZlcmZsb3c6IGF1dG87CgltYXJnaW4tdG9wOiA1cHg7CgljdXJzb3I6IHBvaW50ZXI7CgltYXgtaGVpZ2h0OiA0MDBweDsKYDsKY29uc3QgVGFibGUgPSBzdHlsZWQudGFibGVgCgl3aWR0aDogMTAwJTsKYDsKCmZ1bmN0aW9uIGtGb3JtYXR0ZXIobnVtKSB7CiAgcmV0dXJuIE1hdGguYWJzKG51bSkgPiA5OTkgPyAoTWF0aC5hYnMobnVtKSAvIDEwMDApLnRvRml4ZWQoMSkgKyAnaycgOiBgJHtNYXRoLnNpZ24obnVtKSAqIE1hdGguYWJzKG51bSl9YDsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/SearchItems.tsx"],"names":["CommunityCollection","listColumnDefs","NodeCollection","useNodeIds","useCommunitySort","useHoveredCommunity","useSelectedCommunity","useSelectedNodesState","useSetHoveredCommunity","useSetHoveredNode","useSetSelectedCommunity","useSetSelectedNodes","CommunityRow","useColumns","NodeListItem","SearchItemHeader","Pivot","PivotItem","desc","from","React","useCallback","useMemo","styled","ItemStyles","tableElements","text","width","circle","SearchItems","searchNodeTable","searchTable","errorMsg","setHoveredCommunity","setSelectedCommunity","selectedCommunityID","setHoverNode","hovered","setSelectedNode","selectedNode","selectedNodeIds","sort","sorted","descending","field","order","handleRowHover","community","id","handleNodeClick","nodeid","alreadySelected","includes","undefined","key","getter","found","cols","table","scan","idx","data","stop","obj","reduce","acc","col","accessor","name","val","commId","tbl","handleRowClick","handleHoverNode","searchColumns","filter","d","rows","length","map","comm","createElement","onHover","onClick","columns","styles","selected","nodeRows","node","get","nodeId","searchText","totalCommunity","size","totalNodes","communityText","nodeText","kFormatter","Fragment","numberOfResults","Container","headerText","headerButtonProps","ListContainer","Table","tabIndex","div","num","Math","abs","toFixed","sign"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,EAA8BC,cAA9B,EAA8CC,cAA9C,QAAqE,2BAArE;AACA,SAASC,UAAT,QAA2B,+BAA3B;AACA,SAASC,gBAAT,EAA2BC,mBAA3B,EAAgDC,oBAAhD,EAAsEC,qBAAtE,EAA6FC,sBAA7F,EAAqHC,iBAArH,EAAwIC,uBAAxI,EAAiKC,mBAAjK,QAA6L,yBAA7L;AACA,SAASC,YAAT,QAA6B,2CAA7B;AACA,SAASC,UAAT,QAA2B,oCAA3B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,KAAT,EAAgBC,SAAhB,QAAiC,iBAAjC;AACA,SAASC,IAAT,EAAeC,IAAf,QAA2B,SAA3B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AAC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,MAAM,CAACmF,GAAK;AAC9B;AACA,CAFA;AAGA,MAAMH,aAAa,GAAGhF,MAAM,CAACmF,GAAK;AAClC;AACA;AACA;AACA;AACA,CALA;AAMA,MAAMF,KAAK,GAAGjF,MAAM,CAACmC,KAAO;AAC5B;AACA,CAFA;;AAGA,SAASuC,UAAT,CAAoBU,GAApB,EAAyB;AACrB,SAAOC,IAAI,CAACC,GAAL,CAASF,GAAT,IAAgB,GAAhB,GACD,CAACC,IAAI,CAACC,GAAL,CAASF,GAAT,IAAgB,IAAjB,EAAuBG,OAAvB,CAA+B,CAA/B,IAAoC,GADnC,GAEA,GAAEF,IAAI,CAACG,IAAL,CAAUJ,GAAV,IAAiBC,IAAI,CAACC,GAAL,CAASF,GAAT,CAAc,EAFxC;AAGH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { CommunityCollection, listColumnDefs, NodeCollection, } from '../../../../../../arquero';\r\nimport { useNodeIds } from '../../../../../../hooks/graph';\r\nimport { useCommunitySort, useHoveredCommunity, useSelectedCommunity, useSelectedNodesState, useSetHoveredCommunity, useSetHoveredNode, useSetSelectedCommunity, useSetSelectedNodes, } from '../../../../../../state';\r\nimport { CommunityRow } from '../../../../../CommunityList/CommunityRow';\r\nimport { useColumns } from '../../../../../CommunityList/hooks';\r\nimport { NodeListItem } from './NodeListItem';\r\nimport { SearchItemHeader } from './SearchItemHeader';\r\nimport { Pivot, PivotItem } from '@fluentui/react';\r\nimport { desc, from } from 'arquero';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nconst ItemStyles = {\r\n tableElements: { text: { width: '90%' }, circle: { width: '10%' } },\r\n};\r\nexport const SearchItems = ({ searchNodeTable, searchTable, errorMsg, }) => {\r\n const setHoveredCommunity = useSetHoveredCommunity();\r\n const setSelectedCommunity = useSetSelectedCommunity();\r\n const selectedCommunityID = useSelectedCommunity();\r\n const setHoverNode = useSetHoveredNode();\r\n const hovered = useHoveredCommunity();\r\n const setSelectedNode = useSetSelectedNodes();\r\n const selectedNode = useSelectedNodesState();\r\n const selectedNodeIds = useNodeIds(selectedNode);\r\n const [sort] = useCommunitySort();\r\n const sorted = useMemo(() => {\r\n const { descending, field } = sort;\r\n const order = descending ? desc(field) : field;\r\n return searchTable.sort(order);\r\n }, [searchTable, sort]);\r\n const handleRowHover = useCallback(community => setHoveredCommunity(community?.id), [setHoveredCommunity]);\r\n const handleNodeClick = useCallback((nodeid) => {\r\n const alreadySelected = selectedNodeIds.includes(nodeid);\r\n if (alreadySelected) {\r\n setSelectedNode(undefined);\r\n setSelectedCommunity('-1');\r\n }\r\n else {\r\n if (searchNodeTable) {\r\n const key = searchNodeTable.getter('node.id');\r\n let found;\r\n const cols = listColumnDefs(searchNodeTable.table);\r\n searchNodeTable.scan((idx, data, stop) => {\r\n const id = key(idx);\r\n if (nodeid === id && !found) {\r\n const obj = cols.reduce((acc, col) => {\r\n const accessor = searchNodeTable.getter(col.name);\r\n const val = accessor(idx);\r\n acc[col.name] = val;\r\n return acc;\r\n }, {});\r\n found = obj;\r\n stop();\r\n }\r\n }, true);\r\n if (found) {\r\n const commId = found['community.id'];\r\n if (commId) {\r\n setSelectedCommunity(commId);\r\n }\r\n const tbl = from([found]);\r\n setSelectedNode(new NodeCollection(tbl));\r\n }\r\n }\r\n }\r\n }, [searchNodeTable, setSelectedNode, setSelectedCommunity, selectedNodeIds]);\r\n const handleRowClick = useCallback(community => {\r\n if (community && community.id === selectedCommunityID) {\r\n setSelectedCommunity('-1');\r\n }\r\n else {\r\n setSelectedCommunity(community?.id);\r\n }\r\n // clear previous selections\r\n setHoveredCommunity(undefined);\r\n setSelectedNode(undefined);\r\n }, [\r\n setSelectedCommunity,\r\n setHoveredCommunity,\r\n selectedCommunityID,\r\n setSelectedNode,\r\n ]);\r\n const handleHoverNode = useCallback((id) => setHoverNode(id), [setHoverNode]);\r\n const tbl = useMemo(() => searchTable || new CommunityCollection(), [searchTable]);\r\n const searchColumns = useColumns(tbl, 0);\r\n const cols = useMemo(() => searchColumns && searchColumns.filter(d => d.field === 'community.id'), [searchColumns]);\r\n const rows = useMemo(() => {\r\n if (sorted && cols.length > 0) {\r\n const rows = sorted.map(comm => {\r\n return (React.createElement(CommunityRow, { community: comm, onHover: handleRowHover, onClick: handleRowClick, hovered: comm.id === hovered, columns: cols, styles: ItemStyles, selected: selectedCommunityID === comm.id, key: `community-row-${comm.id}` }));\r\n }, true);\r\n return rows;\r\n }\r\n return null;\r\n }, [\r\n sorted,\r\n hovered,\r\n cols,\r\n selectedCommunityID,\r\n handleRowClick,\r\n handleRowHover,\r\n ]);\r\n const nodeRows = useMemo(() => {\r\n if (searchNodeTable) {\r\n const rows = searchNodeTable.map(node => {\r\n const nodeid = node.get('node.id');\r\n const selected = selectedNodeIds.includes(nodeid);\r\n return (React.createElement(NodeListItem, { nodeId: nodeid, onHover: handleHoverNode, onClick: handleNodeClick, selected: selected, key: `node-row-${nodeid}` }));\r\n }, true);\r\n return rows;\r\n }\r\n return null;\r\n }, [searchNodeTable, handleHoverNode, handleNodeClick, selectedNodeIds]);\r\n const searchText = useMemo(() => {\r\n const totalCommunity = searchTable ? searchTable.size : 0;\r\n const totalNodes = searchNodeTable ? searchNodeTable.size : 0;\r\n let communityText = '';\r\n let nodeText = '';\r\n if (totalCommunity > 0) {\r\n communityText =\r\n totalCommunity > 1\r\n ? `${kFormatter(totalCommunity)} communities`\r\n : `${totalCommunity} community`;\r\n if (totalNodes > 0) {\r\n communityText += ' & ';\r\n nodeText =\r\n totalNodes > 1\r\n ? `${kFormatter(totalNodes)} nodes`\r\n : `${totalNodes} node`;\r\n }\r\n }\r\n return `Found ${communityText} ${nodeText}`;\r\n }, [searchTable, searchNodeTable]);\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(SearchItemHeader, { numberOfResults: searchNodeTable ? searchNodeTable.size : 0, searchText: searchText, errorMsg: errorMsg }),\r\n React.createElement(Container, null,\r\n React.createElement(Pivot, { \"aria-label\": 'Community or node selection' },\r\n searchTable && searchTable.size > 0 ? (React.createElement(PivotItem, { headerText: \"Communities\", headerButtonProps: {\r\n 'data-order': 1,\r\n 'data-title': 'community matches',\r\n 'aria-label': 'community.id',\r\n } },\r\n React.createElement(ListContainer, null,\r\n React.createElement(Table, { tabIndex: 0 },\r\n React.createElement(\"tbody\", null, rows))))) : null,\r\n searchNodeTable && searchNodeTable.size > 0 ? (React.createElement(PivotItem, { headerText: \"Nodes\", headerButtonProps: {\r\n 'data-order': 2,\r\n 'data-title': 'node matches',\r\n 'aria-label': 'node.id',\r\n } },\r\n React.createElement(ListContainer, null,\r\n React.createElement(Table, { tabIndex: 0 },\r\n React.createElement(\"tbody\", null, nodeRows))))) : null))));\r\n};\r\nconst Container = styled.div `\r\n\tdisplay: block;\r\n`;\r\nconst ListContainer = styled.div `\r\n\toverflow: auto;\r\n\tmargin-top: 5px;\r\n\tcursor: pointer;\r\n\tmax-height: 400px;\r\n`;\r\nconst Table = styled.table `\r\n\twidth: 100%;\r\n`;\r\nfunction kFormatter(num) {\r\n return Math.abs(num) > 999\r\n ? (Math.abs(num) / 1000).toFixed(1) + 'k'\r\n : `${Math.sign(num) * Math.abs(num)}`;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/16a0ac9e28a8cd1af407d734f8ec2785.json b/node_modules/.cache/cache-loader/16a0ac9e28a8cd1af407d734f8ec2785.json deleted file mode 100644 index c435151..0000000 --- a/node_modules/.cache/cache-loader/16a0ac9e28a8cd1af407d734f8ec2785.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\index.tsx","mtime":1620403249489},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL051bWVyaWNTZWxlY3Rvcic7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericSelector/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,mBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './NumericSelector';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/1777a5e86aaf7dc1afb821f07ea49a2b.json b/node_modules/.cache/cache-loader/1777a5e86aaf7dc1afb821f07ea49a2b.json deleted file mode 100644 index fce9c9f..0000000 --- a/node_modules/.cache/cache-loader/1777a5e86aaf7dc1afb821f07ea49a2b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\FileList\\FileList.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\FileList\\FileList.tsx","mtime":1631029334784},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgRmlsZVVwbG9hZE1lc3NhZ2UgfSBmcm9tICcuLi9BcHAvY29tbWFuZHMvbW9kYWxzL3BhbmVscy9GaWxlVXBsb2FkTWVzc2FnZSc7CmltcG9ydCB7IERlZmF1bHRCdXR0b24gfSBmcm9tICdAZmx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XIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IEZpbGVzID0gc3R5bGVkLmRpdmBgOwpjb25zdCBWaWV3ZXIgPSBzdHlsZWQuZGl2YAoJbWFyZ2luOiAyMHB4OwpgOwpjb25zdCBSZXNldCA9IHN0eWxlZC5kaXZgCgl3aWR0aDogMTAwJTsKCWRpc3BsYXk6IGZsZXg7CglqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwoJbWFyZ2luOiAyMHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/FileList/FileList.tsx"],"names":["FileUploadMessage","DefaultButton","React","useCallback","useState","styled","useArqueroBigTable","useArqueroEdgeTable","useClearAllData","ArqueroTable","useClearFiles","useFilesList","FileList","bigTable","edgeTable","resetTables","files","resetFiles","selectedFile","setSelectedFile","handleFileClick","file","handleResetClick","createElement","Container","Files","onClick","Reset","length","numRows","text","Viewer","url","table","options","limit","div"],"mappings":"AAAA,SAASA,iBAAT,QAAkC,iDAAlC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,QAA7B,QAA6C,OAA7C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,kBAAT,EAA6BC,mBAA7B,EAAkDC,eAAlD,QAA0E,WAA1E;AACA,SAASC,YAAT,QAA6B,wBAA7B;AACA,SAASC,aAAT,EAAwBC,YAAxB,QAA4C,SAA5C,C,CACA;AACA;;AACA,OAAO,MAAMC,QAAQ,GAAG,MAAM;AAC1B,QAAMC,QAAQ,GAAGP,kBAAkB,EAAnC;AACA,QAAMQ,SAAS,GAAGP,mBAAmB,EAArC;AACA,QAAMQ,WAAW,GAAGP,eAAe,EAAnC;AACA,QAAMQ,KAAK,GAAGL,YAAY,EAA1B;AACA,QAAMM,UAAU,GAAGP,aAAa,EAAhC;AACA,QAAM,CAACQ,YAAD,EAAeC,eAAf,IAAkCf,QAAQ,EAAhD;AACA,QAAMgB,eAAe,GAA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MX,SAAS,GAAGnB,MAAM,CAAC+B,GAAK,EAA9B;AACA,MAAMX,KAAK,GAAGpB,MAAM,CAAC+B,GAAK,EAA1B;AACA,MAAML,MAAM,GAAG1B,MAAM,CAAC+B,GAAK;AAC3B;AACA,CAFA;AAGA,MAAMT,KAAK,GAAGtB,MAAM,CAAC+B,GAAK;AAC1B;AACA;AACA;AACA;AACA,CALA","sourcesContent":["import { FileUploadMessage } from '../App/commands/modals/panels/FileUploadMessage';\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { useCallback, useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroBigTable, useArqueroEdgeTable, useClearAllData, } from '~/arquero';\r\nimport { ArqueroTable } from '~/arquero/ArqueroTable';\r\nimport { useClearFiles, useFilesList } from '~/state';\r\n// TODO: this is expected to be a robust file list with selections, etc.\r\n// at the moment it is a copy of the file drop panel used in modals\r\nexport const FileList = () => {\r\n const bigTable = useArqueroBigTable();\r\n const edgeTable = useArqueroEdgeTable();\r\n const resetTables = useClearAllData();\r\n const files = useFilesList();\r\n const resetFiles = useClearFiles();\r\n const [selectedFile, setSelectedFile] = useState();\r\n const handleFileClick = useCallback(file => setSelectedFile(file), []);\r\n const handleResetClick = useCallback(() => {\r\n resetTables();\r\n resetFiles();\r\n }, [resetTables, resetFiles]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Files, null,\r\n React.createElement(FileUploadMessage, { files: files, onClick: handleFileClick })),\r\n React.createElement(Reset, null, files.length > 0 ||\r\n bigTable.numRows() > 0 ||\r\n edgeTable.numRows() > 0 ? (React.createElement(DefaultButton, { text: \"Clear all\", onClick: handleResetClick })) : null),\r\n selectedFile ? (React.createElement(Viewer, null,\r\n React.createElement(\"h3\", null, selectedFile.url),\r\n React.createElement(ArqueroTable, { table: selectedFile?.table, options: { limit: 10 } }))) : null));\r\n};\r\nconst Container = styled.div ``;\r\nconst Files = styled.div ``;\r\nconst Viewer = styled.div `\r\n\tmargin: 20px;\r\n`;\r\nconst Reset = styled.div `\r\n\twidth: 100%;\r\n\tdisplay: flex;\r\n\tjustify-content: flex-end;\r\n\tmargin: 20px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/1e3fdbe7b61d5182d5f2367cb0f86722.json b/node_modules/.cache/cache-loader/1e3fdbe7b61d5182d5f2367cb0f86722.json deleted file mode 100644 index 9e29876..0000000 --- a/node_modules/.cache/cache-loader/1e3fdbe7b61d5182d5f2367cb0f86722.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\index.ts","mtime":1620403249555},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2NvbW11bml0aWVzJzsKZXhwb3J0ICogZnJvbSAnLi9mZWF0dXJlcyc7CmV4cG9ydCAqIGZyb20gJy4vZmlsZXMnOwpleHBvcnQgKiBmcm9tICcuL25vZGVzJzsKZXhwb3J0ICogZnJvbSAnLi9zZXR0aW5ncyc7CmV4cG9ydCAqIGZyb20gJy4vdGFibGVzJzsKZXhwb3J0ICogZnJvbSAnLi91cmwnOwpleHBvcnQgKiBmcm9tICcuL3Zpcyc7"},{"version":3,"sources":["C:/ws/graph-drill/src/state/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd;AACA,cAAc,OAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './communities';\r\nexport * from './features';\r\nexport * from './files';\r\nexport * from './nodes';\r\nexport * from './settings';\r\nexport * from './tables';\r\nexport * from './url';\r\nexport * from './vis';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/20017c159b3162f7446a9f3762d8b692.json b/node_modules/.cache/cache-loader/20017c159b3162f7446a9f3762d8b692.json deleted file mode 100644 index a5420b0..0000000 --- a/node_modules/.cache/cache-loader/20017c159b3162f7446a9f3762d8b692.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useColumns.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useColumns.ts","mtime":1631029334768},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBCQVJfSEVJR0hULCBCQVJfV0lEVEggfSBmcm9tICcuLi9zdHlsZXMnOwppbXBvcnQgeyBNYXJrIH0gZnJvbSAnLi4vdHlwZXMnOwppbXBvcnQgeyB1c2VCYXJTY2FsZSwgdXNlRHluYW1pY0NvbHVtbiwgdXNlQmFyRmlsbFNjYWxlIH0gZnJ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GUsIGJhcldpZHRoLCBzbGltQmFyV2lkdGgsIGJhckhlaWdodF0pOwogIHJldHVybiBjb2x1bW5zOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/hooks/useColumns.ts"],"names":["BAR_HEIGHT","BAR_WIDTH","Mark","useBarScale","useDynamicColumn","useBarFillScale","useMemo","useChildCountDomain","useNodeCountDomain","useNodeColorEncoding","SLIM_BAR","useColumns","communities","width","height","childCountDomain","childBarScale","nodeCountDomain","nodeBarScale","encoding","barHeight","undefined","barWidth","slimBarWidth","dynamicColumn","barFillScale","columns","header","field","accessor","d","id","nodeCount","mark","Rect","sizeScale","fillScale","childCount"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,EAAqBC,SAArB,QAAsC,WAAtC;AACA,SAASC,IAAT,QAAqB,UAArB;AACA,SAASC,WAAT,EAAsBC,gBAAtB,EAAwCC,eAAxC,QAA+D,GAA/D;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,mBAAT,EAA8BC,kBAA9B,QAAwD,qBAAxD;AACA,SAASC,oBAAT,QAAqC,SAArC;AACA,MAAMC,QAAQ,GAAG,EAAjB;AACA,OAAO,SAASC,UAAT,CAAoBC,WAApB,EAAiCC,KAAjC,EAAwCC,MAAxC,EAAgD;AACnD,QAAMC,gBAAgB,GAAGR,mBAAmB,CAACK,WAAD,CAA5C;AACA,QAAMI,aAAa,GAAGb,WAAW,CAACY,gBAAD,EAAmB,CAAC,CAAD,EAAId,SAAJ,CAAnB,CAAjC;AACA,QAAMgB,eAAe,GAAGT,kBAAkB,CAACI,WAAD,CAA1C;AACA,QAAMM,YAAY,GAAGf,WAAW,CAACc,eAAD,EAAkB,CAAC,CAAD,EAAIhB,SAAJ,CAAlB,CAAhC;AACA,QAAMkB,QAAQ,GAAGV,oBAAoB,EAArC;AACA,QAAMW,SAAS,GAAGd,OAAO,CAAC,MAAOQ,MAAM,KAAKO,SAAX,GAAuBP,MAAvB,GAAgCd,UAAxC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SAAS,EAAEX,YANf;AAOIZ,MAAAA,KAAK,EAAES,QAPX;AAQIR,MAAAA,MAAM,EAAEM;AARZ,KAnBG,CAAP;AA8BH,GA/BsB,EA+BpB,CACCI,aADD,EAECN,YAFD,EAGCO,YAHD,EAICT,aAJD,EAKCM,QALD,EAMCC,YAND,EAOCH,SAPD,CA/BoB,CAAvB;AAwCA,SAAOM,OAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { BAR_HEIGHT, BAR_WIDTH } from '../styles';\r\nimport { Mark } from '../types';\r\nimport { useBarScale, useDynamicColumn, useBarFillScale } from '.';\r\nimport { useMemo } from 'react';\r\nimport { useChildCountDomain, useNodeCountDomain } from '~/hooks/communities';\r\nimport { useNodeColorEncoding } from '~/state';\r\nconst SLIM_BAR = 40;\r\nexport function useColumns(communities, width, height) {\r\n const childCountDomain = useChildCountDomain(communities);\r\n const childBarScale = useBarScale(childCountDomain, [0, BAR_WIDTH]);\r\n const nodeCountDomain = useNodeCountDomain(communities);\r\n const nodeBarScale = useBarScale(nodeCountDomain, [0, BAR_WIDTH]);\r\n const encoding = useNodeColorEncoding();\r\n const barHeight = useMemo(() => (height !== undefined ? height : BAR_HEIGHT), [height]);\r\n const barWidth = useMemo(() => (width !== undefined ? width : BAR_WIDTH), [width]);\r\n const slimBarWidth = useMemo(() => (width !== undefined ? width : SLIM_BAR), [width]);\r\n const dynamicColumn = useDynamicColumn(encoding, slimBarWidth);\r\n const barFillScale = useBarFillScale();\r\n const columns = useMemo(() => {\r\n return [\r\n dynamicColumn,\r\n {\r\n header: 'ID',\r\n field: 'community.id',\r\n accessor: (d) => d.id,\r\n width: slimBarWidth,\r\n height: barHeight,\r\n },\r\n {\r\n header: 'Node count',\r\n field: 'community.nodeCount',\r\n accessor: (d) => d.nodeCount,\r\n mark: Mark.Rect,\r\n sizeScale: nodeBarScale,\r\n fillScale: barFillScale,\r\n width: barWidth,\r\n height: barHeight,\r\n },\r\n {\r\n header: 'Child count',\r\n field: 'community.childCount',\r\n accessor: (d) => d.childCount,\r\n mark: Mark.Rect,\r\n sizeScale: childBarScale,\r\n fillScale: barFillScale,\r\n width: barWidth,\r\n height: barHeight,\r\n },\r\n ];\r\n }, [\r\n dynamicColumn,\r\n nodeBarScale,\r\n barFillScale,\r\n childBarScale,\r\n barWidth,\r\n slimBarWidth,\r\n barHeight,\r\n ]);\r\n return columns;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/20d4cbfd17a2af35c2fa2017c44a9915.json b/node_modules/.cache/cache-loader/20d4cbfd17a2af35c2fa2017c44a9915.json deleted file mode 100644 index 02a3e59..0000000 --- a/node_modules/.cache/cache-loader/20d4cbfd17a2af35c2fa2017c44a9915.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\EdgeSizeControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\EdgeSizeControls\\index.tsx","mtime":1631029330210},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb0VkZ2VUYWJsZSB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IE51bWVyaWNTZWxlY3RvciB9IGZyb20gJ34vY29udHJvbHMvTnVtZXJpY1NlbGVjdG9yJzsKaW1wb3J0IHsgdXNlRWRnZVNpemVFbmNvZGluZywgdXNlVXBkYXRlRWRnZVNpemVFbmNvZGluZyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgRWRnZVNpemVDb250cm9scyA9ICgpID0+IHsKICBjb25zdCBlbmNvZGluZyA9IHVzZUVkZ2VTaXplRW5jb2RpbmcoKTsKICBjb25zdCB1cGRhdGVFbmNvZGluZyA9IHVzZVVwZGF0ZUVkZ2VTaXplRW5jb2RpbmcoKTsKICBjb25zdCB0YWJsZSA9IHVzZUFycXVlcm9FZGdlVGFibGUoKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTnVtZXJpY1NlbGVjdG9yLCB7CiAgICBsYWJlbDogImVkZ2Ugc2l6ZSIsCiAgICB0YWJsZTogdGFibGUsCiAgICBlbmNvZGluZzogZW5jb2RpbmcsCiAgICBvbkNoYW5nZTogdXBkYXRlRW5jb2RpbmcsCiAgICBtaW46IDAuNSwKICAgIG1heDogNTAsCiAgICBzdGVwOiAwLjUKICB9KSk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/EdgeSizeControls/index.tsx"],"names":["React","styled","useArqueroEdgeTable","NumericSelector","useEdgeSizeEncoding","useUpdateEdgeSizeEncoding","EdgeSizeControls","encoding","updateEncoding","table","createElement","Container","label","onChange","min","max","step","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,mBAAT,QAAoC,WAApC;AACA,SAASC,eAAT,QAAgC,4BAAhC;AACA,SAASC,mBAAT,EAA8BC,yBAA9B,QAA+D,SAA/D;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAM;AAClC,QAAMC,QAAQ,GAAGH,mBAAmB,EAApC;AACA,QAAMI,cAAc,GAAGH,yBAAyB,EAAhD;AACA,QAAMI,KAAK,GAAGP,mBAAmB,EAAjC;AACA,SAAQF,KAAK,CAACU,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJX,KAAK,CAACU,aAAN,CAAoBP,eAApB,EAAqC;AAAES,IAAAA,KAAK,EAAE,WAAT;AAAsBH,IAAAA,KAAK,EAAEA,KAA7B;AAAoCF,IAAAA,QAAQ,EAAEA,QAA9C;AAAwDM,IAAAA,QAAQ,EAAEL,cAAlE;AAAkFM,IAAAA,GAAG,EAAE,GAAvF;AAA4FC,IAAAA,GAAG,EAAE,EAAjG;AAAqGC,IAAAA,IAAI,EAAE;AAA3G,GAArC,CADI,CAAR;AAEH,CANM;AAOP,MAAML,SAAS,GAAGV,MAAM,CAACgB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroEdgeTable } from '~/arquero';\r\nimport { NumericSelector } from '~/controls/NumericSelector';\r\nimport { useEdgeSizeEncoding, useUpdateEdgeSizeEncoding } from '~/state';\r\nexport const EdgeSizeControls = () => {\r\n const encoding = useEdgeSizeEncoding();\r\n const updateEncoding = useUpdateEdgeSizeEncoding();\r\n const table = useArqueroEdgeTable();\r\n return (React.createElement(Container, null,\r\n React.createElement(NumericSelector, { label: \"edge size\", table: table, encoding: encoding, onChange: updateEncoding, min: 0.5, max: 50, step: 0.5 })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/233fe960c210b93953489f68d9549278.json b/node_modules/.cache/cache-loader/233fe960c210b93953489f68d9549278.json deleted file mode 100644 index cf71cac..0000000 --- a/node_modules/.cache/cache-loader/233fe960c210b93953489f68d9549278.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\EdgeOpacityHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\EdgeOpacityHeaderLegend.tsx","mtime":1631029334802},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VFZGdlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VFZGdlT3BhY2l0eUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBFZGdlT3BhY2l0eUhlYWRlckxlZ2VuZCA9ICgpID0+IHsKICBjb25zdCBjb3VudCA9IHVzZUVkZ2VDb3VudCgpOwogIGNvbnN0IGVuY29kaW5nID0gdXNlRWRnZU9wYWNpdHlFbmNvZGluZygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhlYWRlckxlZ2VuZCwgewogICAgbGFiZWw6ICdFZGdlIG9wYWNpdHknLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb3BhY2l0eUVuY29kaW5nOiBlbmNvZGluZywKICAgIGlzVW5zZXQ6IGNvdW50ID09PSAwLAogICAgaXNEYXNoZXM6IHRydWUKICB9KTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/EdgeOpacityHeaderLegend.tsx"],"names":["HeaderLegend","React","useEdgeCount","useEdgeOpacityEncoding","EdgeOpacityHeaderLegend","count","encoding","createElement","label","opacityEncoding","isUnset","isDashes"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,sBAAT,QAAuC,SAAvC;AACA,OAAO,MAAMC,uBAAuB,GAAG,MAAM;AACzC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,sBAAsB,EAAvC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,cAAT;AAAyBF,IAAAA,QAAQ,EAAEA,QAAnC;AAA6CG,IAAAA,eAAe,EAAEH,QAA9D;AAAwEI,IAAAA,OAAO,EAAEL,KAAK,KAAK,CAA3F;AAA8FM,IAAAA,QAAQ,EAAE;AAAxG,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useEdgeCount } from '~/arquero';\r\nimport { useEdgeOpacityEncoding } from '~/state';\r\nexport const EdgeOpacityHeaderLegend = () => {\r\n const count = useEdgeCount();\r\n const encoding = useEdgeOpacityEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Edge opacity', encoding: encoding, opacityEncoding: encoding, isUnset: count === 0, isDashes: true }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/28241ffd866182d96a9fd7915de2bdaf.json b/node_modules/.cache/cache-loader/28241ffd866182d96a9fd7915de2bdaf.json deleted file mode 100644 index 1a7c441..0000000 --- a/node_modules/.cache/cache-loader/28241ffd866182d96a9fd7915de2bdaf.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ThematicPalettePicker.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ThematicPalettePicker.tsx","mtime":1631029334820},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamV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ncm91bmQKfSkgPT4gYmFja2dyb3VuZH07CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ColorSelector/ThematicPalettePicker.tsx"],"names":["listThematicColors","getNamedSchemeColor","useThematic","React","useCallback","useMemo","styled","ThematicPalettePicker","encoding","onChange","theme","paths","handleChipClick","path","thematicSchemePath","chips","map","index","color","scheme","createElement","Chip","title","toString","background","hex","border","application","accent","plotArea","stroke","role","tabIndex","key","onClick","onKeyDown","Container","Grid","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,kBAAT,QAAmC,mBAAnC;AACA,SAASC,mBAAT,QAAoC,iBAApC;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,qBAAqB,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA;AAAZ,CAAD,KAA6B;AAC9D,QAAMC,KAAK,GAAGR,WAAW,EAAzB;AACA,QAAMS,KAAK,GAAGN,OAAO,CAAC,MAAML,kBAAkB,EAAzB,EAA6B,EAA7B,CAArB;AACA,QAAMY,eAAe,GAAGR,WAAW,CAAES,IAAD,IAAUJ,QAAQ,CAAC;AAAEK,IAAAA,kBAAkB,EAAED;AAAtB,GAAD,CAAnB,EAAmD,CAACJ,QAAD,CAAnD,CAAnC;AACA,QAAMM,KAAK,GAAGV,OAAO,CAAC,MAAM;AACxB,WAAOM,KAAK,CAACK,GAAN,CAAU,CAACH,IAAD,EAAOI,KAAP,KAAiB;AAC9B,YAAMC,KAAK,GAAGjB,mBAAmB,CAACS,KAAK,CAACS,MAAP,EAAeN,IAAf,CAAjC;AACA,aAAQV,KAAK,CAACiB,aAAN,CAAoBC,IAApB,EAA0B;AAAEC,QAAAA,KAAK,EAAEJ,KAAK,CAACK,QAAN,EAAT;AAA2BC,QAAAA,UAAU,EAAEN,KAAK,CAACO,GAAN,EAAvC;AAAoDC,QAAAA,MAAM,EAAEb,IAAI,KAAKL,QAAQ,CAACM,kBAAlB,GACnF,aAAYJ,KAAK,CAACiB,WAAN,GAAoBC,MAApB,GAA6BH,GAA7B,EAAmC,EADoC,GAEnF,aAAYf,KAAK,CAACmB,QAAN,GAAiBC,MAAjB,GAA0BL,GAA1B,EAAgC,EAFrB;AAEwBM,QAAAA,IAAI,EAAE,QAF9B;AAEwCC,QAAAA,QAAQ,EAAEf,KAFlD;AAEyDgB,QAAAA,GAAG,EAAG,gCAA+BpB,IAAK,EAFnG;AAEsGqB,QAAAA,OAAO,EAAE,MAAMtB,eAAe,CAACC,IAAD,CAFpI;AAG9B;AACAsB,QAAAA,SAAS,EAAE,MAAMvB,eAAe,CAACC,IAAD;AAJF,OAA1B,CAAR;AAKH,KAPM,CAAP;AAQH,GAToB,EASlB,CAACH,KAAD,EAAQC,KAAR,EAAeH,QAAf,EAAyBI,eAAzB,CATkB,CAArB;AAUA,SAAQT,KAAK,CAACiB,aAAN,CAAoBgB,SAApB,EAA+B,IAA/B,EACJjC,KAAK,CAACiB,aAAN,CAAoBiB,IAApB,EAA0B,IAA1B,EAAgCtB,KAAhC,CADI,CAAR;AAEH,CAhBM;AAiBP,MAAMqB,SAAS,GAAG9B,MAAM,CAACgC,GAAK;AAC9B;AACA,CAFA;AAGA,MAAMD,IAAI,GAAG/B,MAAM,CAACgC,GAAK;AACzB;AACA;AACA;AACA,CAJA;AAKA,MAAMjB,IAAI,GAAGf,MAAM,CAACgC,GAAK;AACzB;AACA;AACA;AACA;AACA,WAAW,CAAC;AAAEZ,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC,eAAe,CAAC;AAAEF,EAAAA;AAAF,CAAD,KAAoBA,UAAW;AAC9C,CAPA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { listThematicColors } from '../../utils/theme';\r\nimport { getNamedSchemeColor } from '@thematic/color';\r\nimport { useThematic } from '@thematic/react';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const ThematicPalettePicker = ({ encoding, onChange, }) => {\r\n const theme = useThematic();\r\n const paths = useMemo(() => listThematicColors(), []);\r\n const handleChipClick = useCallback((path) => onChange({ thematicSchemePath: path }), [onChange]);\r\n const chips = useMemo(() => {\r\n return paths.map((path, index) => {\r\n const color = getNamedSchemeColor(theme.scheme, path);\r\n return (React.createElement(Chip, { title: color.toString(), background: color.hex(), border: path === encoding.thematicSchemePath\r\n ? `3px solid ${theme.application().accent().hex()}`\r\n : `1px solid ${theme.plotArea().stroke().hex()}`, role: 'button', tabIndex: index, key: `thematic-palette-picker-chip-${path}`, onClick: () => handleChipClick(path), \r\n // TODO: these key defaults should check for enter. same with ColumnEditor\r\n onKeyDown: () => handleChipClick(path) }));\r\n });\r\n }, [theme, paths, encoding, handleChipClick]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Grid, null, chips)));\r\n};\r\nconst Container = styled.div `\r\n\tmargin-top: 8px;\r\n`;\r\nconst Grid = styled.div `\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n\tjustify-content: center;\r\n`;\r\nconst Chip = styled.div `\r\n\tmargin: 4px;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tcursor: pointer;\r\n\tborder: ${({ border }) => border};\r\n\tbackground: ${({ background }) => background};\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2933577bfefdf9013ce6751315388988.json b/node_modules/.cache/cache-loader/2933577bfefdf9013ce6751315388988.json deleted file mode 100644 index 6b6bd66..0000000 --- a/node_modules/.cache/cache-loader/2933577bfefdf9013ce6751315388988.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\ColumnEditor\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\ColumnEditor\\index.tsx","mtime":1620403249254},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NvbHVtbkVkaXRvcic7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/ColumnEditor/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,gBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './ColumnEditor';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2bdedb0da9986305e9194bc7cd772228.json b/node_modules/.cache/cache-loader/2bdedb0da9986305e9194bc7cd772228.json deleted file mode 100644 index ea18ad7..0000000 --- a/node_modules/.cache/cache-loader/2bdedb0da9986305e9194bc7cd772228.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\FileDrop\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\FileDrop\\index.tsx","mtime":1620403249446},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0ZpbGVEcm9wJzs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/FileDrop/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,YAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './FileDrop';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2c2ac982c7c8cb93592f32fdd8826c6e.json b/node_modules/.cache/cache-loader/2c2ac982c7c8cb93592f32fdd8826c6e.json deleted file mode 100644 index 69d7fe0..0000000 --- a/node_modules/.cache/cache-loader/2c2ac982c7c8cb93592f32fdd8826c6e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\NodeOpacityHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\NodeOpacityHeaderLegend.tsx","mtime":1631029334809},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VOb2RlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VOb2RlT3BhY2l0eUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBOb2RlT3BhY2l0eUhlYWRlckxlZ2VuZCA9ICgpID0+IHsKICBjb25zdCBjb3VudCA9IHVzZU5vZGVDb3VudCgpOwogIGNvbnN0IGVuY29kaW5nID0gdXNlTm9kZU9wYWNpdHlFbmNvZGluZygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhlYWRlckxlZ2VuZCwgewogICAgbGFiZWw6ICdOb2RlIG9wYWNpdHknLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb3BhY2l0eUVuY29kaW5nOiBlbmNvZGluZywKICAgIGlzVW5zZXQ6IGNvdW50ID09PSAwCiAgfSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/NodeOpacityHeaderLegend.tsx"],"names":["HeaderLegend","React","useNodeCount","useNodeOpacityEncoding","NodeOpacityHeaderLegend","count","encoding","createElement","label","opacityEncoding","isUnset"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,sBAAT,QAAuC,SAAvC;AACA,OAAO,MAAMC,uBAAuB,GAAG,MAAM;AACzC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,sBAAsB,EAAvC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,cAAT;AAAyBF,IAAAA,QAAQ,EAAEA,QAAnC;AAA6CG,IAAAA,eAAe,EAAEH,QAA9D;AAAwEI,IAAAA,OAAO,EAAEL,KAAK,KAAK;AAA3F,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useNodeCount } from '~/arquero';\r\nimport { useNodeOpacityEncoding } from '~/state';\r\nexport const NodeOpacityHeaderLegend = () => {\r\n const count = useNodeCount();\r\n const encoding = useNodeOpacityEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Node opacity', encoding: encoding, opacityEncoding: encoding, isUnset: count === 0 }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2d635602479c6c131a63e271ed23702b.json b/node_modules/.cache/cache-loader/2d635602479c6c131a63e271ed23702b.json deleted file mode 100644 index 24a0a87..0000000 --- a/node_modules/.cache/cache-loader/2d635602479c6c131a63e271ed23702b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\ScaledPicker.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\ScaledPicker.tsx","mtime":1631029334851},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBOdW1lcmljRG9tYWluRWRpdG9yIH0gZnJvbSAnLi4vTnVtZXJpY0RvbWFpbkVkaXRvcic7CmltcG9ydCB7IE51bWVyaWNSYW5nZUVkaXRvciB9IGZyb20gJy4uL051bWVyaWNSYW5nZUVkaXRvc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uY29kaW5nOiBlbmNvZGluZywKICAgIG9uQ2hhbmdlOiBvbkNoYW5nZQogIH0pKSwgUmVhY3QuY3JlYXRlRWxlbWVudChHcm91cCwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChOdW1lcmljUmFuZ2VFZGl0b3IsIHsKICAgIGVuY29kaW5nOiBlbmNvZGluZywKICAgIG9uQ2hhbmdlOiBvbkNoYW5nZSwKICAgIG1pbjogbWluLAogICAgbWF4OiBtYXgsCiAgICAvLyBUT0RPOiBzaG91bGQgdGhpcyB1c2Ugc3RlcCBvciBwcmVjaXNpb24gZm9yIGNvbnNpc3RlbmN5PwogICAgcHJlY2lzaW9uOiBNYXRoLmNlaWwoc3RlcCB8fCAxKQogIH0pKSk7Cn07IC8vIGZvciBvcGFjaXR5LCB3ZSBjYW4gb25seSBhbGxvdyBudW1lcmljIGJpbmRpbmdzCgpmdW5jdGlvbiB1c2VGaWVsZERyb3Bkb3duT3B0aW9ucyh0YWJsZSkgewogIHJldHVybiB1c2VNZW1vKCgpID0+IHsKICAgIGNvbnN0IHR5cGVzID0gY29sdW1uVHlwZXModGFibGUpOwogICAgcmV0dXJuIHR5cGVzLmZpbHRlcih0ID0+IHQudHlwZSA9PT0gJ251bWJlcicpLm1hcCgoewogICAgICBuYW1lCiAgICB9KSA9PiAoewogICAgICBrZXk6IG5hbWUsCiAgICAgIHRleHQ6IG5hbWUKICAgIH0pKTsKICB9LCBbdGFibGVdKTsKfQoKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOwpjb25zdCBHcm91cCA9IHN0eWxlZC5kaXZgCgltYXJnaW4tdG9wOiAyMHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericSelector/ScaledPicker.tsx"],"names":["NumericDomainEditor","NumericRangeEditor","Dropdown","React","useCallback","useMemo","styled","columnTypes","ScaledPicker","table","encoding","onChange","min","max","step","fieldOptions","useFieldDropdownOptions","handleFieldChange","_","option","field","key","createElement","Container","Group","label","options","selectedKey","placeholder","precision","Math","ceil","types","filter","t","type","map","name","text","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,QAAoC,wBAApC;AACA,SAASC,kBAAT,QAAmC,uBAAnC;AACA,SAASC,QAAT,QAAyB,iBAAzB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,WAAT,QAA4B,WAA5B;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,QAAT;AAAmBC,EAAAA,QAAnB;AAA6BC,EAAAA,GAA7B;AAAkCC,EAAAA,GAAlC;AAAuCC,EAAAA;AAAvC,CAAD,KAAoD;AAC5E,QAAMC,YAAY,GAAGC,uBAAuB,CAACP,KAAD,CAA5C;AACA,QAAMQ,iBAAiB,GAAGb,WAAW,CAAC,CAACc,CAAD,EAAIC,MAAJ,KAAe;AACjDR,IAAAA,QAAQ,CAAC;AACLS,MAAAA,KAAK,EAAED,MAAM,CAACE;AADT,KAAD,CAAR;AAGH,GAJoC,EAIlC,CAACV,QAAD,CAJkC,CAArC;AAKA,SAAQR,KAAK,CAACmB,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJpB,KAAK,CAACmB,aAAN,CAAoBE,KAApB,EAA2B,IAA3B,EACIrB,KAAK,CAACmB,aAAN,CAAoBpB,QAApB,EAA8B;AAAEuB,IAAAA,KAAK,EAAE,QAAT;AAAmBC,IAAAA,OAAO,EAAEX,YAA5B;AAA0CY,IAAAA,WAAW,EAAEjB,QAAQ,CAACU,KAAhE;AAAuET,IAAAA,QAAQ,EAAEM,iBAAjF;AAAoGW,IAAAA,WAAW,EAAE;AAAjH,GAA9B,CADJ,CADI,EAGJzB,KAAK,CAACmB,aAAN,CAAoBE,KAApB,EAA2B,IAA3B,EACIrB,KAAK,CAACmB,aAAN,CAAoBtB,mBAApB,EAAyC;AAAES,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,QAAQ,EAAEA,QAA1B;AAAoCC,IAAAA,QAAQ,EAAEA;AAA9C,GAAzC,CADJ,CAHI,EAKJR,KAAK,CAACmB,aAAN,CAAoBE,KAApB,EAA2B,IAA3B,EACIrB,KAAK,CAACmB,aAAN,CAAoBrB,kBAApB,EAAwC;AAAES,IAAAA,QAAQ,EAAEA,QAAZ;AAAsBC,IAAAA,QAAQ,EAAEA,QAAhC;AAA0CC,IAAAA,GAAG,EAAEA,GAA/C;AAAoDC,IAAAA,GAAG,EAAEA,GAAzD;AACpC;AACAgB,IAAAA,SAAS,EAAEC,IAAI,CAACC,IAAL,CAAUjB,IAAI,IAAI,CAAlB;AAFyB,GAAxC,CADJ,CALI,CAAR;AASH,CAhBM,C,CAiBP;;AACA,SAASE,uBAAT,CAAiCP,KAAjC,EAAwC;AACpC,SAAOJ,OAAO,CAAC,MAAM;AACjB,UAAM2B,KAAK,GAAGzB,WAAW,CAACE,KAAD,CAAzB;AACA,WAAOuB,KAAK,CACPC,MADE,CACKC,CAAC,IAAIA,CAAC,CAACC,IAAF,KAAW,QADrB,EAEFC,GAFE,CAEE,CAAC;AAAEC,MAAAA;AAAF,KAAD,MAAe;AACpBhB,MAAAA,GAAG,EAAEgB,IADe;AAEpBC,MAAAA,IAAI,EAAED;AAFc,KAAf,CAFF,CAAP;AAMH,GARa,EAQX,CAAC5B,KAAD,CARW,CAAd;AASH;;AACD,MAAMc,SAAS,GAAGjB,MAAM,CAACiC,GAAK,EAA9B;AACA,MAAMf,KAAK,GAAGlB,MAAM,CAACiC,GAAK;AAC1B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { NumericDomainEditor } from '../NumericDomainEditor';\r\nimport { NumericRangeEditor } from '../NumericRangeEditor';\r\nimport { Dropdown } from '@fluentui/react';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { columnTypes } from '~/arquero';\r\nexport const ScaledPicker = ({ table, encoding, onChange, min, max, step, }) => {\r\n const fieldOptions = useFieldDropdownOptions(table);\r\n const handleFieldChange = useCallback((_, option) => {\r\n onChange({\r\n field: option.key,\r\n });\r\n }, [onChange]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Group, null,\r\n React.createElement(Dropdown, { label: 'Column', options: fieldOptions, selectedKey: encoding.field, onChange: handleFieldChange, placeholder: 'Select data column' })),\r\n React.createElement(Group, null,\r\n React.createElement(NumericDomainEditor, { table: table, encoding: encoding, onChange: onChange })),\r\n React.createElement(Group, null,\r\n React.createElement(NumericRangeEditor, { encoding: encoding, onChange: onChange, min: min, max: max, \r\n // TODO: should this use step or precision for consistency?\r\n precision: Math.ceil(step || 1) }))));\r\n};\r\n// for opacity, we can only allow numeric bindings\r\nfunction useFieldDropdownOptions(table) {\r\n return useMemo(() => {\r\n const types = columnTypes(table);\r\n return types\r\n .filter(t => t.type === 'number')\r\n .map(({ name }) => ({\r\n key: name,\r\n text: name,\r\n }));\r\n }, [table]);\r\n}\r\nconst Container = styled.div ``;\r\nconst Group = styled.div `\r\n\tmargin-top: 20px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2e5542ddb68ba45d20c10ec374884169.json b/node_modules/.cache/cache-loader/2e5542ddb68ba45d20c10ec374884169.json deleted file mode 100644 index 88c8341..0000000 --- a/node_modules/.cache/cache-loader/2e5542ddb68ba45d20c10ec374884169.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\FileDrop\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\FileDrop\\hooks\\index.ts","mtime":1620403249438},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3VzZURyb3AnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/FileDrop/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,WAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './useDrop';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/2fc5c606229b8c65ad5d7f34ee398b6d.json b/node_modules/.cache/cache-loader/2fc5c606229b8c65ad5d7f34ee398b6d.json deleted file mode 100644 index 0126790..0000000 --- a/node_modules/.cache/cache-loader/2fc5c606229b8c65ad5d7f34ee398b6d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\HierarchyNav.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\HierarchyNav.tsx","mtime":1624559748173},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2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IsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTmVzdGVkQ29udGVudCwgewogICAgICAgIGNsYXNzTmFtZTogInRyZWVfbGFiZWwiLAogICAgICAgIGlkOiBgbGlzdC1pdGVtLSR7cmFua2luZ31gLAogICAgICAgIG9uQ2xpY2s6ICgpID0+IGhhbmRsZUxpc3RDbGljayhpdGVtLCBpKSwKICAgICAgICBvbktleURvd246ICgpID0+IGhhbmRsZUxpc3RDbGljayhpdGVtLCBpKSwKICAgICAgICB0YWJJbmRleDogaQogICAgICB9LCBpID09PSAwID8gUmVhY3QuY3JlYXRlRWxlbWVudChBY3Rpb25CdXR0b24sIHsKICAgICAgICBzdHlsZXM6IGNvbG9yU3R5bGUsCiAgICAgICAgY2hlY2tlZDogdHJ1ZQogICAgICB9LCBpdGVtLnRleHQpIDogUmVhY3QuY3JlYXRlRWxlbWVudChBY3Rpb25CdXR0b24sIHsKICAgICAgICBzdHlsZXM6IGNvbG9yU3R5bGUsCiAgICAgICAgaWNvblByb3BzOiBjYXJldEljb24sCiAgICAgICAgY2hlY2tlZDogdHJ1ZQogICAgICB9LCBpdGVtLnRleHQpKSwgcHJldkNvbnRlbnQpKTsKICAgICAgcHJldkNvbnRlbnQgPSBjb250ZW50OwogICAgICByZXR1cm4gcHJldkNvbnRlbnQ7CiAgICB9LCB1bmRlZmluZWQpOwogIH0sIFtyZXZlcnNlTGlzdCwgaGlnaGxpZ2h0LCBub3JtYWwsIGhhbmRsZUxpc3RDbGlja10pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRhaW5lciwgbnVsbCwgbmVzdGVkQ29udGVudCk7Cn0pOwpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IE5lc3RlZENvbnRlbnQgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/HierarchyNav.tsx"],"names":["ActionButton","SelectionState","useThematic","React","memo","useMemo","useCallback","styled","caretIcon","iconName","HierarchyNav","items","handleBreadcrumbClick","theme","highlight","iconChecked","color","node","selectionState","Selected","fill","hex","root","cursor","maxHeight","label","fontSize","fontWeight","normal","Normal","reverseList","reverse","handleListClick","item","index","nestedContent","reduce","prevContent","i","colorStyle","className","length","ranking","content","createElement","NestedContent","id","onClick","onKeyDown","tabIndex","styles","checked","text","iconProps","undefined","Container","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,iBAA7B;AACA,SAASC,cAAT,QAA+B,gBAA/B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,OAAtB,EAA+BC,WAA/B,QAAkD,OAAlD;AACA,OAAO,oBAAP;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,SAAS,GAAG;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAAlB;AACA,OAAO,MAAMC,YAAY,GAAGN,IAAI,CAAC,SAASM,YAAT,CAAsB;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAtB,EAAwD;AACrF,QAAMC,KAAK,GAAGX,WAAW,EAAzB;AACA,QAAMY,SAAS,GAAGT,OAAO,CAAC,OAAO;AAC7BU,IAAAA,WAAW,EAAE;AACTC,MAAAA,KAAK,EAAEH,KAAK,CACPI,IADE,CACG;AAAEC,QAAAA,cAAc,EAAEjB,cAAc,CAACkB;AAAjC,OADH,EAEFC,IAFE,GAGFC,GAHE;AADE,KADgB;AAO7BC,IAAAA,IAAI,EAAE;AAAEC,MAAAA,MAAM,EAAE,QAAV;AAAoBC,MAAAA,SAAS,EAAE;AAA/B,KAPuB;AAQ7BC,IAAAA,KAAK,EAAE;AAAEC,MAAAA,QAAQ,EAAE,OAAZ;AAAqBC,MAAAA,UAAU,EAAE;AAAjC;AARsB,GAAP,CAAD,EASrB,CAACd,KAAD,CATqB,CAAzB;AAUA,QAAMe,MAAM,GA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A,SAAS,EAAE,YAAb;AAA2BM,QAAAA,EAAE,EAAG,aAAYJ,OAAQ,EAApD;AAAuDK,QAAAA,OAAO,EAAE,MAAMf,eAAe,CAACC,IAAD,EAAOK,CAAP,CAArF;AAAgGU,QAAAA,SAAS,EAAE,MAAMhB,eAAe,CAACC,IAAD,EAAOK,CAAP,CAAhI;AAA2IW,QAAAA,QAAQ,EAAEX;AAArJ,OAAnC,EAA6LA,CAAC,KAAK,CAAN,GAAWnC,KAAK,CAACyC,aAAN,CAAoB5C,YAApB,EAAkC;AAAEkD,QAAAA,MAAM,EAAEX,UAAV;AAAsBY,QAAAA,OAAO,EAAE;AAA/B,OAAlC,EAAyElB,IAAI,CAACmB,IAA9E,CAAX,GAAmGjD,KAAK,CAACyC,aAAN,CAAoB5C,YAApB,EAAkC;AAAEkD,QAAAA,MAAM,EAAEX,UAAV;AAAsBc,QAAAA,SAAS,EAAE7C,SAAjC;AAA4C2C,QAAAA,OAAO,EAAE;AAArD,OAAlC,EAA+FlB,IAAI,CAACmB,IAApG,CAAhS,CADJ,EAEIf,WAFJ,CADa,CAAjB;AAIAA,MAAAA,WAAW,GAAGM,OAAd;AACA,aAAON,WAAP;AACH,KAVM,EAUJiB,SAVI,CAAP;AAWH,GAZ4B,EAY1B,CAACxB,WAAD,EAAchB,SAAd,EAAyBc,MAAzB,EAAiCI,eAAjC,CAZ0B,CAA7B;AAaA,SAAO7B,KAAK,CAACyC,aAAN,CAAoBW,SAApB,EAA+B,IAA/B,EAAqCpB,aAArC,CAAP;AACH,CA1C+B,CAAzB;AA2CP,MAAMoB,SAAS,GAAGhD,MAAM,CAACiD,GAAK,EAA9B;AACA,MAAMX,aAAa,GAAGtC,MAAM,CAACiD,GAAK,EAAlC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ActionButton } from '@fluentui/react';\r\nimport { SelectionState } from '@thematic/core';\r\nimport { useThematic } from '@thematic/react';\r\nimport React, { memo, useMemo, useCallback } from 'react';\r\nimport './HierarchyNav.css';\r\nimport styled from 'styled-components';\r\nconst caretIcon = { iconName: 'ChevronDownSmall' };\r\nexport const HierarchyNav = memo(function HierarchyNav({ items, handleBreadcrumbClick }) {\r\n const theme = useThematic();\r\n const highlight = useMemo(() => ({\r\n iconChecked: {\r\n color: theme\r\n .node({ selectionState: SelectionState.Selected })\r\n .fill()\r\n .hex(),\r\n },\r\n root: { cursor: 'revert', maxHeight: 20 },\r\n label: { fontSize: 'large', fontWeight: 500 },\r\n }), [theme]);\r\n const normal = useMemo(() => ({\r\n root: { maxHeight: 20 },\r\n iconChecked: {\r\n color: theme\r\n .node({ selectionState: SelectionState.Normal })\r\n .fill()\r\n .hex(),\r\n },\r\n }), [theme]);\r\n const reverseList = useMemo(() => items.reverse(), [items]);\r\n const handleListClick = useCallback((item, index) => {\r\n if (index !== 0) {\r\n // leaf is not clickable\r\n handleBreadcrumbClick(item);\r\n }\r\n }, [handleBreadcrumbClick]);\r\n const nestedContent = useMemo(() => {\r\n return reverseList.reduce((prevContent, item, i) => {\r\n const colorStyle = i === 0 ? highlight : normal;\r\n const className = i === reverseList.length - 1 ? 'tree' : 'nested';\r\n const ranking = reverseList.length - 1 - i;\r\n const content = (React.createElement(\"ul\", { className: className },\r\n React.createElement(\"li\", null,\r\n React.createElement(NestedContent, { className: \"tree_label\", id: `list-item-${ranking}`, onClick: () => handleListClick(item, i), onKeyDown: () => handleListClick(item, i), tabIndex: i }, i === 0 ? (React.createElement(ActionButton, { styles: colorStyle, checked: true }, item.text)) : (React.createElement(ActionButton, { styles: colorStyle, iconProps: caretIcon, checked: true }, item.text))),\r\n prevContent)));\r\n prevContent = content;\r\n return prevContent;\r\n }, undefined);\r\n }, [reverseList, highlight, normal, handleListClick]);\r\n return React.createElement(Container, null, nestedContent);\r\n});\r\nconst Container = styled.div ``;\r\nconst NestedContent = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/366387d1c9b7807f911db33872e281a2.json b/node_modules/.cache/cache-loader/366387d1c9b7807f911db33872e281a2.json deleted file mode 100644 index 03e5d0f..0000000 --- a/node_modules/.cache/cache-loader/366387d1c9b7807f911db33872e281a2.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\theme.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\theme.ts","mtime":1624559748208},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlVGhlbWF0aWMgfSBmcm9tICdAdGhlbWF0aWMvcmVhY3QnOwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmV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ICh7CiAgICBtYWluOiB7CiAgICAgIGJhY2tncm91bmQ6IHRoZW1lLmFwcGxpY2F0aW9uKCkuZmFpbnQoKS5oZXgoKQogICAgfQogIH0pLCBbdGhlbWVdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/hooks/theme.ts"],"names":["useThematic","useMemo","HEADER_HEIGHT","useHeaderStyle","theme","width","height","alignItems","color","application","highContrast","hex","background","faint","borderBottom","lowContrast","useIconButtonStyles","root","marginLeft","marginTop","marginRight","rootHovered","accent","useModalStyles","main"],"mappings":"AAAA,SAASA,WAAT,QAA4B,iBAA5B;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,OAAO,SAASC,cAAT,GAA0B;AAC7B,QAAMC,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,OAAO;AAClBI,IAAAA,KAAK,EAAE,MADW;AAElBC,IAAAA,MAAM,EAAEJ,aAFU;AAGlBK,IAAAA,UAAU,EAAE,QAHM;AAIlBC,IAAAA,KAAK,EAAEJ,KAAK,CAACK,WAAN,GAAoBC,YAApB,GAAmCC,GAAnC,EAJW;AAKlBC,IAAAA,UAAU,EAAER,KAAK,CAACK,WAAN,GAAoBI,KAApB,GAA4BF,GAA5B,EALM;AAMlBG,IAAAA,YAAY,EAAG,aAAYV,KAAK,CAACK,WAAN,GAAoBM,WAApB,GAAkCJ,GAAlC,EAAwC;AANjD,GAAP,CAAD,EAOV,CAACP,KAAD,CAPU,CAAd;AAQH;AACD,OAAO,SAASY,mBAAT,GAA+B;AAClC,QAAMZ,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,OAAO;AAClBgB,IAAAA,IAAI,EAAE;AACFT,MAAAA,KAAK,EAAEJ,KAAK,CAACK,WAAN,GAAoBC,YAApB,GAAmCC,GAAnC,EADL;AAEFO,MAAAA,UAAU,EAAE,MAFV;AAGFC,MAAAA,SAAS,EAAE,KAHT;AAIFC,MAAAA,WAAW,EAAE;AAJX,KADY;AAOlBC,IAAAA,WAAW,EAAE;AACTb,MAAAA,KAAK,EAAEJ,KAAK,CAACK,WAAN,GAAoBa,MAApB,GAA6BX,GAA7B;AADE;AAPK,GAAP,CAAD,EAUV,CAACP,KAAD,CAVU,CAAd;AAWH;AACD,OAAO,SAASmB,cAAT,GAA0B;AAC7B,QAAMnB,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,OAAO;AAAEuB,IAAAA,IAAI,EAAE;AAAEZ,MAAAA,UAAU,EAAER,KAAK,CAACK,WAAN,GAAoBI,KAApB,GAA4BF,GAA5B;AAAd;AAAR,GAAP,CAAD,EAAsE,CAACP,KAAD,CAAtE,CAAd;AACH","sourcesContent":["import { useThematic } from '@thematic/react';\r\nimport { useMemo } from 'react';\r\nimport { HEADER_HEIGHT } from '~/styles';\r\nexport function useHeaderStyle() {\r\n const theme = useThematic();\r\n return useMemo(() => ({\r\n width: '100%',\r\n height: HEADER_HEIGHT,\r\n alignItems: 'center',\r\n color: theme.application().highContrast().hex(),\r\n background: theme.application().faint().hex(),\r\n borderBottom: `1px solid ${theme.application().lowContrast().hex()}`,\r\n }), [theme]);\r\n}\r\nexport function useIconButtonStyles() {\r\n const theme = useThematic();\r\n return useMemo(() => ({\r\n root: {\r\n color: theme.application().highContrast().hex(),\r\n marginLeft: 'auto',\r\n marginTop: '4px',\r\n marginRight: '2px',\r\n },\r\n rootHovered: {\r\n color: theme.application().accent().hex(),\r\n },\r\n }), [theme]);\r\n}\r\nexport function useModalStyles() {\r\n const theme = useThematic();\r\n return useMemo(() => ({ main: { background: theme.application().faint().hex() } }), [theme]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/36c8fd65c7d6eb546b1bcb34cb590c79.json b/node_modules/.cache/cache-loader/36c8fd65c7d6eb546b1bcb34cb590c79.json deleted file mode 100644 index 22455da..0000000 --- a/node_modules/.cache/cache-loader/36c8fd65c7d6eb546b1bcb34cb590c79.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\QuickDrop\\QuickDrop.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\QuickDrop\\QuickDrop.tsx","mtime":1631029334798},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBwYXJzZURTVlRhYmxlIH0gZnJvbSAnLi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iksICIgb3IgIiwgUmVhY3QuY3JlYXRlRWxlbWVudCgiYiIsIG51bGwsICJ0c3YiKSwgIiBmb3JtYXQiKSkgOiBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KFJlc2V0LCBudWxsLCAoYmlnVGFibGUubnVtUm93cygpID4gMCB8fCBlZGdlVGFibGUubnVtUm93cygpID4gMCkgJiYgY29tcGFjdCA/IFJlYWN0LmNyZWF0ZUVsZW1lbnQoRGVmYXVsdEJ1dHRvbiwgewogICAgdGV4dDogIkNsZWFyIGFsbCIsCiAgICBvbkNsaWNrOiBoYW5kbGVSZXNldENsaWNrCiAgfSkgOiBudWxsKSk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCgltYXJnaW46IDEwcHg7CgltYXJnaW4tYm90dG9tOiAxMHB4OwpgOwpjb25zdCBIZWxwZXJUZXh0ID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDhweDsKCXRleHQtYWxpZ246IGNlbnRlcjsKYDsKY29uc3QgRHJvcEFyZWEgPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogZmxleDsKCWZsZXgtd3JhcDogd3JhcDsKCWp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwpgOwpjb25zdCBSZXNldCA9IHN0eWxlZC5kaXZgCgltYXJnaW4tdG9wOiAxMHB4OwoJZGlzcGxheTogZmxleDsKCWp1c3RpZnktY29udGVudDogY2VudGVyOwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/QuickDrop/QuickDrop.tsx"],"names":["parseDSVTable","FileDrop","variants","FileOrigin","DefaultButton","Text","React","useCallback","styled","useArqueroAddTable","useArqueroBigTable","useArqueroEdgeTable","useClearAllData","useAddFile","useClearFiles","SQUARE","QuickDrop","dropWidthSize","dropHeightSize","compact","bigTable","edgeTable","addTable","addFile","resetTables","resetFiles","handleFileLoad","content","type","fileName","table","origin","Local","url","tableType","rows","numRows","handleResetClick","createElement","Container","DropArea","onFileLo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K;AAC/B;AACA;AACA,CAHA;AAIA,MAAMV,QAAQ,GAAGhC,MAAM,CAAC0C,GAAK;AAC7B;AACA;AACA;AACA,CAJA;AAKA,MAAMH,KAAK,GAAGvC,MAAM,CAAC0C,GAAK;AAC1B;AACA;AACA;AACA,CAJA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { parseDSVTable } from '../../api';\r\nimport { FileDrop } from '../../controls/FileDrop';\r\nimport { variants } from '../../styles';\r\nimport { FileOrigin } from '../../types';\r\nimport { DefaultButton, Text } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroAddTable, useArqueroBigTable, useArqueroEdgeTable, useClearAllData, } from '~/arquero';\r\nimport { useAddFile, useClearFiles } from '~/state';\r\nconst SQUARE = 80;\r\n/**\r\n * This component presents a quick-drop area for users to load data into the app\r\n * and have it automatically processed according to its type.\r\n * @param param0\r\n */\r\nexport const QuickDrop = ({ dropWidthSize = SQUARE, dropHeightSize = SQUARE, compact = false, }) => {\r\n const bigTable = useArqueroBigTable();\r\n const edgeTable = useArqueroEdgeTable();\r\n const addTable = useArqueroAddTable();\r\n const addFile = useAddFile();\r\n const resetTables = useClearAllData();\r\n const resetFiles = useClearFiles();\r\n const handleFileLoad = useCallback((content, type, fileName) => {\r\n const table = parseDSVTable(fileName, content);\r\n addTable(table, type);\r\n addFile({\r\n origin: FileOrigin.Local,\r\n url: fileName,\r\n tableType: type,\r\n table,\r\n rows: table.numRows(),\r\n });\r\n }, [addTable, addFile]);\r\n const handleResetClick = useCallback(() => {\r\n resetTables();\r\n resetFiles();\r\n }, [resetTables, resetFiles]);\r\n return (React.createElement(Container, null,\r\n React.createElement(DropArea, null,\r\n React.createElement(FileDrop, { onFileLoad: handleFileLoad, type: 'node', width: dropWidthSize, height: dropHeightSize, compact: compact }),\r\n React.createElement(FileDrop, { onFileLoad: handleFileLoad, type: 'edge', width: dropWidthSize, height: dropHeightSize, compact: compact }),\r\n React.createElement(FileDrop, { onFileLoad: handleFileLoad, type: 'join', width: dropWidthSize, height: dropHeightSize, compact: compact }),\r\n React.createElement(FileDrop, { onFileLoad: handleFileLoad, type: 'community', width: dropWidthSize, height: dropHeightSize, compact: compact })),\r\n !compact ? (React.createElement(HelperText, null,\r\n React.createElement(Text, { variant: variants.medium },\r\n \"Files must have a \",\r\n React.createElement(\"b\", null, \"header row\"),\r\n \", an \",\r\n React.createElement(\"b\", null, \"id\"),\r\n \" column, and use\",\r\n ' ',\r\n React.createElement(\"b\", null, \"csv\"),\r\n \" or \",\r\n React.createElement(\"b\", null, \"tsv\"),\r\n \" format\"))) : null,\r\n React.createElement(Reset, null, (bigTable.numRows() > 0 || edgeTable.numRows() > 0) && compact ? (React.createElement(DefaultButton, { text: \"Clear all\", onClick: handleResetClick })) : null)));\r\n};\r\nconst Container = styled.div `\r\n\tmargin: 10px;\r\n\tmargin-bottom: 10px;\r\n`;\r\nconst HelperText = styled.div `\r\n\tmargin-top: 8px;\r\n\ttext-align: center;\r\n`;\r\nconst DropArea = styled.div `\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n\tjustify-content: space-around;\r\n`;\r\nconst Reset = styled.div `\r\n\tmargin-top: 10px;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/374eeb9ef574d7ccf8bf6de6281fff71.json b/node_modules/.cache/cache-loader/374eeb9ef574d7ccf8bf6de6281fff71.json deleted file mode 100644 index bb891b4..0000000 --- a/node_modules/.cache/cache-loader/374eeb9ef574d7ccf8bf6de6281fff71.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\BreadcrumbPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\BreadcrumbPanel.tsx","mtime":1631029334714},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvc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hZCh7fSwgYyksIHt9LCB7CiAgICAgIG9uQ2xpY2s6IGhhbmRsZUJyZWFkY3J1bWJDbGljawogICAgfSkpOwogIH0sIFtjcnVtYnMsIGhhbmRsZUJyZWFkY3J1bWJDbGlja10pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhpZXJhcmNoeU5hdiwgewogICAgaXRlbXM6IGl0ZW1zLAogICAgaGFuZGxlQnJlYWRjcnVtYkNsaWNrOiBoYW5kbGVCcmVhZGNydW1iQ2xpY2sKICB9KTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/BreadcrumbPanel.tsx"],"names":["HierarchyNav","React","useCallback","useEffect","useMemo","ROOT_COMMUNITY_ID","useNavigationState","useResetSelectedCommunity","useSelectedCommunity","useSetNavigationState","useSetSelectedCommunity","DEFAULT_CRUMBS","key","text","BreadcrumbPanel","styles","selectedCommunity","setSelectedCommunity","resetSelectedCommunity","setNavState","navState","ids","index","findIndex","c","sliced","slice","crumbs","map","id","handleBreadcrumbClick","item","items","onClick","createElement"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,gBAA7B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,EAAwCC,OAAxC,QAAuD,OAAvD;AACA,SAASC,iBAAT,QAAkC,aAAlC;AACA,SAASC,kBAAT,EAA6BC,yBAA7B,EAAwDC,oBAAxD,EAA8EC,qBAA9E,EAAqGC,uBAArG,QAAqI,SAArI;AACA,MAAMC,cAAc,GAAG;AACnBC,EAAAA,GAAG,EAAE,MADc;AAEnBC,EAAAA,IAAI,EAAE;AAFa,CAAvB;AAIA,OAAO,MAAMC,eAAe,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAgB;AAC3C,QAAMC,iBAAiB,GAAGR,oBAAoB,EAA9C;AACA,QAAMS,oBAAoB,GAAGP,uBAAuB,EAApD;AACA,QAAMQ,sBAA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AEH;AAFM,MAAZ,CAAP;AAIH,GALoB,EAKlB,CAACH,MAAD,EAASG,qBAAT,CALkB,CAArB;AAMA,SAAQ7B,KAAK,CAACiC,aAAN,CAAoBlC,YAApB,EAAkC;AAAEgC,IAAAA,KAAK,EAAEA,KAAT;AAAgBF,IAAAA,qBAAqB,EAAEA;AAAvC,GAAlC,CAAR;AACH,CAvCM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HierarchyNav } from './HierarchyNav';\r\nimport React, { useCallback, useEffect, useMemo } from 'react';\r\nimport { ROOT_COMMUNITY_ID } from '~/constants';\r\nimport { useNavigationState, useResetSelectedCommunity, useSelectedCommunity, useSetNavigationState, useSetSelectedCommunity, } from '~/state';\r\nconst DEFAULT_CRUMBS = {\r\n key: 'root',\r\n text: 'Drilldown: Root',\r\n};\r\nexport const BreadcrumbPanel = ({ styles }) => {\r\n const selectedCommunity = useSelectedCommunity();\r\n const setSelectedCommunity = useSetSelectedCommunity();\r\n const resetSelectedCommunity = useResetSelectedCommunity();\r\n const setNavState = useSetNavigationState();\r\n const navState = useNavigationState();\r\n useEffect(() => {\r\n setNavState(ids => {\r\n const index = ids.findIndex(c => c === selectedCommunity);\r\n if (index >= 0) {\r\n const sliced = ids.slice(0, index + 1);\r\n return sliced;\r\n }\r\n return [...ids, selectedCommunity];\r\n });\r\n }, [selectedCommunity, setNavState]);\r\n const crumbs = useMemo(() => {\r\n return navState.map(id => {\r\n if (id === ROOT_COMMUNITY_ID) {\r\n return DEFAULT_CRUMBS;\r\n }\r\n return {\r\n key: id,\r\n text: id,\r\n };\r\n });\r\n }, [navState]);\r\n const handleBreadcrumbClick = useCallback(item => {\r\n item.key === 'root'\r\n ? resetSelectedCommunity()\r\n : setSelectedCommunity(item.key);\r\n }, [setSelectedCommunity, resetSelectedCommunity]);\r\n const items = useMemo(() => {\r\n return crumbs.map(c => ({\r\n ...c,\r\n onClick: handleBreadcrumbClick,\r\n }));\r\n }, [crumbs, handleBreadcrumbClick]);\r\n return (React.createElement(HierarchyNav, { items: items, handleBreadcrumbClick: handleBreadcrumbClick }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/39b48799797fa0bc47bb0eab81477259.json b/node_modules/.cache/cache-loader/39b48799797fa0bc47bb0eab81477259.json deleted file mode 100644 index c41cc0c..0000000 --- a/node_modules/.cache/cache-loader/39b48799797fa0bc47bb0eab81477259.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\GraphViewer\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\GraphViewer\\hooks\\index.ts","mtime":1620403249320},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3Bvc2l0aW9ucyc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/GraphViewer/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,aAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './positions';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/3ec7362360268352b00f0ed9edf4e772.json b/node_modules/.cache/cache-loader/3ec7362360268352b00f0ed9edf4e772.json deleted file mode 100644 index d216ab9..0000000 --- a/node_modules/.cache/cache-loader/3ec7362360268352b00f0ed9edf4e772.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeOpacityControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeOpacityControlsPanel.tsx","mtime":1631029334723},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBFZGdlT3BhY2l0eUNvbnRyb2xzIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vY29udHJvbHMvRWRnZU9wYWNpdHlDb250cm9scyc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgRWRnZU9wYWNpdHlDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoRWRnZU9wYWNpdHlDb250cm9scywgbnVsbCkpOwp9Owpjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmAKCW1hcmdpbjogOHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/EdgeOpacityControlsPanel.tsx"],"names":["EdgeOpacityControls","React","styled","EdgeOpacityControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,QAAoC,6CAApC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,wBAAwB,GAAG,MAAM;AAC1C,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,mBAApB,EAAyC,IAAzC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { EdgeOpacityControls } from '../../../../../controls/EdgeOpacityControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const EdgeOpacityControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(EdgeOpacityControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/3eee2aece377882ea5f3e955091acf40.json b/node_modules/.cache/cache-loader/3eee2aece377882ea5f3e955091acf40.json deleted file mode 100644 index e85d4bb..0000000 --- a/node_modules/.cache/cache-loader/3eee2aece377882ea5f3e955091acf40.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\index.tsx","mtime":1620403249152},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NvbW1hbmRCYXInOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,cAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './CommandBar';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/3f589f45f41f0d1ee6c720c1acf86ec3.json b/node_modules/.cache/cache-loader/3f589f45f41f0d1ee6c720c1acf86ec3.json deleted file mode 100644 index 5486864..0000000 --- a/node_modules/.cache/cache-loader/3f589f45f41f0d1ee6c720c1acf86ec3.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\ArqueroTable.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\ArqueroTable.tsx","mtime":1620403249110},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmI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":["React","useMemo","ArqueroTable","table","options","style","hideHeaders","html","opts","thead","toHTML","createElement","dangerouslySetInnerHTML","__html"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,OAAT;AAAkBC,EAAAA,KAAlB;AAAyBC,EAAAA,WAAW,GAAG;AAAvC,CAAD,KAAqD;AAC7E,QAAMC,IAAI,GAAGN,OAAO,CAAC,MAAM;AACvB,UAAMO,IAAI,qBAAQJ,OAAR,CAAV;;AACA,QAAIE,WAAJ,EAAiB;AACbE,MAAAA,IAAI,CAACH,KAAL,mCACOG,IAAI,CAACH,KADZ;AAEII,QAAAA,KAAK,EAAE;AAFX;AAIH;;AACD,WAAON,KAAK,CAACO,MAAN,CAAaF,IAAb,CAAP;AACH,GATmB,EASjB,CAACL,KAAD,EAAQC,OAAR,EAAiBE,WAAjB,CATiB,CAApB;AAUA,SAAON,KAAK,CAACW,aAAN,CAAoB,KAApB,EAA2B;AAAEN,IAAAA,KAAK,EAAEA,KAAT;AAAgBO,IAAAA,uBAAuB,EAAE;AAAEC,MAAAA,MAAM,EAAEN;AAAV;AAAzC,GAA3B,CAAP;AACH,CAZM","sourcesContent":["import React, { useMemo } from 'react';\r\n/**\r\n * Straightforward React wrapper to render an Arquero table.\r\n * Thinks directly to toHTML method, setting as innerHTML\r\n */\r\nexport const ArqueroTable = ({ table, options, style, hideHeaders = false, }) => {\r\n const html = useMemo(() => {\r\n const opts = { ...options };\r\n if (hideHeaders) {\r\n opts.style = {\r\n ...opts.style,\r\n thead: 'display:none;',\r\n };\r\n }\r\n return table.toHTML(opts);\r\n }, [table, options, hideHeaders]);\r\n return React.createElement(\"div\", { style: style, dangerouslySetInnerHTML: { __html: html } });\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/404ccd058c752dbedcd8c251ca32154a.json b/node_modules/.cache/cache-loader/404ccd058c752dbedcd8c251ca32154a.json deleted file mode 100644 index ad7aa57..0000000 --- a/node_modules/.cache/cache-loader/404ccd058c752dbedcd8c251ca32154a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeColorControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeColorControlsPanel.tsx","mtime":1631029334721},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBFZGdlQ29sb3JDb250cm9scyB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL2NvbnRyb2xzL0VkZ2VDb2xvckNvbnRyb2xzJzsKaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmV4cG9ydCBjb25zdCBFZGdlQ29sb3JDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoRWRnZUNvbG9yQ29udHJvbHMsIG51bGwpKTsKfTsKY29uc3QgQ29udGVudCA9IHN0eWxlZC5kaXZgCgltYXJnaW46IDhweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/EdgeColorControlsPanel.tsx"],"names":["EdgeColorControls","React","styled","EdgeColorControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,2CAAlC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,sBAAsB,GAAG,MAAM;AACxC,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,iBAApB,EAAuC,IAAvC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { EdgeColorControls } from '../../../../../controls/EdgeColorControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const EdgeColorControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(EdgeColorControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/404d54960af98a188af96e3d169f48d4.json b/node_modules/.cache/cache-loader/404d54960af98a188af96e3d169f48d4.json deleted file mode 100644 index 619c091..0000000 --- a/node_modules/.cache/cache-loader/404d54960af98a188af96e3d169f48d4.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\HierarchyBrowserPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\HierarchyBrowserPanel.tsx","mtime":1631029334789},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBST09UX0NPTU1VTklUWV9JRCB9IGZyb20gJy4uLy4uL2NvbnN0YW50cyc7CmltcG9ydCB7IHVzZUNvbW11bml0eUxpc3QsIHVzZUVudGl0eUNhbGxiYWNrLCB1c2VOZWlnaGJvckNhbGxiYWNrIH0gZnJvbSAnLi9ob29rcyc7CmltcG9ydCB7IEhpZXJhcmNoeUJyb3dzZXIgfSBmcm9tICdAZXNzZXgtanMtdG9vbGtpdC9oaWVyYXJjaHktYnJvd3Nlcic7CmltcG9ydCBSZWFjdCwgeyBtZW1vLCB1c2VNZW1vLCB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmltcG9ydCB7IGZpbmROb2Rlc1RhYmxlRm9yUGFyZW50IH0gZnJvbSAnfi9hcnF1ZXJvJzsKaW1wb3J0IHsgdXNlRWRnZVRhYmxlLCB1c2VHcm91cGVkQnlDb21tdW5pdHlUYWJsZSwgdXNlR3JvdXBlZEJ5UGFyZW50VGFibGUsIHVzZUJyb3dzZXJDb2x1bW5zIH0gZnJvbSAnfi9zdGF0ZSc7CmNvbnN0IGNhcmRPdmVydmlldyA9IHsKICByb290OiB7CiAgICBib3JkZXJSYWRpdXM6ICcwcHgnCiAgfSwKICBoZWFkZXJUZXh0OiAnbWVkaXVtUGx1cycsCiAgc3ViSGVhZGVyVGV4dDogJ3hTbWFsbCcKfTsKY29uc3QgdGFibGUgPSB7CiAgaGV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Um9vdAoKZnVuY3Rpb24gZmluZFBhcmVudElkKHBhcmFtcywgY29tbXVuaXRpZXMpIHsKICBpZiAoY29tbXVuaXRpZXMubGVuZ3RoID09PSAxKSB7CiAgICByZXR1cm4gUk9PVF9DT01NVU5JVFlfSUQ7CiAgfQoKICBjb25zdCBjdXJyZW50SW5kZXggPSBjb21tdW5pdGllcy5maW5kSW5kZXgoYyA9PiBjLmNvbW11bml0eUlkID09PSBwYXJhbXMuY29tbXVuaXR5SWQpOwogIGNvbnN0IHBhcmVudEluZGV4ID0gY3VycmVudEluZGV4ICsgMTsKICBjb25zdCBpZCA9IGNvbW11bml0aWVzW3BhcmVudEluZGV4XS5jb21tdW5pdHlJZDsKICByZXR1cm4gaWQgPT09ICdSb290JyA/IFJPT1RfQ09NTVVOSVRZX0lEIDogaWQ7Cn0KCmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/HierarchyBrowserPanel/HierarchyBrowserPanel.tsx"],"names":["ROOT_COMMUNITY_ID","useCommunityList","useEntityCallback","useNeighborCallback","HierarchyBrowser","React","memo","useMemo","useCallback","styled","findNodesTableForParent","useEdgeTable","useGroupedByCommunityTable","useGroupedByParentTable","useBrowserColumns","cardOverview","root","borderRadius","headerText","subHeaderText","table","tableItemsText","HierarchyBrowserPanel","browserColumns","byParent","edges","byCommunity","communities","handleEntityCallback","handleNeighborCallback","attrArray","Array","from","loadNeighborsAsync","params","pid","findParentId","nodeTable","loadEntitiesAsync","settings","visibleColumns","controls","showLevel","showFilter","styles","neighbors","numCols","undefined","createElement","Container","length","entities","currentIndex","findIndex","c","communityId","parentIndex","id","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,iBAAlC;AACA,SAASC,gBAAT,EAA2BC,iBAA3B,EAA8CC,mBAA9C,QAA0E,SAA1E;AACA,SAASC,gBAAT,QAAkC,qCAAlC;AACA,OAAOC,KAAP,IAAgBC,I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C1B,WAAOlD,iBAAP;AACH;;AACD,QAAMoD,YAAY,GAAGzB,WAAW,CAAC0B,SAAZ,CAAsBC,CAAC,IAAIA,CAAC,CAACC,WAAF,KAAkBrB,MAAM,CAACqB,WAApD,CAArB;AACA,QAAMC,WAAW,GAAGJ,YAAY,GAAG,CAAnC;AACA,QAAMK,EAAE,GAAG9B,WAAW,CAAC6B,WAAD,CAAX,CAAyBD,WAApC;AACA,SAAOE,EAAE,KAAK,MAAP,GAAgBzD,iBAAhB,GAAoCyD,EAA3C;AACH;;AACD,MAAMR,SAAS,GAAGxC,MAAM,CAACiD,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../../constants';\r\nimport { useCommunityList, useEntityCallback, useNeighborCallback, } from './hooks';\r\nimport { HierarchyBrowser, } from '@essex-js-toolkit/hierarchy-browser';\r\nimport React, { memo, useMemo, useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { findNodesTableForParent } from '~/arquero';\r\nimport { useEdgeTable, useGroupedByCommunityTable, useGroupedByParentTable, useBrowserColumns, } from '~/state';\r\nconst cardOverview = {\r\n root: { borderRadius: '0px' },\r\n headerText: 'mediumPlus',\r\n subHeaderText: 'xSmall',\r\n};\r\nconst table = {\r\n headerText: 'medium',\r\n subHeaderText: 'xSmall',\r\n tableItemsText: 'small',\r\n};\r\nexport const HierarchyBrowserPanel = memo(function HierarchyBrowserPanel() {\r\n const [browserColumns] = useBrowserColumns();\r\n const byParent = useGroupedByParentTable();\r\n const edges = useEdgeTable();\r\n const byCommunity = useGroupedByCommunityTable();\r\n const communities = useCommunityList();\r\n const handleEntityCallback = useEntityCallback();\r\n const handleNeighborCallback = useNeighborCallback();\r\n const attrArray = useMemo(() => Array.from(browserColumns), [browserColumns]);\r\n const loadNeighborsAsync = useCallback((params) => {\r\n const pid = findParentId(params, communities);\r\n const nodeTable = findNodesTableForParent(pid, byParent);\r\n return handleNeighborCallback(params, nodeTable, edges);\r\n }, [edges, handleNeighborCallback, communities, byParent]);\r\n const loadEntitiesAsync = useCallback((params) => handleEntityCallback(params, byParent, byCommunity), [byParent, byCommunity, handleEntityCallback]);\r\n const settings = useMemo(() => ({\r\n visibleColumns: attrArray,\r\n controls: { showLevel: false, showFilter: false },\r\n styles: { cardOverview, table },\r\n }), [attrArray]);\r\n const neighbors = useMemo(() => edges.numCols() > 0\r\n ? loadNeighborsAsync\r\n : undefined, [edges, loadNeighborsAsync]);\r\n return (React.createElement(Container, null, communities.length > 0 ? (React.createElement(HierarchyBrowser, { communities: communities, entities: loadEntitiesAsync, neighbors: neighbors, settings: settings })) : null));\r\n});\r\n// get the raw community id for table filtering. note special case for Root\r\nfunction findParentId(params, communities) {\r\n if (communities.length === 1) {\r\n return ROOT_COMMUNITY_ID;\r\n }\r\n const currentIndex = communities.findIndex(c => c.communityId === params.communityId);\r\n const parentIndex = currentIndex + 1;\r\n const id = communities[parentIndex].communityId;\r\n return id === 'Root' ? ROOT_COMMUNITY_ID : id;\r\n}\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/41bccdc5e12f091006cc3bc7979dd3c5.json b/node_modules/.cache/cache-loader/41bccdc5e12f091006cc3bc7979dd3c5.json deleted file mode 100644 index 3f48e75..0000000 --- a/node_modules/.cache/cache-loader/41bccdc5e12f091006cc3bc7979dd3c5.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeHoverHeader.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeHoverHeader.tsx","mtime":1624559748190},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QsIHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmltcG9ydCB7IHVzZUhvdmVyZWROb2RlLCB1c2VTZWxlY3RlZENvbW11bml0eSB9IGZyb20gJ34vc3RhdGUnOwppbXBvcnQgeyB1c2VWaXNpYmxlTm9kZU1hcCB9IGZyb20gJ34vc3RhdGUvY2FjaGVzJzsKZXhwb3J0IGNvbnN0IE5vZGVIb3ZlckhlYW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S5taWRDb250cmFzdCgpLmhleCgpfTsKYDsKY29uc3QgRml4ZWQgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeHoverHeader.tsx"],"names":["React","useMemo","styled","useHoveredNode","useSelectedCommunity","useVisibleNodeMap","NodeHoverHeader","nodeId","cid","nodeMap","render","id","createElement","Unset","node","get","label","Fixed","Container","Label","div","theme","application","midContrast","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,cAAT,EAAyBC,oBAAzB,QAAqD,SAArD;AACA,SAASC,iBAAT,QAAkC,gBAAlC;AACA,OAAO,MAAMC,eAAe,GAAG,MAAM;AACjC,QAAMC,MAAM,GAAGJ,cAAc,EAA7B;AACA,QAAMK,GAAG,GAAGJ,oBAAoB,EAAhC;AACA,QAAMK,OAAO,GAAGJ,iBAAiB,CAACG,GAAD,CAAjC;AACA,QAAME,MAAM,GAAGT,OAAO,CAAC,MAAM;AACzB,UAAMU,EAAE,GAAGJ,MAAX;;AACA,QAAII,EAAE,KAAK,IAAP,IAAe,CAACA,EAApB,EAAwB;AACpB,aAAOX,KAAK,CAACY,aAAN,CAAoBC,KAApB,EAA2B,IAA3B,EAAiC,QAAjC,CAAP;AACH;;AACD,UAAMC,IAAI,GAAGL,OAAO,CAACM,GAAR,CAAYJ,EAAZ,CAAb;AACA,UAAMK,KAAK,GAAGF,IAAI,IAAIA,IAAI,CAACC,GAAL,CAAS,YAAT,CAAtB;AACA,WAAOf,KAAK,CAACY,aAAN,CAAoBK,KAApB,EAA2B,IAA3B,EAAiCD,KAAK,IAAIT,MAA1C,CAAP;AACH,GARqB,EAQnB,CAACA,MAAD,EAASE,OAAT,CARmB,CAAtB;AASA,SAAQT,KAAK,CAACY,aAAN,CAAoBM,SAApB,EAA+B,IAA/B,EACJlB,KAAK,CAACY,aAAN,CAAoBO,KAApB,EAA2B,IAA3B,EAAiC,eAAjC,CADI,EAEJT,MAFI,CAAR;AAGH,CAhBM;AAiBP,MAAMQ,SAAS,GAAGhB,MAAM,CAACkB,GAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,CANA;AAOA,MAAMD,KAAK,GAAGjB,MAAM,CAACkB,GAAK;AAC1B;AACA,CAFA;AAGA,MAAMP,KAAK,GAAGX,MAAM,CAACkB,GAAK;AAC1B,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AACjE,CAFA;AAGA,MAAMP,KAAK,GAAGf,MAAM,CAACkB,GAAK,EAA1B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React, { useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useHoveredNode, useSelectedCommunity } from '~/state';\r\nimport { useVisibleNodeMap } from '~/state/caches';\r\nexport const NodeHoverHeader = () => {\r\n const nodeId = useHoveredNode();\r\n const cid = useSelectedCommunity();\r\n const nodeMap = useVisibleNodeMap(cid);\r\n const render = useMemo(() => {\r\n const id = nodeId;\r\n if (id === null || !id) {\r\n return React.createElement(Unset, null, \"\\u2014\");\r\n }\r\n const node = nodeMap.get(id);\r\n const label = node && node.get('node.label');\r\n return React.createElement(Fixed, null, label || nodeId);\r\n }, [nodeId, nodeMap]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Label, null, \"Node details:\"),\r\n render));\r\n};\r\nconst Container = styled.div `\r\n\tmargin: 2px;\r\n\tmargin-left: 4px;\r\n\tfont-size: 0.8em;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n`;\r\nconst Label = styled.div `\r\n\tmargin-right: 4px;\r\n`;\r\nconst Unset = styled.div `\r\n\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n`;\r\nconst Fixed = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/41f222a2bde60cbbb280c80d36e38484.json b/node_modules/.cache/cache-loader/41f222a2bde60cbbb280c80d36e38484.json deleted file mode 100644 index f37dea5..0000000 --- a/node_modules/.cache/cache-loader/41f222a2bde60cbbb280c80d36e38484.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\index.tsx","mtime":1620403249467},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0hlYWRlckxlZ2VuZCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,gBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './HeaderLegend';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4229755410ecdc78d73863c4818fcfee.json b/node_modules/.cache/cache-loader/4229755410ecdc78d73863c4818fcfee.json deleted file mode 100644 index 6df1c37..0000000 --- a/node_modules/.cache/cache-loader/4229755410ecdc78d73863c4818fcfee.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Circle.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Circle.tsx","mtime":1631029334760},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VIb3ZlcmVkQ29sb3IgfSBmcm9tICcuLi9ob29rcyc7CmltcG9ydCB7IGVtcHR5LCBibGFuaywgemVybyB9IGZyb20gJy4vY29tbW9uL2RlZmF1bHRQYXJhbXMnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgQ2lyY2xlID0gKHsKICBjb21tdW5pdHksCiAgY29sdW1uLAogIGhvdmVyZWQKfSkgPT4gewogIGNvbnN0IHsKICAgIHNpemVTY2FsZSA9IHplcm8sCiAgICBmaWxsU2NhbGUgPSBibGFuaywKICAgIGFjY2Vzc29yID0gZW1wdHkKICB9ID0gY29sdW1uOwogIGNvbnN0IHNpemUgPSBzaXplU2NhbGUoY29tbXVuaXR5KSB8fCAwOwogIGNvbnN0IHZhbHVlID0gYWNjZXNzb3IoY29tbXVuaXR5KTsKICBjb25zdCBoY29sb3IgPSB1c2VIb3ZlcmVkQ29sb3IoKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChSZWFjdC5GcmFnbWVudCwgbnVsbCwgdmFsdWUsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoInN2ZyIsIHsKICAgIHdpZHRoOiBzaXplICogMiwKICAgIGhlaWdodDogc2l6ZSAqIDIKICB9LCBSZWFjdC5jcmVhdGVFbGVtZW50KCJjaXJjbGUiLCB7CiAgICBjeDogc2l6ZSwKICAgIGN5OiBzaXplLAogICAgcjogc2l6ZSwKICAgIGZpbGw6IGhvdmVyZWQgPyBoY29sb3IgOiBmaWxsU2NhbGUoY29tbXVuaXR5KS5oZXgoKQogIH0pKSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/Circle.tsx"],"names":["useHoveredColor","empty","blank","zero","React","Circle","community","column","hovered","sizeScale","fillScale","accessor","size","value","hcolor","createElement","Fragment","width","height","cx","cy","r","fill","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,eAAT,QAAgC,UAAhC;AACA,SAASC,KAAT,EAAgBC,KAAhB,EAAuBC,IAAvB,QAAmC,wBAAnC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAO,MAAMC,MAAM,GAAG,CAAC;AAAEC,EAAAA,SAAF;AAAaC,EAAAA,MAAb;AAAqBC,EAAAA;AAArB,CAAD,KAAqC;AACvD,QAAM;AAAEC,IAAAA,SAAS,GAAGN,IAAd;AAAoBO,IAAAA,SAAS,GAAGR,KAAhC;AAAuCS,IAAAA,QAAQ,GAAGV;AAAlD,MAA4DM,MAAlE;AACA,QAAMK,IAAI,GAAGH,SAAS,CAACH,SAAD,CAAT,IAAwB,CAArC;AACA,QAAMO,KAAK,GAAGF,QAAQ,CAACL,SAAD,CAAtB;AACA,QAAMQ,MAAM,GAAGd,eAAe,EAA9B;AACA,SAAQI,KAAK,CAACW,aAAN,CAAoBX,KAAK,CAACY,QAA1B,EAAoC,IAApC,EACJH,KADI,EAEJT,KAAK,CAACW,aAAN,CAAoB,KAApB,EAA2B;AAAEE,IAAAA,KAAK,EAAEL,IAAI,GAAG,CAAhB;AAAmBM,IAAAA,MAAM,EAAEN,IAAI,GAAG;AAAlC,GAA3B,EACIR,KAAK,CAACW,aAAN,CAAoB,QAApB,EAA8B;AAAEI,IAAAA,EAAE,EAAEP,IAAN;AAAYQ,IAAAA,EAAE,EAAER,IAAhB;AAAsBS,IAAAA,CAAC,EAAET,IAAzB;AAA+BU,IAAAA,IAAI,EAAEd,OAAO,GAAGM,MAAH,GAAYJ,SAAS,CAACJ,SAAD,CAAT,CAAqBiB,GAArB;AAAxD,GAA9B,CADJ,CAFI,CAAR;AAIH,CATM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useHoveredColor } from '../hooks';\r\nimport { empty, blank, zero } from './common/defaultParams';\r\nimport React from 'react';\r\nexport const Circle = ({ community, column, hovered, }) => {\r\n const { sizeScale = zero, fillScale = blank, accessor = empty } = column;\r\n const size = sizeScale(community) || 0;\r\n const value = accessor(community);\r\n const hcolor = useHoveredColor();\r\n return (React.createElement(React.Fragment, null,\r\n value,\r\n React.createElement(\"svg\", { width: size * 2, height: size * 2 },\r\n React.createElement(\"circle\", { cx: size, cy: size, r: size, fill: hovered ? hcolor : fillScale(community).hex() }))));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/42467b6446d635ffad2df5060e841855.json b/node_modules/.cache/cache-loader/42467b6446d635ffad2df5060e841855.json deleted file mode 100644 index 50bfb3a..0000000 --- a/node_modules/.cache/cache-loader/42467b6446d635ffad2df5060e841855.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\settings.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\settings.ts","mtime":1631029334891},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBwYXJzZVBhcmFtcyB9IGZyb20gJy4uL3V0aWxzL3F1ZXJ5JzsKaW1wb3J0IHsgbG9hZCwgVGhlbWVWYXJpYW50IH0gZnJvbSAnQHRoZW1hdGljL2NvcmUnOwppbXBvcnQgeyBhdG9tLCBzZWxlY3RvciwgdXNlUmVjb2lsU3RhdGUsIHVzZVJlY29pbFZhbHVlIH0gZnJvbSAncmVjb2lsJzsgLy8gVE9ETzogdGhlIGJ1bmRsZWQgc2V0dGluZ3Mgb2JqZWN0IGlzIGNvbnZlbmllbnQsIGJ1dCB0aGlzIHdpbGwgY2F1c2UgYWxsIHBlcmYgc3R1ZmYgdG8gY2FzY2FkZSBvbiBjaGFuZ2UKLy8gd2UgY2FuIHV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AoewogICAgZ2V0CiAgfSkgPT4gewogICAgY29uc3Qgc2V0dGluZ3MgPSBnZXQoc2V0dGluZ3NTdGF0ZSk7CiAgICBjb25zdCB0aGVtZSA9IGxvYWQoewogICAgICB2YXJpYW50OiBzZXR0aW5ncy5kYXJrTW9kZSA/IFRoZW1lVmFyaWFudC5EYXJrIDogVGhlbWVWYXJpYW50LkxpZ2h0CiAgICB9KTsKICAgIHJldHVybiB0aGVtZTsKICB9Cn0pOwpleHBvcnQgZnVuY3Rpb24gdXNlU2V0dGluZ3MoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFN0YXRlKHNldHRpbmdzU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VTZXR0aW5nc0dyb3VwcygpIHsKICByZXR1cm4gdXNlUmVjb2lsVmFsdWUoc2V0dGluZ3NHcm91cHNTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUJyb3dzZXJDb2x1bW5zKCkgewogIHJldHVybiB1c2VSZWNvaWxTdGF0ZSh2aXNpYmxlQnJvd3NlclN0YXRlKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlVGhlbWUoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFZhbHVlKHRoZW1lU3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/settings.ts"],"names":["parseParams","load","ThemeVariant","atom","selector","useRecoilState","useRecoilValue","DEFAULT_SETTINGS","showPreviewMap","showMiniMap","miniMapNodeRadius","hideEdgesWhileMoving","darkMode","subsampleMiniMap","maxMiniMapNodes","subsampleEdges","maxEdges","subsampleNodes","maxNodes","SETTINGS_GROUPS","label","keys","FIXED_COLUMNS","Set","settingsState","key","default","settingsGroupsState","visibleBrowserColumns","visibleBrowserState","get","set","newValue","themeState","dangerouslyAllowMutability","settings","theme","variant","Dark","Light","useSettings","useSettingsGroups","useBrowserColumns","useTheme"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,gBAA5B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ChC,SAAOnC,cAAc,CAACqB,mBAAD,CAArB;AACH;AACD,OAAO,SAASe,iBAAT,GAA6B;AAChC,SAAOrC,cAAc,CAACwB,mBAAD,CAArB;AACH;AACD,OAAO,SAASc,QAAT,GAAoB;AACvB,SAAOrC,cAAc,CAAC2B,UAAD,CAArB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { parseParams } from '../utils/query';\r\nimport { load, ThemeVariant } from '@thematic/core';\r\nimport { atom, selector, useRecoilState, useRecoilValue } from 'recoil';\r\n// TODO: the bundled settings object is convenient, but this will cause all perf stuff to cascade on change\r\n// we can use an atomFamily to separate these into independent dependencies\r\nconst DEFAULT_SETTINGS = parseParams({\r\n showPreviewMap: true,\r\n showMiniMap: true,\r\n miniMapNodeRadius: 2,\r\n hideEdgesWhileMoving: false,\r\n // TODO: we default this to dark mode, but should try checking user OS setting\r\n // we need to spruce up the light mode design for this a little bit though\r\n darkMode: true,\r\n subsampleMiniMap: true,\r\n maxMiniMapNodes: 30000,\r\n subsampleEdges: true,\r\n maxEdges: 50000,\r\n subsampleNodes: true,\r\n maxNodes: 500000,\r\n});\r\nconst SETTINGS_GROUPS = [\r\n {\r\n label: 'Main map',\r\n keys: ['subsampleNodes', 'maxNodes'],\r\n },\r\n {\r\n label: 'Mini map',\r\n keys: [\r\n 'showMiniMap',\r\n 'subsampleMiniMap',\r\n 'maxMiniMapNodes',\r\n 'miniMapNodeRadius',\r\n ],\r\n },\r\n {\r\n label: 'Preview map',\r\n keys: ['showPreviewMap'],\r\n },\r\n {\r\n label: 'Edges',\r\n keys: ['hideEdgesWhileMoving', 'subsampleEdges', 'maxEdges'],\r\n },\r\n];\r\nconst FIXED_COLUMNS = new Set(['node.label', 'node.x', 'node.y', 'node.d']);\r\nexport const settingsState = atom({\r\n key: 'settings',\r\n default: DEFAULT_SETTINGS,\r\n});\r\nconst settingsGroupsState = atom({\r\n key: 'settings-groups',\r\n default: SETTINGS_GROUPS,\r\n});\r\nconst visibleBrowserColumns = atom({\r\n key: 'browser-columns',\r\n default: FIXED_COLUMNS,\r\n});\r\nconst visibleBrowserState = selector({\r\n key: 'browser-column-state',\r\n get: ({ get }) => {\r\n return get(visibleBrowserColumns);\r\n },\r\n set: ({ set }, newValue) => {\r\n // TODO: use selectorFamily and do the merge here with a partial + overlay?\r\n set(visibleBrowserColumns, newValue);\r\n },\r\n});\r\nexport const themeState = selector({\r\n key: 'theme',\r\n dangerouslyAllowMutability: true,\r\n get: ({ get }) => {\r\n const settings = get(settingsState);\r\n const theme = load({\r\n variant: settings.darkMode ? ThemeVariant.Dark : ThemeVariant.Light,\r\n });\r\n return theme;\r\n },\r\n});\r\nexport function useSettings() {\r\n return useRecoilState(settingsState);\r\n}\r\nexport function useSettingsGroups() {\r\n return useRecoilValue(settingsGroupsState);\r\n}\r\nexport function useBrowserColumns() {\r\n return useRecoilState(visibleBrowserState);\r\n}\r\nexport function useTheme() {\r\n return useRecoilValue(themeState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4317c3f1fad1c1bce4a5bc9bcc91c297.json b/node_modules/.cache/cache-loader/4317c3f1fad1c1bce4a5bc9bcc91c297.json deleted file mode 100644 index 3af5ecf..0000000 --- a/node_modules/.cache/cache-loader/4317c3f1fad1c1bce4a5bc9bcc91c297.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useLayoutStyle.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useLayoutStyle.ts","mtime":1624559748218},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgeyBIRUFERVJfSEVJR0hUIH0gZnJvbSAnfi9zdHlsZXMnOwpleHBvcnQgZnVuY3Rpb24gdXNlTGF5b3V0U3R5bGUobGVmdFBhbmVsV2lkdGgsIHJpZ2h0UGFuZWxXaWR0aCwgaGVpZ2h0LCBncmFwaEhlaWdodCwgZ3JhcGhGaWx0ZXIpIHsKICBjb25zdCBsZWZ0U2lkZVBhbmVsU3R5bGUgPSB1c2VNZW1vKCgpID0+ICh7CiAgICBoZWlnaHQsCiAgICB3aWR0aDogbGVmdFBhbmVsV2lkdGgsCiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJywKICAgIGxlZnQ6ICcwcHgnLAogICAgdG9wOiBIRUFERVJfSEVJR0hUCiAgfSksIFtsZWZ0UGFuZWxXaWR0aCwgaGVpZ2h0XSk7IC8vIGFkanVzdGFibGUgc2l6ZSBwYW5lbAoKICBjb25zdCByaWdodFNpZGVQYW5lbFN0eWxlID0gdXNlTWVtbygoKSA9PiAoewogICAgaGVpZ2h0OiBncmFwaEhlaWdodCwKICAgIG1heEhlaWdodDogZ3JhcGhIZWlnaHQsCiAgICB3aWR0aDogcmlnaHRQYW5lbFdpZHRoLAogICAgcG9zaXRpb246ICdhYnNvbHV0ZScsCiAgICByaWdodDogJzBweCcsCiAgICB0b3A6ICcwcHgnLAogICAgb3ZlcmZsb3c6ICdhdXRvJwogIH0pLCBbcmlnaHRQYW5lbFdpZHRoLCBncmFwaEhlaWdodF0pOwogIGNvbnN0IGdyYXBoQ29udGFpbmVyU3R5bGUgPSB1c2VNZW1vKCgpID0+ICh7CiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJywKICAgIGxlZnQ6IGxlZnRQYW5lbFdpZHRoICsgNiwKICAgIHRvcDogMCwKICAgIGJvcmRlcjogJzFweCBzb2xpZCB0cmFuc3BhcmVudCcKICB9KSwgW2xlZnRQYW5lbFdpZHRoXSk7CiAgY29uc3QgZ3JhcGhTdHlsZSA9IHVzZU1lbW8oKCkgPT4gKHsKICAgIGhlaWdodDogZ3JhcGhIZWlnaHQsCiAgICBmaWx0ZXI6IGdyYXBoRmlsdGVyCiAgfSksIFtncmFwaEhlaWdodCwgZ3JhcGhGaWx0ZXJdKTsKICByZXR1cm4gewogICAgZ3JhcGhDb250YWluZXJTdHlsZSwKICAgIGdyYXBoU3R5bGUsCiAgICByaWdodFNpZGVQYW5lbFN0eWxlLAogICAgbGVmdFNpZGVQYW5lbFN0eWxlCiAgfTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/hooks/useLayoutStyle.ts"],"names":["useMemo","HEADER_HEIGHT","useLayoutStyle","leftPanelWidth","rightPanelWidth","height","graphHeight","graphFilter","leftSidePanelStyle","width","position","left","top","rightSidePanelStyle","maxHeight","right","overflow","graphContainerStyle","border","graphStyle","filter"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,OAAO,SAASC,cAAT,CAAwBC,cAAxB,EAAwCC,eAAxC,EAAyDC,MAAzD,EAAiEC,WAAjE,EAA8EC,WAA9E,EAA2F;AAC9F,QAAMC,kBAAkB,GAAGR,OAAO,CAAC,OAAO;AACtCK,IAAAA,MADsC;AAEtCI,IAAAA,KAAK,EAAEN,cAF+B;AAGtCO,IAAAA,QAAQ,EAAE,UAH4B;AAItCC,IAAAA,IAAI,EAAE,KAJgC;AAKtCC,IAAAA,GAAG,EAAEX;AALiC,GAAP,CAAD,EAM9B,CAACE,cAAD,EAAiBE,MAAjB,CAN8B,CAAlC,CAD8F,CAQ9F;;AACA,QAAMQ,mBAAmB,GAAGb,OAAO,CAAC,OAAO;AACvCK,IAAAA,MAAM,EAAEC,WAD+B;AAEvCQ,IAAAA,SAAS,EAAER,WAF4B;AAGvCG,IAAAA,KAAK,EAAEL,eAHgC;AAIvCM,IAAAA,QAAQ,EAAE,UAJ6B;AAKvCK,IAAAA,KAAK,EAAE,KALgC;AAMvCH,IAAAA,GAAG,EAAE,KANkC;AAOvCI,IAAAA,QAAQ,EAAE;AAP6B,GAAP,CAAD,EAQ/B,CAACZ,eAAD,EAAkBE,WAAlB,CAR+B,CAAnC;AASA,QAAMW,mBAAmB,GAAGjB,OAAO,CAAC,OAAO;AACvCU,IAAAA,QAAQ,EAAE,UAD6B;AAEvCC,IAAAA,IAAI,EAAER,cAAc,GAAG,CAFgB;AAGvCS,IAAAA,GAAG,EAAE,CAHkC;AAIvCM,IAAAA,MAAM,EAAE;AAJ+B,GAAP,CAAD,EAK/B,CAACf,cAAD,CAL+B,CAAnC;AAMA,QAAMgB,UAAU,GAAGnB,OAAO,CAAC,OAAO;AAC9BK,IAAAA,MAAM,EAAEC,WADsB;AAE9Bc,IAAAA,MAAM,EAAEb;AAFsB,GAAP,CAAD,EAGtB,CAACD,WAAD,EAAcC,WAAd,CAHsB,CAA1B;AAIA,SAAO;AACHU,IAAAA,mBADG;AAEHE,IAAAA,UAFG;AAGHN,IAAAA,mBAHG;AAIHL,IAAAA;AAJG,GAAP;AAMH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useMemo } from 'react';\r\nimport { HEADER_HEIGHT } from '~/styles';\r\nexport function useLayoutStyle(leftPanelWidth, rightPanelWidth, height, graphHeight, graphFilter) {\r\n const leftSidePanelStyle = useMemo(() => ({\r\n height,\r\n width: leftPanelWidth,\r\n position: 'absolute',\r\n left: '0px',\r\n top: HEADER_HEIGHT,\r\n }), [leftPanelWidth, height]);\r\n // adjustable size panel\r\n const rightSidePanelStyle = useMemo(() => ({\r\n height: graphHeight,\r\n maxHeight: graphHeight,\r\n width: rightPanelWidth,\r\n position: 'absolute',\r\n right: '0px',\r\n top: '0px',\r\n overflow: 'auto',\r\n }), [rightPanelWidth, graphHeight]);\r\n const graphContainerStyle = useMemo(() => ({\r\n position: 'absolute',\r\n left: leftPanelWidth + 6,\r\n top: 0,\r\n border: '1px solid transparent',\r\n }), [leftPanelWidth]);\r\n const graphStyle = useMemo(() => ({\r\n height: graphHeight,\r\n filter: graphFilter,\r\n }), [graphHeight, graphFilter]);\r\n return {\r\n graphContainerStyle,\r\n graphStyle,\r\n rightSidePanelStyle,\r\n leftSidePanelStyle,\r\n };\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/43acc0ef5603e3f8b7a286b1dba89290.json b/node_modules/.cache/cache-loader/43acc0ef5603e3f8b7a286b1dba89290.json deleted file mode 100644 index 8922b0f..0000000 --- a/node_modules/.cache/cache-loader/43acc0ef5603e3f8b7a286b1dba89290.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\StyledSpinner.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\StyledSpinner.tsx","mtime":1624559748202},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBTcGlubmVyLCBTcGlubmVyU2l6ZSB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCB7IFNQSU5ORVJfU1RZTEUgfSBmcm9tICd+L3N0eWxlcyc7CmV4cG9ydCBjb25zdCBTdHlsZWRTcGlubm5lciA9ICgpID0+IHsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChTcGlubmVyLCB7CiAgICBsYWJlbDogIkxvYWRpbmcgZ3JhcGguLi4iLAogICAgc3R5bGVzOiBTUElOTkVSX1NUWUxFLAogICAgc2l6ZTogU3Bpbm5lclNpemUubGFyZ2UKICB9KTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/StyledSpinner.tsx"],"names":["Spinner","SpinnerSize","React","SPINNER_STYLE","StyledSpinnner","createElement","label","styles","size","large"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,OAAT,EAAkBC,WAAlB,QAAqC,iBAArC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,OAAO,MAAMC,cAAc,GAAG,MAAM;AAChC,SAAQF,KAAK,CAACG,aAAN,CAAoBL,OAApB,EAA6B;AAAEM,IAAAA,KAAK,EAAE,kBAAT;AAA6BC,IAAAA,MAAM,EAAEJ,aAArC;AAAoDK,IAAAA,IAAI,EAAEP,WAAW,CAACQ;AAAtE,GAA7B,CAAR;AACH,CAFM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Spinner, SpinnerSize } from '@fluentui/react';\r\nimport React from 'react';\r\nimport { SPINNER_STYLE } from '~/styles';\r\nexport const StyledSpinnner = () => {\r\n return (React.createElement(Spinner, { label: \"Loading graph...\", styles: SPINNER_STYLE, size: SpinnerSize.large }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4436fe681397dd218edbf0c488a984bf.json b/node_modules/.cache/cache-loader/4436fe681397dd218edbf0c488a984bf.json deleted file mode 100644 index cd4cbe7..0000000 --- a/node_modules/.cache/cache-loader/4436fe681397dd218edbf0c488a984bf.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\index.tsx","mtime":1620403249187},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0RhdGFNYW5hZ2VyUGFnZSc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/DataManagerPage/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,mBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './DataManagerPage';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4440f8dfd823a7552caf034994320de1.json b/node_modules/.cache/cache-loader/4440f8dfd823a7552caf034994320de1.json deleted file mode 100644 index feedfb6..0000000 --- a/node_modules/.cache/cache-loader/4440f8dfd823a7552caf034994320de1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\LazyCachingSwitch.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\LazyCachingSwitch.tsx","mtime":1620403249141},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMod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zdCBtYXRjaGVkID0gbG9jYXRpb24ucGF0aG5hbWUubWF0Y2goYF4ke3BhdGh9JGApOwogICAgICAgIGNvbnN0IHN0eWxlID0ge307CgogICAgICAgIGlmICghbWF0Y2hlZCkgewogICAgICAgICAgc3R5bGUuZGlzcGxheSA9ICdub25lJzsKICAgICAgICB9CgogICAgICAgIGNvbnN0IGluc3RhbmNlID0gY2FjaGVbcGF0aF07CiAgICAgICAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoImRpdiIsIHsKICAgICAgICAgIHN0eWxlOiBzdHlsZSwKICAgICAgICAgIGtleTogcGF0aAogICAgICAgIH0sIGluc3RhbmNlKTsKICAgICAgfQoKICAgICAgcmV0dXJuIG51bGw7CiAgICB9KTsKICB9LCBbY2FjaGUsIGxvY2F0aW9uLCBjaGlsZHJlbl0pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFJlYWN0LkZyYWdtZW50LCBudWxsLCByZW5kZXJlZCk7Cn0pOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/LazyCachingSwitch.tsx"],"names":["React","useEffect","useMemo","useState","withRouter","LazyCachingSwitch","location","children","cache","setCache","updated","isDirty","foundFirst","Children","forEach","child","isValidElement","path","props","matched","pathname","match","instance","createElement","component","rendered","map","style","display","key","Fragment"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,OAA3B,EAAoCC,QAApC,QAAoD,OAApD;AACA,SAASC,UAAT,QAA2B,kBAA3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,iBAAiB,GAAGD,UAAU,CAAC,CAAC;AAAEE,EAAAA,QAAF;AAAYC,EAAAA;AAAZ,CAAD,KAA4B;AACpE,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoBN,QAAQ,CAAC,EAAD,CAAlC,CADoE,CAEpE;;AACAF,EAAAA,SAAS,CAA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KAAvB;AACA,cAAMC,OAAO,GAAGb,QAAQ,CAACc,QAAT,CAAkBC,KAAlB,CAAyB,IAAGJ,IAAK,GAAjC,CAAhB;AACA,cAAMU,KAAK,GAAG,EAAd;;AACA,YAAI,CAACR,OAAL,EAAc;AACVQ,UAAAA,KAAK,CAACC,OAAN,GAAgB,MAAhB;AACH;;AACD,cAAMN,QAAQ,GAAGd,KAAK,CAACS,IAAD,CAAtB;AACA,eAAQjB,KAAK,CAACuB,aAAN,CAAoB,KAApB,EAA2B;AAAEI,UAAAA,KAAK,EAAEA,KAAT;AAAgBE,UAAAA,GAAG,EAAEZ;AAArB,SAA3B,EAAwDK,QAAxD,CAAR;AACH;;AACD,aAAO,IAAP;AACH,KAZM,CAAP;AAaH,GAduB,EAcrB,CAACd,KAAD,EAAQF,QAAR,EAAkBC,QAAlB,CAdqB,CAAxB;AAeA,SAAOP,KAAK,CAACuB,aAAN,CAAoBvB,KAAK,CAAC8B,QAA1B,EAAoC,IAApC,EAA0CL,QAA1C,CAAP;AACH,CA5C0C,CAApC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React, { useEffect, useMemo, useState } from 'react';\r\nimport { withRouter } from 'react-router-dom';\r\n/**\r\n * Essentially replicates a react-router Switch,\r\n * but uses a state cache to lazily render components,\r\n * and hide them if they aren't matched.\r\n * This allows us to avoid the heavy cost of remounting\r\n * expensive components as the user navigates the app.\r\n * Warnings:\r\n * 1. This will probably result in heavier memory usage\r\n * 2. It only supports Route, not Redirect, and must use Route.component prop\r\n * 3. It only supports exact matches\r\n */\r\nexport const LazyCachingSwitch = withRouter(({ location, children }) => {\r\n const [cache, setCache] = useState({});\r\n // first iteration ensures we've rendered the matched component, and updates the cache as necessary\r\n useEffect(() => {\r\n const updated = { ...cache };\r\n let isDirty = false;\r\n // first route match wins, mimicking behavior from Switch\r\n let foundFirst = false;\r\n React.Children.forEach(children, child => {\r\n if (!foundFirst && React.isValidElement(child)) {\r\n const { path } = child.props;\r\n const matched = location.pathname.match(`^${path}$`);\r\n if (matched) {\r\n foundFirst = true;\r\n let instance = updated[path];\r\n if (!instance) {\r\n instance = React.createElement(child.props.component, null);\r\n updated[path] = instance;\r\n isDirty = true;\r\n }\r\n }\r\n }\r\n });\r\n if (isDirty) {\r\n setCache(updated);\r\n }\r\n }, [cache, setCache, location, children]);\r\n // second iteration creates a set of rendered components from the cache, hidden if not matched\r\n const rendered = useMemo(() => {\r\n return React.Children.map(children, child => {\r\n if (React.isValidElement(child)) {\r\n const { path } = child.props;\r\n const matched = location.pathname.match(`^${path}$`);\r\n const style = {};\r\n if (!matched) {\r\n style.display = 'none';\r\n }\r\n const instance = cache[path];\r\n return (React.createElement(\"div\", { style: style, key: path }, instance));\r\n }\r\n return null;\r\n });\r\n }, [cache, location, children]);\r\n return React.createElement(React.Fragment, null, rendered);\r\n});\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4588212d5650614b4495ca31a8c1a631.json b/node_modules/.cache/cache-loader/4588212d5650614b4495ca31a8c1a631.json deleted file mode 100644 index 41dbb56..0000000 --- a/node_modules/.cache/cache-loader/4588212d5650614b4495ca31a8c1a631.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\NodeColorHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\NodeColorHeaderLegend.tsx","mtime":1631029334807},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VOb2RlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VOb2RlQ29sb3JFbmNvZGluZyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgTm9kZUNvbG9ySGVhZGVyTGVnZW5kID0gKCkgPT4gewogIGNvbnN0IGNvdW50ID0gdXNlTm9kZUNvdW50KCk7CiAgY29uc3QgZW5jb2RpbmcgPSB1c2VOb2RlQ29sb3JFbmNvZGluZygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhlYWRlckxlZ2VuZCwgewogICAgbGFiZWw6ICdOb2RlIGNvbG9yJywKICAgIGVuY29kaW5nOiBlbmNvZGluZywKICAgIGNvbG9yRW5jb2Rpbmc6IGVuY29kaW5nLAogICAgaXNVbnNldDogY291bnQgPT09IDAKICB9KTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/NodeColorHeaderLegend.tsx"],"names":["HeaderLegend","React","useNodeCount","useNodeColorEncoding","NodeColorHeaderLegend","count","encoding","createElement","label","colorEncoding","isUnset"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,oBAAT,QAAqC,SAArC;AACA,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AACvC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,oBAAoB,EAArC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,YAAT;AAAuBF,IAAAA,QAAQ,EAAEA,QAAjC;AAA2CG,IAAAA,aAAa,EAAEH,QAA1D;AAAoEI,IAAAA,OAAO,EAAEL,KAAK,KAAK;AAAvF,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useNodeCount } from '~/arquero';\r\nimport { useNodeColorEncoding } from '~/state';\r\nexport const NodeColorHeaderLegend = () => {\r\n const count = useNodeCount();\r\n const encoding = useNodeColorEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Node color', encoding: encoding, colorEncoding: encoding, isUnset: count === 0 }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/46f0abc65ac743f7bdfe6e6ad833aa3b.json b/node_modules/.cache/cache-loader/46f0abc65ac743f7bdfe6e6ad833aa3b.json deleted file mode 100644 index 91da483..0000000 --- a/node_modules/.cache/cache-loader/46f0abc65ac743f7bdfe6e6ad833aa3b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NominalLegend\\VerticalNominalChips.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NominalLegend\\VerticalNominalChips.tsx","mtime":1631029334838},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4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ZXh0IiwgewogICAgICAgIGtleTogYHZlcnRpY2FsLW5vbWluYWwtY2hpcHMtbW9yZS0ke2l0ZW1zLmxlbmd0aH1gLAogICAgICAgIHg6IDIsCiAgICAgICAgeTogaXRlbXMubGVuZ3RoICogKGhlaWdodCArIElURU1fR0FQKSArIHIsCiAgICAgICAgZm9udFNpemU6IDExLAogICAgICAgIGZpbGw6IHRleHRDb2xvciwKICAgICAgICBkb21pbmFudEJhc2VsaW5lOiAnbWlkZGxlJwogICAgICB9LCBgKyR7ZGVsdGF9IG1vcmVgKSk7CiAgICB9CgogICAgcmV0dXJuIGxlZ2VuZFJvd3M7CiAgfSwgW3RoZW1lLCBzY2FsZSwgaGVpZ2h0LCBpdGVtcywgdW5pcXVlc10pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KCJzdmciLCB7CiAgICB3aWR0aDogd2lkdGgsCiAgICBoZWlnaHQ6IHRvdGFsSGVpZ2h0CiAgfSwgcm93cyk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NominalLegend/VerticalNominalChips.tsx"],"names":["useThematicColorScale","useThematic","React","useMemo","ITEM_GAP","VerticalNominalChips","encoding","width","height","maxItems","scale","uniques","theme","items","map","v","sort","a","b","localeCompare","slice","itemsHeight","length","totalHeight","rows","textColor","text","fill","hex","r","legendRows","item","i","color","cy","createElement","key","cx","x","y","fontSize","dominantBaseline","delta","push"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,qBAAT,QAAsC,mBAAtC;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,MAAMC,QAAQ,GAAG,CAAjB;AACA,OAAO,MAAMC,oBAAoB,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA,KAAK,GAAG,GAApB;AAAyBC,EAAAA,MAAM,GAAG,EAAlC;AAAsCC,EAAAA,QAAQ,GAAG;AAAjD,CAAD,KAA4D;AAC5F,Q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E5B,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,MAAM,EAAEe;AAAxB,GAA3B,EAAkEC,IAAlE,CAAR;AACH,CA9BM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useThematicColorScale } from '../../hooks/graph';\r\nimport { useThematic } from '@thematic/react';\r\nimport React, { useMemo } from 'react';\r\nconst ITEM_GAP = 2;\r\nexport const VerticalNominalChips = ({ encoding, width = 200, height = 10, maxItems = 10, }) => {\r\n const scale = useThematicColorScale(encoding);\r\n const { uniques = [] } = encoding;\r\n const theme = useThematic();\r\n // TODO: it would be much nicer if the sort matched that of the community list,\r\n // or at least tried to be a clean numerical when possible\r\n const items = useMemo(() => [...uniques]\r\n .map(v => `${v}`)\r\n .sort((a, b) => a.localeCompare(b))\r\n .slice(0, maxItems), [uniques, maxItems]);\r\n const itemsHeight = items.length * (height + ITEM_GAP);\r\n // add one more row for \"more...\" label if truncated\r\n const totalHeight = items.length < uniques.length ? itemsHeight + height : itemsHeight;\r\n const rows = useMemo(() => {\r\n const textColor = theme.text().fill().hex();\r\n const r = height / 2;\r\n const legendRows = items.map((item, i) => {\r\n const color = scale(item).hex();\r\n const cy = r + i * (height + ITEM_GAP);\r\n return (React.createElement(\"g\", { key: `vertical-nominal-chips-${item}-${i}` },\r\n React.createElement(\"circle\", { fill: color, cx: r, cy: cy, r: r }),\r\n React.createElement(\"text\", { x: height + ITEM_GAP * 2, y: cy + ITEM_GAP, fill: textColor, fontSize: 12, dominantBaseline: 'middle' }, item)));\r\n });\r\n const delta = uniques.length - items.length;\r\n if (delta > 0) {\r\n legendRows.push(React.createElement(\"text\", { key: `vertical-nominal-chips-more-${items.length}`, x: 2, y: items.length * (height + ITEM_GAP) + r, fontSize: 11, fill: textColor, dominantBaseline: 'middle' }, `+${delta} more`));\r\n }\r\n return legendRows;\r\n }, [theme, scale, height, items, uniques]);\r\n return (React.createElement(\"svg\", { width: width, height: totalHeight }, rows));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/49b0476bd0b9de0db06ced92cc72e3b8.json b/node_modules/.cache/cache-loader/49b0476bd0b9de0db06ced92cc72e3b8.json deleted file mode 100644 index 71d7376..0000000 --- a/node_modules/.cache/cache-loader/49b0476bd0b9de0db06ced92cc72e3b8.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\theme.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\theme.ts","mtime":1620403249287},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgU2VsZWN0aW9uU3RhdGUgfSBmcm9tICdAdGhlbWF0aWMvY29yZSc7CmltcG9ydCB7IHVzZVRoZW1hdGljIH0gZnJvbSAnQHRoZW1hdGljL3JlYWN0JzsKaW1wb3J0IHsgdXNlTWVtbywgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmV4cG9ydCBmdW5jdGlvbiB1c2VCYXJGaWxsU2NhbGUoKSB7CiAgY29uc3QgdGhlbWUgPSB1c2VUaGVtYXRpYygpOwogIHJldHVybiB1c2VDYWxsYmFjaygoKSA9PiB0aGVtZS5yZWN0KHsKICAgIHNlbGVjdGlvblN0YXRlOiBTZWxlY3Rpb25TdGF0ZS5TZWxlY3RlZAogIH0pLmZpbGwoKSwgW3RoZW1lXSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUJhclRleHRGb3JlZ3JvdW5kQ29sb3IoKSB7CiAgY29uc3QgdGhlbWUgPSB1c2VUaGVtYXRpYygpOwogIHJldHVybiB1c2VNZW1vKCgpID0+IHRoZW1lLnRleHQoKS5maWxsKCkuaGV4KCksIFt0aGVtZV0pOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VIb3ZlcmVkQ29sb3IoKSB7CiAgY29uc3QgdGhlbWUgPSB1c2VUaGVtYXRpYygpOwogIHJldHVybiB1c2VNZW1vKCgpID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkuZXJyb3IoKS5oZXgoKSwgW3RoZW1lXSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/hooks/theme.ts"],"names":["SelectionState","useThematic","useMemo","useCallback","useBarFillScale","theme","rect","selectionState","Selected","fill","useBarTextForegroundColor","text","hex","useHoveredColor","application","error"],"mappings":"AAAA,SAASA,cAAT,QAA+B,gBAA/B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,OAAT,EAAkBC,WAAlB,QAAqC,OAArC;AACA,OAAO,SAASC,eAAT,GAA2B;AAC9B,QAAMC,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOE,WAAW,CAAC,MAAME,KAAK,CAACC,IAAN,CAAW;AAAEC,IAAAA,cAAc,EAAEP,cAAc,CAACQ;AAAjC,GAAX,EAAwDC,IAAxD,EAAP,EAAuE,CAACJ,KAAD,CAAvE,CAAlB;AACH;AACD,OAAO,SAASK,yBAAT,GAAqC;AACxC,QAAML,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,MAAMG,KAAK,CAACM,IAAN,GAAaF,IAAb,GAAoBG,GAApB,EAAP,EAAkC,CAACP,KAAD,CAAlC,CAAd;AACH;AACD,OAAO,SAASQ,eAAT,GAA2B;AAC9B,QAAMR,KAAK,GAAGJ,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,MAAMG,KAAK,CAACS,WAAN,GAAoBC,KAApB,GAA4BH,GAA5B,EAAP,EAA0C,CAACP,KAAD,CAA1C,CAAd;AACH","sourcesContent":["import { SelectionState } from '@thematic/core';\r\nimport { useThematic } from '@thematic/react';\r\nimport { useMemo, useCallback } from 'react';\r\nexport function useBarFillScale() {\r\n const theme = useThematic();\r\n return useCallback(() => theme.rect({ selectionState: SelectionState.Selected }).fill(), [theme]);\r\n}\r\nexport function useBarTextForegroundColor() {\r\n const theme = useThematic();\r\n return useMemo(() => theme.text().fill().hex(), [theme]);\r\n}\r\nexport function useHoveredColor() {\r\n const theme = useThematic();\r\n return useMemo(() => theme.application().error().hex(), [theme]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4aa70094bc1d5942e8119dc5193b9f40.json b/node_modules/.cache/cache-loader/4aa70094bc1d5942e8119dc5193b9f40.json deleted file mode 100644 index ae0a0c6..0000000 --- a/node_modules/.cache/cache-loader/4aa70094bc1d5942e8119dc5193b9f40.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalButton.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalButton.tsx","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBJY29uQnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IG1lbW8sIHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgTW9kYWxCdXR0b24gPSBtZW1vKGZ1bmN0aW9uIE1vZGFsQnV0dG9uKHsKICBpY29uTmFtZSwKICB0ZXh0LAogIG9uQ2xpY2sKfSkgewogIGNvbnN0IGhhbmRsZUljb25DbGljayA9IHVzZUNhbGxiYWNrKHByb3BzID0+IG9uQ2xpY2sodGV4dCksIFtvbkNsaWNrLCB0ZXh0XSk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoUmVhY3QuRnJhZ21lbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoSWNvbkJ1dHRvbiwgewogICAgaWNvblByb3BzOiB7CiAgICAgIGljb25OYW1lCiAgICB9LAogICAgdGl0bGU6IHRleHQsCiAgICBvbkNsaWNrOiBoYW5kbGVJY29uQ2xpY2sKICB9KSk7Cn0pOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/ModalButton.tsx"],"names":["IconButton","React","memo","useCallback","ModalButton","iconName","text","onClick","handleIconClick","props","createElement","Fragment","iconProps","title"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,iBAA3B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,WAAtB,QAAyC,OAAzC;AACA,OAAO,MAAMC,WAAW,GAAGF,IAAI,CAAC,SAASE,WAAT,CAAqB;AAAEC,EAAAA,QAAF;AAAYC,EAAAA,IAAZ;AAAkBC,EAAAA;AAAlB,CAArB,EAAmD;AAC/E,QAAMC,eAAe,GAAGL,WAAW,CAAEM,KAAD,IAAWF,OAAO,CAACD,IAAD,CAAnB,EAA2B,CAACC,OAAD,EAAUD,IAAV,CAA3B,CAAnC;AACA,SAAQL,KAAK,CAACS,aAAN,CAAoBT,KAAK,CAACU,QAA1B,EAAoC,IAApC,EACJV,KAAK,CAACS,aAAN,CAAoBV,UAApB,EAAgC;AAAEY,IAAAA,SAAS,EAAE;AAAEP,MAAAA;AAAF,KAAb;AAA2BQ,IAAAA,KAAK,EAAEP,IAAlC;AAAwCC,IAAAA,OAAO,EAAEC;AAAjD,GAAhC,CADI,CAAR;AAEH,CAJ8B,CAAxB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { IconButton } from '@fluentui/react';\r\nimport React, { memo, useCallback } from 'react';\r\nexport const ModalButton = memo(function ModalButton({ iconName, text, onClick, }) {\r\n const handleIconClick = useCallback((props) => onClick(text), [onClick, text]);\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(IconButton, { iconProps: { iconName }, title: text, onClick: handleIconClick })));\r\n});\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4e3c417313d638463d65eb49a3f1c636.json b/node_modules/.cache/cache-loader/4e3c417313d638463d65eb49a3f1c636.json deleted file mode 100644 index f362215..0000000 --- a/node_modules/.cache/cache-loader/4e3c417313d638463d65eb49a3f1c636.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\files.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\files.ts","mtime":1631029334884},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmltcG9ydCB7IGF0b20sIHVzZVJlY29pbFN0YXRlLCB1c2VSZWNvaWxWYWx1ZSwgdXNlUmVzZXRSZWNvaWxTdGF0ZSwgdXNlU2V0UmVjb2lsU3RhdGUgfSBmcm9tICdyZWNvaWwnOwpjb25zdCBmaWxlc1N0YXRlID0gYXRvbSh7CiAga2V5OiAnZGF0YS1maWxlcycsCiAgZGVmYXVsdDogW10sCiAgLy8gdGhpcyBpcyByZXF1aXJlZCBzbyB0aGF0IGFycXVlcm8gY2FuIHVwZGF0ZSBpbmRleGVzIHVuZGVyIHRoZSBob29kCiAgZGFuZ2Vyb3VzbHlBbGxvd011dGFiaWxpdHk6IHRydWUKfSk7CmV4cG9ydCBmdW5jdGlvbiB1c2VGaWxlc0xpc3QoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFZhbHVlKGZpbGVzU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VBZGRGaWxlKCkgewogIGNvbnN0IFtmaWxlcywgc2V0RmlsZXNdID0gdXNlUmVjb2lsU3RhdGUoZmlsZXNTdGF0ZSk7CiAgcmV0dXJuIHVzZUNhbGxiYWNrKGZpbGUgPT4gewogICAgc2V0RmlsZXMoWy4uLmZpbGVzLCBmaWxlXSk7CiAgfSwgW2ZpbGVzLCBzZXRGaWxlc10pOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VTZXRGaWxlcygpIHsKICByZXR1cm4gdXNlU2V0UmVjb2lsU3RhdGUoZmlsZXNTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUNsZWFyRmlsZXMoKSB7CiAgcmV0dXJuIHVzZVJlc2V0UmVjb2lsU3RhdGUoZmlsZXNTdGF0ZSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/state/files.ts"],"names":["useCallback","atom","useRecoilState","useRecoilValue","useResetRecoilState","useSetRecoilState","filesState","key","default","dangerouslyAllowMutability","useFilesList","useAddFile","files","setFiles","file","useSetFiles","useClearFiles"],"mappings":"AAAA,SAASA,WAAT,QAA4B,OAA5B;AACA,SAASC,IAAT,EAAeC,cAAf,EAA+BC,cAA/B,EAA+CC,mBAA/C,EAAoEC,iBAApE,QAA8F,QAA9F;AACA,MAAMC,UAAU,GAAGL,IAAI,CAAC;AACpBM,EAAAA,GAAG,EAAE,YADe;AAEpBC,EAAAA,OAAO,EAAE,EAFW;AAGpB;AACAC,EAAAA,0BAA0B,EAAE;AAJR,CAAD,CAAvB;AAMA,OAAO,SAASC,YAAT,GAAwB;AAC3B,SAAOP,cAAc,CAACG,UAAD,CAArB;AACH;AACD,OAAO,SAASK,UAAT,GAAsB;AACzB,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoBX,cAAc,CAACI,UAAD,CAAxC;AACA,SAAON,WAAW,CAAEc,IAAD,IAAU;AACzBD,IAAAA,QAAQ,CAAC,CAAC,GAAGD,KAAJ,EAAWE,IAAX,CAAD,CAAR;AACH,GAFiB,EAEf,CAACF,KAAD,EAAQC,QAAR,CAFe,CAAlB;AAGH;AACD,OAAO,SAASE,WAAT,GAAuB;AAC1B,SAAOV,iBAAiB,CAACC,UAAD,CAAxB;AACH;AACD,OAAO,SAASU,aAAT,GAAyB;AAC5B,SAAOZ,mBAAmB,CAACE,UAAD,CAA1B;AACH","sourcesContent":["import { useCallback } from 'react';\r\nimport { atom, useRecoilState, useRecoilValue, useResetRecoilState, useSetRecoilState, } from 'recoil';\r\nconst filesState = atom({\r\n key: 'data-files',\r\n default: [],\r\n // this is required so that arquero can update indexes under the hood\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useFilesList() {\r\n return useRecoilValue(filesState);\r\n}\r\nexport function useAddFile() {\r\n const [files, setFiles] = useRecoilState(filesState);\r\n return useCallback((file) => {\r\n setFiles([...files, file]);\r\n }, [files, setFiles]);\r\n}\r\nexport function useSetFiles() {\r\n return useSetRecoilState(filesState);\r\n}\r\nexport function useClearFiles() {\r\n return useResetRecoilState(filesState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4f52c0f3fc251f73293863c0acc75ae0.json b/node_modules/.cache/cache-loader/4f52c0f3fc251f73293863c0acc75ae0.json deleted file mode 100644 index e6badf4..0000000 --- a/node_modules/.cache/cache-loader/4f52c0f3fc251f73293863c0acc75ae0.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\PreviewGraph\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\PreviewGraph\\index.tsx","mtime":1620403249346},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL1ByZXZpZXdHcmFwaCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/PreviewGraph/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,gBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './PreviewGraph';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/4fef6fae6fd40f20ca1f259bfc0e1ce8.json b/node_modules/.cache/cache-loader/4fef6fae6fd40f20ca1f259bfc0e1ce8.json deleted file mode 100644 index 31a10ad..0000000 --- a/node_modules/.cache/cache-loader/4fef6fae6fd40f20ca1f259bfc0e1ce8.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\hooks\\useTestFiles.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\hooks\\useTestFiles.ts","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV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ZSkgewogICAgICAgIGNvbnNvbGUubG9nKCdsb2FkaW5nIG5vZGVzIGZpbGUgZnJvbSB1cmwnLCBub2Rlc0ZpbGUudXJsKTsKICAgICAgICBjb25zb2xlLnRpbWUoJ25vZGVzJyk7CiAgICAgICAgbm9kZXMgPSBpbml0aWFsaXplTm9kZVRhYmxlKG5vZGVzVGFibGUpOwogICAgICAgIGZpbGVzLm5vZGVzID0gX29iamVjdFNwcmVhZChfb2JqZWN0U3ByZWFkKHt9LCBub2Rlc0ZpbGUpLCB7fSwgewogICAgICAgICAgdGFibGU6IG5vZGVzVGFibGUsCiAgICAgICAgICByb3dzOiBub2Rlc1RhYmxlLm51bVJvd3MoKQogICAgICAgIH0pOwogICAgICAgIGNvbnNvbGUudGltZUVuZCgnbm9kZXMnKTsKICAgICAgfQoKICAgICAgaWYgKGpvaW5GaWxlKSB7CiAgICAgICAgY29uc29sZS5sb2coJ2xvYWRpbmcgam9pbiBmaWxlIGZyb20gdXJsJywgam9pbkZpbGUudXJsKTsKICAgICAgICBjb25zb2xlLnRpbWUoJ2pvaW4nKTsKICAgICAgICBjb25zdCBqb2luID0gaW5pdGlhbGl6ZUpvaW5UYWJsZShqb2luVGFibGUpOwogICAgICAgIGZpbGVzLmpvaW4gPSBfb2JqZWN0U3ByZWFkKF9vYmplY3RTcHJlYWQoe30sIGpvaW5GaWxlKSwge30sIHsKICAgICAgICAgIHRhYmxlOiBqb2luVGFibGUsCiAgICAgICAgICByb3dzOiBqb2luLm51bVJvd3MoKQogICAgICAgIH0pOwoKICAgICAgICBpZiAobm9kZXNGaWxlKSB7CiAgICAgICAgICBub2RlcyA9IGpvaW5Ob2RlQ29tbXVuaXR5VGFibGVzKG5vZGVzLCBqb2luKTsKICAgICAgICB9CgogICAgICAgIGNvbnNvbGUudGltZUVuZCgnam9pbicpOwogICAgICB9CgogICAgICBpZiAoY29tbXVuaXRpZXNGaWxlKSB7CiAgICAgICAgY29uc29sZS5sb2coJ2xvYWRpbmcgY29tbXVuaXRpZXMgZmlsZSBmcm9tIHVybCcsIGNvbW11bml0aWVzRmlsZS51cmwpOwogICAgICAgIGNvbnNvbGUudGltZSgnY29tbXVuaXRpZXMnKTsKICAgICAgICBmaWxlcy5jb21tdW5pdGllcyA9IF9vYmplY3RTcHJlYWQoX29iamVjdFNwcmVhZCh7fSwgY29tbXVuaXRpZXNGaWxlKSwge30sIHsKICAgICAgICAgIHRhYmxlOiBjb21tdW5pdGllc1RhYmxlLAogICAgICAgICAgcm93czogY29tbXVuaXRpZXNUYWJsZS5udW1Sb3dzKCkKICAgICAgICB9KTsKCiAgICAgICAgaWYgKG5vZGVzRmlsZSAmJiBqb2luRmlsZSkgewogICAgICAgICAgbm9kZXMgPSBqb2luRGF0YVRhYmxlcyhub2RlcywgY29tbXVuaXRpZXNUYWJsZSwgJ2NvbW11bml0eScpOwogICAgICAgIH0KCiAgICAgICAgY29uc29sZS50aW1lRW5kKCdjb21tdW5pdGllcycpOwogICAgICB9CgogICAgICBpZiAoZWRnZXNGaWxlKSB7CiAgICAgICAgY29uc29sZS5sb2coJ2xvYWRpbmcgZWRnZXMgZmlsZSBmcm9tIHVybCcsIGVkZ2VzRmlsZS51cmwpOwogICAgICAgIGNvbnNvbGUudGltZSgnZWRnZXMnKTsKICAgICAgICBlZGdlcyA9IGluaXRpYWxpemVFZGdlVGFibGUoZWRnZXNUYWJsZSk7CiAgICAgICAgZmlsZXMuZWRnZXMgPSBfb2JqZWN0U3ByZWFkKF9vYmplY3RTcHJlYWQoe30sIGVkZ2VzRmlsZSksIHt9LCB7CiAgICAgICAgICB0YWJsZTogZWRnZXNUYWJsZSwKICAgICAgICAgIHJvd3M6IGVkZ2VzVGFibGUubnVtUm93cygpCiAgICAgICAgfSk7CgogICAgICAgIGlmICghbm9kZXNGaWxlKSB7CiAgICAgICAgICBub2RlcyA9IGluaXRpYWxpemVOb2RlVGFibGUoZWRnZXNUYWJsZSwgdHJ1ZSk7CiAgICAgICAgfQoKICAgICAgICBjb25zb2xlLnRpbWVFbmQoJ2VkZ2VzJyk7CiAgICAgIH0KCiAgICAgIGlmIChub2RlcykgewogICAgICAgIGNvbnNvbGUubG9nKCdub2RlcyBiaWd0YWJsZScpOwogICAgICAgIG5vZGVzLnByaW50KCk7CiAgICAgICAgc2V0Tm9kZXMobm9kZXMpOwogICAgICB9CgogICAgICBpZiAoZWRnZXMpIHsKICAgICAgICBjb25zb2xlLmxvZygnZWRnZXMnKTsKICAgICAgICBlZGdlcy5wcmludCgpOwogICAgICAgIHNldEVkZ2VzKGVkZ2VzKTsKICAgICAgfQoKICAgICAgY29uc29sZS50aW1lRW5kKCdsb2FkJyk7CiAgICAgIHNldEZpbGVzKE9iamVjdC52YWx1ZXMoZmlsZXMpKTsKICAgIH07CgogICAgZigpOwogIH0sIFtidW5kbGUsIHNldE5vZGVzLCBzZXRFZGdlcywgc2V0RmlsZXNdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/hooks/useTestFiles.ts"],"names":["useEffect","fetchUrl","useSetArqueroBigTable","useSetArqueroEdgeTable","initializeEdgeTable","initializeJoinTable","initializeNodeTable","joinDataTables","joinNodeCommunityTables","useSetFiles","useTestFiles","bundle","setNodes","setEdges","setFiles","f","console","time","nodesFile","nodes","joinFile","join","communitiesFile","communities","edgesFile","edges","files","nodesTable","joinTable","communitiesTable","edgesTable","Promise","all","url","log","table","rows","numRows","timeEnd","print","Object","values"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,OAA1B;AACA,SAASC,QAAT,QAAyB,OAAzB;AACA,SAASC,qBAAT,EAAgCC,sBAAhC,QAA8D,WAA9D;AACA,SAASC,mBAAT,EAA8BC,mBAA9B,EAAmDC,mBAAnD,EAAwEC,cAAxE,EAAwFC,uBAAxF,QAAwH,iBAAxH;AACA,SAASC,WAAT,QAA4B,SAA5B;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,YAAT,CAAsBC,MAAtB,EAA8B;AACjC,QAAMC,Q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;AACXR,QAAAA,OAAO,CAACkB,GAAR,CAAY,6BAAZ,EAA2CV,SAAS,CAACS,GAArD;AACAjB,QAAAA,OAAO,CAACC,IAAR,CAAa,OAAb;AACAQ,QAAAA,KAAK,GAAGrB,mBAAmB,CAAC0B,UAAD,CAA3B;AACAJ,QAAAA,KAAK,CAACD,KAAN,mCACOD,SADP;AAEIW,UAAAA,KAAK,EAAEL,UAFX;AAGIM,UAAAA,IAAI,EAAEN,UAAU,CAACO,OAAX;AAHV;;AAKA,YAAI,CAACnB,SAAL,EAAgB;AACZC,UAAAA,KAAK,GAAGb,mBAAmB,CAACwB,UAAD,EAAa,IAAb,CAA3B;AACH;;AACDd,QAAAA,OAAO,CAACsB,OAAR,CAAgB,OAAhB;AACH;;AACD,UAAInB,KAAJ,EAAW;AACPH,QAAAA,OAAO,CAACkB,GAAR,CAAY,gBAAZ;AACAf,QAAAA,KAAK,CAACoB,KAAN;AACA3B,QAAAA,QAAQ,CAACO,KAAD,CAAR;AACH;;AACD,UAAIM,KAAJ,EAAW;AACPT,QAAAA,OAAO,CAACkB,GAAR,CAAY,OAAZ;AACAT,QAAAA,KAAK,CAACc,KAAN;AACA1B,QAAAA,QAAQ,CAACY,KAAD,CAAR;AACH;;AACDT,MAAAA,OAAO,CAACsB,OAAR,CAAgB,MAAhB;AACAxB,MAAAA,QAAQ,CAAC0B,MAAM,CAACC,MAAP,CAAcf,KAAd,CAAD,CAAR;AACH,KAlFD;;AAmFAX,IAAAA,CAAC;AACJ,GArFQ,EAqFN,CAACJ,MAAD,EAASC,QAAT,EAAmBC,QAAnB,EAA6BC,QAA7B,CArFM,CAAT;AAsFH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useEffect } from 'react';\r\nimport { fetchUrl } from '~/api';\r\nimport { useSetArqueroBigTable, useSetArqueroEdgeTable } from '~/arquero';\r\nimport { initializeEdgeTable, initializeJoinTable, initializeNodeTable, joinDataTables, joinNodeCommunityTables, } from '~/arquero/table';\r\nimport { useSetFiles } from '~/state';\r\n/**\r\n * Loads a set of pre-defined test files, either specified on the URL\r\n * or as a preset bundle.\r\n */\r\nexport function useTestFiles(bundle) {\r\n const setNodes = useSetArqueroBigTable();\r\n const setEdges = useSetArqueroEdgeTable();\r\n const setFiles = useSetFiles();\r\n useEffect(() => {\r\n const f = async () => {\r\n console.time('load');\r\n const nodesFile = bundle.nodes;\r\n const joinFile = bundle.join;\r\n const communitiesFile = bundle.communities;\r\n const edgesFile = bundle.edges;\r\n const files = {};\r\n const [nodesTable, joinTable, communitiesTable, edgesTable] = await Promise.all([\r\n nodesFile?.url && fetchUrl(nodesFile.url),\r\n joinFile?.url && fetchUrl(joinFile.url),\r\n communitiesFile?.url && fetchUrl(communitiesFile.url),\r\n edgesFile?.url && fetchUrl(edgesFile.url),\r\n ]);\r\n let nodes;\r\n let edges;\r\n // TODO: this is basically just recreating the logic in useArqueroAddTable hook\r\n // however, we have to do all the joins and set the tables at once because we won't get another render loop\r\n // note that the order of nodes -> join -> communities -> edges is *required* to layer properly\r\n if (nodesFile) {\r\n console.log('loading nodes file from url', nodesFile.url);\r\n console.time('nodes');\r\n nodes = initializeNodeTable(nodesTable);\r\n files.nodes = {\r\n ...nodesFile,\r\n table: nodesTable,\r\n rows: nodesTable.numRows(),\r\n };\r\n console.timeEnd('nodes');\r\n }\r\n if (joinFile) {\r\n console.log('loading join file from url', joinFile.url);\r\n console.time('join');\r\n const join = initializeJoinTable(joinTable);\r\n files.join = {\r\n ...joinFile,\r\n table: joinTable,\r\n rows: join.numRows(),\r\n };\r\n if (nodesFile) {\r\n nodes = joinNodeCommunityTables(nodes, join);\r\n }\r\n console.timeEnd('join');\r\n }\r\n if (communitiesFile) {\r\n console.log('loading communities file from url', communitiesFile.url);\r\n console.time('communities');\r\n files.communities = {\r\n ...communitiesFile,\r\n table: communitiesTable,\r\n rows: communitiesTable.numRows(),\r\n };\r\n if (nodesFile && joinFile) {\r\n nodes = joinDataTables(nodes, communitiesTable, 'community');\r\n }\r\n console.timeEnd('communities');\r\n }\r\n if (edgesFile) {\r\n console.log('loading edges file from url', edgesFile.url);\r\n console.time('edges');\r\n edges = initializeEdgeTable(edgesTable);\r\n files.edges = {\r\n ...edgesFile,\r\n table: edgesTable,\r\n rows: edgesTable.numRows(),\r\n };\r\n if (!nodesFile) {\r\n nodes = initializeNodeTable(edgesTable, true);\r\n }\r\n console.timeEnd('edges');\r\n }\r\n if (nodes) {\r\n console.log('nodes bigtable');\r\n nodes.print();\r\n setNodes(nodes);\r\n }\r\n if (edges) {\r\n console.log('edges');\r\n edges.print();\r\n setEdges(edges);\r\n }\r\n console.timeEnd('load');\r\n setFiles(Object.values(files));\r\n };\r\n f();\r\n }, [bundle, setNodes, setEdges, setFiles]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/51983d6f24d80fa9b95ebc4b850caed2.json b/node_modules/.cache/cache-loader/51983d6f24d80fa9b95ebc4b850caed2.json deleted file mode 100644 index 3123830..0000000 --- a/node_modules/.cache/cache-loader/51983d6f24d80fa9b95ebc4b850caed2.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\CommandBar.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\CommandBar.tsx","mtime":1631029334684},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBNb2RhbEJ1dHRvbnMgfSBmcm9tICcuL21vZGFscy9Nb2RhbEJ1dHRvbnMnOwppbXBvcnQgeyBOYXZpZ2F0aW9uIH0gZnJvbSAnLi9uYXZpZ2F0aW9uJzsKaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmltcG9ydCB7IENPTU1BTkRCQVJfSEVJR0hULCBDT01NQU5EQkFSX01BUkdJTiwgUEFORUxfV0lEVEggfSBmcm9tICd+L3N0eWxlcyc7Ci8qKg0KICogVGhpcyBpcyBhIHVuaXZlcnNhbCBjb21tYW5kIGJhciBmb3IgbmF2aWdhdGluZyBhbmQgb3BlbmluZyBtb2RhbHMuDQogKiBOb3RlIHRoZSBuYXZpZ2F0aW9uIGFuZCBtb2RhbHMgYXJlIHNwbGl0IGludG8gdHdvIGJvcmRlcmVkIGdyb3VwcyBmb3IgY2xhcml0eQ0KICovCgpleHBvcnQgY29uc3QgQ29tbWFuZEJhciA9ICgpID0+IHsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoRmxleENvbnRhaW5lciwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChCdXR0b25Hcm91cCwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChOYXZpZ2F0aW9uLCBudWxsKSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQnV0dG9uR3JvdXAsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTW9kYWxCdXR0b25zLCBudWxsKSkpKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCXdpZHRoOiAke1BBTkVMX1dJRFRIIC0gQ09NTUFOREJBUl9NQVJHSU4gKiAyfXB4OwoJbWFyZ2luOiAke0NPTU1BTkRCQVJfTUFSR0lOfXB4OwoJaGVpZ2h0OiAke0NPTU1BTkRCQVJfSEVJR0hUfXB4OwpgOwpjb25zdCBGbGV4Q29udGFpbmVyID0gc3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CglqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CmA7CmNvbnN0IEJ1dHRvbkdyb3VwID0gc3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CglhbGlnbi1pdGVtczogY2VudGVyOwoJYm9yZGVyLXJhZGl1czogMnB4OwoJYm9yZGVyOiAxcHggc29saWQgJHsoewogIHRoZW1lCn0pID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkuZmFpbnQoKS5oZXgoKX07CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/CommandBar.tsx"],"names":["ModalButtons","Navigation","React","styled","COMMANDBAR_HEIGHT","COMMANDBAR_MARGIN","PANEL_WIDTH","CommandBar","createElement","Container","FlexContainer","ButtonGroup","div","theme","application","faint","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,uBAA7B;AACA,SAASC,UAAT,QAA2B,cAA3B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,iBAAT,EAA4BC,iBAA5B,EAA+CC,WAA/C,QAAkE,UAAlE;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,UAAU,GAAG,MAAM;AAC5B,SAAQL,KAAK,CAACM,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJP,KAAK,CAACM,aAAN,CAAoBE,aAApB,EAAmC,IAAnC,EACIR,KAAK,CAACM,aAAN,CAAoBG,WAApB,EAAiC,IAAjC,EACIT,KAAK,CAACM,aAAN,CAAoBP,UAApB,EAAgC,IAAhC,CADJ,CADJ,EAGIC,KAAK,CAACM,aAAN,CAAoBG,WAApB,EAAiC,IAAjC,EACIT,KAAK,CAACM,aAAN,CAAoBR,YAApB,EAAkC,IAAlC,CADJ,CAHJ,CADI,CAAR;AAMH,CAPM;AAQP,MAAMS,SAAS,GAAGN,MAAM,CAACS,GAAK;AAC9B,UAAUN,WAAW,GAAGD,iBAAiB,GAAG,CAAE;AAC9C,WAAWA,iBAAkB;AAC7B,WAAWD,iBAAkB;AAC7B,CAJA;AAKA,MAAMM,aAAa,GAAGP,MAAM,CAACS,GAAK;AAClC;AACA;AACA,CAHA;AAIA,MAAMD,WAAW,GAAGR,MAAM,CAACS,GAAK;AAChC;AACA;AACA;AACA,qBAAqB,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,KAApB,GAA4BC,GAA5B,EAAkC;AACtE,CALA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ModalButtons } from './modals/ModalButtons';\r\nimport { Navigation } from './navigation';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { COMMANDBAR_HEIGHT, COMMANDBAR_MARGIN, PANEL_WIDTH } from '~/styles';\r\n/**\r\n * This is a universal command bar for navigating and opening modals.\r\n * Note the navigation and modals are split into two bordered groups for clarity\r\n */\r\nexport const CommandBar = () => {\r\n return (React.createElement(Container, null,\r\n React.createElement(FlexContainer, null,\r\n React.createElement(ButtonGroup, null,\r\n React.createElement(Navigation, null)),\r\n React.createElement(ButtonGroup, null,\r\n React.createElement(ModalButtons, null)))));\r\n};\r\nconst Container = styled.div `\r\n\twidth: ${PANEL_WIDTH - COMMANDBAR_MARGIN * 2}px;\r\n\tmargin: ${COMMANDBAR_MARGIN}px;\r\n\theight: ${COMMANDBAR_HEIGHT}px;\r\n`;\r\nconst FlexContainer = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n`;\r\nconst ButtonGroup = styled.div `\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tborder-radius: 2px;\r\n\tborder: 1px solid ${({ theme }) => theme.application().faint().hex()};\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/532b8f97ccfa36cc2f15bfeba2943d86.json b/node_modules/.cache/cache-loader/532b8f97ccfa36cc2f15bfeba2943d86.json deleted file mode 100644 index 3fd1418..0000000 --- a/node_modules/.cache/cache-loader/532b8f97ccfa36cc2f15bfeba2943d86.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\App.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\App.tsx","mtime":1631029334679},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyB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dXNlVXJsRmlsZXMoKTsKICBjb25zdCBtZXJnZWQgPSB1c2VNZW1vKCgpID0+IHsKICAgIC8vIGZpbGVzIG9uIHRoZSB1cmwgb3ZlcnJpZGUgcHJlc2V0IGJha2VkLWluLAogICAgLy8gYWxsb3dpbmcgb24tdGhlLWZseSBjdXN0b21pemF0aW9uCiAgICByZXR1cm4gX29iamVjdFNwcmVhZChfb2JqZWN0U3ByZWFkKHt9LCBwcmVzZXRzKSwgcGFyYW1zKTsKICB9LCBbcHJlc2V0cywgcGFyYW1zXSk7CiAgdXNlVGVzdEZpbGVzKG1lcmdlZCk7Cn0KCmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDsKY29uc3QgTWFpbiA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/App.tsx"],"names":["LazyCachingSwitch","CommandBar","usePresetData","useTestFiles","useUrlFiles","GraphViewerPage","DataManagerPage","React","useMemo","HashRouter","Route","styled","App","useData","createElement","Container","Main","path","component","presets","params","merged","div"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,qBAAlC;AACA,SAASC,UAAT,QAA2B,YAA3B;AACA,SAASC,aAAT,EAAwBC,YAAxB,EAAsCC,WAAtC,QAAyD,SAAzD;AACA,SAASC,eAAT,EAA0BC,eAA1B,QAAiD,SAAjD;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,SAASC,UAAT,EAAqBC,KAArB,QAAkC,kBAAlC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,GAAG,GAAG,MAAM;AACrBC,EAAAA,OAAO;AACP,SAAQN,KAAK,CAACO,aAAN,CAAoBL,UAApB,EAAgC,IAAhC,EACJF,KAAK,CAACO,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACIR,KAAK,CAACO,aAAN,CAAoBb,UAApB,EAAgC,IAAhC,CADJ,EAEIM,KAAK,CAACO,aAAN,CAAoBE,IAApB,EAA0B,IAA1B,EACIT,KAAK,CAACO,aAAN,CAAoBd,iBAApB,EAAuC,IAAvC,EACIO,KAAK,CAACO,aAAN,CAAoBJ,KAApB,EAA2B;AAAEO,IAAAA,IAAI,EAAE,GAAR;AAAaC,IAAAA,SAAS,EAAEb;AAAxB,GAA3B,CADJ,EAEIE,KAAK,CAACO,aAAN,CAAoBJ,KAApB,EAA2B;AAAEO,IAAAA,IAAI,EAAE,QAAR;AAAkBC,IAAAA,SAAS,EAAEZ;AAA7B,GAA3B,CAFJ,CADJ,CAFJ,CADI,CAAR;AAOH,CATM;;AAUP,SAASO,OAAT,GAAmB;AACf,QAAMM,OAAO,GAAGjB,aAAa,EAA7B;AACA,QAAMkB,MAAM,GAAGhB,WAAW,EAA1B;AACA,QAAMiB,MAAM,GAAGb,OAAO,CAAC,MAAM;AACzB;AACA;AACA,2CACOW,OADP,GAEOC,MAFP;AAIH,GAPqB,EAOnB,CAACD,OAAD,EAAUC,MAAV,CAPmB,CAAtB;AAQAjB,EAAAA,YAAY,CAACkB,MAAD,CAAZ;AACH;;AACD,MAAMN,SAAS,GAAGJ,MAAM,CAACW,GAAK,EAA9B;AACA,MAAMN,IAAI,GAAGL,MAAM,CAACW,GAAK,EAAzB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { LazyCachingSwitch } from './LazyCachingSwitch';\r\nimport { CommandBar } from './commands';\r\nimport { usePresetData, useTestFiles, useUrlFiles } from './hooks';\r\nimport { GraphViewerPage, DataManagerPage } from './pages';\r\nimport React, { useMemo } from 'react';\r\nimport { HashRouter, Route } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\nexport const App = () => {\r\n useData();\r\n return (React.createElement(HashRouter, null,\r\n React.createElement(Container, null,\r\n React.createElement(CommandBar, null),\r\n React.createElement(Main, null,\r\n React.createElement(LazyCachingSwitch, null,\r\n React.createElement(Route, { path: \"/\", component: GraphViewerPage }),\r\n React.createElement(Route, { path: \"/files\", component: DataManagerPage }))))));\r\n};\r\nfunction useData() {\r\n const presets = usePresetData();\r\n const params = useUrlFiles();\r\n const merged = useMemo(() => {\r\n // files on the url override preset baked-in,\r\n // allowing on-the-fly customization\r\n return {\r\n ...presets,\r\n ...params,\r\n };\r\n }, [presets, params]);\r\n useTestFiles(merged);\r\n}\r\nconst Container = styled.div ``;\r\nconst Main = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/535b1c729209e9ae3228aebfb6fab352.json b/node_modules/.cache/cache-loader/535b1c729209e9ae3228aebfb6fab352.json deleted file mode 100644 index ff88010..0000000 --- a/node_modules/.cache/cache-loader/535b1c729209e9ae3228aebfb6fab352.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\types.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\types.ts","mtime":1631029334876},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgdmFyIExheW91dDsKCihmdW5jdGlvbiAoTGF5b3V0KSB7CiAgTGF5b3V0WyJSYW5kb20iXSA9ICJyYW5kb20iOwogIExheW91dFsiR3JpZCJdID0gImdyaWQiOwogIExheW91dFsiRkEyIl0gPSAiZmEyIjsKICBMYXlvdXRbIk9wZW5PUkQiXSA9ICJvcGVub3JkIjsKICBMYXlvdXRbIlVNQVAiXSA9ICJ1bWFwIjsKfSkoTGF5b3V0IHx8IChMYXlvdXQgPSB7fSkpOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/layout/types.ts"],"names":["Layout"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,IAAIA,MAAJ;;AACP,CAAC,UAAUA,MAAV,EAAkB;AACfA,EAAAA,MAAM,CAAC,QAAD,CAAN,GAAmB,QAAnB;AACAA,EAAAA,MAAM,CAAC,MAAD,CAAN,GAAiB,MAAjB;AACAA,EAAAA,MAAM,CAAC,KAAD,CAAN,GAAgB,KAAhB;AACAA,EAAAA,MAAM,CAAC,SAAD,CAAN,GAAoB,SAApB;AACAA,EAAAA,MAAM,CAAC,MAAD,CAAN,GAAiB,MAAjB;AACH,CAND,EAMGA,MAAM,KAAKA,MAAM,GAAG,EAAd,CANT","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport var Layout;\r\n(function (Layout) {\r\n Layout[\"Random\"] = \"random\";\r\n Layout[\"Grid\"] = \"grid\";\r\n Layout[\"FA2\"] = \"fa2\";\r\n Layout[\"OpenORD\"] = \"openord\";\r\n Layout[\"UMAP\"] = \"umap\";\r\n})(Layout || (Layout = {}));\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/5703c618533fa72aa80a17b8dcaf5c89.json b/node_modules/.cache/cache-loader/5703c618533fa72aa80a17b8dcaf5c89.json deleted file mode 100644 index 1981497..0000000 --- a/node_modules/.cache/cache-loader/5703c618533fa72aa80a17b8dcaf5c89.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\index.tsx","mtime":1620403249254},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0dyYXBoVmlld2VyUGFnZSc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,mBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './GraphViewerPage';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/582bee67d465d328b66173ccd717f04c.json b/node_modules/.cache/cache-loader/582bee67d465d328b66173ccd717f04c.json deleted file mode 100644 index 65a0d26..0000000 --- a/node_modules/.cache/cache-loader/582bee67d465d328b66173ccd717f04c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\edgeColor.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\edgeColor.ts","mtime":1631029334899},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRyd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NvaWxTdGF0ZShlbmNvZGluZ1N0YXRlKGVuY29kaW5nLmZpZWxkIHx8ICcnKSk7CiAgY29uc3QgZmllbGRTZXR0ZXIgPSB1c2VTZXRSZWNvaWxTdGF0ZShmaWVsZFN0YXRlKTsKICByZXR1cm4gdXNlQ2FsbGJhY2sodXBkYXRlID0+IHsKICAgIGlmICh1cGRhdGUuZmllbGQpIHsKICAgICAgZmllbGRTZXR0ZXIodXBkYXRlLmZpZWxkKTsKICAgIH0gZWxzZSB7CiAgICAgIHNldHRlcihfb2JqZWN0U3ByZWFkKF9vYmplY3RTcHJlYWQoe30sIGVuY29kaW5nKSwgdXBkYXRlKSk7CiAgICB9CiAgfSwgW2VuY29kaW5nLCBzZXR0ZXIsIGZpZWxkU2V0dGVyXSk7Cn0KCmZ1bmN0aW9uIGdldERlZmF1bHRFZGdlQ29sb3JPcHRpb25zKHN0YXRzLCB0aGVtZSwgZmllbGQpIHsKICByZXR1cm4gZ2V0RGVmYXVsdENvbG9yT3B0aW9ucyhmaWVsZCB8fCAnJywgc3RhdHMsIHsKICAgIHZhbHVlOiB0aGVtZS5saW5rKCkuc3Ryb2tlKCkuaGV4KCksCiAgICB0aGVtYXRpY1NjaGVtZVBhdGg6ICdoaWdoQ29udHJhc3RBbm5vdGF0aW9uJwogIH0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/edgeColor.ts"],"names":["themeState","edgeTableState","getDefaultColorOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","theme","table","stats","getDefaultEdgeColorOptions","useEdgeColorEncoding","useUpdateEdgeColorEncoding","encoding","setter","fieldSetter","update","value","link","stroke","hex","thematicSchemePath"],"mappings":";;;;;;AAAA,SAASA,UAAT,QAA2B,aAA3B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,sBAAT,QAAuC,UAAvC;AACA,SAASC,WAAT,QAA4B,OAA5B;AACA,SAASC,IAAT,E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DQ,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,0BAAT,CAAoCD,KAApC,EAA2CF,KAA3C,EAAkDD,KAAlD,EAAyD;AACrD,SAAOb,sBAAsB,CAACa,KAAK,IAAI,EAAV,EAAcG,KAAd,EAAqB;AAC9CQ,IAAAA,KAAK,EAAEV,KAAK,CAACW,IAAN,GAAaC,MAAb,GAAsBC,GAAtB,EADuC;AAE9CC,IAAAA,kBAAkB,EAAE;AAF0B,GAArB,CAA7B;AAIH","sourcesContent":["import { themeState } from '../settings';\r\nimport { edgeTableState } from '../tables';\r\nimport { getDefaultColorOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nconst fieldState = atom({\r\n key: 'edge-color-encoding-field',\r\n default: '',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'edge-color-encoding-state',\r\n default: selectorFamily({\r\n key: 'edge-color-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n const theme = get(themeState);\r\n const table = get(edgeTableState);\r\n const stats = getColumnStats(table, field);\r\n return getDefaultEdgeColorOptions(stats, theme, field);\r\n },\r\n }),\r\n});\r\nexport function useEdgeColorEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateEdgeColorEncoding() {\r\n const encoding = useEdgeColorEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultEdgeColorOptions(stats, theme, field) {\r\n return getDefaultColorOptions(field || '', stats, {\r\n value: theme.link().stroke().hex(),\r\n thematicSchemePath: 'highContrastAnnotation',\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/59b941ae390df57ccba5f8e089051e02.json b/node_modules/.cache/cache-loader/59b941ae390df57ccba5f8e089051e02.json deleted file mode 100644 index 51b34e2..0000000 --- a/node_modules/.cache/cache-loader/59b941ae390df57ccba5f8e089051e02.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\hooks.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\hooks.ts","mtime":1631029334791},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buff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HlJZDogaywKICAgICAgICAgIGNvbm5lY3Rpb25zOiBjLAogICAgICAgICAgZWRnZUNvbW11bml0eUlkOiBjb21tdW5pdHlJZCwKICAgICAgICAgIHNpemUKICAgICAgICB9KTsKICAgICAgfQoKICAgICAgaWYgKG91dHB1dC5sZW5ndGggPiBtYXgpIHsKICAgICAgICBzdG9wKCk7CiAgICAgIH0KICAgIH0sIHRydWUpOwogICAgcmV0dXJuIG91dHB1dDsKICB9CgogIHJldHVybiBbXTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/HierarchyBrowserPanel/hooks.ts"],"names":["ROOT_COMMUNITY_ID","useMemo","findNodesCollectionForCommunity","getEdgesFromTableByID","useNavigationState","useGroupedByCommunityTable","useGroupedByParentTable","useCommunitySizes","ids","byCommunity","byParent","map","id","nodes","size","useCommunityList","communityIds","nodeTableArray","communities","reverseList","reverse","o","communityId","nodeToEntityDetail","node","columns","attrs","reduce","acc","k","value","get","nodeColumns","loadParams","columnNames","table","offset","count","values","page","useEntityCallback","handleEntityCallback","cid","selectedNeighbor","data","error","undefined","useNeighborCallback","handleNeighborCallback","params","nodeTable","edges","neighborTable","communityNeighbors","getNeighborIds","Error","counts","numRows","max","Math","min","output","key","getter","membership","scan","idx","stop","c","push","connections","edgeCommunityId","length"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,iBAAlC;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,+BAAT,EAA0CC,qBAA1C,QAAwE,WAAxE;AACA,SAASC,kBAAT,EAA6BC,0BAA7B,EAAyDC,uBAAzD,QAAyF,SAAzF;;AACA,SAASC,iBAAT,CAA2BC,GAA3B,EAAgC;AAC5B,QAAMC,WAAW,GAAGJ,0BAA0B,EAA9C;AACA,QAAMK,QAAQ,GAAGJ,uBAAuB,EAAxC;AACA,SAAOL,OAAO,CAAC,MAAM;AACjB,WAAOO,GAAG,CAACG,GAAJ,CAAQC,EAAE,IAAI;AACjB,YAAMC,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n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../../constants';\r\nimport { useMemo } from 'react';\r\nimport { findNodesCollectionForCommunity, getEdgesFromTableByID, } from '~/arquero';\r\nimport { useNavigationState, useGroupedByCommunityTable, useGroupedByParentTable, } from '~/state';\r\nfunction useCommunitySizes(ids) {\r\n const byCommunity = useGroupedByCommunityTable();\r\n const byParent = useGroupedByParentTable();\r\n return useMemo(() => {\r\n return ids.map(id => {\r\n const nodes = findNodesCollectionForCommunity(id, byParent, byCommunity);\r\n return { id, size: nodes.size };\r\n });\r\n }, [ids, byParent, byCommunity]);\r\n}\r\nexport function useCommunityList() {\r\n const communityIds = useNavigationState();\r\n const nodeTableArray = useCommunitySizes(communityIds);\r\n const communities = useMemo(() => {\r\n const reverseList = nodeTableArray.reverse();\r\n // TODO: this swaps in a friendly label for the root, which could be handled more cleanly as an optional label in HB\r\n return reverseList.map((o) => ({\r\n communityId: o.id === ROOT_COMMUNITY_ID ? 'Root' : o.id,\r\n size: o.size,\r\n }));\r\n }, [nodeTableArray]);\r\n return communities;\r\n}\r\nfunction nodeToEntityDetail(node, columns) {\r\n const attrs = columns.reduce((acc, k) => {\r\n const value = node.get(k);\r\n acc[k] = value;\r\n return acc;\r\n }, {});\r\n return { id: node.id, attrs };\r\n}\r\nfunction nodeColumns(nodes, loadParams) {\r\n const columnNames = nodes.table.columnNames();\r\n const { offset, count } = loadParams;\r\n const values = nodes.page(node => nodeToEntityDetail(node, columnNames), offset, count);\r\n return values;\r\n}\r\nexport function useEntityCallback() {\r\n async function handleEntityCallback(loadParams, byParent, byCommunity) {\r\n const cid = loadParams.communityId;\r\n const selectedNeighbor = findNodesCollectionForCommunity(cid === 'Root' ? ROOT_COMMUNITY_ID : cid, byParent, byCommunity);\r\n const data = nodeColumns(selectedNeighbor, loadParams);\r\n return { data, error: undefined };\r\n }\r\n return handleEntityCallback;\r\n}\r\nexport function useNeighborCallback() {\r\n const handleNeighborCallback = async function (params, nodeTable, edges) {\r\n const neighborTable = getEdgesFromTableByID(params.communityId, nodeTable, edges);\r\n if (neighborTable) {\r\n const communityNeighbors = getNeighborIds(neighborTable, params.communityId);\r\n return { data: communityNeighbors, error: undefined };\r\n }\r\n else {\r\n return {\r\n data: [],\r\n error: new Error(`No edges found for ${params.communityId}`),\r\n };\r\n }\r\n };\r\n return handleNeighborCallback;\r\n}\r\nfunction getNeighborIds(counts, communityId) {\r\n if (counts.numRows() > 0) {\r\n // scan the edge counts table to create a few table rows\r\n const max = Math.min(100, counts.numRows());\r\n const output = [];\r\n const key = counts.getter('key');\r\n const count = counts.getter('count');\r\n const membership = counts.getter('members');\r\n counts.scan((idx, data, stop) => {\r\n const k = key(idx);\r\n const c = count(idx);\r\n const size = membership(idx);\r\n if (communityId !== k) {\r\n output.push({\r\n communityId: k,\r\n connections: c,\r\n edgeCommunityId: communityId,\r\n size,\r\n });\r\n }\r\n if (output.length > max) {\r\n stop();\r\n }\r\n }, true);\r\n return output;\r\n }\r\n return [];\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/59ff9fcd63cdb9d15a0087c315141264.json b/node_modules/.cache/cache-loader/59ff9fcd63cdb9d15a0087c315141264.json deleted file mode 100644 index dae0858..0000000 --- a/node_modules/.cache/cache-loader/59ff9fcd63cdb9d15a0087c315141264.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\PreviewGraph\\PreviewGraph.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\PreviewGraph\\PreviewGraph.tsx","mtime":1631029334795},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBHcmFwaFZpZXdlciB9IGZyb20gJy4uL0dyYXBoVmlld2VyJzsKaW1wb3J0IHsgdXNlVGhlbWF0aWMgfSBmcm9tICdAdGhlbWF0aWMvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHsgdXNlSW50ZXJuZWRHcmFwaCB9IGZyb20gJ34vc3RhdGUvY2FjaGVzJzsKZXhwb3J0IGNvbnN0IFByZXZpZXdHcmFwaCA9ICh7CiAgd2lkdGgsCiAgaGVpZ2h0Cn0pID0+IHsKICBjb25zdCBkYXRhID0gdXNlSW50ZXJuZWRHcmFwaCgpOwogIGNvbnN0IHBsb3RTdHlsZSA9IHVzZVBsb3RTdHlsZSgpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEdyYXBoVmlld2VyLCB7CiAgICB3aWR0aDogd2lkdGgsCiAgICBoZWlnaHQ6IGhlaWdodCwKICAgIGRhdGE6IGRhdGEsCiAgICBzdHlsZTogcGxvdFN0eWxlCiAgfSk7Cn07CgpmdW5jdGlvbiB1c2VQbG90U3R5bGUoKSB7CiAgY29uc3QgdGhlbWUgPSB1c2VUaGVtYXRpYygpOwogIHJldHVybiB1c2VNZW1vKCgpID0+ICh7CiAgICBib3JkZXI6IGAxcHggc29saWQgJHt0aGVtZS5wbG90QXJlYSgpLnN0cm9rZSgpLmhleCgpfWAsCiAgICBiYWNrZ3JvdW5kOiB0aGVtZS5wbG90QXJlYSgpLmZpbGwoKS5oZXgoKQogIH0pLCBbdGhlbWVdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/PreviewGraph/PreviewGraph.tsx"],"names":["GraphViewer","useThematic","React","useMemo","useInternedGraph","PreviewGraph","width","height","data","plotStyle","usePlotStyle","createElement","style","theme","border","plotArea","stroke","hex","background","fill"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,gBAA5B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,SAASC,gBAAT,QAAiC,gBAAjC;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAuB;AAC/C,QAAMC,IAAI,GAAGJ,gBAAgB,EAA7B;AACA,QAAMK,SAAS,GAAGC,YAAY,EAA9B;AACA,SAAQR,KAAK,CAACS,aAAN,CAAoBX,WAApB,EAAiC;AAAEM,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,MAAM,EAAEA,MAAxB;AAAgCC,IAAAA,IAAI,EAAEA,IAAtC;AAA4CI,IAAAA,KAAK,EAAEH;AAAnD,GAAjC,CAAR;AACH,CAJM;;AAKP,SAASC,YAAT,GAAwB;AACpB,QAAMG,KAAK,GAAGZ,WAAW,EAAzB;AACA,SAAOE,OAAO,CAAC,OAAO;AAClBW,IAAAA,MAAM,EAAG,aAAYD,KAAK,CAACE,QAAN,GAAiBC,MAAjB,GAA0BC,GAA1B,EAAgC,EADnC;AAElBC,IAAAA,UAAU,EAAEL,KAAK,CAACE,QAAN,GAAiBI,IAAjB,GAAwBF,GAAxB;AAFM,GAAP,CAAD,EAGV,CAACJ,KAAD,CAHU,CAAd;AAIH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { GraphViewer } from '../GraphViewer';\r\nimport { useThematic } from '@thematic/react';\r\nimport React, { useMemo } from 'react';\r\nimport { useInternedGraph } from '~/state/caches';\r\nexport const PreviewGraph = ({ width, height }) => {\r\n const data = useInternedGraph();\r\n const plotStyle = usePlotStyle();\r\n return (React.createElement(GraphViewer, { width: width, height: height, data: data, style: plotStyle }));\r\n};\r\nfunction usePlotStyle() {\r\n const theme = useThematic();\r\n return useMemo(() => ({\r\n border: `1px solid ${theme.plotArea().stroke().hex()}`,\r\n background: theme.plotArea().fill().hex(),\r\n }), [theme]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/5a2c8e55e20fbf0a71efa64da474fbaf.json b/node_modules/.cache/cache-loader/5a2c8e55e20fbf0a71efa64da474fbaf.json deleted file mode 100644 index 5b8d92d..0000000 --- a/node_modules/.cache/cache-loader/5a2c8e55e20fbf0a71efa64da474fbaf.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Bar.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Bar.tsx","mtime":1631029334757},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VCYXJUZXh0Rm9yZWdyb3VuZENvbG9yLCB1c2VIb3ZlcmVkQ29sb3IgfSBmcm9tICcuLi9ob29rcyc7CmltcG9ydCB7IGVtcHR5LCB6ZXJvLCBibGFuayB9IGZyb20gJy4vY29tbW9uL2RlZmF1bHRQYXJhbXMnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgQmFyID0gKHsKICBjb21tdW5pdHksCiAgY29sdW1uLAogIGhvdmVyZWQKfSkgPT4gewogIGNvbnN0IHsKICAgIGFjY2Vzc29yID0gZW1wdHksCiAgICBzaXplU2NhbGUgPSB6ZXJvLAogICAgZmlsbFNjYWxlID0gYmxhbmssCiAgICB3aWR0aCA9IDUwLAogICAgaGVpZ2h0ID0gMTAKICB9ID0gY29sdW1uOwogIGNvbnN0IHZhbHVlID0gYWNjZXNzb3IoY29tbXVuaXR5KTsKICBjb25zdCB0ZXh0RmlsbCA9IHVzZUJhclRleHRGb3JlZ3JvdW5kQ29sb3IoKTsKICBjb25zdCBoY29sb3IgPSB1c2VIb3ZlcmVkQ29sb3IoKTsKICBjb25zdCBzaXplID0gc2l6ZVNjYWxlKHZhbHVlKSB8fCAwOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KCJzdmciLCB7CiAgICB3aWR0aDogd2lkdGgsCiAgICBoZWlnaHQ6IGhlaWdodAogIH0sIFJlYWN0LmNyZWF0ZUVsZW1lbnQoInJlY3QiLCB7CiAgICB3aWR0aDogc2l6ZSwKICAgIGhlaWdodDogaGVpZ2h0LAogICAgeDogd2lkdGggLSBzaXplLAogICAgZmlsbDogaG92ZXJlZCA/IGhjb2xvciA6IGZpbGxTY2FsZShjb21tdW5pdHkpLmhleCgpCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoInRleHQiLCB7CiAgICBmaWxsOiB0ZXh0RmlsbCwKICAgIHk6IGhlaWdodCAvIDIgKyAxLAogICAgeDogd2lkdGggLSAyLAogICAgZG9taW5hbnRCYXNlbGluZTogJ21pZGRsZScsCiAgICB0ZXh0QW5jaG9yOiAnZW5kJwogIH0sIHZhbHVlKSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/Bar.tsx"],"names":["useBarTextForegroundColor","useHoveredColor","empty","zero","blank","React","Bar","community","column","hovered","accessor","sizeScale","fillScale","width","height","value","textFill","hcolor","size","createElement","x","fill","hex","y","dominantBaseline","textAnchor"],"mappings":"AAAA;AAC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A,CAAC,EAAEP,KAAK,GAAG,CAAhD;AAAmDW,IAAAA,gBAAgB,EAAE,QAArE;AAA+EC,IAAAA,UAAU,EAAE;AAA3F,GAA5B,EAAgIV,KAAhI,CAFI,CAAR;AAGH,CATM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useBarTextForegroundColor, useHoveredColor } from '../hooks';\r\nimport { empty, zero, blank } from './common/defaultParams';\r\nimport React from 'react';\r\nexport const Bar = ({ community, column, hovered, }) => {\r\n const { accessor = empty, sizeScale = zero, fillScale = blank, width = 50, height = 10, } = column;\r\n const value = accessor(community);\r\n const textFill = useBarTextForegroundColor();\r\n const hcolor = useHoveredColor();\r\n const size = sizeScale(value) || 0;\r\n return (React.createElement(\"svg\", { width: width, height: height },\r\n React.createElement(\"rect\", { width: size, height: height, x: width - size, fill: hovered ? hcolor : fillScale(community).hex() }),\r\n React.createElement(\"text\", { fill: textFill, y: height / 2 + 1, x: width - 2, dominantBaseline: 'middle', textAnchor: 'end' }, value)));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/5a45f03bb53e6eb1d3f82034f40171d8.json b/node_modules/.cache/cache-loader/5a45f03bb53e6eb1d3f82034f40171d8.json deleted file mode 100644 index afaed8f..0000000 --- a/node_modules/.cache/cache-loader/5a45f03bb53e6eb1d3f82034f40171d8.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeSizeControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\EdgeSizeControlsPanel.tsx","mtime":1631029334725},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBFZGdlU2l6ZUNvbnRyb2xzIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vY29udHJvbHMvRWRnZVNpemVDb250cm9scyc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgRWRnZVNpemVDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoRWRnZVNpemVDb250cm9scywgbnVsbCkpOwp9Owpjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmAKCW1hcmdpbjogOHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/EdgeSizeControlsPanel.tsx"],"names":["EdgeSizeControls","React","styled","EdgeSizeControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,gBAAT,QAAiC,0CAAjC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AACvC,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,gBAApB,EAAsC,IAAtC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { EdgeSizeControls } from '../../../../../controls/EdgeSizeControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const EdgeSizeControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(EdgeSizeControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/5ad678393cbd7344128ee6ecb3b9a954.json b/node_modules/.cache/cache-loader/5ad678393cbd7344128ee6ecb3b9a954.json deleted file mode 100644 index 3c8b703..0000000 --- a/node_modules/.cache/cache-loader/5ad678393cbd7344128ee6ecb3b9a954.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\hooks.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\hooks.ts","mtime":1631029334837},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VOdW1lcmljRW5jb2RpbmdTY2FsZSwgdXNlVGhlbWF0aWNDb2xvclNjYWxlIH0gZnJvbSAnLi4vLi4vaG9va3MvZ3JhcGgnOwppbXBvcnQgeyBEYXRhQmluZGluZyB9IGZyb20gJy4uLy4uL3R5cGVzJzsKa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CBhbmQgcmUtc2NhbGVzIHRvIGVuc3VyZSBpdCBjYXB0dXJlcyB0aGUgZW5kcG9pbnRzCgogICAgaWYgKGFsbENvbG9ycy5sZW5ndGggPT09IDEwMCkgewogICAgICBjb25zdCBbbWluLCBtYXhdID0gZW5jb2RpbmcuZG9tYWluIHx8IFswLCAxXTsKICAgICAgY29uc3Qgc3RlcHMgPSAobWF4IC0gbWluKSAvIGNvdW50OwogICAgICBjb25zdCBjb2xvcnMgPSBuZXcgQXJyYXkoY291bnQpLmZpbGwoMSkubWFwKChhLCBpKSA9PiB7CiAgICAgICAgY29uc3QgdiA9IHN0ZXBzICogaSArIG1pbjsKICAgICAgICByZXR1cm4gc2NhbGUodikuaGV4KCk7CiAgICAgIH0pOwogICAgICByZXR1cm4gY29sb3JzOwogICAgfQoKICAgIHJldHVybiBzY2FsZS50b0FycmF5KGNvdW50KTsKICB9LCBbc2NhbGUsIGVuY29kaW5nLCBjb3VudF0pOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VGaXhlZENvbG9yKGVuY29kaW5nKSB7CiAgcmV0dXJuIHVzZU1lbW8oKCkgPT4gZW5jb2RpbmcudmFsdWUsIFtlbmNvZGluZ10pOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VQYWxldHRlQ29sb3IoZW5jb2RpbmcpIHsKICBjb25zdCB0aGVtZSA9IHVzZVRoZW1hdGljKCk7CiAgcmV0dXJuIHVzZU1lbW8oKCkgPT4gZ2V0TmFtZWRTY2hlbWVDb2xvcih0aGVtZS5zY2hlbWUsIGVuY29kaW5nLnRoZW1hdGljU2NoZW1lUGF0aCkuaGV4KCksIFt0aGVtZSwgZW5jb2RpbmddKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/hooks.ts"],"names":["useNumericEncodingScale","useThematicColorScale","DataBinding","getNamedSchemeColor","isNominal","useThematic","useCallback","useMemo","useIsNominal","encoding","scaleName","useLegendNumericScale","count","defaultValue","enc","binding","Fixed","value","scale","useSizeScale","index","min","max","domain","steps","v","useLegendColorScale","fixedColor","useFixedColor","paletteColor","usePaletteColor","sampledColors","useSampledColors","Palette","Scaled","allColors","toArray","length","colors","Array","fill","map","a","i","hex","theme","scheme","thematicSchemePath"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,uBAAT,EAAkCC,qBAAlC,QAAgE,mBAAhE;AACA,SAASC,WAAT,QAA4B,aAA5B;AACA,SAASC,mBAAT,EAA8BC,SAA9B,QAA+C,iBAA/C;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,OAArC;AACA,OAAO,SAASC,YAAT,CAAsBC,QAAtB,EAAgC;AACnC,SAAOF,OAAO,CAAC,MAAMH,SAAS,CAACK,QAAQ,CAACC,SAAV,CAAhB,EAAsC,CAACD,QAAD,CAAtC,CAAd;AACH;AACD,OAAO,SAASE,qBAAT,CAA+BF,QAA/B,EAAyCG,KAAK,GAAG,EAAjD;AACP;AACA;AACA;AACAC,YAAY,GAAG,CAJR,EAIW;AACd,QAAMC,GAAG,GAAGP,OAAO,CAAC,MAAM;AACtB,WAAQE,QAAQ,IACZ;AACIM,MAAAA,OAAO,EAAEb,WAAW,CAACc,KADzB;AAEIC,MAAAA,KAAK,EAAEJ;AAFX,KADJ;AAKH,GANkB,EAMhB,CAACJ,QAAD,EAAWI,YAAX,CANgB,CAAnB;AAOA,QAAMK,KAAK,GAAGC,YAAY,CAACL,GAAD,EAAMF,KAAN,CAA1B;AACA,SAAON,WAAW,CAAEW,KAAD,IAAW;AAC1B,QAAIH,GAAG,CAACC,OAAJ,KAAgBb,WAAW,CAACc,KAAhC,EAAuC;AACnC,aAAOF,GAAG,CAACG,KAAX;AACH;;AACD,WAAOC,KAAK,CAACD,KAAK,IAAI,CAAV,CAAZ;AACH,GALiB,EAKf,CAACH,GAAD,EAAMI,KAAN,CALe,CAAlB;AAMH;;AACD,SAASC,YAAT,CAAsBV,QAAtB,EAAgCG,KAAhC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AmB,CAAC0C,KAAK,CAACC,MAAP,EAAerC,QAAQ,CAACsC,kBAAxB,CAAnB,CAA+DH,GAA/D,EAAP,EAA6E,CAACC,KAAD,EAAQpC,QAAR,CAA7E,CAAd;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useNumericEncodingScale, useThematicColorScale, } from '../../hooks/graph';\r\nimport { DataBinding } from '../../types';\r\nimport { getNamedSchemeColor, isNominal } from '@thematic/color';\r\nimport { useThematic } from '@thematic/react';\r\nimport { useCallback, useMemo } from 'react';\r\nexport function useIsNominal(encoding) {\r\n return useMemo(() => isNominal(encoding.scaleName), [encoding]);\r\n}\r\nexport function useLegendNumericScale(encoding, count = 10, \r\n/**\r\n * Value to use if no encoding is provided.\r\n */\r\ndefaultValue = 0) {\r\n const enc = useMemo(() => {\r\n return (encoding ||\r\n {\r\n binding: DataBinding.Fixed,\r\n value: defaultValue,\r\n });\r\n }, [encoding, defaultValue]);\r\n const scale = useSizeScale(enc, count);\r\n return useCallback((value) => {\r\n if (enc.binding === DataBinding.Fixed) {\r\n return enc.value;\r\n }\r\n return scale(value || 0);\r\n }, [enc, scale]);\r\n}\r\nfunction useSizeScale(encoding, count) {\r\n const scale = useNumericEncodingScale(encoding);\r\n return useCallback(index => {\r\n const [min, max] = encoding.domain;\r\n const steps = (max - min) / count;\r\n const v = steps * index + min;\r\n return scale(v);\r\n }, [encoding, scale, count]);\r\n}\r\n/**\r\n * Provides an indexed color scale that maps the encoding colors\r\n * to the item position. Dynamically returns the correct color based\r\n * on encoding type.\r\n * If there is no encoding, it returns the default legend fill color.\r\n * @param encoding\r\n * @param count\r\n */\r\nexport function useLegendColorScale(encoding, count = 10, \r\n/**\r\n * Default hex color to use if no encoding is provided.\r\n */\r\ndefaultValue = 'none') {\r\n const enc = useMemo(() => {\r\n return (encoding ||\r\n {\r\n binding: DataBinding.Fixed,\r\n value: defaultValue,\r\n });\r\n }, [encoding, defaultValue]);\r\n const fixedColor = useFixedColor(enc);\r\n const paletteColor = usePaletteColor(enc);\r\n const sampledColors = useSampledColors(enc, count);\r\n return useCallback((index) => {\r\n switch (enc.binding) {\r\n case DataBinding.Fixed:\r\n return fixedColor;\r\n case DataBinding.Palette:\r\n return paletteColor;\r\n case DataBinding.Scaled:\r\n return sampledColors[index || 0];\r\n }\r\n }, [enc, fixedColor, paletteColor, sampledColors]);\r\n}\r\nexport function useSampledColors(encoding, count = 10) {\r\n const scale = useThematicColorScale(encoding);\r\n return useMemo(() => {\r\n const allColors = scale.toArray();\r\n // HACK: there is a bug in the thematic toArray for continuous scales\r\n // it does not cover the whole range correctly\r\n // this checks for a length that matches the hard-coded continuous output\r\n // for thematic, and re-scales to ensure it captures the endpoints\r\n if (allColors.length === 100) {\r\n const [min, max] = encoding.domain || [0, 1];\r\n const steps = (max - min) / count;\r\n const colors = new Array(count).fill(1).map((a, i) => {\r\n const v = steps * i + min;\r\n return scale(v).hex();\r\n });\r\n return colors;\r\n }\r\n return scale.toArray(count);\r\n }, [scale, encoding, count]);\r\n}\r\nexport function useFixedColor(encoding) {\r\n return useMemo(() => encoding.value, [encoding]);\r\n}\r\nexport function usePaletteColor(encoding) {\r\n const theme = useThematic();\r\n return useMemo(() => getNamedSchemeColor(theme.scheme, encoding.thematicSchemePath).hex(), [theme, encoding]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/5e02c5a7efcd1ed662ffce25d06bc134.json b/node_modules/.cache/cache-loader/5e02c5a7efcd1ed662ffce25d06bc134.json deleted file mode 100644 index 78e2797..0000000 --- a/node_modules/.cache/cache-loader/5e02c5a7efcd1ed662ffce25d06bc134.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\theme.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\theme.ts","mtime":1620403249337},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VUaGVtYXRpYyB9IGZyb20gJ0B0aGVtYXRpYy9yZWFjdCc7CmltcG9ydCB7IHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7CmV4cG9ydCBmdW5jdGlvbiB1c2VQbG90VGhlbWUod2lkdGgsIGhlaWdodCkgewogIGNvbnN0IHRoZW1lID0gdXNlVGhlbWF0aWMoKTsKICByZXR1cm4gdXNlTWVtbygoKSA9PiAoewogICAgd2lkdGgsCiAgICBoZWlnaHQsCiAgICBib3JkZXI6IGAxcHggc29saWQgJHt0aGVtZS5wbG90QXJlYSgpLnN0cm9rZSgpLmhleCgpfWAKICB9KSwgW3RoZW1lLCB3aWR0aCwgaGVpZ2h0XSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Minimap/hooks/theme.ts"],"names":["useThematic","useMemo","usePlotTheme","width","height","theme","border","plotArea","stroke","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,iBAA5B;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,OAAO,SAASC,YAAT,CAAsBC,KAAtB,EAA6BC,MAA7B,EAAqC;AACxC,QAAMC,KAAK,GAAGL,WAAW,EAAzB;AACA,SAAOC,OAAO,CAAC,OAAO;AAClBE,IAAAA,KADkB;AAElBC,IAAAA,MAFkB;AAGlBE,IAAAA,MAAM,EAAG,aAAYD,KAAK,CAACE,QAAN,GAAiBC,MAAjB,GAA0BC,GAA1B,EAAgC;AAHnC,GAAP,CAAD,EAIV,CAACJ,KAAD,EAAQF,KAAR,EAAeC,MAAf,CAJU,CAAd;AAKH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useThematic } from '@thematic/react';\r\nimport { useMemo } from 'react';\r\nexport function usePlotTheme(width, height) {\r\n const theme = useThematic();\r\n return useMemo(() => ({\r\n width,\r\n height,\r\n border: `1px solid ${theme.plotArea().stroke().hex()}`,\r\n }), [theme, width, height]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/60aa4b8f1dce84df191a56626d10bab1.json b/node_modules/.cache/cache-loader/60aa4b8f1dce84df191a56626d10bab1.json deleted file mode 100644 index 1ad6551..0000000 --- a/node_modules/.cache/cache-loader/60aa4b8f1dce84df191a56626d10bab1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\umap.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\umap.ts","mtime":1631029334877},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1bWFwTGF5b3V0IH0gZnJvbSAnLi4vYXBpJzsKaW1wb3J0IHsgRWRnZUNvbGxlY3Rpb24sIG5vcm1hbGl6ZVhZIH0gZnJvbSAnLi4vYXJxdWVybyc7CmltcG9ydCB7IGZyb20gfSBmcm9tICdhcnF1ZXJvJzsKLyoqDQogKiBSdW5zIG91ciBhdXRvbGF5b3V0IHVtYXAgLSBub3RlIHRoYXQgdGhpcyBtb3N0bHkganVzdCB0aHVua3Mgb3ZlciB0byB0aGUgd2ViIHNlcnZpY2UuDQogKiBAcGFyYW0gZWRnZXMNCiAqLwoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGxheW91dFVtYXAoZWRnZXMpIHsKICBjb25zdCBwb3NpdGlvbnMgPSBhd2FpdCB1bWFwTGF5b3V0KG5ldyBFZGdlQ29sbGVjdGlvbihlZGdlcykpOwogIGNvbnN0IHRyYW5zZm9ybWVkID0gcG9zaXRpb25zLm1hcChuID0+ICh7CiAgICAnbm9kZS5pZCc6IG4uaWQsCiAgICAnbm9kZS54Jzogbi54LAogICAgJ25vZGUueSc6IG4ueSwKICAgICdub2RlLmQnOiBuLmQsCiAgICAnY29tbXVuaXR5LmlkJzogbi5jb21tdW5pdHkKICB9KSk7CiAgY29uc3Qgbm9kZXMgPSBmcm9tKHRyYW5zZm9ybWVkKTsKICByZXR1cm4gbm9ybWFsaXplWFkobm9kZXMpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/layout/umap.ts"],"names":["umapLayout","EdgeCollection","normalizeXY","from","layoutUmap","edges","positions","transformed","map","n","id","x","y","d","community","nodes"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,QAA3B;AACA,SAASC,cAAT,EAAyBC,WAAzB,QAA4C,YAA5C;AACA,SAASC,IAAT,QAAqB,SAArB;AACA;AACA;AACA;AACA;;AACA,OAAO,eAAeC,UAAf,CAA0BC,KAA1B,EAAiC;AACpC,QAAMC,SAAS,GAAG,MAAMN,UAAU,CAAC,IAAIC,cAAJ,CAAmBI,KAAnB,CAAD,CAAlC;AACA,QAAME,WAAW,GAAGD,SAAS,CAACE,GAAV,CAAcC,CAAC,KAAK;AACpC,eAAWA,CAAC,CAACC,EADuB;AAEpC,cAAUD,CAAC,CAACE,CAFwB;AAGpC,cAAUF,CAAC,CAACG,CAHwB;AAIpC,cAAUH,CAAC,CAACI,CAJwB;AAKpC,oBAAgBJ,CAAC,CAACK;AALkB,GAAL,CAAf,CAApB;AAOA,QAAMC,KAAK,GAAGZ,IAAI,CAACI,WAAD,CAAlB;AACA,SAAOL,WAAW,CAACa,KAAD,CAAlB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { umapLayout } from '../api';\r\nimport { EdgeCollection, normalizeXY } from '../arquero';\r\nimport { from } from 'arquero';\r\n/**\r\n * Runs our autolayout umap - note that this mostly just thunks over to the web service.\r\n * @param edges\r\n */\r\nexport async function layoutUmap(edges) {\r\n const positions = await umapLayout(new EdgeCollection(edges));\r\n const transformed = positions.map(n => ({\r\n 'node.id': n.id,\r\n 'node.x': n.x,\r\n 'node.y': n.y,\r\n 'node.d': n.d,\r\n 'community.id': n.community,\r\n }));\r\n const nodes = from(transformed);\r\n return normalizeXY(nodes);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/60aefabb65db00c04b8c4b25275afb79.json b/node_modules/.cache/cache-loader/60aefabb65db00c04b8c4b25275afb79.json deleted file mode 100644 index c9f8ddd..0000000 --- a/node_modules/.cache/cache-loader/60aefabb65db00c04b8c4b25275afb79.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\HeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\HeaderLegend.tsx","mtime":1631029334833},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBEYXRhQmluZGluZyB9IGZyb20gJy4uLy4uL3R5cGVzJzsKaW1wb3J0IHsgQ29sb3JSYW5nZVRleHQgfSBmcm9tICcuL0NvbG9yUmFuZ2VUZXh0JzsKaW1wb3J0IHsgRGFzaGVzIH0gZnJvbSAnLi9EYXNoZXMnOwppbXBvcnQgeyBEb3RzIH0gZnJvbSAnLi9Eb3RzJzsKaW1wb3J0IHsgTGVnZW5kTGFiZWwgfSBmcm9tICcuL0xlZ2VuZExhYmVsJzsKaW1wb3J0IHsgTnVtZXJpY1JhbmdlVGV4dCB9IGZyb20gJy4vTnVtZXJpY1JhbmdlVGV4dCc7CmltcG9ydCBSZWFjdCwgeyB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lLnBsb3RBcmVhKCkuZmlsbCgpLmhleCgpfTsKCWJvcmRlcjogMXB4IHNvbGlkICR7KHsKICB0aGVtZQp9KSA9PiB0aGVtZS5wbG90QXJlYSgpLnN0cm9rZSgpLmhleCgpfTsKYDsKY29uc3QgTGVnZW5kID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDhweDsKCW1hcmdpbi1ib3R0b206IDRweDsKYDsKY29uc3QgTGVnZW5kU2VjdGlvbiA9IHN0eWxlZC5kaXZgCgloZWlnaHQ6ICR7TEVHRU5EX0hFSUdIVH1weDsKYDsKY29uc3QgUmFuZ2VTZWN0aW9uID0gc3R5bGVkLmRpdmAKCWhlaWdodDogJHtSQU5HRV9IRUlHSFR9cHg7CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/HeaderLegend.tsx"],"names":["DataBinding","ColorRangeText","Dashes","Dots","LegendLabel","NumericRangeText","React","useMemo","styled","LEGEND_WIDTH","LEGEND_HEIGHT","LEGEND_ITEMS","RANGE_HEIGHT","HeaderLegend","label","encoding","colorEncoding","sizeEncoding","opacityEncoding","isUnset","isDashes","isNumeric","createElement","Container","binding","field","fixedValue","value","paletteValue","unset","Legend","LabeledLegend","fixed","Scaled","height","Marks","rangeText","useRangeText","LegendContainer","width","LegendSection","maxItems","RangeSection","includeMidpoint","domain","div","theme","text","fill","hex","plotArea","stroke"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,aAA5B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,SAASC,MAAT,QAAuB,UAAvB;AACA,SAASC,IAAT,QAAqB,QAArB;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,MAAP,MAAmB,mBAAnB,C,CACA;;AACA,MAAMC,YAAY,GAAG,GAArB;AACA,MAAMC,aAAa,GAAG,EAAtB;AAC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nB;AAAyBC,IAAAA,MAAM,EAAE7B,QAAQ,CAAC6B;AAA1C,GAAtC,CAAJ,GAAkGtC,KAAK,CAACgB,aAAN,CAAoBrB,cAApB,EAAoC;AAAEc,IAAAA,QAAQ,EAAEA,QAAZ;AAAsB4B,IAAAA,eAAe,EAAE;AAAvC,GAApC,CAAnJ,CAAR;AACH;;AACD,MAAMpB,SAAS,GAAGf,MAAM,CAACqC,GAAK;AAC9B;AACA;AACA,CAHA;AAIA,MAAMP,eAAe,GAAG9B,MAAM,CAACqC,GAAK;AACpC;AACA;AACA;AACA,UAAU,CAAC;AAAEN,EAAAA;AAAF,CAAD,KAAeA,KAAM;AAC/B,WAAW,CAAC;AAAEL,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC;AACA;AACA,UAAU,CAAC;AAAEY,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,IAAN,GAAaC,IAAb,GAAoBC,GAApB,EAA0B;AACnD,qBAAqB,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACI,QAAN,GAAiBF,IAAjB,GAAwBC,GAAxB,EAA8B;AAClE,qBAAqB,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACI,QAAN,GAAiBC,MAAjB,GAA0BF,GAA1B,EAAgC;AACpE,CAXA;AAYA,MAAMnB,MAAM,GAAGtB,MAAM,CAACqC,GAAK;AAC3B;AACA;AACA,CAHA;AAIA,MAAML,aAAa,GAAGhC,MAAM,CAACqC,GAAK;AAClC,WAAWnC,aAAc;AACzB,CAFA;AAGA,MAAMgC,YAAY,GAAGlC,MAAM,CAACqC,GAAK;AACjC,WAAWjC,YAAa;AACxB,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding } from '../../types';\r\nimport { ColorRangeText } from './ColorRangeText';\r\nimport { Dashes } from './Dashes';\r\nimport { Dots } from './Dots';\r\nimport { LegendLabel } from './LegendLabel';\r\nimport { NumericRangeText } from './NumericRangeText';\r\nimport React, { useMemo } from 'react';\r\nimport styled from 'styled-components';\r\n// TODO: width should flex\r\nconst LEGEND_WIDTH = 260;\r\nconst LEGEND_HEIGHT = 20;\r\nconst LEGEND_ITEMS = 11;\r\nconst RANGE_HEIGHT = 12;\r\n/**\r\n * A compact horizontal legend designed to fit in panel headers.\r\n * @param param0\r\n */\r\nexport const HeaderLegend = ({ label, encoding, colorEncoding, sizeEncoding, opacityEncoding, isUnset, isDashes, isNumeric, }) => {\r\n return (React.createElement(Container, null,\r\n React.createElement(LegendLabel, { label: label, binding: encoding.binding, field: encoding.field, fixedValue: `${encoding.value}`, paletteValue: 'from palette', unset: isUnset }),\r\n !isUnset ? (React.createElement(Legend, null,\r\n React.createElement(LabeledLegend, { label: label, encoding: encoding, colorEncoding: colorEncoding, sizeEncoding: sizeEncoding, opacityEncoding: opacityEncoding, isDashes: isDashes, isNumeric: isNumeric }))) : null));\r\n};\r\nconst LabeledLegend = ({ encoding, colorEncoding, sizeEncoding, opacityEncoding, isDashes, isNumeric, }) => {\r\n const fixed = useMemo(() => encoding.binding !== DataBinding.Scaled, [encoding]);\r\n const height = useMemo(() => (fixed ? LEGEND_HEIGHT : LEGEND_HEIGHT + RANGE_HEIGHT + 4), [fixed]);\r\n const Marks = isDashes ? Dashes : Dots;\r\n const rangeText = useRangeText(encoding, isNumeric);\r\n return (React.createElement(LegendContainer, { width: LEGEND_WIDTH, height: height },\r\n React.createElement(LegendSection, null,\r\n React.createElement(Marks, { colorEncoding: colorEncoding, sizeEncoding: sizeEncoding, opacityEncoding: opacityEncoding, width: LEGEND_WIDTH, height: LEGEND_HEIGHT, maxItems: LEGEND_ITEMS })),\r\n !fixed ? rangeText : null));\r\n};\r\nfunction useRangeText(encoding, isNumeric) {\r\n return (React.createElement(RangeSection, null, isNumeric ? (React.createElement(NumericRangeText, { includeMidpoint: true, domain: encoding.domain })) : (React.createElement(ColorRangeText, { encoding: encoding, includeMidpoint: true }))));\r\n}\r\nconst Container = styled.div `\r\n\tmargin: 2px;\r\n\tmargin-left: 4px;\r\n`;\r\nconst LegendContainer = styled.div `\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tjustify-content: space-between;\r\n\twidth: ${({ width }) => width}px;\r\n\theight: ${({ height }) => height}px;\r\n\tpadding: 4px;\r\n\tborder-radius: 2px;\r\n\tcolor: ${({ theme }) => theme.text().fill().hex()};\r\n\tbackground-color: ${({ theme }) => theme.plotArea().fill().hex()};\r\n\tborder: 1px solid ${({ theme }) => theme.plotArea().stroke().hex()};\r\n`;\r\nconst Legend = styled.div `\r\n\tmargin-top: 8px;\r\n\tmargin-bottom: 4px;\r\n`;\r\nconst LegendSection = styled.div `\r\n\theight: ${LEGEND_HEIGHT}px;\r\n`;\r\nconst RangeSection = styled.div `\r\n\theight: ${RANGE_HEIGHT}px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/61eacbcf24487f7f5a892d3bad8fadd4.json b/node_modules/.cache/cache-loader/61eacbcf24487f7f5a892d3bad8fadd4.json deleted file mode 100644 index be35cb8..0000000 --- a/node_modules/.cache/cache-loader/61eacbcf24487f7f5a892d3bad8fadd4.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Settings\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Settings\\index.tsx","mtime":1620403249355},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHN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zZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgU2V0dGluZ3MgPSAoewogIHNldHRpbmdzLAogIGdyb3VwcywKICBvbkNoYW5nZQp9KSA9PiB7CiAgY29uc3QgaGFuZGxlU2V0dGluZ3NDaGFuZ2UgPSB1c2VDYWxsYmFjaygoa2V5LCB2YWx1ZSkgPT4gewogICAgaWYgKG9uQ2hhbmdlKSB7CiAgICAgIGNvbnN0IHVwZGF0ZWQgPSBfb2JqZWN0U3ByZWFkKHt9LCBzZXR0aW5ncyk7CgogICAgICB1cGRhdGVkW2tleV0gPSB2YWx1ZTsKICAgICAgb25DaGFuZ2UodXBkYXRlZCk7CiAgICB9CiAgfSwgW29uQ2hhbmdlLCBzZXR0aW5nc10pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEF1dG9TZXR0aW5ncywgewogICAgc2V0dGluZ3M6IHNldHRpbmdzLAogICAgZ3JvdXBzOiBncm91cHMsCiAgICBvbkNoYW5nZTogaGFuZGxlU2V0dGluZ3NDaGFuZ2UKICB9KTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Settings/index.tsx"],"names":["Settings","AutoSettings","React","useCallback","settings","groups","onChange","handleSettingsChange","key","value","updated","createElement"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,QAAQ,IAAIC,YAArB,QAAyC,qCAAzC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAO,MAAMH,QAAQ,GAAG,CAAC;AAAEI,EAAAA,QAAF;AAAYC,EAAAA,MAAZ;AAAoBC,EAAAA;AAApB,CAAD,KAAoC;AACxD,QAAMC,oBAAoB,GAAGJ,WAAW,CAAC,CAACK,GAAD,EAAMC,KAAN,KAAgB;AACrD,QAAIH,QAAJ,EAAc;AACV,YAAMI,OAAO,qBAAQN,QAAR,CAAb;;AACAM,MAAAA,OAAO,CAACF,GAAD,CAAP,GAAeC,KAAf;AACAH,MAAAA,QAAQ,CAACI,OAAD,CAAR;AACH;AACJ,GANuC,EAMrC,CAACJ,QAAD,EAAWF,QAAX,CANqC,CAAxC;AAOA,SAAQF,KAAK,CAACS,aAAN,CAAoBV,YAApB,EAAkC;AAAEG,IAAAA,QAAQ,EAAEA,QAAZ;AAAsBC,IAAAA,MAAM,EAAEA,MAA9B;AAAsCC,IAAAA,QAAQ,EAAEC;AAAhD,GAAlC,CAAR;AACH,CATM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Settings as AutoSettings } from '@essex-js-toolkit/themed-components';\r\nimport React, { useCallback } from 'react';\r\nexport const Settings = ({ settings, groups, onChange }) => {\r\n const handleSettingsChange = useCallback((key, value) => {\r\n if (onChange) {\r\n const updated = { ...settings };\r\n updated[key] = value;\r\n onChange(updated);\r\n }\r\n }, [onChange, settings]);\r\n return (React.createElement(AutoSettings, { settings: settings, groups: groups, onChange: handleSettingsChange }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/62215c1ff20e6eac5cccfaa320d48c9a.json b/node_modules/.cache/cache-loader/62215c1ff20e6eac5cccfaa320d48c9a.json deleted file mode 100644 index 7ef0b12..0000000 --- a/node_modules/.cache/cache-loader/62215c1ff20e6eac5cccfaa320d48c9a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityLineup\\CommunityLineup.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityLineup\\CommunityLineup.tsx","mtime":1631029334755},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgVGhlbWF0aWNMaW5ldXAgfSBmcm9tICdAZXNzZXgtanMtdG9vbGtpdC90aGVtYXRpYy1saW5ldXAnOwppbXBvcnQgUmVhY3QsIHsgbWVtbywgdXNlQ2FsbGJhY2ssIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwppbXBvcnQgJy4vQ29tbXVuaXR5TGluZXVwLmNzcyc7CmltcG9ydCB7IHVzZUFycXVlcm9WaXNpYmxlQ29tbXVuaXRpZXMsIHVzZUNvbHVtbkFycmF5IH0gZnJvbSAnfi9hcnF1ZXJvJzsKY29uc3QgTUlOX0NPTFVNTl9XSURUSCA9IDEwMDsKLyogRGlzcGxheXMgY3VycmVudCBDb21tdW5pdHkgTGluZXVwIGJhc2VkIG9uIGN1cnJlbnQgdXNlciBjb21tdW5pdHkgc2VsZWN0aW9uDQppbiBOYXZpZ2F0aW9uIFBhbmVsIGFuZCB1c2VzIHRoZW1hdGljLWxpbmV1cA0KKi8KCmV4cG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SCA/IHdpZHRoUGVyQ29sdW1uIDogTUlOX0NPTFVNTl9XSURUSCwKICAgICAgICAgIGZyb3plbjogdHJ1ZQogICAgICAgIH07CiAgICAgIH0pOwogICAgfQoKICAgIHJldHVybiBbXTsKICB9LCBbY29sdW1ucywgd2lkdGgsIGdldFR5cGVPZl0pOwogIHJldHVybiBjb25maWdzOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityLineup/CommunityLineup.tsx"],"names":["ThematicLineup","React","memo","useCallback","useMemo","styled","useArqueroVisibleCommunities","useColumnArray","MIN_COLUMN_WIDTH","CommunityLineup","width","height","communities","columnConfig","useColumnConfig","lineupData","length","values","map","comm","item","reduce","acc","column","name","get","createElement","Container","histograms","data","columns","defaultSortColumn","defaultSortAscending","Fragment","div","label","col","value","split","spaced","replace","substr","toUpperCase","toLowerCase","sortColumns","defs","alpha","sort","filter","s","Object","keys","columnList","getTypeOf","columnName","table","configs","widthPerColumn","i","type","frozen"],"mappings":"AAAA,SAASA,cAAT,QAA+B,mCAA/B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,WAAtB,EAAmCC,OAAnC,QAAkD,OAAlD;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,uBAAP;AACA,SAASC,4BAAT,EAAuCC,cAAvC,QAA8D,WAA9D;AACA,MAAMC,gBAAgB,GAAG,GAAzB;AACA;AACA;AACA;;AACA,OAAO,MAAMC,eAAe,GAAGP,IAAI,CAAC,SAASO,eAAT,CAAyB;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAzB,EAA4C;AAC5E,QAAMC,WAAW,GAAGN,4BAA4B,EAAhD;AACA,QAAMO,YAAY,GAAGC,eAAe,CAACF,WAAD,EAAcF,KAAd,CAApC;AACA,QAAMK,UAAU,GAAGX,OAAO,CAAC,MAAM;AAC7B,QAAIS,YAAY,CAACG,MAAb,GAAsB,CAA1B,EAA6B;AACzB,YAAMC,MAAM,GAAGL,WAAW,CAACM,GA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C/C,KAAK,GAAG,EAAR,GAAaoB,OAAO,CAACd,MAAR,GAAiB,CAA/B,IAAoCc,OAAO,CAACd,MAAnE;AACA,aAAOc,OAAO,CAACZ,GAAR,CAAY,CAACK,MAAD,EAASmC,CAAT,KAAe;AAC9B,cAAMJ,UAAU,GAAGnB,KAAK,CAACZ,MAAD,CAAxB;AACA,eAAO;AACHC,UAAAA,IAAI,EAAED,MADH;AAEHY,UAAAA,KAAK,EAAEmB,UAFJ;AAGHK,UAAAA,IAAI,EAAEN,SAAS,CAAC9B,MAAD,CAHZ;AAIHb,UAAAA,KAAK,EAAE+C,cAAc,GAAGjD,gBAAjB,GACDiD,cADC,GAEDjD,gBANH;AAOHoD,UAAAA,MAAM,EAAE;AAPL,SAAP;AASH,OAXM,CAAP;AAYH;;AACD,WAAO,EAAP;AACH,GAlBsB,EAkBpB,CAAC9B,OAAD,EAAUpB,KAAV,EAAiB2C,SAAjB,CAlBoB,CAAvB;AAmBA,SAAOG,OAAP;AACH","sourcesContent":["import { ThematicLineup } from '@essex-js-toolkit/thematic-lineup';\r\nimport React, { memo, useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport './CommunityLineup.css';\r\nimport { useArqueroVisibleCommunities, useColumnArray, } from '~/arquero';\r\nconst MIN_COLUMN_WIDTH = 100;\r\n/* Displays current Community Lineup based on current user community selection\r\nin Navigation Panel and uses thematic-lineup\r\n*/\r\nexport const CommunityLineup = memo(function CommunityLineup({ width, height }) {\r\n const communities = useArqueroVisibleCommunities();\r\n const columnConfig = useColumnConfig(communities, width);\r\n const lineupData = useMemo(() => {\r\n if (columnConfig.length > 0) {\r\n const values = communities.map(comm => {\r\n const item = columnConfig.reduce((acc, column) => {\r\n acc[column.name] = comm.get(column.name);\r\n return acc;\r\n }, {});\r\n return item;\r\n });\r\n return values;\r\n }\r\n return [];\r\n }, [columnConfig, communities]);\r\n return (React.createElement(Container, { width: width }, lineupData.length > 0 ? (React.createElement(ThematicLineup, { histograms: true, data: lineupData, columns: columnConfig, width: width, height: height, \r\n // TODO: this should use the column ID, not the label. is this a lineup bug?\r\n defaultSortColumn: 'Node count', defaultSortAscending: false })) : (React.createElement(React.Fragment, null))));\r\n});\r\nconst Container = styled.div `\r\n\tmax-width: ${({ width }) => width};\r\n`;\r\nfunction label(col) {\r\n const value = col.split('.')[1];\r\n const spaced = value.replace(/([a-z0-9])([A-Z])/g, '$1 $2');\r\n return spaced.substr(0, 1).toUpperCase() + spaced.substr(1).toLowerCase();\r\n}\r\n// sorts the columns to make sure the first three match the drilldown, and the rest are alpha\r\nfunction sortColumns(columns) {\r\n const defs = {\r\n 'community.id': true,\r\n 'community.nodeCount': true,\r\n 'community.childCount': true,\r\n };\r\n const alpha = [...columns.sort()].filter(s => !defs[s]);\r\n return [...Object.keys(defs), ...alpha];\r\n}\r\nfunction useColumnConfig(communities, width) {\r\n const columnList = useColumnArray(communities, ['community'], []);\r\n const columns = useMemo(() => {\r\n if (columnList.length > 0) {\r\n return sortColumns(columnList);\r\n }\r\n return [];\r\n }, [columnList]);\r\n const getTypeOf = useCallback((columnName) => typeof communities.table.get(columnName, 0), [communities]);\r\n const configs = useMemo(() => {\r\n if (columns.length > 0) {\r\n // extra 20px from lineup for selection column, and 5px per for right margin of all\r\n const widthPerColumn = (width - 25 - columns.length * 5) / columns.length;\r\n return columns.map((column, i) => {\r\n const columnName = label(column);\r\n return {\r\n name: column,\r\n label: columnName,\r\n type: getTypeOf(column),\r\n width: widthPerColumn > MIN_COLUMN_WIDTH\r\n ? widthPerColumn\r\n : MIN_COLUMN_WIDTH,\r\n frozen: true,\r\n };\r\n });\r\n }\r\n return [];\r\n }, [columns, width, getTypeOf]);\r\n return configs;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6429e97a6b902d887f78aec3916ebe96.json b/node_modules/.cache/cache-loader/6429e97a6b902d887f78aec3916ebe96.json deleted file mode 100644 index 53471ef..0000000 --- a/node_modules/.cache/cache-loader/6429e97a6b902d887f78aec3916ebe96.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeColorControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeColorControls\\index.tsx","mtime":1620403249373},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL05vZGVDb2xvckNvbnRyb2xzJzs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeColorControls/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,qBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './NodeColorControls';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/647cead8d6e6615f9fd4b77de56f910f.json b/node_modules/.cache/cache-loader/647cead8d6e6615f9fd4b77de56f910f.json deleted file mode 100644 index 8628617..0000000 --- a/node_modules/.cache/cache-loader/647cead8d6e6615f9fd4b77de56f910f.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeDetailsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeDetailsPanel.tsx","mtime":1624559748186},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QsIHsgdXNlRWZmZWN0LCB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmltcG9ydCB7IHVzZUhvdmVyZWROb2RlLCB1c2VTZWxlY3RlZENvbW11bml0eSB9IGZyb20gJ34vc3RhdGUnOwppbXBvcnQgeyB1c2VWaXNpYmxlTm9kZU1hcCB9IGZyb20gJ34vc3RhdGUvY2FjaGVzJzsKY29uc3QgUk9XX0hFSUdIVCA9IDE0Owpjb25zdCBERUZBVUxUX0hFSUdIVCA9IFJPV19IRUlHSFQgKiA5OwpleHBvcnQgY29uc3QgTm9kZURldGFpbHNQYW5lbCA9ICgpID0+IHsKICBjb25zdCBjaWQgPSB1c2VTZWxlY3RlZENvbW11bml0eSgpOwogIGNvbnN0IG5vZGVNYXAgPSB1c2VWaXNpYmxlTm9kZU1hcChjaWQpOwogIGNvbnN0IG5vZGVJZCA9IHVzZUhvdmVyZWROb2RlKCk7CiAgY29uc3QgZGV0YWlscyA9IHVzZU1lbW8oKCkgPT4gewogICAgaWYgKG5vZGVJZCkgewogICAgICBjb25zdCBub2RlID0gbm9kZU1hcC5nZXQobm9kZUlkKTsKICAgICAgcmV0dXJuIG5vZGUgPT09IG51bGwgfHwgbm9kZSA9PT0gdm9pZCAw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c3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CgloZWlnaHQ6IDEwMCU7CglhbGlnbi1pdGVtczogY2VudGVyOwoJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7CmA7CmNvbnN0IEZpZWxkID0gc3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CglqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKCW1hcmdpbi1ib3R0b206IDFweDsKYDsKY29uc3QgTmFtZSA9IHN0eWxlZC5kaXZgCglmbGV4OiAxOwoJdGV4dC1hbGlnbjogcmlnaHQ7CgltYXJnaW4tcmlnaHQ6IDRweDsKCWZvbnQtd2VpZ2h0OiBib2xkOwoJY29sb3I6ICR7KHsKICB0aGVtZQp9KSA9PiB0aGVtZS5hcHBsaWNhdGlvbigpLm1pZENvbnRyYXN0KCkuaGV4KCl9OwpgOwpjb25zdCBWYWx1ZSA9IHN0eWxlZC5kaXZgCglmbGV4OiAxOwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeDetailsPanel.tsx"],"names":["React","useEffect","useMemo","useState","styled","useHoveredNode","useSelectedCommunity","useVisibleNodeMap","ROW_HEIGHT","DEFAULT_HEIGHT","NodeDetailsPanel","cid","nodeMap","nodeId","details","node","get","columns","reduce","acc","cur","height","setHeight","Object","keys","length","createElement","Content","entries","map","entry","Field","key","Name","Value","Empty","div","theme","application","midContrast","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,OAA3B,EAAoCC,QAApC,QAAoD,OAApD;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,cAAT,EAAyBC,oBAAzB,QAAqD,SAArD;AACA,SAASC,iBAAT,QAAkC,gBAAlC;AACA,MAAMC,UAAU,GAAG,EAAnB;AACA,MAAMC,cAAc,GAAGD,UAAU,GAAG,CAApC;AACA,OAAO,MAAME,gBAAgB,G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AA0B,IAA1B,EAAgCH,KAAK,CAAC,CAAD,CAArC,CADsG,EAEtG9B,KAAK,CAAC0B,aAAN,CAAoBQ,KAApB,EAA2B,IAA3B,EAAiCJ,KAAK,CAAC,CAAD,CAAtC,CAFsG,CAAtC,CAAJ,GAEV9B,KAAK,CAAC0B,aAAN,CAAoBS,KAApB,EAA2B,IAA3B,EAAiC,4BAAjC,CAF9C,CAAR;AAGH,CAtBM;AAuBP,MAAMR,OAAO,GAAGvB,MAAM,CAACgC,GAAK;AAC5B,WAAW,CAAC;AAAEf,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC;AACA;AACA,CAJA;AAKA,MAAMc,KAAK,GAAG/B,MAAM,CAACgC,GAAK;AAC1B;AACA;AACA;AACA;AACA,CALA;AAMA,MAAML,KAAK,GAAG3B,MAAM,CAACgC,GAAK;AAC1B;AACA;AACA;AACA,CAJA;AAKA,MAAMH,IAAI,GAAG7B,MAAM,CAACgC,GAAK;AACzB;AACA;AACA;AACA;AACA,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AACjE,CANA;AAOA,MAAMN,KAAK,GAAG9B,MAAM,CAACgC,GAAK;AAC1B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React, { useEffect, useMemo, useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useHoveredNode, useSelectedCommunity } from '~/state';\r\nimport { useVisibleNodeMap } from '~/state/caches';\r\nconst ROW_HEIGHT = 14;\r\nconst DEFAULT_HEIGHT = ROW_HEIGHT * 9;\r\nexport const NodeDetailsPanel = () => {\r\n const cid = useSelectedCommunity();\r\n const nodeMap = useVisibleNodeMap(cid);\r\n const nodeId = useHoveredNode();\r\n const details = useMemo(() => {\r\n if (nodeId) {\r\n const node = nodeMap.get(nodeId);\r\n return node?.columns.reduce((acc, cur) => {\r\n acc[cur] = node?.get(cur);\r\n return acc;\r\n }, {});\r\n }\r\n }, [nodeMap, nodeId]);\r\n const [height, setHeight] = useState(DEFAULT_HEIGHT);\r\n useEffect(() => {\r\n if (details) {\r\n setHeight(Object.keys(details).length * ROW_HEIGHT);\r\n }\r\n }, [details]);\r\n return (React.createElement(Content, { height: height }, details ? (Object.entries(details).map(entry => (React.createElement(Field, { key: `node-details-${entry[0]}` },\r\n React.createElement(Name, null, entry[0]),\r\n React.createElement(Value, null, entry[1]))))) : (React.createElement(Empty, null, \"(hover a node for details)\"))));\r\n};\r\nconst Content = styled.div `\r\n\theight: ${({ height }) => height}px;\r\n\tmargin: 4px;\r\n\tfont-size: 0.7em;\r\n`;\r\nconst Empty = styled.div `\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n`;\r\nconst Field = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\tmargin-bottom: 1px;\r\n`;\r\nconst Name = styled.div `\r\n\tflex: 1;\r\n\ttext-align: right;\r\n\tmargin-right: 4px;\r\n\tfont-weight: bold;\r\n\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n`;\r\nconst Value = styled.div `\r\n\tflex: 1;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6521714bf451d1161321161bea18e5c4.json b/node_modules/.cache/cache-loader/6521714bf451d1161321161bea18e5c4.json deleted file mode 100644 index d03a011..0000000 --- a/node_modules/.cache/cache-loader/6521714bf451d1161321161bea18e5c4.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\ColumnEditorPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\ColumnEditorPanel.tsx","mtime":1631029334717},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBDb2x1bW5FZGl0b3IgfSBmcm9tICcuLi8uLi8uLi8uLi8uLi9Db2x1bW5FZGl0b3InOwppbXBvcnQgeyBEZWZhdWx0QnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20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m90dG9tOiAxMHB4OwoJdGV4dC1hbGlnbjogY2VudGVyOwoJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7CmA7CmNvbnN0IFJlc2V0ID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDEwcHg7CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/ColumnEditorPanel.tsx"],"names":["ColumnEditor","DefaultButton","React","useCallback","styled","useArqueroBigTable","useArqueroEdgeTable","useClearAllData","useClearFiles","ColumnEditorPanel","bigTable","edgeTable","resetTables","resetFiles","handleResetClick","createElement","Content","Reset","numRows","text","onClick","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,kBAAT,EAA6BC,mBAA7B,EAAkDC,eAAlD,QAA0E,WAA1E;AACA,SAASC,aAAT,QAA8B,SAA9B;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAAM;AACnC,QAAMC,QAAQ,GAAGL,kBAAkB,EAAnC;AACA,QAAMM,SAAS,GAAGL,mBAAmB,EAArC;AACA,QAAMM,WAAW,GAAGL,eAAe,EAAnC;AACA,QAAMM,UAAU,GAAGL,aAAa,EAAhC;AACA,QAAMM,gBAAgB,GAAGX,WAAW,CAAC,MAAM;AACvCS,IAAAA,WAAW;AACXC,IAAAA,UAAU;AACb,GAHmC,EAGjC,CAACD,WAAD,EAAcC,UAAd,CAHiC,CAApC;AAIA,SAAQX,KAAK,CAACa,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJd,KAAK,CAACa,aAAN,CAAoBf,YAApB,EAAkC,IAAlC,CADI,EAEJE,KAAK,CAACa,aAAN,CAAoBE,KAApB,EAA2B,IAA3B,EAAiCP,QAAQ,CAACQ,OAAT,KAAqB,CAArB,IAA0BP,SAAS,CAACO,OAAV,KAAsB,CAAhD,GAAqDhB,KAAK,CAACa,aAAN,CAAoBd,aAApB,EAAmC;AAAEkB,IAAAA,IAAI,EAAE,WAAR;AAAqBC,IAAAA,OAAO,EAAEN;AAA9B,GAAnC,CAArD,GAA6I,IAA9K,CAFI,CAAR;AAGH,CAZM;AAaP,MAAME,OAAO,GAAGZ,MAAM,CAACiB,GAAK;AAC5B;AACA;AACA;AACA;AACA,CALA;AAMA,MAAMJ,KAAK,GAAGb,MAAM,CAACiB,GAAK;AAC1B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ColumnEditor } from '../../../../../ColumnEditor';\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroBigTable, useArqueroEdgeTable, useClearAllData, } from '~/arquero';\r\nimport { useClearFiles } from '~/state';\r\nexport const ColumnEditorPanel = () => {\r\n const bigTable = useArqueroBigTable();\r\n const edgeTable = useArqueroEdgeTable();\r\n const resetTables = useClearAllData();\r\n const resetFiles = useClearFiles();\r\n const handleResetClick = useCallback(() => {\r\n resetTables();\r\n resetFiles();\r\n }, [resetTables, resetFiles]);\r\n return (React.createElement(Content, null,\r\n React.createElement(ColumnEditor, null),\r\n React.createElement(Reset, null, bigTable.numRows() > 0 || edgeTable.numRows() > 0 ? (React.createElement(DefaultButton, { text: \"Clear all\", onClick: handleResetClick })) : null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 20px;\r\n\tmargin-bottom: 10px;\r\n\ttext-align: center;\r\n\tjustify-content: center;\r\n`;\r\nconst Reset = styled.div `\r\n\tmargin-top: 10px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/659948c82f4f6e6a014cb2d9d67fb91a.json b/node_modules/.cache/cache-loader/659948c82f4f6e6a014cb2d9d67fb91a.json deleted file mode 100644 index 1d1b30f..0000000 --- a/node_modules/.cache/cache-loader/659948c82f4f6e6a014cb2d9d67fb91a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\LegendLabel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\LegendLabel.tsx","mtime":1631029334835},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiA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JlbmRlcik7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCglmb250LXNpemU6IDAuOGVtOwoJZGlzcGxheTogZmxleDsKCWFsaWduLWl0ZW1zOiBjZW50ZXI7CmA7CmNvbnN0IExhYmVsID0gc3R5bGVkLmRpdmAKCW1hcmdpbi1yaWdodDogNHB4OwpgOwpjb25zdCBVbnNldCA9IHN0eWxlZC5kaXZgCgljb2xvcjogJHsoewogIHRoZW1lCn0pID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkubWlkQ29udHJhc3QoKS5oZXgoKX07CmA7CmNvbnN0IEZpeGVkID0gc3R5bGVkLmRpdmBgOyAvLyBwcm92aWRlIGEgc3VidGxlIGluZGljYXRpb24gdGhhdCB0aGVzZSBhcmUgZHluYW1pYwoKY29uc3QgRmllbGQgPSBzdHlsZWQuZGl2YAoJJjpiZWZvcmUgewoJCWNvbnRlbnQ6ICdbJzsKCQltYXJnaW4tcmlnaHQ6IDNweDsKCQljb2xvcjogJHsoewogIHRoZW1lCn0pID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkubWlkQ29udHJhc3QoKS5oZXgoKX07Cgl9CgkmOmFmdGVyIHsKCQljb250ZW50OiAnXSBjb2x1bW4nOwoJCW1hcmdpbi1sZWZ0OiAzcHg7CgkJY29sb3I6ICR7KHsKICB0aGVtZQp9KSA9PiB0aGVtZS5hcHBsaWNhdGlvbigpLm1pZENvbnRyYXN0KCkuaGV4KCl9OwoJfQpgOwpjb25zdCBQYWxldHRlID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/LegendLabel.tsx"],"names":["DataBinding","React","useMemo","styled","LegendLabel","label","binding","field","fixedValue","paletteValue","unset","render","createElement","Unset","Fixed","Scaled","Field","Palette","Container","Label","div","theme","application","midContrast","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,aAA5B;AACA,OAAOC,KAAP,IAAgBC,OA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K,GAAGV,MAAM,CAACiB,GAAK;AAC1B,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AACjE,CAFA;AAGA,MAAMV,KAAK,GAAGX,MAAM,CAACiB,GAAK,EAA1B,C,CACA;;AACA,MAAMJ,KAAK,GAAGb,MAAM,CAACiB,GAAK;AAC1B;AACA;AACA;AACA,WAAW,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AAClE;AACA;AACA;AACA;AACA,WAAW,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AAClE;AACA,CAXA;AAYA,MAAMP,OAAO,GAAGd,MAAM,CAACiB,GAAK,EAA5B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding } from '../../types';\r\nimport React, { useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const LegendLabel = ({ label, binding, field = '', fixedValue = '', paletteValue = '', unset, }) => {\r\n const render = useMemo(() => {\r\n if (unset) {\r\n return React.createElement(Unset, null, \"\\u2014\");\r\n }\r\n switch (binding) {\r\n case DataBinding.Fixed:\r\n return React.createElement(Fixed, null, fixedValue);\r\n case DataBinding.Scaled:\r\n return React.createElement(Field, null, field);\r\n case DataBinding.Palette:\r\n return React.createElement(Palette, null, paletteValue);\r\n }\r\n }, [binding, field, fixedValue, paletteValue, unset]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Label, null,\r\n label,\r\n \":\"),\r\n render));\r\n};\r\nconst Container = styled.div `\r\n\tfont-size: 0.8em;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n`;\r\nconst Label = styled.div `\r\n\tmargin-right: 4px;\r\n`;\r\nconst Unset = styled.div `\r\n\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n`;\r\nconst Fixed = styled.div ``;\r\n// provide a subtle indication that these are dynamic\r\nconst Field = styled.div `\r\n\t&:before {\r\n\t\tcontent: '[';\r\n\t\tmargin-right: 3px;\r\n\t\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n\t}\r\n\t&:after {\r\n\t\tcontent: '] column';\r\n\t\tmargin-left: 3px;\r\n\t\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n\t}\r\n`;\r\nconst Palette = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/662ab3fdada5efc4f23d8d943b88bae9.json b/node_modules/.cache/cache-loader/662ab3fdada5efc4f23d8d943b88bae9.json deleted file mode 100644 index 53c6b2b..0000000 --- a/node_modules/.cache/cache-loader/662ab3fdada5efc4f23d8d943b88bae9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\GraphViewer\\hooks\\positions.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\GraphViewer\\hooks\\positions.ts","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHsgdXNlU3RhbmRhcmROb2RlUG9zaXRpb25zLCB1c2VHcmlkZGVkTm9kZVBvc2l0aW9ucyB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IFZpZXdUeXBlIH0gZnJvbSAnfi90eXBlcyc7IC8vIGNyZWF0ZXMgdHdvIHNldHMgb2YgcG9zaXRpb25zIGZvciB0aGUgbm9kZXMKLy8gMTogdGhlaXIgZGVmYXVsdCBsYXlvdXQKLy8gMjogYSBncmlkZGVkIGNvbW11bml0eSBzbWFsbCBtdWx0aXBsZXMgbGF5b3V0CgpleHBvcnQgZnVuY3Rpb24gdXNlUG9zaXRpb25zKHZpZXcpIHsKICBjb25zdCBkZWZhdWx0UG9zaXRpb25NYXAgPSB1c2VTdGFuZGFyZE5vZGVQb3NpdGlvbnMoKTsKICBjb25zdCBncmlkZGVkUG9zaXRpb25NYXAgPSB1c2VHcmlkZGVkTm9kZVBvc2l0aW9ucyh2aWV3ID09PSBWaWV3VHlwZS5TbWFsbE11bHRpcGxlKTsKICByZXR1cm4gdXNlTWVtbygoKSA9PiBbZGVmYXVsdFBvc2l0aW9uTWFwLCBncmlkZGVkUG9zaXRpb25NYXBdLCBbZGVmYXVsdFBvc2l0aW9uTWFwLCBncmlkZGVkUG9zaXRpb25NYXBdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/GraphViewer/hooks/positions.ts"],"names":["useMemo","useStandardNodePositions","useGriddedNodePositions","ViewType","usePositions","view","defaultPositionMap","griddedPositionMap","SmallMultiple"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,wBAAT,EAAmCC,uBAAnC,QAAkE,WAAlE;AACA,SAASC,QAAT,QAAyB,SAAzB,C,CACA;AACA;AACA;;AACA,OAAO,SAASC,YAAT,CAAsBC,IAAtB,EAA4B;AAC/B,QAAMC,kBAAkB,GAAGL,wBAAwB,EAAnD;AACA,QAAMM,kBAAkB,GAAGL,uBAAuB,CAACG,IAAI,KAAKF,QAAQ,CAACK,aAAnB,CAAlD;AACA,SAAOR,OAAO,CAAC,MAAM,CAACM,kBAAD,EAAqBC,kBAArB,CAAP,EAAiD,CAACD,kBAAD,EAAqBC,kBAArB,CAAjD,CAAd;AACH","sourcesContent":["import { useMemo } from 'react';\r\nimport { useStandardNodePositions, useGriddedNodePositions } from '~/arquero';\r\nimport { ViewType } from '~/types';\r\n// creates two sets of positions for the nodes\r\n// 1: their default layout\r\n// 2: a gridded community small multiples layout\r\nexport function usePositions(view) {\r\n const defaultPositionMap = useStandardNodePositions();\r\n const griddedPositionMap = useGriddedNodePositions(view === ViewType.SmallMultiple);\r\n return useMemo(() => [defaultPositionMap, griddedPositionMap], [defaultPositionMap, griddedPositionMap]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/67e9631e688a79f0365d2913b0cf72f9.json b/node_modules/.cache/cache-loader/67e9631e688a79f0365d2913b0cf72f9.json deleted file mode 100644 index a2c7b0f..0000000 --- a/node_modules/.cache/cache-loader/67e9631e688a79f0365d2913b0cf72f9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\table.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\table.ts","mtime":1631029334675},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBST09UX0NPTU1VTklUWV9JRCB9IGZyb20gJy4uL2NvbnN0YW50cyc7CmltcG9ydCB7IGFsbCwgbm90LCBvcCB9IGZyb20gJ2FycXVlcm8nOwovKioNCiAqIEV4dHJhY3RzIHRoZSBvYmplY3RzIGZyb20gYSBzaW5nbGUtcm93IHRhYmxlLg0KICogVGhpcyBpcyBjb21tb25seSBuZWVkZWQgd2hlbiBkb2luZyByb2xsdXBzIHRoYXQgb3V0cHV0DQogKiBhIHNpbmdsZSByb3cgb2Ygc3RhdHMuDQogKiBAcGFyYW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GFibGUNCiAqIEBwYXJhbSByZWFkT25seU5hbWVzDQogKi8KCmV4cG9ydCBmdW5jdGlvbiBsaXN0Q29sdW1uRGVmcyh0YWJsZSwgcmVhZE9ubHlOYW1lcykgewogIGlmICh0YWJsZS5udW1Sb3dzKCkgPT09IDApIHsKICAgIHJldHVybiBbXTsKICB9CgogIHJldHVybiB0YWJsZS5jb2x1bW5OYW1lcygpLm1hcChuYW1lID0+ICh7CiAgICBuYW1lLAogICAgdHlwZTogbmFtZS5zcGxpdCgnLicpWzBdLAogICAgZGF0YVR5cGU6IHR5cGVvZiB0YWJsZS5nZXQobmFtZSwgMCksCiAgICByZWFkT25seTogcmVhZE9ubHlOYW1lcyAmJiByZWFkT25seU5hbWVzLmhhcyhuYW1lKQogIH0pKTsKfQpleHBvcnQgZnVuY3Rpb24gbGlzdENvbHVtbk5hbWVzKHRhYmxlKSB7CiAgY29uc3QgZGVmcyA9IGxpc3RDb2x1bW5EZWZzKHRhYmxlKTsKICByZXR1cm4gZGVmcy5tYXAoZCA9PiBkLm5hbWUpOwp9CmV4cG9ydCBmdW5jdGlvbiBmaW5kR3JvdXBJbmRpY2VzKHRhYmxlLCBmaWVsZCwgdmFsdWUpIHsKICBpZiAodGFibGUubnVtUm93cygpID4gMCkgewogICAgY29uc3QgZ3JvdXBzID0gdGFibGUuZ3JvdXBzKCk7CiAgICBjb25zdCBpbmRleCA9IGdyb3Vwcy5yb3dzLmZpbmRJbmRleChyb3dJbmRleCA9PiB0YWJsZS5nZXQoZmllbGQsIHJvd0luZGV4KSA9PT0gdmFsdWUpOwogICAgcmV0dXJuIHRhYmxlLnBhcnRpdGlvbnMoKVtpbmRleF07CiAgfQp9"},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/table.ts"],"names":["ROOT_COMMUNITY_ID","all","not","op","one","table","objects","rename","prefix","exclude","ex","Set","columnNames","reduce","obj","name","has","startsWith","hasColumn","column","some","columnTypes","numRows","map","type","get","recomputeCommunityStats","force","selected","select","mergedChildCount","checkAndAddChildCount","mergedNodeCount","checkAndAddNodeCount","ensureColumn","variants","fallback","fixed","variant","ensureNodeId","ensureCommunityId","derive","ensureParentCommunityId","params","pid","_","$","fixPid","d","ensureX","Math","random","ensureY","ensureD","ensureNodeLabel","ensureEdgeSource","ensureEdgeTarget","ensureEdgeWeight","ensureEdgeId","normalizeXY","bounds","rollup","xMin","min","xMax","max","yMin","yMax","xRange","abs","yRange","aspect","normalizeD","prefixes","node","community","edge","prefixRemaining","columns","pref","split","spec","acc","col","chain","functions","cur","initializeNodeTable","fromEdges","starter","fold","dedupe","ungroup","value","initializeJoinTable","initializeEdgeTable","initializeCommunityTable","joinNodeCommunityTables","nodes","communities","leftKey","rightKey","safe","joined","joinWithReplace","left","right","joinDefinition","join","joinDataTables","joinKey","filter","toMerge","main","childCount","groupby","count","as","join_left","listColumnDefs","readOnlyNames","dataType","readOnly","listColumnNames","defs","findGroupIndices","field","groups","index","rows","findIndex","rowIndex","partitions"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,cAAlC;AACA,SAASC,GAAT,EAAcC,GAAd,EAAmBC,EAAnB,QAA6B,SAA7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,GAAT,CAAaC,KAAb,EAAoB;AACvB,SAAOA,KAAK,CAACC,OAAN,GAAgB,CAAhB,CAAP;AACH;AACD;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,MAAT,CAAgBF,KAAhB,EAAuBG,MAAvB,EAA+BC,OAA/B,EAAwC;AAC3C,QAAMC,EAAE,GAAG,IAAIC,GAAJ,CAAQF,OAAR,CAAX;AACA,SAAOJ,KAAK,CAACO,WAAN,GAAoBC,MAApB,CAA2B,CAACC,GAAD,EAAMC,IAAN,KAAe;AAC7C,QAAIL,EAAE,CAACM,GAAH,CAAOD,IAAP,KAAgBA,IAAI,CAACE,UAAL,CAAgBT,MAAhB,CAApB,EAA6C;AACzCM,MAAAA,GAAG,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AL,CAA5B,CAAP;AAMH;AACD,OAAO,SAAS4G,eAAT,CAAyBtH,KAAzB,EAAgC;AACnC,QAAMuH,IAAI,GAAGL,cAAc,CAAClH,KAAD,CAA3B;AACA,SAAOuH,IAAI,CAACrG,GAAL,CAASyB,CAAC,IAAIA,CAAC,CAACjC,IAAhB,CAAP;AACH;AACD,OAAO,SAAS8G,gBAAT,CAA0BxH,KAA1B,EAAiCyH,KAAjC,EAAwCjC,KAAxC,EAA+C;AAClD,MAAIxF,KAAK,CAACiB,OAAN,KAAkB,CAAtB,EAAyB;AACrB,UAAMyG,MAAM,GAAG1H,KAAK,CAAC0H,MAAN,EAAf;AACA,UAAMC,KAAK,GAAGD,MAAM,CAACE,IAAP,CAAYC,SAAZ,CAAuBC,QAAD,IAAc9H,KAAK,CAACoB,GAAN,CAAUqG,KAAV,EAAiBK,QAAjB,MAA+BtC,KAAnE,CAAd;AACA,WAAOxF,KAAK,CAAC+H,UAAN,GAAmBJ,KAAnB,CAAP;AACH;AACJ","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../constants';\r\nimport { all, not, op } from 'arquero';\r\n/**\r\n * Extracts the objects from a single-row table.\r\n * This is commonly needed when doing rollups that output\r\n * a single row of stats.\r\n * @param table\r\n */\r\n// TODO: this is pretty basic, but the intent would be to provide optional\r\n// transformers per column or as a whole\r\nexport function one(table) {\r\n return table.objects()[0];\r\n}\r\n/**\r\n * Return a selection mapping that renames columns with a prefix.\r\n * @param table table to enumerate and rename columns\r\n * @param prefix prefix to add to column names\r\n * @param exclude exclusion list if you want to retain some original columns\r\n */\r\nexport function rename(table, prefix, exclude) {\r\n const ex = new Set(exclude);\r\n return table.columnNames().reduce((obj, name) => {\r\n if (ex.has(name) || name.startsWith(prefix)) {\r\n obj[name] = name;\r\n }\r\n else {\r\n obj[name] = `${prefix}${name}`;\r\n }\r\n return obj;\r\n }, {});\r\n}\r\nexport function hasColumn(table, column) {\r\n return table.columnNames().some(name => name === column);\r\n}\r\nexport function columnTypes(table) {\r\n if (table.numRows() === 0) {\r\n return [];\r\n }\r\n return table.columnNames().map(name => ({\r\n name,\r\n type: typeof table.get(name, 0),\r\n }));\r\n}\r\nexport function recomputeCommunityStats(table, force) {\r\n const selected = force\r\n ? table.select(not(['community.nodeCount', 'community.childCount']))\r\n : table;\r\n const mergedChildCount = checkAndAddChildCount(selected);\r\n const mergedNodeCount = checkAndAddNodeCount(mergedChildCount);\r\n return mergedNodeCount;\r\n}\r\n/**\r\n * Check to ensure a table contains an expected column.\r\n * If not, cycle through valid alternates and rename as\r\n * the expected column. If still no success, use a fallback\r\n * function to define the column.\r\n * @param table\r\n * @param name\r\n * @param variants\r\n * @param fallback\r\n */\r\nfunction ensureColumn(table, name, variants, fallback) {\r\n if (hasColumn(table, name)) {\r\n return table;\r\n }\r\n let fixed;\r\n variants.some(variant => {\r\n if (hasColumn(table, variant)) {\r\n fixed = table.select(all(), {\r\n [variant]: name,\r\n });\r\n return true;\r\n }\r\n return false;\r\n });\r\n return fixed || fallback(table);\r\n}\r\n/**\r\n * Check the columns to make sure we have a node.id,\r\n * falling back on other common options.\r\n * In the worst case, we select the first column.\r\n * @param table\r\n */\r\nfunction ensureNodeId(table) {\r\n return ensureColumn(table, 'node.id', ['id', 'ID', 'nodeId'], table => {\r\n // just pick the first - this is risky, but sometimes we don't have a header at all\r\n const column = table.columnNames()[0];\r\n return table.select(all(), {\r\n [column]: 'node.id',\r\n });\r\n });\r\n}\r\n/**\r\n * Check the colunns to make sure we have a community id ('cid').\r\n * This is required at a basic level for all node tables, so if one isn't\r\n * present we just default to '0' as an id\r\n * @param table\r\n */\r\nfunction ensureCommunityId(table) {\r\n return ensureColumn(table, 'community.id', ['node.community', 'cid', 'community', 'clusterId'], table => {\r\n return table.derive({\r\n 'community.id': () => '0',\r\n });\r\n });\r\n}\r\nfunction ensureParentCommunityId(table) {\r\n return ensureColumn(table, 'community.pid', ['pid', 'parentCluster', 'parent'], table => {\r\n return table\r\n .params({\r\n pid: ROOT_COMMUNITY_ID,\r\n })\r\n .derive({\r\n 'community.pid': (_, $) => $.pid,\r\n });\r\n });\r\n}\r\n// TEMP: make sure there are no empties, which some csvs have\r\n// use our -1 default.\r\n// TODO: use empty as default instead of -1, which need broader refactor\r\nfunction fixPid(table) {\r\n return table\r\n .params({\r\n pid: ROOT_COMMUNITY_ID,\r\n })\r\n .derive({\r\n 'community.pid': (d, $) => d['community.pid'] || $.pid,\r\n });\r\n}\r\nfunction ensureX(table) {\r\n return ensureColumn(table, 'node.x', ['x', 'X'], table => {\r\n return table.derive({\r\n 'node.x': () => Math.random(),\r\n });\r\n });\r\n}\r\nfunction ensureY(table) {\r\n return ensureColumn(table, 'node.y', ['y', 'Y'], table => {\r\n return table.derive({\r\n 'node.y': () => Math.random(),\r\n });\r\n });\r\n}\r\nfunction ensureD(table) {\r\n return ensureColumn(table, 'node.d', ['d', 'D', 'size', 'weight'], table => {\r\n return table.derive({\r\n 'node.d': () => 1,\r\n });\r\n });\r\n}\r\nfunction ensureNodeLabel(table) {\r\n return ensureColumn(table, 'node.label', ['label', 'name'], table => {\r\n return table.derive({\r\n 'node.label': (d) => d['node.id'],\r\n });\r\n });\r\n}\r\nfunction ensureEdgeSource(table) {\r\n return ensureColumn(table, 'edge.source', ['source', 'src'], table => {\r\n return table.derive({\r\n 'edge.source': () => '0',\r\n });\r\n });\r\n}\r\nfunction ensureEdgeTarget(table) {\r\n return ensureColumn(table, 'edge.target', ['target', 'tgt'], table => {\r\n return table.derive({\r\n 'edge.target': () => '1',\r\n });\r\n });\r\n}\r\nfunction ensureEdgeWeight(table) {\r\n return ensureColumn(table, 'edge.weight', ['weight', 'value'], table => {\r\n return table.derive({\r\n 'edge.weight': () => 1,\r\n });\r\n });\r\n}\r\nfunction ensureEdgeId(table) {\r\n return ensureColumn(table, 'edge.id', ['id', 'edgeId'], table => {\r\n return table.derive({\r\n 'edge.id': (d) => `${d['edge.source']}-${d['edge.target']}`,\r\n });\r\n });\r\n}\r\n// normalizes x and y in a single operation because we need to maintain aspect ratio\r\nexport function normalizeXY(table) {\r\n const bounds = table.rollup({\r\n xMin: op.min('node.x'),\r\n xMax: op.max('node.x'),\r\n yMin: op.min('node.y'),\r\n yMax: op.max('node.y'),\r\n });\r\n const xRange = bounds.get('xMax', 0) + Math.abs(bounds.get('xMin', 0));\r\n const yRange = bounds.get('yMax', 0) + Math.abs(bounds.get('yMin', 0));\r\n const aspect = xRange / yRange;\r\n return table\r\n .params({\r\n xMin: Math.abs(bounds.get('xMin', 0)),\r\n xRange,\r\n yMin: Math.abs(bounds.get('yMin', 0)),\r\n yRange,\r\n aspect,\r\n })\r\n .derive({\r\n 'node.x': (d, $) => ((d['node.x'] + $.xMin) / $.xRange) * $.aspect,\r\n 'node.y': (d, $) => (d['node.y'] + $.yMin) / $.yRange,\r\n });\r\n}\r\nfunction normalizeD(table) {\r\n // for the node size, the range should always be positive\r\n // we usually specify a minimum of 5 in the files - we do\r\n // not want those going to 0 once normalized, so here we\r\n // just norm by the max\r\n const bounds = table.rollup({\r\n max: op.max('node.d'),\r\n });\r\n return table\r\n .params({\r\n max: bounds.get('max', 0),\r\n })\r\n .derive({\r\n 'node.d': (d, $) => d['node.d'] / $.max,\r\n });\r\n}\r\nconst prefixes = {\r\n node: true,\r\n community: true,\r\n edge: true,\r\n};\r\n// our current \"data model\" expects every column to have a type prefix\r\n// used for filtering views, etc.\r\n// this will find any unprefixed columns and add the specified one to them\r\nfunction prefixRemaining(table, prefix) {\r\n const columns = table.columnNames(name => {\r\n const pref = name.split('.')[0];\r\n return !prefixes[pref];\r\n });\r\n const spec = columns.reduce((acc, col) => {\r\n acc[col] = `${prefix}.${col}`;\r\n return acc;\r\n }, {});\r\n return table.select(all(), spec);\r\n}\r\n/**\r\n * Apply a list of functions to a table in series, returning the final output.\r\n * Helper because Arquero does not have something akin to d3's `call`.\r\n * @param table\r\n * @param functions\r\n */\r\nexport function chain(table, functions) {\r\n return functions.reduce((acc, cur) => cur(acc), table);\r\n}\r\n/**\r\n * Take a starter node table and ensure it has all the required columns (or default values)\r\n * @param table\r\n * @param type\r\n */\r\nexport function initializeNodeTable(table, fromEdges = false) {\r\n const starter = fromEdges\r\n ? table\r\n .fold(['source', 'target'])\r\n .dedupe('value')\r\n .ungroup()\r\n .select({ value: 'id' })\r\n : table;\r\n return chain(starter, [\r\n ensureNodeId,\r\n ensureNodeLabel,\r\n ensureCommunityId,\r\n ensureParentCommunityId,\r\n ensureX,\r\n ensureY,\r\n ensureD,\r\n normalizeXY,\r\n normalizeD,\r\n table => prefixRemaining(table, 'node'),\r\n checkAndAddChildCount,\r\n checkAndAddNodeCount,\r\n ]);\r\n}\r\nexport function initializeJoinTable(table) {\r\n return chain(table, [ensureNodeId, ensureCommunityId]);\r\n}\r\nexport function initializeEdgeTable(table) {\r\n return chain(table, [\r\n ensureEdgeSource,\r\n ensureEdgeTarget,\r\n ensureEdgeId,\r\n ensureEdgeWeight,\r\n table => prefixRemaining(table, 'edge'),\r\n ]);\r\n}\r\nexport function initializeCommunityTable(table) {\r\n return chain(table, [\r\n ensureCommunityId,\r\n table => prefixRemaining(table, 'community'),\r\n ]);\r\n}\r\nexport function joinNodeCommunityTables(nodes, communities) {\r\n const leftKey = 'node.id';\r\n const rightKey = 'node.id';\r\n // ensure the community table (right)\r\n const safe = chain(communities, [\r\n ensureNodeId,\r\n ensureCommunityId,\r\n ensureParentCommunityId,\r\n fixPid,\r\n table => prefixRemaining(table, 'community'),\r\n ]);\r\n const joined = joinWithReplace(nodes, safe, [leftKey, rightKey]);\r\n // if the communities join doesn't have precomputes, run them now\r\n const rollup = recomputeCommunityStats(joined, !hasColumn(communities, 'community.childCount') ||\r\n !hasColumn(communities, 'community.nodeCount'));\r\n return rollup;\r\n}\r\n/**\r\n * Simple join that replaces any columns in the left with matching columns in the right.\r\n * Normal arquero behavior is the rename collisions, but we have so much dependence on\r\n * expected columns that this causes problems.\r\n * It's especially frequent because the join keys are renamed,\r\n * so this lets us join and exclude the key\r\n * @param left\r\n * @param right\r\n * @param leftKey\r\n * @param rightKey\r\n */\r\nexport function joinWithReplace(left, right, joinDefinition) {\r\n return left.join(right, joinDefinition, [not(right.columnNames()), all()]);\r\n}\r\n/**\r\n * Join a new table to existing, using strict rules of id and prefix.\r\n * I.e., this is not a general-purpose join util, but rather one that\r\n * simplifies our joins by assuming an id column and a prefix for output columns.\r\n * @param left\r\n * @param right\r\n * @param type\r\n * @param leftKey optional explicit left key, otherwise it will use `${type}.id`\r\n * @param rightKey optional explicit right key, otherwise it will use 'id'\r\n */\r\nexport function joinDataTables(left, right, type, leftKey, rightKey = 'id') {\r\n const joinKey = leftKey || `${type}.id`;\r\n // for any new columns, we'll add the object type prefix (i.e., node or community),\r\n // and preserve the required 'id' column. note that node and community ids are stored as\r\n // strings in csv, so we need to override potential autotyping performed by arquero\r\n // TODO: this disallows joining of existing columns,\r\n // because that results in unpredictable column names\r\n // we could allow overwrite OR make sure the new columns have an intentional new suffix so the existing ones\r\n // do not receive a new suffix\r\n // avoid existing columns so they don't collide\r\n // unless we're doing that on purpose!\r\n const exclude = new Set(left.columnNames());\r\n const filter = (name) => !exclude.has(name);\r\n // TODO: flexibility ideas: we require an ID column now, but this could also (a) just use the first column,\r\n // and (b) auto-generate an incremental id if none appears present\r\n const toMerge = right\r\n // rename all new columns with their prefix except the id\r\n .select((table) => rename(table, `${type}.`, [rightKey]))\r\n .select((table) => table.columnNames(filter));\r\n return left.join(toMerge, [joinKey, rightKey], [all(), not(rightKey)]);\r\n}\r\n/**\r\n * This checks the main table for community.childCount column and computes if missing\r\n * @param main current fully-populated table with joined communities\r\n * @param communities flat community list to rollup childCount\r\n */\r\nexport function checkAndAddChildCount(main) {\r\n if (hasColumn(main, 'community.childCount')) {\r\n return main;\r\n }\r\n // TODO: is there a faster way to compute this without involving a secondary table?\r\n const childCount = main\r\n .dedupe('community.id')\r\n .groupby('community.pid')\r\n .count({ as: 'community.childCount' });\r\n return main\r\n .join_left(childCount, ['community.id', 'community.pid'], [all(), not('community.pid')])\r\n .derive({\r\n // join will leave empty cells where there is no match\r\n // TODO: can join op be enhanced to provide a fallback fill?\r\n 'community.childCount': (d) => d['community.childCount'] || 0,\r\n });\r\n}\r\n/**\r\n * This checks the main table for a community.nodeCount column and computes if missing\r\n * @param main current fully-populated table with joined communities\r\n */\r\nexport function checkAndAddNodeCount(main) {\r\n if (hasColumn(main, 'community.nodeCount')) {\r\n return main;\r\n }\r\n return main\r\n .groupby('community.id')\r\n .derive({\r\n 'community.nodeCount': op.count(),\r\n })\r\n .ungroup();\r\n}\r\n/**\r\n * Create a set of ColumnDefs by enumerating the table.\r\n * Optional set of column names indicating they are read-only (i.e., not deletable in UI)\r\n * @param table\r\n * @param readOnlyNames\r\n */\r\nexport function listColumnDefs(table, readOnlyNames) {\r\n if (table.numRows() === 0) {\r\n return [];\r\n }\r\n return table.columnNames().map(name => ({\r\n name,\r\n type: name.split('.')[0],\r\n dataType: typeof table.get(name, 0),\r\n readOnly: readOnlyNames && readOnlyNames.has(name),\r\n }));\r\n}\r\nexport function listColumnNames(table) {\r\n const defs = listColumnDefs(table);\r\n return defs.map(d => d.name);\r\n}\r\nexport function findGroupIndices(table, field, value) {\r\n if (table.numRows() > 0) {\r\n const groups = table.groups();\r\n const index = groups.rows.findIndex((rowIndex) => table.get(field, rowIndex) === value);\r\n return table.partitions()[index];\r\n }\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/69aec30cfc3c9cfe9d00d08db2623f2e.json b/node_modules/.cache/cache-loader/69aec30cfc3c9cfe9d00d08db2623f2e.json deleted file mode 100644 index 114c900..0000000 --- a/node_modules/.cache/cache-loader/69aec30cfc3c9cfe9d00d08db2623f2e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityLineup\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityLineup\\index.tsx","mtime":1620403249265},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NvbW11bml0eUxpbmV1cCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityLineup/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,mBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './CommunityLineup';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6bdfce993f5cb7f7fe68c3eb2816336e.json b/node_modules/.cache/cache-loader/6bdfce993f5cb7f7fe68c3eb2816336e.json deleted file mode 100644 index 38e3e94..0000000 --- a/node_modules/.cache/cache-loader/6bdfce993f5cb7f7fe68c3eb2816336e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Export\\Export.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Export\\Export.tsx","mtime":1631029334772},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29m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ources":["C:/ws/graph-drill/src/components/Export/Export.tsx"],"names":["ImageSettings","useCreateRenderer","useSaveImage","Spinner","ActionButton","React","useCallback","useState","styled","DEFAULT_IMAGE_SETTINGS","filename","size","Export","renderer","setRenderer","create","setCreate","save","setSave","handleExportClick","imageSettings","setImageSettings","handleImageSettingsChange","s","handleOnRenderer","r","handleSaveComplete","createElement","Container","settings","onChange","title","iconProps","iconName","onClick","label","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,iBAA9B;AACA,SAASC,iBAAT,QAAkC,2BAAlC;AACA,SAASC,YAAT,QAA6B,sBAA7B;AACA,SAASC,OAAT,EAAkBC,YAAlB,QAAsC,iBAAtC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,QAA7B,QAA6C,OAA7C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,sBAAsB,GAAG;AAC3BC,EAAAA,QAAQ,EAAE,OADiB;AAE3BC,EAAAA,IAAI,EAAE;AAFqB,CAA/B;AAIA,OAAO,MAAMC,MAAM,GAAG,MAAM;AACxB,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BP,QAAQ,EAAxC;AACA,QAAM,CAACQ,MAAD,EAASC,SAAT,IAAsBT,QAAQ,CAAC,KAAD,CAApC;AACA,QAAM,CAACU,IAAD,EAAOC,OAAP,IAAkBX,QAAQ,CAAC,KAAD,CAAhC;AACA,QAAMY,iBAAiB,GAAGb,WAAW,CAAC,MAAM;AACxCU,IAAAA,SAAS,CAAC,IAAD,CAAT;AACAE,IAAAA,OAAO,CAAC,IAAD,CAAP;AACH,GAHoC,EAGlC,EAHkC,CAArC;AAIA,QAAM,CAACE,aAAD,EAAgBC,gBAAhB,IAAoCd,QAAQ,CAACE,sBAAD,CAAlD;AACA,QAAMa,yBAAyB,GAAGhB,WAAW,CAACiB,CAAC,IAAIF,gBAAgB,CAACE,CAAD,CAAtB,EAA2B,EAA3B,CAA7C;AACA,QAAMC,gBAAgB,GAAGlB,WAAW,CAACmB,CAAC,IAAIX,WAAW,CAACW,CAAD,CAAjB,EAAsB,EAAtB,CAApC;AACA,QAAMC,kBAAkB,GAAGpB,WAAW,CAAC,MAAMY,OAAO,CAAC,KAAD,CAAd,EAAuB,EAAvB,CAAtC;AACAjB,EAAAA,iBAAiB,CAACc,MAAD,EAASS,gBAAT,CAAjB;AACAtB,EAAAA,YAAY,CAACe,IAAD,EAAOG,aAAP,EAAsBP,QAAtB,EAAgCa,kBAAhC,CAAZ;AACA,SAAQrB,KAAK,CAACsB,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJvB,KAAK,CAACsB,aAAN,CAAoB3B,aAApB,EAAmC;AAAE6B,IAAAA,QAAQ,EAAET,aAAZ;AAA2BU,IAAAA,QAAQ,EAAER;AAArC,GAAnC,CADI,EAEJjB,KAAK,CAACsB,aAAN,CAAoBvB,YAApB,EAAkC;AAAE2B,IAAAA,KAAK,EAAE,kBAAT;AAA6BC,IAAAA,SAAS,EAAE;AAAEC,MAAAA,QAAQ,EAAE;AAAZ,KAAxC;AAAkEC,IAAAA,OAAO,EAAEf;AAA3E,GAAlC,EAAkI,MAAlI,CAFI,EAGJF,IAAI,GAAGZ,KAAK,CAACsB,aAAN,CAAoBxB,OAApB,EAA6B;AAAEgC,IAAAA,KAAK,EAAE;AAAT,GAA7B,CAAH,GAAmE,IAHnE,CAAR;AAIH,CAlBM;AAmBP,MAAMP,SAAS,GAAGpB,MAAM,CAAC4B,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ImageSettings } from './ImageSettings';\r\nimport { useCreateRenderer } from './hooks/useCreateRenderer';\r\nimport { useSaveImage } from './hooks/useSaveImage';\r\nimport { Spinner, ActionButton } from '@fluentui/react';\r\nimport React, { useCallback, useState } from 'react';\r\nimport styled from 'styled-components';\r\nconst DEFAULT_IMAGE_SETTINGS = {\r\n filename: 'graph',\r\n size: 2000,\r\n};\r\nexport const Export = () => {\r\n const [renderer, setRenderer] = useState();\r\n const [create, setCreate] = useState(false);\r\n const [save, setSave] = useState(false);\r\n const handleExportClick = useCallback(() => {\r\n setCreate(true);\r\n setSave(true);\r\n }, []);\r\n const [imageSettings, setImageSettings] = useState(DEFAULT_IMAGE_SETTINGS);\r\n const handleImageSettingsChange = useCallback(s => setImageSettings(s), []);\r\n const handleOnRenderer = useCallback(r => setRenderer(r), []);\r\n const handleSaveComplete = useCallback(() => setSave(false), []);\r\n useCreateRenderer(create, handleOnRenderer);\r\n useSaveImage(save, imageSettings, renderer, handleSaveComplete);\r\n return (React.createElement(Container, null,\r\n React.createElement(ImageSettings, { settings: imageSettings, onChange: handleImageSettingsChange }),\r\n React.createElement(ActionButton, { title: 'Save graph image', iconProps: { iconName: 'Download' }, onClick: handleExportClick }, \"Save\"),\r\n save ? React.createElement(Spinner, { label: 'Preparing image...' }) : null));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6c2ac0a21033334154fcd491cd4ba866.json b/node_modules/.cache/cache-loader/6c2ac0a21033334154fcd491cd4ba866.json deleted file mode 100644 index c529c47..0000000 --- a/node_modules/.cache/cache-loader/6c2ac0a21033334154fcd491cd4ba866.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\index.ts","mtime":1620403249279},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NlbGwnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,QAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './Cell';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6c319574ad2221a532539097096a9211.json b/node_modules/.cache/cache-loader/6c319574ad2221a532539097096a9211.json deleted file mode 100644 index 0b5ffa2..0000000 --- a/node_modules/.cache/cache-loader/6c319574ad2221a532539097096a9211.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\nodes.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\nodes.ts","mtime":1631029334865},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBWaWV3VHlwZSB9IGZyb20gJy4uLy4uL3R5cGVzJzsKaW1wb3J0IHsgdXNlQ29sb3JpemVyLCB1c2VSYW5nZSwgdXNlV2VpZ2h0ZXIgfSBmcm9tICcuL2dyYXNwb2xvZ2ljJzsKaW1wb3J0IHsgdX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JhdGlvbiwKICAgICAgeDogaWQgPT4gewogICAgICAgIHZhciBfcG9zaXRpb25zJGlkOwoKICAgICAgICByZXR1cm4gKChfcG9zaXRpb25zJGlkID0gcG9zaXRpb25zW2lkXSkgPT09IG51bGwgfHwgX3Bvc2l0aW9ucyRpZCA9PT0gdm9pZCAwID8gdm9pZCAwIDogX3Bvc2l0aW9ucyRpZC54KSB8fCAwOwogICAgICB9LAogICAgICB5OiBpZCA9PiB7CiAgICAgICAgdmFyIF9wb3NpdGlvbnMkaWQyOwoKICAgICAgICByZXR1cm4gKChfcG9zaXRpb25zJGlkMiA9IHBvc2l0aW9uc1tpZF0pID09PSBudWxsIHx8IF9wb3NpdGlvbnMkaWQyID09PSB2b2lkIDAgPyB2b2lkIDAgOiBfcG9zaXRpb25zJGlkMi55KSB8fCAwOwogICAgICB9CiAgICB9OwogIH0sIFtwb3NpdGlvbk1hcHMsIHZpZXcsIGR1cmF0aW9uXSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/nodes.ts"],"names":["ViewType","useColorizer","useRange","useWeighter","useMemo","useNodeColorEncoding","useNodeSizeEncoding","useSelectedCommunity","useVisibleNodeMap","useNodeOpacityEncoding","useNodeIds","nodes","map","node","id","useNodeColumns","ids","attrs","x","y","d","useNodeWeighter","encoding","cid","useNodeColorScale","colorEncoding","opacityEncoding","useNodeSizeRange","useNodePositions","positionMaps","view","duration","positions","SingleGraph"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,QAAT,QAAyB,aAAzB;AACA,SAASC,YAAT,EAAuBC,QAAvB,EAAiCC,WAAjC,QAAoD,eAApD;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,oBAAT,EAA+BC,mBAA/B,EAAoDC,oBAApD,QAAiF,SAAjF;AACA,SAASC,iBAAT,QAAkC,gBAAlC;AACA,SAASC,sBAAT,QAAuC,yBAAvC;AACA,OAAO,SAASC,UAAT,CAAoBC,KAApB,EAA2B;AAC9B,SAAOP,O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AASe,gBAAT,GAA4B;AAC/B,QAAML,QAAQ,GAAGhB,mBAAmB,EAApC;AACA,SAAOJ,QAAQ,CAACoB,QAAD,CAAf;AACH;AACD,OAAO,SAASM,gBAAT,CAA0BC,YAA1B,EAAwCC,IAAxC,EAA8CC,QAA9C,EAAwD;AAC3D,SAAO3B,OAAO,CAAC,MAAM;AACjB,UAAM4B,SAAS,GAAGF,IAAI,KAAK9B,QAAQ,CAACiC,WAAlB,GAAgCJ,YAAY,CAAC,CAAD,CAA5C,GAAkDA,YAAY,CAAC,CAAD,CAAhF;AACA,WAAO;AACHE,MAAAA,QADG;AAEHb,MAAAA,CAAC,EAAEJ,EAAE;AAAA;;AAAA,eAAI,kBAAAkB,SAAS,CAAClB,EAAD,CAAT,gEAAeI,CAAf,KAAoB,CAAxB;AAAA,OAFF;AAGHC,MAAAA,CAAC,EAAEL,EAAE;AAAA;;AAAA,eAAI,mBAAAkB,SAAS,CAAClB,EAAD,CAAT,kEAAeK,CAAf,KAAoB,CAAxB;AAAA;AAHF,KAAP;AAKH,GAPa,EAOX,CAACU,YAAD,EAAeC,IAAf,EAAqBC,QAArB,CAPW,CAAd;AAQH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ViewType } from '../../types';\r\nimport { useColorizer, useRange, useWeighter } from './graspologic';\r\nimport { useMemo } from 'react';\r\nimport { useNodeColorEncoding, useNodeSizeEncoding, useSelectedCommunity, } from '~/state';\r\nimport { useVisibleNodeMap } from '~/state/caches';\r\nimport { useNodeOpacityEncoding } from '~/state/vis/nodeOpacity';\r\nexport function useNodeIds(nodes) {\r\n return useMemo(() => (nodes ? nodes.map(node => node.id) : []), [nodes]);\r\n}\r\nexport function useNodeColumns(nodes) {\r\n const ids = useMemo(() => {\r\n if (nodes) {\r\n return nodes.map(node => {\r\n const attrs = { x: node.x, y: node.y, d: node.d };\r\n return { id: node.id, attrs };\r\n });\r\n }\r\n return [];\r\n }, [nodes]);\r\n return ids;\r\n}\r\nexport function useNodeWeighter() {\r\n const encoding = useNodeSizeEncoding();\r\n const cid = useSelectedCommunity();\r\n const map = useVisibleNodeMap(cid);\r\n return useWeighter(encoding, map);\r\n}\r\nexport function useNodeColorScale() {\r\n const colorEncoding = useNodeColorEncoding();\r\n const opacityEncoding = useNodeOpacityEncoding();\r\n const cid = useSelectedCommunity();\r\n const map = useVisibleNodeMap(cid);\r\n return useColorizer(colorEncoding, opacityEncoding, map);\r\n}\r\n/**\r\n * Radii are bound to a min/max width rather than\r\n * completely scale-driven like color.\r\n * This toggles between the fixed min/max and scaled.\r\n */\r\nexport function useNodeSizeRange() {\r\n const encoding = useNodeSizeEncoding();\r\n return useRange(encoding);\r\n}\r\nexport function useNodePositions(positionMaps, view, duration) {\r\n return useMemo(() => {\r\n const positions = view === ViewType.SingleGraph ? positionMaps[0] : positionMaps[1];\r\n return {\r\n duration,\r\n x: id => positions[id]?.x || 0,\r\n y: id => positions[id]?.y || 0,\r\n };\r\n }, [positionMaps, view, duration]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6e497c3765531cc7f22233cb7ca3cb93.json b/node_modules/.cache/cache-loader/6e497c3765531cc7f22233cb7ca3cb93.json deleted file mode 100644 index 234c9d3..0000000 --- a/node_modules/.cache/cache-loader/6e497c3765531cc7f22233cb7ca3cb93.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Export\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Export\\index.tsx","mtime":1620403249310},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0V4cG9ydCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/Export/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,UAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './Export';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6e4d59e7ba965f62d5a95925ccce9ce6.json b/node_modules/.cache/cache-loader/6e4d59e7ba965f62d5a95925ccce9ce6.json deleted file mode 100644 index 36a6a28..0000000 --- a/node_modules/.cache/cache-loader/6e4d59e7ba965f62d5a95925ccce9ce6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\PivotContent.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\PivotContent.tsx","mtime":1631029334681},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBCcm93c2VyT3B0aW9ucyB9IGZyb20gJy4uLy4uL3R5cGVzJzsKaW1wb3J0IHsgUGl2b3QsIFBpdm90SXRlbSB9IGZyb20gJ0BmbHV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hbmRsZUxpbmtDbGljaywKICAgIGhlYWRlcnNPbmx5OiB0cnVlLAogICAgZ2V0VGFiSWQ6IGdldFRhYklkCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChQaXZvdEl0ZW0sIHsKICAgIGhlYWRlclRleHQ6ICJIaWVyYXJjaHkgQnJvd3NlciIsCiAgICBpdGVtS2V5OiBCcm93c2VyT3B0aW9ucy5Ccm93c2VyCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoUGl2b3RJdGVtLCB7CiAgICBoZWFkZXJUZXh0OiAiQ29tbXVuaXR5IExpbmV1cCIsCiAgICBpdGVtS2V5OiBCcm93c2VyT3B0aW9ucy5MaW5ldXAKICB9KSkpOwp9KTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/PivotContent.tsx"],"names":["BrowserOptions","Pivot","PivotItem","React","memo","useCallback","styled","PivotContent","setSelectedKey","selectedKey","getTabId","itemKey","handleLinkClick","item","ev","props","createElement","Container","onLinkClick","headersOnly","headerText","Browser","Lineup","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,aAA/B;AACA,SAASC,KAAT,EAAgBC,SAAhB,QAAiC,iBAAjC;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,WAAtB,QAAyC,OAAzC;AACA,OAAOC,MAAP,MAAmB,mBAAnB,C,CACA;;AACA,OAAO,aAAP,C,CACA;;AACA,OAAO,MAAMC,YAAY,GAAGH,IAAI,CAAC,SAASG,YAAT,CAAsB;AAAEC,EAAAA,cAAF;AAAkBC,EAAAA;AAAlB,CAAtB,EAAuD;AACpF,QAAMC,QAAQ,GAAIC,OAAD,IAAa;AAC1B,WAAQ,mBAAkBA,OAAQ,EAAlC;AACH,GAFD;;AAGA,QAAMC,eAAe,GAAGP,WAAW,CAAC,CAACQ,IAAD,EAAOC,EAAP,KAAc;AAC9C,QAAID,IAAI,IAAIA,IAAI,CAACE,KAAL,CAAWJ,OAAvB,EAAgC;AAC5BH,MAAAA,cAAc,CAACK,IAAI,CAACE,KAAL,CAAWJ,OAAZ,CAAd;AACH;AACJ,GAJkC,EAIhC,CAACH,cAAD,CAJgC,CAAnC;AAKA,SAAQL,KAAK,CAACa,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJd,KAAK,CAACa,aAAN,CAAoBf,KAApB,EAA2B;AAAE,kBAAc,8CAAhB;AAAgEQ,IAAAA,WAAW,EAAEA,WAA7E;AAA0FS,IAAAA,WAAW,EAAEN,eAAvG;AAAwHO,IAAAA,WAAW,EAAE,IAArI;AAA2IT,IAAAA,QAAQ,EAAEA;AAArJ,GAA3B,EACIP,KAAK,CAACa,aAAN,CAAoBd,SAApB,EAA+B;AAAEkB,IAAAA,UAAU,EAAE,mBAAd;AAAmCT,IAAAA,OAAO,EAAEX,cAAc,CAACqB;AAA3D,GAA/B,CADJ,EAEIlB,KAAK,CAACa,aAAN,CAAoBd,SAApB,EAA+B;AAAEkB,IAAAA,UAAU,EAAE,kBAAd;AAAkCT,IAAAA,OAAO,EAAEX,cAAc,CAACsB;AAA1D,GAA/B,CAFJ,CADI,CAAR;AAIH,CAb+B,CAAzB;AAcP,MAAML,SAAS,GAAGX,MAAM,CAACiB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { BrowserOptions } from '../../types';\r\nimport { Pivot, PivotItem } from '@fluentui/react';\r\nimport React, { memo, useCallback } from 'react';\r\nimport styled from 'styled-components';\r\n// control style height for pivot items, doesn't seem like option in Pivot Style Props?\r\nimport './Pivot.css';\r\n// Pivots content between Community Lineup Table and Hierarchy Browser\r\nexport const PivotContent = memo(function PivotContent({ setSelectedKey, selectedKey }) {\r\n const getTabId = (itemKey) => {\r\n return `ShapeColorPivot_${itemKey}`;\r\n };\r\n const handleLinkClick = useCallback((item, ev) => {\r\n if (item && item.props.itemKey) {\r\n setSelectedKey(item.props.itemKey);\r\n }\r\n }, [setSelectedKey]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Pivot, { \"aria-label\": \"Community Lineup and Hierarchy Browser Pivot\", selectedKey: selectedKey, onLinkClick: handleLinkClick, headersOnly: true, getTabId: getTabId },\r\n React.createElement(PivotItem, { headerText: \"Hierarchy Browser\", itemKey: BrowserOptions.Browser }),\r\n React.createElement(PivotItem, { headerText: \"Community Lineup\", itemKey: BrowserOptions.Lineup }))));\r\n});\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/6e8b137c1f335ea469db4107088ed70e.json b/node_modules/.cache/cache-loader/6e8b137c1f335ea469db4107088ed70e.json deleted file mode 100644 index 70500ff..0000000 --- a/node_modules/.cache/cache-loader/6e8b137c1f335ea469db4107088ed70e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\api\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\api\\index.ts","mtime":1631029334661},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2Rzdic7CmV4cG9ydCAqIGZyb20gJy4vbGF5b3V0JzsKZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMnOwpleHBvcnQgKiBmcm9tICcuL3V0aWwnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/api/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,UAAd;AACA,cAAc,QAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './dsv';\r\nexport * from './layout';\r\nexport * from './public';\r\nexport * from './util';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/71d1feb830ffd848ef3cd87ff8d0d1a7.json b/node_modules/.cache/cache-loader/71d1feb830ffd848ef3cd87ff8d0d1a7.json deleted file mode 100644 index a8d68d1..0000000 --- a/node_modules/.cache/cache-loader/71d1feb830ffd848ef3cd87ff8d0d1a7.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\tables.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\tables.ts","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB0YWJsZSB9IGZyb20gJ2FycXVlcm8nOwppbXBvcnQgeyBhdG9tLCBzZWxlY3Rvciwgc2VsZWN0b3JGYW1pbHksIHVzZVJlY29pbFZhbHVlLCB1c2VSZXNldFJlY29pbFN0YXRlLCB1c2VTZXRSZWNvaWxTdGF0ZSB9IGZyb20gJ3JlY29pbCc7CmltcG9ydCB7IGZpbmROb2Rlc1RhYmxlRm9yQ29tbX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c1N0YXRlKHsKICAgIGNpZCwKICAgIHF1YW50aWxlCiAgfSkpOwp9IC8vIHN0YW5kYWxvbmUgZWRnZSB0YWJsZQovLyB3ZSBkb24ndCB3YW50IHRvIGpvaW4gdGhhdCB3aXRoIHRoZSBub2RlL2NvbW11bml0eSB0YWJsZSwKLy8gYXMgaXQgd291bGQgYmUgbWFzc2l2ZSBhbmQgbm90IHVzZWZ1bAoKZXhwb3J0IGNvbnN0IGVkZ2VUYWJsZVN0YXRlID0gYXRvbSh7CiAga2V5OiAnZWRnZS10YWJsZScsCiAgZGVmYXVsdDogdGFibGUoKSwKICBkYW5nZXJvdXNseUFsbG93TXV0YWJpbGl0eTogdHJ1ZQp9KTsKZXhwb3J0IGZ1bmN0aW9uIHVzZUVkZ2VUYWJsZSgpIHsKICByZXR1cm4gdXNlUmVjb2lsVmFsdWUoZWRnZVRhYmxlU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VTZXRFZGdlVGFibGUoKSB7CiAgcmV0dXJuIHVzZVNldFJlY29pbFN0YXRlKGVkZ2VUYWJsZVN0YXRlKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlUmVzZXRFZGdlVGFibGUoKSB7CiAgcmV0dXJuIHVzZVJlc2V0UmVjb2lsU3RhdGUoZWRnZVRhYmxlU3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/tables.ts"],"names":["table","atom","selector","selectorFamily","useRecoilValue","useResetRecoilState","useSetRecoilState","findNodesTableForCommunity","getNodeStats","bigTableState","key","default","dangerouslyAllowMutability","useBigTable","useSetBigTable","useResetBigTable","groupedCommunitiesTableState","get","console","log","bigTable","numRows","time","grouped","groupby","timeEnd","useGroupedByCommunityTable","groupedParentsTableState","useGroupedByParentTable","communityNodesTableState","cid","byParent","byCommunity","useCommunityNodesTable","communitiesTableState","groups","tbl","reify","rows","useCommunitiesTable","communityNodeStatsState","param","quantile","useNodeStatsByCommunity","edgeTableState","useEdgeTable","useSetEdgeTable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;AAC/BS,EAAAA,GAAG,EAAE,YAD0B;AAE/BC,EAAAA,OAAO,EAAEX,KAAK,EAFiB;AAG/BY,EAAAA,0BAA0B,EAAE;AAHG,CAAD,CAA3B;AAKP,OAAO,SAASiC,YAAT,GAAwB;AAC3B,SAAOzC,cAAc,CAACwC,cAAD,CAArB;AACH;AACD,OAAO,SAASE,eAAT,GAA2B;AAC9B,SAAOxC,iBAAiB,CAACsC,cAAD,CAAxB;AACH;AACD,OAAO,SAASG,iBAAT,GAA6B;AAChC,SAAO1C,mBAAmB,CAACuC,cAAD,CAA1B;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { table } from 'arquero';\r\nimport { atom, selector, selectorFamily, useRecoilValue, useResetRecoilState, useSetRecoilState, } from 'recoil';\r\nimport { findNodesTableForCommunity, getNodeStats } from '~/arquero';\r\nexport const bigTableState = atom({\r\n key: 'big-table',\r\n default: table(),\r\n // this is required so that arquero can update indexes under the hood\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useBigTable() {\r\n return useRecoilValue(bigTableState);\r\n}\r\nexport function useSetBigTable() {\r\n return useSetRecoilState(bigTableState);\r\n}\r\nexport function useResetBigTable() {\r\n return useResetRecoilState(bigTableState);\r\n}\r\n// keep ahold of a pre-grouped copy of the big table,\r\n// because all of our interactions are based around communities\r\nconst groupedCommunitiesTableState = selector({\r\n key: 'grouped-community-table',\r\n dangerouslyAllowMutability: true,\r\n get: ({ get }) => {\r\n console.log('deriving pre-grouped community table');\r\n const bigTable = get(bigTableState);\r\n if (bigTable.numRows() === 0) {\r\n return table();\r\n }\r\n console.time('groupby community state');\r\n const grouped = bigTable.groupby('community.id');\r\n console.timeEnd('groupby community state');\r\n return grouped;\r\n },\r\n});\r\nexport function useGroupedByCommunityTable() {\r\n return useRecoilValue(groupedCommunitiesTableState);\r\n}\r\nexport const groupedParentsTableState = selector({\r\n key: 'grouped-parent-community-table',\r\n dangerouslyAllowMutability: true,\r\n get: ({ get }) => {\r\n console.log('deriving pre-grouped parent community table');\r\n const bigTable = get(bigTableState);\r\n if (bigTable.numRows() === 0) {\r\n return table();\r\n }\r\n console.time('groupby parent state');\r\n const grouped = bigTable.groupby('community.pid');\r\n console.timeEnd('groupby parent state');\r\n return grouped;\r\n },\r\n});\r\nexport function useGroupedByParentTable() {\r\n return useRecoilValue(groupedParentsTableState);\r\n}\r\n// returns a table representing only the nodes for the selected community\r\nexport const communityNodesTableState = selectorFamily({\r\n key: 'community-nodes-table',\r\n get: cid => ({ get }) => {\r\n const byParent = get(groupedParentsTableState);\r\n const byCommunity = get(groupedCommunitiesTableState);\r\n return findNodesTableForCommunity(cid, byParent, byCommunity);\r\n },\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useCommunityNodesTable(cid) {\r\n return useRecoilValue(communityNodesTableState(cid));\r\n}\r\n// creates a single row per community in the app (just grabbing the first from each group in the big table)\r\nconst communitiesTableState = selector({\r\n key: 'communities-table',\r\n get: ({ get }) => {\r\n const byCommunity = get(groupedCommunitiesTableState);\r\n console.time('communities state');\r\n const groups = byCommunity.groups();\r\n const tbl = groups ? byCommunity.reify(groups.rows) : table();\r\n console.timeEnd('communities state');\r\n return tbl;\r\n },\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useCommunitiesTable() {\r\n return useRecoilValue(communitiesTableState);\r\n}\r\nconst communityNodeStatsState = selectorFamily({\r\n key: 'grouped-node-stats',\r\n get: param => ({ get }) => {\r\n const { cid, quantile } = param;\r\n const table = get(communityNodesTableState(cid));\r\n return getNodeStats(table, quantile);\r\n },\r\n});\r\nexport function useNodeStatsByCommunity(cid, quantile) {\r\n return useRecoilValue(communityNodeStatsState({ cid, quantile }));\r\n}\r\n// standalone edge table\r\n// we don't want to join that with the node/community table,\r\n// as it would be massive and not useful\r\nexport const edgeTableState = atom({\r\n key: 'edge-table',\r\n default: table(),\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useEdgeTable() {\r\n return useRecoilValue(edgeTableState);\r\n}\r\nexport function useSetEdgeTable() {\r\n return useSetRecoilState(edgeTableState);\r\n}\r\nexport function useResetEdgeTable() {\r\n return useResetRecoilState(edgeTableState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/7562e4f22838a2bd5b13f1a36f1ae71d.json b/node_modules/.cache/cache-loader/7562e4f22838a2bd5b13f1a36f1ae71d.json deleted file mode 100644 index 5a8936a..0000000 --- a/node_modules/.cache/cache-loader/7562e4f22838a2bd5b13f1a36f1ae71d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\GraphPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\GraphPanel.tsx","mtime":1631029334705},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBHcmFwaFZpZXdlciB9IGZyb20gJy4uLy4uLy4uL0dyYXBoVmlld2VyJzsKaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCBtZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb0hvdmVyZWROb2RlcyB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IHVzZUR5bmFtaWNDYW1lcmFCb3VuZHMsIHVzZUlucHV0R3JhcGggfSBmcm9tICd+L2hvb2tzL2dyYXBoJzsKY29uc3QgVFJBTlNJVElPTiA9IDEwMDA7CmV4cG9ydCBjb25zdCBHcmFwaFBhbmVsID0gbWVtbyhmdW5jdGlvbiBHcmFwaFBhbmVsKHsKICB3aWR0aCwKICBoZWlnaHQsCiAgb25SZW5kZXJlclJlYWR5Cn0pIHsKICBjb25zdCBkYXRhID0gdXNlSW5wdXRHcmFwaCgpOwogIGNvbnN0IGhvdmVyZWROb2RlcyA9IHVzZUFycXVlcm9Ib3ZlcmVkTm9kZXMoKTsKICBjb25zdCBjYW1lcmFCb3VuZHMgPSB1c2VEeW5hbWljQ2FtZXJhQm91bmRzKCk7CiAgY29uc3QgaGFuZGxlUmVuZGVyZXJJbml0aWFsaXplZCA9IHVzZUNhbGxiYWNrKHJlbmRlcmVyID0+IHsKICAgIGlmIChvblJlbmRlcmVyUmVhZHkpIHsKICAgICAgb25SZW5kZXJlclJlYWR5KHJlbmRlcmVyKTsKICAgIH0KICB9LCBbb25SZW5kZXJlclJlYWR5XSk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGFpbmVyLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KEdyYXBoVmlld2VyLCB7CiAgICBkYXRhOiBkYXRhLAogICAgd2lkdGg6IHdpZHRoLAogICAgaGVpZ2h0OiBoZWlnaHQsCiAgICBob3ZlcmVkTm9kZXM6IGhvdmVyZWROb2RlcywKICAgIGNhbWVyYUJvdW5kczogY2FtZXJhQm91bmRzLAogICAgb25SZW5kZXJlckluaXRpYWxpemVkOiBoYW5kbGVSZW5kZXJlckluaXRpYWxpemVkLAogICAgdHJhbnNpdGlvbjogVFJBTlNJVElPTiwKICAgIGludGVyYWN0aXZlOiB0cnVlCiAgfSkpOwp9KTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/GraphPanel.tsx"],"names":["GraphViewer","React","useCallback","memo","styled","useArqueroHoveredNodes","useDynamicCameraBounds","useInputGraph","TRANSITION","GraphPanel","width","height","onRendererReady","data","hoveredNodes","cameraBounds","handleRendererInitialized","renderer","createElement","Container","onRendererInitialized","transition","interactive","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,sBAA5B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,IAA7B,QAAyC,OAAzC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,sBAAT,QAAuC,WAAvC;AACA,SAASC,sBAAT,EAAiCC,aAAjC,QAAsD,eAAtD;AACA,MAAMC,UAAU,GAAG,IAAnB;AACA,OAAO,MAAMC,UAAU,GAAGN,IAAI,CAAC,SAASM,UAAT,CAAoB;AAAEC,EAAAA,KAAF;AAASC,EAAAA,MAAT;AAAiBC,EAAAA;AAAjB,CAApB,EAAyD;AACpF,QAAMC,IAAI,GAAGN,aAAa,EAA1B;AACA,QAAMO,YAAY,GAAGT,sBAAsB,EAA3C;AACA,QAAMU,YAAY,GAAGT,sBAAsB,EAA3C;AACA,QAAMU,yBAAyB,GAAGd,WAAW,CAACe,QAAQ,IAAI;AACtD,QAAIL,eAAJ,EAAqB;AACjBA,MAAAA,eAAe,CAACK,QAAD,CAAf;AACH;AACJ,GAJ4C,EAI1C,CAACL,eAAD,CAJ0C,CAA7C;AAKA,SAAQX,KAAK,CAACiB,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJlB,KAAK,CAACiB,aAAN,CAAoBlB,WAApB,EAAiC;AAAEa,IAAAA,IAAI,EAAEA,IAAR;AAAcH,IAAAA,KAAK,EAAEA,KAArB;AAA4BC,IAAAA,MAAM,EAAEA,MAApC;AAA4CG,IAAAA,YAAY,EAAEA,YAA1D;AAAwEC,IAAAA,YAAY,EAAEA,YAAtF;AAAoGK,IAAAA,qBAAqB,EAAEJ,yBAA3H;AAAsJK,IAAAA,UAAU,EAAEb,UAAlK;AAA8Kc,IAAAA,WAAW,EAAE;AAA3L,GAAjC,CADI,CAAR;AAEH,CAX6B,CAAvB;AAYP,MAAMH,SAAS,GAAGf,MAAM,CAACmB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { GraphViewer } from '../../../GraphViewer';\r\nimport React, { useCallback, memo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroHoveredNodes } from '~/arquero';\r\nimport { useDynamicCameraBounds, useInputGraph } from '~/hooks/graph';\r\nconst TRANSITION = 1000;\r\nexport const GraphPanel = memo(function GraphPanel({ width, height, onRendererReady, }) {\r\n const data = useInputGraph();\r\n const hoveredNodes = useArqueroHoveredNodes();\r\n const cameraBounds = useDynamicCameraBounds();\r\n const handleRendererInitialized = useCallback(renderer => {\r\n if (onRendererReady) {\r\n onRendererReady(renderer);\r\n }\r\n }, [onRendererReady]);\r\n return (React.createElement(Container, null,\r\n React.createElement(GraphViewer, { data: data, width: width, height: height, hoveredNodes: hoveredNodes, cameraBounds: cameraBounds, onRendererInitialized: handleRendererInitialized, transition: TRANSITION, interactive: true })));\r\n});\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/761d26dfbd5dcdbc8fa5f92a290eb5cc.json b/node_modules/.cache/cache-loader/761d26dfbd5dcdbc8fa5f92a290eb5cc.json deleted file mode 100644 index 02b68bb..0000000 --- a/node_modules/.cache/cache-loader/761d26dfbd5dcdbc8fa5f92a290eb5cc.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\index.ts","mtime":1620403249337},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3VzZUFPSUJvdW5kcyc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/Minimap/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,gBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './useAOIBounds';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/77b9812609e155cb3ba836d691b30f97.json b/node_modules/.cache/cache-loader/77b9812609e155cb3ba836d691b30f97.json deleted file mode 100644 index 65d23e2..0000000 --- a/node_modules/.cache/cache-loader/77b9812609e155cb3ba836d691b30f97.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchItemHeader.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchItemHeader.tsx","mtime":1631029334739},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBUZXh0LCBNZXNzYWdlQmFyLCBNZXNzYWdlQmFyVHlwZSB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCwgeyB1c2VTdGF0ZSwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmV4cG9ydCBjb25zdCBTZWFyY2hJdGVtSGVhZGVyID0gKHsKICBudW1iZXJPZlJlc3VsdHMsCiAgc2VhcmNoVGV4dCwKICBlcnJvck1zZwp9KSA9PiB7CiAgY29uc3QgW2luZm9Nc2dWaXNpYmxlLCBzZXRJbmZvTXNnVmlzaWJsZV0gPSB1c2VTdGF0ZSh0cnVlKTsKICBjb25zdCBtc2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XNpYmxlCiAgfSwgbXNnKSk7Cn07CmNvbnN0IE1zZ0NvbnRhaW5lciA9IHN0eWxlZC5kaXZgCgl2aXNpYmlsaXR5OiAkeyh7CiAgc2hvdwp9KSA9PiBgJHtzaG93ID8gJ3Zpc2libGUnIDogJ2hpZGRlbid9O2B9OwoJaGVpZ2h0OiAkeyh7CiAgc2hvdwp9KSA9PiBgJHtzaG93ID8gJ2F1dG8nIDogJzEwcHgnfTtgfTsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/SearchItemHeader.tsx"],"names":["Text","MessageBar","MessageBarType","React","useState","useMemo","styled","SearchItemHeader","numberOfResults","searchText","errorMsg","infoMsgVisible","setInfoMsgVisible","msg","createElement","messageBarType","error","className","variant","closeInfo","success","onDismiss","dismissButtonAriaLabel","MsgContainer","show","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,IAAT,EAAeC,UAAf,EAA2BC,cAA3B,QAAiD,iBAAjD;AACA,OAAOC,KAAP,IAAgBC,QAAhB,EAA0BC,OAA1B,QAAyC,OAAzC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,eAAF;AAAmBC,EAAAA,UAAnB;AAA+BC,EAAAA;AAA/B,CAAD,KAAgD;AAC5E,QAAM,CAACC,cAAD,EAAiBC,iBAAjB,IAAsCR,QAAQ,CAAC,IAAD,CAApD;AACA,QAAMS,GAAG,GAAGR,OAAO,CAAC,MAAM;AACtBO,IAAAA,iBAAiB,CAAC,IAAD,CAAjB;;AACA,QAAIF,QAAJ,EAAc;AACV,aAAQP,KAAK,CAACW,aAAN,CAAoBb,UAApB,EAAgC;AAAEc,QAAAA,cAAc,EAAEb,cAAc,CAACc,KAAjC;AAAwCC,QAAAA,SAAS,EAAE;AAAnD,OAAhC,EACJd,KAAK,CAACW,aAAN,CAAoBd,IAApB,EAA0B;AAAEkB,QAAAA,OAAO,EAAE;AAAX,OAA1B,EAA+CR,QAA/C,CADI,CAAR;AAEH,KAHD,MAIK,IAAID,UAAU,IAAID,eAAe,GAAG,CAApC,EAAuC;AACxC,YAAMW,SAAS,GAAG,MAAMP,iBAAiB,CAAC,KAAD,CAAzC;;AACA,aAAQT,KAAK,CAACW,aAAN,CAAoBb,UAApB,EAAgC;AAAEc,QAAAA,cAAc,EAAEb,cAAc,CAACkB,OAAjC;AAA0CC,QAAAA,SAAS,EAAEF,SAArD;AAAgEG,QAAAA,sBAAsB,EAAE,OAAxF;AAAiGL,QAAAA,SAAS,EAAE;AAA5G,OAAhC,EACJd,KAAK,CAACW,aAAN,CAAoBd,IAApB,EAA0B;AAAEkB,QAAAA,OAAO,EAAE;AAAX,OAA1B,EAA+CT,UAA/C,CADI,CAAR;AAEH;;AACD,WAAO,IAAP;AACH,GAZkB,EAYhB,CAACC,QAAD,EAAWD,UAAX,EAAuBD,eAAvB,CAZgB,CAAnB;AAaA,SAAQL,KAAK,CAACW,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EACJX,KAAK,CAACW,aAAN,CAAoBS,YAApB,EAAkC;AAAEC,IAAAA,IAAI,EAAEb;AAAR,GAAlC,EAA4DE,GAA5D,CADI,CAAR;AAEH,CAjBM;AAkBP,MAAMU,YAAY,GAAGjB,MAAM,CAACmB,GAAK;AACjC,eAAe,CAAC;AAAED,EAAAA;AAAF,CAAD,KAAe,GAAEA,IAAI,GAAG,SAAH,GAAe,QAAS,GAAG;AAC/D,WAAW,CAAC;AAAEA,EAAAA;AAAF,CAAD,KAAe,GAAEA,IAAI,GAAG,MAAH,GAAY,MAAO,GAAG;AACtD,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Text, MessageBar, MessageBarType } from '@fluentui/react';\r\nimport React, { useState, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const SearchItemHeader = ({ numberOfResults, searchText, errorMsg, }) => {\r\n const [infoMsgVisible, setInfoMsgVisible] = useState(true);\r\n const msg = useMemo(() => {\r\n setInfoMsgVisible(true);\r\n if (errorMsg) {\r\n return (React.createElement(MessageBar, { messageBarType: MessageBarType.error, className: 'error' },\r\n React.createElement(Text, { variant: 'tiny' }, errorMsg)));\r\n }\r\n else if (searchText && numberOfResults > 0) {\r\n const closeInfo = () => setInfoMsgVisible(false);\r\n return (React.createElement(MessageBar, { messageBarType: MessageBarType.success, onDismiss: closeInfo, dismissButtonAriaLabel: 'Close', className: 'success' },\r\n React.createElement(Text, { variant: 'tiny' }, searchText)));\r\n }\r\n return null;\r\n }, [errorMsg, searchText, numberOfResults]);\r\n return (React.createElement(\"div\", null,\r\n React.createElement(MsgContainer, { show: infoMsgVisible }, msg)));\r\n};\r\nconst MsgContainer = styled.div `\r\n\tvisibility: ${({ show }) => `${show ? 'visible' : 'hidden'};`};\r\n\theight: ${({ show }) => `${show ? 'auto' : '10px'};`};\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/79d644e50834d4488d45e682128bb207.json b/node_modules/.cache/cache-loader/79d644e50834d4488d45e682128bb207.json deleted file mode 100644 index 4d3b088..0000000 --- a/node_modules/.cache/cache-loader/79d644e50834d4488d45e682128bb207.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\index.tsx","mtime":1631029334823},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBMZWdlbmRBeGlzIH0gZnJvbSAnLi9MZWdlbmRBeGlzJzsKaW1wb3J0IHsgU3BhcmtiYXIgfSBmcm9tICcuL1NwYXJrYmFyJzsKaW1wb3J0IHsgdXNlRGltZW5zaW9ucyB9IGZyb20gJ0Blc3NleC1qcy10b29sa2l0L2hvb2tzJzsKaW1wb3J0IHsgTGFiZWwsIFRleHRGaWVsZCB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCB7IGZvcm1hdCB9IGZyb20gJ2QzLWZvcm1hdCc7CmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjaywgdXNlTWVtbywgdXNlUmVmIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKY29uc3QgQ0hBUlR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AogICAgb25DaGFuZ2U6IGhhbmRsZU1heENoYW5nZQogIH0pLCBSZWFjdC5jcmVhdGVFbGVtZW50KExhYmVsLCBudWxsLCAiTWF4IikpKSA6IG51bGwpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IFRleHRDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJbWFyZ2luLXRvcDogMTJweDsKCWRpc3BsYXk6IGZsZXg7CglqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CmA7CmNvbnN0IFRleHRJdGVtID0gc3R5bGVkLmRpdmAKCXdpZHRoOiA4MHB4OwoJdGV4dC1hbGlnbjogY2VudGVyOwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/DomainBrush/index.tsx"],"names":["LegendAxis","Sparkbar","useDimensions","Label","TextField","format","React","useCallback","useMemo","useRef","styled","CHART_HEIGHT","AXIS_HEIGHT","EMPTY","TEXT_STYLES","field","textAlign","DomainBrush","min","max","currentDomain","precision","onChange","histogram","showTextInputs","ref","dimensions","width","domain","handleMinChange","_","v","Number","parseFloat","handleMaxChange","fmt","flo","fhi","barWidth","handleBrushEnd","newdomain","x","d","i","x1","x0","y","length","createElement","Container","data","brushedDomain","height","onBrushEnd","TextContainer","TextItem","label","styles","value","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,cAA3B;AACA,SAASC,QAAT,QAAyB,YAAzB;AACA,SAASC,aAAT,QAA8B,yBAA9B;AACA,SAASC,KAAT,EAAgBC,SAAhB,QAAiC,iBAAjC;AACA,SAASC,MAAT,QAAuB,WAAvB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,EAAsCC,MAAtC,QAAoD,OAApD;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,YAAY,GAAG,EAArB;AACA,MAAMC,WAAW,GAAG,EAApB;AACA,MAAMC,KAAK,GAAG,EAAd;AACA,MAAM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AAqC4C,IAAAA,KAAK,EAAG,GAAErB,GAAI,EAAnD;AAAsDf,IAAAA,QAAQ,EAAEY;AAAhE,GAA/B,CADJ,EAEI5B,KAAK,CAAC0C,aAAN,CAAoB7C,KAApB,EAA2B,IAA3B,EAAiC,KAAjC,CAFJ,CAJc,CAAJ,GAMuC,IATjD,CAAR;AAUH,CAlCM;AAmCP,MAAM8C,SAAS,GAAGvC,MAAM,CAACiD,GAAK,EAA9B;AACA,MAAML,aAAa,GAAG5C,MAAM,CAACiD,GAAK;AAClC;AACA;AACA;AACA,CAJA;AAKA,MAAMJ,QAAQ,GAAG7C,MAAM,CAACiD,GAAK;AAC7B;AACA;AACA,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { LegendAxis } from './LegendAxis';\r\nimport { Sparkbar } from './Sparkbar';\r\nimport { useDimensions } from '@essex-js-toolkit/hooks';\r\nimport { Label, TextField } from '@fluentui/react';\r\nimport { format } from 'd3-format';\r\nimport React, { useCallback, useMemo, useRef } from 'react';\r\nimport styled from 'styled-components';\r\nconst CHART_HEIGHT = 30;\r\nconst AXIS_HEIGHT = 16;\r\nconst EMPTY = [];\r\nconst TEXT_STYLES = {\r\n field: {\r\n textAlign: 'center',\r\n },\r\n};\r\nexport const DomainBrush = ({ min = 0, max = 1, currentDomain, precision = 2, onChange, histogram = EMPTY, showTextInputs, }) => {\r\n const ref = useRef(null);\r\n const dimensions = useDimensions(ref);\r\n const width = useMemo(() => dimensions?.width || 200, [dimensions]);\r\n const domain = useMemo(() => currentDomain || [min, max], [currentDomain, min, max]);\r\n const handleMinChange = useCallback((_, v) => {\r\n onChange && onChange([v ? Number.parseFloat(v) : domain[0], domain[1]]);\r\n }, [onChange, domain]);\r\n const handleMaxChange = useCallback((_, v) => {\r\n onChange && onChange([domain[0], v ? Number.parseFloat(v) : domain[1]]);\r\n }, [onChange, domain]);\r\n const fmt = useMemo(() => format(`.${precision}f`), [precision]);\r\n const [flo, fhi] = useMemo(() => {\r\n // d3-format produces strings, but we just want to use it\r\n // for clean and consistent decimal precision numbers\r\n return [parseFloat(fmt(domain[0])), parseFloat(fmt(domain[1]))];\r\n }, [domain, fmt]);\r\n const barWidth = width / 100 - 1;\r\n // TOOD: it would be nice to use a synchronized internal brush state\r\n // to update current displayed bounds visually before setting the encoding\r\n const handleBrushEnd = useCallback(newdomain => onChange && onChange(newdomain), [onChange]);\r\n // sparkbar uses lines, we therefore want the midpoint of bin\r\n const x = useCallback((d, i) => (d.x1 - d.x0) / 2 + d.x0, []);\r\n const y = useCallback((d, i) => d.length, []);\r\n return (React.createElement(Container, { ref: ref },\r\n React.createElement(Sparkbar, { data: histogram, domain: [min, max], brushedDomain: domain, width: width, height: CHART_HEIGHT, barWidth: barWidth, x: x, y: y, onBrushEnd: handleBrushEnd }),\r\n React.createElement(LegendAxis, { domain: [min, max], brushedDomain: [flo, fhi], width: width, height: AXIS_HEIGHT }),\r\n showTextInputs ? (React.createElement(TextContainer, null,\r\n React.createElement(TextItem, null,\r\n React.createElement(TextField, { label: \"min\", styles: TEXT_STYLES, value: `${flo}`, onChange: handleMinChange }),\r\n React.createElement(Label, null, \"Min\")),\r\n React.createElement(TextItem, null,\r\n React.createElement(TextField, { label: \"max\", styles: TEXT_STYLES, value: `${fhi}`, onChange: handleMaxChange }),\r\n React.createElement(Label, null, \"Max\")))) : null));\r\n};\r\nconst Container = styled.div ``;\r\nconst TextContainer = styled.div `\r\n\tmargin-top: 12px;\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n`;\r\nconst TextItem = styled.div `\r\n\twidth: 80px;\r\n\ttext-align: center;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/7bdef32efc0c03ce4dd9e9d5e363e6b6.json b/node_modules/.cache/cache-loader/7bdef32efc0c03ce4dd9e9d5e363e6b6.json deleted file mode 100644 index f6588ff..0000000 --- a/node_modules/.cache/cache-loader/7bdef32efc0c03ce4dd9e9d5e363e6b6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\index.tsx","mtime":1620403249254},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0RhdGFNYW5hZ2VyUGFnZSc7CmV4cG9ydCAqIGZyb20gJy4vR3JhcGhWaWV3ZXJQYWdlJzs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,mBAAd;AACA,cAAc,mBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './DataManagerPage';\r\nexport * from './GraphViewerPage';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/7f823f68ccb49daa14da839c9db47935.json b/node_modules/.cache/cache-loader/7f823f68ccb49daa14da839c9db47935.json deleted file mode 100644 index 7e24645..0000000 --- a/node_modules/.cache/cache-loader/7f823f68ccb49daa14da839c9db47935.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\TableCollection.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\TableCollection.ts","mtime":1631029334665},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdGFibGUgYXMgY3JlYXRlVGFibGUgfSBmcm9tICdhcnF1ZXJvJzsKCmNsYXNzIFRhYmxlSXRlbUZhY2FkZSB7CiAgY29uc3RydWN0b3IodGFibGUsIGluZGV4LCBwcmVmaXgpIHsKICAgIHRoaXMuX3RhYmxlID0gdGFibGU7CiAgICB0aGlzLl9pbmRleCA9IGluZGV4OwogICAgdGhpcy5faWQgPSBgJHtwcmVmaXh9LmlkYDsKICB9CgogIGdldCB0YWJsZSgpIHsKICAgIHJldHVybiB0aGlzLl90YWJsZTsKICB9CgogIGdldCBjb2x1bW5zKCkgewogICAgcmV0dXJuIHRoaXMuX3RhYmxlLmNvbHVtbk5hbWVzKCk7CiAgfQoKICBnZXQoY29sKSB7CiAgICByZXR1cm4gdGhpcy5fdGFibGUuZ2V0KGNvbCwgdGhpcy5faW5kZXgpOwogIH0KCiAgZ2V0IGlkKCkgewogICAgcmV0dXJuIHRoaXMuZ2V0KHRoaXMuX2lkKTsKICB9Cgp9CgpjbGFzcyBOb2RlRmFjYWRlIGV4dGVuZHMgVGFibGVJdGVtRmFjYWRlIHsKICBjb25zdHJ1Y3Rvcih0YWJsZSwgaW5kZXgpIHsKICAgIHN1cGVyKHRhYmxlLCBpbmRleCwgJ25vZGUnKTsKICB9CgogIGdldCB4KCkgewogICAgcmV0dXJuIHRoaXMuZ2V0KCdub2RlLngnKTsKICB9CgogIGdldCB5KCkgewogICAgcmV0dXJuIHRoaXMuZ2V0KCdub2RlLnknKTsKICB9CgogIGdldCBkKCkgewogICAgcmV0dXJuIHRoaXMuZ2V0KCdub2RlLmQnKTsKICB9Cgp9CgpjbGFzcyBDb21tdW5pdHlGYWNhZGUgZXh0ZW5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GUsICdjb21tdW5pdHknLCBpbmRpY2VzKTsKICB9Cgp9CmV4cG9ydCBjbGFzcyBOb2RlQ29sbGVjdGlvbiBleHRlbmRzIFRhYmxlQ29sbGVjdGlvbiB7CiAgY29uc3RydWN0b3IodGFibGUsIGluZGljZXMpIHsKICAgIHN1cGVyKHRhYmxlLCAnbm9kZScsIGluZGljZXMpOwogIH0KCn0KZXhwb3J0IGNsYXNzIEVkZ2VDb2xsZWN0aW9uIGV4dGVuZHMgVGFibGVDb2xsZWN0aW9uIHsKICBjb25zdHJ1Y3Rvcih0YWJsZSwgaW5kaWNlcykgewogICAgc3VwZXIodGFibGUsICdlZGdlJywgaW5kaWNlcyk7CiAgfQoKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/TableCollection.ts"],"names":["table","createTable","TableItemFacade","constructor","index","prefix","_table","_index","_id","columns","columnNames","get","col","id","NodeFacade","x","y","d","CommunityFacade","pid","childCount","nodeCount","EdgeFacade","source","target","weight","TableCollection","indices","_prefix","_Ctor","Error","_indices","size","length","numRows","getter","name","sort","definition","orderby","map","callback","ordered","output","scan","idx","n","push","forEach","toMap","Map","set","toSet","Set","add","toArray","arr","page","offset","count","i","obj","sample","proportion","ratio","Math","floor","data","cont","stop","every","CommunityCollection","NodeCollection","EdgeCollection"],"mappings":"AAAA,SAASA,KAAK,IAAIC,WAAlB,QAAqC,SAArC;;AACA,MAAMC,eAAN,CAAsB;AAClBC,EAAAA,WAAW,CAACH,KAAD,EAAQI,KAAR,EAAeC,MAAf,EAAuB;AAC9B,SAAKC,MAAL,GAAcN,KAAd;AACA,SAAKO,MAAL,GAAcH,KAAd;AACA,SAAKI,GAAL,GAAY,GAAEH,MAAO,KAArB;AACH;;AACQ,MAALL,KAAK,GAAG;AACR,WAAO,KAAKM,MAAZ;AACH;;AACU,MAAPG,OAAO,GAAG;AACV,WAAO,KAAKH,MAAL,CAAYI,WAAZ,EAAP;AACH;;AACDC,EAAAA,GAAG,CAACC,GAAD,EAAM;A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,EAAAA,IAAI,CAACH,QAAD,EAAWC,OAAO,GAAG,KAArB,EAA4B;AAC5B;AACA,QAAI,KAAKX,QAAT,EAAmB;AACf,YAAMoC,IAAI,GAAG,KAAK7D,MAAL,CAAY6D,IAAZ,EAAb;;AACA,UAAIC,IAAI,GAAG,IAAX;;AACA,YAAMC,IAAI,GAAG,MAAOD,IAAI,GAAG,KAA3B;;AACA,WAAKrC,QAAL,CAAcuC,KAAd,CAAoBzB,GAAG,IAAI;AACvBJ,QAAAA,QAAQ,CAACI,GAAD,EAAMsB,IAAN,EAAYE,IAAZ,CAAR;AACA,eAAOD,IAAP;AACH,OAHD;AAIH,KARD,MASK;AACD,aAAO,KAAK9D,MAAL,CAAYsC,IAAZ,CAAiBH,QAAjB,EAA2BC,OAA3B,CAAP;AACH;AACJ;;AA/HwB;AAiI7B,OAAO,MAAM6B,mBAAN,SAAkC7C,eAAlC,CAAkD;AACrDvB,EAAAA,WAAW,CAACH,KAAD,EAAQ2B,OAAR,EAAiB;AACxB,UAAM3B,KAAN,EAAa,WAAb,EAA0B2B,OAA1B;AACH;;AAHoD;AAKzD,OAAO,MAAM6C,cAAN,SAA6B9C,eAA7B,CAA6C;AAChDvB,EAAAA,WAAW,CAACH,KAAD,EAAQ2B,OAAR,EAAiB;AACxB,UAAM3B,KAAN,EAAa,MAAb,EAAqB2B,OAArB;AACH;;AAH+C;AAKpD,OAAO,MAAM8C,cAAN,SAA6B/C,eAA7B,CAA6C;AAChDvB,EAAAA,WAAW,CAACH,KAAD,EAAQ2B,OAAR,EAAiB;AACxB,UAAM3B,KAAN,EAAa,MAAb,EAAqB2B,OAArB;AACH;;AAH+C","sourcesContent":["import { table as createTable } from 'arquero';\r\nclass TableItemFacade {\r\n constructor(table, index, prefix) {\r\n this._table = table;\r\n this._index = index;\r\n this._id = `${prefix}.id`;\r\n }\r\n get table() {\r\n return this._table;\r\n }\r\n get columns() {\r\n return this._table.columnNames();\r\n }\r\n get(col) {\r\n return this._table.get(col, this._index);\r\n }\r\n get id() {\r\n return this.get(this._id);\r\n }\r\n}\r\nclass NodeFacade extends TableItemFacade {\r\n constructor(table, index) {\r\n super(table, index, 'node');\r\n }\r\n get x() {\r\n return this.get('node.x');\r\n }\r\n get y() {\r\n return this.get('node.y');\r\n }\r\n get d() {\r\n return this.get('node.d');\r\n }\r\n}\r\nclass CommunityFacade extends TableItemFacade {\r\n constructor(table, index) {\r\n super(table, index, 'community');\r\n }\r\n get pid() {\r\n return this.get('community.pid');\r\n }\r\n get childCount() {\r\n return this.get('community.childCount');\r\n }\r\n get nodeCount() {\r\n return this.get('community.nodeCount');\r\n }\r\n}\r\nclass EdgeFacade extends TableItemFacade {\r\n constructor(table, index) {\r\n super(table, index, 'edge');\r\n }\r\n get source() {\r\n return this.get('edge.source');\r\n }\r\n get target() {\r\n return this.get('edge.target');\r\n }\r\n get weight() {\r\n return this.get('edge.weight');\r\n }\r\n}\r\nexport class TableCollection {\r\n constructor(table, prefix, indices) {\r\n this._table = createTable();\r\n if (table) {\r\n this._table = table;\r\n }\r\n this._prefix = prefix;\r\n switch (prefix) {\r\n case 'node':\r\n this._Ctor = NodeFacade;\r\n break;\r\n case 'community':\r\n this._Ctor = CommunityFacade;\r\n break;\r\n case 'edge':\r\n this._Ctor = EdgeFacade;\r\n break;\r\n default:\r\n throw new Error(`Unsupported data type: ${prefix}`);\r\n }\r\n if (indices) {\r\n this._indices = indices;\r\n }\r\n }\r\n get table() {\r\n return this._table;\r\n }\r\n get size() {\r\n if (this._indices) {\r\n return this._indices.length;\r\n }\r\n return this._table.numRows();\r\n }\r\n getter(name) {\r\n return this._table.getter(name);\r\n }\r\n sort(definition) {\r\n if (this.size > 0) {\r\n this._table = this._table.orderby(definition);\r\n }\r\n return this;\r\n }\r\n map(callback, ordered = false) {\r\n const output = [];\r\n this.scan(idx => {\r\n const n = new this._Ctor(this._table, idx, this._prefix);\r\n output.push(callback(n, idx));\r\n }, ordered);\r\n return output;\r\n }\r\n forEach(callback, ordered = false) {\r\n this.scan((idx) => {\r\n const n = new this._Ctor(this._table, idx);\r\n callback(n, idx);\r\n }, ordered);\r\n }\r\n toMap() {\r\n const map = new Map();\r\n this.scan((idx) => {\r\n const n = new this._Ctor(this._table, idx);\r\n const id = n.id;\r\n map.set(id, n);\r\n });\r\n return map;\r\n }\r\n toSet() {\r\n const set = new Set();\r\n this.scan((idx) => {\r\n const n = new this._Ctor(this._table, idx);\r\n set.add(n);\r\n });\r\n return set;\r\n }\r\n toArray(ordered = false) {\r\n const arr = [];\r\n this.scan((idx) => {\r\n arr.push(new this._Ctor(this._table, idx));\r\n }, ordered);\r\n return arr;\r\n }\r\n // TODO: it would be nicer api-wise to integrate the offset/count params into the map method, but we have to pull out the scan\r\n page(callback, offset, count) {\r\n const arr = [];\r\n const indices = this._indices || [];\r\n for (let i = offset; i < offset + count; i++) {\r\n const idx = indices[i] || i;\r\n const obj = new this._Ctor(this._table, idx);\r\n arr.push(callback(obj, idx));\r\n }\r\n return arr;\r\n }\r\n // does a toArray with subsetting based on proportion of total items\r\n // note that this could use underlying arquero table sampling for actual random,\r\n // but the perf of that has not been checked, and it needs to account for groups\r\n sample(proportion) {\r\n const arr = [];\r\n const ratio = Math.floor(1 / proportion);\r\n this.scan((idx) => {\r\n if (idx % ratio === 0) {\r\n arr.push(new this._Ctor(this._table, idx));\r\n }\r\n });\r\n return arr;\r\n }\r\n /**\r\n * Direct passthrough to table scan, but using provided indices if present.\r\n * This lets us create collections that are a \"view\" over the top of a larger\r\n * table.\r\n * Arquero doesn't support the notion of iterating groups directly, so this provides\r\n * that.\r\n * @param callback\r\n * @param ordered\r\n */\r\n scan(callback, ordered = false) {\r\n // note that we assume provided indices are already ordered\r\n if (this._indices) {\r\n const data = this._table.data();\r\n let cont = true;\r\n const stop = () => (cont = false);\r\n this._indices.every(idx => {\r\n callback(idx, data, stop);\r\n return cont;\r\n });\r\n }\r\n else {\r\n return this._table.scan(callback, ordered);\r\n }\r\n }\r\n}\r\nexport class CommunityCollection extends TableCollection {\r\n constructor(table, indices) {\r\n super(table, 'community', indices);\r\n }\r\n}\r\nexport class NodeCollection extends TableCollection {\r\n constructor(table, indices) {\r\n super(table, 'node', indices);\r\n }\r\n}\r\nexport class EdgeCollection extends TableCollection {\r\n constructor(table, indices) {\r\n super(table, 'edge', indices);\r\n }\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/7fdd39701243250dca2c9c098a329771.json b/node_modules/.cache/cache-loader/7fdd39701243250dca2c9c098a329771.json deleted file mode 100644 index 9af2208..0000000 --- a/node_modules/.cache/cache-loader/7fdd39701243250dca2c9c098a329771.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\CommunityPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\CommunityPanel.tsx","mtime":1631029334719},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBDb21tdW5pdHlMaXN0IH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vQ29tbXVuaXR5TGlzdCc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCB7IHVzZUFycXVlcm9WaXNpYmxlQ29tbXVuaXRpZXMgfSBmcm9tICd+L2FycXVlcm8nOwpleHBvcnQgY29uc3QgQ29tbXVuaXR5UGFuZWwgPSAoKSA9PiB7CiAgY29uc3QgY29tbXVuaXRpZXMgPSB1c2VBcnF1ZXJvVmlzaWJsZUNvbW11bml0aWVzKCk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29tbXVuaXR5TGlzdCwgewogICAgc3R5bGU6IHsKICAgICAgYmFja2dyb3VuZDogJ3RyYW5zcGFyZW50JwogICAgfSwKICAgIGNvbW11bml0aWVzOiBjb21tdW5pdGllcwogIH0pOwp9Ow=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/CommunityPanel.tsx"],"names":["CommunityList","React","useArqueroVisibleCommunities","CommunityPanel","communities","createElement","style","background"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,8BAA9B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,4BAAT,QAA6C,WAA7C;AACA,OAAO,MAAMC,cAAc,GAAG,MAAM;AAChC,QAAMC,WAAW,GAAGF,4BAA4B,EAAhD;AACA,SAAQD,KAAK,CAACI,aAAN,CAAoBL,aAApB,EAAmC;AAAEM,IAAAA,KAAK,EAAE;AAC5CC,MAAAA,UAAU,EAAE;AADgC,KAAT;AAEpCH,IAAAA,WAAW,EAAEA;AAFuB,GAAnC,CAAR;AAGH,CALM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { CommunityList } from '../../../../../CommunityList';\r\nimport React from 'react';\r\nimport { useArqueroVisibleCommunities } from '~/arquero';\r\nexport const CommunityPanel = () => {\r\n const communities = useArqueroVisibleCommunities();\r\n return (React.createElement(CommunityList, { style: {\r\n background: 'transparent',\r\n }, communities: communities }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8273dae46368f3169ec35c7377e02445.json b/node_modules/.cache/cache-loader/8273dae46368f3169ec35c7377e02445.json deleted file mode 100644 index 06486af..0000000 --- a/node_modules/.cache/cache-loader/8273dae46368f3169ec35c7377e02445.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\common\\defaultParams.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\common\\defaultParams.ts","mtime":1620403249273},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBDb2xvciB9IGZyb20gJ0B0aGVtYXRpYy9jb2xvcic7CmV4cG9ydCBjb25zdCB6ZXJvID0gKCkgPT4gMDsKZXhwb3J0IGNvbnN0IGJsYW5rID0gKCkgPT4gbmV3IENvbG9yKCdub25lJyk7CmV4cG9ydCBjb25zdCBlbXB0eSA9ICgpID0+ICcnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/common/defaultParams.ts"],"names":["Color","zero","blank","empty"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,KAAT,QAAsB,iBAAtB;AACA,OAAO,MAAMC,IAAI,GAAG,MAAM,CAAnB;AACP,OAAO,MAAMC,KAAK,GAAG,MAAM,IAAIF,KAAJ,CAAU,MAAV,CAApB;AACP,OAAO,MAAMG,KAAK,GAAG,MAAM,EAApB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Color } from '@thematic/color';\r\nexport const zero = () => 0;\r\nexport const blank = () => new Color('none');\r\nexport const empty = () => '';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/82e0b595b06df8b68d31ab7ed9b59231.json b/node_modules/.cache/cache-loader/82e0b595b06df8b68d31ab7ed9b59231.json deleted file mode 100644 index 6eaba0b..0000000 --- a/node_modules/.cache/cache-loader/82e0b595b06df8b68d31ab7ed9b59231.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Minimap\\Minimap.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Minimap\\Minimap.tsx","mtime":1631029334793},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1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B7CiAgICBrZXk6IGBzZWxlY3RlZGAsCiAgICB2ZXJ0ZXhJZHM6IHNlbGVjdGVkTm9kZUlkcywKICAgIGNvbG9yOiBzZWxlY3RlZENvbG9yCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZVNldEhpZ2hsaWdodCwgewogICAga2V5OiBgaG92ZXJlZGAsCiAgICB2ZXJ0ZXhJZHM6IGhvdmVyZWROb2RlSWRzLAogICAgY29sb3I6IGhvdmVyQ29sb3IKICB9KSksIHNob3dBb2kgPyBSZWFjdC5jcmVhdGVFbGVtZW50KEFvaSwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChTdmcsIHsKICAgIHdpZHRoOiB3aWR0aCwKICAgIGhlaWdodDogaGVpZ2h0CiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudCgicmVjdCIsIHsKICAgIHN0cm9rZTogYm91bmRzQ29sb3IsCiAgICBzdHJva2VPcGFjaXR5OiAwLjYsCiAgICBzdHJva2VXaWR0aDogMS4wLAogICAgeDogeCwKICAgIHk6IHksCiAgICB3aWR0aDogdywKICAgIGhlaWdodDogaCwKICAgIGZpbGw6ICd0cmFuc3BhcmVudCcKICB9KSkpIDogbnVsbCk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCgl3aWR0aDogJHsoewogIHdpZHRoCn0pID0+IHdpZHRofXB4OwoJaGVpZ2h0OiAkeyh7CiAgaGVpZ2h0Cn0pID0+IGhlaWdodH1weDsKYDsKY29uc3QgQW9pID0gc3R5bGVkLmRpdmAKCXBvc2l0aW9uOiByZWxhdGl2ZTsKYDsKY29uc3QgU3ZnID0gc3R5bGVkLnN2Z2AKCXBvaW50ZXItZXZlbnRzOiBub25lOwoJcG9zaXRpb246IGFic29sdXRlOwoJbGVmdDogMTBweDsKCWJvdHRvbTogMHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Minimap/Minimap.tsx"],"names":["useHoveredNodeColor","useSelectedNodeColor","useAOIBoundsColor","useMiniMapNodeColor","useBackgroundColor","useNodeIds","useAOIBounds","usePlotTheme","GraphView","NodeSetHighlight","Nodes","React","useCallback","styled","Minimap","data","width","height","minRadius","maxRadius","hoveredNodes","selectedNodes","aoiBounds","hoveredNodeIds","selectedNodeIds","backgroundColor","selectedColor","boundsColor","hoverColor","nodeColor","colorize","x","y","w","h","showAoi","plotTheme","createElement","Container","style","color","key","vertexIds","Aoi","Svg","stroke","strokeOpacity","strokeWidth","fill","div","svg"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,EAA8BC,oBAA9B,EAAoDC,iBAApD,EAAuEC,mBAAvE,EAA4FC,kBAA5F,EAAgHC,UAAhH,QAAmI,mBAAnI;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,YAAT,QAA6B,eAA7B;AACA,SAASC,SAAT,EAAoBC,gBAApB,EAAsCC,KAAtC,QAAmD,oBAAnD;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,OAAO,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA,KAAR;AAAeC,EAAAA,MAAf;AAAuBC,EAAAA,SAAS,GAAG,CAAnC;AAAsCC,EAAAA,SAAS,GAAG,CAAlD;AAAqDC,EAAAA,YAArD;AAAmEC,EAAAA,aAAnE;AAAkFC,EAAAA;AAAlF,CAAD,KAAoG;AACvH,QAAMC,cAAc,GAAGlB,UAAU,CAACe,YAAD,CAAjC;AACA,QAAMI,eAAe,GAAGnB,UAAU,CAACgB,aAAD,CAAlC;AACA,QAAMI,eAAe,GAAGrB,kBAAkB,EAA1C;AACA,QAAMsB,aAAa,GAAGzB,oBAAoB,EAA1C;AACA,QAAM0B,WAAW,GAAGzB,iBAAiB,EAArC;AACA,QAAM0B,UAAU,GAAG5B,mBAAmB,EAAtC;AACA,QAAM6B,SAAS,GAAG1B,mBAAmB,EAAr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,EACPhC,KAAK,CAAC0B,aAAN,CAAoBO,GAApB,EAAyB;AAAE5B,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,MAAM,EAAEA;AAAxB,GAAzB,EACIN,KAAK,CAAC0B,aAAN,CAAoB,MAApB,EAA4B;AAAEQ,IAAAA,MAAM,EAAElB,WAAV;AAAuBmB,IAAAA,aAAa,EAAE,GAAtC;AAA2CC,IAAAA,WAAW,EAAE,GAAxD;AAA6DhB,IAAAA,CAAC,EAAEA,CAAhE;AAAmEC,IAAAA,CAAC,EAAEA,CAAtE;AAAyEhB,IAAAA,KAAK,EAAEiB,CAAhF;AAAmFhB,IAAAA,MAAM,EAAEiB,CAA3F;AAA8Fc,IAAAA,IAAI,EAAE;AAApG,GAA5B,CADJ,CADO,CAAJ,GAEuJ,IAP1J,CAAR;AAQH,CApBM;AAqBP,MAAMV,SAAS,GAAGzB,MAAM,CAACoC,GAAK;AAC9B,UAAU,CAAC;AAAEjC,EAAAA;AAAF,CAAD,KAAeA,KAAM;AAC/B,WAAW,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC,CAHA;AAIA,MAAM0B,GAAG,GAAG9B,MAAM,CAACoC,GAAK;AACxB;AACA,CAFA;AAGA,MAAML,GAAG,GAAG/B,MAAM,CAACqC,GAAK;AACxB;AACA;AACA;AACA;AACA,CALA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useHoveredNodeColor, useSelectedNodeColor, useAOIBoundsColor, useMiniMapNodeColor, useBackgroundColor, useNodeIds, } from '../../hooks/graph';\r\nimport { useAOIBounds } from './hooks';\r\nimport { usePlotTheme } from './hooks/theme';\r\nimport { GraphView, NodeSetHighlight, Nodes } from '@graspologic/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const Minimap = ({ data, width, height, minRadius = 1, maxRadius = 1, hoveredNodes, selectedNodes, aoiBounds, }) => {\r\n const hoveredNodeIds = useNodeIds(hoveredNodes);\r\n const selectedNodeIds = useNodeIds(selectedNodes);\r\n const backgroundColor = useBackgroundColor();\r\n const selectedColor = useSelectedNodeColor();\r\n const boundsColor = useAOIBoundsColor();\r\n const hoverColor = useHoveredNodeColor();\r\n const nodeColor = useMiniMapNodeColor();\r\n const colorize = useCallback(() => nodeColor, [nodeColor]);\r\n // aoi will be tied to actual pixel dimensions, so we need to adjust the 0-1 scaling to fit\r\n const { x, y, w, h, showAoi } = useAOIBounds(height, width, aoiBounds);\r\n const plotTheme = usePlotTheme(width, height);\r\n return (React.createElement(Container, { width: width, height: height },\r\n React.createElement(GraphView, { data: data, backgroundColor: backgroundColor, style: plotTheme },\r\n React.createElement(Nodes, { color: colorize, minRadius: minRadius, maxRadius: maxRadius }),\r\n React.createElement(NodeSetHighlight, { key: `selected`, vertexIds: selectedNodeIds, color: selectedColor }),\r\n React.createElement(NodeSetHighlight, { key: `hovered`, vertexIds: hoveredNodeIds, color: hoverColor })),\r\n showAoi ? (React.createElement(Aoi, null,\r\n React.createElement(Svg, { width: width, height: height },\r\n React.createElement(\"rect\", { stroke: boundsColor, strokeOpacity: 0.6, strokeWidth: 1.0, x: x, y: y, width: w, height: h, fill: 'transparent' })))) : null));\r\n};\r\nconst Container = styled.div `\r\n\twidth: ${({ width }) => width}px;\r\n\theight: ${({ height }) => height}px;\r\n`;\r\nconst Aoi = styled.div `\r\n\tposition: relative;\r\n`;\r\nconst Svg = styled.svg `\r\n\tpointer-events: none;\r\n\tposition: absolute;\r\n\tleft: 10px;\r\n\tbottom: 0px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/83df60a9188bc46dcc798f4d31eebeb8.json b/node_modules/.cache/cache-loader/83df60a9188bc46dcc798f4d31eebeb8.json deleted file mode 100644 index a0b660f..0000000 --- a/node_modules/.cache/cache-loader/83df60a9188bc46dcc798f4d31eebeb8.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\Dots.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\Dots.tsx","mtime":1631029334831},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlTGVnZW5kQ29sb3JTY2FsZSwgdXNlTGVnZW5kTnVtZXJpY1NjYWxlIH0gZnJvbSAnLi9ob29rcyc7CmltcG9ydCB7IHVzZVRoZW1hdGljIH0gZnJvbSAnQHRoZW1hdGljL3JlYWN0JzsKaW1wb3J0IHsgc2NhbGVMaW5lYXIgfSBmcm9tICdkMy1zY2FsZSc7CmltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwpleHBvcn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ZmlsbDogZmlsbCwKICAgICAgICBmaWxsT3BhY2l0eTogb3BhY2l0eSwKICAgICAgICAvLyB0aW55IGJhY2tncm91bmQgYm9yZGVyIGluIGNhc2Ugb2Ygb3ZlcmxhcAogICAgICAgIHN0cm9rZTogdGhlbWUucGxvdEFyZWEoKS5maWxsKCkuaGV4KCksCiAgICAgICAgc3Ryb2tlV2lkdGg6IDAuNSwKICAgICAgICBjeDogeChpKSwKICAgICAgICBjeTogbWlkLAogICAgICAgIHI6IHIKICAgICAgfSk7CiAgICB9KTsKICB9LCBbdGhlbWUsIHdpZHRoLCBoZWlnaHQsIG1heEl0ZW1zLCBjb2xvclNjYWxlLCBzaXplU2NhbGUsIG9wYWNpdHlTY2FsZV0pOwoKICBpZiAoaGVpZ2h0IDw9IDEpIHsKICAgIHJldHVybiBudWxsOwogIH0KCiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoInN2ZyIsIHsKICAgIHdpZHRoOiB3aWR0aCwKICAgIGhlaWdodDogaGVpZ2h0CiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudCgiZyIsIG51bGwsIGRvdHMpKTsKfTs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/Dots.tsx"],"names":["useLegendColorScale","useLegendNumericScale","useThematic","scaleLinear","React","useMemo","Dots","colorEncoding","sizeEncoding","opacityEncoding","width","height","maxItems","theme","colorScale","application","highContrast","hex","sizeScale","opacityScale","dots","mid","x","domain","range","Array","fill","map","_","i","r","opacity","createElement","key","fillOpacity","stroke","plotArea","strokeWidth","cx","cy"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,qBAA9B,QAA2D,SAA3D;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,QAA4B,UAA5B;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAO,MAAMC,IAAI,GAAG,CAAC;AAAEC,EAAAA,aAAF;AAAiBC,EAAAA,YAAjB;AAA+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,QAAAA,WAAW,EAAEH,OAArE;AAClC;AACAI,QAAAA,MAAM,EAAEtB,KAAK,CAACuB,QAAN,GAAiBV,IAAjB,GAAwBT,GAAxB,EAF0B;AAEKoB,QAAAA,WAAW,EAAE,GAFlB;AAEuBC,QAAAA,EAAE,EAAEhB,CAAC,CAACO,CAAD,CAF5B;AAEiCU,QAAAA,EAAE,EAAElB,GAFrC;AAE0CS,QAAAA,CAAC,EAAEA;AAF7C,OAA9B,CAAR;AAGH,KAPM,CAAP;AAQH,GAbmB,EAajB,CAACjB,KAAD,EAAQH,KAAR,EAAeC,MAAf,EAAuBC,QAAvB,EAAiCE,UAAjC,EAA6CI,SAA7C,EAAwDC,YAAxD,CAbiB,CAApB;;AAcA,MAAIR,MAAM,IAAI,CAAd,EAAiB;AACb,WAAO,IAAP;AACH;;AACD,SAAQP,KAAK,CAAC4B,aAAN,CAAoB,KAApB,EAA2B;AAAEtB,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,MAAM,EAAEA;AAAxB,GAA3B,EACJP,KAAK,CAAC4B,aAAN,CAAoB,GAApB,EAAyB,IAAzB,EAA+BZ,IAA/B,CADI,CAAR;AAEH,CAxBM","sourcesContent":["import { useLegendColorScale, useLegendNumericScale } from './hooks';\r\nimport { useThematic } from '@thematic/react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport React, { useMemo } from 'react';\r\nexport const Dots = ({ colorEncoding, sizeEncoding, opacityEncoding, width = 200, height = 10, maxItems = 10, }) => {\r\n const theme = useThematic();\r\n const colorScale = useLegendColorScale(colorEncoding, maxItems, theme.application().highContrast().hex());\r\n const sizeScale = useLegendNumericScale(sizeEncoding, maxItems, height / 2 - 1);\r\n const opacityScale = useLegendNumericScale(opacityEncoding, maxItems, 0.9);\r\n const dots = useMemo(() => {\r\n const mid = height / 2 - 1;\r\n const x = scaleLinear()\r\n .domain([0, maxItems - 1])\r\n .range([mid, width - mid]);\r\n return new Array(maxItems).fill(1).map((_, i) => {\r\n const fill = colorScale(i);\r\n const r = sizeScale(i);\r\n const opacity = opacityScale(i);\r\n return (React.createElement(\"circle\", { key: `dots-${fill}-${r}-${opacity}-${i}`, fill: fill, fillOpacity: opacity, \r\n // tiny background border in case of overlap\r\n stroke: theme.plotArea().fill().hex(), strokeWidth: 0.5, cx: x(i), cy: mid, r: r }));\r\n });\r\n }, [theme, width, height, maxItems, colorScale, sizeScale, opacityScale]);\r\n if (height <= 1) {\r\n return null;\r\n }\r\n return (React.createElement(\"svg\", { width: width, height: height },\r\n React.createElement(\"g\", null, dots)));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/84b1e27c3cf59045133eb1fe526604d7.json b/node_modules/.cache/cache-loader/84b1e27c3cf59045133eb1fe526604d7.json deleted file mode 100644 index 4eeb770..0000000 --- a/node_modules/.cache/cache-loader/84b1e27c3cf59045133eb1fe526604d7.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\index.tsx","mtime":1620403249295},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NvbW11bml0eUxpc3QnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,iBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './CommunityList';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8701c5eee1e23b178c0012dbeddf6f9d.json b/node_modules/.cache/cache-loader/8701c5eee1e23b178c0012dbeddf6f9d.json deleted file mode 100644 index 6e9cb48..0000000 --- a/node_modules/.cache/cache-loader/8701c5eee1e23b178c0012dbeddf6f9d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useBarScale.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useBarScale.ts","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBzY2FsZUxpbmVhciB9IGZyb20gJ2QzLXNjYWxlJzsKaW1wb3J0IHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKZXhwb3J0IGZ1bmN0aW9uIHVzZUJhclNjYWxlKGRvbWFpbiwgcmFuZ2UpIHsKICAvLyBzbGlnaHRseSBtb2RpZnkgc3RhbmRhcmQgYmFyIHNjYWxlIHRvIGFjY291bnQgZm9yIHRoZSBjYXNlIHdoZXJlIGFsbCBhcmUgdGhlIHNhbWUgc2l6ZQogIC8vIHRoaXMgdHlwaWNhbGx5IGhhcHBlbnMgd2hlbiB3ZSByZWFjaCBhIGxlYWYgY29tbXVuaXR5IHdpdGggbm8gY2hpbGRyZW4KICAvLyBpZiB3ZSBkb24ndCBkbyB0aGlzIG1vZCwgdGhlIGJhcnMgZmlsbCBoYWxmIHRoZSBhdmFpbGFibGUgc3BhY2UsIHdoaWNoIGlzIHdlaXJkLgogIGNvbnN0IHIgPSB1c2VNZW1vKCgpID0+IGRvbWFpblswXSA9PT0gZG9tYWluWzFdID8gWzAsIDBdIDogcmFuZ2UsIFtkb21haW4sIHJhbmdlXSk7CiAgcmV0dXJuIHVzZU1lbW8oKCkgPT4gc2NhbGVMaW5lYXIoKS5kb21haW4oZG9tYWluKS5yYW5nZShyKSwgW2RvbWFpbiwgcl0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/hooks/useBarScale.ts"],"names":["scaleLinear","useMemo","useBarScale","domain","range","r"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,UAA5B;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,OAAO,SAASC,WAAT,CAAqBC,MAArB,EAA6BC,KAA7B,EAAoC;AACvC;AACA;AACA;AACA,QAAMC,CAAC,GAAGJ,OAAO,CAAC,MAAOE,MAAM,CAAC,CAAD,CAAN,KAAcA,MAAM,CAAC,CAAD,CAApB,GAA0B,CAAC,CAAD,EAAI,CAAJ,CAA1B,GAAmCC,KAA3C,EAAmD,CAACD,MAAD,EAASC,KAAT,CAAnD,CAAjB;AACA,SAAOH,OAAO,CAAC,MAAMD,WAAW,GAAGG,MAAd,CAAqBA,MAArB,EAA6BC,KAA7B,CAAmCC,CAAnC,CAAP,EAA8C,CAACF,MAAD,EAASE,CAAT,CAA9C,CAAd;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { useMemo } from 'react';\r\nexport function useBarScale(domain, range) {\r\n // slightly modify standard bar scale to account for the case where all are the same size\r\n // this typically happens when we reach a leaf community with no children\r\n // if we don't do this mod, the bars fill half the available space, which is weird.\r\n const r = useMemo(() => (domain[0] === domain[1] ? [0, 0] : range), [domain, range]);\r\n return useMemo(() => scaleLinear().domain(domain).range(r), [domain, r]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8888181596d34844e744232ac198ca0a.json b/node_modules/.cache/cache-loader/8888181596d34844e744232ac198ca0a.json deleted file mode 100644 index f0b5a65..0000000 --- a/node_modules/.cache/cache-loader/8888181596d34844e744232ac198ca0a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\FileList\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\FileList\\index.tsx","mtime":1620403249317},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0ZpbGVMaXN0Jzs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/FileList/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,YAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './FileList';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/88f6fd483b689b26e5df1785594cf3ae.json b/node_modules/.cache/cache-loader/88f6fd483b689b26e5df1785594cf3ae.json deleted file mode 100644 index 12c9600..0000000 --- a/node_modules/.cache/cache-loader/88f6fd483b689b26e5df1785594cf3ae.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\ColumnEditor\\ColumnEditor.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\ColumnEditor\\ColumnEditor.tsx","mtime":1631029334753},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgSWNvbkJ1dHRvbiB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjaywgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmltcG9ydCB7IHVzZUFycXVlcm9Db2x1bW5MaXN0LCB1c2VBcnF1ZXJvUmVtb3ZlQ29sdW1ucyB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IHVzZU5vZGVDb2xvckVuY29kaW5nLCB1c2VCcm93c2VyQ29sdW1ucyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgQ29sdW1uRWRpdG9yID0gKCkgPT4gewogIGNvbnN0IGNvbHVtbnMgPSB1c2VBcnF1ZXJvQ29sdW1uTGlzdCgpOwogIGNvbnN0IHJlbW92ZUNvbHVtbnMgPSB1c2VBcnF1ZXJvUmVtb3ZlQ29sdW1ucygpOwogIGNvbnN0IFticm93c2VyQ29sdW1ucywgc2V0QnJvd3NlckNvbHVtbnNdID0gdXNlQnJvd3NlckNvbHVtbnMoKTsKICBjb25zdCBvblZpc2liaWxpdHlDaGFuZ2UgPSB1c2VDYWxsYmFjaygodXBkYXRlZCwgcHJldlN0YXRlKSA9PiB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TogImRlbGV0ZSIsCiAgICBpY29uUHJvcHM6IHsKICAgICAgaWNvbk5hbWU6ICdkZWxldGUnCiAgICB9LAogICAgZGlzYWJsZWQ6IGNvbHVtbi5yZWFkT25seSB8fCBjb2x1bW4ubmFtZSA9PT0gZW5jb2RpbmcuZmllbGQKICB9KSkpLCBjb2x1bW4ubmFtZSAhPT0gJ25vZGUuaWQnID8gUmVhY3QuY3JlYXRlRWxlbWVudCgidGQiLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KENlbGwsIHsKICAgIG9uQ2xpY2s6IGhhbmRsZVZpc2libGVDbGljaywKICAgIG9uS2V5RG93bjogaGFuZGxlVmlzaWJsZUNsaWNrLAogICAgdGFiSW5kZXg6IGluZGV4CiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChJY29uQnV0dG9uLCB7CiAgICB0aXRsZTogInRvZ2dsZSB2aWV3IiwKICAgIGljb25Qcm9wczogewogICAgICBpY29uTmFtZQogICAgfQogIH0pKSkgOiBudWxsKTsKfTsKCmNvbnN0IFRhYmxlID0gc3R5bGVkLnRhYmxlYAoJZm9udC1zaXplOiAxMnB4OwoJd2lkdGg6IDEwMCU7Cgl0ZXh0LWFsaWduOiBsZWZ0OwoJYWxpZ24tY29udGVudDogY2VudGVyOwpgOwpjb25zdCBDZWxsID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/ColumnEditor/ColumnEditor.tsx"],"names":["IconButton","React","useCallback","useMemo","styled","useArqueroColumnList","useArqueroRemoveColumns","useNodeColorEncoding","useBrowserColumns","ColumnEditor","columns","removeColumns","browserColumns","setBrowserColumns","onVisibilityChange","updated","prevState","name","state","copy","Set","delete","add","handleDeleteRequested","column","getVisibleState","size","has","createElement","Table","map","index","browserVisible","ColumnRow","key","onDeleteRequested","encoding","deletionDisabled","readOnly","field","handleDeleteClick","handleVisibleClick","iconName","tabIndex","dataType","Cell","onClick","onKeyDown","title","iconProps","disabled","table","div"],"mappings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AAgC;AAAEgD,IAAAA,KAAK,EAAE,QAAT;AAAmBC,IAAAA,SAAS,EAAE;AAAEP,MAAAA,QAAQ,EAAE;AAAZ,KAA9B;AAAsDQ,IAAAA,QAAQ,EAAE1B,MAAM,CAACc,QAAP,IAAmBd,MAAM,CAACP,IAAP,KAAgBmB,QAAQ,CAACG;AAA5G,GAAhC,CADJ,CADJ,CAHI,EAMJf,MAAM,CAACP,IAAP,KAAgB,SAAhB,GAA6BhB,KAAK,CAAC2B,aAAN,CAAoB,IAApB,EAA0B,IAA1B,EACzB3B,KAAK,CAAC2B,aAAN,CAAoBiB,IAApB,EAA0B;AAAEC,IAAAA,OAAO,EAAEL,kBAAX;AAA+BM,IAAAA,SAAS,EAAEN,kBAA1C;AAA8DE,IAAAA,QAAQ,EAAEZ;AAAxE,GAA1B,EACI9B,KAAK,CAAC2B,aAAN,CAAoB5B,UAApB,EAAgC;AAAEgD,IAAAA,KAAK,EAAE,aAAT;AAAwBC,IAAAA,SAAS,EAAE;AAAEP,MAAAA;AAAF;AAAnC,GAAhC,CADJ,CADyB,CAA7B,GAEgG,IAR5F,CAAR;AASH,CAlBD;;AAmBA,MAAMb,KAAK,GAAGzB,MAAM,CAAC+C,KAAO;AAC5B;AACA;AACA;AACA;AACA,CALA;AAMA,MAAMN,IAAI,GAAGzC,MAAM,CAACgD,GAAK,EAAzB","sourcesContent":["import { IconButton } from '@fluentui/react';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroColumnList, useArqueroRemoveColumns } from '~/arquero';\r\nimport { useNodeColorEncoding, useBrowserColumns } from '~/state';\r\nexport const ColumnEditor = () => {\r\n const columns = useArqueroColumnList();\r\n const removeColumns = useArqueroRemoveColumns();\r\n const [browserColumns, setBrowserColumns] = useBrowserColumns();\r\n const onVisibilityChange = useCallback((updated, prevState) => {\r\n const name = updated.name;\r\n const state = !prevState;\r\n const copy = new Set(browserColumns);\r\n if (!state) {\r\n copy.delete(name);\r\n }\r\n else {\r\n copy.add(name);\r\n }\r\n setBrowserColumns(copy);\r\n }, [setBrowserColumns, browserColumns]);\r\n const handleDeleteRequested = useCallback((column) => removeColumns([column.name]), [removeColumns]);\r\n const getVisibleState = useCallback((column) => {\r\n if (browserColumns.size > 0) {\r\n return browserColumns.has(column.name);\r\n }\r\n return false;\r\n }, [browserColumns]);\r\n return (React.createElement(Table, null,\r\n React.createElement(\"thead\", null,\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"th\", null, \"column\"),\r\n React.createElement(\"th\", null, \"data type\"),\r\n React.createElement(\"th\", null))),\r\n React.createElement(\"tbody\", null, columns.map((column, index) => {\r\n const browserVisible = getVisibleState(column);\r\n return (React.createElement(ColumnRow, { key: `column-editor-${column.name}`, column: column, onDeleteRequested: handleDeleteRequested, browserVisible: browserVisible, onVisibilityChange: onVisibilityChange, index: index }));\r\n }))));\r\n};\r\nconst ColumnRow = ({ column, onDeleteRequested, browserVisible, onVisibilityChange, index, }) => {\r\n // TEMP: this is to prevent removal of the current visual column\r\n // it would be better for the removal to cascade and a new column selected automatically?\r\n const encoding = useNodeColorEncoding();\r\n const deletionDisabled = useMemo(() => column.readOnly || column.name === encoding.field, [column, encoding]);\r\n const handleDeleteClick = useCallback(() => !deletionDisabled && onDeleteRequested && onDeleteRequested(column), [column, onDeleteRequested, deletionDisabled]);\r\n const handleVisibleClick = useCallback(() => onVisibilityChange && onVisibilityChange(column, browserVisible), [onVisibilityChange, browserVisible, column]);\r\n const iconName = useMemo(() => (browserVisible ? 'RedEye' : 'Hide'), [browserVisible]);\r\n const tabIndex = useMemo(() => (deletionDisabled ? -1 : index), [deletionDisabled, index]);\r\n return (React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null, column.name),\r\n React.createElement(\"td\", null, column.dataType),\r\n React.createElement(\"td\", null,\r\n React.createElement(Cell, { onClick: handleDeleteClick, onKeyDown: handleDeleteClick, tabIndex: tabIndex },\r\n React.createElement(IconButton, { title: \"delete\", iconProps: { iconName: 'delete' }, disabled: column.readOnly || column.name === encoding.field }))),\r\n column.name !== 'node.id' ? (React.createElement(\"td\", null,\r\n React.createElement(Cell, { onClick: handleVisibleClick, onKeyDown: handleVisibleClick, tabIndex: index },\r\n React.createElement(IconButton, { title: \"toggle view\", iconProps: { iconName } })))) : null));\r\n};\r\nconst Table = styled.table `\r\n\tfont-size: 12px;\r\n\twidth: 100%;\r\n\ttext-align: left;\r\n\talign-content: center;\r\n`;\r\nconst Cell = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8a350b13147ae732159ed5d19ec1511e.json b/node_modules/.cache/cache-loader/8a350b13147ae732159ed5d19ec1511e.json deleted file mode 100644 index f5eb3e4..0000000 --- a/node_modules/.cache/cache-loader/8a350b13147ae732159ed5d19ec1511e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\hooks\\index.ts","mtime":1620403249171},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3VzZVByZXNldERhdGEnOwpleHBvcnQgKiBmcm9tICcuL3VzZVRlc3RGaWxlcyc7CmV4cG9ydCAqIGZyb20gJy4vdXNlVXJsRmlsZXMnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,iBAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './usePresetData';\r\nexport * from './useTestFiles';\r\nexport * from './useUrlFiles';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8a578dcca855553a2df2ed768606a34a.json b/node_modules/.cache/cache-loader/8a578dcca855553a2df2ed768606a34a.json deleted file mode 100644 index 2f7dd7e..0000000 --- a/node_modules/.cache/cache-loader/8a578dcca855553a2df2ed768606a34a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\utils\\query.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\utils\\query.ts","mtime":1631029334925},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBwYXJzZSB9IGZyb20gJ3F1ZXJ5LXN0cmluZyc7CmV4cG9ydCBmdW5jdGlvbiBnZXRRdWVyeSgpIHsKICAvLyBUT0RPOiByZWFjdC1yb3V0ZXIgaGFzaCByb3V0ZXIgbWVzc2VzIHVwIHRoZSBzdGFuZGFyZCBsb2NhdGlvbi5zZWFyY2gKICAvLyB0aGlzIGp1c3QgaGFja3MgYSBxdWljayBleHRyYWN0b24gaW4KICBjb25zdCBzZWFyY2ggPSB3aW5kb3cubG9jYXRpb24ua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mcoJ2VkZ2VzJyk7Cn0KZXhwb3J0IGZ1bmN0aW9uIGdldEpvaW5GaWxlKCkgewogIHJldHVybiBnZXRTdHJpbmcoJ2pvaW4nKTsKfQpleHBvcnQgZnVuY3Rpb24gZ2V0Q29tbXVuaXRpZXNGaWxlKCkgewogIHJldHVybiBnZXRTdHJpbmcoJ2NvbW11bml0aWVzJyk7Cn0KLyoqDQogKiBUYWtlcyBhbiBpbnB1dCBvYmplY3Qgd2l0aCBrZXlzIGFuZCB2YWx1ZXMsDQogKiB3aGVyZSB0aGUga2V5IGlzIHRoZSBwYXJhbSBhbmQgdGhlIHZhbHVlIGlzIHRoZSBkZWZhdWx0Lg0KICogTG9vayBmb3IgYWxsIG9mIHRoZXNlIHByb3BlcnRpZXMgb24gdGhlIHF1ZXJ5LCByZXR1cm5pbmcgdGhlDQogKiBkZWZhdWx0IGZvciBlYWNoIGlmIG5vdCBzcGVjaWZpZWQuDQogKiBAcGFyYW0gaW5wdXQNCiAqLwoKZXhwb3J0IGZ1bmN0aW9uIHBhcnNlUGFyYW1zKGlucHV0KSB7CiAgY29uc3QgcXVlcnkgPSBnZXRRdWVyeSgpOwogIHJldHVybiBPYmplY3QuZW50cmllcyhpbnB1dCkucmVkdWNlKChhY2MsIGN1cikgPT4gewogICAgY29uc3QgW2tleSwgdmFsdWVdID0gY3VyOwogICAgY29uc3QgcGFyYW0gPSBxdWVyeVtrZXldOyAvLyBleHBsaWNpdCB1bmRlZmluZWQgY2hlY2ssIGZvciBmYWxzZXkgc3R1ZmYKCiAgICBpZiAocGFyYW0gPT09IHVuZGVmaW5lZCkgewogICAgICBhY2Nba2V5XSA9IHZhbHVlOwogICAgfSBlbHNlIHsKICAgICAgYWNjW2tleV0gPSBwYXJhbTsKICAgIH0KCiAgICByZXR1cm4gYWNjOwogIH0sIHt9KTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/utils/query.ts"],"names":["parse","getQuery","search","window","location","href","split","parseBooleans","parseNumbers","getString","name","defaultValue","query","getBoolean","getNumber","getDataset","getFormat","getNodesFile","console","log","getEdgesFile","getJoinFile","getCommunitiesFile","parseParams","input","Object","entries","reduce","acc","cur","key","value","param","undefined"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,KAAT,QAAsB,cAAtB;AACA,OAAO,SAASC,QAAT,GAAoB;AACvB;AACA;AACA,QAAMC,MAAM,GAAGC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAqBC,KAArB,CAA2B,GAA3B,EAAgC,CAAhC,CAAf;AACA,SAAON,KAAK,CAACE,MAAD,EAAS;AACjBK,IAAAA,aAAa,EAAE,IADE;AAEjBC,IAAAA,YAAY,EAAE;AAFG,GAAT,CAAZ;AAIH;AACD,OAAO,SAASC,SAAT,CAAmBC,IAAnB,EAAyBC,YAAY,GAAG,EAAxC,EAA4C;AAC/C,QAAMC,KAAK,GAAGX,QAAQ,EAAtB;AACA,SAAOW,KAAK,CAACF,IAAD,CAAL,IAAeC,YAAtB;AACH;AACD,OAAO,SAASE,UAAT,CAAoBH,IAApB,EAA0BC,YAAY,GAAG,KAAzC,EAAgD;AACnD,QAAMC,KAAK,GAAGX,QAAQ,EAAtB;AACA,SAAOW,KAAK,CAACF,IAAD,CAAL,IAAeC,YAAtB;AACH;AACD,OAAO,SAASG,SAAT,CAAmBJ,IAAnB,EAAyBC,YAAY,GAAG,CAAxC,EAA2C;AAC9C,QAAMC,KAAK,GAAGX,QAAQ,EAAtB;AACA,SAAOW,KAAK,CAACF,IAAD,CAAL,IAAeC,YAAtB;AACH;AACD,OAAO,SAASI,UAAT,GAAsB;AACzB,SAAON,SAAS,CAAC,SAAD,CAAhB;AACH;AACD,OAAO,SAASO,SAAT,GAAqB;AACxB,SAAOP,SAAS,CAAC,QAAD,EAAW,KAAX,CAAhB;AACH;AACD,OAAO,SAASQ,YAAT,GAAwB;AAC3BC,EAAAA,OAAO,CAACC,GAAR,CAAY,YAAZ,EAA0BV,SAAS,CAAC,OAAD,CAAnC;AACAS,EAAAA,OAAO,CAACC,GAAR,CAAYlB,QAAQ,EAApB;AACA,SAAOQ,SAAS,CAAC,OAAD,CAAhB;AACH;AACD,OAAO,SAASW,YAAT,GAAwB;AAC3B,SAAOX,SAAS,CAAC,OAAD,CAAhB;AACH;AACD,OAAO,SAASY,WAAT,GAAuB;AAC1B,SAAOZ,SAAS,CAAC,MAAD,CAAhB;AACH;AACD,OAAO,SAASa,kBAAT,GAA8B;AACjC,SAAOb,SAAS,CAAC,aAAD,CAAhB;AACH;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASc,WAAT,CAAqBC,KAArB,EAA4B;AAC/B,QAAMZ,KAAK,GAAGX,QAAQ,EAAtB;AACA,SAAOwB,MAAM,CAACC,OAAP,CAAeF,KAAf,EAAsBG,MAAtB,CAA6B,CAACC,GAAD,EAAMC,GAAN,KAAc;AAC9C,UAAM,CAACC,GAAD,EAAMC,KAAN,IAAeF,GAArB;AACA,UAAMG,KAAK,GAAGpB,KAAK,CAACkB,GAAD,CAAnB,CAF8C,CAG9C;;AACA,QAAIE,KAAK,KAAKC,SAAd,EAAyB;AACrBL,MAAAA,GAAG,CAACE,GAAD,CAAH,GAAWC,KAAX;AACH,KAFD,MAGK;AACDH,MAAAA,GAAG,CAACE,GAAD,CAAH,GAAWE,KAAX;AACH;;AACD,WAAOJ,GAAP;AACH,GAXM,EAWJ,EAXI,CAAP;AAYH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { parse } from 'query-string';\r\nexport function getQuery() {\r\n // TODO: react-router hash router messes up the standard location.search\r\n // this just hacks a quick extracton in\r\n const search = window.location.href.split('?')[1];\r\n return parse(search, {\r\n parseBooleans: true,\r\n parseNumbers: true,\r\n });\r\n}\r\nexport function getString(name, defaultValue = '') {\r\n const query = getQuery();\r\n return query[name] || defaultValue;\r\n}\r\nexport function getBoolean(name, defaultValue = false) {\r\n const query = getQuery();\r\n return query[name] || defaultValue;\r\n}\r\nexport function getNumber(name, defaultValue = 0) {\r\n const query = getQuery();\r\n return query[name] || defaultValue;\r\n}\r\nexport function getDataset() {\r\n return getString('dataset');\r\n}\r\nexport function getFormat() {\r\n return getString('format', 'csv');\r\n}\r\nexport function getNodesFile() {\r\n console.log('nodes file', getString('nodes'));\r\n console.log(getQuery());\r\n return getString('nodes');\r\n}\r\nexport function getEdgesFile() {\r\n return getString('edges');\r\n}\r\nexport function getJoinFile() {\r\n return getString('join');\r\n}\r\nexport function getCommunitiesFile() {\r\n return getString('communities');\r\n}\r\n/**\r\n * Takes an input object with keys and values,\r\n * where the key is the param and the value is the default.\r\n * Look for all of these properties on the query, returning the\r\n * default for each if not specified.\r\n * @param input\r\n */\r\nexport function parseParams(input) {\r\n const query = getQuery();\r\n return Object.entries(input).reduce((acc, cur) => {\r\n const [key, value] = cur;\r\n const param = query[key];\r\n // explicit undefined check, for falsey stuff\r\n if (param === undefined) {\r\n acc[key] = value;\r\n }\r\n else {\r\n acc[key] = param;\r\n }\r\n return acc;\r\n }, {});\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8e17d87520bf5a9d21bcf67bf7e4fcad.json b/node_modules/.cache/cache-loader/8e17d87520bf5a9d21bcf67bf7e4fcad.json deleted file mode 100644 index d09105f..0000000 --- a/node_modules/.cache/cache-loader/8e17d87520bf5a9d21bcf67bf7e4fcad.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\EdgeOpacityControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\EdgeOpacityControls\\index.tsx","mtime":1631029330208},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb0VkZ2VUYWJsZSB9IGZyb20gJ34vYXJxdWVybyc7CmltcG9ydCB7IE51bWVyaWNTZWxlY3RvciB9IGZyb20gJ34vY29udHJvbHMvTnVtZXJpY1NlbGVjdG9yJzsKaW1wb3J0IHsgdXNlRWRnZU9wYWNpdHlFbmNvZGluZywgdXNlVXBkYXRlRWRnZU9wYWNpdHlFbmNvZGluZyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgRWRnZU9wYWNpdHlDb250cm9scyA9ICgpID0+IHsKICBjb25zdCBlbmNvZGluZyA9IHVzZUVkZ2VPcGFjaXR5RW5jb2RpbmcoKTsKICBjb25zdCB1cGRhdGVFbmNvZGluZyA9IHVzZVVwZGF0ZUVkZ2VPcGFjaXR5RW5jb2RpbmcoKTsKICBjb25zdCB0YWJsZSA9IHVzZUFycXVlcm9FZGdlVGFibGUoKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTnVtZXJpY1NlbGVjdG9yLCB7CiAgICBsYWJlbDogImVkZ2Ugb3BhY2l0eSIsCiAgICB0YWJsZTogdGFibGUsCiAgICBlbmNvZGluZzogZW5jb2RpbmcsCiAgICBvbkNoYW5nZTogdXBkYXRlRW5jb2RpbmcsCiAgICBtaW46IDAsCiAgICBtYXg6IDEsCiAgICBzdGVwOiAwLjEKICB9KSk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/EdgeOpacityControls/index.tsx"],"names":["React","styled","useArqueroEdgeTable","NumericSelector","useEdgeOpacityEncoding","useUpdateEdgeOpacityEncoding","EdgeOpacityControls","encoding","updateEncoding","table","createElement","Container","label","onChange","min","max","step","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,mBAAT,QAAoC,WAApC;AACA,SAASC,eAAT,QAAgC,4BAAhC;AACA,SAASC,sBAAT,EAAiCC,4BAAjC,QAAqE,SAArE;AACA,OAAO,MAAMC,mBAAmB,GAAG,MAAM;AACrC,QAAMC,QAAQ,GAAGH,sBAAsB,EAAvC;AACA,QAAMI,cAAc,GAAGH,4BAA4B,EAAnD;AACA,QAAMI,KAAK,GAAGP,mBAAmB,EAAjC;AACA,SAAQF,KAAK,CAACU,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJX,KAAK,CAACU,aAAN,CAAoBP,eAApB,EAAqC;AAAES,IAAAA,KAAK,EAAE,cAAT;AAAyBH,IAAAA,KAAK,EAAEA,KAAhC;AAAuCF,IAAAA,QAAQ,EAAEA,QAAjD;AAA2DM,IAAAA,QAAQ,EAAEL,cAArE;AAAqFM,IAAAA,GAAG,EAAE,CAA1F;AAA6FC,IAAAA,GAAG,EAAE,CAAlG;AAAqGC,IAAAA,IAAI,EAAE;AAA3G,GAArC,CADI,CAAR;AAEH,CANM;AAOP,MAAML,SAAS,GAAGV,MAAM,CAACgB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroEdgeTable } from '~/arquero';\r\nimport { NumericSelector } from '~/controls/NumericSelector';\r\nimport { useEdgeOpacityEncoding, useUpdateEdgeOpacityEncoding } from '~/state';\r\nexport const EdgeOpacityControls = () => {\r\n const encoding = useEdgeOpacityEncoding();\r\n const updateEncoding = useUpdateEdgeOpacityEncoding();\r\n const table = useArqueroEdgeTable();\r\n return (React.createElement(Container, null,\r\n React.createElement(NumericSelector, { label: \"edge opacity\", table: table, encoding: encoding, onChange: updateEncoding, min: 0, max: 1, step: 0.1 })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/8e290b52f03ab62c51c4bbca3ccc08f8.json b/node_modules/.cache/cache-loader/8e290b52f03ab62c51c4bbca3ccc08f8.json deleted file mode 100644 index d2b792e..0000000 --- a/node_modules/.cache/cache-loader/8e290b52f03ab62c51c4bbca3ccc08f8.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\random.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\random.ts","mtime":1620403249538},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyoqDQogKiBSYW5kb21seSBhc3NpZ24geC95IHBvc2l0aW9ucyB0byBhIHRhYmxlIG9mIG5vZGVzDQogKiBAcGFyYW0gdGFibGUNCiAqLwpleHBvcnQgYXN5bmMgZnVuY3Rpb24gbGF5b3V0UmFuZG9tKG5vZGVzKSB7CiAgcmV0dXJuIG5ldyBQcm9taXNlKHJlc29sdmUgPT4gewogICAgcmVzb2x2ZShub2Rlcy5kZXJpdmUoewogICAgICAnbm9kZS54JzogKCkgPT4gTWF0aC5yYW5kb20oKSwKICAgICAgJ25vZGUueSc6ICgpID0+IE1hdGgucmFuZG9tKCkKICAgIH0pKTsKICB9KTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/layout/random.ts"],"names":["layoutRandom","nodes","Promise","resolve","derive","Math","random"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,eAAeA,YAAf,CAA4BC,KAA5B,EAAmC;AACtC,SAAO,IAAIC,OAAJ,CAAYC,OAAO,IAAI;AAC1BA,IAAAA,OAAO,CAACF,KAAK,CAACG,MAAN,CAAa;AACjB,gBAAU,MAAMC,IAAI,CAACC,MAAL,EADC;AAEjB,gBAAU,MAAMD,IAAI,CAACC,MAAL;AAFC,KAAb,CAAD,CAAP;AAIH,GALM,CAAP;AAMH","sourcesContent":["/**\r\n * Randomly assign x/y positions to a table of nodes\r\n * @param table\r\n */\r\nexport async function layoutRandom(nodes) {\r\n return new Promise(resolve => {\r\n resolve(nodes.derive({\r\n 'node.x': () => Math.random(),\r\n 'node.y': () => Math.random(),\r\n }));\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/91eca423812ab12a07bcfc46434f5ad5.json b/node_modules/.cache/cache-loader/91eca423812ab12a07bcfc46434f5ad5.json deleted file mode 100644 index b47cc46..0000000 --- a/node_modules/.cache/cache-loader/91eca423812ab12a07bcfc46434f5ad5.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\index.ts","mtime":1620403249575},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2NvbmZpZyc7CmV4cG9ydCAqIGZyb20gJy4vZWRnZUNvbG9yJzsKZXhwb3J0ICogZnJvbSAnLi9lZGdlT3BhY2l0eSc7CmV4cG9ydCAqIGZyb20gJy4vZWRnZVNpemUnOwpleHBvcnQgKiBmcm9tICcuL25vZGVDb2xvcic7CmV4cG9ydCAqIGZyb20gJy4vbm9kZU9wYWNpdHknOwpleHBvcnQgKiBmcm9tICcuL25vZGVTaXplJzsKZXhwb3J0ICogZnJvbSAnLi92aWV3Jzs="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,UAAd;AACA,cAAc,aAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,aAAd;AACA,cAAc,eAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './config';\r\nexport * from './edgeColor';\r\nexport * from './edgeOpacity';\r\nexport * from './edgeSize';\r\nexport * from './nodeColor';\r\nexport * from './nodeOpacity';\r\nexport * from './nodeSize';\r\nexport * from './view';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/92f5238cec80d1e3f960ceb99c7f5747.json b/node_modules/.cache/cache-loader/92f5238cec80d1e3f960ceb99c7f5747.json deleted file mode 100644 index cc47df2..0000000 --- a/node_modules/.cache/cache-loader/92f5238cec80d1e3f960ceb99c7f5747.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\CommunityList.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\CommunityList.tsx","mtime":1631029334764},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9ycyhzb3VyY2UpKTsgfSBlbHNlIHsgb3duS2V5cyhPYmplY3Qoc291cmNlKSkuZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7IE9iamVjdC5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29udGFpbmVyLCBudWxsLCAiKG5vIGNoaWxkIGNvbW11bml0aWVzIHRvIHNob3cpIik7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/CommunityList.tsx"],"names":["CommunityRow","useColumns","desc","React","useMemo","useCallback","styled","useHoveredCommunity","useSetSelectedCommunity","useCommunitySort","useSetHoveredCommunity","CommunityList","communities","style","sort","setSort","sorted","descending","field","order","hovered","setHoveredCommunity","setSelectedCommunity","handleRowHover","community","id","handleRowClick","undefined","handleHeaderClick","column","columns","rows","map","comm","createElement","key","onHover","onClick","Container","size","TableContainer","Table","c","Th","header","Empty","div","theme","plotArea","fill","hex","text","table","th"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,gBAA7B;AACA,SAASC,UAAT,QAA2B,SAA3B;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,OAAOC,KAAP,IAAgBC,OAAhB,EAAyBC,WAAzB,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,mBAAT,EAA8BC,uBAA9B,EAAuDC,gBAAvD,EAAyEC,sBAAzE,QAAwG,SAAxG;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,aAAa,GAAG,CAAC;AAAEC,EAAAA,WAAF;AAAeC,EAAAA;AAAf,CAAD,KAA4B;AACrD,QAAM,CAACC,IAAD,EAAOC,OAAP,IAAkBN,gBAAgB,EAAxC;AACA,QAAMO,MAAM,GAAGZ,OAAO,CAAC,MAAM;AACzB,UAAM;AAAEa,MAAAA,UAAF;AAAcC,MAAAA;AAAd,QAAwBJ,IAA9B;AACA,UAAMK,KAAK,GAAGF,UAAU,GAAGf,IAAI,CAACgB,KAAD,CAAP,GAAiBA,KAAzC;AACA,WAAON,WAAW,CAACE,IAAZ,CAAiBK,KAAjB,CAAP;AACH,GAJqB,EAInB,CAACP,WAAD,EAAcE,IAAd,CAJmB,CAAtB;AAKA,QAAMM,OAAO,GAAGb,mBAAmB,EAA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AAK;AACnC;AACA;AACA;AACA,CAJA;AAKA,MAAML,KAAK,GAAGnC,MAAM,CAAC8C,KAAO;AAC5B;AACA,CAFA;AAGA,MAAMT,EAAE,GAAGrC,MAAM,CAAC+C,EAAI;AACtB;AACA,CAFA;;AAGA,MAAMR,KAAK,GAAG,MAAO1C,KAAK,CAAC+B,aAAN,CAAoBM,cAApB,EAAoC,IAApC,EAA0C,gCAA1C,CAArB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { CommunityRow } from './CommunityRow';\r\nimport { useColumns } from './hooks';\r\nimport { desc } from 'arquero';\r\nimport React, { useMemo, useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useHoveredCommunity, useSetSelectedCommunity, useCommunitySort, useSetHoveredCommunity, } from '~/state';\r\n/**\r\n * Displays the list of communities at the currently selected level.\r\n * Should be color-coded to match the graph, and hover/select.\r\n */\r\nexport const CommunityList = ({ communities, style }) => {\r\n const [sort, setSort] = useCommunitySort();\r\n const sorted = useMemo(() => {\r\n const { descending, field } = sort;\r\n const order = descending ? desc(field) : field;\r\n return communities.sort(order);\r\n }, [communities, sort]);\r\n const hovered = useHoveredCommunity();\r\n const setHoveredCommunity = useSetHoveredCommunity();\r\n const setSelectedCommunity = useSetSelectedCommunity();\r\n const handleRowHover = useCallback(community => setHoveredCommunity(community?.id), [setHoveredCommunity]);\r\n const handleRowClick = useCallback(community => {\r\n setSelectedCommunity(community?.id);\r\n setHoveredCommunity(undefined);\r\n }, [setSelectedCommunity, setHoveredCommunity]);\r\n const handleHeaderClick = useCallback(column => {\r\n if (sort.field === column.field) {\r\n setSort({\r\n ...sort,\r\n descending: !sort.descending,\r\n });\r\n }\r\n else {\r\n setSort({\r\n ...sort,\r\n field: column.field,\r\n });\r\n }\r\n }, [sort, setSort]);\r\n const columns = useColumns(communities);\r\n const rows = sorted.map(comm => (React.createElement(CommunityRow, { key: `community-row-${comm.id}`, community: comm, onHover: handleRowHover, onClick: handleRowClick, hovered: comm.id === hovered, columns: columns })), true);\r\n return (React.createElement(Container, { style: style }, sorted.size > 0 ? (React.createElement(TableContainer, null,\r\n React.createElement(Table, null,\r\n React.createElement(\"thead\", null,\r\n React.createElement(\"tr\", null, columns.map(c => (React.createElement(Th, { key: `comm-th-${c.header}`, onClick: () => handleHeaderClick(c) }, c.header))))),\r\n React.createElement(\"tbody\", null, rows)))) : (React.createElement(Empty, null))));\r\n};\r\nconst Container = styled.div `\r\n\tfont-size: 0.8em;\r\n\ttext-align: right;\r\n\tbackground: ${({ theme }) => theme.plotArea().fill().hex()};\r\n\tcolor: ${({ theme }) => theme.text().fill().hex()};\r\n`;\r\nconst TableContainer = styled.div `\r\n\tmargin: 4;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n`;\r\nconst Table = styled.table `\r\n\tborder-spacing: 6px 0px;\r\n`;\r\nconst Th = styled.th `\r\n\tcursor: pointer;\r\n`;\r\nconst Empty = () => (React.createElement(TableContainer, null, \"(no child communities to show)\"));\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/93fc92db10423e62900e3727a37fb89b.json b/node_modules/.cache/cache-loader/93fc92db10423e62900e3727a37fb89b.json deleted file mode 100644 index 7a1cbe7..0000000 --- a/node_modules/.cache/cache-loader/93fc92db10423e62900e3727a37fb89b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\communities.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\communities.ts","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgeyBnZXRDb2x1bW5TdGF0cyB9IGZyb20gJ34vYXJxdWVybyc7CmV4cG9ydCBmdW5jdGlvbiB1c2VOb2RlQ291bnREb21haW4oY29tbXVuaXRpZXMpIHsKICByZXR1cm4gdXNlQ29tbXVuaXR5VmFsdWVEb21haW4oY29tbXVuaXRpZXMsICdjb21tdW5pdHkubm9kZUNvdW50Jyk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUNoaWxkQ291bnREb21haW4oY29tbXVuaXRpZXMpIHsKICByZXR1cm4gdXNlQ29tbXVuaXR5VmFsdWVEb21haW4oY29tbXVuaXRpZXMsICdjb21tdW5pdHkuY2hpbGRDb3VudCcpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VDb21tdW5pdHlWYWx1ZURvbWFpbihjb21tdW5pdGllcywgZmllbGQpIHsKICByZXR1cm4gdXNlTWVtbygoKSA9PiBnZXRDb2x1bW5TdGF0cyhjb21tdW5pdGllcy50YWJsZSwgZmllbGQpLmRvbWFpbiwgW2NvbW11bml0aWVzLCBmaWVsZF0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/communities.ts"],"names":["useMemo","getColumnStats","useNodeCountDomain","communities","useCommunityValueDomain","useChildCountDomain","field","table","domain"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,OAAO,SAASC,kBAAT,CAA4BC,WAA5B,EAAyC;AAC5C,SAAOC,uBAAuB,CAACD,WAAD,EAAc,qBAAd,CAA9B;AACH;AACD,OAAO,SAASE,mBAAT,CAA6BF,WAA7B,EAA0C;AAC7C,SAAOC,uBAAuB,CAACD,WAAD,EAAc,sBAAd,CAA9B;AACH;AACD,OAAO,SAASC,uBAAT,CAAiCD,WAAjC,EAA8CG,KAA9C,EAAqD;AACxD,SAAON,OAAO,CAAC,MAAMC,cAAc,CAACE,WAAW,CAACI,KAAb,EAAoBD,KAApB,CAAd,CAAyCE,MAAhD,EAAwD,CAACL,WAAD,EAAcG,KAAd,CAAxD,CAAd;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useMemo } from 'react';\r\nimport { getColumnStats } from '~/arquero';\r\nexport function useNodeCountDomain(communities) {\r\n return useCommunityValueDomain(communities, 'community.nodeCount');\r\n}\r\nexport function useChildCountDomain(communities) {\r\n return useCommunityValueDomain(communities, 'community.childCount');\r\n}\r\nexport function useCommunityValueDomain(communities, field) {\r\n return useMemo(() => getColumnStats(communities.table, field).domain, [communities, field]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/951bbf9ae82a12e70d318b9e288c4d7b.json b/node_modules/.cache/cache-loader/951bbf9ae82a12e70d318b9e288c4d7b.json deleted file mode 100644 index 142cf25..0000000 --- a/node_modules/.cache/cache-loader/951bbf9ae82a12e70d318b9e288c4d7b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\index.ts","mtime":1620403249513},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2NvbG9ycyc7CmV4cG9ydCAqIGZyb20gJy4vZGF0YSc7CmV4cG9ydCAqIGZyb20gJy4vZWRnZXMnOwpleHBvcnQgKiBmcm9tICcuL25vZGVzJzsKZXhwb3J0ICogZnJvbSAnLi9zY2FsZXMnOwpleHBvcnQgKiBmcm9tICcuL3ZpZXcnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,UAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd;AACA,cAAc,QAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './colors';\r\nexport * from './data';\r\nexport * from './edges';\r\nexport * from './nodes';\r\nexport * from './scales';\r\nexport * from './view';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/97b03d2150bae4464a8c0cac919cc42c.json b/node_modules/.cache/cache-loader/97b03d2150bae4464a8c0cac919cc42c.json deleted file mode 100644 index 6e98b3d..0000000 --- a/node_modules/.cache/cache-loader/97b03d2150bae4464a8c0cac919cc42c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeOpacityControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeOpacityControlsPanel.tsx","mtime":1631029334735},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBOb2RlT3BhY2l0eUNvbnRyb2xzIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vY29udHJvbHMvTm9kZU9wYWNpdHlDb250cm9scyc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgTm9kZU9wYWNpdHlDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZU9wYWNpdHlDb250cm9scywgbnVsbCkpOwp9Owpjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmAKCW1hcmdpbjogOHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeOpacityControlsPanel.tsx"],"names":["NodeOpacityControls","React","styled","NodeOpacityControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,QAAoC,6CAApC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,wBAAwB,GAAG,MAAM;AAC1C,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,mBAApB,EAAyC,IAAzC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { NodeOpacityControls } from '../../../../../controls/NodeOpacityControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const NodeOpacityControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(NodeOpacityControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/988c659ef67073b4f5791b12fb897c8f.json b/node_modules/.cache/cache-loader/988c659ef67073b4f5791b12fb897c8f.json deleted file mode 100644 index 79ec07b..0000000 --- a/node_modules/.cache/cache-loader/988c659ef67073b4f5791b12fb897c8f.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\DataManagerPage.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\DataManagerPage.tsx","mtime":1631029334700},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBGaWxlTGlzdCB9IGZyb20gJy4uLy4uLy4uL0ZpbGVMaXN0JzsKaW1wb3J0IHsgTGVmdFNpZGVQYW5lbCB9IGZyb20gJy4vTGVmdFNpZGVQYW5lbCc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgRGF0YU1hbmFnZXJQYWdlID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRhaW5lciwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChSZWFjdC5TdXNwZW5zZSwgewogICAgZmFsbGJhY2s6IFJlYWN0LmNyZWF0ZUVsZW1lbnQoUGxhY2Vob2xkZXIsIG51bGwpCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChMZWZ0U2lkZVBhbmVsLCBudWxsKSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGVudCwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChEcm9wQ29udGFpbmVyLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KEZpbGVMaXN0LCBudWxsKSkpKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CmA7CmNvbnN0IENvbnRlbnQgPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogZmxleDsKCWp1c3RpZnktY29udGVudDogY2VudGVyOwoJd2lkdGg6IDEwMCU7CmA7CmNvbnN0IERyb3BDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJbWFyZ2luLXRvcDogNDBweDsKCXdpZHRoOiA2MDBweDsKYDsKY29uc3QgUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/DataManagerPage/DataManagerPage.tsx"],"names":["FileList","LeftSidePanel","React","styled","DataManagerPage","createElement","Container","Suspense","fallback","Placeholder","Content","DropContainer","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,QAAT,QAAyB,mBAAzB;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,eAAe,GAAG,MAAM;AACjC,SAAQF,KAAK,CAACG,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJJ,KAAK,CAACG,aAAN,CAAoBH,KAAK,CAACK,QAA1B,EAAoC;AAAEC,IAAAA,QAAQ,EAAEN,KAAK,CAACG,aAAN,CAAoBI,WAApB,EAAiC,IAAjC;AAAZ,GAApC,EACIP,KAAK,CAACG,aAAN,CAAoBJ,aAApB,EAAmC,IAAnC,CADJ,CADI,EAGJC,KAAK,CAACG,aAAN,CAAoBK,OAApB,EAA6B,IAA7B,EACIR,KAAK,CAACG,aAAN,CAAoBM,aAApB,EAAmC,IAAnC,EACIT,KAAK,CAACG,aAAN,CAAoBL,QAApB,EAA8B,IAA9B,CADJ,CADJ,CAHI,CAAR;AAMH,CAPM;AAQP,MAAMM,SAAS,GAAGH,MAAM,CAACS,GAAK;AAC9B;AACA,CAFA;AAGA,MAAMF,OAAO,GAAGP,MAAM,CAACS,GAAK;AAC5B;AACA;AACA;AACA,CAJA;AAKA,MAAMD,aAAa,GAAGR,MAAM,CAACS,GAAK;AAClC;AACA;AACA,CAHA;AAIA,MAAMH,WAAW,GAAGN,MAAM,CAACS,GAAK,EAAhC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { FileList } from '../../../FileList';\r\nimport { LeftSidePanel } from './LeftSidePanel';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const DataManagerPage = () => {\r\n return (React.createElement(Container, null,\r\n React.createElement(React.Suspense, { fallback: React.createElement(Placeholder, null) },\r\n React.createElement(LeftSidePanel, null)),\r\n React.createElement(Content, null,\r\n React.createElement(DropContainer, null,\r\n React.createElement(FileList, null)))));\r\n};\r\nconst Container = styled.div `\r\n\tdisplay: flex;\r\n`;\r\nconst Content = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\twidth: 100%;\r\n`;\r\nconst DropContainer = styled.div `\r\n\tmargin-top: 40px;\r\n\twidth: 600px;\r\n`;\r\nconst Placeholder = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/9e75c93175544290003aba9eef002590.json b/node_modules/.cache/cache-loader/9e75c93175544290003aba9eef002590.json deleted file mode 100644 index 8c1cc8b..0000000 --- a/node_modules/.cache/cache-loader/9e75c93175544290003aba9eef002590.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\thematic\\chooseScale.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\thematic\\chooseScale.ts","mtime":1631029334922},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyoqDQogKiBSZXR1cm5zIGEgc3RhbmRhcmQgc2NhbGUgaW5zdGFuY2UgYmFzZWQgb24gbmFtZSBhbmQgcGxhbm5lZCB3aWR0aC4NCiAqIEBwYXJhbSB0aGVtZQ0KICogQHBhcmFtIG5hbWUNCiAqIEBwYXJhbSB3aWR0aA0KICovCmV4cG9ydCBmdW5jdGlvbiBjaG9vc2VTY2FsZSh0aGVtZSwgbmFtZSwgd2lkdGgpIHsKICBjb25zdCBzY2FsZXMgPSB0aGVtZS5zY2FsZXMoKTsKICBjb25zdCBkb21haW4gPSBbMCwgd2lkdGhdOwoKICBzd2l0Y2ggKG5hbWUpIHsKICAgIGNhc2UgJ3NlcXVlbnRpYWwnOgogICAgICByZXR1cm4gc2NhbGVzLnNlcXVlbnRpYWwoZG9tYWluKTsKCiAgICBjYXNlICdzZXF1ZW50aWFsMic6CiAgICAgIHJldHVybiBzY2FsZXMuc2VxdWVudGlhbDIoZG9tYWluKTsKCiAgICBjYXNlICdkaXZlcmdpbmcnOgogICAgICByZXR1cm4gc2NhbGVzLmRpdmVyZ2luZyhkb21haW4pOwoKICAgIGNhc2UgJ2RpdmVyZ2luZzInOgogICAgICByZXR1cm4gc2NhbGVzLmRpdmVyZ2luZzIoZG9tYWluKTsKCiAgICBjYXNlICdncmV5cyc6CiAgICAgIHJldHVybiBzY2FsZXMuZ3JleXMoZG9tYWluKTsKCiAgICBjYXNlICdub21pbmFsTXV0ZWQnOgogICAgICByZXR1cm4gc2NhbGVzLm5vbWluYWxNdXRlZCgpOwoKICAgIGNhc2UgJ25vbWluYWxCb2xkJzoKICAgICAgcmV0dXJuIHNjYWxlcy5ub21pbmFsQm9sZCgpOwoKICAgIGNhc2UgJ25vbWluYWwnOgogICAgZGVmYXVsdDoKICAgICAgcmV0dXJuIHNjYWxlcy5ub21pbmFsKCk7CiAgfQp9"},{"version":3,"sources":["C:/ws/graph-drill/src/thematic/chooseScale.ts"],"names":["chooseScale","theme","name","width","scales","domain","sequential","sequential2","diverging","diverging2","greys","nominalMuted","nominalBold","nominal"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,WAAT,CAAqBC,KAArB,EAA4BC,IAA5B,EAAkCC,KAAlC,EAAyC;AAC5C,QAAMC,MAAM,GAAGH,KAAK,CAACG,MAAN,EAAf;AACA,QAAMC,MAAM,GAAG,CAAC,CAAD,EAAIF,KAAJ,CAAf;;AACA,UAAQD,IAAR;AACI,SAAK,YAAL;AACI,aAAOE,MAAM,CAACE,UAAP,CAAkBD,MAAlB,CAAP;;AACJ,SAAK,aAAL;AACI,aAAOD,MAAM,CAACG,WAAP,CAAmBF,MAAnB,CAAP;;AACJ,SAAK,WAAL;AACI,aAAOD,MAAM,CAACI,SAAP,CAAiBH,MAAjB,CAAP;;AACJ,SAAK,YAAL;AACI,aAAOD,MAAM,CAACK,UAAP,CAAkBJ,MAAlB,CAAP;;AACJ,SAAK,OAAL;AACI,aAAOD,MAAM,CAACM,KAAP,CAAaL,MAAb,CAAP;;AACJ,SAAK,cAAL;AACI,aAAOD,MAAM,CAACO,YAAP,EAAP;;AACJ,SAAK,aAAL;AACI,aAAOP,MAAM,CAACQ,WAAP,EAAP;;AACJ,SAAK,SAAL;AACA;AACI,aAAOR,MAAM,CAACS,OAAP,EAAP;AAjBR;AAmBH","sourcesContent":["/**\r\n * Returns a standard scale instance based on name and planned width.\r\n * @param theme\r\n * @param name\r\n * @param width\r\n */\r\nexport function chooseScale(theme, name, width) {\r\n const scales = theme.scales();\r\n const domain = [0, width];\r\n switch (name) {\r\n case 'sequential':\r\n return scales.sequential(domain);\r\n case 'sequential2':\r\n return scales.sequential2(domain);\r\n case 'diverging':\r\n return scales.diverging(domain);\r\n case 'diverging2':\r\n return scales.diverging2(domain);\r\n case 'greys':\r\n return scales.greys(domain);\r\n case 'nominalMuted':\r\n return scales.nominalMuted();\r\n case 'nominalBold':\r\n return scales.nominalBold();\r\n case 'nominal':\r\n default:\r\n return scales.nominal();\r\n }\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a17e08a8315e626ed3deb0512bf972e7.json b/node_modules/.cache/cache-loader/a17e08a8315e626ed3deb0512bf972e7.json deleted file mode 100644 index a62b44e..0000000 --- a/node_modules/.cache/cache-loader/a17e08a8315e626ed3deb0512bf972e7.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\navigation\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\navigation\\index.tsx","mtime":1631029334693},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgb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src/components/App/commands/navigation/index.tsx"],"names":["RouterLinkIconButton","React","useLocation","Navigation","search","pathname","createElement","Fragment","to","checked","title","iconProps","iconName"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,oBAAT,QAAqC,2CAArC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,WAAT,QAA4B,kBAA5B;AACA,OAAO,MAAMC,UAAU,GAAG,MAAM;AAC5B,QAAM;AAAEC,IAAAA,MAAF;AAAUC,IAAAA;AAAV,MAAuBH,WAAW,EAAxC;AACA,SAAQD,KAAK,CAACK,aAAN,CAAoBL,KAAK,CAACM,QAA1B,EAAoC,IAApC,EACJN,KAAK,CAACK,aAAN,CAAoBN,oBAApB,EAA0C;AAAEQ,IAAAA,EAAE,EAAE;AACxCH,MAAAA,QAAQ,EAAE,GAD8B;AAExCD,MAAAA;AAFwC,KAAN;AAGnCK,IAAAA,OAAO,EAAEJ,QAAQ,KAAK,GAHa;AAGRK,IAAAA,KAAK,EAAE,mBAHC;AAGoBC,IAAAA,SAAS,EAAE;AACjEC,MAAAA,QAAQ,EAAE;AADuD;AAH/B,GAA1C,CADI,EAOJX,KAAK,CAACK,aAAN,CAAoBN,oBAApB,EAA0C;AAAEQ,IAAAA,EAAE,EAAE;AACxCH,MAAAA,QAAQ,EAAE,QAD8B;AAExCD,MAAAA;AAFwC,KAAN;AAGnCK,IAAAA,OAAO,EAAEJ,QAAQ,KAAK,QAHa;AAGHK,IAAAA,KAAK,EAAE,sBAHJ;AAG4BC,IAAAA,SAAS,EAAE;AACzEC,MAAAA,QAAQ,EAAE;AAD+D;AAHvC,GAA1C,CAPI,CAAR;AAaH,CAfM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { RouterLinkIconButton } from '../../../../controls/RouterLinkIconButton';\r\nimport React from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\nexport const Navigation = () => {\r\n const { search, pathname } = useLocation();\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(RouterLinkIconButton, { to: {\r\n pathname: '/',\r\n search,\r\n }, checked: pathname === '/', title: 'Graph viewer page', iconProps: {\r\n iconName: 'Relationship',\r\n } }),\r\n React.createElement(RouterLinkIconButton, { to: {\r\n pathname: '/files',\r\n search,\r\n }, checked: pathname === '/files', title: 'Data management page', iconProps: {\r\n iconName: 'DataConnectionLibrary',\r\n } })));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a1f0a53dcf85f67ad0464fc041a4982c.json b/node_modules/.cache/cache-loader/a1f0a53dcf85f67ad0464fc041a4982c.json deleted file mode 100644 index 4ebeb57..0000000 --- a/node_modules/.cache/cache-loader/a1f0a53dcf85f67ad0464fc041a4982c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\NumericSelector.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\NumericSelector.tsx","mtime":1631029334849},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBEYXRhQmluZGluZyB9IGZyb20gJy4uLy4uL3R5cGVzJzsKaW1wb3J0IHsgTWFudWFsUGlja2VyIH0gZnJvbSAnLi9NYW51YWxQaWNrZXInOwppbXBvcnQgeyBTY2FsZWRQaWNrZXIgfSBmcm9tICcuL1NjYWxlZFBpY2tlcic7CmltcG9ydCB7IFBpdm90LCBQaXZvdEl0ZW0gfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwovKioNCiAqIFJlcHJlc2VudHMgYSBjb21wbGV4IGNvbG9yIHNlbGVjdG9yIGZvciBhIGRhdGFzZXQuDQogKiBQcm92aWRlcyB0aGUgb3B0aW9ucyBmb3IgZWFjaCBGaWVsZEJpbmRpbmcgZW51bSB2YWx1ZToNCiAqIC0gRml4ZWQ6IG1hbnVhbGx5IGNob3NlbiBoZXggY29sb3INCiAqIC0gUGFsZXR0ZTogYSB0aGVtYXRpYy1ib3VuZCBuYW1lZCBjb2xvciAoc28gaXQgYXV0by11cGRhdGVzIHdpdGggdGhlbWUgY2hhbmdlcykNCiAqIC0gU2NhbGU6IGZpZWxkLWJvdW5kIHRvIG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XIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericSelector/NumericSelector.tsx"],"names":["DataBinding","ManualPicker","ScaledPicker","Pivot","PivotItem","React","useCallback","styled","NumericSelector","props","encoding","onChange","handlePivotLinkClick","item","binding","itemKey","createElement","Container","onLinkClick","styles","root","textAlign","selectedKey","headerText","Scaled","Object","assign","Fixed","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,aAA5B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,KAAT,EAAgBC,SAAhB,QAAiC,iBAAjC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,eAAe,GAAGC,KAAK,IAAI;AACpC,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAyBF,KAA/B;AACA,QAAMG,oBAAoB,GAAGN,WAAW,CAACO,IAAI,IAAI;AAC7CF,IAAAA,QAAQ,CAAC;AACLG,MAAAA,OAAO,EAAED,IAAI,CAACJ,KAAL,CAAWM;AADf,KAAD,CAAR;AAGH,GAJuC,EAIrC,CAACJ,QAAD,CAJqC,CAAxC;AAKA,SAAQN,KAAK,CAACW,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJZ,KAAK,CAACW,aAAN,CAAoBb,KAApB,EAA2B;AAAEe,IAAAA,WAAW,EAAEN,oBAAf;AAAqCO,IAAAA,MAAM,EAAE;AAChEC,MAAAA,IAAI,EAAE;AACFC,QAAAA,SAAS,EAAE;AADT;AAD0D,KAA7C;AAIpBC,IAAAA,WAAW,EAAEZ,QAAQ,CAACI;AAJF,GAA3B,EAKIT,KAAK,CAACW,aAAN,CAAoBZ,SAApB,EAA+B;AAAEmB,IAAAA,UAAU,EAAE,QAAd;AAAwBR,IAAAA,OAAO,EAAEf,WAAW,CAACwB;AAA7C,GAA/B,EACInB,KAAK,CAACW,aAAN,CAAoBd,YAApB,EAAkCuB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBjB,KAAlB,CAAlC,CADJ,CALJ,EAOIJ,KAAK,CAACW,aAAN,CAAoBZ,SAApB,EAA+B;AAAEmB,IAAAA,UAAU,EAAE,OAAd;AAAuBR,IAAAA,OAAO,EAAEf,WAAW,CAAC2B;AAA5C,GAA/B,EACItB,KAAK,CAACW,aAAN,CAAoBf,YAApB,EAAkCwB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBjB,KAAlB,CAAlC,CADJ,CAPJ,CADI,CAAR;AAUH,CAjBM;AAkBP,MAAMQ,SAAS,GAAGV,MAAM,CAACqB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding } from '../../types';\r\nimport { ManualPicker } from './ManualPicker';\r\nimport { ScaledPicker } from './ScaledPicker';\r\nimport { Pivot, PivotItem } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\n/**\r\n * Represents a complex color selector for a dataset.\r\n * Provides the options for each FieldBinding enum value:\r\n * - Fixed: manually chosen hex color\r\n * - Palette: a thematic-bound named color (so it auto-updates with theme changes)\r\n * - Scale: field-bound to a thematic scale with domain, range, etc.\r\n */\r\nexport const NumericSelector = props => {\r\n const { encoding, onChange } = props;\r\n const handlePivotLinkClick = useCallback(item => {\r\n onChange({\r\n binding: item.props.itemKey,\r\n });\r\n }, [onChange]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Pivot, { onLinkClick: handlePivotLinkClick, styles: {\r\n root: {\r\n textAlign: 'center',\r\n },\r\n }, selectedKey: encoding.binding },\r\n React.createElement(PivotItem, { headerText: 'Scaled', itemKey: DataBinding.Scaled },\r\n React.createElement(ScaledPicker, Object.assign({}, props))),\r\n React.createElement(PivotItem, { headerText: 'Fixed', itemKey: DataBinding.Fixed },\r\n React.createElement(ManualPicker, Object.assign({}, props))))));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a32b6899794daa391c6ee30fb58acf39.json b/node_modules/.cache/cache-loader/a32b6899794daa391c6ee30fb58acf39.json deleted file mode 100644 index 1d7c12f..0000000 --- a/node_modules/.cache/cache-loader/a32b6899794daa391c6ee30fb58acf39.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useResizeHandlers.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useResizeHandlers.ts","mtime":1631029334751},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9ycyhzb3VyY2UpKTsgfSBlbHNlIHsgb3duS2V5cyhPYmplY3Qoc291cmNlKSkuZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7IE9i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AoZGlyZWN0aW9uID09PSAndG9wJykgewogICAgICBsZXQgeSA9IHBvc2l0aW9uLnkgLSBkZWx0YS5oZWlnaHQ7CiAgICAgIGNvbnN0IG5ld0hlaWdodCA9IHBvc2l0aW9uLmhlaWdodCArIGRlbHRhLmhlaWdodDsKICAgICAgbGV0IGggPSBuZXdIZWlnaHQ7CiAgICAgIGNvbnN0IG1heEhlaWdodCA9IGhlaWdodCAqIDAuNzU7IC8vIG1pbiBoZWlnaHQgPSBDT01NQU5EQkFSX0hFSUdIVAoKICAgICAgaWYgKG5ld0hlaWdodCA8IENPTU1BTkRCQVJfSEVJR0hUKSB7CiAgICAgICAgaCA9IENPTU1BTkRCQVJfSEVJR0hUOwogICAgICAgIHkgPSBoZWlnaHQgLSBDT01NQU5EQkFSX0hFSUdIVDsKICAgICAgfQoKICAgICAgaWYgKG5ld0hlaWdodCA+IG1heEhlaWdodCkgewogICAgICAgIGggPSBtYXhIZWlnaHQ7CiAgICAgICAgeSA9IGhlaWdodCAtIG1heEhlaWdodDsKICAgICAgfQoKICAgICAgc2V0UG9zaXRpb24oewogICAgICAgIHg6IDAsCiAgICAgICAgeSwKICAgICAgICBoZWlnaHQ6IGgKICAgICAgfSk7CiAgICB9CgogICAgc2V0R3JhcGhGaWx0ZXIoQ1NTRmlsdGVyLk5PTkUpOwogIH0sIFtwb3NpdGlvbiwgaGVpZ2h0LCBzZXRQb3NpdGlvbiwgc2V0R3JhcGhGaWx0ZXJdKTsKICByZXR1cm4gewogICAgaGFuZGxlUmVzaXplU3RvcCwKICAgIGhhbmRsZUJ1dHRvbkNsaWNrLAogICAgaGFuZGxlUmVzaXplU3RhcnQKICB9Owp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/hooks/useResizeHandlers.ts"],"names":["useCallback","COMMANDBAR_HEIGHT","CSSFilter","DIRECTION","useResizeHandlers","height","position","setPosition","setGraphFilter","handleResizeStart","e","direction","ref","delta","pos","GRAYSCALE","handleButtonClick","D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CAAd;AACH,GAlBmC,EAkBjC,CAACrB,QAAD,EAAWD,MAAX,EAAmBE,WAAnB,EAAgCC,cAAhC,CAlBiC,CAApC;AAmBA,SAAO;AAAEe,IAAAA,gBAAF;AAAoBP,IAAAA,iBAApB;AAAuCP,IAAAA;AAAvC,GAAP;AACH","sourcesContent":["import { useCallback } from 'react';\r\nimport { COMMANDBAR_HEIGHT } from '~/styles';\r\nexport var CSSFilter;\r\n(function (CSSFilter) {\r\n CSSFilter[\"NONE\"] = \"none\";\r\n CSSFilter[\"GRAYSCALE\"] = \"grayscale(75%)\";\r\n})(CSSFilter || (CSSFilter = {}));\r\nexport var DIRECTION;\r\n(function (DIRECTION) {\r\n DIRECTION[\"UP\"] = \"up\";\r\n DIRECTION[\"DOWN\"] = \"down\";\r\n})(DIRECTION || (DIRECTION = {}));\r\nexport function useResizeHandlers({ height, position, setPosition, setGraphFilter, }) {\r\n const handleResizeStart = useCallback((e, direction, ref, delta, pos) => {\r\n setGraphFilter(CSSFilter.GRAYSCALE);\r\n }, [setGraphFilter]);\r\n const handleButtonClick = useCallback((direction) => {\r\n if (direction === DIRECTION.DOWN) {\r\n const y = height - COMMANDBAR_HEIGHT;\r\n setPosition(Object.assign({}, { ...position, y, height: COMMANDBAR_HEIGHT }));\r\n }\r\n if (direction === DIRECTION.UP) {\r\n const maxHeight = height * 0.5; // default to 50% of screen\r\n const y = height - maxHeight;\r\n setPosition(Object.assign({}, { ...position, y, height: maxHeight }));\r\n }\r\n }, [position, height, setPosition]);\r\n const handleResizeStop = useCallback((e, direction, ref, delta, pos) => {\r\n if (direction === 'top') {\r\n let y = position.y - delta.height;\r\n const newHeight = position.height + delta.height;\r\n let h = newHeight;\r\n const maxHeight = height * 0.75;\r\n // min height = COMMANDBAR_HEIGHT\r\n if (newHeight < COMMANDBAR_HEIGHT) {\r\n h = COMMANDBAR_HEIGHT;\r\n y = height - COMMANDBAR_HEIGHT;\r\n }\r\n if (newHeight > maxHeight) {\r\n h = maxHeight;\r\n y = height - maxHeight;\r\n }\r\n setPosition({ x: 0, y, height: h });\r\n }\r\n setGraphFilter(CSSFilter.NONE);\r\n }, [position, height, setPosition, setGraphFilter]);\r\n return { handleResizeStop, handleButtonClick, handleResizeStart };\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a32f4d334a3e2e26ac995abad3aecdda.json b/node_modules/.cache/cache-loader/a32f4d334a3e2e26ac995abad3aecdda.json deleted file mode 100644 index 899d5e3..0000000 --- a/node_modules/.cache/cache-loader/a32f4d334a3e2e26ac995abad3aecdda.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\index.ts","mtime":1620403249245},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3RoZW1lJzsKZXhwb3J0ICogZnJvbSAnLi91c2VHcmFwaERpbWVuc2lvbnMnOwpleHBvcnQgKiBmcm9tICcuL3VzZVJlc2l6ZUhhbmRsZXJzJzsKZXhwb3J0ICogZnJvbSAnLi91c2VMYXlvdXRTdHlsZSc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,SAAd;AACA,cAAc,sBAAd;AACA,cAAc,qBAAd;AACA,cAAc,kBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './theme';\r\nexport * from './useGraphDimensions';\r\nexport * from './useResizeHandlers';\r\nexport * from './useLayoutStyle';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a403bf62b4dfaf7bfa3482734f81bb69.json b/node_modules/.cache/cache-loader/a403bf62b4dfaf7bfa3482734f81bb69.json deleted file mode 100644 index 6e5a3f4..0000000 --- a/node_modules/.cache/cache-loader/a403bf62b4dfaf7bfa3482734f81bb69.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\caches.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\caches.ts","mtime":1631029334879},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdW5pcXVlTm9kZXNTdGF0ZSB9IGZyb20gJy4vbm9kZXMnOwppbXBvcnQgeyBzZXR0aW5nc1N0YXRlIH0gZnJvbSAnLi9zZXR0aW5ncyc7CmltcG9ydCB7IGNvbW11bml0eU5vZGVzVGFibGVTdGF0ZSwgZWRnZVRhYmxlU3RhdGUgfSBmcm9tICcuL3RhYmxlcyc7CmltcG9ydCB7IGVkZ2VzVmlzaWJsZVN0YXRlIH0gZnJvbSAnLi92aXMnOwppbXBvcnQgeyBHcmFwaENvbnRhaW5lciB9IGZyb20gJ0BncmFzcG9sb2dpYy9ncmFwaCc7CmltcG9ydCB7IHVzZUVmZmVjdCB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHsgYXRvbSwgYXRvbUZhbWlseSwgc2VsZWN0b3IsIHNlbGVjdG9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wgc2V0Q2FjaGVkXSA9IHVzZVJlY29pbFN0YXRlKGNhY2hlZENvbHVtblN0YXRzU3RhdGUoa2V5KSk7CiAgdXNlRWZmZWN0KCgpID0+IHsKICAgIGlmICghY2FjaGVkKSB7CiAgICAgIGNvbnN0IHN0YXRzID0gZ2V0Q29sdW1uU3RhdHModGFibGUsIGZpZWxkKTsKICAgICAgc2V0Q2FjaGVkKHN0YXRzKTsKICAgIH0KICB9LCBbY2FjaGVkLCBzZXRDYWNoZWQsIHRhYmxlLCBmaWVsZF0pOwogIHJldHVybiBjYWNoZWQ7Cn0KY29uc3QgY2FjaGVkQ29sdW1uSGlzdG9ncmFtU3RhdGUgPSBhdG9tRmFtaWx5KHsKICBrZXk6ICdjb2x1bW4taGlzdG9ncmFtLWNhY2hlJywKICBkZWZhdWx0OiB1bmRlZmluZWQKfSk7CmV4cG9ydCBmdW5jdGlvbiB1c2VDYWNoZWRDb2x1bW5IaXN0b2dyYW0odGFibGUsIGZpZWxkKSB7CiAgY29uc3Qga2V5ID0gYCR7dGFibGVLZXkodGFibGUpfS0ke2ZpZWxkfWA7CiAgY29uc3QgW2NhY2hlZCwgc2V0Q2FjaGVkXSA9IHVzZVJlY29pbFN0YXRlKGNhY2hlZENvbHVtbkhpc3RvZ3JhbVN0YXRlKGtleSkpOwogIHVzZUVmZmVjdCgoKSA9PiB7CiAgICBpZiAoIWNhY2hlZCkgewogICAgICBjb25zdCBoaXN0byA9IGdldENvbHVtbkhpc3RvZ3JhbSh0YWJsZSwgZmllbGQpOwogICAgICBzZXRDYWNoZWQoaGlzdG8pOwogICAgfQogIH0sIFtjYWNoZWQsIHNldENhY2hlZCwgdGFibGUsIGZpZWxkXSk7CiAgcmV0dXJuIGNhY2hlZDsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/state/caches.ts"],"names":["uniqueNodesState","settingsState","communityNodesTableState","edgeTableState","edgesVisibleState","GraphContainer","useEffect","atom","atomFamily","selector","selectorFamily","useRecoilState","useRecoilValue","EdgeCollection","getColumnHistogram","getColumnStats","NodeCollection","colorCacheState","key","default","Map","dangerouslyAllowMutability","useColorCache","internedGraphState","get","console","time","settings","maxEdges","subsampleEdges","maxNodes","subsampleNodes","showEdges","nodes","edgeTable","nProportion","sampleProportion","size","edges","eProportion","container","intern","sample","timeEnd","numRows","maxRows","subsample","useInternedGraph","internedMinimapGraphState","maxMiniMapNodes","subsampleMiniMap","proportion","useInternedMinimapGraph","visibleNodeMapState","cid","table","toMap","useVisibleNodeMap","tableKey","columnNames","join","cachedColumnStatsState","undefined","useCachedColumnStats","field","cached","setCached","stats","cachedColumnHistogramState","useCachedColumnHistogram","histo"],"mappings":"AAAA,SAASA,gBAAT,QAAiC,SAAjC;AACA,SAASC,aAAT,QAA8B,YAA9B;AACA,SAASC,wBAAT,EAAmCC,cAAnC,QAAyD,UAAzD;AACA,SAASC,iBAAT,QAAkC,OAAlC;AACA,SAASC,cAAT,QAA+B,oBAA/B;AACA,SAASC,SAAT,QAA0B,OAA1B;AACA,SAASC,IAAT,EAAeC,UAAf,EAA2BC,QAA3B,EAAqCC,cAArC,EAAqDC,cAArD,EAAqEC,cAArE,QAA4F,QAA5F;AACA,SAASC,cAAT,EAAyBC,kBAAzB,EAA6CC,cAA7C,EAA6DC,cAA7D,QAAoF,WAApF,C,CACA;AACA;AACA;AACA;AACA;AACA;;AACA,MAAMC,eAAe,GAAGV,IAAI,CAAC;AACzBW,EAAAA,GAAG,EAAE,aADoB;AAEzBC,EAAAA,OAAO,EAAE,IAAIC,GAAJ,EAFgB;AAGzBC,EAAAA,0BAA0B,EAAE;AAHH,CAAD,CAA5B;AAKA,OAAO,SAASC,aAAT,GAAyB;AAC5B,SAAOV,cAAc,CAACK,eAAD,CAArB;AACH;AACD,MAAMM,kBAAkB,GAAGd,QAAQ,CAAC;AAChCS,EAAAA,GAAG,EAAE,sBAD2B;AAEhCM,EAAAA,GAAG,EAAE,CAAC;AAAEA,IAAAA;AAAF,GAAD,KAAa;AACdC,IAAAA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,CAACyD,0BAA0B,CAAClD,GAAD,CAA3B,CAA1C;AACAZ,EAAAA,SAAS,CAAC,MAAM;AACZ,QAAI,CAAC2D,MAAL,EAAa;AACT,YAAMK,KAAK,GAAGxD,kBAAkB,CAACyC,KAAD,EAAQS,KAAR,CAAhC;AACAE,MAAAA,SAAS,CAACI,KAAD,CAAT;AACH;AACJ,GALQ,EAKN,CAACL,MAAD,EAASC,SAAT,EAAoBX,KAApB,EAA2BS,KAA3B,CALM,CAAT;AAMA,SAAOC,MAAP;AACH","sourcesContent":["import { uniqueNodesState } from './nodes';\r\nimport { settingsState } from './settings';\r\nimport { communityNodesTableState, edgeTableState } from './tables';\r\nimport { edgesVisibleState } from './vis';\r\nimport { GraphContainer } from '@graspologic/graph';\r\nimport { useEffect } from 'react';\r\nimport { atom, atomFamily, selector, selectorFamily, useRecoilState, useRecoilValue, } from 'recoil';\r\nimport { EdgeCollection, getColumnHistogram, getColumnStats, NodeCollection, } from '~/arquero';\r\n// this is a map of color strings to bgra values,\r\n// the color parsing is very expensive.\r\n// note the mutability - we want this to be updated\r\n// during a single render loop\r\n// this cache can persist for the life of the app, as any\r\n// color string only has one bgra value\r\nconst colorCacheState = atom({\r\n key: 'color-cache',\r\n default: new Map(),\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useColorCache() {\r\n return useRecoilValue(colorCacheState);\r\n}\r\nconst internedGraphState = selector({\r\n key: 'interned-graph-cache',\r\n get: ({ get }) => {\r\n console.time('intern graph');\r\n const settings = get(settingsState);\r\n const { maxEdges, subsampleEdges, maxNodes, subsampleNodes } = settings;\r\n const showEdges = get(edgesVisibleState);\r\n const nodes = get(uniqueNodesState);\r\n const edgeTable = get(edgeTableState);\r\n const nProportion = sampleProportion(nodes.size, maxNodes, subsampleNodes);\r\n const edges = new EdgeCollection(edgeTable);\r\n const eProportion = sampleProportion(edges.size, maxEdges, subsampleEdges);\r\n const container = GraphContainer.intern({\r\n nodes: nodes.sample(nProportion),\r\n edges: showEdges ? edges.sample(eProportion) : [],\r\n });\r\n console.timeEnd('intern graph');\r\n return container;\r\n },\r\n dangerouslyAllowMutability: true,\r\n});\r\nfunction sampleProportion(numRows, maxRows, subsample) {\r\n if (subsample && numRows > maxRows) {\r\n return maxRows / numRows;\r\n }\r\n return 1;\r\n}\r\nexport function useInternedGraph() {\r\n return useRecoilValue(internedGraphState);\r\n}\r\nconst internedMinimapGraphState = selector({\r\n key: 'interned-minimap-cache',\r\n get: ({ get }) => {\r\n console.time('intern minimap');\r\n const settings = get(settingsState);\r\n const { maxMiniMapNodes, subsampleMiniMap } = settings;\r\n const nodes = get(uniqueNodesState);\r\n const proportion = sampleProportion(nodes.size, maxMiniMapNodes, subsampleMiniMap);\r\n const container = GraphContainer.intern({\r\n nodes: nodes.sample(proportion),\r\n edges: [],\r\n });\r\n console.timeEnd('intern minimap');\r\n return container;\r\n },\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useInternedMinimapGraph() {\r\n return useRecoilValue(internedMinimapGraphState);\r\n}\r\nconst visibleNodeMapState = selectorFamily({\r\n key: 'visible-nodes-map',\r\n get: cid => ({ get }) => {\r\n const table = get(communityNodesTableState(cid));\r\n const nodes = new NodeCollection(table);\r\n return nodes.toMap();\r\n },\r\n});\r\nexport function useVisibleNodeMap(cid) {\r\n return useRecoilValue(visibleNodeMapState(cid));\r\n}\r\n// generate a unique key for storing cached values related to a table\r\n// warning: this isn't entirely guaranteed to be unique, but should\r\n// cover any expected scenarios we encounter (right?)\r\nfunction tableKey(table) {\r\n return `${table.columnNames().join('-')}-${table.numRows()}`;\r\n}\r\nconst cachedColumnStatsState = atomFamily({\r\n key: 'column-stats-cache',\r\n default: undefined,\r\n});\r\nexport function useCachedColumnStats(table, field) {\r\n const key = `${tableKey(table)}-${field}`;\r\n const [cached, setCached] = useRecoilState(cachedColumnStatsState(key));\r\n useEffect(() => {\r\n if (!cached) {\r\n const stats = getColumnStats(table, field);\r\n setCached(stats);\r\n }\r\n }, [cached, setCached, table, field]);\r\n return cached;\r\n}\r\nconst cachedColumnHistogramState = atomFamily({\r\n key: 'column-histogram-cache',\r\n default: undefined,\r\n});\r\nexport function useCachedColumnHistogram(table, field) {\r\n const key = `${tableKey(table)}-${field}`;\r\n const [cached, setCached] = useRecoilState(cachedColumnHistogramState(key));\r\n useEffect(() => {\r\n if (!cached) {\r\n const histo = getColumnHistogram(table, field);\r\n setCached(histo);\r\n }\r\n }, [cached, setCached, table, field]);\r\n return cached;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a52198692fe84d0e6634fb6826443a86.json b/node_modules/.cache/cache-loader/a52198692fe84d0e6634fb6826443a86.json deleted file mode 100644 index 02cef6f..0000000 --- a/node_modules/.cache/cache-loader/a52198692fe84d0e6634fb6826443a86.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\LegendAxis.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\LegendAxis.tsx","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyByZWN0LCBzdmcsIHRleHQgfSBmcm9tICdAdGhlbWF0aWMvZDMnOwppbXBvcnQgeyB1c2VUaGVtYXRpYyB9IGZyb20gJ0B0aGVtYXRpYy9yZWFjdCc7CmltcG9ydCB7IHNjYWxlTGluZWFyIH0gZnJvbSAnZDMtc2NhbGUnOwppbXBvcnQgeyBzZWxlY3QgfSBmcm9tICdkMy1zZWxlY3Rpb24nOwppbXBvcnQgUmVhY3QsIHsgbWVtbywgdXNlTGF5b3V0RWZmZWN0LCB1c2VSZWYsIHVzZVN0YXRlLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgY2hvb3NlU2NhbGUgfSBmcm9tICd+L3RoZW1hdGljL2Nob29zZVNjYWxlJzsKZXhwb3J0IGNvbnN0IExlZ2VuZEF4aXMgPSBtZW1vKGZ1bmN0aW9uIExlZ2VuZEF4aXMoewogIGRvbWFpbiwKICBicnVzaGVkRG9tYWluLAogIHdpZHRoLAogIGhlaWdodCwKICBzY2FsZQp9KSB7CiAgY29uc3QgeExpbmVhciA9IHVzZU1lbW8oKCkgPT4gc2NhbGVMaW5lYXIoKS5kb21haW4oZG9tYWluKS5yYW5nZShbMSwgd2lkdGggLSAxXSkuY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laWdodDogJHsoewogIGhlaWdodAp9KSA9PiBoZWlnaHR9cHg7CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/DomainBrush/LegendAxis.tsx"],"names":["rect","svg","text","useThematic","scaleLinear","select","React","memo","useLayoutEffect","useRef","useState","useMemo","styled","chooseScale","LegendAxis","domain","brushedDomain","width","height","scale","xLinear","range","clamp","theme","ref","axisGroup","setAxisGroup","displayedDomain","scaleRange","Math","floor","current","selectAll","remove","plot","append","attr","call","chart","plotArea","ag","scaleWidth","scaleInstance","data","Array","fill","map","a","i","enter","d","hex","createElement","Container","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,IAAT,EAAeC,GAAf,EAAoBC,IAApB,QAAgC,cAAhC;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,QAA4B,UAA5B;AACA,SAASC,MAAT,QAAuB,cAAvB;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,eAAtB,EAAuCC,MAAvC,EAA+CC,QAA/C,EAAyDC,OAAzD,QAAwE,OAAxE;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,WAAT,QAA4B,wBAA5B;AACA,OAAO,MAAMC,UAAU,GAAGP,IAAI,CAAC,SAASO,UAAT,CAAoB;AAAEC,EAAAA,MAAF;AAAUC,EAAAA,aAAV;AAAyBC,EAAAA,KAAzB;AAAgCC,EAAAA,MAAhC;AAAwCC,EAAAA;AAAxC,CAApB,EAAsE;AACjG,QAAMC,OAAO,GAAGT,OAAO,CAAC,MAAMP,WAAW,GACpCW,MADyB,CAClBA,MADkB,EAEzBM,KAFyB,CAEnB,CAAC,CAAD,EAAIJ,KAAK,GAAG,CAAZ,CAFmB,EAGzBK,KAHyB,CAGnB,IAHmB,CAAP,EAGL,CAACP,MAAD,EAASE,KAAT,CAHK,CAAvB;AAIA,QAAMM,KAAK,GAAGpB,WAAW,EAAzB;AACA,QAAMqB,GAAG,GAAGf,MAAM,CAAC,IAAD,CAA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C,GAAK;AAC9B,UAAU,CAAC;AAAErC,EAAAA;AAAF,CAAD,KAAeA,KAAM;AAC/B,WAAW,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { rect, svg, text } from '@thematic/d3';\r\nimport { useThematic } from '@thematic/react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { select } from 'd3-selection';\r\nimport React, { memo, useLayoutEffect, useRef, useState, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { chooseScale } from '~/thematic/chooseScale';\r\nexport const LegendAxis = memo(function LegendAxis({ domain, brushedDomain, width, height, scale, }) {\r\n const xLinear = useMemo(() => scaleLinear()\r\n .domain(domain)\r\n .range([1, width - 1])\r\n .clamp(true), [domain, width]);\r\n const theme = useThematic();\r\n const ref = useRef(null);\r\n const [axisGroup, setAxisGroup] = useState();\r\n const displayedDomain = useMemo(() => brushedDomain || domain, [domain, brushedDomain]);\r\n const scaleRange = useMemo(() => [\r\n Math.floor(xLinear(displayedDomain[0]) || 0),\r\n Math.floor(xLinear(displayedDomain[1]) || 1),\r\n ], [displayedDomain, xLinear]);\r\n useLayoutEffect(() => {\r\n // TODO: stage this so it doesn't reset, but rather updates\r\n select(ref.current).selectAll('svg').remove();\r\n const plot = select(ref.current)\r\n .append('svg')\r\n .attr('class', 'legend-axis-chart')\r\n .attr('width', width)\r\n .attr('height', height)\r\n .call(svg, theme.chart())\r\n .append('g')\r\n .attr('class', 'legend-axis-plotarea');\r\n plot\r\n .append('rect')\r\n .attr('width', width)\r\n .attr('height', height)\r\n .call(rect, theme.plotArea());\r\n const ag = plot.append('g').attr('class', 'legend-axis-group');\r\n setAxisGroup(ag);\r\n }, [theme, width, height]);\r\n useLayoutEffect(() => {\r\n if (axisGroup && scale) {\r\n axisGroup.selectAll('line').remove();\r\n const scaleWidth = scaleRange[1] - scaleRange[0];\r\n const scaleInstance = chooseScale(theme, scale, scaleWidth);\r\n // TODO: this could probably be fixed to 100 values and scaled\r\n // with a scaleLinear + computed line width\r\n const data = new Array(scaleWidth).fill(1).map((a, i) => i);\r\n axisGroup\r\n .selectAll('line')\r\n .data(data)\r\n .enter()\r\n .append('line')\r\n .attr('stroke', (d) => scaleInstance(d).hex())\r\n .attr('stroke-width', 2)\r\n .attr('x1', (d) => d + scaleRange[0])\r\n .attr('x2', (d) => d + scaleRange[0])\r\n .attr('y1', 0)\r\n .attr('y2', height);\r\n }\r\n }, [theme, axisGroup, scale, scaleRange, height]);\r\n useLayoutEffect(() => {\r\n if (axisGroup) {\r\n axisGroup.selectAll('text').remove();\r\n axisGroup\r\n .append('text')\r\n .text(displayedDomain[0])\r\n .call(text, theme.text())\r\n .attr('dominant-baseline', 'middle')\r\n .attr('x', scaleRange[0] + 1)\r\n .attr('y', height / 2 + 1)\r\n .attr('font-size', height - 2);\r\n axisGroup\r\n .append('text')\r\n .text(displayedDomain[1])\r\n .call(text, theme.text())\r\n .attr('dominant-baseline', 'middle')\r\n .attr('text-anchor', 'end')\r\n .attr('x', scaleRange[1] - 1)\r\n .attr('y', height / 2 + 1)\r\n .attr('font-size', height - 2);\r\n }\r\n }, [theme, axisGroup, scaleRange, displayedDomain, height]);\r\n return React.createElement(Container, { ref: ref, width: width, height: height });\r\n});\r\nconst Container = styled.div `\r\n\twidth: ${({ width }) => width}px;\r\n\theight: ${({ height }) => height}px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a80e1c5710e18de176a48a3828a74b3d.json b/node_modules/.cache/cache-loader/a80e1c5710e18de176a48a3828a74b3d.json deleted file mode 100644 index 1acaadd..0000000 --- a/node_modules/.cache/cache-loader/a80e1c5710e18de176a48a3828a74b3d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\config.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\config.ts","mtime":1631029334897},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsI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EYXRhQmluZGluZy5GaXhlZCA6IERhdGFCaW5kaW5nLlNjYWxlZDsKICByZXR1cm4gX29iamVjdFNwcmVhZCh7CiAgICBmaWVsZDogZmllbGQsCiAgICBiaW5kaW5nLAogICAgZGF0YVR5cGUsCiAgICBzY2FsZVR5cGU6IFNjYWxlVHlwZS5MaW5lYXIsCiAgICB2YWx1ZTogMCwKICAgIGRvbWFpbjogZG9tYWluOTksCiAgICByYW5nZTogWzAsIDFdCiAgfSwgY3VzdG9tKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/config.ts"],"names":["DataBinding","ScaleType","getDefaultColorOptions","field","stats","custom","dataType","unique","domain99","binding","Palette","Scaled","scaleType","Linear","scaleName","uniques","domain","getDefaultNumericOptions","Fixed","value","range"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA6B,aAA7B;AACA,SAASC,SAAT,QAA0B,gBAA1B;AACA,OAAO,SAASC,sBAAT,CAAgCC,KAAhC,EAAuCC,KAAvC,EAA8CC,MAA9C,EAAsD;AACzD,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,MAAZ;AAAoBC,IAAAA;AAApB,MAAiCJ,KAAvC;AACA,QAAMK,OAAO,GAAG,CAACN,KAAD,GAASH,WAAW,CAACU,OAArB,GAA+BV,WAAW,CAACW,MAA3D;AACA;AACIF,IAAAA,OADJ;AAEIN,IAAAA,KAAK,EAAEA,KAFX;AAGIG,IAAAA,QAHJ;AAIIM,IAAAA,SAAS,EAAEX,SAAS,CAACY,MAJzB;AAKIC,IAAAA,SAAS,EAAER,QAAQ,KAAK,QAAb,GAAwB,SAAxB,GAAoC,YALnD;AAMIS,IAAAA,OAAO,EAAER,MANb;AAOIS,IAAAA,MAAM,EAAER;AAPZ,KAQOH,MARP;AAUH;AACD,OAAO,SAASY,wBAAT,CAAkCd,KAAlC,EAAyCC,KAAzC,EAAgDC,MAAhD,EAAwD;AAC3D,QAAM;AAAEC,IAAAA,QAAF;AAAYE,IAAAA;AAAZ,MAAyBJ,KAAK,IAAI;AACpCI,IAAAA,QAAQ,EAAE,CAAC,CAAD,EAAI,CAAJ;AAD0B,GAAxC;AAGA,QAAMC,OAAO,GAAG,CAACN,KAAD,GAASH,WAAW,CAACkB,KAArB,GAA6BlB,WAAW,CAACW,MAAzD;AACA;AACIR,IAAAA,KAAK,EAAEA,KADX;AAEIM,IAAAA,OAFJ;AAGIH,IAAAA,QAHJ;AAIIM,IAAAA,SAAS,EAAEX,SAAS,CAACY,MAJzB;AAKIM,IAAAA,KAAK,EAAE,CALX;AAMIH,IAAAA,MAAM,EAAER,QANZ;AAOIY,IAAAA,KAAK,EAAE,CAAC,CAAD,EAAI,CAAJ;AAPX,KAQOf,MARP;AAUH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding, } from '../../types';\r\nimport { ScaleType } from '@thematic/core';\r\nexport function getDefaultColorOptions(field, stats, custom) {\r\n const { dataType, unique, domain99 } = stats;\r\n const binding = !field ? DataBinding.Palette : DataBinding.Scaled;\r\n return {\r\n binding,\r\n field: field,\r\n dataType,\r\n scaleType: ScaleType.Linear,\r\n scaleName: dataType === 'string' ? 'nominal' : 'sequential',\r\n uniques: unique,\r\n domain: domain99,\r\n ...custom,\r\n };\r\n}\r\nexport function getDefaultNumericOptions(field, stats, custom) {\r\n const { dataType, domain99 } = stats || {\r\n domain99: [0, 1],\r\n };\r\n const binding = !field ? DataBinding.Fixed : DataBinding.Scaled;\r\n return {\r\n field: field,\r\n binding,\r\n dataType,\r\n scaleType: ScaleType.Linear,\r\n value: 0,\r\n domain: domain99,\r\n range: [0, 1],\r\n ...custom,\r\n };\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/a94baf60034dbec82e84f8f775b4c907.json b/node_modules/.cache/cache-loader/a94baf60034dbec82e84f8f775b4c907.json deleted file mode 100644 index 1d5e621..0000000 --- a/node_modules/.cache/cache-loader/a94baf60034dbec82e84f8f775b4c907.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeColorControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeColorControlsPanel.tsx","mtime":1631029334730},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBOb2RlQ29sb3JDb250cm9scyB9IGZyb20gJy4uLy4uLy4uLy4uLy4uL2NvbnRyb2xzL05vZGVDb2xvckNvbnRyb2xzJzsKaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmV4cG9ydCBjb25zdCBOb2RlQ29sb3JDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZUNvbG9yQ29udHJvbHMsIG51bGwpKTsKfTsKY29uc3QgQ29udGVudCA9IHN0eWxlZC5kaXZgCgltYXJnaW46IDhweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeColorControlsPanel.tsx"],"names":["NodeColorControls","React","styled","NodeColorControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,2CAAlC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,sBAAsB,GAAG,MAAM;AACxC,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,iBAApB,EAAuC,IAAvC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { NodeColorControls } from '../../../../../controls/NodeColorControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const NodeColorControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(NodeColorControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ab231c4a9df43b0c154f9ffcea35197b.json b/node_modules/.cache/cache-loader/ab231c4a9df43b0c154f9ffcea35197b.json deleted file mode 100644 index 21f6d7e..0000000 --- a/node_modules/.cache/cache-loader/ab231c4a9df43b0c154f9ffcea35197b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useDynamicColumn.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\useDynamicColumn.ts","mtime":1631029334770},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","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ZW5jb2RpbmcuZmllbGQsCiAgICAgIG1hcms6IHBhcnRzWzBdID09PSAnbm9kZScgPyBNYXJrLk5vbmUgOiBNYXJrLkNpcmNsZSwKICAgICAgc2l6ZVNjYWxlOiBjaXJjbGVTaXplU2NhbGUsCiAgICAgIGZpbGxTY2FsZTogY29sb3JTY2FsZSwKICAgICAgd2lkdGg6IHdpZHRoCiAgICB9OwogIH0sIFtjb2xvclNjYWxlLCBjaXJjbGVTaXplU2NhbGUsIGVuY29kaW5nLCB3aWR0aF0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/hooks/useDynamicColumn.ts"],"names":["BAR_HEIGHT","Mark","useMemo","useCallback","useDataBoundColorScale","useDynamicColumn","encoding","width","colorScale","circleSizeScale","parts","field","split","header","mark","None","Circle","sizeScale","fillScale"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,WAA3B;AACA,SAASC,IAAT,QAAqB,UAArB;AACA,SAASC,OAAT,EAAkBC,WAAlB,QAAqC,OAArC;AACA,SAASC,sBAAT,QAAuC,eAAvC;AACA,OAAO,SAASC,gBAAT,CAA0BC,QAA1B,EAAoCC,KAApC,EAA2C;AAC9C,QAAMC,UAAU,GAAGJ,sBAAsB,CAACE,QAAD,CAAzC;AACA,QAAMG,eAAe,GAAGN,WAAW,CAAC,MAAMH,UAAU,GAAG,CAApB,EAAuB,EAAvB,CAAnC;AACA,SAAOE,OAAO,CAAC,MAAM;AAAA;;AACjB,UAAMQ,KAAK,GAAG,CAAAJ,QAAQ,SAAR,IAAAA,QAAQ,WAAR,+BAAAA,QAAQ,CAAEK,KAAV,oEAAiBC,KAAjB,CAAuB,GAAvB,MAA+B,EAA7C;AACA,WAAO;AACHC,MAAAA,MAAM,EAAEH,KAAK,CAAC,CAAD,CAAL,KAAa,MAAb,GAAsB,EAAtB,GAA4B,IAAGA,KAAK,CAAC,CAAD,CAAI,GAD7C;AAEHC,MAAAA,KAAK,EAAEL,QAAQ,CAACK,KAFb;AAGHG,MAAAA,IAAI,EAAEJ,KAAK,CAAC,CAAD,CAAL,KAAa,MAAb,GAAsBT,IAAI,CAACc,IAA3B,GAAkCd,IAAI,CAACe,MAH1C;AAIHC,MAAAA,SAAS,EAAER,eAJR;AAKHS,MAAAA,SAAS,EAAEV,UALR;AAMHD,MAAAA,KAAK,EAAEA;AANJ,KAAP;AAQH,GAVa,EAUX,CAACC,UAAD,EAAaC,eAAb,EAA8BH,QAA9B,EAAwCC,KAAxC,CAVW,CAAd;AAWH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { BAR_HEIGHT } from '../styles';\r\nimport { Mark } from '../types';\r\nimport { useMemo, useCallback } from 'react';\r\nimport { useDataBoundColorScale } from '~/hooks/graph';\r\nexport function useDynamicColumn(encoding, width) {\r\n const colorScale = useDataBoundColorScale(encoding);\r\n const circleSizeScale = useCallback(() => BAR_HEIGHT / 2, []);\r\n return useMemo(() => {\r\n const parts = encoding?.field?.split('.') || [];\r\n return {\r\n header: parts[0] === 'node' ? '' : `[${parts[1]}]`,\r\n field: encoding.field,\r\n mark: parts[0] === 'node' ? Mark.None : Mark.Circle,\r\n sizeScale: circleSizeScale,\r\n fillScale: colorScale,\r\n width: width,\r\n };\r\n }, [colorScale, circleSizeScale, encoding, width]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ac249296a3cbb881c6a6da100d6057dc.json b/node_modules/.cache/cache-loader/ac249296a3cbb881c6a6da100d6057dc.json deleted file mode 100644 index 12418fa..0000000 --- a/node_modules/.cache/cache-loader/ac249296a3cbb881c6a6da100d6057dc.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeSizeControlsPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeSizeControlsPanel.tsx","mtime":1631029334737},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBOb2RlU2l6ZUNvbnRyb2xzIH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vY29udHJvbHMvTm9kZVNpemVDb250cm9scyc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgTm9kZVNpemVDb250cm9sc1BhbmVsID0gKCkgPT4gewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnQsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZVNpemVDb250cm9scywgbnVsbCkpOwp9Owpjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmAKCW1hcmdpbjogOHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeSizeControlsPanel.tsx"],"names":["NodeSizeControls","React","styled","NodeSizeControlsPanel","createElement","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,gBAAT,QAAiC,0CAAjC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AACvC,SAAQF,KAAK,CAACG,aAAN,CAAoBC,OAApB,EAA6B,IAA7B,EACJJ,KAAK,CAACG,aAAN,CAAoBJ,gBAApB,EAAsC,IAAtC,CADI,CAAR;AAEH,CAHM;AAIP,MAAMK,OAAO,GAAGH,MAAM,CAACI,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { NodeSizeControls } from '../../../../../controls/NodeSizeControls';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nexport const NodeSizeControlsPanel = () => {\r\n return (React.createElement(Content, null,\r\n React.createElement(NodeSizeControls, null)));\r\n};\r\nconst Content = styled.div `\r\n\tmargin: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ad2d1f103eabf55aa0dd58cb4fc362b6.json b/node_modules/.cache/cache-loader/ad2d1f103eabf55aa0dd58cb4fc362b6.json deleted file mode 100644 index 7ae92ae..0000000 --- a/node_modules/.cache/cache-loader/ad2d1f103eabf55aa0dd58cb4fc362b6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\nodeSize.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\nodeSize.ts","mtime":1631029334917},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzK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jdFNwcmVhZChfb2JqZWN0U3ByZWFkKHt9LCBlbmNvZGluZyksIHVwZGF0ZSkpOwogICAgfQogIH0sIFtlbmNvZGluZywgc2V0dGVyLCBmaWVsZFNldHRlcl0pOwp9CgpmdW5jdGlvbiBnZXREZWZhdWx0Tm9kZVNpemVPcHRpb25zKGZpZWxkLCBzdGF0cykgewogIC8vIFRPRE86IG1vc3QgZmllbGRzIHVzZSB0aGUgOTl0aCBxdWFudGlsZSwgYnV0IG5vZGUuZC9zaXplIGlzCiAgLy8gdmVyeSBwYXJ0aWN1bGFyIGZyb20gb3VyIGRhdGEgc2NpZW5jZSB0ZWFtLCBhbmQgcmVwcmVzZW50cwogIC8vIGEgc3BlY2lmaWMgcmFuZ2UgaW4gb3JkZXIgZm9yIG5vLW92ZXJsYXAgbGF5b3V0cyB0byBsb29rIGNvcnJlY3QKICAvLyBtYXliZSB3ZSBjYW4gZG8gYSBkb21haW4gY2hlY2sgYW5kIHVzZSBhIHNwZWNpYWwgY2FzZSBmb3IgdGhlc2U/CiAgcmV0dXJuIGdldERlZmF1bHROdW1lcmljT3B0aW9ucyhmaWVsZCwgc3RhdHMsIHsKICAgIHZhbHVlOiA0LAogICAgZG9tYWluOiBzdGF0cy5kb21haW4sCiAgICByYW5nZTogWzAuNSwgMTVdCiAgfSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/nodeSize.ts"],"names":["ROOT_COMMUNITY_ID","communityNodesTableState","getDefaultNumericOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","pid","table","stats","getDefaultNodeSizeOptions","useNodeSizeEncoding","useUpdateNodeSizeEncoding","encoding","setter","fieldSetter","update","value","domain","range"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,iBAAlC;AACA,SAASC,wBAAT,QAAyC,WAAzC;AACA,SAASC,wBAAT,QAAyC,UAAzC;AACA,SAASC,WAAT,Q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AACV,KAAR,CAAX;AACH,KAFD,MAGK;AACDQ,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,yBAAT,CAAmCJ,KAAnC,EAA0CG,KAA1C,EAAiD;AAC7C;AACA;AACA;AACA;AACA,SAAOhB,wBAAwB,CAACa,KAAD,EAAQG,KAAR,EAAe;AAC1CQ,IAAAA,KAAK,EAAE,CADmC;AAE1CC,IAAAA,MAAM,EAAET,KAAK,CAACS,MAF4B;AAG1CC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,EAAN;AAHmC,GAAf,CAA/B;AAKH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../../constants';\r\nimport { communityNodesTableState } from '../tables';\r\nimport { getDefaultNumericOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nexport const fieldState = atom({\r\n key: 'node-size-encoding-field',\r\n default: 'node.d',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'node-size-encoding-state',\r\n default: selectorFamily({\r\n key: 'node-size-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n // always use the root for size, which has the unique node list\r\n const pid = ROOT_COMMUNITY_ID;\r\n const table = get(communityNodesTableState(pid));\r\n const stats = getColumnStats(table, field);\r\n return getDefaultNodeSizeOptions(field, stats);\r\n },\r\n }),\r\n});\r\nexport function useNodeSizeEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateNodeSizeEncoding() {\r\n const encoding = useNodeSizeEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultNodeSizeOptions(field, stats) {\r\n // TODO: most fields use the 99th quantile, but node.d/size is\r\n // very particular from our data science team, and represents\r\n // a specific range in order for no-overlap layouts to look correct\r\n // maybe we can do a domain check and use a special case for these?\r\n return getDefaultNumericOptions(field, stats, {\r\n value: 4,\r\n domain: stats.domain,\r\n range: [0.5, 15],\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ad374aada8ff42eb6743ef2dec6372b7.json b/node_modules/.cache/cache-loader/ad374aada8ff42eb6743ef2dec6372b7.json deleted file mode 100644 index 942816a..0000000 --- a/node_modules/.cache/cache-loader/ad374aada8ff42eb6743ef2dec6372b7.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\edgeSize.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\edgeSize.ts","mtime":1631029334909},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVz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pZWxkU2V0dGVyKHVwZGF0ZS5maWVsZCk7CiAgICB9IGVsc2UgewogICAgICBzZXR0ZXIoX29iamVjdFNwcmVhZChfb2JqZWN0U3ByZWFkKHt9LCBlbmNvZGluZyksIHVwZGF0ZSkpOwogICAgfQogIH0sIFtlbmNvZGluZywgc2V0dGVyLCBmaWVsZFNldHRlcl0pOwp9CgpmdW5jdGlvbiBnZXREZWZhdWx0RWRnZVNpemVPcHRpb25zKGZpZWxkLCBzdGF0cykgewogIHJldHVybiBnZXREZWZhdWx0TnVtZXJpY09wdGlvbnMoZmllbGQsIHN0YXRzLCB7CiAgICB2YWx1ZTogNCwKICAgIHJhbmdlOiBbMSwgMTBdCiAgfSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/edgeSize.ts"],"names":["edgeTableState","getDefaultNumericOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","table","stats","getDefaultEdgeSizeOptions","useEdgeSizeEncoding","useUpdateEdgeSizeEncoding","encoding","setter","fieldSetter","update","value","range"],"mappings":";;;;;;AAAA,SAASA,cAAT,QAA+B,WAA/B;AACA,SAASC,wBAAT,QAAyC,UAAzC;AACA,SAASC,WAAT,QAA4B,OAA5B;AACA,SAASC,IAAT,EAAeC,UAAf,EAA2BC,cAA3B,EAA2CC,cAA3C,EAA2DC,iBAA3D,QAAqF,QAArF;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,MAAMC,UAAU,GAAGN,IAAI,CAAC;AACpBO,EAAAA,GAAG,EAAE,0BADe;AAEpBC,EAAAA,OAAO,EAAE;AAFW,CAAD,CAAvB;AAIA,MAAMC,aAAa,GAAGR,UAAU,CAAC;AAC7BM,EAAAA,GAAG,EAAE,0BADwB;AAE7BC,EAAAA,OAAO,EAAEN,cAAc,CAAC;AACpBK,IAAAA,GAAG,EAAE,kCADe;AAEpBG,IAAAA,GAAG,EAAGC,KAAD,IAAW,CAAC;AAAED,MAAAA;AAAF,KAAD,KAAa;AACzB;AACA,YAAME,KAAK,GAAGF,GAAG,CAACb,cAAD,CAAjB;AACA,YAAMgB,KAAK,GAAGR,cAAc,CAACO,KAAD,EAAQD,KAAR,CAA5B;AACA,aAAOG,yBAAyB,CAACH,KAAD,EAAQE,KAAR,CAAhC;AACH;AAPmB,GAAD;AAFM,CAAD,CAAhC;AAYA,OAAO,SAASE,mBAAT,GAA+B;AAClC,QAAMJ,KAAK,GAAGR,cAAc,CAACG,UAAD,CAA5B;AACA,SAAOH,cAAc,CAACM,aAAa,CAACE,KAAD,CAAd,CAArB;AACH;AACD,OAAO,SAASK,yBAAT,GAAqC;AACxC,QAAMC,QAAQ,GAAGF,mBAAmB,EAApC;AACA,QAAMG,MAAM,GAAGd,iBAAiB,CAACK,aAAa,CAACQ,QAAQ,CAACN,KAAT,IAAkB,EAAnB,CAAd,CAAhC;AACA,QAAMQ,WAAW,GAAGf,iBAAiB,CAACE,UAAD,CAArC;AACA,SAAOP,WAAW,CAAEqB,MAAD,IAAY;AAC3B,QAAIA,MAAM,CAACT,KAAX,EAAkB;AACdQ,MAAAA,WAAW,CAACC,MAAM,CAACT,KAAR,CAAX;AACH,KAFD,MAGK;AACDO,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,yBAAT,CAAmCH,KAAnC,EAA0CE,KAA1C,EAAiD;AAC7C,SAAOf,wBAAwB,CAACa,KAAD,EAAQE,KAAR,EAAe;AAC1CQ,IAAAA,KAAK,EAAE,CADmC;AAE1CC,IAAAA,KAAK,EAAE,CAAC,CAAD,EAAI,EAAJ;AAFmC,GAAf,CAA/B;AAIH","sourcesContent":["import { edgeTableState } from '../tables';\r\nimport { getDefaultNumericOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nconst fieldState = atom({\r\n key: 'edge-size-encoding-field',\r\n default: '',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'edge-size-encoding-state',\r\n default: selectorFamily({\r\n key: 'edge-size-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n // TODO: filter by parent\r\n const table = get(edgeTableState);\r\n const stats = getColumnStats(table, field);\r\n return getDefaultEdgeSizeOptions(field, stats);\r\n },\r\n }),\r\n});\r\nexport function useEdgeSizeEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateEdgeSizeEncoding() {\r\n const encoding = useEdgeSizeEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultEdgeSizeOptions(field, stats) {\r\n return getDefaultNumericOptions(field, stats, {\r\n value: 4,\r\n range: [1, 10],\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/adb861e9b85e56f907afa17017b7c621.json b/node_modules/.cache/cache-loader/adb861e9b85e56f907afa17017b7c621.json deleted file mode 100644 index c53b1a1..0000000 --- a/node_modules/.cache/cache-loader/adb861e9b85e56f907afa17017b7c621.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\FileDropPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\FileDropPanel.tsx","mtime":1631029334691},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBRdWlja0Ryb3AgfSBmcm9tICcuLi8uLi8uLi8uLi9RdWlja0Ryb3AnOwppbXBvcnQgeyBGaWxlVXBsb2FkTWVzc2FnZSB9IGZyb20gJy4vRmlsZVVwbG9hZE1lc3NhZ2UnOwppbXBvcnQgeyBEZWZhdWx0QnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1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uY3JlYXRlRWxlbWVudChEZWZhdWx0QnV0dG9uLCB7CiAgICB0ZXh0OiAiQ2xlYXIgYWxsIiwKICAgIG9uQ2xpY2s6IGhhbmRsZVJlc2V0Q2xpY2sKICB9KSA6IG51bGwpKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOwpjb25zdCBGaWxlcyA9IHN0eWxlZC5kaXZgYDsKY29uc3QgUmVzZXQgPSBzdHlsZWQuZGl2YAoJd2lkdGg6IDEwMCU7CglkaXNwbGF5OiBmbGV4OwoJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7CgltYXJnaW4tdG9wOiAxMHB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/panels/FileDropPanel.tsx"],"names":["QuickDrop","FileUploadMessage","DefaultButton","React","useCallback","styled","useArqueroBigTable","useArqueroEdgeTable","useClearAllData","useClearFiles","useFilesList","FileDropPanel","bigTable","edgeTable","resetTables","files","resetFiles","handleResetClick","createElement","Container","Files","Reset","length","numRows","text","onClick","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,uBAA1B;AACA,SAASC,iBAAT,QAAkC,qBAAlC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,kBAAT,EAA6BC,mBAA7B,EAAkDC,eAAlD,QAA0E,WAA1E;AACA,SAASC,aAAT,EAAwBC,YAAxB,QAA4C,SAA5C;AACA,OAAO,MAAMC,aAAa,GAAG,MAAM;AAC/B,QAAMC,QAAQ,GAAGN,kBAAkB,EAAnC;AACA,QAAMO,SAAS,GAAGN,mBAAmB,EAArC;AACA,QAAMO,WAAW,GAAGN,eAAe,EAAnC;AACA,QAAMO,KAAK,GAAGL,YAAY,EAA1B;AACA,QAAMM,UAAU,GAAGP,aAAa,EAAhC;AACA,QAAMQ,gBAAgB,GAAGb,WAAW,CAAC,MAAM;AACvCU,IAAAA,WAAW;AACXE,IAAAA,UAAU;AACb,GAHmC,EAGjC,CAACF,WAAD,EAAcE,UAAd,CAHiC,CAApC;AAIA,SAAQb,KAAK,CAACe,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJhB,KAAK,CAACe,aAAN,CAAoBlB,SAApB,EAA+B,IAA/B,CADI,EAEJG,KAAK,CAACe,aAAN,CAAoBE,KAApB,EAA2B,IAA3B,EACIjB,KAAK,CAACe,aAAN,CAAoBjB,iBAApB,EAAuC;AAAEc,IAAAA,KAAK,EAAEA;AAAT,GAAvC,CADJ,CAFI,EAIJZ,KAAK,CAACe,aAAN,CAAoBG,KAApB,EAA2B,IAA3B,EAAiCN,KAAK,CAACO,MAAN,GAAe,CAAf,IAC7BV,QAAQ,CAACW,OAAT,KAAqB,CADQ,IAE7BV,SAAS,CAACU,OAAV,KAAsB,CAFO,GAEFpB,KAAK,CAACe,aAAN,CAAoBhB,aAApB,EAAmC;AAAEsB,IAAAA,IAAI,EAAE,WAAR;AAAqBC,IAAAA,OAAO,EAAER;AAA9B,GAAnC,CAFE,GAEsF,IAFvH,CAJI,CAAR;AAOH,CAjBM;AAkBP,MAAME,SAAS,GAAGd,MAAM,CAACqB,GAAK,EAA9B;AACA,MAAMN,KAAK,GAAGf,MAAM,CAACqB,GAAK,EAA1B;AACA,MAAML,KAAK,GAAGhB,MAAM,CAACqB,GAAK;AAC1B;AACA;AACA;AACA;AACA,CALA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { QuickDrop } from '../../../../QuickDrop';\r\nimport { FileUploadMessage } from './FileUploadMessage';\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroBigTable, useArqueroEdgeTable, useClearAllData, } from '~/arquero';\r\nimport { useClearFiles, useFilesList } from '~/state';\r\nexport const FileDropPanel = () => {\r\n const bigTable = useArqueroBigTable();\r\n const edgeTable = useArqueroEdgeTable();\r\n const resetTables = useClearAllData();\r\n const files = useFilesList();\r\n const resetFiles = useClearFiles();\r\n const handleResetClick = useCallback(() => {\r\n resetTables();\r\n resetFiles();\r\n }, [resetTables, resetFiles]);\r\n return (React.createElement(Container, null,\r\n React.createElement(QuickDrop, null),\r\n React.createElement(Files, null,\r\n React.createElement(FileUploadMessage, { files: files })),\r\n React.createElement(Reset, null, files.length > 0 ||\r\n bigTable.numRows() > 0 ||\r\n edgeTable.numRows() > 0 ? (React.createElement(DefaultButton, { text: \"Clear all\", onClick: handleResetClick })) : null)));\r\n};\r\nconst Container = styled.div ``;\r\nconst Files = styled.div ``;\r\nconst Reset = styled.div `\r\n\twidth: 100%;\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\tmargin-top: 10px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ae545b98333b2681b90716474f14833a.json b/node_modules/.cache/cache-loader/ae545b98333b2681b90716474f14833a.json deleted file mode 100644 index b8bcb32..0000000 --- a/node_modules/.cache/cache-loader/ae545b98333b2681b90716474f14833a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Text.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Text.tsx","mtime":1631029334762},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBlbXB0eSB9IGZyb20gJy4vY29tbW9uL2RlZmF1bHRQYXJhbXMnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgVGV4dCA9ICh7CiAgY29tbXVuaXR5LAogIGNvbHVtbgp9KSA9PiB7CiAgY29uc3QgewogICAgYWNjZXNzb3IgPSBlbXB0eQogIH0gPSBjb2x1bW47CiAgY29uc3QgdmFsdWUgPSBhY2Nlc3Nvcihjb21tdW5pdHkpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFJlYWN0LkZyYWdtZW50LCBudWxsLCB2YWx1ZSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/Text.tsx"],"names":["empty","React","Text","community","column","accessor","value","createElement","Fragment"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,KAAT,QAAsB,wBAAtB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAO,MAAMC,IAAI,GAAG,CAAC;AAAEC,EAAAA,SAAF;AAAaC,EAAAA;AAAb,CAAD,KAA2B;AAC3C,QAAM;AAAEC,IAAAA,QAAQ,GAAGL;AAAb,MAAuBI,MAA7B;AACA,QAAME,KAAK,GAAGD,QAAQ,CAACF,SAAD,CAAtB;AACA,SAAOF,KAAK,CAACM,aAAN,CAAoBN,KAAK,CAACO,QAA1B,EAAoC,IAApC,EAA0CF,KAA1C,CAAP;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { empty } from './common/defaultParams';\r\nimport React from 'react';\r\nexport const Text = ({ community, column }) => {\r\n const { accessor = empty } = column;\r\n const value = accessor(community);\r\n return React.createElement(React.Fragment, null, value);\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json b/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json deleted file mode 100644 index 6124690..0000000 --- a/node_modules/.cache/cache-loader/af5e00fa7d111a7822fa31046e6e0310.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\UmapLayout.tsx","mtime":1631040491999},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBEZWZhdWx0QnV0dG9uIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IFJlYWN0LCB7IG1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCB7IEFVVE9MQVlPVVRfVVJMIH0gZnJvbSAnfi9jb25zdGFudHMnOwovKioNCiAqIENvbmZpZyBmb3IgVU1BUCBhdXRvbGF5b3V0LiBSaWdodCBub3cgaXQganVzdCB1c2VzIGRlZmF1bHQgcGFyYW1zLA0KICogYnV0IG9ubHkgZXhwb3NlcyB0aGUgYnV0dG9uIGlmIGEgc2VydmljZSBVUkwgaGFzIGJlZW4gY29uZmlndXJlZC4NCiAqLwoKZXhwb3J0IGNvbnN0IFVtYXBMYXlvdXQgPSBtZW1vKGZ1bmN0aW9uIFVtYXBMYXlvdXQoewogIG9uQ2xpY2sKfSkgewogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFJlYWN0LkZyYWdtZW50LCBudWxsLCBCb29sZWFuKEFVVE9MQVlPVVRfVVJMKSA/IFJlYWN0LmNyZWF0ZUVsZW1lbnQoRGVmYXVsdEJ1dHRvbiwgewogICAgdGV4dDogJ1VNQVAnLAogICAgb25DbGljazogb25DbGljawogIH0pIDogbnVsbCk7Cn0pOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/UmapLayout.tsx"],"names":["DefaultButton","React","memo","AUTOLAYOUT_URL","UmapLayout","onClick","createElement","Fragment","Boolean","text"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,iBAA9B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,QAA4B,OAA5B;AACA,SAASC,cAAT,QAA+B,aAA/B;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,UAAU,GAAGF,IAAI,CAAC,SAASE,UAAT,CAAoB;AAAEC,EAAAA;AAAF,CAApB,EAAkC;AAC7D,SAAQJ,KAAK,CAACK,aAAN,CAAoBL,KAAK,CAACM,QAA1B,EAAoC,IAApC,EAA0CC,OAAO,CAACL,cAAD,CAAP,GAA2BF,KAAK,CAACK,aAAN,CAAoBN,aAApB,EAAmC;AAAES,IAAAA,IAAI,EAAE,MAAR;AAAgBJ,IAAAA,OAAO,EAAEA;AAAzB,GAAnC,CAA3B,GAAqG,IAA/I,CAAR;AACH,CAF6B,CAAvB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DefaultButton } from '@fluentui/react';\r\nimport React, { memo } from 'react';\r\nimport { AUTOLAYOUT_URL } from '~/constants';\r\n/**\r\n * Config for UMAP autolayout. Right now it just uses default params,\r\n * but only exposes the button if a service URL has been configured.\r\n */\r\nexport const UmapLayout = memo(function UmapLayout({ onClick, }) {\r\n return (React.createElement(React.Fragment, null, Boolean(AUTOLAYOUT_URL) ? (React.createElement(DefaultButton, { text: 'UMAP', onClick: onClick })) : null));\r\n});\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b0e1519e35056d8dba0f2692a68c7504.json b/node_modules/.cache/cache-loader/b0e1519e35056d8dba0f2692a68c7504.json deleted file mode 100644 index 6656ca7..0000000 --- a/node_modules/.cache/cache-loader/b0e1519e35056d8dba0f2692a68c7504.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ScaledPicker.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ScaledPicker.tsx","mtime":1631029334819},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type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JuIHVzZU1lbW8oKCkgPT4gewogICAgcmV0dXJuIHRhYmxlLmNvbHVtbk5hbWVzKCkubWFwKGtleSA9PiAoewogICAgICBrZXksCiAgICAgIHRleHQ6IGtleQogICAgfSkpOwogIH0sIFt0YWJsZV0pOwp9Cgpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IEdyb3VwID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDIwcHg7CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ColorSelector/ScaledPicker.tsx"],"names":["useIsNominal","NominalLegend","NumericDomainEditor","Dropdown","ScaleDropdown","React","useCallback","useMemo","styled","ScaledPicker","table","encoding","onChange","fieldOptions","useFieldDropdownOptions","isNominal","handleFieldChange","_","option","field","key","handleScaleChange","scaleName","createElement","Container","Group","label","options","selectedKey","placeholder","columnNames","map","text","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,uBAA7B;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,SAASC,mBAAT,QAAoC,wBAApC;AACA,SAASC,QAAT,QAAyB,iBAAzB;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,QAAT;AAAmBC,EAAAA;AAAnB,CAAD,KAAoC;AAC5D,QAAMC,YAAY,GAAGC,uBAAuB,CAACJ,KAAD,CAA5C;AACA,QAAMK,SAAS,GAAGf,YAAY,CAACW,QAAD,CAA9B;AACA,QAAMK,iBAAiB,GAAGV,WAAW,CAAC,CAACW,CAAD,EAAIC,MAAJ,KAAe;AACjDN,IAAAA,QAAQ,CAAC;AACLO,MAAAA,KAAK,EAAED,MAAM,CAACE;AADT,KAAD,CAAR;AAGH,GAJoC,EAIlC,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,SAASE,uBAAT,CAAiCJ,KAAjC,EAAwC;AACpC,SAAOH,OAAO,CAAC,MAAM;AACjB,WAAOG,KAAK,CAACoB,WAAN,GAAoBC,GAApB,CAAwBX,GAAG,KAAK;AACnCA,MAAAA,GADmC;AAEnCY,MAAAA,IAAI,EAAEZ;AAF6B,KAAL,CAA3B,CAAP;AAIH,GALa,EAKX,CAACV,KAAD,CALW,CAAd;AAMH;;AACD,MAAMc,SAAS,GAAGhB,MAAM,CAACyB,GAAK,EAA9B;AACA,MAAMR,KAAK,GAAGjB,MAAM,CAACyB,GAAK;AAC1B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useIsNominal } from '../HeaderLegend/hooks';\r\nimport { NominalLegend } from '../NominalLegend';\r\nimport { NumericDomainEditor } from '../NumericDomainEditor';\r\nimport { Dropdown } from '@fluentui/react';\r\nimport { ScaleDropdown } from '@thematic/fluent';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const ScaledPicker = ({ table, encoding, onChange, }) => {\r\n const fieldOptions = useFieldDropdownOptions(table);\r\n const isNominal = useIsNominal(encoding);\r\n const handleFieldChange = useCallback((_, option) => {\r\n onChange({\r\n field: option.key,\r\n });\r\n }, [onChange]);\r\n const handleScaleChange = useCallback((_, option) => {\r\n onChange({\r\n scaleName: option.key,\r\n });\r\n }, [onChange]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Group, null,\r\n React.createElement(Dropdown, { label: 'Column', options: fieldOptions, selectedKey: encoding.field, onChange: handleFieldChange, placeholder: 'Select data column' })),\r\n React.createElement(Group, null,\r\n React.createElement(ScaleDropdown, { label: 'Scale', selectedKey: encoding.scaleName, onChange: handleScaleChange })),\r\n React.createElement(Group, null, isNominal ? (React.createElement(NominalLegend, { encoding: encoding })) : (React.createElement(NumericDomainEditor, { table: table, encoding: encoding, onChange: onChange })))));\r\n};\r\nfunction useFieldDropdownOptions(table) {\r\n return useMemo(() => {\r\n return table.columnNames().map(key => ({\r\n key,\r\n text: key,\r\n }));\r\n }, [table]);\r\n}\r\nconst Container = styled.div ``;\r\nconst Group = styled.div `\r\n\tmargin-top: 20px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b12d146b6656557690340ead7b13e60c.json b/node_modules/.cache/cache-loader/b12d146b6656557690340ead7b13e60c.json deleted file mode 100644 index 8d6774f..0000000 --- a/node_modules/.cache/cache-loader/b12d146b6656557690340ead7b13e60c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\CommunityRow.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\CommunityRow.tsx","mtime":1631029334766},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgQ2VsbCB9IGZyb20gJy4vQ2VsbCc7CmltcG9ydCB7IFNlbGVjdGlvblN0YXRlIH0gZnJvbSAnQHRoZW1hdGljL2NvcmUnOwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgQ29tbXVuaXR5Um93ID0gKHsKICBjb21tdW5pdHksCiAgaG92ZXJlZCwKICBjb2x1bW5zLAogIG9uSG92ZXIsCiAgb25DbGljaywKICBzdHlsZXMgPSB7fSwKICBzZWxlY3RlZAp9KSA9PiB7CiAgY29uc3QgaGFuZGxlRW50ZXIgPSB1c2VDYWxsYmFjaygoKSA9PiBvbkhvdmVyKGNvbW11bml0eSksIFtjb21tdW5pdHksIG9uSG92ZXJdKTsKICBjb25zdCBoYW5kbGVMZWF2ZSA9IHVzZUNhbGxiYWNrKCgpID0+IG9uSG92ZXIoKSwgW29uSG92ZXJdKTsKICBjb25zdCBoYW5kbGVDbGljayA9IHVzZUNhbGxiYWNrKCgpID0+IG9uQ2xpY2soY29tbXVuaXR5KSwgW2NvbW11bml0eSwgb25DbGlja10pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFRyLCB7CiAgICBvbk1vdXNlRW50ZXI6IGhhbmRsZUVudGVyLAogICAgb25Nb3VzZUxlYXZlOiBoYW5kbGVMZWF2ZSwKICAgIG9uQ2xpY2s6IGhhbmRsZUNsaWNrLAogICAgc3R5bGU6IHN0eWxlcy50YWJsZVJvdyB8fCB7fSwKICAgIHNlbGVjdGVkOiBzZWxlY3RlZAogIH0sIGNvbHVtbnMubWFwKGMgPT4gewogICAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ2VsbCwgewogICAgICBrZXk6IGBjb21tLXJvdy1jb2wtJHtjLmhlYWRlcn0tJHtjb21tdW5pdHkuaWR9YCwKICAgICAgY29tbXVuaXR5OiBjb21tdW5pdHksCiAgICAgIGNvbHVtbjogYywKICAgICAgaG92ZXJlZDogaG92ZXJlZCwKICAgICAgc3R5bGVzOiBzdHlsZXMudGFibGVFbGVtZW50cwogICAgfSk7CiAgfSkpOwp9Owpjb25zdCBUciA9IHN0eWxlZC50cmAKCXdpZHRoOiAxMDAlOwoJY3Vyc29yOiBwb2ludGVyOwoJY29sb3I6ICR7KHsKICB0aGVtZQp9KSA9PiB0aGVtZS50ZXh0KCkuZmlsbCgpLmhleCgpfTsKCWJhY2tncm91bmQtY29sb3I6ICR7KHsKICBzZWxlY3RlZCwKICB0aGVtZQp9KSA9PiBzZWxlY3RlZCA/IGAke3RoZW1lLnJlY3QoewogIHNlbGVjdGlvblN0YXRlOiBTZWxlY3Rpb25TdGF0ZS5TZWxlY3RlZAp9KS5maWxsKCkuaGV4KCl9YCA6ICdpbmhlcml0J307CgkmJjpob3ZlciB7CgkJYmFja2dyb3VuZC1jb2xvcjogJHsoewogIHRoZW1lCn0pID0+IGAke3RoZW1lLnJlY3QoewogIHNlbGVjdGlvblN0YXRlOiBTZWxlY3Rpb25TdGF0ZS5Ib3ZlcmVkCn0pLmZpbGwoKS5oZXgoKX0gIWltcG9ydGFudGB9OwoJCXVzZXItc2VsZWN0OiBub25lOwoJfQpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/CommunityRow.tsx"],"names":["Cell","SelectionState","React","useCallback","styled","CommunityRow","community","hovered","columns","onHover","onClick","styles","selected","handleEnter","handleLeave","handleClick","createElement","Tr","onMouseEnter","onMouseLeave","style","tableRow","map","c","key","header","id","column","tableElements","tr","theme","text","fill","hex","rect","selectionState","Selected","Hovered"],"mappings":"AAAA,SAASA,IAAT,QAAqB,QAArB;AACA,SAASC,cAAT,QAA+B,gBAA/B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAA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CAA1J,CAAR;AAGH,CAPM;AAQP,MAAMX,EAAE,GAAGb,MAAM,CAACyB,EAAI;AACtB;AACA;AACA,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,IAAN,GAAaC,IAAb,GAAoBC,GAApB,EAA0B;AACnD,qBAAqB,CAAC;AAAErB,EAAAA,QAAF;AAAYkB,EAAAA;AAAZ,CAAD,KAAyBlB,QAAQ,GAC/C,GAAEkB,KAAK,CACLI,IADA,CACK;AAAEC,EAAAA,cAAc,EAAElC,cAAc,CAACmC;AAAjC,CADL,EAEAJ,IAFA,GAGAC,GAHA,EAGM,EAJuC,GAKhD,SAAU;AAChB;AACA,sBAAsB,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAgB,GAAEA,KAAK,CACxCI,IADmC,CAC9B;AAAEC,EAAAA,cAAc,EAAElC,cAAc,CAACoC;AAAjC,CAD8B,EAEnCL,IAFmC,GAGnCC,GAHmC,EAG7B,aAAa;AACxB;AACA;AACA,CAjBA","sourcesContent":["import { Cell } from './Cell';\r\nimport { SelectionState } from '@thematic/core';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const CommunityRow = ({ community, hovered, columns, onHover, onClick, styles = {}, selected, }) => {\r\n const handleEnter = useCallback(() => onHover(community), [community, onHover]);\r\n const handleLeave = useCallback(() => onHover(), [onHover]);\r\n const handleClick = useCallback(() => onClick(community), [community, onClick]);\r\n return (React.createElement(Tr, { onMouseEnter: handleEnter, onMouseLeave: handleLeave, onClick: handleClick, style: styles.tableRow || {}, selected: selected }, columns.map(c => {\r\n return (React.createElement(Cell, { key: `comm-row-col-${c.header}-${community.id}`, community: community, column: c, hovered: hovered, styles: styles.tableElements }));\r\n })));\r\n};\r\nconst Tr = styled.tr `\r\n\twidth: 100%;\r\n\tcursor: pointer;\r\n\tcolor: ${({ theme }) => theme.text().fill().hex()};\r\n\tbackground-color: ${({ selected, theme }) => selected\r\n ? `${theme\r\n .rect({ selectionState: SelectionState.Selected })\r\n .fill()\r\n .hex()}`\r\n : 'inherit'};\r\n\t&&:hover {\r\n\t\tbackground-color: ${({ theme }) => `${theme\r\n .rect({ selectionState: SelectionState.Hovered })\r\n .fill()\r\n .hex()} !important`};\r\n\t\tuser-select: none;\r\n\t}\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b15885ec96cba2bd280d2d01bc158f91.json b/node_modules/.cache/cache-loader/b15885ec96cba2bd280d2d01bc158f91.json deleted file mode 100644 index 6ff561e..0000000 --- a/node_modules/.cache/cache-loader/b15885ec96cba2bd280d2d01bc158f91.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\edgeOpacity.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\edgeOpacity.ts","mtime":1631029334906},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9ycyhzb3VyY2UpKTsgfSBlbHNlIHsgb3duS2V5cyhPYmplY3Qoc291cmNlKSkuZm9yRWFja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wogICAgfQogIH0sIFtlbmNvZGluZywgc2V0dGVyLCBmaWVsZFNldHRlcl0pOwp9CgpmdW5jdGlvbiBnZXREZWZhdWx0RWRnZU9wYWNpdHlPcHRpb25zKGZpZWxkLCBzdGF0cykgewogIHJldHVybiBnZXREZWZhdWx0TnVtZXJpY09wdGlvbnMoZmllbGQsIHN0YXRzLCB7CiAgICB2YWx1ZTogMC4yLAogICAgcmFuZ2U6IFswLjEsIDFdCiAgfSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/edgeOpacity.ts"],"names":["edgeTableState","getDefaultNumericOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","table","stats","getDefaultEdgeOpacityOptions","useEdgeOpacityEncoding","useUpdateEdgeOpacityEncoding","encoding","setter","fieldSetter","update","value","range"],"mappings":";;;;;;AAAA,SAASA,cAAT,QAA+B,WAA/B;AACA,SAASC,wBAAT,QAAyC,UAAzC;AACA,SAASC,WAAT,QAA4B,OAA5B;AACA,SAASC,IAAT,EAAeC,UAAf,EAA2BC,cAA3B,EAA2CC,cAA3C,EAA2DC,iBAA3D,QAAqF,QAArF;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,MAAMC,UAAU,GAAGN,IAAI,CAAC;AACpBO,EAAAA,GAAG,EAAE,6BADe;AAEpBC,EAAAA,OAAO,EAAE;AAFW,CAAD,CAAvB;AAIA,MAAMC,aAAa,GAAGR,UAAU,CAAC;AAC7BM,EAAAA,GAAG,EAAE,6BADwB;AAE7BC,EAAAA,OAAO,EAAEN,cAAc,CAAC;AACpBK,IAAAA,GAAG,EAAE,qCADe;AAEpBG,IAAAA,GAAG,EAAGC,KAAD,IAAW,CAAC;AAAED,MAAAA;AAAF,KAAD,KAAa;AACzB;AACA,YAAME,KAAK,GAAGF,GAAG,CAACb,cAAD,CAAjB;AACA,YAAMgB,KAAK,GAAGR,cAAc,CAACO,KAAD,EAAQD,KAAR,CAA5B;AACA,aAAOG,4BAA4B,CAACH,KAAD,EAAQE,KAAR,CAAnC;AACH;AAPmB,GAAD;AAFM,CAAD,CAAhC;AAYA,OAAO,SAASE,sBAAT,GAAkC;AACrC,QAAMJ,KAAK,GAAGR,cAAc,CAACG,UAAD,CAA5B;AACA,SAAOH,cAAc,CAACM,aAAa,CAACE,KAAD,CAAd,CAArB;AACH;AACD,OAAO,SAASK,4BAAT,GAAwC;AAC3C,QAAMC,QAAQ,GAAGF,sBAAsB,EAAvC;AACA,QAAMG,MAAM,GAAGd,iBAAiB,CAACK,aAAa,CAACQ,QAAQ,CAACN,KAAT,IAAkB,EAAnB,CAAd,CAAhC;AACA,QAAMQ,WAAW,GAAGf,iBAAiB,CAACE,UAAD,CAArC;AACA,SAAOP,WAAW,CAAEqB,MAAD,IAAY;AAC3B,QAAIA,MAAM,CAACT,KAAX,EAAkB;AACdQ,MAAAA,WAAW,CAACC,MAAM,CAACT,KAAR,CAAX;AACH,KAFD,MAGK;AACDO,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,4BAAT,CAAsCH,KAAtC,EAA6CE,KAA7C,EAAoD;AAChD,SAAOf,wBAAwB,CAACa,KAAD,EAAQE,KAAR,EAAe;AAC1CQ,IAAAA,KAAK,EAAE,GADmC;AAE1CC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,CAAN;AAFmC,GAAf,CAA/B;AAIH","sourcesContent":["import { edgeTableState } from '../tables';\r\nimport { getDefaultNumericOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nconst fieldState = atom({\r\n key: 'edge-opacity-encoding-field',\r\n default: '',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'edge-opacity-encoding-state',\r\n default: selectorFamily({\r\n key: 'edge-opacity-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n // TODO: filter by parent\r\n const table = get(edgeTableState);\r\n const stats = getColumnStats(table, field);\r\n return getDefaultEdgeOpacityOptions(field, stats);\r\n },\r\n }),\r\n});\r\nexport function useEdgeOpacityEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateEdgeOpacityEncoding() {\r\n const encoding = useEdgeOpacityEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultEdgeOpacityOptions(field, stats) {\r\n return getDefaultNumericOptions(field, stats, {\r\n value: 0.2,\r\n range: [0.1, 1],\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b1b1454aa513882eeb9a6b782296480d.json b/node_modules/.cache/cache-loader/b1b1454aa513882eeb9a6b782296480d.json deleted file mode 100644 index 6403419..0000000 --- a/node_modules/.cache/cache-loader/b1b1454aa513882eeb9a6b782296480d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\index.tsx","mtime":1631029334871},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBBcHAgfSBmcm9tICcuL2NvbXBvbmVudHMvQXBwJzsKaW1wb3J0IHsgdXNlVGhlbWUgfSBmcm9tICcuL3N0YXRlJzsKaW1wb3J0IHsgVGhlbWF0aWNGbHVlbnRQcm92aWRlciB9IGZyb20gJ0B0aGVtYXRpYy9mbHVlbnQnOwppbXBvcnQgeyBBcHBsaWNhdGlvblN0eWxlcyB9IGZyb20gJ0B0aGVtYXRpYy9yZWFjdCc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCBSZWFjdERPTSBmcm9tICdyZWFjdC1kb20nOwppbXBvcnQgeyBSZWNvaWxSb290IH0gZnJvbSAncmVjb2lsJzsKaW1wb3J0IHsgVGhlbWVQcm92aWRlciB9IGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0ICcuL2luZGV4LmNzcyc7Cgpjb25zdCBUaGVtZWRBcHAgPSAoKSA9PiB7CiAgY29uc3QgdGhlbWUgPSB1c2VUaGVtZSgpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KFRoZW1hdGljRmx1ZW50UHJvdmlkZXIsIHsKICAgIHRoZW1lOiB0aGVtZQogIH0sIFJlYWN0LmNyZWF0ZUVsZW1lbnQoVGhlbWVQcm92aWRlciwgewogICAgdGhlbWU6IHRoZW1lCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChBcHBsaWNhdGlvblN0eWxlcywgbnVsbCksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQXBwLCBudWxsKSkpOwp9OwoKY29uc3QgQ29uZmlndXJlZEFwcCA9ICgpID0+IFJlYWN0LmNyZWF0ZUVsZW1lbnQoUmVjb2lsUm9vdCwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChUaGVtZWRBcHAsIG51bGwpKTsKCmNvbnN0IHJvb3QgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdkaXYnKTsKZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChyb290KTsKUmVhY3RET00ucmVuZGVyKFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29uZmlndXJlZEFwcCwgbnVsbCksIHJvb3QpOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/index.tsx"],"names":["App","useTheme","ThematicFluentProvider","ApplicationStyles","React","ReactDOM","RecoilRoot","ThemeProvider","ThemedApp","theme","createElement","ConfiguredApp","root","document","body","appendChild","render"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,kBAApB;AACA,SAASC,QAAT,QAAyB,SAAzB;AACA,SAASC,sBAAT,QAAuC,kBAAvC;AACA,SAASC,iBAAT,QAAkC,iBAAlC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,UAAT,QAA2B,QAA3B;AACA,SAASC,aAAT,QAA8B,mBAA9B;AACA,OAAO,aAAP;;AACA,MAAMC,SAAS,GAAG,MAAM;AACpB,QAAMC,KAAK,GAAGR,QAAQ,EAAtB;AACA,SAAQG,KAAK,CAACM,aAAN,CAAoBR,sBAApB,EAA4C;AAAEO,IAAAA,KAAK,EAAEA;AAAT,GAA5C,EACJL,KAAK,CAACM,aAAN,CAAoBH,aAApB,EAAmC;AAAEE,IAAAA,KAAK,EAAEA;AAAT,GAAnC,EACIL,KAAK,CAACM,aAAN,CAAoBP,iBAApB,EAAuC,IAAvC,CADJ,EAEIC,KAAK,CAACM,aAAN,CAAoBV,GAApB,EAAyB,IAAzB,CAFJ,CADI,CAAR;AAIH,CAND;;AAOA,MAAMW,aAAa,GAAG,MAAOP,KAAK,CAACM,aAAN,CAAoBJ,UAApB,EAAgC,IAAhC,EACzBF,KAAK,CAACM,aAAN,CAAoBF,SAApB,EAA+B,IAA/B,CADyB,CAA7B;;AAEA,MAAMI,IAAI,GAAGC,QAAQ,CAACH,aAAT,CAAuB,KAAvB,CAAb;AACAG,QAAQ,CAACC,IAAT,CAAcC,WAAd,CAA0BH,IAA1B;AACAP,QAAQ,CAACW,MAAT,CAAgBZ,KAAK,CAACM,aAAN,CAAoBC,aAApB,EAAmC,IAAnC,CAAhB,EAA0DC,IAA1D","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { App } from './components/App';\r\nimport { useTheme } from './state';\r\nimport { ThematicFluentProvider } from '@thematic/fluent';\r\nimport { ApplicationStyles } from '@thematic/react';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { RecoilRoot } from 'recoil';\r\nimport { ThemeProvider } from 'styled-components';\r\nimport './index.css';\r\nconst ThemedApp = () => {\r\n const theme = useTheme();\r\n return (React.createElement(ThematicFluentProvider, { theme: theme },\r\n React.createElement(ThemeProvider, { theme: theme },\r\n React.createElement(ApplicationStyles, null),\r\n React.createElement(App, null))));\r\n};\r\nconst ConfiguredApp = () => (React.createElement(RecoilRoot, null,\r\n React.createElement(ThemedApp, null)));\r\nconst root = document.createElement('div');\r\ndocument.body.appendChild(root);\r\nReactDOM.render(React.createElement(ConfiguredApp, null), root);\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b1f38c5f10ef422368b69e1d620a2afe.json b/node_modules/.cache/cache-loader/b1f38c5f10ef422368b69e1d620a2afe.json deleted file mode 100644 index 8a6bd04..0000000 --- a/node_modules/.cache/cache-loader/b1f38c5f10ef422368b69e1d620a2afe.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\layout.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\layout.ts","mtime":1624559748093},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgZGVzYyB9IGZyb20gJ2FycXVlcm8nOyAvLyBUT0RPOiB3ZSBtYXkgd2FudCB0byBwcm92aWRlIGZhbGxiYWNrIGNoZWNrcyBmb3IKLy8gcG9zaXRpb24gY29sdW1ucywgaW4gdGhlIGNhc2UgdGhhdCBhcmJpdHJhcnkgbm9uLWxheW91dCBkYXRhIHdhcwovLyBsb2FkZWQgYnkgdGhlIHVzZXIKCmZ1bmN0aW9uIGdldHRlcnModGFibGUpIHsKICByZXR1cm4gewogICAgaWQ6IHRhYmxlLmdldHRlcignbm9kZS5pZCcpLAogICAgeDogdGFibGUuZ2V0dGVyKCdub2RlLngnKSwKICAgIHk6IHRhYmxlLmdldHRlcignbm9kZS55JykKICB9Owp9CgpleHBvcnQgZnVuY3Rpb24gZGVyaXZlTGF5b3V0UG9zaXRpb25zKHRhYmxlKSB7CiAgY29uc3QgcG9zaXRpb25zID0ge307CgogIGlmICh0YWJsZS5udW1Sb3dzKCkgPT09IDApIHsKICAgIHJldHVybiBwb3NpdGlvbnM7CiAgfQoKICBjb25zdCB7CiAgICBpZCwKICAgIHgsCiAgICB5CiAgfSA9IGdldHRlcnModGFibGUpOwogIHRhYmxlLnNjYW4oaWR4ID0+IHsKICAgIHBvc2l0aW9uc1tpZChpZHgpXSA9IHsKICAgICAgeDogeChpZHgpLAogICAgICB5OiB5KGlkeCkKICAgIH07CiAgfSk7CiAgcmV0dXJuIHBvc2l0aW9uczsKfQpleHBvcnQgZnVuY3Rpb24gZGVyaXZlU21hbGxNdWx0aXBsZVBvc2l0aW9ucyh0YWJsZSkgewogIGNvbnN0IHBvc2l0aW9ucyA9IHt9OwoKICBpZiAodGFibGUubnVtUm93cygpID09PSAwKSB7CiAgICByZXR1cm4gcG9zaXRpb25zOwogIH0KCiAgY29uc3QgewogICAgaWQsCiAgICB4LAogICAgeQogIH0gPSBnZXR0ZXJzKHRhYmxlKTsKIC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iZXIgb2YgdG90YWwgZ3JpZCBjZWxscw0KICogQHBhcmFtIHdpZHRoIHdpZHRoIGluIHBpeGVscyBvZiB0aGUgb3V0cHV0IGdyaWQNCiAqLwoKZnVuY3Rpb24gZ3JpZChjb3VudCwgY29sdW1uQ291bnQgPSA4KSB7CiAgaWYgKGNvdW50IDw9IDEpIHsKICAgIHJldHVybiAoY2VsbCwgeCwgeSkgPT4gKHsKICAgICAgeCwKICAgICAgeQogICAgfSk7CiAgfQoKICBjb25zdCBwcm9wb3J0aW9uID0gMSAvIGNvbHVtbkNvdW50OwogIGNvbnN0IGNvbHMgPSBNYXRoLmNlaWwoMSAvIHByb3BvcnRpb24pOwogIGNvbnN0IHJvd3MgPSBNYXRoLmNlaWwoY291bnQgLyBjb2xzKTsKICByZXR1cm4gKGNlbGwsIHgsIHkpID0+IHsKICAgIGNvbnN0IHJvdyA9IE1hdGguZmxvb3IoY2VsbCAvIGNvbHMpOwogICAgY29uc3QgY29sID0gY2VsbCAtIHJvdyAqIGNvbHM7CiAgICBjb25zdCBiYXNlWCA9IDEgLyBjb2xzICogY29sOwogICAgY29uc3QgYmFzZVkgPSAxIC8gcm93cyAqIHJvdzsKICAgIHJldHVybiB7CiAgICAgIHg6IHggKiBwcm9wb3J0aW9uICsgYmFzZVgsCiAgICAgIHk6IHkgKiBwcm9wb3J0aW9uICsgKDEgLSBiYXNlWSAtIDEgLyByb3dzKQogICAgfTsKICB9Owp9"},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/layout.ts"],"names":["desc","getters","table","id","getter","x","y","deriveLayoutPositions","positions","numRows","scan","idx","deriveSmallMultiplePositions","grouped","groupby","partitions","layout","grid","length","cell","count","orderby","indices","forEach","index","columnCount","proportion","cols","Math","ceil","rows","row","floor","col","baseX","baseY"],"mappings":"AAAA,SAASA,IAAT,QAAqB,SAArB,C,CACA;AACA;AACA;;AACA,SAASC,OAAT,CAAiBC,KAAjB,EAAwB;AACpB,SAAO;AACHC,IAAAA,EAAE,EAA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CAAC,EAAEA,CAAC,GAAGoB,UAAJ,IAAkB,IAAIS,KAAJ,GAAY,IAAIL,IAAlC;AAFA,KAAP;AAIH,GATD;AAUH","sourcesContent":["import { desc } from 'arquero';\r\n// TODO: we may want to provide fallback checks for\r\n// position columns, in the case that arbitrary non-layout data was\r\n// loaded by the user\r\nfunction getters(table) {\r\n return {\r\n id: table.getter('node.id'),\r\n x: table.getter('node.x'),\r\n y: table.getter('node.y'),\r\n };\r\n}\r\nexport function deriveLayoutPositions(table) {\r\n const positions = {};\r\n if (table.numRows() === 0) {\r\n return positions;\r\n }\r\n const { id, x, y } = getters(table);\r\n table.scan((idx) => {\r\n positions[id(idx)] = {\r\n x: x(idx),\r\n y: y(idx),\r\n };\r\n });\r\n return positions;\r\n}\r\nexport function deriveSmallMultiplePositions(table) {\r\n const positions = {};\r\n if (table.numRows() === 0) {\r\n return positions;\r\n }\r\n const { id, x, y } = getters(table);\r\n const grouped = table.groupby('community.id');\r\n const partitions = grouped.partitions();\r\n const layout = grid(partitions.length);\r\n let cell = 0;\r\n grouped\r\n .count()\r\n .orderby(desc('count'))\r\n .scan((idx) => {\r\n const indices = partitions[idx];\r\n indices.forEach((index) => {\r\n positions[id(index)] = layout(cell, x(index), y(index));\r\n });\r\n cell++;\r\n }, true);\r\n return positions;\r\n}\r\n/**\r\n * Grid generator that assigns x/y positions based on the grid cell index.\r\n * This figured out how to divide the available space into cells,\r\n * where each cell has a size allocated (derived from the total and width).\r\n * It returns a function that computes the x/y position based on the original\r\n * layout x/y + the grid cell index.\r\n * I.e., it performs a translation from full-space x/y to cell x/y.\r\n * @param count number of total grid cells\r\n * @param width width in pixels of the output grid\r\n */\r\nfunction grid(count, columnCount = 8) {\r\n if (count <= 1) {\r\n return (cell, x, y) => ({\r\n x,\r\n y,\r\n });\r\n }\r\n const proportion = 1 / columnCount;\r\n const cols = Math.ceil(1 / proportion);\r\n const rows = Math.ceil(count / cols);\r\n return (cell, x, y) => {\r\n const row = Math.floor(cell / cols);\r\n const col = cell - row * cols;\r\n const baseX = (1 / cols) * col;\r\n const baseY = (1 / rows) * row;\r\n return {\r\n x: x * proportion + baseX,\r\n y: y * proportion + (1 - baseY - 1 / rows),\r\n };\r\n };\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b219f4bf7cb708997f1562b593a0f879.json b/node_modules/.cache/cache-loader/b219f4bf7cb708997f1562b593a0f879.json deleted file mode 100644 index f5b700a..0000000 --- a/node_modules/.cache/cache-loader/b219f4bf7cb708997f1562b593a0f879.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\NumericRangeText.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\NumericRangeText.tsx","mtime":1620403249459},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBmb3JtYXQgfSBmcm9tICdkMy1mb3JtYXQnOwppbXBvcnQgUmVhY3QsIHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmV4cG9ydCBjb25zdCBOdW1lcmljUmFuZ2VUZXh0ID0gKHsKICBpbmNsdWRlTWlkcG9pbnQgPSBmYWxzZSwKICBkb21haW4gPSBbMCwgMV0sCiAgcHJlY2lzaW9uID0gMwp9KSA9PiB7CiAgY29uc3QgcmFuZ2UgPSB1c2VNZW1vKCgpID0+IHsKICAgIGNvbnN0IFttaW4sIG1heF0gPSBkb21haW47CiAgICBjb25zdCBtaWQgPSAobWF4IC0gbWluKSAvIDI7CiAgICBjb25zdCBmbXQgPSBmb3JtYXQoYC4ke3ByZWNpc2lvbn1mYCk7CiAgICBjb25zdCB2YWx1ZXMgPSBtaWQgPT09IDAgPyBbbWF4XSA6IFttaW4sIG1pZCwgbWF4XTsKICAgIHJldHVybiB2YWx1ZXMubWFwKHYgPT4gZm10KHYpKTsKICB9LCBbZG9tYWluLCBwcmVjaXNpb25dKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTGVmdCwgbnVsbCwgcmFuZ2VbMF0pLCBpbmNsdWRlTWlkcG9pbnQgJiYgUmVhY3QuY3JlYXRlRWxlbWVudChDZW50ZXIsIG51bGwsIHJhbmdlWzFdKSwgUmVhY3QuY3JlYXRlRWxlbWVudChSaWdodCwgbnVsbCwgcmFuZ2VbMl0pKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCWZvbnQtc2l6ZTogMC43ZW07CglkaXNwbGF5OiBmbGV4OwoJanVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwpgOwpjb25zdCBMZWZ0ID0gc3R5bGVkLmRpdmBgOwpjb25zdCBDZW50ZXIgPSBzdHlsZWQuZGl2YAoJdGV4dC1hbGlnbjogY2VudGVyOwpgOwpjb25zdCBSaWdodCA9IHN0eWxlZC5kaXZgCgl0ZXh0LWFsaWduOiByaWdodDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/NumericRangeText.tsx"],"names":["format","React","useMemo","styled","NumericRangeText","includeMidpoint","domain","precision","range","min","max","mid","fmt","values","map","v","createElement","Container","Left","Center","Right","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,MAAT,QAAuB,WAAvB;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,gBAAgB,GAAG,CAAC;AAAEC,EAAAA,eAAe,GAAG,KAApB;AAA2BC,EAAAA,MAAM,GAAG,CAAC,CAAD,EAAI,CAAJ,CAApC;AAA4CC,EAAAA,SAAS,GAAG;AAAxD,CAAD,KAAkE;AAC9F,QAAMC,KAAK,GAAGN,OAAO,CAAC,MAAM;AACxB,UAAM,CAACO,GAAD,EAAMC,GAAN,IAAaJ,MAAnB;AACA,UAAMK,GAAG,GAAG,CAACD,GAAG,GAAGD,GAAP,IAAc,CAA1B;AACA,UAAMG,GAAG,GAAGZ,MAAM,CAAE,IAAGO,SAAU,GAAf,CAAlB;AACA,UAAMM,MAAM,GAAGF,GAAG,KAAK,CAAR,GAAY,CAACD,GAAD,CAAZ,GAAoB,CAACD,GAAD,EAAME,GAAN,EAAWD,GAAX,CAAnC;AACA,WAAOG,MAAM,CAACC,GAAP,CAAWC,CAAC,IAAIH,GAAG,CAACG,CAAD,CAAnB,CAAP;AACH,GANoB,EAMlB,CAACT,MAAD,EAASC,SAAT,CANkB,CAArB;AAOA,SAAQN,KAAK,CAACe,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJhB,KAAK,CAACe,aAAN,CAAoBE,IAApB,EAA0B,IAA1B,EAAgCV,KAAK,CAAC,CAAD,CAArC,CADI,EAEJH,eAAe,IAAIJ,KAAK,CAACe,aAAN,CAAoBG,MAApB,EAA4B,IAA5B,EAAkCX,KAAK,CAAC,CAAD,CAAvC,CAFf,EAGJP,KAAK,CAACe,aAAN,CAAoBI,KAApB,EAA2B,IAA3B,EAAiCZ,KAAK,CAAC,CAAD,CAAtC,CAHI,CAAR;AAIH,CAZM;AAaP,MAAMS,SAAS,GAAGd,MAAM,CAACkB,GAAK;AAC9B;AACA;AACA;AACA,CAJA;AAKA,MAAMH,IAAI,GAAGf,MAAM,CAACkB,GAAK,EAAzB;AACA,MAAMF,MAAM,GAAGhB,MAAM,CAACkB,GAAK;AAC3B;AACA,CAFA;AAGA,MAAMD,KAAK,GAAGjB,MAAM,CAACkB,GAAK;AAC1B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { format } from 'd3-format';\r\nimport React, { useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const NumericRangeText = ({ includeMidpoint = false, domain = [0, 1], precision = 3, }) => {\r\n const range = useMemo(() => {\r\n const [min, max] = domain;\r\n const mid = (max - min) / 2;\r\n const fmt = format(`.${precision}f`);\r\n const values = mid === 0 ? [max] : [min, mid, max];\r\n return values.map(v => fmt(v));\r\n }, [domain, precision]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Left, null, range[0]),\r\n includeMidpoint && React.createElement(Center, null, range[1]),\r\n React.createElement(Right, null, range[2])));\r\n};\r\nconst Container = styled.div `\r\n\tfont-size: 0.7em;\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n`;\r\nconst Left = styled.div ``;\r\nconst Center = styled.div `\r\n\ttext-align: center;\r\n`;\r\nconst Right = styled.div `\r\n\ttext-align: right;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b278ed4bea79fd5d0ac144af6c0bc941.json b/node_modules/.cache/cache-loader/b278ed4bea79fd5d0ac144af6c0bc941.json deleted file mode 100644 index 9b3b0df..0000000 --- a/node_modules/.cache/cache-loader/b278ed4bea79fd5d0ac144af6c0bc941.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\Dashes.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\Dashes.tsx","mtime":1631029334829},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlTGVnZW5kQ29sb3JTY2FsZSwgdXNlTGVnZW5kTnVtZXJpY1NjYWxlIH0gZnJvbSAnLi9ob29rcyc7CmltcG9ydCB7IHVzZVRoZW1hdGljIH0gZnJvbSAnQHRoZW1hdGljL3JlYWN0JzsKaW1wb3J0IHsgc2NhbGVMaW5lYXIgfSBmcm9tICdkMy1zY2FsZSc7CmltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgRGFzaGVzID0gKHsKICBjb2xvckVuY29kaW5nLAogIHNpemVFbmNvZGluZywKICBvcGFjaXR5RW5jb2RpbmcsCiAgd2lkdGggPSAyMDAsCiAgaGVpZ2h0ID0gMTAsCiAgbWF4SXRlbXMgPSAxMCwKICBtYXJnaW4gPSA0Cn0pID0+IHsKICBjb25zdCB0aGVtZSA9IHVzZVRoZW1hdGljKCk7CiAgY29uc3QgY29sb3JTY2FsZSA9IHVzZUxlZ2VuZENvbG9yU2NhbGUoY29sb3JFbmNvZGluZywgbWF4SXRlbXMsIHRoZW1lLmFwcGxpY2F0aW9uKCkuaGlnaENvbnRyYXN0KCkuaGV4KCkpOwogIGNvbnN0IHNpemVTY2FsZSA9IHVzZUxlZ2VuZE51bWVyaWNTY2FsZShzaXplRW5jb2RpbmcsIG1heEl0ZW1zLCA0KTsKICBjb25zdCBvcGFjaXR5U2NhbGUgPSB1c2VMZWdlbmROdW1lcmljU2NhbGUob3BhY2l0eUVuY29kaW5nLCBtYXhJdGVtcywgMC45KTsKICBjb25zdCBkYXNoZXMgPSB1c2VNZW1vKCgpID0+IHsKICAgIC8vIGlubmVyIHdpZHRoIGF2YWlsYmxlIHRvIHRoZSBkYXNoZXMKICAgIGNvbnN0IGlubmVyID0gd2lkdGggLSBtYXJnaW4gKiAyOyAvLyBhbGxvd2F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XMsIGNvbG9yU2NhbGUsIHNpemVTY2FsZSwgb3BhY2l0eVNjYWxlXSk7CgogIGlmIChoZWlnaHQgPD0gMSkgewogICAgcmV0dXJuIG51bGw7CiAgfQoKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudCgic3ZnIiwgewogICAgd2lkdGg6IHdpZHRoLAogICAgaGVpZ2h0OiBoZWlnaHQKICB9LCBSZWFjdC5jcmVhdGVFbGVtZW50KCJnIiwgbnVsbCwgZGFzaGVzKSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/Dashes.tsx"],"names":["useLegendColorScale","useLegendNumericScale","useThematic","scaleLinear","React","useMemo","Dashes","colorEncoding","sizeEncoding","opacityEncoding","width","height","maxItems","margin","theme","colorScale","application","highContrast","hex","sizeScale","opacityScale","dashes","inner","dw","half","x","domain","range","Array","fill","map","_","i","color","size","opacity","createElement","key","x1","x2","y1","y2","stroke","strokeWidth","strokeOpacity"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,qBAA9B,QAA2D,SAA3D;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,QAA4B,UAA5B;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAO,MAAMC,MAAM,GAAG,CAAC;AAAEC,EAAAA,aAAF;AAAiBC,EAAAA,YAAjB;AAA+BC,EAAAA,eAA/B;AAAgDC,EAAAA,KAAK,GAAG,GAAxD;AAA6DC,EAAAA,MAAM,GAAG,EAAtE;AAA0EC,EAAAA,QAAQ,GAAG,EAArF;AAAyFC,EAAAA,MAAM,GAAG;AAAlG,CAAD,KAA4G;AAC9H,QAAMC,KAAK,GAAGZ,WAAW,EAAzB;AACA,QAAMa,UAAU,GAAGf,mBAAmB,CAACO,aAAD,EAAgBK,QAAhB,EAA0BE,KAAK,CAACE,WAAN,GAAoBC,YAApB,GAAmCC,GAAnC,EAA1B,CAAtC;AACA,QAAMC,SAAS,GAAGlB,qBAA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9B,MAAM,GAAG,CAAjH;AAAoH+B,QAAAA,MAAM,EAAE3B,UAAU,CAACiB,CAAD,CAAtI;AAA2IW,QAAAA,WAAW,EAAET,IAAxJ;AAA8JU,QAAAA,aAAa,EAAET;AAA7K,OAA5B,CAAR;AACH,KALM,CAAP;AAMH,GAjBqB,EAiBnB,CAACxB,MAAD,EAASD,KAAT,EAAgBG,MAAhB,EAAwBD,QAAxB,EAAkCG,UAAlC,EAA8CI,SAA9C,EAAyDC,YAAzD,CAjBmB,CAAtB;;AAkBA,MAAIT,MAAM,IAAI,CAAd,EAAiB;AACb,WAAO,IAAP;AACH;;AACD,SAAQP,KAAK,CAACgC,aAAN,CAAoB,KAApB,EAA2B;AAAE1B,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,MAAM,EAAEA;AAAxB,GAA3B,EACJP,KAAK,CAACgC,aAAN,CAAoB,GAApB,EAAyB,IAAzB,EAA+Bf,MAA/B,CADI,CAAR;AAEH,CA5BM","sourcesContent":["import { useLegendColorScale, useLegendNumericScale } from './hooks';\r\nimport { useThematic } from '@thematic/react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport React, { useMemo } from 'react';\r\nexport const Dashes = ({ colorEncoding, sizeEncoding, opacityEncoding, width = 200, height = 10, maxItems = 10, margin = 4, }) => {\r\n const theme = useThematic();\r\n const colorScale = useLegendColorScale(colorEncoding, maxItems, theme.application().highContrast().hex());\r\n const sizeScale = useLegendNumericScale(sizeEncoding, maxItems, 4);\r\n const opacityScale = useLegendNumericScale(opacityEncoding, maxItems, 0.9);\r\n const dashes = useMemo(() => {\r\n // inner width availble to the dashes\r\n const inner = width - margin * 2;\r\n // allowable dash size given width/margins\r\n const dw = (inner - maxItems * margin) / maxItems;\r\n const half = dw / 2;\r\n // this scale should return the midpoint of each dash\r\n // note the =/- half in the actual x1/x2 props\r\n const x = scaleLinear()\r\n .domain([0, maxItems - 1])\r\n .range([margin + half, width - margin - half]);\r\n return new Array(maxItems).fill(1).map((_, i) => {\r\n const color = colorScale(i);\r\n const size = sizeScale(i);\r\n const opacity = opacityScale(i);\r\n return (React.createElement(\"line\", { key: `dashes-${color}-${size}-${opacity}-${i}`, x1: x(i) - half, x2: x(i) + half, y1: height / 2, y2: height / 2, stroke: colorScale(i), strokeWidth: size, strokeOpacity: opacity }));\r\n });\r\n }, [height, width, margin, maxItems, colorScale, sizeScale, opacityScale]);\r\n if (height <= 1) {\r\n return null;\r\n }\r\n return (React.createElement(\"svg\", { width: width, height: height },\r\n React.createElement(\"g\", null, dashes)));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b404332713f486f0fde5026f74d8e5a6.json b/node_modules/.cache/cache-loader/b404332713f486f0fde5026f74d8e5a6.json deleted file mode 100644 index f7ecd30..0000000 --- a/node_modules/.cache/cache-loader/b404332713f486f0fde5026f74d8e5a6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\nodeColor.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\nodeColor.ts","mtime":1631029334911},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmluZVByb3Blcn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bmNvZGluZ1N0YXRlKGVuY29kaW5nLmZpZWxkIHx8ICcnKSk7CiAgY29uc3QgZmllbGRTZXR0ZXIgPSB1c2VTZXRSZWNvaWxTdGF0ZShmaWVsZFN0YXRlKTsKICByZXR1cm4gdXNlQ2FsbGJhY2sodXBkYXRlID0+IHsKICAgIGlmICh1cGRhdGUuZmllbGQpIHsKICAgICAgZmllbGRTZXR0ZXIodXBkYXRlLmZpZWxkKTsKICAgIH0gZWxzZSB7CiAgICAgIHNldHRlcihfb2JqZWN0U3ByZWFkKF9vYmplY3RTcHJlYWQoe30sIGVuY29kaW5nKSwgdXBkYXRlKSk7CiAgICB9CiAgfSwgW2VuY29kaW5nLCBzZXR0ZXIsIGZpZWxkU2V0dGVyXSk7Cn0KCmZ1bmN0aW9uIGdldERlZmF1bHROb2RlQ29sb3JPcHRpb25zKGZpZWxkLCBzdGF0cywgdGhlbWUpIHsKICByZXR1cm4gZ2V0RGVmYXVsdENvbG9yT3B0aW9ucyhmaWVsZCwgc3RhdHMsIHsKICAgIHZhbHVlOiB0aGVtZS5ub2RlKCkuZmlsbCgpLmhleCgpLAogICAgdGhlbWF0aWNTY2hlbWVQYXRoOiAnbm9taW5hbFswXScKICB9KTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/nodeColor.ts"],"names":["selectedCommunityState","themeState","communityNodesTableState","getDefaultColorOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","pid","table","stats","theme","getDefaultNodeColorOptions","useNodeColorEncoding","useUpdateNodeColorEncoding","encoding","setter","fieldSetter","update","value","node","fill","hex","thematicSchemePath"],"mappings":";;;;;;AAAA,SAASA,sBAAT,QAAuC,gBAAvC;AACA,SAASC,UAAT,QAA2B,aAA3B;AACA,SAASC,wBAAT,QAAyC,WAAzC;AACA,SAASC,sBAAT,QAAuC,UAAvC;AACA,SAASC,WAAT,QAA4B,OAA5B;AACA,SAASC,IAAT,EAA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;AACdU,MAAAA,WAAW,CAACC,MAAM,CAACX,KAAR,CAAX;AACH,KAFD,MAGK;AACDS,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,0BAAT,CAAoCL,KAApC,EAA2CG,KAA3C,EAAkDC,KAAlD,EAAyD;AACrD,SAAOjB,sBAAsB,CAACa,KAAD,EAAQG,KAAR,EAAe;AACxCS,IAAAA,KAAK,EAAER,KAAK,CAACS,IAAN,GAAaC,IAAb,GAAoBC,GAApB,EADiC;AAExCC,IAAAA,kBAAkB,EAAE;AAFoB,GAAf,CAA7B;AAIH","sourcesContent":["import { selectedCommunityState } from '../communities';\r\nimport { themeState } from '../settings';\r\nimport { communityNodesTableState } from '../tables';\r\nimport { getDefaultColorOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nconst fieldState = atom({\r\n key: 'node-color-encoding-field',\r\n default: 'community.id',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'node-color-encoding-state',\r\n default: selectorFamily({\r\n key: 'node-color-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n const pid = get(selectedCommunityState);\r\n const table = get(communityNodesTableState(pid));\r\n const stats = getColumnStats(table, field);\r\n const theme = get(themeState);\r\n return getDefaultNodeColorOptions(field, stats, theme);\r\n },\r\n }),\r\n});\r\nexport function useNodeColorEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateNodeColorEncoding() {\r\n const encoding = useNodeColorEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultNodeColorOptions(field, stats, theme) {\r\n return getDefaultColorOptions(field, stats, {\r\n value: theme.node().fill().hex(),\r\n thematicSchemePath: 'nominal[0]',\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b54de8838449e8ae038e9f416a8e247e.json b/node_modules/.cache/cache-loader/b54de8838449e8ae038e9f416a8e247e.json deleted file mode 100644 index 4600ff5..0000000 --- a/node_modules/.cache/cache-loader/b54de8838449e8ae038e9f416a8e247e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeOpacityControls\\NodeOpacityControls.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeOpacityControls\\NodeOpacityControls.tsx","mtime":1631029330213},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlQXJxdWVyb1Zpc2libGVOb2Rlc1RhYmxlIH0gZnJvbSAnfi9hcnF1ZXJvJzsKaW1wb3J0IHsgTnVtZXJpY1NlbGVjdG9yIH0gZnJvbSAnfi9jb250cm9scy9OdW1lcmljU2VsZWN0b3InOwppbXBvcnQgeyB1c2VOb2RlT3BhY2l0eUVuY29kaW5nLCB1c2VVcGRhdGVOb2RlT3BhY2l0eUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBOb2RlT3BhY2l0eUNvbnRyb2xzID0gKCkgPT4gewogIGNvbnN0IGVuY29kaW5nID0gdXNlTm9kZU9wYWNpdHlFbmNvZGluZygpOwogIGNvbnN0IHVwZGF0ZUVuY29kaW5nID0gdXNlVXBkYXRlTm9kZU9wYWNpdHlFbmNvZGluZygpOwogIGNvbnN0IHRhYmxlID0gdXNlQXJxdWVyb1Zpc2libGVOb2Rlc1RhYmxlKCk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGFpbmVyLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KE51bWVyaWNTZWxlY3RvciwgewogICAgbGFiZWw6ICJub2RlIG9wYWNpdHkiLAogICAgdGFibGU6IHRhYmxlLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb25DaGFuZ2U6IHVwZGF0ZUVuY29kaW5nLAogICAgbWluOiAwLAogICAgbWF4OiAxLAogICAgc3RlcDogMC4xCiAgfSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeOpacityControls/NodeOpacityControls.tsx"],"names":["React","styled","useArqueroVisibleNodesTable","NumericSelector","useNodeOpacityEncoding","useUpdateNodeOpacityEncoding","NodeOpacityControls","encoding","updateEncoding","table","createElement","Container","label","onChange","min","max","step","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,2BAAT,QAA4C,WAA5C;AACA,SAASC,eAAT,QAAgC,4BAAhC;AACA,SAASC,sBAAT,EAAiCC,4BAAjC,QAAqE,SAArE;AACA,OAAO,MAAMC,mBAAmB,GAAG,MAAM;AACrC,QAAMC,QAAQ,GAAGH,sBAAsB,EAAvC;AACA,QAAMI,cAAc,GAAGH,4BAA4B,EAAnD;AACA,QAAMI,KAAK,GAAGP,2BAA2B,EAAzC;AACA,SAAQF,KAAK,CAACU,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJX,KAAK,CAACU,aAAN,CAAoBP,eAApB,EAAqC;AAAES,IAAAA,KAAK,EAAE,cAAT;AAAyBH,IAAAA,KAAK,EAAEA,KAAhC;AAAuCF,IAAAA,QAAQ,EAAEA,QAAjD;AAA2DM,IAAAA,QAAQ,EAAEL,cAArE;AAAqFM,IAAAA,GAAG,EAAE,CAA1F;AAA6FC,IAAAA,GAAG,EAAE,CAAlG;AAAqGC,IAAAA,IAAI,EAAE;AAA3G,GAArC,CADI,CAAR;AAEH,CANM;AAOP,MAAML,SAAS,GAAGV,MAAM,CAACgB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroVisibleNodesTable } from '~/arquero';\r\nimport { NumericSelector } from '~/controls/NumericSelector';\r\nimport { useNodeOpacityEncoding, useUpdateNodeOpacityEncoding } from '~/state';\r\nexport const NodeOpacityControls = () => {\r\n const encoding = useNodeOpacityEncoding();\r\n const updateEncoding = useUpdateNodeOpacityEncoding();\r\n const table = useArqueroVisibleNodesTable();\r\n return (React.createElement(Container, null,\r\n React.createElement(NumericSelector, { label: \"node opacity\", table: table, encoding: encoding, onChange: updateEncoding, min: 0, max: 1, step: 0.1 })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b571823cc95f73ba8bdb2eea16a0db81.json b/node_modules/.cache/cache-loader/b571823cc95f73ba8bdb2eea16a0db81.json deleted file mode 100644 index 2562844..0000000 --- a/node_modules/.cache/cache-loader/b571823cc95f73ba8bdb2eea16a0db81.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalButtons.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalButtons.tsx","mtime":1631029334686},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBFeHBvcnQgfSBmcm9tICcuLi8uLi8uLi9FeHBvcnQnOwppbXBvcnQgeyBIZWxwIH0gZnJvbSAnLi4vLi4vLi4vSGVscCc7CmltcG9ydCB7IE1vZGFsQnV0dG9uIH0gZnJvbSAnLi9Nb2RhbEJ1dHRvbic7CmltcG9ydCB7IE1vZGFsQ29udGFpbmVyIH0gZnJvbSAnLi9Nb2RhbENvbnRhaW5lcic7CmltcG9ydCB7IEZpbGVEcm9wUGFuZWwgfSBmcm9tICcuL3BhbmVscy9GaWxlRHJvcFBhbmVsJzsKaW1wb3J0IHsgU2V0dGluZ3NDb250YWluZXIgfSBmcm9tICcuL3BhbmVscy9TZXR0aW5nc0NvbnRhaW5lcic7CmltcG9ydCBSZWFjdCwgeyBtZW1vLCB1c2VTdGF0ZSwgdXNlQ2FsbGJhY2ssIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpjb25zdCBidXR0b25NYXAgPSBbewogIGljb25OYW1lOiAnQ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bS50ZXh0LAogICAgb25DbGljazogaGFuZGxlSWNvbkNsaWNrCiAgfSkpLCBtb2RhbCk7Cn0pOwpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/ModalButtons.tsx"],"names":["Export","Help","ModalButton","ModalContainer","FileDropPanel","SettingsContainer","React","memo","useState","useCallback","useMemo","styled","buttonMap","iconName","text","content","createElement","ModalButtons","isModalOpen","setModalState","selected","setSelected","undefined","handleIconClick","title","hideModal","modal","selectedButton","find","item","titleId","Fragment","Container","map","i","key","onClick","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,MAAT,QAAuB,iBAAvB;AACA,SAASC,IAAT,QAAqB,eAArB;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,cAAT,QAA+B,kBAA/B;AACA,SAASC,aAAT,QAA8B,wBAA9B;AACA,SAASC,iBAAT,QAAkC,4BAAlC;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,QAAtB,EAAgCC,WAAhC,EAA6CC,OAA7C,QAA4D,OAA5D;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,SAAS,GAAG,CACd;AACIC,EAAAA,QAAQ,EAAE,YADd;AAEIC,EAAAA,IAAI,EAAE,mBAFV;AAGIC,EAAAA,OAAO,EAAET,KAAK,CAACU,aAAN,CAAoBZ,aAApB,EAAmC,IAAnC;AAHb,CADc,EAMd;AAAES,EAAAA,QAAQ,EAAE,gBAAZ;AAA8BC,EAAAA,IAAI,EAAE,YAApC;AAAkDC,EAAAA,OAAO,EAAET,KAAK,CAACU,aAAN,CAAoBhB,MAApB,EAA4B,IAA5B;AAA3D,CANc,EAOd;AAAEa,EAAAA,QAAQ,EAAE,UAAZ;AAAwBC,EAAAA,IAAI,EAAE,UAA9B;AAA0CC,EAAAA,OAAO,EAAET,KAAK,CAACU,aAAN,CAAoBX,iBAApB,EAAuC,IAAvC;AAAnD,C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,WAAQT,KAAK,CAACU,aAAN,CAAoBb,cAApB,EAAoC;AAAE2B,MAAAA,OAAO,EAAE,EAAX;AAAeZ,MAAAA,WAAW,EAAEA,WAA5B;AAAyCM,MAAAA,KAAK,EAAE,EAAhD;AAAoDC,MAAAA,SAAS,EAAEA,SAA/D;AAA0EV,MAAAA,OAAO,EAAET,KAAK,CAACU,aAAN,CAAoBV,KAAK,CAACyB,QAA1B,EAAoC,IAApC;AAAnF,KAApC,CAAR;AACH,GANoB,EAMlB,CAACb,WAAD,EAAcO,SAAd,EAAyBL,QAAzB,CANkB,CAArB;AAOA,SAAQd,KAAK,CAACU,aAAN,CAAoBgB,SAApB,EAA+B,IAA/B,EACJpB,SAAS,CAACqB,GAAV,CAAc,CAACJ,IAAD,EAAOK,CAAP,KAAc5B,KAAK,CAACU,aAAN,CAAoBd,WAApB,EAAiC;AAAEiC,IAAAA,GAAG,EAAG,eAAcD,CAAE,EAAxB;AAA2BrB,IAAAA,QAAQ,EAAEgB,IAAI,CAAChB,QAA1C;AAAoDC,IAAAA,IAAI,EAAEe,IAAI,CAACf,IAA/D;AAAqEsB,IAAAA,OAAO,EAAEb;AAA9E,GAAjC,CAA5B,CADI,EAEJG,KAFI,CAAR;AAGH,CArB+B,CAAzB;AAsBP,MAAMM,SAAS,GAAGrB,MAAM,CAAC0B,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Export } from '../../../Export';\r\nimport { Help } from '../../../Help';\r\nimport { ModalButton } from './ModalButton';\r\nimport { ModalContainer } from './ModalContainer';\r\nimport { FileDropPanel } from './panels/FileDropPanel';\r\nimport { SettingsContainer } from './panels/SettingsContainer';\r\nimport React, { memo, useState, useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nconst buttonMap = [\r\n {\r\n iconName: 'BulkUpload',\r\n text: 'Quick import data',\r\n content: React.createElement(FileDropPanel, null),\r\n },\r\n { iconName: 'PictureLibrary', text: 'Save image', content: React.createElement(Export, null) },\r\n { iconName: 'Settings', text: 'Settings', content: React.createElement(SettingsContainer, null) },\r\n { iconName: 'Help', text: 'Help', content: React.createElement(Help, null) },\r\n];\r\nexport const ModalButtons = memo(function ModalButtons() {\r\n const [isModalOpen, setModalState] = useState(false);\r\n const [selected, setSelected] = useState(undefined);\r\n const handleIconClick = useCallback((title) => {\r\n setSelected(title);\r\n setModalState(!isModalOpen);\r\n }, [setModalState, isModalOpen]);\r\n const hideModal = useCallback(() => {\r\n setSelected(undefined);\r\n setModalState(false);\r\n }, [setModalState]);\r\n const modal = useMemo(() => {\r\n const selectedButton = buttonMap.find(item => item.text === selected);\r\n if (selectedButton && selected) {\r\n return (React.createElement(ModalContainer, { titleId: selectedButton.text, isModalOpen: isModalOpen, title: selectedButton.text, hideModal: hideModal, content: selectedButton.content }));\r\n }\r\n return (React.createElement(ModalContainer, { titleId: '', isModalOpen: isModalOpen, title: '', hideModal: hideModal, content: React.createElement(React.Fragment, null) }));\r\n }, [isModalOpen, hideModal, selected]);\r\n return (React.createElement(Container, null,\r\n buttonMap.map((item, i) => (React.createElement(ModalButton, { key: `modal-button${i}`, iconName: item.iconName, text: item.text, onClick: handleIconClick }))),\r\n modal));\r\n});\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b69ae5fdb2a9cf4d981545dd3e5feec3.json b/node_modules/.cache/cache-loader/b69ae5fdb2a9cf4d981545dd3e5feec3.json deleted file mode 100644 index ff2a326..0000000 --- a/node_modules/.cache/cache-loader/b69ae5fdb2a9cf4d981545dd3e5feec3.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\FileDrop\\FileDrop.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\FileDrop\\FileDrop.tsx","mtime":1631029334825},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBzdWJIZWFkZXJMYWJlbCB9IGZyb20gJy4uLy4uL3N0eWxlcyc7CmltcG9ydCB7IHVzZURyb3AgfSBmcm9tICcuL2hvb2tzJzsKaW1wb3J0IHsgVGV4dCB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7CmltcG9ydCB7IHVzZURyb3B6b25lIH0gZnJvbSAncmVhY3QtZHJvcHpvbmUnOw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KICB9LCAiZGF0YSBmaWxlIGhlcmUiKSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogZmxleDsKCWp1c3RpZnktY29udGVudDogY2VudGVyOwoJYWxpZ24tdHRlbXM6IGNlbnRlcjsKCXRleHQtYWxpZ246IGNlbnRlcjsKCXBhZGRpbmc6IDhweDsKCXdpZHRoOiAkeyh7CiAgd2lkdGgKfSkgPT4gd2lkdGh9cHg7CgloZWlnaHQ6ICR7KHsKICBoZWlnaHQKfSkgPT4gaGVpZ2h0fXB4OwoJZm9udC1zaXplOiAxMXB4OwoJYm9yZGVyLXJhZGl1czogNHB4OwoJbWFyZ2luOiA0cHg7Cglib3JkZXI6IDFweCBkYXNoZWQKCQkkeyh7CiAgdGhlbWUsCiAgaXNEcmFnZ2luZwp9KSA9PiBpc0RyYWdnaW5nID8gdGhlbWUuYXBwbGljYXRpb24oKS5hY2NlbnQoKS5oZXgoKSA6IHRoZW1lLmFwcGxpY2F0aW9uKCkuYm9yZGVyKCkuaGV4KCl9OwpgOwpjb25zdCBUZXh0Q29udGFpbmVyID0gc3R5bGVkLmRpdmAKCWZvbnQtc2l6ZTogMTRweDsKYDsKY29uc3QgVHlwZSA9IHN0eWxlZC5kaXZgCglmb250LXdlaWdodDogYm9sZDsKCWNvbG9yOiAkeyh7CiAgdGhlbWUKfSkgPT4gdGhlbWUuYXBwbGljYXRpb24oKS5hY2NlbnQoKS5oZXgoKX07CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/FileDrop/FileDrop.tsx"],"names":["subHeaderLabel","useDrop","Text","React","useDropzone","styled","FileDrop","type","width","height","compact","onFileLoad","handleDrop","getRootProps","getInputProps","isDragActive","onDrop","createElement","Container","Object","assign","isDragging","TextContainer","variant","Type","substr","div","theme","application","accent","hex","border"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,cAA/B;AACA,SAASC,OAAT,QAAwB,SAAxB;AACA,SAASC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ArF,CADJ,CAFJ,EAII,CAACG,OAAD,IAAYP,KAAK,CAACc,aAAN,CAAoBf,IAApB,EAA0B;AAAEqB,IAAAA,OAAO,EAAEvB;AAAX,GAA1B,EAAuD,gBAAvD,CAJhB,CAFI,CAAR;AAOH,CAZM;AAaP,MAAMkB,SAAS,GAAGb,MAAM,CAACqB,GAAK;AAC9B;AACA;AACA;AACA;AACA;AACA,UAAU,CAAC;AAAElB,EAAAA;AAAF,CAAD,KAAeA,KAAM;AAC/B,WAAW,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC;AACA;AACA;AACA;AACA,IAAI,CAAC;AAAEkB,EAAAA,KAAF;AAASN,EAAAA;AAAT,CAAD,KAA2BA,UAAU,GACnCM,KAAK,CAACC,WAAN,GAAoBC,MAApB,GAA6BC,GAA7B,EADmC,GAEnCH,KAAK,CAACC,WAAN,GAAoBG,MAApB,GAA6BD,GAA7B,EAAmC;AACzC,CAfA;AAgBA,MAAMR,aAAa,GAAGjB,MAAM,CAACqB,GAAK;AAClC;AACA,CAFA;AAGA,MAAMF,IAAI,GAAGnB,MAAM,CAACqB,GAAK;AACzB;AACA,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,MAApB,GAA6BC,GAA7B,EAAmC;AAC5D,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { subHeaderLabel } from '../../styles';\r\nimport { useDrop } from './hooks';\r\nimport { Text } from '@fluentui/react';\r\nimport React from 'react';\r\nimport { useDropzone } from 'react-dropzone';\r\nimport styled from 'styled-components';\r\nexport const FileDrop = ({ type, width, height, compact, onFileLoad, }) => {\r\n const handleDrop = useDrop(onFileLoad, type);\r\n const { getRootProps, getInputProps, isDragActive } = useDropzone({\r\n onDrop: handleDrop,\r\n });\r\n return (React.createElement(Container, Object.assign({ width: width, height: height, isDragging: isDragActive }, getRootProps()),\r\n React.createElement(\"input\", Object.assign({}, getInputProps())),\r\n React.createElement(TextContainer, null,\r\n !compact && React.createElement(Text, { variant: subHeaderLabel }, \"Drop\"),\r\n React.createElement(Type, null,\r\n React.createElement(Text, { variant: subHeaderLabel }, compact ? type.substr(0, 4) : type)),\r\n !compact && React.createElement(Text, { variant: subHeaderLabel }, \"data file here\"))));\r\n};\r\nconst Container = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-ttems: center;\r\n\ttext-align: center;\r\n\tpadding: 8px;\r\n\twidth: ${({ width }) => width}px;\r\n\theight: ${({ height }) => height}px;\r\n\tfont-size: 11px;\r\n\tborder-radius: 4px;\r\n\tmargin: 4px;\r\n\tborder: 1px dashed\r\n\t\t${({ theme, isDragging }) => isDragging\r\n ? theme.application().accent().hex()\r\n : theme.application().border().hex()};\r\n`;\r\nconst TextContainer = styled.div `\r\n\tfont-size: 14px;\r\n`;\r\nconst Type = styled.div `\r\n\tfont-weight: bold;\r\n\tcolor: ${({ theme }) => theme.application().accent().hex()};\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b6b3ea3dbaecb558ecd26ceb3536f554.json b/node_modules/.cache/cache-loader/b6b3ea3dbaecb558ecd26ceb3536f554.json deleted file mode 100644 index 08209ab..0000000 --- a/node_modules/.cache/cache-loader/b6b3ea3dbaecb558ecd26ceb3536f554.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\FileDrop\\hooks\\useDrop.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\FileDrop\\hooks\\useDrop.ts","mtime":1624559748353},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JzsKZXhwb3J0IGZ1bmN0aW9uIHVzZURyb3Aob25GaWxlTG9hZCwgdHlwZSkgewogIGNvbnN0IGhhbmRsZURyb3AgPSB1c2VDYWxsYmFjayhmaWxlcyA9PiB7CiAgICBmaWxlcy5mb3JFYWNoKGZpbGUgPT4gewogICAgICBjb25zdCBuYW1lID0gZmlsZS5uYW1lOwogICAgICBjb25zdCByZWFkZXIgPSBuZXcgRmlsZVJlYWRlcigpOwoKICAgICAgcmVhZGVyLm9uYWJvcnQgPSAoKSA9PiBjb25zb2xlLmxvZygnZmlsZSByZWFkaW5nIHdhcyBhYm9ydGVkJyk7CgogICAgICByZWFkZXIub25lcnJvciA9ICgpID0+IGNvbnNvbGUubG9nKCdmaWxlIHJlYWRpbmcgaGFzIGZhaWxlZCcpOwoKICAgICAgcmVhZGVyLm9ubG9hZCA9ICgpID0+IHsKICAgICAgICBjb25zdCB0ZXh0ID0gcmVhZGVyLnJlc3VsdCA/IHJlYWRlci5yZXN1bHQudG9TdHJpbmcoKSA6ICcnOwogICAgICAgIG9uRmlsZUxvYWQgJiYgb25GaWxlTG9hZCh0ZXh0LCB0eXBlLCBuYW1lKTsKICAgICAgfTsKCiAgICAgIHJlYWRlci5yZWFkQXNCaW5hcnlTdHJpbmcoZmlsZSk7CiAgICB9KTsKICB9LCBbb25GaWxlTG9hZCwgdHlwZV0pOwogIHJldHVybiBoYW5kbGVEcm9wOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/FileDrop/hooks/useDrop.ts"],"names":["useCallback","useDrop","onFileLoad","type","handleDrop","files","forEach","file","name","reader","FileReader","onabort","console","log","onerror","onload","text","result","toString","readAsBinaryString"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,OAA5B;AACA,OAAO,SAASC,OAAT,CAAiBC,UAAjB,EAA6BC,IAA7B,EAAmC;AACtC,QAAMC,UAAU,GAAGJ,WAAW,CAAEK,KAAD,IAAW;AACtCA,IAAAA,KAAK,CAACC,OAAN,CAAeC,IAAD,IAAU;AACpB,YAAMC,IAAI,GAAGD,IAAI,CAACC,IAAlB;AACA,YAAMC,MAAM,GAAG,IAAIC,UAAJ,EAAf;;AACAD,MAAAA,MAAM,CAACE,OAAP,GAAiB,MAAMC,OAAO,CAACC,GAAR,CAAY,0BAAZ,CAAvB;;AACAJ,MAAAA,MAAM,CAACK,OAAP,GAAiB,MAAMF,OAAO,CAACC,GAAR,CAAY,yBAAZ,CAAvB;;AACAJ,MAAAA,MAAM,CAACM,MAAP,GAAgB,MAAM;AAClB,cAAMC,IAAI,GAAGP,MAAM,CAACQ,MAAP,GAAgBR,MAAM,CAACQ,MAAP,CAAcC,QAAd,EAAhB,GAA2C,EAAxD;AACAhB,QAAAA,UAAU,IAAIA,UAAU,CAACc,IAAD,EAAOb,IAAP,EAAaK,IAAb,CAAxB;AACH,OAHD;;AAIAC,MAAAA,MAAM,CAACU,kBAAP,CAA0BZ,IAA1B;AACH,KAVD;AAWH,GAZ6B,EAY3B,CAACL,UAAD,EAAaC,IAAb,CAZ2B,CAA9B;AAaA,SAAOC,UAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useCallback } from 'react';\r\nexport function useDrop(onFileLoad, type) {\r\n const handleDrop = useCallback((files) => {\r\n files.forEach((file) => {\r\n const name = file.name;\r\n const reader = new FileReader();\r\n reader.onabort = () => console.log('file reading was aborted');\r\n reader.onerror = () => console.log('file reading has failed');\r\n reader.onload = () => {\r\n const text = reader.result ? reader.result.toString() : '';\r\n onFileLoad && onFileLoad(text, type, name);\r\n };\r\n reader.readAsBinaryString(file);\r\n });\r\n }, [onFileLoad, type]);\r\n return handleDrop;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b7f3a6ef440f2ed047f6af5fa7cb260b.json b/node_modules/.cache/cache-loader/b7f3a6ef440f2ed047f6af5fa7cb260b.json deleted file mode 100644 index 340fc99..0000000 --- a/node_modules/.cache/cache-loader/b7f3a6ef440f2ed047f6af5fa7cb260b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\nodeOpacity.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\nodeOpacity.ts","mtime":1631029334914},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3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NlUmVjb2lsVmFsdWUoZW5jb2RpbmdTdGF0ZShmaWVsZCkpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VVcGRhdGVOb2RlT3BhY2l0eUVuY29kaW5nKCkgewogIGNvbnN0IGVuY29kaW5nID0gdXNlTm9kZU9wYWNpdHlFbmNvZGluZygpOwogIGNvbnN0IHNldHRlciA9IHVzZVNldFJlY29pbFN0YXRlKGVuY29kaW5nU3RhdGUoZW5jb2RpbmcuZmllbGQgfHwgJycpKTsKICBjb25zdCBmaWVsZFNldHRlciA9IHVzZVNldFJlY29pbFN0YXRlKGZpZWxkU3RhdGUpOwogIHJldHVybiB1c2VDYWxsYmFjayh1cGRhdGUgPT4gewogICAgaWYgKHVwZGF0ZS5maWVsZCkgewogICAgICBmaWVsZFNldHRlcih1cGRhdGUuZmllbGQpOwogICAgfSBlbHNlIHsKICAgICAgc2V0dGVyKF9vYmplY3RTcHJlYWQoX29iamVjdFNwcmVhZCh7fSwgZW5jb2RpbmcpLCB1cGRhdGUpKTsKICAgIH0KICB9LCBbZW5jb2RpbmcsIHNldHRlciwgZmllbGRTZXR0ZXJdKTsKfQoKZnVuY3Rpb24gZ2V0RGVmYXVsdE5vZGVPcGFjaXR5T3B0aW9ucyhmaWVsZCwgc3RhdHMpIHsKICByZXR1cm4gZ2V0RGVmYXVsdE51bWVyaWNPcHRpb25zKGZpZWxkLCBzdGF0cywgewogICAgdmFsdWU6IDAuOSwKICAgIHJhbmdlOiBbMC4xLCAxXQogIH0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/nodeOpacity.ts"],"names":["selectedCommunityState","communityNodesTableState","getDefaultNumericOptions","useCallback","atom","atomFamily","selectorFamily","useRecoilValue","useSetRecoilState","getColumnStats","fieldState","key","default","encodingState","get","field","pid","table","stats","getDefaultNodeOpacityOptions","useNodeOpacityEncoding","useUpdateNodeOpacityEncoding","encoding","setter","fieldSetter","update","value","range"],"mappings":";;;;;;AAAA,SAASA,sBAAT,QAAuC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AAW,CAAEsB,MAAD,IAAY;AAC3B,QAAIA,MAAM,CAACV,KAAX,EAAkB;AACdS,MAAAA,WAAW,CAACC,MAAM,CAACV,KAAR,CAAX;AACH,KAFD,MAGK;AACDQ,MAAAA,MAAM,iCACCD,QADD,GAECG,MAFD,EAAN;AAIH;AACJ,GAViB,EAUf,CAACH,QAAD,EAAWC,MAAX,EAAmBC,WAAnB,CAVe,CAAlB;AAWH;;AACD,SAASL,4BAAT,CAAsCJ,KAAtC,EAA6CG,KAA7C,EAAoD;AAChD,SAAOhB,wBAAwB,CAACa,KAAD,EAAQG,KAAR,EAAe;AAC1CQ,IAAAA,KAAK,EAAE,GADmC;AAE1CC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,CAAN;AAFmC,GAAf,CAA/B;AAIH","sourcesContent":["import { selectedCommunityState } from '../communities';\r\nimport { communityNodesTableState } from '../tables';\r\nimport { getDefaultNumericOptions } from './config';\r\nimport { useCallback } from 'react';\r\nimport { atom, atomFamily, selectorFamily, useRecoilValue, useSetRecoilState, } from 'recoil';\r\nimport { getColumnStats } from '~/arquero';\r\nconst fieldState = atom({\r\n key: 'node-opacity-encoding-field',\r\n default: '',\r\n});\r\nconst encodingState = atomFamily({\r\n key: 'node-opacity-encoding-state',\r\n default: selectorFamily({\r\n key: 'node-opacity-encoding-state-default',\r\n get: (field) => ({ get }) => {\r\n const pid = get(selectedCommunityState);\r\n const table = get(communityNodesTableState(pid));\r\n const stats = getColumnStats(table, field);\r\n return getDefaultNodeOpacityOptions(field, stats);\r\n },\r\n }),\r\n});\r\nexport function useNodeOpacityEncoding() {\r\n const field = useRecoilValue(fieldState);\r\n return useRecoilValue(encodingState(field));\r\n}\r\nexport function useUpdateNodeOpacityEncoding() {\r\n const encoding = useNodeOpacityEncoding();\r\n const setter = useSetRecoilState(encodingState(encoding.field || ''));\r\n const fieldSetter = useSetRecoilState(fieldState);\r\n return useCallback((update) => {\r\n if (update.field) {\r\n fieldSetter(update.field);\r\n }\r\n else {\r\n setter({\r\n ...encoding,\r\n ...update,\r\n });\r\n }\r\n }, [encoding, setter, fieldSetter]);\r\n}\r\nfunction getDefaultNodeOpacityOptions(field, stats) {\r\n return getDefaultNumericOptions(field, stats, {\r\n value: 0.9,\r\n range: [0.1, 1],\r\n });\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b86fdfb412377ab3953f2c62638d6d9e.json b/node_modules/.cache/cache-loader/b86fdfb412377ab3953f2c62638d6d9e.json deleted file mode 100644 index 0454805..0000000 --- a/node_modules/.cache/cache-loader/b86fdfb412377ab3953f2c62638d6d9e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\SettingsContainer.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\panels\\SettingsContainer.tsx","mtime":1624559748123},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwppbXBvcnQgeyBTZXR0aW5ncyB9IGZyb20gJ34vY29tcG9uZW50cy9TZXR0aW5ncyc7CmltcG9ydCB7IHVzZVNldHRpbmdzLCB1c2VTZXR0aW5nc0dyb3VwcyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgU2V0dGluZ3NDb250YWluZXIgPSAoKSA9PiB7CiAgY29uc3QgW3NldHRpbmdzLCBzZXRTZXR0aW5nc10gPSB1c2VTZXR0aW5ncygpOwogIGNvbnN0IGdyb3VwcyA9IHVzZVNldHRpbmdzR3JvdXBzKCk7CiAgY29uc3QgaGFuZGxlU2V0dGluZ3NDaGFuZ2UgPSB1c2VDYWxsYmFjayh1cGRhdGVkID0+IHNldFNldHRpbmdzKHVwZGF0ZWQpLCBbc2V0U2V0dGluZ3NdKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb250YWluZXIsIG51bGwsIFJlYWN0LmNyZWF0ZUVsZW1lbnQoU2V0dGluZ3MsIHsKICAgIHNldHRpbmdzOiBzZXR0aW5ncywKICAgIGdyb3VwczogZ3JvdXBzLAogICAgb25DaGFuZ2U6IGhhbmRsZVNldHRpbmdzQ2hhbmdlCiAgfSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/panels/SettingsContainer.tsx"],"names":["React","useCallback","styled","Settings","useSettings","useSettingsGroups","SettingsContainer","settings","setSettings","groups","handleSettingsChange","updated","createElement","Container","onChange","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,QAAT,QAAyB,uBAAzB;AACA,SAASC,WAAT,EAAsBC,iBAAtB,QAA+C,SAA/C;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAAM;AACnC,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BJ,WAAW,EAA3C;AACA,QAAMK,MAAM,GAAGJ,iBAAiB,EAAhC;AACA,QAAMK,oBAAoB,GAAGT,WAAW,CAAEU,OAAD,IAAaH,WAAW,CAACG,OAAD,CAAzB,EAAoC,CAACH,WAAD,CAApC,CAAxC;AACA,SAAQR,KAAK,CAACY,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJb,KAAK,CAACY,aAAN,CAAoBT,QAApB,EAA8B;AAAEI,IAAAA,QAAQ,EAAEA,QAAZ;AAAsBE,IAAAA,MAAM,EAAEA,MAA9B;AAAsCK,IAAAA,QAAQ,EAAEJ;AAAhD,GAA9B,CADI,CAAR;AAEH,CANM;AAOP,MAAMG,SAAS,GAAGX,MAAM,CAACa,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { Settings } from '~/components/Settings';\r\nimport { useSettings, useSettingsGroups } from '~/state';\r\nexport const SettingsContainer = () => {\r\n const [settings, setSettings] = useSettings();\r\n const groups = useSettingsGroups();\r\n const handleSettingsChange = useCallback((updated) => setSettings(updated), [setSettings]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Settings, { settings: settings, groups: groups, onChange: handleSettingsChange })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b8a3cefa73027b6736a2c68aaa42d71d.json b/node_modules/.cache/cache-loader/b8a3cefa73027b6736a2c68aaa42d71d.json deleted file mode 100644 index 4744c46..0000000 --- a/node_modules/.cache/cache-loader/b8a3cefa73027b6736a2c68aaa42d71d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Export\\hooks\\useCreateRenderer.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Export\\hooks\\useCreateRenderer.tsx","mtime":1631029334778},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiB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AgICAoX2RvbU5vZGUkcGFyZW50Tm9kZSA9IGRvbU5vZGUucGFyZW50Tm9kZSkgPT09IG51bGwgfHwgX2RvbU5vZGUkcGFyZW50Tm9kZSA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2RvbU5vZGUkcGFyZW50Tm9kZS5yZW1vdmVDaGlsZChkb21Ob2RlKTsKICAgIH07CiAgfSwgW2NyZWF0ZSwgdGhlbWUsIGRhdGEsIGNhbWVyYUJvdW5kcywgb25SZW5kZXJlclJlYWR5LCBSZWNvaWxCcmlkZ2VdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Export/hooks/useCreateRenderer.tsx"],"names":["GraphViewer","ThematicProvider","useThematic","React","useEffect","ReactDOM","useRecoilBridgeAcrossReactRoots_UNSTABLE","useDynamicCameraBounds","useInternedGraph","useCreateRenderer","create","onRendererReady","theme","data","cameraBounds","RecoilBridge","domNode","document","createElement","render","onRendererInitialized","unmountComponentAtNode","parentNode","removeChild"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,mBAA5B;AACA,SAASC,gBAAT,EAA2BC,WAA3B,QAA8C,iBAA9C;AACA,OAAOC,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,SAASC,wCAAT,QAAyD,QAAzD;AACA,SAASC,sBAAT,QAAuC,eAAvC;AACA,SAASC,gBAAT,QAAiC,gBAAjC;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,iBAAT,CAA2BC,MAA3B,EAAmCC,eAAnC,EAAoD;AACvD,QAAMC,KAAK,GAAGV,WAAW,EAAzB;AACA,QAAMW,IAAI,GAAGL,gBAAgB,EAA7B;AACA,QAAMM,YAAY,GAAGP,sBAAsB,EAA3C;AACA,QAAMQ,YAAY,GAAGT,wCAAwC,EAA7D;AACAF,EAAAA,SAAS,CAAC,MAAM;AACZ,UAAMY,OAAO,GAAGC,QAAQ,CAACC,aAAT,CAAuB,KAAvB,CAAhB;;AACA,QAAIR,MAAJ,EAAY;AACRL,MAAAA,QAAQ,CAACc,MAAT,CAAgBhB,KAAK,CAACe,aAAN,CAAoBH,YAApB,EAAkC,IAAlC,EACZZ,KAAK,CAACe,aAAN,CAAoBjB,gBAApB,EAAsC;AAAEW,QAAAA,KAAK,EAAEA;AAAT,OAAtC,EACIT,KAAK,CAACe,aAAN,CAAoBlB,WAApB,EAAiC;AAAEa,QAAAA,IAAI,EAAEA,IAAR;AAAcC,QAAAA,YAAY,EAAEA,YAA5B;AAA0CM,QAAAA,qBAAqB,EAAET;AAAjE,OAAjC,CADJ,CADY,CAAhB,EAEgIK,OAFhI;AAGH;;AACD,WAAO,MAAM;AAAA;;AACT;AACAX,MAAAA,QAAQ,CAACgB,sBAAT,CAAgCL,OAAhC;AACA,6BAAAA,OAAO,CAACM,UAAR,4EAAoBC,WAApB,CAAgCP,OAAhC;AACH,KAJD;AAKH,GAZQ,EAYN,CAACN,MAAD,EAASE,KAAT,EAAgBC,IAAhB,EAAsBC,YAAtB,EAAoCH,eAApC,EAAqDI,YAArD,CAZM,CAAT;AAaH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { GraphViewer } from '../../GraphViewer';\r\nimport { ThematicProvider, useThematic } from '@thematic/react';\r\nimport React, { useEffect } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { useRecoilBridgeAcrossReactRoots_UNSTABLE } from 'recoil';\r\nimport { useDynamicCameraBounds } from '~/hooks/graph';\r\nimport { useInternedGraph } from '~/state/caches';\r\n/**\r\n * Creates a detached renderer when instructed, which we can use to generate images.\r\n * @param create Indicates if the renderer should be created/recreated.\r\n * This is a UI-blocking process, so best to wait until user has requested export.\r\n * @param onRenderer Callback that fires with the renderer instance when ready.\r\n */\r\nexport function useCreateRenderer(create, onRendererReady) {\r\n const theme = useThematic();\r\n const data = useInternedGraph();\r\n const cameraBounds = useDynamicCameraBounds();\r\n const RecoilBridge = useRecoilBridgeAcrossReactRoots_UNSTABLE();\r\n useEffect(() => {\r\n const domNode = document.createElement('div');\r\n if (create) {\r\n ReactDOM.render(React.createElement(RecoilBridge, null,\r\n React.createElement(ThematicProvider, { theme: theme },\r\n React.createElement(GraphViewer, { data: data, cameraBounds: cameraBounds, onRendererInitialized: onRendererReady }))), domNode);\r\n }\r\n return () => {\r\n // trash the node on unmount to prevent memory leaks\r\n ReactDOM.unmountComponentAtNode(domNode);\r\n domNode.parentNode?.removeChild(domNode);\r\n };\r\n }, [create, theme, data, cameraBounds, onRendererReady, RecoilBridge]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/b8df816429379c5fdc068855d41d2b73.json b/node_modules/.cache/cache-loader/b8df816429379c5fdc068855d41d2b73.json deleted file mode 100644 index 564be54..0000000 --- a/node_modules/.cache/cache-loader/b8df816429379c5fdc068855d41d2b73.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Minimap\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Minimap\\index.tsx","mtime":1620403249337},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL01pbmltYXAnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Minimap/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,WAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './Minimap';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/bc359d85dfac16e910abee149f9a9bca.json b/node_modules/.cache/cache-loader/bc359d85dfac16e910abee149f9a9bca.json deleted file mode 100644 index 6c2847d..0000000 --- a/node_modules/.cache/cache-loader/bc359d85dfac16e910abee149f9a9bca.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\api\\util.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\api\\util.ts","mtime":1620403249100},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgY29uc3QgZXh0ZW5zaW9uID0gcGF0aCA9PiBwYXRoLm1hdGNoKC9cLihbYS16XSspLylbMV07"},{"version":3,"sources":["C:/ws/graph-drill/src/api/util.ts"],"names":["extension","path","match"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAGC,IAAI,IAAIA,IAAI,CAACC,KAAL,CAAW,YAAX,EAAyB,CAAzB,CAA1B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport const extension = path => path.match(/\\.([a-z]+)/)[1];\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/bd09c3ca7e18e99ae47c1f8d9c62ffb2.json b/node_modules/.cache/cache-loader/bd09c3ca7e18e99ae47c1f8d9c62ffb2.json deleted file mode 100644 index 2626337..0000000 --- a/node_modules/.cache/cache-loader/bd09c3ca7e18e99ae47c1f8d9c62ffb2.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeSizeControls\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeSizeControls\\index.tsx","mtime":1620403249381},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL05vZGVTaXplQ29udHJvbHMnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeSizeControls/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,oBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './NodeSizeControls';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/be63717a206ad34ca5c7ccc0af66717d.json b/node_modules/.cache/cache-loader/be63717a206ad34ca5c7ccc0af66717d.json deleted file mode 100644 index 179bcda..0000000 --- a/node_modules/.cache/cache-loader/be63717a206ad34ca5c7ccc0af66717d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\api\\public.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\api\\public.ts","mtime":1624559748078},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBmZXRjaERTVlRhYmxlIH0gZnJvbSAnLi9kc3YnOwppbXBvcnQgeyBleHRlbnNpb24gfSBmcm9tICcuL3V0aWwnOwovKioNCiAqIEZldGNoIGEgZmlsZSB2aXNpYmxlIHRvIHRoZSBhcHBsaWNhdGlvbiBpbiBjc3Ygb3IgdHN2IGZvcm1hdCwNCiAqIHN1Y2ggYXMgZnJvbSB0aGUgcHVibGljIGZvbGRlciBvciBhbnkgb3RoZXIgbm8tYXV0aCB1cmwNCiAqIEBwYXJhbSB1cmwNCiAqLwoKZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGZldGNoVXJsKHVybCkgewogIGNvbnN0IGV4dCA9IGV4dGVuc2lvbih1cmwpOwoKICBzd2l0Y2ggKGV4dCkgewogICAgY2FzZSAnY3N2JzoKICAgIGNhc2UgJ3Rzdic6CiAgICAgIHJldHVybiBmZXRjaERTVlRhYmxlKHVybCk7CgogICAgZGVmYXVsdDoKICAgICAgdGhyb3cgbmV3IEVycm9yKGBVbnN1cHBvcnRlZCBmaWxlIHR5cGU6IGAgKyBleHQpOwogIH0KfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/api/public.ts"],"names":["fetchDSVTable","extension","fetchUrl","url","ext","Error"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,OAA9B;AACA,SAASC,SAAT,QAA0B,QAA1B;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,eAAeC,QAAf,CAAwBC,GAAxB,EAA6B;AAChC,QAAMC,GAAG,GAAGH,SAAS,CAACE,GAAD,CAArB;;AACA,UAAQC,GAAR;AACI,SAAK,KAAL;AACA,SAAK,KAAL;AACI,aAAOJ,aAAa,CAACG,GAAD,CAApB;;AACJ;AACI,YAAM,IAAIE,KAAJ,CAAW,yBAAD,GAA4BD,GAAtC,CAAN;AALR;AAOH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { fetchDSVTable } from './dsv';\r\nimport { extension } from './util';\r\n/**\r\n * Fetch a file visible to the application in csv or tsv format,\r\n * such as from the public folder or any other no-auth url\r\n * @param url\r\n */\r\nexport async function fetchUrl(url) {\r\n const ext = extension(url);\r\n switch (ext) {\r\n case 'csv':\r\n case 'tsv':\r\n return fetchDSVTable(url);\r\n default:\r\n throw new Error(`Unsupported file type: ` + ext);\r\n }\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/bf1640b5826229c572d2bd998568078b.json b/node_modules/.cache/cache-loader/bf1640b5826229c572d2bd998568078b.json deleted file mode 100644 index 7d0af4a..0000000 --- a/node_modules/.cache/cache-loader/bf1640b5826229c572d2bd998568078b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\Layout.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\Layout.tsx","mtime":1631029334728},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBVbWFwTGF5b3V0IH0gZnJvbSAnLi9VbWFwTGF5b3V0JzsKaW1wb3J0IHsgRGVmYXVsdEJ1dHRvbiwgU3Bpbm5lciwgVG9nZ2xlIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IHsgYWxsLCBub3QgfSBmcm9tICdhcnF1ZXJvJzsKaW1wb3J0IFJlYWN0LCB7IG1lbW8sIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHl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ZW1lbnQoU3RhdHVzLCBudWxsLCBsb2FkaW5nID8gUmVhY3QuY3JlYXRlRWxlbWVudChTcGlubmVyLCB7CiAgICBsYWJlbFBvc2l0aW9uOiAncmlnaHQnLAogICAgbGFiZWw6ICdDb21wdXRpbmcgbGF5b3V0Li4uJwogIH0pIDogbnVsbCkpOwp9KTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCW1hcmdpbjogMjBweDsKCW1hcmdpbi1ib3R0b206IDEwcHg7Cgl0ZXh0LWFsaWduOiBjZW50ZXI7CglqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKYDsKY29uc3QgQnV0dG9ucyA9IHN0eWxlZC5kaXZgCgltYXJnaW4tdG9wOiAxMHB4OwoJZGlzcGxheTogZmxleDsKCWp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kOwpgOwpjb25zdCBTdGF0dXMgPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogZmxleDsKCWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CglqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjsKCWhlaWdodDogNDJweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/Layout.tsx"],"names":["UmapLayout","DefaultButton","Spinner","Toggle","all","not","React","memo","useCallback","useState","styled","useArqueroBigTable","useArqueroEdgeTable","useSetArqueroBigTable","executeLayout","Layout","LayoutType","useFeatures","useGraphViewType","useSetGraphViewType","ViewType","nodes","edges","setBigTable","features","graphView","setGraphView","loading","setLoading","performLayout","type","console","log","finalize","table","print","merged","join","columnNames","deduped","orderby","select","dedupe","ungroup","then","handleGridClick","Grid","handleUmapClick","UMAP","handleViewChanged","e","v","SmallMultiple","SingleGraph","createElement","Container","enableSmallMultiples","inlineLabel","label","checked","onChange","Buttons","text","onClick","numRows","Fragment","Status","labelPosition","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,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See LICENSE file in the project.\r\n */\r\nimport { UmapLayout } from './UmapLayout';\r\nimport { DefaultButton, Spinner, Toggle } from '@fluentui/react';\r\nimport { all, not } from 'arquero';\r\nimport React, { memo, useCallback, useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useArqueroBigTable, useArqueroEdgeTable, useSetArqueroBigTable, } from '~/arquero';\r\nimport { executeLayout, Layout as LayoutType } from '~/layout';\r\nimport { useFeatures, useGraphViewType, useSetGraphViewType } from '~/state';\r\nimport { ViewType } from '~/types';\r\nexport const Layout = memo(function Layout() {\r\n const nodes = useArqueroBigTable();\r\n const edges = useArqueroEdgeTable();\r\n const setBigTable = useSetArqueroBigTable();\r\n const [features] = useFeatures();\r\n const graphView = useGraphViewType();\r\n const setGraphView = useSetGraphViewType();\r\n const [loading, setLoading] = useState(false);\r\n const performLayout = useCallback((type) => {\r\n console.log('performing layout', type);\r\n const finalize = (table) => {\r\n console.log('layout complete', type);\r\n table.print();\r\n const merged = nodes.join(table, ['node.id', 'node.id'], \r\n // note that we're overwriting any previous columns with anything new from layout\r\n // the full pipelines often include community.id and a size...\r\n [not(table.columnNames()), all()]);\r\n merged.print();\r\n setBigTable(merged);\r\n setLoading(false);\r\n };\r\n const deduped = nodes\r\n .orderby('community.nodeCount')\r\n .select(['node.id', 'node.x', 'node.y'])\r\n .dedupe('node.id')\r\n .ungroup();\r\n executeLayout(type, deduped, edges).then(finalize);\r\n }, [nodes, edges, setBigTable]);\r\n const handleGridClick = useCallback(() => {\r\n setLoading(true);\r\n performLayout(LayoutType.Grid);\r\n }, [performLayout]);\r\n // const handleFA2Click = useCallback(() => {\r\n // \tsetLoading(true)\r\n // \tperformLayout(LayoutType.FA2)\r\n // }, [performLayout])\r\n const handleUmapClick = useCallback(() => {\r\n setLoading(true);\r\n performLayout(LayoutType.UMAP);\r\n }, [performLayout]);\r\n const handleViewChanged = useCallback((e, v) => setGraphView(v ? ViewType.SmallMultiple : ViewType.SingleGraph), [setGraphView]);\r\n return (React.createElement(Container, null,\r\n features.enableSmallMultiples ? (React.createElement(Toggle, { inlineLabel: true, label: \"Community isolation\", checked: graphView === ViewType.SmallMultiple, onChange: handleViewChanged })) : null,\r\n React.createElement(Buttons, null,\r\n React.createElement(DefaultButton, { text: 'Grid', onClick: handleGridClick }),\r\n edges.numRows() > 0 ? (React.createElement(React.Fragment, null,\r\n React.createElement(UmapLayout, { onClick: handleUmapClick }))) : null),\r\n React.createElement(Status, null, loading ? (React.createElement(Spinner, { labelPosition: 'right', label: 'Computing layout...' })) : null)));\r\n});\r\nconst Container = styled.div `\r\n\tmargin: 20px;\r\n\tmargin-bottom: 10px;\r\n\ttext-align: center;\r\n\tjustify-content: center;\r\n`;\r\nconst Buttons = styled.div `\r\n\tmargin-top: 10px;\r\n\tdisplay: flex;\r\n\tjustify-content: space-around;\r\n`;\r\nconst Status = styled.div `\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tjustify-content: center;\r\n\theight: 42px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/bf86dcd1bd44c87de52508328b5461d4.json b/node_modules/.cache/cache-loader/bf86dcd1bd44c87de52508328b5461d4.json deleted file mode 100644 index 25fc706..0000000 --- a/node_modules/.cache/cache-loader/bf86dcd1bd44c87de52508328b5461d4.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\view.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\view.ts","mtime":1631029334869},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBST09UX0NPTU1VTklUWV9JRCB9IGZyb20gJy4uLy4uL2NvbnN0YW50cyc7CmltcG9ydCB7IFZpZXdUeXBlIH0gZnJvbSAnLi4vLi4vdHlwZXMnOwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VGZWF0dXJlcywgdXNlR3JhcGhWaWV3VHlwZSwgdXNlTm9kZVN0YXRzQnlDb21tdW5pdHksIHVzZVNlbGVjdGVkQ29tbXVuaXR5IH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBmdW5jdGlvbiB1c2VEYXRhQm91bmRzKCkgewogIGNvbnN0IHBpZCA9IHVzZVNlbGVjdGVkQ29tbXVuaXR5KCk7CiAgY29uc3Qgc3RhdHMgPSB1c2VOb2RlU3RhdHNCeUNvbW11bml0eShwaWQsIDAuOTkpOwogIHJldHVybiB1c2VNZW1vKCgpID0+IHsKICAgIC8vIGZvciByb290IHpvb20gbGV2ZWwsIHdlICB3YW50IG1heCBib3VuZHMKICAgIC8vIG90aGVyd2lzZSB3ZSB3YW50IHRvIHpvb20gaW4gYSBsaXR0bGUgYml0IHRvIGlnbm9yZSBmYXItZmx1bmcgb3V0bGllcnMKICAgIGlmIChwaWQgPT09IFJPT1RfQ09NTVVOSVRZX0lEKSB7CiAgICAgIHJldHVybiB7CiAgICAgICAgeDogewogICAgICAgICAgbWluOiAwLAogICAgICAgICAgbWF4OiAxCiAgICAgICAgfSwKICAgICAgICB5OiB7CiAgICAgICAgICBtaW46IDAsCiAgICAgICAgICBtYXg6IDEKICAgICAgICB9CiAgICAgIH07CiAgICB9CgogICAgcmV0dXJuIHsKICAgICAgeDogewogICAgICAgIG1pbjogc3RhdHMubWluWCwKICAgICAgICBtYXg6IHN0YXRzLm1heFgKICAgICAgfSwKICAgICAgeTogewogICAgICAgIG1pbjogc3RhdHMubWluWSwKICAgICAgICBtYXg6IHN0YXRzLm1heFkKICAgICAgfQogICAgfTsKICB9LCBbcGlkLCBzdGF0c10pOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VDYW1lcmFCb3VuZHMoYm91bmRzKSB7CiAgY29uc3QgdmlldyA9IHVzZUdyYXBoVmlld1R5cGUoKTsKICBjb25zdCBbZmVhdHVyZXNdID0gdXNlRmVhdHVyZXMoKTsKICByZXR1cm4gdXNlTWVtbygoKSA9PiB7CiAgICBpZiAodmlldyA9PT0gVmlld1R5cGUuU2luZ2xlR3JhcGggJiYgZmVhdHVyZXMuZW5hYmxlWm9vbVRvQ29tbXVuaXR5KSB7CiAgICAgIHJldHVybiBib3VuZHM7CiAgICB9CgogICAgcmV0dXJuIHVuZGVmaW5lZDsKICB9LCBbYm91bmRzLCB2aWV3LCBmZWF0dXJlc10pOwp9Ci8qKg0KICogVXNlcyB0aGUgY3VycmVudCBkYXRhYm91bmRzIHBsdXMgdmlldyB0eXBlIHRvIGRldGVybWluZQ0KICogYSBkeW5hbWljIHNldCBvZiBjYW1lcmEgYm91bmRzICh6b29tZWQgaW4gb3Igbm90KS4NCiAqLwoKZXhwb3J0IGZ1bmN0aW9uIHVzZUR5bmFtaWNDYW1lcmFCb3VuZHMoKSB7CiAgY29uc3QgZGF0YUJvdW5kcyA9IHVzZURhdGFCb3VuZHMoKTsKICByZXR1cm4gdXNlQ2FtZXJhQm91bmRzKGRhdGFCb3VuZHMpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/view.ts"],"names":["ROOT_COMMUNITY_ID","ViewType","useMemo","useFeatures","useGraphViewType","useNodeStatsByCommunity","useSelectedCommunity","useDataBounds","pid","stats","x","min","max","y","minX","maxX","minY","maxY","useCameraBounds","bounds","view","features","SingleGraph","enableZoomToCommunity","undefined","useDynamicCameraBounds","dataBounds"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,iBAAlC;AACA,SAASC,QAAT,QAAyB,aAAzB;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,WAAT,EAAsBC,gBAAtB,EAAwCC,uBAAxC,EAAiEC,oBAAjE,QAA8F,SAA9F;AACA,OAAO,SAASC,aAAT,GAAyB;AAC5B,QAAMC,GAAG,GAAGF,oBAAoB,EAAhC;AACA,QAAMG,KAAK,GAAGJ,uBAAuB,CAACG,GAAD,EAAM,IAAN,CAArC;AACA,SAAON,OAAO,CAAC,MAAM;AACjB;AACA;AACA,QAAIM,GAAG,KAAKR,iBAAZ,EAA+B;AAC3B,aAAO;AACHU,QAAAA,CAAC,EAAE;AACCC,UAAAA,GAAG,EAAE,CADN;AAECC,UAAAA,GAAG,EAAE;AAFN,SADA;AAKHC,QAAAA,CAAC,EAAE;AACCF,UAAAA,GAAG,EAAE,CADN;AAECC,UAAAA,GAAG,EAAE;AAFN;AALA,OAAP;AAUH;;AACD,WAAO;AACHF,MAAAA,CAAC,EAAE;AACCC,QAAAA,GAAG,EAAEF,KAAK,CAACK,IADZ;AAECF,QAAAA,GAAG,EAAEH,KAAK,CAACM;AAFZ,OADA;AAKHF,MAAAA,CAAC,EAAE;AACCF,QAAAA,GAAG,EAAEF,KAAK,CAACO,IADZ;AAECJ,QAAAA,GAAG,EAAEH,KAAK,CAACQ;AAFZ;AALA,KAAP;AAUH,GAzBa,EAyBX,CAACT,GAAD,EAAMC,KAAN,CAzBW,CAAd;AA0BH;AACD,OAAO,SAASS,eAAT,CAAyBC,MAAzB,EAAiC;AACpC,QAAMC,IAAI,GAAGhB,gBAAgB,EAA7B;AACA,QAAM,CAACiB,QAAD,IAAalB,WAAW,EAA9B;AACA,SAAOD,OAAO,CAAC,MAAM;AACjB,QAAIkB,IAAI,KAAKnB,QAAQ,CAACqB,WAAlB,IAAiCD,QAAQ,CAACE,qBAA9C,EAAqE;AACjE,aAAOJ,MAAP;AACH;;AACD,WAAOK,SAAP;AACH,GALa,EAKX,CAACL,MAAD,EAASC,IAAT,EAAeC,QAAf,CALW,CAAd;AAMH;AACD;AACA;AACA;AACA;;AACA,OAAO,SAASI,sBAAT,GAAkC;AACrC,QAAMC,UAAU,GAAGnB,aAAa,EAAhC;AACA,SAAOW,eAAe,CAACQ,UAAD,CAAtB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../../constants';\r\nimport { ViewType } from '../../types';\r\nimport { useMemo } from 'react';\r\nimport { useFeatures, useGraphViewType, useNodeStatsByCommunity, useSelectedCommunity, } from '~/state';\r\nexport function useDataBounds() {\r\n const pid = useSelectedCommunity();\r\n const stats = useNodeStatsByCommunity(pid, 0.99);\r\n return useMemo(() => {\r\n // for root zoom level, we want max bounds\r\n // otherwise we want to zoom in a little bit to ignore far-flung outliers\r\n if (pid === ROOT_COMMUNITY_ID) {\r\n return {\r\n x: {\r\n min: 0,\r\n max: 1,\r\n },\r\n y: {\r\n min: 0,\r\n max: 1,\r\n },\r\n };\r\n }\r\n return {\r\n x: {\r\n min: stats.minX,\r\n max: stats.maxX,\r\n },\r\n y: {\r\n min: stats.minY,\r\n max: stats.maxY,\r\n },\r\n };\r\n }, [pid, stats]);\r\n}\r\nexport function useCameraBounds(bounds) {\r\n const view = useGraphViewType();\r\n const [features] = useFeatures();\r\n return useMemo(() => {\r\n if (view === ViewType.SingleGraph && features.enableZoomToCommunity) {\r\n return bounds;\r\n }\r\n return undefined;\r\n }, [bounds, view, features]);\r\n}\r\n/**\r\n * Uses the current databounds plus view type to determine\r\n * a dynamic set of camera bounds (zoomed in or not).\r\n */\r\nexport function useDynamicCameraBounds() {\r\n const dataBounds = useDataBounds();\r\n return useCameraBounds(dataBounds);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/bf979606fcad222ba2726f01848a1da6.json b/node_modules/.cache/cache-loader/bf979606fcad222ba2726f01848a1da6.json deleted file mode 100644 index 54393ba..0000000 --- a/node_modules/.cache/cache-loader/bf979606fcad222ba2726f01848a1da6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Help\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Help\\index.tsx","mtime":1620403249327},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgSGVscCA9ICgpID0+IHsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChSZWFjdC5GcmFnbWVudCwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudCgicCIsIG51bGwsICJIb3ZlciBhIGNvbW11bml0eSBpbiB0aGUgbGlzdCB0byBoaWdobGlnaHQsIGNsaWNrIGNvbW11bml0aWVzIGNvbnRhaW5pbmcgY2hpbGRyZW4gdG8gem9vbS4iKSwgUmVhY3QuY3JlYXRlRWxlbWVudCgicCIsIG51bGwsICJGb2xsb3cgdGhlIGJyZWFkY3J1bWIgYmFjayB0aHJvdWdoIHlvdXIgcGF0aC4iKSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/Help/index.tsx"],"names":["React","Help","createElement","Fragment"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAO,MAAMC,IAAI,GAAG,MAAM;AACtB,SAAQD,KAAK,CAACE,aAAN,CAAoBF,KAAK,CAACG,QAA1B,EAAoC,IAApC,EACJH,KAAK,CAACE,aAAN,CAAoB,GAApB,EAAyB,IAAzB,EAA+B,4FAA/B,CADI,EAEJF,KAAK,CAACE,aAAN,CAAoB,GAApB,EAAyB,IAAzB,EAA+B,+CAA/B,CAFI,CAAR;AAGH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nexport const Help = () => {\r\n return (React.createElement(React.Fragment, null,\r\n React.createElement(\"p\", null, \"Hover a community in the list to highlight, click communities containing children to zoom.\"),\r\n React.createElement(\"p\", null, \"Follow the breadcrumb back through your path.\")));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c08741df749e4053043d15561b6175dd.json b/node_modules/.cache/cache-loader/c08741df749e4053043d15561b6175dd.json deleted file mode 100644 index 0a362be..0000000 --- a/node_modules/.cache/cache-loader/c08741df749e4053043d15561b6175dd.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\api\\dsv.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\api\\dsv.ts","mtime":1631029334658},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBleHRlbnNpb24gfSBmcm9tICcuL3V0aWwnOwppbXBvcnQgeyBmcm9tQ1NWIH0gZnJvbSAnYXJxdWVybyc7Cgpjb25zdCBpZGVudGl0eSA9IGQgPT4gZDsKCmNvbnN0IGZucyA9IHsKICBpZDogaWRlbnRpdHksCiAgSUQ6IGlkZW50aXR5LAogIG5vZGVJZDogaWRlbnRpdHksCiAgY2lkOiBpZGVudGl0eSwKICBjbHVzdGVySWQ6IGlkZW50aXR5LAogIGNvbW11bml0eTogaWRlbnRpdHksCiAgY29tbXVuaXR5SWQ6IGlkZW50aXR5LAogIHBpZDogaWRlbnRpdHksCiAgcGFyZW50Q2x1c3RlcjogaWRlbnRpdHksCiAgcGFyZW50OiBpZGVudGl0eSwKICBwYXJlbnRJZDogaWRlbnRpdHksCiAgc291cmNlOiBpZGVudGl0eSwKICB0YXJnZXQ6IGlkZW50aXR5Cn07CmV4cG9ydCBhc3luYyBmdW5jdGlvbiBmZXRjaERTVlRhYmxlKHVybCkgewogIGNvbnN0IGNvbnRlbnQgPSBhd2FpdCBmZXRjaCh1cmwpLnRoZW4ocmVzID0+IHJlcy50ZXh0KCkpOwogIHJldHVybiBwYXJzZURTVlRhYmxlKHVybCwgY29udGVudCk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHBhcnNlRFNWVGFibGUoZmlsZW5hbWUsIGNvbnRlbnQpIHsKICBjb25zdCBleHQgPSBleHRlbnNpb24oZmlsZW5hbWUpOwogIGNvbnN0IHRhYmxlID0gZnJvbUNTVihjb250ZW50LCB7CiAgICBoZWFkZXI6IHRydWUsCiAgICAvLyBoYW5kbGUgYSBidW5jaCBvZiBzdGFuZGFyZCBpZCBmaWVsZHMgYXMgc3RyaW5ncwogICAgcGFyc2U6IGZucywKICAgIGRlbGltaXRlcjogZXh0ID09PSAnY3N2JyA/ICcsJyA6ICdcdCcKICB9KTsKICByZXR1cm4gdGFibGU7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/api/dsv.ts"],"names":["extension","fromCSV","identity","d","fns","id","ID","nodeId","cid","clusterId","community","communityId","pid","parentCluster","parent","parentId","source","target","fetchDSVTable","url","content","fetch","then","res","text","parseDSVTable","filename","ext","table","header","parse","delimiter"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,QAA1B;AACA,SAASC,OAAT,QAAwB,SAAxB;;AACA,MAAMC,QAAQ,GAAIC,CAAD,IAAOA,CAAxB;;AACA,MAAMC,GAAG,GAAG;AACRC,EAAAA,EAAE,EAAEH,QADI;AAERI,EAAAA,EAAE,EAAEJ,QAFI;AAGRK,EAAAA,MAAM,EAAEL,QAHA;AAIRM,EAAAA,GAAG,EAAEN,QAJG;AAKRO,EAAAA,SAAS,EAAEP,QALH;AAMRQ,EAAAA,SAAS,EAAER,QANH;AAORS,EAAAA,WAAW,EAAET,QAPL;AAQRU,EAAAA,GAAG,EAAEV,QARG;AASRW,EAAAA,aAAa,EAAEX,QATP;AAURY,EAAAA,MAAM,EAAEZ,QAVA;AAWRa,EAAAA,QAAQ,EAAEb,QAXF;AAYRc,EAAAA,MAAM,EAAEd,QAZA;AAaRe,EAAAA,MAAM,EAAEf;AAbA,CAAZ;AAeA,OAAO,eAAegB,aAAf,CAA6BC,GAA7B,EAAkC;AACrC,QAAMC,OAAO,GAAG,MAAMC,KAAK,CAACF,GAAD,CAAL,CAAWG,IAAX,CAAgBC,GAAG,IAAIA,GAAG,CAACC,IAAJ,EAAvB,CAAtB;AACA,SAAOC,aAAa,CAACN,GAAD,EAAMC,OAAN,CAApB;AACH;AACD,OAAO,SAASK,aAAT,CAAuBC,QAAvB,EAAiCN,OAAjC,EAA0C;AAC7C,QAAMO,GAAG,GAAG3B,SAAS,CAAC0B,QAAD,CAArB;AACA,QAAME,KAAK,GAAG3B,OAAO,CAACmB,OAAD,EAAU;AAC3BS,IAAAA,MAAM,EAAE,IADmB;AAE3B;AACAC,IAAAA,KAAK,EAAE1B,GAHoB;AAI3B2B,IAAAA,SAAS,EAAEJ,GAAG,KAAK,KAAR,GAAgB,GAAhB,GAAsB;AAJN,GAAV,CAArB;AAMA,SAAOC,KAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { extension } from './util';\r\nimport { fromCSV } from 'arquero';\r\nconst identity = (d) => d;\r\nconst fns = {\r\n id: identity,\r\n ID: identity,\r\n nodeId: identity,\r\n cid: identity,\r\n clusterId: identity,\r\n community: identity,\r\n communityId: identity,\r\n pid: identity,\r\n parentCluster: identity,\r\n parent: identity,\r\n parentId: identity,\r\n source: identity,\r\n target: identity,\r\n};\r\nexport async function fetchDSVTable(url) {\r\n const content = await fetch(url).then(res => res.text());\r\n return parseDSVTable(url, content);\r\n}\r\nexport function parseDSVTable(filename, content) {\r\n const ext = extension(filename);\r\n const table = fromCSV(content, {\r\n header: true,\r\n // handle a bunch of standard id fields as strings\r\n parse: fns,\r\n delimiter: ext === 'csv' ? ',' : '\\t',\r\n });\r\n return table;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c2bcdc612ae0f84917ad576f14f97040.json b/node_modules/.cache/cache-loader/c2bcdc612ae0f84917ad576f14f97040.json deleted file mode 100644 index 79e1a0b..0000000 --- a/node_modules/.cache/cache-loader/c2bcdc612ae0f84917ad576f14f97040.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ToggleHeader\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ToggleHeader\\index.tsx","mtime":1620403249497},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL1RvZ2dsZUhlYWRlcic7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ToggleHeader/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,gBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './ToggleHeader';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c4f38e2b1cd685876493d6a21a9cc566.json b/node_modules/.cache/cache-loader/c4f38e2b1cd685876493d6a21a9cc566.json deleted file mode 100644 index aed7e0a..0000000 --- a/node_modules/.cache/cache-loader/c4f38e2b1cd685876493d6a21a9cc566.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useGraphDimensions.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\hooks\\useGraphDimensions.ts","mtime":1624559748213},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VEaW1lbnNpb25zIH0gZnJvbSAnQGVzc2V4LWpzLXRvb2xraXQvaG9va3MnOwppbXBvcnQgeyB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHsgSEVBREVSX0hFSUdIVCwgUEFORUxfV0lEVEggfSBmcm9tICd+L3N0eWxlcyc7CmNvbnN0IFBBRERJTkcgPSA1OwpleHBvcnQgZnVuY3Rpb24gdXNlR3JhcGhEaW1lbnNpb25zKHJlZikgewogIGNvbnN0IFtwb3NpdGlvbiwgc2V0UG9zaXRpb25dID0gdXNlU3RhdGUoewogICAgeDogMCwKICAgIHk6IDAsCiAgICBoZWlnaHQ6IEhFQURFUl9IRUlHSFQKICB9KTsKICBjb25zdCBkaW1lbnNpb25zID0gdXNlRGltZW5zaW9ucyhyZWYpOwogIGNvbnN0IGdyYXBoRGltZW5zaW9ucyA9IHVzZU1lbW8oKCkgPT4gewogICAgaWYgKGRpbWVuc2lvbnMpIHsKICAgICAgY29uc3QgewogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9ID0gZGltZW5zaW9uczsgLy8gVE9ETzogdGhlc2UgY2FuIGZsZXgsIGJ1dCBhIHN0cm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pb25dOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/hooks/useGraphDimensions.ts"],"names":["useDimensions","useMemo","useState","HEADER_HEIGHT","PANEL_WIDTH","PADDING","useGraphDimensions","ref","position","setPosition","x","y","height","dimensions","graphDimensions","width","leftPanelWidth","rightPanelWidth","resizeWidth","browserWidth","dims"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,aAAT,QAA8B,yBAA9B;AACA,SAASC,OAAT,EAAkBC,QAAlB,QAAkC,OAAlC;AACA,SAASC,aAAT,EAAwBC,WAAxB,QAA2C,UAA3C;AACA,MAAMC,OAAO,GAAG,CAAhB;AACA,OAAO,SAASC,kBAAT,CAA4BC,GAA5B,EAAiC;AACpC,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BP,QAAQ,CAAC;AACrCQ,IAAAA,CAAC,EAAE,CADkC;AAErCC,IAAAA,CAAC,EAAE,CAFkC;AAGrCC,IAAAA,MAAM,EAAET;AAH6B,GAAD,CAAxC;AAKA,QAAMU,UAAU,GAAGb,aAAa,CAACO,GAAD,CAAhC;AACA,QAAMO,eAAe,GAAGb,OAAO,CAAC,MAAM;AAClC,QAAIY,UAAJ,EAAgB;AACZ,YAAM;AAAEE,QAAAA,KAAF;AAASH,QAAAA;AAAT,UAAoBC,UAA1B,CADY,CAEZ;AACA;;AACA,YAAMG,cAAc,GAAGZ,WAAvB,CAJY,CAIwB;;AACpC,YAAMa,eAAe,GAAGb,WAAxB,CALY,CAKyB;;AACrC,YAAMc,WAAW,GAAGH,KAAK,GAAGV,OAAO,GAAG,CAAlB,IAAuBW,cAAc,GAAGC,eAAxC,CAApB;AACA,YAAME,YAAY,GAAGJ,KAAK,GAAGC,cAAR,GAAyBX,OAAO,GAAG,CAAxD;AACA,YAAMe,IAAI,GAAG;AACTL,QAAAA,KAAK,EAAEG,WADE;AAETN,QAAAA,MAAM,EAAEA,MAFC;AAGTI,QAAAA,cAHS;AAITC,QAAAA,eAJS;AAKTE,QAAAA;AALS,OAAb;AAOAV,MAAAA,WAAW,CAAC;AACRC,QAAAA,CAAC,EAAE,CADK;AAERC,QAAAA,CAAC,EAAEC,MAAM,GAAGT,aAFJ;AAGRS,QAAAA,MAAM,EAAET;AAHA,OAAD,CAAX;AAKA,aAAOiB,IAAP;AACH;;AACD,WAAO;AACHL,MAAAA,KAAK,EAAE,IADJ;AAEHH,MAAAA,MAAM,EAAE,IAFL;AAGHK,MAAAA,eAAe,EAAE,CAHd;AAIHD,MAAAA,cAAc,EAAE,CAJb;AAKHG,MAAAA,YAAY,EAAE;AALX,KAAP;AAOH,GA9B8B,EA8B5B,CAACN,UAAD,EAAaJ,WAAb,CA9B4B,CAA/B;AA+BA,SAAO,CAACK,eAAD,EAAkBN,QAAlB,EAA4BC,WAA5B,CAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useDimensions } from '@essex-js-toolkit/hooks';\r\nimport { useMemo, useState } from 'react';\r\nimport { HEADER_HEIGHT, PANEL_WIDTH } from '~/styles';\r\nconst PADDING = 5;\r\nexport function useGraphDimensions(ref) {\r\n const [position, setPosition] = useState({\r\n x: 0,\r\n y: 0,\r\n height: HEADER_HEIGHT,\r\n });\r\n const dimensions = useDimensions(ref);\r\n const graphDimensions = useMemo(() => {\r\n if (dimensions) {\r\n const { width, height } = dimensions;\r\n // TODO: these can flex, but a strict 20% can be quite large\r\n // maybe usea % with hard min/max widths\r\n const leftPanelWidth = PANEL_WIDTH; // width * 0.2\r\n const rightPanelWidth = PANEL_WIDTH; // width * 0.2\r\n const resizeWidth = width - PADDING * 2 - (leftPanelWidth + rightPanelWidth);\r\n const browserWidth = width - leftPanelWidth - PADDING * 2;\r\n const dims = {\r\n width: resizeWidth,\r\n height: height,\r\n leftPanelWidth,\r\n rightPanelWidth,\r\n browserWidth,\r\n };\r\n setPosition({\r\n x: 0,\r\n y: height - HEADER_HEIGHT,\r\n height: HEADER_HEIGHT,\r\n });\r\n return dims;\r\n }\r\n return {\r\n width: 1200,\r\n height: 1200,\r\n rightPanelWidth: 0,\r\n leftPanelWidth: 0,\r\n browserWidth: 1200,\r\n };\r\n }, [dimensions, setPosition]);\r\n return [graphDimensions, position, setPosition];\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c52566f2239e48ccdd7380b45b5bad7f.json b/node_modules/.cache/cache-loader/c52566f2239e48ccdd7380b45b5bad7f.json deleted file mode 100644 index 3fa8a55..0000000 --- a/node_modules/.cache/cache-loader/c52566f2239e48ccdd7380b45b5bad7f.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\styles.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\styles.ts","mtime":1620403249295},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgY29uc3QgQkFSX0hFSUdIVCA9IDEzOwpleHBvcnQgY29uc3QgQkFSX1dJRFRIID0gMTAwOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/styles.ts"],"names":["BAR_HEIGHT","BAR_WIDTH"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,EAAnB;AACP,OAAO,MAAMC,SAAS,GAAG,GAAlB","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport const BAR_HEIGHT = 13;\r\nexport const BAR_WIDTH = 100;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c56a23a1c94c30ee6a10d11d94e480f5.json b/node_modules/.cache/cache-loader/c56a23a1c94c30ee6a10d11d94e480f5.json deleted file mode 100644 index 28c7a87..0000000 --- a/node_modules/.cache/cache-loader/c56a23a1c94c30ee6a10d11d94e480f5.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Cell.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\Cell\\Cell.tsx","mtime":1631029334759},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBNYXJrIH0gZnJvbSAnLi4vdHlwZXMnOwppbXBvcnQgeyBCYXIgfSBmcm9tICcuL0Jhcic7CmltcG9ydCB7IENpcmNsZSB9IGZyb20gJy4vQ2lyY2xlJzsKaW1wb3J0IHsgVGV4dCB9IGZyb20gJy4vVGV4dCc7CmltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwpleHBvcnQgY29uc3QgQ2VsbCA9ICh7CiAgY29tbXVuaXR5LAogIGNvbHVtbiwKICBob3ZlcmVkLAogIHN0eWxlcyA9IHt9Cn0pID0+IHsKICBjb25zdCB7CiAgICBtYXJrID0gTWFyay5Ob25lLAogICAgd2lkdGgsCiAgICBoZWlnaHQKICB9ID0gY29sdW1uOwogIGNvbnN0IENvbXBvbmVudCA9IHVzZU1lbW8oKCkgPT4gewogICAgc3dpdGNoIChtYXJrKSB7CiAgICAgIGNhc2UgTWFyay5DaXJjbGU6CiAgICAgICAgcmV0dXJuIENpcmNsZTsKCiAgICAgIGNhc2UgTWFyay5SZWN0OgogICAgICAgIHJldHVybiBCYXI7CgogICAgICBkZWZhdWx0OgogICAgICAgIHJldHVybiBUZXh0OwogICAgfQogIH0sIFttYXJrXSk7CiAgY29uc3Qgc3R5bGUgPSB1c2VNZW1vKCgpID0+IHsKICAgIGNvbnN0IG1hcmtUeXBlID0gTWFya1ttYXJrXS50b0xvY2FsZUxvd2VyQ2FzZSgpOwoKICAgIGlmIChzdHlsZXMgJiYgc3R5bGVzW21hcmtUeXBlXSkgewogICAgICByZXR1cm4gc3R5bGVzW21hcmtUeXBlXTsKICAgIH0KCiAgICByZXR1cm4gewogICAgICBtYXJnaW5SaWdodDogMSwKICAgICAgd2lkdGgsCiAgICAgIGhlaWdodAogICAgfTsKICB9LCBbaGVpZ2h0LCB3aWR0aCwgbWFyaywgc3R5bGVzXSk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoInRkIiwgewogICAgc3R5bGU6IHN0eWxlCiAgfSwgUmVhY3QuY3JlYXRlRWxlbWVudChDb21wb25lbnQsIHsKICAgIGNvbW11bml0eTogY29tbXVuaXR5LAogICAgY29sdW1uOiBjb2x1bW4sCiAgICBob3ZlcmVkOiBob3ZlcmVkCiAgfSkpOwp9Ow=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/Cell/Cell.tsx"],"names":["Mark","Bar","Circle","Text","React","useMemo","Cell","community","column","hovered","styles","mark","None","width","height","Component","Rect","style","markType","toLocaleLowerCase","marginRight","createElement"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,IAAT,QAAqB,UAArB;AACA,SAASC,GA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AEA,MAAhC;AAAwCC,IAAAA,OAAO,EAAEA;AAAjD,GAA/B,CADI,CAAR;AAEH,CAzBM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Mark } from '../types';\r\nimport { Bar } from './Bar';\r\nimport { Circle } from './Circle';\r\nimport { Text } from './Text';\r\nimport React, { useMemo } from 'react';\r\nexport const Cell = ({ community, column, hovered, styles = {}, }) => {\r\n const { mark = Mark.None, width, height } = column;\r\n const Component = useMemo(() => {\r\n switch (mark) {\r\n case Mark.Circle:\r\n return Circle;\r\n case Mark.Rect:\r\n return Bar;\r\n default:\r\n return Text;\r\n }\r\n }, [mark]);\r\n const style = useMemo(() => {\r\n const markType = Mark[mark].toLocaleLowerCase();\r\n if (styles && styles[markType]) {\r\n return styles[markType];\r\n }\r\n return {\r\n marginRight: 1,\r\n width,\r\n height,\r\n };\r\n }, [height, width, mark, styles]);\r\n return (React.createElement(\"td\", { style: style },\r\n React.createElement(Component, { community: community, column: column, hovered: hovered })));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c5b32723a30bdb62b4f052ddfaef457b.json b/node_modules/.cache/cache-loader/c5b32723a30bdb62b4f052ddfaef457b.json deleted file mode 100644 index 4398c2f..0000000 --- a/node_modules/.cache/cache-loader/c5b32723a30bdb62b4f052ddfaef457b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalContainer.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\commands\\modals\\ModalContainer.tsx","mtime":1631029334688},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VJY29uQnV0dG9uU3R5bGVzLCB1c2VNb2RhbFN0eWxlcyB9IGZyb20gJy4uLy4uL3BhZ2VzL0dyYXBoVmlld2VyUGFnZS9ob29rcyc7CmltcG9ydCB7IE1vZGFsLCBDb250ZXh0dWFsTWVudSwgSWNvbkJ1dHRvbiwgVGV4dCB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCwgeyBtZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdmFyaWFudHMgfSBmcm9tICd+L3N0eWxlcyc7CmNvbn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RzLnh4TGFyZ2UKICB9LCBSZWFjdC5jcmVhdGVFbGVtZW50KCJiIiwgbnVsbCwgdGl0bGUpKSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoSWNvbkJ1dHRvbiwgewogICAgc3R5bGVzOiBpY29uQnV0dG9uU3R5bGVzLAogICAgaWNvblByb3BzOiBjYW5jZWxJY29uLAogICAgYXJpYUxhYmVsOiAiQ2xvc2UgcG9wdXAgbW9kYWwiLAogICAgb25DbGljazogaGlkZU1vZGFsCiAgfSkpLCBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRlbnRDb250YWluZXIsIG51bGwsIGNvbnRlbnQpKSk7Cn0pOwpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7CmNvbnN0IEhlYWRlciA9IHN0eWxlZC5kaXZgCgl0ZXh0LWFsaWduOiBjZW50ZXI7CglhbGlnbi1pdGVtczogY2VudGVyOwoJZmxleDogMSAxIGF1dG87CglkaXNwbGF5OiBmbGV4OwoJcGFkZGluZzogMTJweCAxMnB4IDE0cHggMjRweDsKYDsKY29uc3QgQ29udGVudENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCglwYWRkaW5nOiAxMnB4IDEycHggMTRweCAyNHB4OwpgOwpjb25zdCBUaXRsZSA9IHN0eWxlZC5zcGFuYAoJZmxleDogMjsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/commands/modals/ModalContainer.tsx"],"names":["useIconButtonStyles","useModalStyles","Modal","ContextualMenu","IconButton","Text","React","memo","styled","variants","dragOptions","moveMenuItemText","closeMenuItemText","menu","cancelIcon","iconName","ModalContainer","titleId","title","hideModal","isModalOpen","content","iconButtonStyles","modalStyles","createElement","Container","className","titleAriaId","isOpen","onDismiss","isModeless","isBlocking","styles","layerProps","eventBubblingEnabled","Header","Title","variant","xxLarge","iconProps","ariaLabel","onClick","ContentContainer","div","span"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,EAA8BC,cAA9B,QAAqD,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Y,KAApB,EAA2B,IAA3B,EACI9B,KAAK,CAACkB,aAAN,CAAoBnB,IAApB,EAA0B;AAAEgC,IAAAA,OAAO,EAAE5B,QAAQ,CAAC6B;AAApB,GAA1B,EACIhC,KAAK,CAACkB,aAAN,CAAoB,GAApB,EAAyB,IAAzB,EAA+BN,KAA/B,CADJ,CADJ,CADJ,EAIIZ,KAAK,CAACkB,aAAN,CAAoBpB,UAApB,EAAgC;AAAE4B,IAAAA,MAAM,EAAEV,gBAAV;AAA4BiB,IAAAA,SAAS,EAAEzB,UAAvC;AAAmD0B,IAAAA,SAAS,EAAE,mBAA9D;AAAmFC,IAAAA,OAAO,EAAEtB;AAA5F,GAAhC,CAJJ,CADJ,EAMIb,KAAK,CAACkB,aAAN,CAAoBkB,gBAApB,EAAsC,IAAtC,EAA4CrB,OAA5C,CANJ,CADI,CAAR;AAQH,CAXiC,CAA3B;AAYP,MAAMI,SAAS,GAAGjB,MAAM,CAACmC,GAAK,EAA9B;AACA,MAAMR,MAAM,GAAG3B,MAAM,CAACmC,GAAK;AAC3B;AACA;AACA;AACA;AACA;AACA,CANA;AAOA,MAAMD,gBAAgB,GAAGlC,MAAM,CAACmC,GAAK;AACrC;AACA,CAFA;AAGA,MAAMP,KAAK,GAAG5B,MAAM,CAACoC,IAAM;AAC3B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useIconButtonStyles, useModalStyles, } from '../../pages/GraphViewerPage/hooks';\r\nimport { Modal, ContextualMenu, IconButton, Text, } from '@fluentui/react';\r\nimport React, { memo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { variants } from '~/styles';\r\nconst dragOptions = {\r\n moveMenuItemText: 'Move',\r\n closeMenuItemText: 'Close',\r\n menu: ContextualMenu,\r\n};\r\nconst cancelIcon = { iconName: 'Cancel' };\r\nexport const ModalContainer = memo(function ModalContainer({ titleId, title, hideModal, isModalOpen, content, }) {\r\n const iconButtonStyles = useIconButtonStyles();\r\n const modalStyles = useModalStyles();\r\n return (React.createElement(Container, { className: 'modal-container' },\r\n React.createElement(Modal, { titleAriaId: titleId, isOpen: isModalOpen, onDismiss: hideModal, isModeless: false, isBlocking: false, dragOptions: dragOptions, styles: modalStyles, layerProps: { eventBubblingEnabled: true } },\r\n React.createElement(Header, null,\r\n React.createElement(Title, null,\r\n React.createElement(Text, { variant: variants.xxLarge },\r\n React.createElement(\"b\", null, title))),\r\n React.createElement(IconButton, { styles: iconButtonStyles, iconProps: cancelIcon, ariaLabel: \"Close popup modal\", onClick: hideModal })),\r\n React.createElement(ContentContainer, null, content))));\r\n});\r\nconst Container = styled.div ``;\r\nconst Header = styled.div `\r\n\ttext-align: center;\r\n\talign-items: center;\r\n\tflex: 1 1 auto;\r\n\tdisplay: flex;\r\n\tpadding: 12px 12px 14px 24px;\r\n`;\r\nconst ContentContainer = styled.div `\r\n\tpadding: 12px 12px 14px 24px;\r\n`;\r\nconst Title = styled.span `\r\n\tflex: 2;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json b/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json deleted file mode 100644 index c6f2609..0000000 --- a/node_modules/.cache/cache-loader/c70cc2ece3aa1d2022b52eadda7bb7b1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\constants.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\constants.ts","mtime":1631040468991},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgY29uc3QgUk9PVF9DT01NVU5JVFlfSUQgPSAnLTEnOwpleHBvcnQgY29uc3QgQVVUT0xBWU9VVF9VUkwgPSBwcm9jZXNzLmVudi5BVVRPTEFZT1VUX1VSTDs="},{"version":3,"sources":["C:/ws/graph-drill/src/constants.ts"],"names":["ROOT_COMMUNITY_ID","AUTOLAYOUT_URL","process","env"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAG,IAA1B;AACP,OAAO,MAAMC,cAAc,GAAGC,OAAO,CAACC,GAAR,CAAYF,cAAnC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport const ROOT_COMMUNITY_ID = '-1';\r\nexport const AUTOLAYOUT_URL = process.env.AUTOLAYOUT_URL;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c77f2d22e22c0dc022617c0c2ad1c397.json b/node_modules/.cache/cache-loader/c77f2d22e22c0dc022617c0c2ad1c397.json deleted file mode 100644 index f8dfbd6..0000000 --- a/node_modules/.cache/cache-loader/c77f2d22e22c0dc022617c0c2ad1c397.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ColorSelector.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ColorSelector.tsx","mtime":1631029334815},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29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tZW50KFRoZW1hdGljUGFsZXR0ZVBpY2tlciwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcHMpKSkpKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ColorSelector/ColorSelector.tsx"],"names":["DataBinding","ManualPicker","ScaledPicker","ThematicPalettePicker","Pivot","PivotItem","React","useCallback","styled","ColorSelector","props","encoding","onChange","handlePivotLinkClick","item","binding","itemKey","createElement","Container","onLinkClick","styles","root","textAlign","selectedKey","headerText","Scaled","Object","assign","Fixed","Palette","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,aAA5B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,qBAAT,QAAsC,yBAAtC;AACA,SAASC,KAAT,EAAgBC,SAAhB,QAAiC,iBAAjC;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,aAAa,GAAGC,KAAK,IAAI;AAClC,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAyBF,KAA/B;AACA,QAAMG,oBAAoB,GAAGN,WAAW,CAACO,IAAI,IAAI;AAC7CF,IAAAA,QAAQ,CAAC;AACLG,MAAAA,OAAO,EAAED,IAAI,CAACJ,KAAL,CAAWM;AADf,KAAD,CAAR;AAGH,GAJuC,EAIrC,CAACJ,QAAD,CAJqC,CAAxC;AAKA,SAAQN,KAAK,CAACW,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJZ,KAAK,CAACW,aAAN,CAAoBb,KAApB,EAA2B;AAAEe,IAAAA,WAAW,EAAEN,oBAAf;AAAqCO,IAAAA,MAAM,EAAE;AAChEC,MAAAA,IAAI,EAAE;AACFC,QAAAA,SAAS,EAAE;AADT;AAD0D,KAA7C;AAIpBC,IAAAA,WAAW,EAAEZ,QAAQ,CAACI;AAJF,GAA3B,EAKIT,KAAK,CAACW,aAAN,CAAoBZ,SAApB,EAA+B;AAAEmB,IAAAA,UAAU,EAAE,QAAd;AAAwBR,IAAAA,OAAO,EAAEhB,WAAW,CAACyB;AAA7C,GAA/B,EACInB,KAAK,CAACW,aAAN,CAAoBf,YAApB,EAAkCwB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBjB,KAAlB,CAAlC,CADJ,CALJ,EAOIJ,KAAK,CAACW,aAAN,CAAoBZ,SAApB,EAA+B;AAAEmB,IAAAA,UAAU,EAAE,OAAd;AAAuBR,IAAAA,OAAO,EAAEhB,WAAW,CAAC4B;AAA5C,GAA/B,EACItB,KAAK,CAACW,aAAN,CAAoBhB,YAApB,EAAkCyB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBjB,KAAlB,CAAlC,CADJ,CAPJ,EASIJ,KAAK,CAACW,aAAN,CAAoBZ,SAApB,EAA+B;AAAEmB,IAAAA,UAAU,EAAE,SAAd;AAAyBR,IAAAA,OAAO,EAAEhB,WAAW,CAAC6B;AAA9C,GAA/B,EACIvB,KAAK,CAACW,aAAN,CAAoBd,qBAApB,EAA2CuB,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBjB,KAAlB,CAA3C,CADJ,CATJ,CADI,CAAR;AAYH,CAnBM;AAoBP,MAAMQ,SAAS,GAAGV,MAAM,CAACsB,GAAK,EAA9B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { DataBinding } from '../../types';\r\nimport { ManualPicker } from './ManualPicker';\r\nimport { ScaledPicker } from './ScaledPicker';\r\nimport { ThematicPalettePicker } from './ThematicPalettePicker';\r\nimport { Pivot, PivotItem } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\n/**\r\n * Represents a complex color selector for a dataset.\r\n * Provides the options for each FieldBinding enum value:\r\n * - Fixed: manually chosen hex color\r\n * - Palette: a thematic-bound named color (so it auto-updates with theme changes)\r\n * - Scale: field-bound to a thematic scale with domain, range, etc.\r\n */\r\nexport const ColorSelector = props => {\r\n const { encoding, onChange } = props;\r\n const handlePivotLinkClick = useCallback(item => {\r\n onChange({\r\n binding: item.props.itemKey,\r\n });\r\n }, [onChange]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Pivot, { onLinkClick: handlePivotLinkClick, styles: {\r\n root: {\r\n textAlign: 'center',\r\n },\r\n }, selectedKey: encoding.binding },\r\n React.createElement(PivotItem, { headerText: 'Scaled', itemKey: DataBinding.Scaled },\r\n React.createElement(ScaledPicker, Object.assign({}, props))),\r\n React.createElement(PivotItem, { headerText: 'Fixed', itemKey: DataBinding.Fixed },\r\n React.createElement(ManualPicker, Object.assign({}, props))),\r\n React.createElement(PivotItem, { headerText: 'Palette', itemKey: DataBinding.Palette },\r\n React.createElement(ThematicPalettePicker, Object.assign({}, props))))));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c7e1433f695f98d34ead4069a318107e.json b/node_modules/.cache/cache-loader/c7e1433f695f98d34ead4069a318107e.json deleted file mode 100644 index bc44fd6..0000000 --- a/node_modules/.cache/cache-loader/c7e1433f695f98d34ead4069a318107e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\Sparkbar.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\DomainBrush\\Sparkbar.tsx","mtime":1631034960474},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBTZWxlY3Rpb25TdGF0ZSB9IGZyb20gJ0B0aGVtYXRpYy9jb3JlJzsKaW1wb3J0IHsgcmVjdCwgbGluZSwgc3ZnIH0gZnJvbSAnQHRoZW1hdGljL2QzJzsKaW1wb3J0IHsgdXNlVGhlbWF0aWMgfSBmcm9tICdAdGhlbWF0aWMvcmVhY3QnOwppbXBvcnQgeyBicnVzaFggfSBmcm9tICdkMy1icnVzaCc7CmltcG9ydCB7IHNjYWxlTGluZWFyIH0gZnJvbSAnZDMtc2NhbGUnOwppbXBvcnQgeyBzZWxlY3QgfSBmcm9tICdkMy1zZWxlY3Rpb24nOwppbXBvcnQgUmVhY3QsIHsgbWVtbywgdXNlQ2FsbGJhY2ssIHV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nlc3NvcihjdXIsIGlkeCksIGFjY1swXSksIE1hdGgubWF4KGFjY2Vzc29yKGN1ciwgaWR4KSwgYWNjWzFdKV07CiAgfSwgW051bWJlci5NQVhfVkFMVUUsIE51bWJlci5NSU5fVkFMVUVdKTsKfQoKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCXdpZHRoOiAkeyh7CiAgd2lkdGgKfSkgPT4gd2lkdGh9cHg7CgloZWlnaHQ6ICR7KHsKICBoZWlnaHQKfSkgPT4gaGVpZ2h0fXB4OwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/DomainBrush/Sparkbar.tsx"],"names":["SelectionState","rect","line","svg","useThematic","brushX","scaleLinear","select","React","memo","useCallback","useLayoutEffect","useRef","useState","useMemo","styled","Sparkbar","data","domain","brushedDomain","width","height","barWidth","barGap","nodata","selected","onClick","x","y","marked","onBrushEnd","xLinear","range","clamp","xScale","d","i","hScale","ext","getExtent","h","length","theme","ref","handleClick","nodataFn","hovered","setHovered","handleHover","barGroup","setBarGroup","brushSelection","setBrushSelection","handleBrushEnd","event","sourceEvent","selection","newdomain","invert","brush","on","current","selectAll","remove","plot","append","attr","call","chart","plotArea","bg","b","yScale","enter","cursor","style","highlight","scales","nominal","hex","getSelectionState","NoData","Hovered","sel","Selected","Normal","selectionState","mark","stroke","move","start","end","createElement","Container","accessor","reduce","acc","cur","idx","Math","min","max","Number","MAX_VALUE","MIN_VALUE","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,gBAA/B;AACA,SAASC,IAAT,EAAeC,IAAf,EAAqBC,GAArB,QAAgC,cAAhC;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,MAAT,QAAuB,UAAvB;AACA,SAASC,WAAT,QAA4B,UAA5B;AACA,SAASC,MAAT,QAAuB,cAAvB;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,WAAtB,EAAmCC,eAAnC,EAAoDC,MAApD,EAA4DC,Q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,IAAAA,GAAG,EAAEA,GAAP;AAAYvB,IAAAA,KAAK,EAAEA,KAAnB;AAA0BC,IAAAA,MAAM,EAAEA;AAAlC,GAA/B,CAAP;AACH,CAxJ2B,CAArB;;AAyJP,SAASkB,SAAT,CAAmBtB,IAAnB,EAAyB6E,QAAzB,EAAmC;AAC/B,SAAO7E,IAAI,CAAC8E,MAAL,CAAY,CAACC,GAAD,EAAMC,GAAN,EAAWC,GAAX,KAAmB;AAClC,WAAO,CACHC,IAAI,CAACC,GAAL,CAASN,QAAQ,CAACG,GAAD,EAAMC,GAAN,CAAjB,EAA6BF,GAAG,CAAC,CAAD,CAAhC,CADG,EAEHG,IAAI,CAACE,GAAL,CAASP,QAAQ,CAACG,GAAD,EAAMC,GAAN,CAAjB,EAA6BF,GAAG,CAAC,CAAD,CAAhC,CAFG,CAAP;AAIH,GALM,EAKJ,CAACM,MAAM,CAACC,SAAR,EAAmBD,MAAM,CAACE,SAA1B,CALI,CAAP;AAMH;;AACD,MAAMX,SAAS,GAAG9E,MAAM,CAAC0F,GAAK;AAC9B,UAAU,CAAC;AAAErF,EAAAA;AAAF,CAAD,KAAeA,KAAM;AAC/B,WAAW,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAgBA,MAAO;AAClC,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { SelectionState } from '@thematic/core';\r\nimport { rect, line, svg } from '@thematic/d3';\r\nimport { useThematic } from '@thematic/react';\r\nimport { brushX } from 'd3-brush';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { select } from 'd3-selection';\r\nimport React, { memo, useCallback, useLayoutEffect, useRef, useState, useMemo, } from 'react';\r\nimport styled from 'styled-components';\r\nexport const Sparkbar = memo(function Sparkbar({ data, domain, brushedDomain, width, height, barWidth = 8, barGap = 1, nodata, selected, onClick, x, y, marked, onBrushEnd, }) {\r\n const xLinear = useMemo(() => scaleLinear()\r\n .domain(domain)\r\n .range([barWidth / 2, width - barWidth / 2])\r\n .clamp(true), [domain, width, barWidth]);\r\n const xScale = useMemo(() => (d, i) => xLinear(x(d, i)), [x, xLinear]);\r\n const hScale = useMemo(() => {\r\n const ext = getExtent(data, y);\r\n const h = scaleLinear().domain(ext).range([0, height]);\r\n return (d, i) => h(d.length);\r\n }, [data, y, height]);\r\n const theme = useThematic();\r\n const ref = useRef(null);\r\n const handleClick = useCallback(d => onClick && onClick(d), [onClick]);\r\n const nodataFn = useCallback((d) => {\r\n if (nodata) {\r\n return nodata(d);\r\n }\r\n return false;\r\n }, [nodata]);\r\n const [hovered, setHovered] = useState(null);\r\n const handleHover = useCallback(d => setHovered(d), []);\r\n const [barGroup, setBarGroup] = useState();\r\n const [brushSelection, setBrushSelection] = useState();\r\n const handleBrushEnd = useCallback(event => {\r\n if (onBrushEnd) {\r\n if (event?.sourceEvent) {\r\n const { selection } = event;\r\n const newdomain = [\r\n xLinear.invert(selection[0]),\r\n xLinear.invert(selection[1]),\r\n ];\r\n onBrushEnd(newdomain);\r\n }\r\n }\r\n }, [onBrushEnd, xLinear]);\r\n const brush = useMemo(() => brushX().on('end', handleBrushEnd), [handleBrushEnd]);\r\n useLayoutEffect(() => {\r\n // TODO: stage this so it doesn't reset, but rather updates\r\n select(ref.current).selectAll('svg').remove();\r\n const plot = select(ref.current)\r\n .append('svg')\r\n .attr('class', 'sparkbar-chart')\r\n .attr('width', width)\r\n .attr('height', height)\r\n .call(svg, theme.chart())\r\n .append('g')\r\n .attr('class', 'sparkbar-plotarea');\r\n plot\r\n .append('rect')\r\n .attr('width', width)\r\n .attr('height', height)\r\n .call(rect, theme.plotArea());\r\n const bg = plot.append('g').attr('class', 'sparkbar-bars');\r\n setBarGroup(bg);\r\n // only actually append the brush interaction if there is an event to handle it\r\n if (onBrushEnd) {\r\n const b = plot.append('g').attr('class', 'brush').call(brush);\r\n b.select('.selection').attr('stroke', 'none');\r\n setBrushSelection(b);\r\n }\r\n }, [theme, data, width, height, brush, onBrushEnd]);\r\n useLayoutEffect(() => {\r\n if (data.length > 0) {\r\n const yScale = (d, i) => height - (hScale(d, i) || 0);\r\n if (barGroup) {\r\n barGroup.selectAll('*').remove();\r\n barGroup\r\n .selectAll('.bar')\r\n .data(data)\r\n .enter()\r\n .append('line')\r\n .attr('class', 'bar')\r\n .attr('x1', xScale)\r\n .attr('x2', xScale)\r\n .attr('y1', yScale)\r\n .attr('y2', height)\r\n .call(line, theme.line())\r\n .attr('stroke-width', barWidth);\r\n }\r\n }\r\n }, [\r\n theme,\r\n data,\r\n barGroup,\r\n width,\r\n height,\r\n barWidth,\r\n barGap,\r\n nodataFn,\r\n xScale,\r\n hScale,\r\n ]);\r\n useLayoutEffect(() => {\r\n if (barGroup) {\r\n barGroup\r\n .selectAll('.bar')\r\n .on('mouseover', (d) => handleHover(d))\r\n .on('mouseout', () => handleHover(null))\r\n .on('click', handleClick);\r\n }\r\n }, [data, barGroup, handleClick, handleHover]);\r\n useLayoutEffect(() => {\r\n const cursor = onClick ? 'pointer' : 'default';\r\n if (barGroup) {\r\n barGroup.selectAll('.bar').style('cursor', cursor);\r\n }\r\n }, [data, barGroup, onClick]);\r\n // generate a complimentary highlight\r\n const highlight = useMemo(() => theme.scales().nominal(10)(1).hex(), [theme]);\r\n useLayoutEffect(() => {\r\n const getSelectionState = (d) => {\r\n if (nodataFn(d)) {\r\n return SelectionState.NoData;\r\n }\r\n if (d === hovered) {\r\n return SelectionState.Hovered;\r\n }\r\n const sel = selected ? selected(d) : false;\r\n if (sel) {\r\n return SelectionState.Selected;\r\n }\r\n return SelectionState.Normal;\r\n };\r\n if (barGroup) {\r\n barGroup.selectAll('.bar').attr('stroke', (d) => {\r\n const selectionState = getSelectionState(d);\r\n const mark = marked ? marked(d) : false;\r\n return mark\r\n ? highlight\r\n : theme\r\n .line({\r\n selectionState,\r\n })\r\n .stroke()\r\n .hex();\r\n });\r\n }\r\n }, [theme, data, barGroup, highlight, nodataFn, hovered, selected, marked]);\r\n useLayoutEffect(() => {\r\n if (brushedDomain && brushSelection && brush) {\r\n if (brushedDomain[0] === domain[0] && brushedDomain[1] === domain[1]) {\r\n // Clear out brush when date range is maxed out.\r\n brush.move(brushSelection, null);\r\n }\r\n else {\r\n const [start, end] = brushedDomain;\r\n brush.move(brushSelection, [xLinear(start) || 0, xLinear(end) || 1]);\r\n }\r\n }\r\n }, [brushedDomain, domain, xLinear, brush, brushSelection]);\r\n return React.createElement(Container, { ref: ref, width: width, height: height });\r\n});\r\nfunction getExtent(data, accessor) {\r\n return data.reduce((acc, cur, idx) => {\r\n return [\r\n Math.min(accessor(cur, idx), acc[0]),\r\n Math.max(accessor(cur, idx), acc[1]),\r\n ];\r\n }, [Number.MAX_VALUE, Number.MIN_VALUE]);\r\n}\r\nconst Container = styled.div `\r\n\twidth: ${({ width }) => width}px;\r\n\theight: ${({ height }) => height}px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c94066049d3fb36026656828a48dd3b6.json b/node_modules/.cache/cache-loader/c94066049d3fb36026656828a48dd3b6.json deleted file mode 100644 index d1f5f64..0000000 --- a/node_modules/.cache/cache-loader/c94066049d3fb36026656828a48dd3b6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\ResizableBrowser.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\ResizableBrowser.tsx","mtime":1631029334709},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBDb21tdW5pdHlMaW5ldXAgfSBmcm9tICcuLi8uLi8uLi9Db21tdW5pdHlMaW5ldXAnOwppbXBvcnQgeyBIaWVyYXJjaHlCcm93c2VyUGFuZWwgfSBmcm9tICcuLi8uLi8uLi9IaWVyYXJjaHlCcm93c2VyUGFuZWwnOwppbXBvcnQgeyBQaXZvdENvbnRlbnQgfSBmcm9tICcuLi8uLi9QaXZvdENvbnRlbnQnOwppbXBvcnQgeyBESVJFQ1RJT04gfSBmcm9tICcuL2hvb2tzL3VzZVJlc2l6ZUhhbmRsZXJzJzsKaW1wb3J0IHsgSWNvbkJ1dHRvbiB9IGZyb20gJ0BmbHVlbnR1aS9yZWFjdCc7CmltcG9ydCBSZWFjdCwgeyBtZW1vLCB1c2VNZW1vLCB1c2VDYWxsYmFjaywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdC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iBjZW50ZXI7CglvdmVyZmxvdy14OiBoaWRkZW47CglvdmVyZmxvdy15OiAkeyh7CiAgaXNEZWZhdWx0T3Blbgp9KSA9PiBpc0RlZmF1bHRPcGVuID8gJ2F1dG8nIDogJ2hpZGRlbid9OwpgOwpjb25zdCBQYW5lbENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCgl2aXNpYmlsaXR5OiAkeyh7CiAgaXNEZWZhdWx0T3Blbgp9KSA9PiBpc0RlZmF1bHRPcGVuID8gJ3Zpc2libGUnIDogJ2hpZGRlbid9OwpgOwpjb25zdCBTdHlsZWRSbmQgPSBzdHlsZWQoUm5kKWAKCXBvc2l0aW9uOiBhYnNvbHV0ZTsKCXdpZHRoOiAxMDAlOwoJaGVpZ2h0OiAxMDAlOwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/ResizableBrowser.tsx"],"names":["CommunityLineup","HierarchyBrowserPanel","PivotContent","DIRECTION","IconButton","React","memo","useMemo","useCallback","useState","Rnd","styled","HEADER_HEIGHT","BrowserOptions","enabledState","bottom","bottomLeft","bottomRight","left","right","top","topLeft","topRight","HEIGHT_MIN","ResizableBrowser","width","position","handleResizeStop","handleResizeStart","handleButtonClick","isDefaultOpen","height","panelContent","setPanelContent","Lineup","iconName","handleClick","direction","DOWN","UP","tableHeight","content","Browser","createElement","StyledRnd","size","x","y","bounds","onResizeStop","disableDragging","enableResizing","onResizeStart","BottomContainer","Header","iconProps","text","title","onClick","selectedKey","setSelectedKey","PanelContainer","div","theme","application","background","hex","border"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,eAAT,QAAgC,0BAAhC;AACA,SAASC,qBAAT,QAAsC,gCAAtC;AACA,SAASC,YAAT,QAA6B,oBAA7B;AACA,SAASC,SAAT,QAA0B,2BAA1B;AACA,SAASC,UAAT,QAA2B,iBAA3B;AACA,OAAOC,KAAP,IAAgBC,IAAhB,EAAsBC,OAAtB,EAA+BC,WAA/B,EAA4CC,QAA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I,EAAE,eAFmB;AAEFC,IAAAA,KAAK,EAAE,eAFL;AAEsBC,IAAAA,OAAO,EAAEtB;AAF/B,GAAhC,CADJ,EAII/B,KAAK,CAACsC,aAAN,CAAoBzC,YAApB,EAAkC;AAAEyD,IAAAA,WAAW,EAAE3B,YAAf;AAA6B4B,IAAAA,cAAc,EAAE3B;AAA7C,GAAlC,CAJJ,CADJ,EAMI5B,KAAK,CAACsC,aAAN,CAAoBkB,cAApB,EAAoC;AAAE/B,IAAAA,aAAa,EAAEA;AAAjB,GAApC,EAAsEW,OAAtE,CANJ,CADI,CAAR;AAQH,CAvBmC,CAA7B;AAwBP,MAAMa,MAAM,GAAG3C,MAAM,CAACmD,GAAK;AAC3B;AACA;AACA;AACA,CAJA;AAKA,MAAMT,eAAe,GAAG1C,MAAM,CAACmD,GAAK;AACpC;AACA;AACA,eAAe,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,UAApB,GAAiCC,GAAjC,EAAuC;AACrE,qBAAqB,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBG,MAApB,GAA6BD,GAA7B,EAAmC;AACvE;AACA;AACA,eAAe,CAAC;AAAEpC,EAAAA;AAAF,CAAD,KAAwBA,aAAa,GAAG,MAAH,GAAY,QAAU;AAC1E,CARA;AASA,MAAM+B,cAAc,GAAGlD,MAAM,CAACmD,GAAK;AACnC,eAAe,CAAC;AAAEhC,EAAAA;AAAF,CAAD,KAAwBA,aAAa,GAAG,SAAH,GAAe,QAAU;AAC7E,CAFA;AAGA,MAAMc,SAAS,GAAGjC,MAAM,CAACD,GAAD,CAAO;AAC/B;AACA;AACA;AACA,CAJA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { CommunityLineup } from '../../../CommunityLineup';\r\nimport { HierarchyBrowserPanel } from '../../../HierarchyBrowserPanel';\r\nimport { PivotContent } from '../../PivotContent';\r\nimport { DIRECTION } from './hooks/useResizeHandlers';\r\nimport { IconButton } from '@fluentui/react';\r\nimport React, { memo, useMemo, useCallback, useState } from 'react';\r\nimport { Rnd } from 'react-rnd';\r\nimport styled from 'styled-components';\r\nimport { HEADER_HEIGHT } from '~/styles';\r\nimport { BrowserOptions } from '~/types';\r\nconst enabledState = {\r\n bottom: false,\r\n bottomLeft: false,\r\n bottomRight: false,\r\n left: false,\r\n right: false,\r\n top: true,\r\n topLeft: false,\r\n topRight: false,\r\n};\r\nconst HEIGHT_MIN = 100;\r\nexport const ResizableBrowser = memo(function ResizableBrowser({ width, position, handleResizeStop, handleResizeStart, handleButtonClick, }) {\r\n const isDefaultOpen = useMemo(() => position.height > HEIGHT_MIN, [position]);\r\n const [panelContent, setPanelContent] = useState(BrowserOptions.Lineup);\r\n const iconName = useMemo(() => (isDefaultOpen ? 'DoubleChevronDown12' : 'DoubleChevronUp12'), [isDefaultOpen]);\r\n const handleClick = useCallback(() => {\r\n const direction = isDefaultOpen ? DIRECTION.DOWN : DIRECTION.UP;\r\n handleButtonClick(direction);\r\n }, [handleButtonClick, isDefaultOpen]);\r\n const tableHeight = useMemo(() => position.height - HEADER_HEIGHT, [position]);\r\n const content = useMemo(() => {\r\n if (panelContent === BrowserOptions.Browser) {\r\n return React.createElement(HierarchyBrowserPanel, null);\r\n }\r\n return React.createElement(CommunityLineup, { width: width, height: tableHeight });\r\n }, [panelContent, width, tableHeight]);\r\n return (React.createElement(StyledRnd, { size: { width, height: position.height }, position: { x: 0, y: position.y }, bounds: \"parent\", onResizeStop: handleResizeStop, disableDragging: true, enableResizing: enabledState, onResizeStart: handleResizeStart },\r\n React.createElement(BottomContainer, { isDefaultOpen: isDefaultOpen },\r\n React.createElement(Header, null,\r\n React.createElement(IconButton, { iconProps: {\r\n iconName,\r\n }, text: \"Resize Viewer\", title: \"Resize Viewer\", onClick: handleClick }),\r\n React.createElement(PivotContent, { selectedKey: panelContent, setSelectedKey: setPanelContent })),\r\n React.createElement(PanelContainer, { isDefaultOpen: isDefaultOpen }, content))));\r\n});\r\nconst Header = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n`;\r\nconst BottomContainer = styled.div `\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground: ${({ theme }) => theme.application().background().hex()};\r\n\tborder: 1px solid ${({ theme }) => theme.application().border().hex()};\r\n\ttext-align: center;\r\n\toverflow-x: hidden;\r\n\toverflow-y: ${({ isDefaultOpen }) => (isDefaultOpen ? 'auto' : 'hidden')};\r\n`;\r\nconst PanelContainer = styled.div `\r\n\tvisibility: ${({ isDefaultOpen }) => (isDefaultOpen ? 'visible' : 'hidden')};\r\n`;\r\nconst StyledRnd = styled(Rnd) `\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/c9c19bc832e364263e6f731479dd8040.json b/node_modules/.cache/cache-loader/c9c19bc832e364263e6f731479dd8040.json deleted file mode 100644 index 7a263aa..0000000 --- a/node_modules/.cache/cache-loader/c9c19bc832e364263e6f731479dd8040.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\GraphViewer\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\GraphViewer\\index.tsx","mtime":1631029334787},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVh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GdlUmFuZ2VbMF0sCiAgICBtYXhXaWR0aDogZWRnZVJhbmdlWzFdCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZXMsIHsKICAgIGRpc2FibGVkOiAhc2hvd05vZGVzLAogICAgY29sb3I6IG5vZGVDb2xvcml6ZXIsCiAgICBwb3NpdGlvbjogbm9kZVBvc2l0aW9ucywKICAgIHdlaWdodDogbm9kZVdlaWdodGVyLAogICAgbWluUmFkaXVzOiBub2RlUmFuZ2VbMF0sCiAgICBtYXhSYWRpdXM6IG5vZGVSYW5nZVsxXQogIH0pLCBSZWFjdC5jcmVhdGVFbGVtZW50KE5vZGVTZXRIaWdobGlnaHQsIHsKICAgIGtleTogYGhvdmVyZWRgLAogICAgdmVydGV4SWRzOiBob3ZlcmVkTm9kZUlkcywKICAgIGNvbG9yOiBob3ZlckNvbG9yCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoTm9kZVNldEhpZ2hsaWdodCwgewogICAga2V5OiBgc2VsZWN0ZWRgLAogICAgdmVydGV4SWRzOiBzZWxlY3RlZE5vZGVJZHMsCiAgICBjb2xvcjogaG92ZXJDb2xvcgogIH0pLCBSZWFjdC5jcmVhdGVFbGVtZW50KEhpZ2hsaWdodEhvdmVyZWROb2RlLCB7CiAgICBjb2xvcjogaG92ZXJDb2xvciwKICAgIG9uSG92ZXI6IGhhbmRsZU5vZGVIb3ZlcgogIH0pKSk7Cn07CmNvbnN0IEZsZXhDb2x1bW4gPSBzdHlsZWQuZGl2YAoJZGlzcGxheTogZmxleDsKCWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/GraphViewer/index.tsx"],"names":["useBackgroundColor","useHoveredNodeColor","useNodeColorScale","useNodeIds","useNodeWeighter","useEdgeColorizer","useEdgeWeighter","useEdgeSizeRange","useNodeSizeRange","useNodePositions","usePositions","GraphView","Camera","NodeSetHighlight","Nodes","Edges","HighlightHoveredNode","React","useCallback","styled","useEdgesVisible","useNodesVisible","useSetHoveredNode","useGraphViewType","useSettings","useSelectedNodesState","GraphViewer","data","style","width","height","hoveredNodes","cameraBounds","onRendererInitialized","transition","interactive","settings","view","positionMaps","nodePositions","selectedIds","hoveredNodeIds","selectedNodeIds","backgroundColor","hoverColor","showNodes","nodeColorizer","nodeWeighter","nodeRange","showEdges","edgeColorizer","edgeWeighter","edgeRange","setHoveredNode","handleNodeHover","id","handleInitialize","renderer","createElement","FlexColumn","onInitialize","flex","undefined","bounds","transitionDuration","color","weight","hideOnMove","hideEdgesWhileMoving","disabled","minWidth","maxWidth","position","minRadius","maxRadius","key","vertexIds","onHover","div"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,kBAAT,EAA6BC,mBAA7B,EAAkDC,iBAAlD,EAAqEC,UAArE,EAAiFC,eAAjF,EAAkGC,gBAAlG,EAAoHC,eAApH,EAAqIC,gBAArI,EAAuJC,gBAAvJ,EAAyKC,gBAAzK,QAAkM,mBAAlM;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,SAAT,EAAoBC,MAApB,EAA4BC,gBAA5B,EAA8CC,KAA9C,EAAqDC,KAArD,EAA4DC,oBAA5D,QAAyF,oBAAzF;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,eAAT,EAA0BC,eAA1B,EAA2CC,iBAA3C,EAA8DC,gBAA9D,EAAgFC,WAAhF,EAA6FC,qBAA7F,QAA2H,SAA3H;AACA;AACA;AACA;AACA;;AACA,OAAO,MAAMC,WAAW,GAAG,CAAC;AAAEC,EAAAA,IAAF;AAAQC,EAAAA,KAAR;AAAeC,EAAAA,KAAK,GAAG,IAAvB;AAA6BC,EAAAA,MAAM,GAAG,IAAtC;AAA4CC,EAAAA,YAA5C;AAA0DC,EAAAA,YAA1D;AAAwEC,EAAAA,qBAAxE;AAA+FC,EAAAA,UAAU,GAAG,CAA5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AAC,CAAD;AAA1I,GAA3B,CAPJ,EAQI/B,KAAK,CAACyC,aAAN,CAAoB7C,gBAApB,EAAsC;AAAE8D,IAAAA,GAAG,EAAG,SAAR;AAAkBC,IAAAA,SAAS,EAAEnC,cAA7B;AAA6CwB,IAAAA,KAAK,EAAErB;AAApD,GAAtC,CARJ,EASI3B,KAAK,CAACyC,aAAN,CAAoB7C,gBAApB,EAAsC;AAAE8D,IAAAA,GAAG,EAAG,UAAR;AAAmBC,IAAAA,SAAS,EAAElC,eAA9B;AAA+CuB,IAAAA,KAAK,EAAErB;AAAtD,GAAtC,CATJ,EAUI3B,KAAK,CAACyC,aAAN,CAAoB1C,oBAApB,EAA0C;AAAEiD,IAAAA,KAAK,EAAErB,UAAT;AAAqBiC,IAAAA,OAAO,EAAEvB;AAA9B,GAA1C,CAVJ,CALI,CAAR;AAgBH,CAvCM;AAwCP,MAAMK,UAAU,GAAGxC,MAAM,CAAC2D,GAAK;AAC/B;AACA;AACA,CAHA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useBackgroundColor, useHoveredNodeColor, useNodeColorScale, useNodeIds, useNodeWeighter, useEdgeColorizer, useEdgeWeighter, useEdgeSizeRange, useNodeSizeRange, useNodePositions, } from '../../hooks/graph';\r\nimport { usePositions } from './hooks';\r\nimport { GraphView, Camera, NodeSetHighlight, Nodes, Edges, HighlightHoveredNode, } from '@graspologic/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useEdgesVisible, useNodesVisible, useSetHoveredNode, useGraphViewType, useSettings, useSelectedNodesState, } from '~/state';\r\n/**\r\n * This graph viewer is used for both the large graph and the minimap\r\n * @param param0\r\n */\r\nexport const GraphViewer = ({ data, style, width = 1000, height = 1000, hoveredNodes, cameraBounds, onRendererInitialized, transition = 0, interactive = false, }) => {\r\n const [settings] = useSettings();\r\n const view = useGraphViewType();\r\n const positionMaps = usePositions(view);\r\n const nodePositions = useNodePositions(positionMaps, view, transition);\r\n const selectedIds = useSelectedNodesState(); // selection via search\r\n const hoveredNodeIds = useNodeIds(hoveredNodes);\r\n const selectedNodeIds = useNodeIds(selectedIds);\r\n const backgroundColor = useBackgroundColor();\r\n const hoverColor = useHoveredNodeColor();\r\n const showNodes = useNodesVisible();\r\n const nodeColorizer = useNodeColorScale();\r\n const nodeWeighter = useNodeWeighter();\r\n const nodeRange = useNodeSizeRange();\r\n const showEdges = useEdgesVisible();\r\n const edgeColorizer = useEdgeColorizer();\r\n const edgeWeighter = useEdgeWeighter();\r\n const edgeRange = useEdgeSizeRange();\r\n const setHoveredNode = useSetHoveredNode();\r\n const handleNodeHover = useCallback((id) => {\r\n setHoveredNode(id);\r\n }, [setHoveredNode]);\r\n const handleInitialize = useCallback(renderer => onRendererInitialized && onRendererInitialized(renderer), [onRendererInitialized]);\r\n return (React.createElement(FlexColumn, { style: {\r\n width,\r\n height,\r\n ...style,\r\n } },\r\n React.createElement(GraphView, { data: data, backgroundColor: backgroundColor, onInitialize: handleInitialize, style: {\r\n flex: 1,\r\n width: undefined,\r\n height: undefined,\r\n } },\r\n interactive ? (React.createElement(Camera, { bounds: cameraBounds, transitionDuration: transition })) : null,\r\n React.createElement(Edges, { color: edgeColorizer, weight: edgeWeighter, hideOnMove: settings.hideEdgesWhileMoving, disabled: !showEdges, minWidth: edgeRange[0], maxWidth: edgeRange[1] }),\r\n React.createElement(Nodes, { disabled: !showNodes, color: nodeColorizer, position: nodePositions, weight: nodeWeighter, minRadius: nodeRange[0], maxRadius: nodeRange[1] }),\r\n React.createElement(NodeSetHighlight, { key: `hovered`, vertexIds: hoveredNodeIds, color: hoverColor }),\r\n React.createElement(NodeSetHighlight, { key: `selected`, vertexIds: selectedNodeIds, color: hoverColor }),\r\n React.createElement(HighlightHoveredNode, { color: hoverColor, onHover: handleNodeHover }))));\r\n};\r\nconst FlexColumn = styled.div `\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/cc8b7056541cf76dfb04be06105828ae.json b/node_modules/.cache/cache-loader/cc8b7056541cf76dfb04be06105828ae.json deleted file mode 100644 index d7d5e43..0000000 --- a/node_modules/.cache/cache-loader/cc8b7056541cf76dfb04be06105828ae.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\layout\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\layout\\index.ts","mtime":1631029334874},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIH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IGxheW91dEZhMihlZGdlcywgbm9kZXMsIG9wdGlvbnMpOwoKICAgIGNhc2UgTGF5b3V0LlVNQVA6CiAgICAgIHJldHVybiBsYXlvdXRVbWFwKGVkZ2VzKTsKICB9Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/layout/index.ts"],"names":["layoutFa2","layoutGrid","layoutRandom","Layout","layoutUmap","executeLayout","type","nodes","edges","options","Random","Grid","FA2","UMAP"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,QAA0B,OAA1B;AACA,SAASC,UAAT,QAA2B,QAA3B;AACA,SAASC,YAAT,QAA6B,UAA7B;AACA,SAASC,MAAT,QAAuB,SAAvB;AACA,SAASC,UAAT,QAA2B,QAA3B;AACA,cAAc,OAAd;AACA,cAAc,QAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,eAAeC,aAAf,CAA6BC,IAA7B,EAAmCC,KAAnC,EAA0CC,KAA1C,EAAiDC,OAAjD,EAA0D;AAC7D,UAAQH,IAAR;AACI,SAAKH,MAAM,CAACO,MAAZ;AACI,aAAOR,YAAY,CAACK,KAAD,CAAnB;;AACJ,SAAKJ,MAAM,CAACQ,IAAZ;AACI,aAAOV,UAAU,CAACM,KAAD,CAAjB;;AACJ,SAAKJ,MAAM,CAACS,GAAZ;AACI,aAAOZ,SAAS,CAACQ,KAAD,EAAQD,KAAR,EAAeE,OAAf,CAAhB;;AACJ,SAAKN,MAAM,CAACU,IAAZ;AACI,aAAOT,UAAU,CAACI,KAAD,CAAjB;AARR;AAUH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { layoutFa2 } from './fa2';\r\nimport { layoutGrid } from './grid';\r\nimport { layoutRandom } from './random';\r\nimport { Layout } from './types';\r\nimport { layoutUmap } from './umap';\r\nexport * from './fa2';\r\nexport * from './grid';\r\nexport * from './random';\r\nexport * from './types';\r\n/**\r\n * Helper to select and execute a supported layout.\r\n * Note that nodes are edges are marked optional: different\r\n * layouts have slightly different requirements.\r\n * @param type\r\n * @param nodes\r\n * @param edges\r\n * @param options\r\n */\r\nexport async function executeLayout(type, nodes, edges, options) {\r\n switch (type) {\r\n case Layout.Random:\r\n return layoutRandom(nodes);\r\n case Layout.Grid:\r\n return layoutGrid(nodes);\r\n case Layout.FA2:\r\n return layoutFa2(edges, nodes, options);\r\n case Layout.UMAP:\r\n return layoutUmap(edges);\r\n }\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ceb1683bb259f86ce42bef534abd2ed9.json b/node_modules/.cache/cache-loader/ceb1683bb259f86ce42bef534abd2ed9.json deleted file mode 100644 index 6b43435..0000000 --- a/node_modules/.cache/cache-loader/ceb1683bb259f86ce42bef534abd2ed9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\scales.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\scales.ts","mtime":1631029334867},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHNvdXJjZVtrZXldKTsgfSk7IH0gZWxzZSBpZiAoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcnMpIHsgT2JqZWN0LmRlZmlu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Sk7CgogICAgICBjYXNlICdzZXF1ZW50aWFsMic6CiAgICAgICAgcmV0dXJuIHNjYWxlcy5zZXF1ZW50aWFsMihkb21haW4sIHNjYWxlVHlwZSk7CgogICAgICBjYXNlICdkaXZlcmdpbmcnOgogICAgICAgIHJldHVybiBzY2FsZXMuZGl2ZXJnaW5nKGRvbWFpbiwgc2NhbGVUeXBlKTsKCiAgICAgIGNhc2UgJ2RpdmVyZ2luZzInOgogICAgICAgIHJldHVybiBzY2FsZXMuZGl2ZXJnaW5nMihkb21haW4sIHNjYWxlVHlwZSk7CgogICAgICBjYXNlICdncmV5cyc6CiAgICAgICAgcmV0dXJuIHNjYWxlcy5ncmV5cyhkb21haW4sIHNjYWxlVHlwZSk7CgogICAgICBkZWZhdWx0OgogICAgICAgIHJldHVybiBzY2FsZXMubm9taW5hbCh1bmlxdWVzLmxlbmd0aCk7CiAgICB9CiAgfSwgW3RoZW1lLCBlbmNvZGluZ10pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/scales.ts"],"names":["DataBinding","Color","getNamedSchemeColor","ScaleType","useThematic","scaleLinear","scaleLog","useCallback","useMemo","useNumericEncodingScale","encoding","overrides","enc","fixed","value","scale","fn","scaleType","Log","domain","range","clamp","scaled","binding","Fixed","useColorEncodingScale","theme","palette","scheme","thematicSchemePath","useCachedThematicColorScale","Palette","COLOR_NONE","colorScale","useThematicColorScale","colorCache","Map","field","color","get","set","scales","uniques","scaleName","nominalMuted","length","nominalBold","sequential","sequential2","diverging","diverging2","greys","nominal"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA,SAASA,WAAT,QAA4B,aAA5B;AACA,SAASC,KAAT,EAAgBC,mBAAhB,QAA2C,iBAA3C;AACA,SAASC,SAAT,QAA2B,gBAA3B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,EAAsBC,QAAtB,QAAsC,UAAtC;AACA,SAASC,WAAT,EAAsBC,OAAtB,Q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,WAAW,EAAzB;AACA,SAAOI,OAAO,CAAC,MAAM;AACjB,UAAMiC,MAAM,GAAGf,KAAK,CAACe,MAAN,EAAf;AACA,UAAM;AAAExB,MAAAA,SAAF;AAAaE,MAAAA,MAAb;AAAqBuB,MAAAA,OAAO,GAAG;AAA/B,QAAsChC,QAA5C;;AACA,YAAQA,QAAQ,CAACiC,SAAjB;AACI,WAAK,cAAL;AACI,eAAOF,MAAM,CAACG,YAAP,CAAoBF,OAAO,CAACG,MAA5B,CAAP;;AACJ,WAAK,aAAL;AACI,eAAOJ,MAAM,CAACK,WAAP,CAAmBJ,OAAO,CAACG,MAA3B,CAAP;;AACJ,WAAK,YAAL;AACI,eAAOJ,MAAM,CAACM,UAAP,CAAkB5B,MAAlB,EAA0BF,SAA1B,CAAP;;AACJ,WAAK,aAAL;AACI,eAAOwB,MAAM,CAACO,WAAP,CAAmB7B,MAAnB,EAA2BF,SAA3B,CAAP;;AACJ,WAAK,WAAL;AACI,eAAOwB,MAAM,CAACQ,SAAP,CAAiB9B,MAAjB,EAAyBF,SAAzB,CAAP;;AACJ,WAAK,YAAL;AACI,eAAOwB,MAAM,CAACS,UAAP,CAAkB/B,MAAlB,EAA0BF,SAA1B,CAAP;;AACJ,WAAK,OAAL;AACI,eAAOwB,MAAM,CAACU,KAAP,CAAahC,MAAb,EAAqBF,SAArB,CAAP;;AACJ;AACI,eAAOwB,MAAM,CAACW,OAAP,CAAeV,OAAO,CAACG,MAAvB,CAAP;AAhBR;AAkBH,GArBa,EAqBX,CAACnB,KAAD,EAAQhB,QAAR,CArBW,CAAd;AAsBH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\n/**\r\n * This scales in this module map visual encodings to raw underlying scales.\r\n * I.e., the inputs to these scales are base primitives.\r\n */\r\nimport { DataBinding } from '../../types';\r\nimport { Color, getNamedSchemeColor } from '@thematic/color';\r\nimport { ScaleType, } from '@thematic/core';\r\nimport { useThematic } from '@thematic/react';\r\nimport { scaleLinear, scaleLog } from 'd3-scale';\r\nimport { useCallback, useMemo } from 'react';\r\nexport function useNumericEncodingScale(encoding, overrides) {\r\n const enc = useMemo(() => ({\r\n ...encoding,\r\n ...overrides,\r\n }), [encoding, overrides]);\r\n const fixed = useCallback(() => enc.value || 0, [enc]);\r\n const scale = useMemo(() => {\r\n // TODO: check safe log domains (no zero crossings) and adjust\r\n const fn = enc.scaleType === ScaleType.Log ? scaleLog : scaleLinear;\r\n const domain = enc.domain || [0, 1];\r\n const range = enc.range || [0, 1];\r\n return fn().domain(domain).range(range).clamp(true);\r\n }, [enc]);\r\n const scaled = useCallback((value) => scale(value || 1e-6), [scale]);\r\n if (enc.binding === DataBinding.Fixed) {\r\n return fixed;\r\n }\r\n return scaled;\r\n}\r\nexport function useColorEncodingScale(encoding) {\r\n const theme = useThematic();\r\n const fixed = useCallback(() => new Color(encoding.value || 'none'), [encoding]);\r\n const palette = useCallback(() => getNamedSchemeColor(theme.scheme, encoding.thematicSchemePath), [theme, encoding]);\r\n const scaled = useCachedThematicColorScale(encoding);\r\n switch (encoding.binding) {\r\n case DataBinding.Fixed:\r\n return fixed;\r\n case DataBinding.Palette:\r\n return palette;\r\n default:\r\n return scaled;\r\n }\r\n}\r\nconst COLOR_NONE = new Color('none');\r\nfunction useCachedThematicColorScale(encoding) {\r\n const colorScale = useThematicColorScale(encoding);\r\n // eslint-disable-next-line\r\n const colorCache = useMemo(() => new Map(), [encoding]);\r\n return useCallback((value) => {\r\n if (!value || !encoding.field) {\r\n return COLOR_NONE;\r\n }\r\n let color = colorCache.get(value);\r\n if (color == null) {\r\n color = colorScale(value);\r\n colorCache.set(value, color);\r\n }\r\n return color;\r\n }, [encoding, colorScale, colorCache]);\r\n}\r\nexport function useThematicColorScale(encoding) {\r\n const theme = useThematic();\r\n return useMemo(() => {\r\n const scales = theme.scales();\r\n const { scaleType, domain, uniques = [] } = encoding;\r\n switch (encoding.scaleName) {\r\n case 'nominalMuted':\r\n return scales.nominalMuted(uniques.length);\r\n case 'nominalBold':\r\n return scales.nominalBold(uniques.length);\r\n case 'sequential':\r\n return scales.sequential(domain, scaleType);\r\n case 'sequential2':\r\n return scales.sequential2(domain, scaleType);\r\n case 'diverging':\r\n return scales.diverging(domain, scaleType);\r\n case 'diverging2':\r\n return scales.diverging2(domain, scaleType);\r\n case 'greys':\r\n return scales.greys(domain, scaleType);\r\n default:\r\n return scales.nominal(uniques.length);\r\n }\r\n }, [theme, encoding]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/cee2b249f164ed41052dd9d20ff53244.json b/node_modules/.cache/cache-loader/cee2b249f164ed41052dd9d20ff53244.json deleted file mode 100644 index 906dd99..0000000 --- a/node_modules/.cache/cache-loader/cee2b249f164ed41052dd9d20ff53244.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\ColorRangeText.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\HeaderLegend\\ColorRangeText.tsx","mtime":1631029334828},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlSXNOb21pbmFsIH0gZnJvbSAnLi9ob29rcyc7CmltcG9ydCB7IGZvcm1hdCB9IGZyb20gJ2QzLWZvcm1hdCc7CmltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgZ2V0UHJlY2lzaW9uIH0gZnJvbSAnfi9hcnF1ZXJvJzsKZXhwb3J0IGNvbnN0IENvbG9yUmFuZ2VUZXh0ID0gKHsKICBlbmNvZGluZywKICBpbmNsdWRlTWlkcG9pbnQgPSBmYWxzZQp9KSA9PiB7CiAgY29uc3QgaXNOb21pbmFsID0gdXNlSXNOb21pbmFsKGVuY29kaW5nKTsKICBjb25zdCByYW5nZSA9IHVzZU1lbW8oKCkgPT4gewogICAgaWYgKGlzTm9taW5hbCkgewogICAgICBjb25zdCB7CiAgICAgICAgdW5pcXVlcyA9IFtdCiAgICAgIH0gPSBlbmNvZGluZzsKICAgICAgY29uc3QgbGVuZ3RoID0gdW5pcXVlcy5sZW5ndGg7CiAgICAgIHJldHVybiBbYCR7bGVuZ3RofSB1bmlxdWUgdmFsdWUke2xlbmd0aCAhPT0gMSA/ICdzJyA6ICcnfWAsICcnLCAnJ107CiAgICB9IGVsc2UgewogICAgICBjb25zdCBwcmVjaXNpb24gPSBnZXRQcmVjaXNpb24oZW5jb2RpbmcuZG9tYWluKTsKICAgICAgY29uc3QgW21pbiwgbWF4XSA9IGVuY29kaW5nLmRvbWFpbiB8fCBbMCwgMV07CiAgICAgIGNvbnN0IG1pZCA9IChtYXggLSBtaW4pIC8gMjsKICAgICAgY29uc3QgZm10ID0gZm9ybWF0KGAuJHtwcmVjaXNpb259ZmApOwogICAgICByZXR1cm4gW2ZtdChtaW4pLCBmbXQobWlkKSwgZm10KG1heCldOwogICAgfQogIH0sIFtpc05vbWluYWwsIGVuY29kaW5nXSk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGFpbmVyLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KExlZnQsIG51bGwsIHJhbmdlWzBdKSwgaW5jbHVkZU1pZHBvaW50ICYmIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ2VudGVyLCBudWxsLCByYW5nZVsxXSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoUmlnaHQsIG51bGwsIHJhbmdlWzJdKSk7Cn07CmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXZgCglmb250LXNpemU6IDAuN2VtOwoJZGlzcGxheTogZmxleDsKCWp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKYDsKY29uc3QgTGVmdCA9IHN0eWxlZC5kaXZgYDsKY29uc3QgQ2VudGVyID0gc3R5bGVkLmRpdmAKCXRleHQtYWxpZ246IGNlbnRlcjsKYDsKY29uc3QgUmlnaHQgPSBzdHlsZWQuZGl2YAoJdGV4dC1hbGlnbjogcmlnaHQ7CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/HeaderLegend/ColorRangeText.tsx"],"names":["useIsNominal","format","React","useMemo","styled","getPrecision","ColorRangeText","encoding","includeMidpoint","isNominal","range","uniques","length","precision","domain","min","max","mid","fmt","createElement","Container","Left","Center","Right","div"],"mappings":"AAAA,SAASA,YAAT,QAA6B,SAA7B;AACA,SAASC,MAAT,QAAuB,WAAvB;AACA,OAAOC,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,YAAT,QA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iB,aAAN,CAAoBI,KAApB,EAA2B,IAA3B,EAAiCb,KAAK,CAAC,CAAD,CAAtC,CAHI,CAAR;AAIH,CApBM;AAqBP,MAAMU,SAAS,GAAGhB,MAAM,CAACoB,GAAK;AAC9B;AACA;AACA;AACA,CAJA;AAKA,MAAMH,IAAI,GAAGjB,MAAM,CAACoB,GAAK,EAAzB;AACA,MAAMF,MAAM,GAAGlB,MAAM,CAACoB,GAAK;AAC3B;AACA,CAFA;AAGA,MAAMD,KAAK,GAAGnB,MAAM,CAACoB,GAAK;AAC1B;AACA,CAFA","sourcesContent":["import { useIsNominal } from './hooks';\r\nimport { format } from 'd3-format';\r\nimport React, { useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { getPrecision } from '~/arquero';\r\nexport const ColorRangeText = ({ encoding, includeMidpoint = false, }) => {\r\n const isNominal = useIsNominal(encoding);\r\n const range = useMemo(() => {\r\n if (isNominal) {\r\n const { uniques = [] } = encoding;\r\n const length = uniques.length;\r\n return [`${length} unique value${length !== 1 ? 's' : ''}`, '', ''];\r\n }\r\n else {\r\n const precision = getPrecision(encoding.domain);\r\n const [min, max] = encoding.domain || [0, 1];\r\n const mid = (max - min) / 2;\r\n const fmt = format(`.${precision}f`);\r\n return [fmt(min), fmt(mid), fmt(max)];\r\n }\r\n }, [isNominal, encoding]);\r\n return (React.createElement(Container, null,\r\n React.createElement(Left, null, range[0]),\r\n includeMidpoint && React.createElement(Center, null, range[1]),\r\n React.createElement(Right, null, range[2])));\r\n};\r\nconst Container = styled.div `\r\n\tfont-size: 0.7em;\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n`;\r\nconst Left = styled.div ``;\r\nconst Center = styled.div `\r\n\ttext-align: center;\r\n`;\r\nconst Right = styled.div `\r\n\ttext-align: right;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/cef5f329b442ef542fb6c3db1c0731c0.json b/node_modules/.cache/cache-loader/cef5f329b442ef542fb6c3db1c0731c0.json deleted file mode 100644 index 510222e..0000000 --- a/node_modules/.cache/cache-loader/cef5f329b442ef542fb6c3db1c0731c0.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchPanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchPanel.tsx","mtime":1631029334744},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ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2UKICB9KSwgW2Rpc2FibGVkLCBvbkNsZWFyLCBvbkNoYW5nZSwgb25TZWFyY2gsIG9uRm9jdXNDaGFuZ2VdKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChDb2xsYXBzaWJsZVBhbmVsLCB7CiAgICBvblJlbmRlckhlYWRlcjogb25SZW5kZXJTZWFyY2hIZWFkZXIsCiAgICBkZWZhdWx0RXhwYW5kZWQ6IGZhbHNlLAogICAgb25IZWFkZXJDbGljazogb25QYW5lbENsaWNrLAogICAgZXhwYW5kZWRTdGF0ZTogaXNFeHBhbmRlZAogIH0sIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29udGVudCwgbnVsbCwgc2VhcmNoVGFibGUgJiYgUmVhY3QuY3JlYXRlRWxlbWVudChTZWFyY2hJdGVtcywgewogICAgc2VhcmNoTm9kZVRhYmxlOiBzZWFyY2hOb2RlVGFibGUsCiAgICBzZWFyY2hUYWJsZTogc2VhcmNoVGFibGUsCiAgICBlcnJvck1zZzogZXJyb3JNc2cKICB9KSkpOwp9Owpjb25zdCBDb250ZW50ID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/SearchPanel.tsx"],"names":["CommunityCollection","listColumnNames","NodeCollection","useTableColumnsByType","useCommunitiesTable","useSetSelectedCommunity","useSetSelectedNodes","SearchItems","SearchPanelHeader","CollapsiblePanel","op","React","useCallback","useState","useMemo","styled","SearchPanel","searchText","setSearchText","searchNodeTable","setSearchNodeTable","searchTable","setSearchTable","isExpanded","setIsExpanded","errorMsg","setErrorMsg","isInFocus","setIsInFocus","setSelectedNode","modifiedTable","columns","communities","onFocusChange","state","onPanelClick","setSelectedCommunity","getColumnByRow","col","row","stringValue","get","isInSearch","indexOf","getMatchingValuesByRow","matches","scan","o","reduce","acc","value","matchColumns","push","index","seen","Set","nodeids","nodeCommIds","communityIds","d","includes","nodeid","has","add","matchTable","params","match","filter","$","ungroup","nodeMatchTable","Array","from","commIds","ccTable","nodeTable","onClear","undefined","onSearch","length","cols","matchingValues","size","onChange","event","newValue","disabled","numRows","onRenderSearchHeader","createElement","onRenderHeader","defaultExpanded","onHeaderClick","expandedState","Content","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,mBAAT,EAA8BC,eAA9B,EAA+CC,cAA/C,EAA+DC,qBAA/D,QAA6F,2BAA7F;AACA,SAASC,mBAAT,EAA8BC,uBAA9B,EAAuDC,mBAAvD,QAAmF,yBAAnF;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,iBAAT,QAAkC,qBAAlC;AACA,SAASC,gBAAT,QAAiC,qCAAjC;AACA,SAASC,EAAT,QAAmB,SAAnB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,QAA7B,EAAuCC,OAAvC,QAAsD,OAAtD;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,WAAW,GAAG,MAAM;AAC7B,QAAM,CAACC,UAAD,EAAaC,aAAb,IAA8BL,QAAQ,EAA5C;AACA,QAAM,CAACM,eAAD,EAAkBC,kBAAlB,IAAwCP,QAAQ,EAAtD;AACA,QAAM,CAACQ,WAAD,EAAcC,cAAd,IAAgCT,QAAQ,EAA9C;AACA,QAAM,CAACU,UAAD,EAAaC,aAAb,IAA8BX,QAAQ,CAAC,KAAD,CAA5C;AACA,QAAM,CAACY,QAAD,EAAWC,WAAX,IAA0Bb,QAAQ,EAAxC;AACA,QAAM,CAACc,SAAD,EAAYC,YAAZ,IAA4Bf,QAAQ,CAAC,KAAD,CAA1C;AACA,QAAMgB,eAAe,GAAGvB,mBAAmB,EAA3C;AACA,QAAMwB,aAAa,GAAG3B,qBAAqB,CAAC,QAAD,CAA3C;AACA,QAAM4B,OAAO,GAAG9B,eAAe,CAAC6B,aAAD,CAA/B;AACA,QAAME,WAAW,GAAG5B,mBAAmB,EAAvC;AACA,QAAM6B,aAAa,GAAGrB,WAAW,C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A,OAAvE;AAAgF3C,IAAAA,aAAa,EAAEA;AAA/F,GAAvC,CAAR,EAAiK,CAACqD,QAAD,EAAWV,OAAX,EAAoBO,QAApB,EAA8BL,QAA9B,EAAwC7C,aAAxC,CAAjK,CAAxC;AACA,SAAQtB,KAAK,CAAC8E,aAAN,CAAoBhF,gBAApB,EAAsC;AAAEiF,IAAAA,cAAc,EAAEF,oBAAlB;AAAwCG,IAAAA,eAAe,EAAE,KAAzD;AAAgEC,IAAAA,aAAa,EAAEzD,YAA/E;AAA6F0D,IAAAA,aAAa,EAAEtE;AAA5G,GAAtC,EACJZ,KAAK,CAAC8E,aAAN,CAAoBK,OAApB,EAA6B,IAA7B,EAAmCzE,WAAW,IAAKV,KAAK,CAAC8E,aAAN,CAAoBlF,WAApB,EAAiC;AAAEY,IAAAA,eAAe,EAAEA,eAAnB;AAAoCE,IAAAA,WAAW,EAAEA,WAAjD;AAA8DI,IAAAA,QAAQ,EAAEA;AAAxE,GAAjC,CAAnD,CADI,CAAR;AAEH,CA7HM;AA8HP,MAAMqE,OAAO,GAAG/E,MAAM,CAACgF,GAAK,EAA5B","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { CommunityCollection, listColumnNames, NodeCollection, useTableColumnsByType, } from '../../../../../../arquero';\r\nimport { useCommunitiesTable, useSetSelectedCommunity, useSetSelectedNodes, } from '../../../../../../state';\r\nimport { SearchItems } from './SearchItems';\r\nimport { SearchPanelHeader } from './SearchPanelHeader';\r\nimport { CollapsiblePanel } from '@essex-js-toolkit/themed-components';\r\nimport { op } from 'arquero';\r\nimport React, { useCallback, useState, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const SearchPanel = () => {\r\n const [searchText, setSearchText] = useState();\r\n const [searchNodeTable, setSearchNodeTable] = useState();\r\n const [searchTable, setSearchTable] = useState();\r\n const [isExpanded, setIsExpanded] = useState(false);\r\n const [errorMsg, setErrorMsg] = useState();\r\n const [isInFocus, setIsInFocus] = useState(false);\r\n const setSelectedNode = useSetSelectedNodes();\r\n const modifiedTable = useTableColumnsByType('string');\r\n const columns = listColumnNames(modifiedTable);\r\n const communities = useCommunitiesTable();\r\n const onFocusChange = useCallback((state) => setIsInFocus(state), [setIsInFocus]);\r\n const onPanelClick = useCallback((state) => {\r\n // dont set expand state if using searchbox\r\n if (!isInFocus) {\r\n setIsExpanded(state);\r\n }\r\n }, [setIsExpanded, isInFocus]);\r\n const setSelectedCommunity = useSetSelectedCommunity();\r\n const getColumnByRow = useCallback((col, row) => {\r\n const stringValue = modifiedTable.get(col, row);\r\n let isInSearch = false;\r\n if (stringValue.indexOf(searchText) > -1) {\r\n isInSearch = true;\r\n }\r\n return [stringValue, isInSearch];\r\n }, [modifiedTable, searchText]);\r\n const getMatchingValuesByRow = useCallback((columns) => {\r\n const matches = [];\r\n modifiedTable.scan(row => {\r\n const o = columns.reduce((acc, col) => {\r\n const [value, isInSearch] = getColumnByRow(col, row);\r\n if (isInSearch) {\r\n acc.isInSearch = true;\r\n acc.matchColumns.push(col);\r\n }\r\n acc[col] = value;\r\n acc.index = row;\r\n return acc;\r\n }, { isInSearch: false, matchColumns: [] });\r\n if (o.isInSearch) {\r\n matches.push(o);\r\n }\r\n });\r\n // currently only handling match on node.id or community.id\r\n const seen = new Set([]);\r\n const [nodeids, nodeCommIds, communityIds] = matches.reduce((acc, d) => {\r\n if (d.matchColumns.includes('node.id')) {\r\n const nodeid = d['node.id'];\r\n if (!seen.has(nodeid)) {\r\n acc[1].push(d['community.id']);\r\n seen.add(nodeid);\r\n }\r\n }\r\n if (d.matchColumns.includes('community.id')) {\r\n acc[2].push(d['community.id']);\r\n }\r\n return acc;\r\n }, [seen, [], []]);\r\n const matchTable = communities\r\n .params({ match: communityIds })\r\n .filter((d, $) => op.includes($.match, d['community.id']))\r\n .ungroup();\r\n const nodeMatchTable = modifiedTable\r\n .params({ match: Array.from(nodeids), commIds: nodeCommIds })\r\n .filter((d, $) => op.includes($.match, d['node.id']) &&\r\n op.includes($.commIds, d['community.id']))\r\n .ungroup();\r\n const ccTable = new CommunityCollection(matchTable);\r\n const nodeTable = new NodeCollection(nodeMatchTable);\r\n return [ccTable, nodeTable];\r\n }, [modifiedTable, getColumnByRow, communities]);\r\n const onClear = useCallback(() => {\r\n // Clear Result\r\n setSearchText(undefined);\r\n setSearchNodeTable(undefined);\r\n setSearchTable(undefined);\r\n setSelectedNode(undefined);\r\n setErrorMsg(undefined);\r\n setSelectedCommunity('-1');\r\n setIsExpanded(false);\r\n }, [\r\n setSearchText,\r\n setSearchNodeTable,\r\n setErrorMsg,\r\n setSearchTable,\r\n setSelectedNode,\r\n setSelectedCommunity,\r\n setIsExpanded,\r\n ]);\r\n const onSearch = useCallback(() => {\r\n if (!searchText) {\r\n onClear();\r\n }\r\n else {\r\n setErrorMsg(undefined);\r\n if (columns.length > 0) {\r\n // filter out community.pid, need to figure out properly display if we choose to include it\r\n const cols = columns.filter(d => d !== 'community.pid');\r\n const [matchTable, matchingValues] = getMatchingValuesByRow(cols);\r\n if (matchingValues.size < 1) {\r\n setErrorMsg(`No results found for ${searchText}`);\r\n }\r\n setIsExpanded(true);\r\n setSearchTable(matchTable);\r\n setSearchNodeTable(matchingValues);\r\n }\r\n }\r\n }, [\r\n searchText,\r\n columns,\r\n setSearchNodeTable,\r\n onClear,\r\n getMatchingValuesByRow,\r\n setSearchTable,\r\n setErrorMsg,\r\n setIsExpanded,\r\n ]);\r\n const onChange = useCallback((event, newValue) => {\r\n setSearchText(newValue);\r\n }, [setSearchText]);\r\n const disabled = useMemo(() => modifiedTable.numRows() < 1, [modifiedTable]);\r\n const onRenderSearchHeader = useCallback(() => (React.createElement(SearchPanelHeader, { disabled: disabled, onChange: onChange, onSearch: onSearch, onClear: onClear, onFocusChange: onFocusChange })), [disabled, onClear, onChange, onSearch, onFocusChange]);\r\n return (React.createElement(CollapsiblePanel, { onRenderHeader: onRenderSearchHeader, defaultExpanded: false, onHeaderClick: onPanelClick, expandedState: isExpanded },\r\n React.createElement(Content, null, searchTable && (React.createElement(SearchItems, { searchNodeTable: searchNodeTable, searchTable: searchTable, errorMsg: errorMsg })))));\r\n};\r\nconst Content = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/cfe8b246ba476a61a30c9842dd9f8df9.json b/node_modules/.cache/cache-loader/cfe8b246ba476a61a30c9842dd9f8df9.json deleted file mode 100644 index d7796b5..0000000 --- a/node_modules/.cache/cache-loader/cfe8b246ba476a61a30c9842dd9f8df9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\HierarchyBrowserPanel\\index.ts","mtime":1620403249332},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0hpZXJhcmNoeUJyb3dzZXJQYW5lbCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/HierarchyBrowserPanel/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,yBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './HierarchyBrowserPanel';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d0a529dad7c2471e1592742601ebf6ce.json b/node_modules/.cache/cache-loader/d0a529dad7c2471e1592742601ebf6ce.json deleted file mode 100644 index 2e98005..0000000 --- a/node_modules/.cache/cache-loader/d0a529dad7c2471e1592742601ebf6ce.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\index.ts","mtime":1620403249121},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL2NvbW11bml0aWVzJzsKZXhwb3J0ICogZnJvbSAnLi9ob29rcyc7CmV4cG9ydCAqIGZyb20gJy4vVGFibGVDb2xsZWN0aW9uJzsKZXhwb3J0ICogZnJvbSAnLi91dGlsJzsKZXhwb3J0ICogZnJvbSAnLi9ub2Rlcyc7CmV4cG9ydCAqIGZyb20gJy4vdGFibGUnOwpleHBvcnQgKiBmcm9tICcuL2xheW91dCc7CmV4cG9ydCAqIGZyb20gJy4vZWRnZXMnOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,eAAd;AACA,cAAc,SAAd;AACA,cAAc,mBAAd;AACA,cAAc,QAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './communities';\r\nexport * from './hooks';\r\nexport * from './TableCollection';\r\nexport * from './util';\r\nexport * from './nodes';\r\nexport * from './table';\r\nexport * from './layout';\r\nexport * from './edges';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d107fa8cb552516f2b9a98fee65c69fb.json b/node_modules/.cache/cache-loader/d107fa8cb552516f2b9a98fee65c69fb.json deleted file mode 100644 index c92276e..0000000 --- a/node_modules/.cache/cache-loader/d107fa8cb552516f2b9a98fee65c69fb.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\features.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\features.ts","mtime":1620403249553},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBhdG9tLCB1c2VSZWNvaWxTdGF0ZSB9IGZyb20gJ3JlY29pbCc7IC8vIG5vdGUgLSBzZXBhcmF0aW5nIHRoaXMgZnJvbSAnc2V0dGluZ3MnIGFzIHRoZXkgd291bGQgbGlrZWx5IGJlY29tZSBub24tdXNlci12aXNpYmxlIGZsYWdzCgpjb25zdCBERUZBVUxUX0ZFQVRVUkVTID0gewogIGVuYWJsZVNtYWxsTXVsdGlwbGVzOiB0cnVlLAogIGVuYWJsZVpvb21Ub0NvbW11bml0eTogdHJ1ZQp9OwpleHBvcnQgY29uc3QgZmVhdHVyZXNTdGF0ZSA9IGF0b20oewogIGtleTogJ2ZlYXR1cmVzJywKICBkZWZhdWx0OiBERUZBVUxUX0ZFQVRVUkVTCn0pOwpleHBvcnQgZnVuY3Rpb24gdXNlRmVhdHVyZXMoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFN0YXRlKGZlYXR1cmVzU3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/features.ts"],"names":["atom","useRecoilState","DEFAULT_FEATURES","enableSmallMultiples","enableZoomToCommunity","featuresState","key","default","useFeatures"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,IAAT,EAAeC,cAAf,QAAqC,QAArC,C,CACA;;AACA,MAAMC,gBAAgB,GAAG;AACrBC,EAAAA,oBAAoB,EAAE,IADD;AAErBC,EAAAA,qBAAqB,EAAE;AAFF,CAAzB;AAIA,OAAO,MAAMC,aAAa,GAAGL,IAAI,CAAC;AAC9BM,EAAAA,GAAG,EAAE,UADyB;AAE9BC,EAAAA,OAAO,EAAEL;AAFqB,CAAD,CAA1B;AAIP,OAAO,SAASM,WAAT,GAAuB;AAC1B,SAAOP,cAAc,CAACI,aAAD,CAArB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { atom, useRecoilState } from 'recoil';\r\n// note - separating this from 'settings' as they would likely become non-user-visible flags\r\nconst DEFAULT_FEATURES = {\r\n enableSmallMultiples: true,\r\n enableZoomToCommunity: true,\r\n};\r\nexport const featuresState = atom({\r\n key: 'features',\r\n default: DEFAULT_FEATURES,\r\n});\r\nexport function useFeatures() {\r\n return useRecoilState(featuresState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d36ecdabab866ccaf465f84bcee20f53.json b/node_modules/.cache/cache-loader/d36ecdabab866ccaf465f84bcee20f53.json deleted file mode 100644 index c91dde0..0000000 --- a/node_modules/.cache/cache-loader/d36ecdabab866ccaf465f84bcee20f53.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\index.tsx","mtime":1620403249426},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0NvbG9yU2VsZWN0b3InOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ColorSelector/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,iBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './ColorSelector';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d5ccb222a401ac97301a8f37b6f2f10e.json b/node_modules/.cache/cache-loader/d5ccb222a401ac97301a8f37b6f2f10e.json deleted file mode 100644 index 9992829..0000000 --- a/node_modules/.cache/cache-loader/d5ccb222a401ac97301a8f37b6f2f10e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\useAOIBounds.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Minimap\\hooks\\useAOIBounds.ts","mtime":1624559748287},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwpleHBvcnQgZnVuY3Rpb24gdXNlQU9JQm91bmRzKGhlaWdodCwgd2lkdGgsIGFvaUJvdW5kcykgewogIC8vIGFvaSB3aWxsIGJlIHRpZWQgdG8gYWN0dWFsIHBpeGVsIGRpbWVuc2lvbnMsIHNvIHdlIG5lZWQgdG8gYWRqdXN0IHRoZSAwLTEgc2NhbGluZyB0byBmaXQKICBjb25zdCBhYiA9IHVzZU1lbW8oKCkgPT4gKHsKICAgIHg6IHsKICAgICAgbWluOiBhb2lCb3VuZHMgPyBhb2lCb3VuZHMueC5taW4gKiB3aWR0aCA6IDAsCiAgICAgIG1heDogYW9pQm91bmRzID8gYW9pQm91bmRzLngubWF4ICogd2lkdGggOiB3aWR0aAogICAgfSwKICAgIHk6IHsKICAgICAgbWluOiBhb2lCb3VuZHMgPyBhb2lCb3VuZHMueS5taW4gKiBoZWlnaHQgOiAwLAogICAgICBtYXg6IGFvaUJvdW5kcyA/IGFvaUJvdW5kcy55Lm1heCAqIGhlaWdodCA6IGhlaWdodAogICAgfQogIH0pLCBbYW9pQm91bmRzLCBoZWlnaHQsIHdpZHRoXSk7CiAgY29uc3QgeCA9IGFiID8gYWIueC5taW4gOiAwOwogIGNvbnN0IHkgPSBoZWlnaHQgLSAoYWIgPyBhYi55Lm1heCA6IDApOwogIGNvbnN0IHcgPSBhYiA/IGFiLngubWF4IC0gYWIueC5taW4gOiB3aWR0aDsKICBjb25zdCBoID0gYWIgPyBhYi55Lm1heCAtIGFiLnkubWluIDogaGVpZ2h0OyAvLyBvbmx5IHNob3cgdGhlIGFvaSByZWN0YW5nbGUgaWYgd2UgaGF2ZSB2YWxpZCBib3VuZHMgYW5kIHRoZXkgYXJlbid0IHRoZSBmdWxsIGV4dGVudAoKICBjb25zdCBzaG93QW9pID0gdXNlTWVtbygoKSA9PiBhb2lCb3VuZHMgJiYgeCA+IDAgJiYgeSA+IDAgJiYgdyAhPT0gd2lkdGggJiYgaCAhPT0gaGVpZ2h0ID8gdHJ1ZSA6IGZhbHNlLCBbYW9pQm91bmRzLCBoZWlnaHQsIHgsIHksIGgsIHcsIHdpZHRoXSk7CiAgcmV0dXJuIHsKICAgIHgsCiAgICB5LAogICAgdywKICAgIGgsCiAgICBzaG93QW9pCiAgfTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Minimap/hooks/useAOIBounds.ts"],"names":["useMemo","useAOIBounds","height","width","aoiBounds","ab","x","min","max","y","w","h","showAoi"],"mappings":"AAAA;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,GAAG,CAAjB,IAAsBG,CAAC,GAAG,CAA1B,IAA+BC,CAAC,KAAKP,KAArC,IAA8CQ,CAAC,KAAKT,MAApD,GAA6D,IAA7D,GAAoE,KAA3E,EAAkF,CAACE,SAAD,EAAYF,MAAZ,EAAoBI,CAApB,EAAuBG,CAAvB,EAA0BE,CAA1B,EAA6BD,CAA7B,EAAgCP,KAAhC,CAAlF,CAAvB;AACA,SAAO;AAAEG,IAAAA,CAAF;AAAKG,IAAAA,CAAL;AAAQC,IAAAA,CAAR;AAAWC,IAAAA,CAAX;AAAcC,IAAAA;AAAd,GAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useMemo } from 'react';\r\nexport function useAOIBounds(height, width, aoiBounds) {\r\n // aoi will be tied to actual pixel dimensions, so we need to adjust the 0-1 scaling to fit\r\n const ab = useMemo(() => ({\r\n x: {\r\n min: aoiBounds ? aoiBounds.x.min * width : 0,\r\n max: aoiBounds ? aoiBounds.x.max * width : width,\r\n },\r\n y: {\r\n min: aoiBounds ? aoiBounds.y.min * height : 0,\r\n max: aoiBounds ? aoiBounds.y.max * height : height,\r\n },\r\n }), [aoiBounds, height, width]);\r\n const x = ab ? ab.x.min : 0;\r\n const y = height - (ab ? ab.y.max : 0);\r\n const w = ab ? ab.x.max - ab.x.min : width;\r\n const h = ab ? ab.y.max - ab.y.min : height;\r\n // only show the aoi rectangle if we have valid bounds and they aren't the full extent\r\n const showAoi = useMemo(() => aoiBounds && x > 0 && y > 0 && w !== width && h !== height ? true : false, [aoiBounds, height, x, y, h, w, width]);\r\n return { x, y, w, h, showAoi };\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d60314aa6aac467614226b6d00b765b9.json b/node_modules/.cache/cache-loader/d60314aa6aac467614226b6d00b765b9.json deleted file mode 100644 index e86e73a..0000000 --- a/node_modules/.cache/cache-loader/d60314aa6aac467614226b6d00b765b9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\EdgeColorHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\EdgeColorHeaderLegend.tsx","mtime":1631029334800},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VFZGdlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VFZGdlQ29sb3JFbmNvZGluZyB9IGZyb20gJ34vc3RhdGUnOwpleHBvcnQgY29uc3QgRWRnZUNvbG9ySGVhZGVyTGVnZW5kID0gKCkgPT4gewogIGNvbnN0IGNvdW50ID0gdXNlRWRnZUNvdW50KCk7CiAgY29uc3QgZW5jb2RpbmcgPSB1c2VFZGdlQ29sb3JFbmNvZGluZygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KEhlYWRlckxlZ2VuZCwgewogICAgbGFiZWw6ICdFZGdlIGNvbG9yJywKICAgIGVuY29kaW5nOiBlbmNvZGluZywKICAgIGNvbG9yRW5jb2Rpbmc6IGVuY29kaW5nLAogICAgaXNVbnNldDogY291bnQgPT09IDAsCiAgICBpc0Rhc2hlczogdHJ1ZQogIH0pOwp9Ow=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/EdgeColorHeaderLegend.tsx"],"names":["HeaderLegend","React","useEdgeCount","useEdgeColorEncoding","EdgeColorHeaderLegend","count","encoding","createElement","label","colorEncoding","isUnset","isDashes"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,oBAAT,QAAqC,SAArC;AACA,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AACvC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,oBAAoB,EAArC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,YAAT;AAAuBF,IAAAA,QAAQ,EAAEA,QAAjC;AAA2CG,IAAAA,aAAa,EAAEH,QAA1D;AAAoEI,IAAAA,OAAO,EAAEL,KAAK,KAAK,CAAvF;AAA0FM,IAAAA,QAAQ,EAAE;AAApG,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useEdgeCount } from '~/arquero';\r\nimport { useEdgeColorEncoding } from '~/state';\r\nexport const EdgeColorHeaderLegend = () => {\r\n const count = useEdgeCount();\r\n const encoding = useEdgeColorEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Edge color', encoding: encoding, colorEncoding: encoding, isUnset: count === 0, isDashes: true }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d6b10496ac44ba3985ec6f79547c83e1.json b/node_modules/.cache/cache-loader/d6b10496ac44ba3985ec6f79547c83e1.json deleted file mode 100644 index 02b62a0..0000000 --- a/node_modules/.cache/cache-loader/d6b10496ac44ba3985ec6f79547c83e1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\GraphViewerPage.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\GraphViewerPage.tsx","mtime":1631029334707},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBHcmFwaFBhbmVsIH0gZnJvbSAnLi9HcmFwaFBhbmVsJzsKaW1wb3J0IHsgUmVzaXphYmxlQnJvd3NlciB9IGZyb20gJy4vUmVzaXphYmxlQnJvd3Nlcic7CmltcG9ydCB7IExlZnRTaWRlUGFuZWwsIFJpZ2h0U2lkZVBhbmVsIH0gZnJvbSAnLi9TaWRlUGFuZWwnOwppbXBvcnQgeyBTdHlsZWRTcGlubm5lciB9IGZyb20gJy4vU3R5bGVkU3Bpbm5lcic7CmltcG9ydCB7IENTU0ZpbHRlciwgdXNlR3JhcGhEaW1lbnNpb25zLCB1c2VMYXlvdXRTdHlsZSwgdXNlUmVzaXplSGFuZGxlcnMgfSBmcm9tICcuL2hvb2tzJzsKaW1wb3J0IFJlYWN0LCB7IHVzZVJlZiwgdXNlTWVtbywgdXNlU3RhdGUsIG1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY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HRoLAogICAgaGFuZGxlUmVzaXplU3RvcDogaGFuZGxlUmVzaXplU3RvcCwKICAgIGhhbmRsZVJlc2l6ZVN0YXJ0OiBoYW5kbGVSZXNpemVTdGFydCwKICAgIGhhbmRsZUJ1dHRvbkNsaWNrOiBoYW5kbGVCdXR0b25DbGljaywKICAgIHBvc2l0aW9uOiBwb3NpdGlvbgogIH0pKSk7Cn0pOwpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YAoJd2lkdGg6IDEwMHZ3OwoJaGVpZ2h0OiAxMDB2aDsKCWJhY2tncm91bmQ6ICR7KHsKICB0aGVtZQp9KSA9PiB0aGVtZS5wbG90QXJlYSgpLmZpbGwoKS5oZXgoKX07CglvdmVyZmxvdzogaGlkZGVuOwpgOwpjb25zdCBHcmFwaENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDsKY29uc3QgR3JhcGhQYW5lbENvbnRhaW5lciA9IHN0eWxlZC5kaXZgYDsKY29uc3QgUGxhY2Vob2xkZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/GraphViewerPage.tsx"],"names":["GraphPanel","ResizableBrowser","LeftSidePanel","RightSidePanel","StyledSpinnner","CSSFilter","useGraphDimensions","useLayoutStyle","useResizeHandlers","React","useRef","useMemo","useState","memo","styled","GraphViewerPage","ref","graphDimensions","position","setPosition","width","height","leftPanelWidth","rightPanelWidth","browserWidth","graphFilter","setGraphFilter","NONE","handleResizeStart","handleButtonClick","handleResizeStop","graphHeight","graphContainerStyle","graphStyle","rightSidePanelStyle","leftSidePanelStyle","createElement","Container","Suspense","fallback","Placeholder","style","GraphContainer","GraphPanelContainer","div","theme","plotArea","fill","hex"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,cAA3B;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,aAA9C;AACA,SAASC,cAAT,QA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gBAAzC;AAA2DF,IAAAA,iBAAiB,EAAEA,iBAA9E;AAAiGC,IAAAA,iBAAiB,EAAEA,iBAApH;AAAuIX,IAAAA,QAAQ,EAAEA;AAAjJ,GAAtC,CAJJ,CALI,CAAR;AAUH,CAlBkC,CAA5B;AAmBP,MAAMmB,SAAS,GAAGvB,MAAM,CAAC8B,GAAK;AAC9B;AACA;AACA,eAAe,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,QAAN,GAAiBC,IAAjB,GAAwBC,GAAxB,EAA8B;AAC5D;AACA,CALA;AAMA,MAAMN,cAAc,GAAG5B,MAAM,CAAC8B,GAAK,EAAnC;AACA,MAAMD,mBAAmB,GAAG7B,MAAM,CAAC8B,GAAK,EAAxC;AACA,MAAMJ,WAAW,GAAG1B,MAAM,CAAC8B,GAAK,EAAhC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { GraphPanel } from './GraphPanel';\r\nimport { ResizableBrowser } from './ResizableBrowser';\r\nimport { LeftSidePanel, RightSidePanel } from './SidePanel';\r\nimport { StyledSpinnner } from './StyledSpinner';\r\nimport { CSSFilter, useGraphDimensions, useLayoutStyle, useResizeHandlers, } from './hooks';\r\nimport React, { useRef, useMemo, useState, memo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const GraphViewerPage = memo(function GraphViewerPage() {\r\n const ref = useRef(null);\r\n const [graphDimensions, position, setPosition] = useGraphDimensions(ref);\r\n const { width, height, leftPanelWidth, rightPanelWidth, browserWidth } = graphDimensions;\r\n const [graphFilter, setGraphFilter] = useState(CSSFilter.NONE);\r\n const { handleResizeStart, handleButtonClick, handleResizeStop } = useResizeHandlers({ height, position, setPosition, setGraphFilter });\r\n const graphHeight = useMemo(() => height - position.height, [height, position]);\r\n const { graphContainerStyle, graphStyle, rightSidePanelStyle, leftSidePanelStyle, } = useLayoutStyle(leftPanelWidth, rightPanelWidth, height, graphHeight, graphFilter);\r\n return (React.createElement(Container, { ref: ref },\r\n React.createElement(React.Suspense, { fallback: React.createElement(Placeholder, null) },\r\n React.createElement(LeftSidePanel, { style: leftSidePanelStyle, height: height, width: leftPanelWidth })),\r\n React.createElement(React.Suspense, { fallback: React.createElement(Placeholder, null) },\r\n React.createElement(RightSidePanel, { style: rightSidePanelStyle })),\r\n React.createElement(GraphContainer, { style: graphContainerStyle },\r\n React.createElement(React.Suspense, { fallback: React.createElement(StyledSpinnner, null) },\r\n React.createElement(GraphPanelContainer, { style: graphStyle },\r\n React.createElement(GraphPanel, { width: width, height: graphHeight }))),\r\n React.createElement(ResizableBrowser, { width: browserWidth, handleResizeStop: handleResizeStop, handleResizeStart: handleResizeStart, handleButtonClick: handleButtonClick, position: position }))));\r\n});\r\nconst Container = styled.div `\r\n\twidth: 100vw;\r\n\theight: 100vh;\r\n\tbackground: ${({ theme }) => theme.plotArea().fill().hex()};\r\n\toverflow: hidden;\r\n`;\r\nconst GraphContainer = styled.div ``;\r\nconst GraphPanelContainer = styled.div ``;\r\nconst Placeholder = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d70e6054cfc37b612b1d601cafa6f4ca.json b/node_modules/.cache/cache-loader/d70e6054cfc37b612b1d601cafa6f4ca.json deleted file mode 100644 index 77a6056..0000000 --- a/node_modules/.cache/cache-loader/d70e6054cfc37b612b1d601cafa6f4ca.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchPanelHeader.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\SearchPanelHeader.tsx","mtime":1631029334745},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBTZWFyY2hCb3gsIEljb25CdXR0b24gfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgeyB1c2VEZWJvdW5jZUZuIH0gZnJvbSAnYWhvb2tzJzsKaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKY29uc3Qgc2VhcmNoQm94U3R5bGUgPSB7CiAgaWNvbkNvbnRhaW5lcjogewogICAgZGlzcGxheTogJ25vbmUn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sZWFyOiBvbkNsZWFyLAogICAgb25TZWFyY2g6IG9uU2VhcmNoLAogICAgb25Gb2N1czogZm9jdXNDYWxsYmFjaywKICAgIG9uQmx1cjogYmx1ckNhbGxiYWNrCiAgfSksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoSWNvbkJ1dHRvbiwgewogICAgaWNvblByb3BzOiBzZWFyY2hJY29uLAogICAgc3R5bGVzOiBzZWFyY2hCdXR0b25TdHlsZSwKICAgIHRpdGxlOiAiU2VhcmNoIiwKICAgIGFyaWFMYWJlbDogJ1NlYXJjaCcsCiAgICBkaXNhYmxlZDogZGlzYWJsZWQsCiAgICBvbkNsaWNrOiBvblNlYXJjaAogIH0pKTsKfTsKY29uc3QgTGFiZWwgPSBzdHlsZWQuZGl2YAoJbWFyZ2luLXJpZ2h0OiA0cHg7CglkaXNwbGF5OiBpbmxpbmUtZmxleDsKCXdpZHRoOiAxMDAlOwpgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/SearchPanelHeader.tsx"],"names":["SearchBox","IconButton","useDebounceFn","React","useCallback","styled","searchBoxStyle","iconContainer","display","field","fontSize","root","width","searchButtonStyle","marginLeft","searchIcon","iconName","SearchPanelHeader","disabled","onChange","onSearch","onClear","onFocusChange","focusCallback","blurCallback","useDebounce","event","newValue","wait","createElement","Label","placeholder","styles","run","onFocus","onBlur","iconProps","title","ariaLabel","onClick","div"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,SAAT,EAAoBC,UAApB,QAAsC,iBAAtC;AACA,SAASC,aAAT,QAA8B,QAA9B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,MAAMC,cAAc,GAAG;AACnBC,EAAAA,aAAa,EAAE;AAAEC,IAAAA,OAAO,EAAE;AAAX,GADI;AAEnBC,EAAAA,KAAK,EAAE;AAAEC,IAAAA,QAAQ,EAAE;AAAZ,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Lc,IAAAA,OAAO,EAAEX,aAA3L;AAA0MY,IAAAA,MAAM,EAAEX;AAAlN,GAA/B,CADI,EAEJrB,KAAK,CAAC0B,aAAN,CAAoB5B,UAApB,EAAgC;AAAEmC,IAAAA,SAAS,EAAErB,UAAb;AAAyBiB,IAAAA,MAAM,EAAEnB,iBAAjC;AAAoDwB,IAAAA,KAAK,EAAE,QAA3D;AAAqEC,IAAAA,SAAS,EAAE,QAAhF;AAA0FpB,IAAAA,QAAQ,EAAEA,QAApG;AAA8GqB,IAAAA,OAAO,EAAEnB;AAAvH,GAAhC,CAFI,CAAR;AAGH,CAXM;AAYP,MAAMU,KAAK,GAAGzB,MAAM,CAACmC,GAAK;AAC1B;AACA;AACA;AACA,CAJA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { SearchBox, IconButton } from '@fluentui/react';\r\nimport { useDebounceFn } from 'ahooks';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nconst searchBoxStyle = {\r\n iconContainer: { display: 'none' },\r\n field: { fontSize: '12px' },\r\n root: { width: '100%' },\r\n};\r\nconst searchButtonStyle = {\r\n root: { marginLeft: '5px' },\r\n};\r\nconst searchIcon = { iconName: 'Search' };\r\nexport const SearchPanelHeader = ({ disabled, onChange, onSearch, onClear, onFocusChange, }) => {\r\n const focusCallback = useCallback(() => onFocusChange(true), [onFocusChange]);\r\n const blurCallback = useCallback(() => onFocusChange(false), [onFocusChange]);\r\n const useDebounce = useDebounceFn((event, newValue) => {\r\n onChange(event, newValue);\r\n }, {\r\n wait: 500,\r\n });\r\n return (React.createElement(Label, null,\r\n React.createElement(SearchBox, { placeholder: \"Search graph\", styles: searchBoxStyle, disabled: disabled, onChange: (event, newValue) => useDebounce.run(event, newValue), onClear: onClear, onSearch: onSearch, onFocus: focusCallback, onBlur: blurCallback }),\r\n React.createElement(IconButton, { iconProps: searchIcon, styles: searchButtonStyle, title: \"Search\", ariaLabel: 'Search', disabled: disabled, onClick: onSearch })));\r\n};\r\nconst Label = styled.div `\r\n\tmargin-right: 4px;\r\n\tdisplay: inline-flex;\r\n\twidth: 100%;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d8d1c27b181014289e11e649e39fa01c.json b/node_modules/.cache/cache-loader/d8d1c27b181014289e11e649e39fa01c.json deleted file mode 100644 index c807e5d..0000000 --- a/node_modules/.cache/cache-loader/d8d1c27b181014289e11e649e39fa01c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\ManualPicker.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericSelector\\ManualPicker.tsx","mtime":1631029334847},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789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FyZ2luLXRvcDogOHB4OwpgOwpjb25zdCBDb250cm9scyA9IHN0eWxlZC5kaXZgYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericSelector/ManualPicker.tsx"],"names":["Slider","useDebounceFn","React","useState","styled","ManualPicker","encoding","onChange","label","min","max","step","rangeValue","setRangeValue","value","useDebounce","wait","createElement","Container","Controls","run","div"],"mappings":"AAAA,SAASA,MAAT,QAAuB,iBAAvB;AACA,SAASC,aAAT,QAA8B,QAA9B;AACA,OAAOC,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,oBAAP;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA,QAAZ;AAAsBC,EAAAA,KAAtB;AAA6BC,EAAAA,GAA7B;AAAkCC,EAAAA,GAAlC;AAAuCC,EAAAA;AAAvC,CAAD,KAAoD;AAC5E,QAAM,CAACC,UAAD,EAAaC,aAAb,IAA8BV,QAAQ,CAACG,QAAQ,CAACQ,KAAV,CAA5C;AACA,QAAMC,WAAW,GAAGd,aAAa,CAACa,KAAK,IAAI;AACvCP,IAAAA,QAAQ,CAAC;AAAEO,MAAAA;AAAF,KAAD,CAAR;AACH,GAFgC,EAE9B;AACCE,IAAAA,IAAI,EAAE;AADP,GAF8B,CAAjC;AAKA,SAAQd,KAAK,CAACe,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJhB,KAAK,CAACe,aAAN,CAAoBE,QAApB,EAA8B,IAA9B,EACIjB,KAAK,CAACe,aAAN,CAAoBjB,MAApB,EAA4B;AAAEQ,IAAAA,KAAK,EAAEA,KAAT;AAAgBC,IAAAA,GAAG,EAAEA,GAArB;AAA0BC,IAAAA,GAAG,EAAEA,GAA/B;AAAoCC,IAAAA,IAAI,EAAEA,IAA1C;AAAgDG,IAAAA,KAAK,EAAEF,UAAvD;AAAmEL,IAAAA,QAAQ,EAAGO,KAAD,IAAW;AAC5GC,MAAAA,WAAW,CAACK,GAAZ,CAAgBN,KAAhB;AACAD,MAAAA,aAAa,CAACC,KAAD,CAAb;AACH;AAHuB,GAA5B,CADJ,CADI,CAAR;AAMH,CAbM;AAcP,MAAMI,SAAS,GAAGd,MAAM,CAACiB,GAAK;AAC9B;AACA,CAFA;AAGA,MAAMF,QAAQ,GAAGf,MAAM,CAACiB,GAAK,EAA7B","sourcesContent":["import { Slider } from '@fluentui/react';\r\nimport { useDebounceFn } from 'ahooks';\r\nimport React, { useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport './ManualPicker.css';\r\nexport const ManualPicker = ({ encoding, onChange, label, min, max, step, }) => {\r\n const [rangeValue, setRangeValue] = useState(encoding.value);\r\n const useDebounce = useDebounceFn(value => {\r\n onChange({ value });\r\n }, {\r\n wait: 300,\r\n });\r\n return (React.createElement(Container, null,\r\n React.createElement(Controls, null,\r\n React.createElement(Slider, { label: label, min: min, max: max, step: step, value: rangeValue, onChange: (value) => {\r\n useDebounce.run(value);\r\n setRangeValue(value);\r\n } }))));\r\n};\r\nconst Container = styled.div `\r\n\tmargin-top: 8px;\r\n`;\r\nconst Controls = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/d9c9d69818c9ff9ff309346ddc0f131d.json b/node_modules/.cache/cache-loader/d9c9d69818c9ff9ff309346ddc0f131d.json deleted file mode 100644 index 3457325..0000000 --- a/node_modules/.cache/cache-loader/d9c9d69818c9ff9ff309346ddc0f131d.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\edges.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\edges.ts","mtime":1631029334670},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdGFibGUsIG9wLCBkZXNjIH0gZnJvbSAnYXJxdWVybyc7CmV4cG9ydCBmdW5jdGlvbiBnZXRFZGdlc0Zyb21UYWJsZUJ5SUQoc2VsZWN0ZWRJZCwgbm9kZVRhYmxlLCBlZGdlcykgewogIGlmIChzZWxlY3RlZElkKSB7CiAgICBjb25zb2xlLmxvZygnc2VsZWN0ZWQgaWQnLCBzZWxlY3RlZElkKTsKICAgIGNvbnN0IGpvaW5lZFRhYmxlID0gam9pbk5vZGVDb21tdW5pdGllcyhlZGdlcywgbm9kZVRhYmxlKTsKICAgIGNvbnN0IG5laWdoYm9yVGFibGUgPSBnZXROZWlnaGJvcnMoc2VsZWN0ZWRJZCwgam9pbmVkVGFibGUsIG5vZGVUYWJsZSk7CiAgICByZXR1cm4gbmVpZ2hib3JUYWJsZTsKICB9Cn0gLy8gam9pbnMgdGhlIGNvbW11bml0eSBpZHMgZm9yIGVkZ2Ugc291cmNlL3RhcmdldCBpbnR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gY29uc3QgY291bnRlZCA9IGdyb3VwZWQuY291bnQoKS5vcmRlcmJ5KGRlc2MoJ2NvdW50JykpOyAvLyBhZGQgYmFjayB0aGUgbm9kZWNvdW50CgogIGNvbnN0IG5ld0pvaW5lZCA9IGNvdW50ZWQubG9va3VwKG5vZGVzLCBbJ2tleScsICdjb21tdW5pdHkuaWQnXSwgewogICAgbWVtYmVyczogZCA9PiBkWydjb21tdW5pdHkubm9kZUNvdW50J10KICB9KTsKICByZXR1cm4gbmV3Sm9pbmVkOwp9Ci8qKg0KICogRmlsdGVycyBhbiBlZGdlIGxpc3QgdG8gb25seSBpbmNsdWRlIGNvbm5lY3Rpb25zIGJldHdlZW4gdGhlIG5vZGVzIGluIHRoZSBwcm92aWRlZCBjb2xsZWN0aW9uDQogKiBAcGFyYW0gZWRnZXMNCiAqIEBwYXJhbSBub2Rlcw0KICovCgoKZXhwb3J0IGZ1bmN0aW9uIGZpbHRlckVkZ2VzVG9Ob2RlcyhlZGdlcywgbm9kZXMpIHsKICBpZiAoZWRnZXMubnVtUm93cygpID09PSAwKSB7CiAgICByZXR1cm4gZWRnZXM7CiAgfSAvLyBub3RlIHRoZSBtYW51YWwgaGFzaDogb3AuaGFzIGRvZXMgTk9UIHdvcmsgd2l0aCBNYXBzCgoKICBjb25zdCBub2RlSWRzID0ge307CiAgbm9kZXMuZm9yRWFjaChub2RlID0+IG5vZGVJZHNbbm9kZS5pZF0gPSB0cnVlKTsKICByZXR1cm4gZWRnZXMucGFyYW1zKHsKICAgIG5vZGVJZHMKICB9KS5maWx0ZXIoKGQsICQpID0+IG9wLmhhcygkLm5vZGVJZHMsIGRbJ2VkZ2Uuc291cmNlJ10pICYmIG9wLmhhcygkLm5vZGVJZHMsIGRbJ2VkZ2UudGFyZ2V0J10pKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/edges.ts"],"names":["table","op","desc","getEdgesFromTableByID","selectedId","nodeTable","edges","console","log","joinedTable","joinNodeCommunities","neighborTable","getNeighbors","nodes","numRows","derived","params","cids","hashNodeField","derive","d","$","field","hash","id","getter","cid","scan","idx","joined","cFiltered","filter","grouped","groupby","key","counted","count","orderby","newJoined","lookup","members","filterEdgesToNodes","nodeIds","forEach","node","has"],"mappings":"AAAA,SAASA,KAAT,EAAgBC,EAAhB,EAAoBC,IAApB,QAAgC,SAAhC;AACA,OAAO,SAASC,qBAAT,CAA+BC,UAA/B,EAA2CC,SAA3C,EAAsDC,KAAtD,EAA6D;AAChE,MAAIF,UAAJ,EAAgB;AACZG,IAAAA,OAAO,CAACC,GAAR,CAAY,aAAZ,EAA2BJ,UAA3B;AACA,UAAMK,WAAW,GAAGC,mBAAmB,CAACJ,KAAD,EAAQD,SAAR,CAAvC;AACA,UAAMM,aAAa,GAAGC,YAAY,CAACR,UAAD,EAAaK,WAAb,EAA0BJ,SAA1B,CAAlC;AACA,WAAOM,aAAP;AACH;AACJ,C,CACD;;AACA,SAASD,mBAAT,CAA6BJ,KAA7B,EAAoCO,KAApC,EAA2C;AACvC,MAAIP,KAAK,CAACQ,OAAN,OAAoB,CAAxB,EAA2B;AACvB,WAAOd,KAAK,EAAZ;AACH;;AACD,QAAMe,OAAO,GAAGT,KAAK,CAChBU,MADW,CACJ;AACRC,IAAAA,IAAI,EAAEC,aAAa,CAACL,KAAD,EAAQ,cAAR;AADX,GADI,EAIXM,MAJW,CAIJ;AACR,wBAAoB,CAACC,CAAD,EAAIC,CAAJ,KAAUA,CAAC,CAACJ,IAAF,CAAOG,CAAC,CAAC,aAAD,CAAR,CADtB;AAER,wBAAoB,CAACA,CAAD,EAAIC,CAAJ,KAAUA,CAAC,CAACJ,IAAF,CAAOG,CAAC,CAAC,aAAD,CAAR;AAFtB,GAJI,CAAhB;AAQA,SAAOL,OAAP;AACH;;AACD,SAASG,aAAT,CAAuBL,KAAvB,EAA8BS,KAA9B,EAAqC;AACjC,QAAMC,IAAI,GAAG,EAAb;AACA,QAAMC,EAAE,GAAGX,KAAK,CAACY,MAAN,CAA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AAC,KAAD,EAAQ,cAAR,CAAtB,EAA+C;AAC7D2B,IAAAA,OAAO,EAAGpB,CAAD,IAAOA,CAAC,CAAC,qBAAD;AAD4C,GAA/C,CAAlB;AAGA,SAAOkB,SAAP;AACH;AACD;AACA;AACA;AACA;AACA;;;AACA,OAAO,SAASG,kBAAT,CAA4BnC,KAA5B,EAAmCO,KAAnC,EAA0C;AAC7C,MAAIP,KAAK,CAACQ,OAAN,OAAoB,CAAxB,EAA2B;AACvB,WAAOR,KAAP;AACH,GAH4C,CAI7C;;;AACA,QAAMoC,OAAO,GAAG,EAAhB;AACA7B,EAAAA,KAAK,CAAC8B,OAAN,CAAcC,IAAI,IAAKF,OAAO,CAACE,IAAI,CAACpB,EAAN,CAAP,GAAmB,IAA1C;AACA,SAAOlB,KAAK,CACPU,MADE,CACK;AACR0B,IAAAA;AADQ,GADL,EAIFX,MAJE,CAIK,CAACX,CAAD,EAAIC,CAAJ,KAAUpB,EAAE,CAAC4C,GAAH,CAAOxB,CAAC,CAACqB,OAAT,EAAkBtB,CAAC,CAAC,aAAD,CAAnB,KAClBnB,EAAE,CAAC4C,GAAH,CAAOxB,CAAC,CAACqB,OAAT,EAAkBtB,CAAC,CAAC,aAAD,CAAnB,CALG,CAAP;AAMH","sourcesContent":["import { table, op, desc } from 'arquero';\r\nexport function getEdgesFromTableByID(selectedId, nodeTable, edges) {\r\n if (selectedId) {\r\n console.log('selected id', selectedId);\r\n const joinedTable = joinNodeCommunities(edges, nodeTable);\r\n const neighborTable = getNeighbors(selectedId, joinedTable, nodeTable);\r\n return neighborTable;\r\n }\r\n}\r\n// joins the community ids for edge source/target into the edge table\r\nfunction joinNodeCommunities(edges, nodes) {\r\n if (edges.numRows() === 0) {\r\n return table();\r\n }\r\n const derived = edges\r\n .params({\r\n cids: hashNodeField(nodes, 'community.id'),\r\n })\r\n .derive({\r\n 'source.community': (d, $) => $.cids[d['edge.source']],\r\n 'target.community': (d, $) => $.cids[d['edge.target']],\r\n });\r\n return derived;\r\n}\r\nfunction hashNodeField(nodes, field) {\r\n const hash = {};\r\n const id = nodes.getter('node.id');\r\n const cid = nodes.getter(field);\r\n nodes.scan(idx => (hash[id(idx)] = cid(idx)));\r\n return hash;\r\n}\r\n// for a given community, finds all the connected sibling counts via edges\r\nfunction getNeighbors(selectedId, joined, nodes) {\r\n if (joined.numRows() === 0 && nodes.numRows() === 0) {\r\n return table();\r\n }\r\n const cFiltered = joined\r\n .params({\r\n cid: selectedId,\r\n })\r\n .filter((d, $) => d['source.community'] === $.cid || d['target.community'] === $.cid);\r\n // the joined table has communities for the source and target of each edge row\r\n // this leaves a groupby and rollup - group by the communities, and then count the links\r\n // groupby accepts multiple column keys, so it will create groups that match both\r\n const grouped = cFiltered.groupby({\r\n key: (d, $) => {\r\n if (d['source.community'] !== $.cid) {\r\n return d['source.community'];\r\n }\r\n return d['target.community'];\r\n },\r\n });\r\n // count is a built in rollup shortcut - it will count the number of rows in each joined group\r\n // the output is a new table with the results - i.e., a row for each count\r\n // this is now a count of the edges between the source and target communities\r\n const counted = grouped.count().orderby(desc('count'));\r\n // add back the nodecount\r\n const newJoined = counted.lookup(nodes, ['key', 'community.id'], {\r\n members: (d) => d['community.nodeCount'],\r\n });\r\n return newJoined;\r\n}\r\n/**\r\n * Filters an edge list to only include connections between the nodes in the provided collection\r\n * @param edges\r\n * @param nodes\r\n */\r\nexport function filterEdgesToNodes(edges, nodes) {\r\n if (edges.numRows() === 0) {\r\n return edges;\r\n }\r\n // note the manual hash: op.has does NOT work with Maps\r\n const nodeIds = {};\r\n nodes.forEach(node => (nodeIds[node.id] = true));\r\n return edges\r\n .params({\r\n nodeIds,\r\n })\r\n .filter((d, $) => op.has($.nodeIds, d['edge.source']) &&\r\n op.has($.nodeIds, d['edge.target']));\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/da9f57b718e4b3d838dca9e967f2b586.json b/node_modules/.cache/cache-loader/da9f57b718e4b3d838dca9e967f2b586.json deleted file mode 100644 index bc7a827..0000000 --- a/node_modules/.cache/cache-loader/da9f57b718e4b3d838dca9e967f2b586.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\nodes.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\nodes.ts","mtime":1631029334888},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBST09UX0NPTU1VTklUWV9JRCB9IGZyb20g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ZSBub2Rlcywgd2hpY2ggaXMgZGVmaW5lZCBhcyBhbGwgdGhvc2UgZm9yCi8vIGNvbW11bml0aWVzIHdpdGggbm8gcGFyZW50LCBpLmUuLCB0aGUgcm9vdHMKLy8gbm90ZSB0aGF0IHRoZXkgd2lsbCB0aGVyZWZvcmUgaGF2ZSByb290IGNvbW11bml0eSBwcm9wZXJ0aWVzCgpleHBvcnQgY29uc3QgdW5pcXVlTm9kZXNTdGF0ZSA9IHNlbGVjdG9yKHsKICBrZXk6ICd1bmlxdWUtbm9kZXMnLAogIGdldDogKHsKICAgIGdldAogIH0pID0+IHsKICAgIGNvbnN0IHBhcmVudHMgPSBnZXQoZ3JvdXBlZFBhcmVudHNUYWJsZVN0YXRlKTsKICAgIGNvbnN0IGluZGljZXMgPSBmaW5kR3JvdXBJbmRpY2VzKHBhcmVudHMsICdjb21tdW5pdHkucGlkJywgUk9PVF9DT01NVU5JVFlfSUQpOwogICAgcmV0dXJuIG5ldyBOb2RlQ29sbGVjdGlvbihwYXJlbnRzLCBpbmRpY2VzKTsKICB9LAogIGRhbmdlcm91c2x5QWxsb3dNdXRhYmlsaXR5OiB0cnVlCn0pOwpleHBvcnQgZnVuY3Rpb24gdXNlVW5pcXVlTm9kZXMoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFZhbHVlKHVuaXF1ZU5vZGVzU3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/nodes.ts"],"names":["ROOT_COMMUNITY_ID","groupedParentsTableState","atom","selector","useRecoilValue","useSetRecoilState","findGroupIndices","NodeCollection","hoveredNodeState","key","default","undefined","useHoveredNode","useSetHoveredNode","selectedNodesState","useSelectedNodesState","useSetSelectedNodes","uniqueNodesState","get","parents","indices","dangerouslyAllowMutability","useUniqueNodes"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,cAAlC;AACA,SAASC,wBAAT,QAAyC,UAAzC;AACA,SAASC,IAAT,EAAeC,QAAf,EAAyBC,cAAzB,EAAyCC,iBAAzC,QAAkE,QAAlE;AACA,SAASC,gBAAT,EAA2BC,cAA3B,QAAiD,WAAjD;AACA,MAAMC,gBAAgB,GAAGN,IAAI,CAAC;AAC1BO,EAAAA,GAAG,EAAE,cADqB;AAE1BC,EAAAA,OAAO,EAAEC;AAFiB,CAAD,CAA7B;AAIA,OAAO,SAASC,cAAT,GAA0B;AAC7B,SAAOR,cAAc,CAACI,gBAAD,CAArB;AACH;AACD,OAAO,SAASK,iBAAT,GAA6B;AAChC,SAAOR,iBAAiB,CAACG,gBAAD,CAAxB;AACH,C,CACD;;AACA,MAAMM,kBAAkB,GAAGZ,IAAI,CAAC;AAC5BO,EAAAA,GAAG,EAAE,eADuB;AAE5BC,EAAAA,OAAO,EAAEC;AAFmB,CAAD,CAA/B;AAIA,OAAO,SAASI,qBAAT,GAAiC;AACpC,SAAOX,cAAc,CAACU,kBAAD,CAArB;AACH;AACD,OAAO,SAASE,mBAAT,GAA+B;AAClC,SAAOX,iBAAiB,CAACS,kBAAD,CAAxB;AACH,C,CACD;AACA;AACA;;AACA,OAAO,MAAMG,gBAAgB,GAAGd,QAAQ,CAAC;AACrCM,EAAAA,GAAG,EAAE,cADgC;AAErCS,EAAAA,GAAG,EAAE,CAAC;AAAEA,IAAAA;AAAF,GAAD,KAAa;AACd,UAAMC,OAAO,GAAGD,GAAG,CAACjB,wBAAD,CAAnB;AACA,UAAMmB,OAAO,GAAGd,gBAAgB,CAACa,OAAD,EAAU,eAAV,EAA2BnB,iBAA3B,CAAhC;AACA,WAAO,IAAIO,cAAJ,CAAmBY,OAAnB,EAA4BC,OAA5B,CAAP;AACH,GANoC;AAOrCC,EAAAA,0BAA0B,EAAE;AAPS,CAAD,CAAjC;AASP,OAAO,SAASC,cAAT,GAA0B;AAC7B,SAAOlB,cAAc,CAACa,gBAAD,CAArB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../constants';\r\nimport { groupedParentsTableState } from './tables';\r\nimport { atom, selector, useRecoilValue, useSetRecoilState } from 'recoil';\r\nimport { findGroupIndices, NodeCollection } from '~/arquero';\r\nconst hoveredNodeState = atom({\r\n key: 'hovered-node',\r\n default: undefined,\r\n});\r\nexport function useHoveredNode() {\r\n return useRecoilValue(hoveredNodeState);\r\n}\r\nexport function useSetHoveredNode() {\r\n return useSetRecoilState(hoveredNodeState);\r\n}\r\n// Tracks nodes selected from search\r\nconst selectedNodesState = atom({\r\n key: 'selected-node',\r\n default: undefined,\r\n});\r\nexport function useSelectedNodesState() {\r\n return useRecoilValue(selectedNodesState);\r\n}\r\nexport function useSetSelectedNodes() {\r\n return useSetRecoilState(selectedNodesState);\r\n}\r\n// this is a list of the unique nodes, which is defined as all those for\r\n// communities with no parent, i.e., the roots\r\n// note that they will therefore have root community properties\r\nexport const uniqueNodesState = selector({\r\n key: 'unique-nodes',\r\n get: ({ get }) => {\r\n const parents = get(groupedParentsTableState);\r\n const indices = findGroupIndices(parents, 'community.pid', ROOT_COMMUNITY_ID);\r\n return new NodeCollection(parents, indices);\r\n },\r\n dangerouslyAllowMutability: true,\r\n});\r\nexport function useUniqueNodes() {\r\n return useRecoilValue(uniqueNodesState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/dbd4f684c6fefe08206f648f4035cd8f.json b/node_modules/.cache/cache-loader/dbd4f684c6fefe08206f648f4035cd8f.json deleted file mode 100644 index 826b271..0000000 --- a/node_modules/.cache/cache-loader/dbd4f684c6fefe08206f648f4035cd8f.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\index.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\hooks\\index.ts","mtime":1620403249286},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL3VzZUR5bmFtaWNDb2x1bW4nOwpleHBvcnQgKiBmcm9tICcuL3VzZUJhclNjYWxlJzsKZXhwb3J0ICogZnJvbSAnLi90aGVtZSc7CmV4cG9ydCAqIGZyb20gJy4vdXNlQ29sdW1ucyc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/hooks/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,oBAAd;AACA,cAAc,eAAd;AACA,cAAc,SAAd;AACA,cAAc,cAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './useDynamicColumn';\r\nexport * from './useBarScale';\r\nexport * from './theme';\r\nexport * from './useColumns';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/dccacc87477f3ac8fa930558f094c069.json b/node_modules/.cache/cache-loader/dccacc87477f3ac8fa930558f094c069.json deleted file mode 100644 index 7a156a7..0000000 --- a/node_modules/.cache/cache-loader/dccacc87477f3ac8fa930558f094c069.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\hooks.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\hooks.ts","mtime":1631029334672},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader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mVzdC4gSWYgbm9uIHByZXNlbnQsIHJldHVybiBhbGwKLy8gaGlkZGVuRmllbGRzIGlzIG9wdGlvbmFsIHBhcmFtZXRlciBzcGVjaWZ5aW5nIGZpZWxkcyB0aGF0IHdpbGwgbm90IGJlIHJldHVybiBpbiBob29rCgpleHBvcnQgZnVuY3Rpb24gdXNlQ29sdW1uQXJyYXkodGFibGUsIGNvbEF0dHJpYnV0ZSwgaGlkZGVuRmllbGRzKSB7CiAgcmV0dXJuIHVzZU1lbW8oKCkgPT4gewogICAgY29uc3QgYWxsQ29sdW1ucyA9IHRhYmxlLnRhYmxlLmNvbHVtbk5hbWVzKCk7CgogICAgaWYgKGFsbENvbHVtbnMubGVuZ3RoID4gMCkgewogICAgICByZXR1cm4gYWxsQ29sdW1ucy5yZWR1Y2UoKGFjYywgY29sKSA9PiB7CiAgICAgICAgY29uc3Qgc3BsaXQgPSBjb2wuc3BsaXQoJy4nKTsKICAgICAgICBjb25zdCBbcHJlZml4LCB2YWx1ZV0gPSBzcGxpdDsKICAgICAgICBjb25zdCBoaWRkZW4gPSBoaWRkZW5GaWVsZHMgPyBoaWRkZW5GaWVsZHMuZmluZChuYW1lID0+IG5hbWUgPT09IHZhbHVlKSA6IGZhbHNlOwogICAgICAgIGNvbnN0IGNvbFR5cGUgPSBjb2xBdHRyaWJ1dGUgPyBjb2xBdHRyaWJ1dGUuZmluZChuYW1lID0+IG5hbWUgPT09IHByZWZpeCkgOiB0cnVlOwoKICAgICAgICBpZiAoY29sVHlwZSAmJiAhaGlkZGVuKSB7CiAgICAgICAgICBhY2MucHVzaChjb2wpOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGFjYzsKICAgICAgfSwgW10pOwogICAgfQoKICAgIHJldHVybiBbXTsKICB9LCBbdGFibGUsIGhpZGRlbkZpZWxkcywgY29sQXR0cmlidXRlXSk7Cn0="},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/hooks.ts"],"names":["ROOT_COMMUNITY_ID","CommunityCollection","EdgeCollection","NodeCollection","findNodesCollectionForCommunity","filterEdgesToNodes","deriveLayoutPositions","deriveSmallMultiplePositions","initializeEdgeTable","initializeNodeTable","joinDataTables","joinNodeCommunityTables","listColumnDefs","not","table","useCallback","useMemo","useHoveredCommunity","useSelectedCommunity","useBigTable","useSetBigTable","useGroupedByCommunityTable","useGroupedByParentTable","useEdgeTable","useSetEdgeTable","useResetBigTable","useResetEdgeTable","useCommunityNodesTable","useCommunitiesTable","useResetNavigationState","useResetSelectedCommunity","useUniqueNodes","useCachedColumnHistogram","useCachedColumnStats","useArqueroBigTable","useSetArqueroBigTable","useArqueroEdgeTable","useSetArqueroEdgeTable","useClearAllData","resetBigTable","resetEdgeTable","resetNav","resetSelectedCommunity","useArqueroAddTable","bigTable","setBigTable","setEdgeTable","newTable","type","console","log","print","updated","numRows","edges","numCols","useArqueroRemoveColumns","columnNames","derived","select","fixed","Set","useArqueroColumnList","useArqueroUniqueNodes","useNodeCount","nodes","size","useEdgeCount","useColumnStats","field","useColumnHistogram","useArqueroUniqueEdges","filtered","useArqueroVisibleCommunities","pid","communities","tbl","params","filter","d","$","ungroup","exclude","useArqueroDataFields","has","useArqueroVisibleNodes","useArqueroVisibleNodesTable","useArqueroVisibleEdges","id","useArqueroHoveredNodes","hovered","byParent","byCommunity","useArqueroSelectedNodes","selected","useTableColumnsByType","dataType","def","columns","map","name","valueTable","useStandardNodePositions","useGriddedNodePositions","compute","positions","useColumnArray","colAttribute","hiddenFields","allColumns","length","reduce","acc","col","split","prefix","value","hidden","find","colType","push"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,cAAlC;AACA,SAASC,mBAAT,EAA8BC,cAA9B,EAA8CC,cAA9C,QAAqE,mBAArE;AACA,SAASC,+BAAT,QAAgD,eAAhD;AACA,SAASC,kBAAT,QAAmC,SAAnC;AACA,SAASC,qBAAT,EAAgCC,4BAAhC,QAAoE,UAApE;AACA,SAASC,mBAAT,EAA8BC,mBAA9B,EAA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B,CAAxB,EAA2B;AACvB,aAAOD,UAAU,CAACE,MAAX,CAAkB,CAACC,GAAD,EAAMC,GAAN,KAAc;AACnC,cAAMC,KAAK,GAAGD,GAAG,CAACC,KAAJ,CAAU,GAAV,CAAd;AACA,cAAM,CAACC,MAAD,EAASC,KAAT,IAAkBF,KAAxB;AACA,cAAMG,MAAM,GAAGT,YAAY,GACrBA,YAAY,CAACU,IAAb,CAAkBlB,IAAI,IAAIA,IAAI,KAAKgB,KAAnC,CADqB,GAErB,KAFN;AAGA,cAAMG,OAAO,GAAGZ,YAAY,GACtBA,YAAY,CAACW,IAAb,CAAkBlB,IAAI,IAAIA,IAAI,KAAKe,MAAnC,CADsB,GAEtB,IAFN;;AAGA,YAAII,OAAO,IAAI,CAACF,MAAhB,EAAwB;AACpBL,UAAAA,GAAG,CAACQ,IAAJ,CAASP,GAAT;AACH;;AACD,eAAOD,GAAP;AACH,OAbM,EAaJ,EAbI,CAAP;AAcH;;AACD,WAAO,EAAP;AACH,GAnBa,EAmBX,CAAClG,KAAD,EAAQ8F,YAAR,EAAsBD,YAAtB,CAnBW,CAAd;AAoBH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../constants';\r\nimport { CommunityCollection, EdgeCollection, NodeCollection, } from './TableCollection';\r\nimport { findNodesCollectionForCommunity } from './communities';\r\nimport { filterEdgesToNodes } from './edges';\r\nimport { deriveLayoutPositions, deriveSmallMultiplePositions } from './layout';\r\nimport { initializeEdgeTable, initializeNodeTable, joinDataTables, joinNodeCommunityTables, listColumnDefs, } from './table';\r\nimport { not, table } from 'arquero';\r\nimport { useCallback, useMemo } from 'react';\r\nimport { useHoveredCommunity, useSelectedCommunity, useBigTable, useSetBigTable, useGroupedByCommunityTable, useGroupedByParentTable, useEdgeTable, useSetEdgeTable, useResetBigTable, useResetEdgeTable, useCommunityNodesTable, useCommunitiesTable, useResetNavigationState, useResetSelectedCommunity, useUniqueNodes, } from '~/state';\r\nimport { useCachedColumnHistogram, useCachedColumnStats } from '~/state/caches';\r\nexport function useArqueroBigTable() {\r\n return useBigTable();\r\n}\r\nexport function useSetArqueroBigTable() {\r\n return useSetBigTable();\r\n}\r\nexport function useArqueroEdgeTable() {\r\n return useEdgeTable();\r\n}\r\nexport function useSetArqueroEdgeTable() {\r\n return useSetEdgeTable();\r\n}\r\nexport function useClearAllData() {\r\n const resetBigTable = useResetBigTable();\r\n const resetEdgeTable = useResetEdgeTable();\r\n const resetNav = useResetNavigationState();\r\n const resetSelectedCommunity = useResetSelectedCommunity();\r\n return useCallback(() => {\r\n resetBigTable();\r\n resetEdgeTable();\r\n resetNav();\r\n resetSelectedCommunity();\r\n }, [resetBigTable, resetEdgeTable, resetNav, resetSelectedCommunity]);\r\n}\r\nexport function useArqueroAddTable() {\r\n const bigTable = useArqueroBigTable();\r\n const setBigTable = useSetArqueroBigTable();\r\n const setEdgeTable = useSetArqueroEdgeTable();\r\n return useCallback((newTable, type) => {\r\n console.log('adding table/columns', type);\r\n newTable.print();\r\n let updated = bigTable;\r\n if (type === 'edge') {\r\n if (bigTable.numRows() === 0) {\r\n updated = initializeNodeTable(newTable, true);\r\n }\r\n const edges = initializeEdgeTable(newTable);\r\n setEdgeTable(edges);\r\n }\r\n else {\r\n if (bigTable.numCols() > 0) {\r\n if (type === 'join') {\r\n updated = joinNodeCommunityTables(bigTable, newTable);\r\n }\r\n else {\r\n updated = joinDataTables(bigTable, newTable, type);\r\n }\r\n }\r\n else {\r\n // it's a fresh start\r\n updated = initializeNodeTable(newTable);\r\n }\r\n }\r\n updated.print();\r\n setBigTable(updated);\r\n }, [bigTable, setBigTable, setEdgeTable]);\r\n}\r\nexport function useArqueroRemoveColumns() {\r\n const bigTable = useArqueroBigTable();\r\n const setBigTable = useSetArqueroBigTable();\r\n return useCallback((columnNames) => {\r\n // TODO: we could inadvertently use this to remove required columns, such as node.id which should be blocked\r\n // TODO: if a removed column is the current visual encoding, it will error - find a fallback\r\n console.log('removing columns', columnNames);\r\n const derived = bigTable.select(not(columnNames));\r\n derived.print();\r\n setBigTable(derived);\r\n }, [bigTable, setBigTable]);\r\n}\r\nconst fixed = new Set([\r\n 'node.id',\r\n 'node.x',\r\n 'node.y',\r\n 'node.d',\r\n 'community.id',\r\n 'community.pid',\r\n 'community.childCount',\r\n 'community.nodeCount',\r\n]);\r\nexport function useArqueroColumnList() {\r\n const bigTable = useArqueroBigTable();\r\n return useMemo(() => listColumnDefs(bigTable, fixed), [bigTable]);\r\n}\r\n// for the list of unique nodes, just get the list where parent comm is -1\r\n// this will be the child nodes of every community at the root\r\nexport function useArqueroUniqueNodes() {\r\n return useUniqueNodes();\r\n}\r\nexport function useNodeCount() {\r\n const nodes = useArqueroUniqueNodes();\r\n return nodes.size;\r\n}\r\nexport function useEdgeCount() {\r\n const edges = useEdgeTable();\r\n return edges.numRows();\r\n}\r\nexport function useColumnStats(table, field) {\r\n return useCachedColumnStats(table, field);\r\n}\r\nexport function useColumnHistogram(table, field) {\r\n return useCachedColumnHistogram(table, field);\r\n}\r\n// TODO: (a) do we actually need to filter edges to ensure node alignment?\r\n// (b) we should create a useVisibleEdges list that matches the selected community, just like nodes\r\nexport function useArqueroUniqueEdges() {\r\n const table = useEdgeTable();\r\n const nodes = useArqueroUniqueNodes();\r\n return useMemo(() => {\r\n const filtered = filterEdgesToNodes(table, nodes);\r\n return new EdgeCollection(filtered);\r\n }, [table, nodes]);\r\n}\r\n// visible communities are always derived from the selected parent\r\nexport function useArqueroVisibleCommunities() {\r\n const pid = useSelectedCommunity();\r\n const communities = useCommunitiesTable();\r\n const tbl = useMemo(() => {\r\n if (communities.numCols() > 0 && pid) {\r\n const filtered = communities\r\n .params({\r\n pid,\r\n })\r\n .filter((d, $) => d['community.pid'] === $.pid)\r\n .ungroup();\r\n return filtered;\r\n }\r\n return table();\r\n }, [pid, communities]);\r\n return useMemo(() => new CommunityCollection(tbl), [tbl]);\r\n}\r\n// NOTE: do we really need to enforce excluding these fields from the vis config?\r\n// eventually we could have a much more general purpose mapping, which allows\r\n// the user to assign ANY field to ANY encoding property (position, color, size, shape...)\r\nconst exclude = new Set([\r\n 'node.id',\r\n 'node.x',\r\n 'node.y',\r\n 'community.pid',\r\n 'community.level',\r\n]);\r\nexport function useArqueroDataFields() {\r\n const bigTable = useArqueroBigTable();\r\n return useMemo(() => bigTable.columnNames((d) => !exclude.has(d)), [bigTable]);\r\n}\r\n// we would prefer the visible nodes to be derived using the parent community\r\n// this ensures that each node has the properties of the child community it resides in\r\n// however, if we select a leaf community with no children, there will be no child entries\r\n// when filtering by parent - in this case, just return the nodes for that community\r\nexport function useArqueroVisibleNodes() {\r\n const table = useArqueroVisibleNodesTable();\r\n return useMemo(() => new NodeCollection(table), [table]);\r\n}\r\nexport function useArqueroVisibleNodesTable() {\r\n const pid = useSelectedCommunity();\r\n return useCommunityNodesTable(pid);\r\n}\r\n// TODO: actually filter this\r\nexport function useArqueroVisibleEdges(id) {\r\n const edges = useArqueroEdgeTable();\r\n return useMemo(() => new EdgeCollection(edges), [edges]);\r\n}\r\nexport function useArqueroHoveredNodes() {\r\n const hovered = useHoveredCommunity();\r\n const byParent = useGroupedByParentTable();\r\n const byCommunity = useGroupedByCommunityTable();\r\n return useMemo(() => findNodesCollectionForCommunity(hovered, byParent, byCommunity), [hovered, byParent, byCommunity]);\r\n}\r\nexport function useArqueroSelectedNodes() {\r\n const selected = useSelectedCommunity();\r\n const nodes = useArqueroVisibleNodes();\r\n return useMemo(() => (selected === ROOT_COMMUNITY_ID ? new NodeCollection() : nodes), [selected, nodes]);\r\n}\r\nexport function useTableColumnsByType(dataType) {\r\n // const byCommunity = useGroupedByCommunityTable()\r\n const bigTable = useArqueroBigTable();\r\n if (bigTable.numRows() > 0) {\r\n const def = listColumnDefs(bigTable);\r\n const columns = def.filter(d => d.dataType === dataType).map(d => d.name);\r\n const valueTable = bigTable.select(columns);\r\n return valueTable;\r\n }\r\n return table();\r\n}\r\n// for a list of communities, get a map of [cid]: nodepositions[]\r\nexport function useStandardNodePositions() {\r\n const nodes = useArqueroVisibleNodes();\r\n return useMemo(() => deriveLayoutPositions(nodes.table), [nodes]);\r\n}\r\nexport function useGriddedNodePositions(compute) {\r\n const nodes = useArqueroVisibleNodesTable();\r\n const positions = useMemo(() => {\r\n if (compute) {\r\n return deriveSmallMultiplePositions(nodes);\r\n }\r\n return {};\r\n }, [nodes, compute]);\r\n return positions;\r\n}\r\n// Get Column array for given table. ColAttribute specify col prefix of interest. If non present, return all\r\n// hiddenFields is optional parameter specifying fields that will not be return in hook\r\nexport function useColumnArray(table, colAttribute, hiddenFields) {\r\n return useMemo(() => {\r\n const allColumns = table.table.columnNames();\r\n if (allColumns.length > 0) {\r\n return allColumns.reduce((acc, col) => {\r\n const split = col.split('.');\r\n const [prefix, value] = split;\r\n const hidden = hiddenFields\r\n ? hiddenFields.find(name => name === value)\r\n : false;\r\n const colType = colAttribute\r\n ? colAttribute.find(name => name === prefix)\r\n : true;\r\n if (colType && !hidden) {\r\n acc.push(col);\r\n }\r\n return acc;\r\n }, []);\r\n }\r\n return [];\r\n }, [table, hiddenFields, colAttribute]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/de03e79117b01323d11834a868813df6.json b/node_modules/.cache/cache-loader/de03e79117b01323d11834a868813df6.json deleted file mode 100644 index 3479f5b..0000000 --- a/node_modules/.cache/cache-loader/de03e79117b01323d11834a868813df6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\vis\\view.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\vis\\view.ts","mtime":1631029334919},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBWaWV3VHlwZSB9IGZyb20gJy4uLy4uL3R5cGVzJzsKaW1wb3J0IHsgZmVhdHVyZXNTdGF0ZSB9IGZyb20gJy4uL2ZlYXR1cmVzJzsKaW1wb3J0IHsgYXRvbSwgc2VsZWN0b3IsIHVzZVJlY29pbFZhbHVlLCB1c2VTZXRSZWNvaWxTdGF0ZSB9IGZyb20gJ3JlY29pbCc7CmV4cG9ydCBjb25zdCBncmFwaFZpZXdTdGF0ZSA9IGF0b20oewogIGtleTogJ2dyYXBoLXZpZXcnLAogIGRlZmF1bHQ6IFZpZXdUeXBlLlNpbmdsZUdyYXBoCn0pOwpleHBvcnQgY29uc3Q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CkgewogIHJldHVybiB1c2VSZWNvaWxWYWx1ZShjb25zdHJhaW5lZEdyYXBoVmlld1N0YXRlKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlU2V0R3JhcGhWaWV3VHlwZSgpIHsKICByZXR1cm4gdXNlU2V0UmVjb2lsU3RhdGUoZ3JhcGhWaWV3U3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/vis/view.ts"],"names":["ViewType","featuresState","atom","selector","useRecoilValue","useSetRecoilState","graphViewState","key","default","SingleGraph","constrainedGraphViewState","get","features","view","enableSmallMultiples","nodesVisibleState","useNodesVisible","useSetNodesVisible","edgesVisibleState","useEdgesVisible","useSetEdgesVisible","useGraphViewType","useSetGraphViewType"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,QAAT,QAAyB,aAAzB;AACA,SAASC,aAAT,QAA8B,aAA9B;AACA,SAASC,IAAT,EAAeC,QAAf,EAAyBC,cAAzB,EAAyCC,iBAAzC,QAAkE,QAAlE;AACA,OAAO,MAAMC,cAAc,GAAGJ,IAAI,CAAC;AAC/BK,EAAAA,GAAG,EAAE,YAD0B;AAE/BC,EAAAA,OAAO,EAAER,QAAQ,CAACS;AAFa,CAAD,CAA3B;AAIP,OAAO,MAAMC,yBAAyB,GAAGP,QAAQ,CAAC;AAC9CI,EAAAA,GAAG,EAAE,uBADyC;AAE9CI,EAAAA,GAAG,EAAE,CAAC;AAAEA,IAAAA;AAAF,GAAD,KAAa;AACd,UAAMC,QAAQ,GAAGD,GAAG,CAACV,aAAD,CAApB;AACA,UAAMY,IAAI,GAAGF,GAAG,CAACL,cAAD,CAAhB;AACA,WAAOM,QAAQ,CAACE,oBAAT,GAAgCD,IAAhC,GAAuCb,QAAQ,CAACS,WAAvD;AACH;AAN6C,CAAD,CAA1C;AAQP,OAAO,MAAMM,iBAAiB,GAAGb,IAAI,CAAC;AAClCK,EAAAA,GAAG,EAAE,eAD6B;AAElCC,EAAAA,OAAO,EAAE;AAFyB,CAAD,CAA9B;AAIP,OAAO,SAASQ,eAAT,GAA2B;AAC9B,SAAOZ,cAAc,CAACW,iBAAD,CAArB;AACH;AACD,OAAO,SAASE,kBAAT,GAA8B;AACjC,SAAOZ,iBAAiB,CAACU,iBAAD,CAAxB;AACH;AACD,OAAO,MAAMG,iBAAiB,GAAGhB,IAAI,CAAC;AAClCK,EAAAA,GAAG,EAAE,eAD6B;AAElCC,EAAAA,OAAO,EAAE;AAFyB,CAAD,CAA9B;AAIP,OAAO,SAASW,eAAT,GAA2B;AAC9B,SAAOf,cAAc,CAACc,iBAAD,CAArB;AACH;AACD,OAAO,SAASE,kBAAT,GAA8B;AACjC,SAAOf,iBAAiB,CAACa,iBAAD,CAAxB;AACH;AACD,OAAO,SAASG,gBAAT,GAA4B;AAC/B,SAAOjB,cAAc,CAACM,yBAAD,CAArB;AACH;AACD,OAAO,SAASY,mBAAT,GAA+B;AAClC,SAAOjB,iBAAiB,CAACC,cAAD,CAAxB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ViewType } from '../../types';\r\nimport { featuresState } from '../features';\r\nimport { atom, selector, useRecoilValue, useSetRecoilState } from 'recoil';\r\nexport const graphViewState = atom({\r\n key: 'graph-view',\r\n default: ViewType.SingleGraph,\r\n});\r\nexport const constrainedGraphViewState = selector({\r\n key: 'graph-view-contrained',\r\n get: ({ get }) => {\r\n const features = get(featuresState);\r\n const view = get(graphViewState);\r\n return features.enableSmallMultiples ? view : ViewType.SingleGraph;\r\n },\r\n});\r\nexport const nodesVisibleState = atom({\r\n key: 'nodes-visible',\r\n default: true,\r\n});\r\nexport function useNodesVisible() {\r\n return useRecoilValue(nodesVisibleState);\r\n}\r\nexport function useSetNodesVisible() {\r\n return useSetRecoilState(nodesVisibleState);\r\n}\r\nexport const edgesVisibleState = atom({\r\n key: 'edges-visible',\r\n default: true,\r\n});\r\nexport function useEdgesVisible() {\r\n return useRecoilValue(edgesVisibleState);\r\n}\r\nexport function useSetEdgesVisible() {\r\n return useSetRecoilState(edgesVisibleState);\r\n}\r\nexport function useGraphViewType() {\r\n return useRecoilValue(constrainedGraphViewState);\r\n}\r\nexport function useSetGraphViewType() {\r\n return useSetRecoilState(graphViewState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e03a2eb42e5ecd26f56718b497f3240e.json b/node_modules/.cache/cache-loader/e03a2eb42e5ecd26f56718b497f3240e.json deleted file mode 100644 index f70c8fd..0000000 --- a/node_modules/.cache/cache-loader/e03a2eb42e5ecd26f56718b497f3240e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\CommunityList\\types.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\CommunityList\\types.ts","mtime":1622565395623},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZXhwb3J0IHZhciBNYXJrOwoKKGZ1bmN0aW9uIChNYXJrKSB7CiAgTWFya1tNYXJrWyJOb25lIl0gPSAwXSA9ICJOb25lIjsKICBNYXJrW01hcmtbIkNpcmNsZSJdID0gMV0gPSAiQ2lyY2xlIjsKICBNYXJrW01hcmtbIlJlY3QiXSA9IDJdID0gIlJlY3QiOwp9KShNYXJrIHx8IChNYXJrID0ge30pKTs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/CommunityList/types.ts"],"names":["Mark"],"mappings":"AAAA,OAAO,IAAIA,IAAJ;;AACP,CAAC,UAAUA,IAAV,EAAgB;AACbA,EAAAA,IAAI,CAACA,IAAI,CAAC,MAAD,CAAJ,GAAe,CAAhB,CAAJ,GAAyB,MAAzB;AACAA,EAAAA,IAAI,CAACA,IAAI,CAAC,QAAD,CAAJ,GAAiB,CAAlB,CAAJ,GAA2B,QAA3B;AACAA,EAAAA,IAAI,CAACA,IAAI,CAAC,MAAD,CAAJ,GAAe,CAAhB,CAAJ,GAAyB,MAAzB;AACH,CAJD,EAIGA,IAAI,KAAKA,IAAI,GAAG,EAAZ,CAJP","sourcesContent":["export var Mark;\r\n(function (Mark) {\r\n Mark[Mark[\"None\"] = 0] = \"None\";\r\n Mark[Mark[\"Circle\"] = 1] = \"Circle\";\r\n Mark[Mark[\"Rect\"] = 2] = \"Rect\";\r\n})(Mark || (Mark = {}));\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e3e3994796369a45ea9dd9a3815d7249.json b/node_modules/.cache/cache-loader/e3e3994796369a45ea9dd9a3815d7249.json deleted file mode 100644 index 8eb3d06..0000000 --- a/node_modules/.cache/cache-loader/e3e3994796369a45ea9dd9a3815d7249.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\nodes.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\nodes.ts","mtime":1624559748099},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lCmltcG9ydCB7IG9wIH0gZnJvbSAnYXJxdWVybyc7Ci8qKg0KICogR2V0cyBkZWZhdWx0IHJvbGxlZCB1cCBub2RlIHN0YXRzIHdpdGhpbiBhIHF1YW50aWxlIHJhbmdlLg0KICogQHBhcmFtIHRhYmxlIGFzc3VtZWQgcHJlLWdyb3VwZWQgdGFibGUgKGUuZy4sIGJ5IHBhcmVudCBpZCkNCiAqIEBwYXJhbSBxdWFudGlsZQ0KICovCgpleHBvcnQgZnVuY3Rpb24gZ2V0Tm9kZVN0YXRzKHRhYmxlLCBxdWFudGlsZSA9IDEpIHsKICBpZiAoIXRhYmxlIHx8IHRhYmxlLm51bVJvd3MoKSA9PT0gMCB8fCBxdWFudGlsZSA9PT0gMSkgewogICAgcmV0dXJuIFt7CiAgICAgIG1pblg6IDAsCiAgICAgIG1heFg6IDEsCiAgICAgIG1pblk6IDAsCiAgICAgIG1heFk6IDEsCiAgICAgIG1pbkQ6IDAsCiAgICAgIG1heEQ6IDEKICAgIH1dOwogIH0KCiAgY29uc3Qgcm9sbHVwID0gdGFibGUucm9sbHVwKHsKICAgIG1pblg6IG9wLnF1YW50aWxlKCdub2RlLngnLCAxIC0gcXVhbnRpbGUpLAogICAgbWF4WDogb3AucXVhbnRpbGUoJ25vZGUueCcsIHF1YW50aWxlKSwKICAgIG1pblk6IG9wLnF1YW50aWxlKCdub2RlLnknLCAxIC0gcXVhbnRpbGUpLAogICAgbWF4WTogb3AucXVhbnRpbGUoJ25vZGUueScsIHF1YW50aWxlKSwKICAgIG1pbkQ6IG9wLnF1YW50aWxlKCdub2RlLmQnLCAxIC0gcXVhbnRpbGUpLAogICAgbWF4RDogb3AucXVhbnRpbGUoJ25vZGUuZCcsIHF1YW50aWxlKQogIH0pOwogIHJldHVybiByb2xsdXAub2JqZWN0cygpWzBdOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/nodes.ts"],"names":["op","getNodeStats","table","quantile","numRows","minX","maxX","minY","maxY","minD","maxD","rollup","objects"],"mappings":"AAAA;AACA,SAASA,EAAT,QAAmB,SAAnB;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,YAAT,CAAsBC,KAAtB,EAA6BC,QAAQ,GAAG,CAAxC,EAA2C;AAC9C,MAAI,CAACD,KAAD,IAAUA,KAAK,CAACE,OAAN,OAAoB,CAA9B,IAAmCD,QAAQ,KAAK,CAApD,EAAuD;AACnD,WAAO,CACH;AACIE,MAAAA,IAAI,EAAE,CADV;AAEIC,MAAAA,IAAI,EAAE,CAFV;AAGIC,MAAAA,IAAI,EAAE,CAHV;AAIIC,MAAAA,IAAI,EAAE,CAJV;AAKIC,MAAAA,IAAI,EAAE,CALV;AAMIC,MAAAA,IAAI,EAAE;AANV,KADG,CAAP;AAUH;;AACD,QAAMC,MAAM,GAAGT,KAAK,CAACS,MAAN,CAAa;AACxBN,IAAAA,IAAI,EAAEL,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsB,IAAIA,QAA1B,CADkB;AAExBG,IAAAA,IAAI,EAAEN,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsBA,QAAtB,CAFkB;AAGxBI,IAAAA,IAAI,EAAEP,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsB,IAAIA,QAA1B,CAHkB;AAIxBK,IAAAA,IAAI,EAAER,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsBA,QAAtB,CAJkB;AAKxBM,IAAAA,IAAI,EAAET,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsB,IAAIA,QAA1B,CALkB;AAMxBO,IAAAA,IAAI,EAAEV,EAAE,CAACG,QAAH,CAAY,QAAZ,EAAsBA,QAAtB;AANkB,GAAb,CAAf;AAQA,SAAOQ,MAAM,CAACC,OAAP,GAAiB,CAAjB,CAAP;AACH","sourcesContent":["// eslint-disable-next-line\r\nimport { op } from 'arquero';\r\n/**\r\n * Gets default rolled up node stats within a quantile range.\r\n * @param table assumed pre-grouped table (e.g., by parent id)\r\n * @param quantile\r\n */\r\nexport function getNodeStats(table, quantile = 1) {\r\n if (!table || table.numRows() === 0 || quantile === 1) {\r\n return [\r\n {\r\n minX: 0,\r\n maxX: 1,\r\n minY: 0,\r\n maxY: 1,\r\n minD: 0,\r\n maxD: 1,\r\n },\r\n ];\r\n }\r\n const rollup = table.rollup({\r\n minX: op.quantile('node.x', 1 - quantile),\r\n maxX: op.quantile('node.x', quantile),\r\n minY: op.quantile('node.y', 1 - quantile),\r\n maxY: op.quantile('node.y', quantile),\r\n minD: op.quantile('node.d', 1 - quantile),\r\n maxD: op.quantile('node.d', quantile),\r\n });\r\n return rollup.objects()[0];\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e41863b9488b62b0d3f6eacf971532bb.json b/node_modules/.cache/cache-loader/e41863b9488b62b0d3f6eacf971532bb.json deleted file mode 100644 index a2d8a1b..0000000 --- a/node_modules/.cache/cache-loader/e41863b9488b62b0d3f6eacf971532bb.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\communities.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\communities.ts","mtime":1631029334882},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4N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sU3RhdGUoaG92ZXJlZENvbW11bml0eVN0YXRlKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlU2VsZWN0ZWRDb21tdW5pdHkoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFZhbHVlKHNlbGVjdGVkQ29tbXVuaXR5U3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VTZXRTZWxlY3RlZENvbW11bml0eSgpIHsKICByZXR1cm4gdXNlU2V0UmVjb2lsU3RhdGUoc2VsZWN0ZWRDb21tdW5pdHlTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZVJlc2V0U2VsZWN0ZWRDb21tdW5pdHkoKSB7CiAgcmV0dXJuIHVzZVJlc2V0UmVjb2lsU3RhdGUoc2VsZWN0ZWRDb21tdW5pdHlTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZVNldE5hdmlnYXRpb25TdGF0ZSgpIHsKICByZXR1cm4gdXNlU2V0UmVjb2lsU3RhdGUobmF2aWdhdGlvbmFsU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VOYXZpZ2F0aW9uU3RhdGUoKSB7CiAgcmV0dXJuIHVzZVJlY29pbFZhbHVlKG5hdmlnYXRpb25hbFN0YXRlKTsKfQpleHBvcnQgZnVuY3Rpb24gdXNlUmVzZXROYXZpZ2F0aW9uU3RhdGUoKSB7CiAgcmV0dXJuIHVzZVJlc2V0UmVjb2lsU3RhdGUobmF2aWdhdGlvbmFsU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VDb21tdW5pdHlTb3J0KCkgewogIHJldHVybiB1c2VSZWNvaWxTdGF0ZShjb21tdW5pdHlTb3J0KTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/state/communities.ts"],"names":["ROOT_COMMUNITY_ID","atom","useRecoilState","useRecoilValue","useResetRecoilState","useSetRecoilState","communitySort","key","default","field","descending","navigationalState","hoveredCommunityState","undefined","selectedCommunityState","useHoveredCommunity","useSetHoveredCommunity","useSelectedCommunity","useSetSelectedCommunity","useResetSelectedCommunity","useSetNavigationState","useNavigationState","useResetNavigationState","useCommunitySort"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,iBAAT,QAAkC,cAAlC;AACA,SAASC,IAAT,EAAeC,cAAf,EAA+BC,cAA/B,EAA+CC,mBAA/C,EAAoEC,iBAApE,QAA8F,QAA9F;AACA,MAAMC,aAAa,GAAGL,IAAI,CAAC;AACvBM,EAAAA,GAAG,EAAE,gBADkB;AAEvBC,EAAAA,OAAO,EAAE;AACLC,IAAAA,KAAK,EAAE,qBADF;AAELC,IAAAA,UAAU,EAAE;AAFP;AAFc,CAAD,CAA1B;AAOA,MAAMC,iBAAiB,GAAGV,IAAI,CAAC;AAC3BM,EAAAA,GAAG,EAAE,mBADsB;AAE3BC,EAAAA,OAAO,EAAE,CAACR,iBAAD;AAFkB,CAAD,CAA9B;AAIA,MAAMY,qBAAqB,GAAGX,IAAI,CAAC;AAC/BM,EAAAA,GAAG,EAAE,mBAD0B;AAE/BC,EAAAA,OAAO,EAAEK;AAFsB,CAAD,CAAlC;AAIA,OAAO,MAAMC,sBAAsB,GAAGb,IAAI,CAAC;AACvCM,EAAAA,GAAG,EAAE,oBADkC;AAEvCC,EAAAA,OAAO,EAAER;AAF8B,CAAD,CAAnC;AAIP,OAAO,SAASe,mBAAT,GAA+B;AAClC,SAAOZ,cAAc,CAACS,qBAAD,CAArB;AACH;AACD,OAAO,SAASI,sBAAT,GAAkC;AACrC,SAAOX,iBAAiB,CAACO,qBAAD,CAAxB;AACH;AACD,OAAO,SAASK,oBAAT,GAAgC;AACnC,SAAOd,cAAc,CAACW,sBAAD,CAArB;AACH;AACD,OAAO,SAASI,uBAAT,GAAmC;AACtC,SAAOb,iBAAiB,CAACS,sBAAD,CAAxB;AACH;AACD,OAAO,SAASK,yBAAT,GAAqC;AACxC,SAAOf,mBAAmB,CAACU,sBAAD,CAA1B;AACH;AACD,OAAO,SAASM,qBAAT,GAAiC;AACpC,SAAOf,iBAAiB,CAACM,iBAAD,CAAxB;AACH;AACD,OAAO,SAASU,kBAAT,GAA8B;AACjC,SAAOlB,cAAc,CAACQ,iBAAD,CAArB;AACH;AACD,OAAO,SAASW,uBAAT,GAAmC;AACtC,SAAOlB,mBAAmB,CAACO,iBAAD,CAA1B;AACH;AACD,OAAO,SAASY,gBAAT,GAA4B;AAC/B,SAAOrB,cAAc,CAACI,aAAD,CAArB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { ROOT_COMMUNITY_ID } from '../constants';\r\nimport { atom, useRecoilState, useRecoilValue, useResetRecoilState, useSetRecoilState, } from 'recoil';\r\nconst communitySort = atom({\r\n key: 'community-sort',\r\n default: {\r\n field: 'community.nodeCount',\r\n descending: true,\r\n },\r\n});\r\nconst navigationalState = atom({\r\n key: 'navigationalState',\r\n default: [ROOT_COMMUNITY_ID],\r\n});\r\nconst hoveredCommunityState = atom({\r\n key: 'hovered-community',\r\n default: undefined,\r\n});\r\nexport const selectedCommunityState = atom({\r\n key: 'selected-community',\r\n default: ROOT_COMMUNITY_ID,\r\n});\r\nexport function useHoveredCommunity() {\r\n return useRecoilValue(hoveredCommunityState);\r\n}\r\nexport function useSetHoveredCommunity() {\r\n return useSetRecoilState(hoveredCommunityState);\r\n}\r\nexport function useSelectedCommunity() {\r\n return useRecoilValue(selectedCommunityState);\r\n}\r\nexport function useSetSelectedCommunity() {\r\n return useSetRecoilState(selectedCommunityState);\r\n}\r\nexport function useResetSelectedCommunity() {\r\n return useResetRecoilState(selectedCommunityState);\r\n}\r\nexport function useSetNavigationState() {\r\n return useSetRecoilState(navigationalState);\r\n}\r\nexport function useNavigationState() {\r\n return useRecoilValue(navigationalState);\r\n}\r\nexport function useResetNavigationState() {\r\n return useResetRecoilState(navigationalState);\r\n}\r\nexport function useCommunitySort() {\r\n return useRecoilState(communitySort);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e4d5308f17173afb873a78ec4fb5889e.json b/node_modules/.cache/cache-loader/e4d5308f17173afb873a78ec4fb5889e.json deleted file mode 100644 index 4dda9e7..0000000 --- a/node_modules/.cache/cache-loader/e4d5308f17173afb873a78ec4fb5889e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\index.tsx","mtime":1620403249242},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL0xlZnRTaWRlUGFuZWwnOwpleHBvcnQgKiBmcm9tICcuL1JpZ2h0U2lkZVBhbmVsJzs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,iBAAd;AACA,cAAc,kBAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './LeftSidePanel';\r\nexport * from './RightSidePanel';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e5cb39f1726585c29b950fb80164d3d6.json b/node_modules/.cache/cache-loader/e5cb39f1726585c29b950fb80164d3d6.json deleted file mode 100644 index ba5b1e3..0000000 --- a/node_modules/.cache/cache-loader/e5cb39f1726585c29b950fb80164d3d6.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\state\\url.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\state\\url.ts","mtime":1631029334894},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBnZXREYXRhc2V0LCBnZXRGb3JtYXQsIGdldE5vZGVzRmlsZSwgZ2V0RWRnZXNGaWxlLCBnZXRKb2luRmlsZSwgZ2V0Q29tbXVuaXRpZXNGaWxlIH0gZnJvbSAnLi4vdXRpbHMvcXVlcnknOwppbXBvcnQgeyBhdG9tLCB1c2VSZWNvaWxWYWx1ZSB9IGZyb20gJ3JlY29pbCc7IC8vIFRPRE86IHdlIG1heSB3YW50IHRoaXMgdG8gYmUgYW4gZW52IHZhcmlhYmxlIGZvciBkZWRpY2F0ZWQgZGVwbG95bWVudHMKCmNvbnN0IGRhdGFzZXRTdGF0ZSA9IGF0b20oewogIGtleTogJ2RhdGFzZXQnLAogIGRlZmF1bHQ6IGdldERhdGFzZXQoKQp9KTsKY29uc3QgZm9ybWF0U3RhdGUgPSBhdG9tKHsKICBrZXk6ICdmb3JtYXQnLAogIGRlZmF1bHQ6IGdldEZvcm1hdCgpCn0pOyAvLyB0aGVzZSBmaWxlcyBhbGxvdyBsb2FkaW5nIG9mIHByZ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ZWNvaWxWYWx1ZShub2Rlc0ZpbGVTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUVkZ2VzRmlsZSgpIHsKICByZXR1cm4gdXNlUmVjb2lsVmFsdWUoZWRnZXNGaWxlU3RhdGUpOwp9CmV4cG9ydCBmdW5jdGlvbiB1c2VKb2luRmlsZSgpIHsKICByZXR1cm4gdXNlUmVjb2lsVmFsdWUoam9pbkZpbGVTdGF0ZSk7Cn0KZXhwb3J0IGZ1bmN0aW9uIHVzZUNvbW11bml0aWVzRmlsZSgpIHsKICByZXR1cm4gdXNlUmVjb2lsVmFsdWUoY29tbXVuaXRpZXNGaWxlU3RhdGUpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/state/url.ts"],"names":["getDataset","getFormat","getNodesFile","getEdgesFile","getJoinFile","getCommunitiesFile","atom","useRecoilValue","datasetState","key","default","formatState","nodesFileState","edgesFileState","joinFileState","communitiesFileState","useDataset","useFormat","useNodesFile","useEdgesFile","useJoinFile","useCommunitiesFile"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,EAAqBC,SAArB,EAAgCC,YAAhC,EAA8CC,YAA9C,EAA4DC,WAA5D,EAAyEC,kBAAzE,QAAoG,gBAApG;AACA,SAASC,IAAT,EAAeC,cAAf,QAAqC,QAArC,C,CACA;;AACA,MAAMC,YAAY,GAAGF,IAAI,CAAC;AACtBG,EAAAA,GAAG,EAAE,SADiB;AAEtBC,EAAAA,OAAO,EAAEV,UAAU;AAFG,CAAD,CAAzB;AAIA,MAAMW,WAAW,GAAGL,IAAI,CAAC;AACrBG,EAAAA,GAAG,EAAE,QADgB;AAErBC,EAAAA,OAAO,EAAET,SAAS;AAFG,CAAD,CAAxB,C,CAIA;AACA;AACA;AACA;AACA;;AACA,MAAMW,cAAc,GAAGN,IAAI,CAAC;AACxBG,EAAAA,GAAG,EAAE,YADmB;AAExBC,EAAAA,OAAO,EAAER,YAAY;AAFG,CAAD,CAA3B;AAIA,MAAMW,cAAc,GAAGP,IAAI,CAAC;AACxBG,EAAAA,GAAG,EAAE,YADmB;AAExBC,EAAAA,OAAO,EAAEP,YAAY;AAFG,CAAD,CAA3B;AAIA,MAAMW,aAAa,GAAGR,IAAI,CAAC;AACvBG,EAAAA,GAAG,EAAE,WADkB;AAEvBC,EAAAA,OAAO,EAAEN,WAAW;AAFG,CAAD,CAA1B;AAIA,MAAMW,oBAAoB,GAAGT,IAAI,CAAC;AAC9BG,EAAAA,GAAG,EAAE,kBADyB;AAE9BC,EAAAA,OAAO,EAAEL,kBAAkB;AAFG,CAAD,CAAjC;AAIA,OAAO,SAASW,UAAT,GAAsB;AACzB,SAAOT,cAAc,CAACC,YAAD,CAArB;AACH;AACD,OAAO,SAASS,SAAT,GAAqB;AACxB,SAAOV,cAAc,CAACI,WAAD,CAArB;AACH;AACD,OAAO,SAASO,YAAT,GAAwB;AAC3B,SAAOX,cAAc,CAACK,cAAD,CAArB;AACH;AACD,OAAO,SAASO,YAAT,GAAwB;AAC3B,SAAOZ,cAAc,CAACM,cAAD,CAArB;AACH;AACD,OAAO,SAASO,WAAT,GAAuB;AAC1B,SAAOb,cAAc,CAACO,aAAD,CAArB;AACH;AACD,OAAO,SAASO,kBAAT,GAA8B;AACjC,SAAOd,cAAc,CAACQ,oBAAD,CAArB;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { getDataset, getFormat, getNodesFile, getEdgesFile, getJoinFile, getCommunitiesFile, } from '../utils/query';\r\nimport { atom, useRecoilValue } from 'recoil';\r\n// TODO: we may want this to be an env variable for dedicated deployments\r\nconst datasetState = atom({\r\n key: 'dataset',\r\n default: getDataset(),\r\n});\r\nconst formatState = atom({\r\n key: 'format',\r\n default: getFormat(),\r\n});\r\n// these files allow loading of pre-baked files from the url\r\n// note that only one per type is allowed, to form a \"complete\"\r\n// preset dataset. TODO: no reason we couldn't support multiples\r\n// and join the resulting tables of each type\r\n// if we did that, we may want to unify this with the filesState\r\nconst nodesFileState = atom({\r\n key: 'nodes-file',\r\n default: getNodesFile(),\r\n});\r\nconst edgesFileState = atom({\r\n key: 'edges-file',\r\n default: getEdgesFile(),\r\n});\r\nconst joinFileState = atom({\r\n key: 'join-file',\r\n default: getJoinFile(),\r\n});\r\nconst communitiesFileState = atom({\r\n key: 'communities-file',\r\n default: getCommunitiesFile(),\r\n});\r\nexport function useDataset() {\r\n return useRecoilValue(datasetState);\r\n}\r\nexport function useFormat() {\r\n return useRecoilValue(formatState);\r\n}\r\nexport function useNodesFile() {\r\n return useRecoilValue(nodesFileState);\r\n}\r\nexport function useEdgesFile() {\r\n return useRecoilValue(edgesFileState);\r\n}\r\nexport function useJoinFile() {\r\n return useRecoilValue(joinFileState);\r\n}\r\nexport function useCommunitiesFile() {\r\n return useRecoilValue(communitiesFileState);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e5f8ce811ced9fc96afa08ef532b9e68.json b/node_modules/.cache/cache-loader/e5f8ce811ced9fc96afa08ef532b9e68.json deleted file mode 100644 index c4f0fd4..0000000 --- a/node_modules/.cache/cache-loader/e5f8ce811ced9fc96afa08ef532b9e68.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\RouterLinkIconButton\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\RouterLinkIconButton\\index.tsx","mtime":1620403249489},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gX29iamVjdFdpdGhvdXRQcm9wZXJ0aWVzKHNvdXJjZSwgZXhjbHVkZWQpIHsgaWYgKHNvdXJjZSA9PSBudWxsKSByZXR1cm4ge307IHZhciB0YXJnZXQgPSBfb2JqZWN0V2l0aG91dFByb3BlcnRpZXNMb29zZShzb3VyY2UsIGV4Y2x1ZGVkKTsgdmFyIGtleSwgaTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHNvdXJjZVN5bWJvbEtleXMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKHNvdXJjZSk7IGZvciAoaSA9IDA7IGkgPCBzb3VyY2VTeW1ib2xLZXlzLmxlbmd0aDsgaSsrKSB7IGtleSA9IHNvdXJjZVN5bWJvbEtleXNbaV07IGlmIChleGNsdWRlZC5pbmRleE9mKGtleSkgPj0gMCkgY29udGludWU7IGlmICghT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKHNvdXJjZSwga2V5KSkgY29udGludWU7IHRhcmdldFtrZXldID0gc291cmNlW2tleV07IH0gfSByZXR1cm4gdGFyZ2V0OyB9CgpmdW5jdGlvbiB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A9IHVzZUNhbGxiYWNrKCgpID0+IHsKICAgIGhpc3RvcnkucHVzaCh0byk7CiAgfSwgW2hpc3RvcnksIHRvXSk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoSWNvbkJ1dHRvbiwgT2JqZWN0LmFzc2lnbih7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljawogIH0sIGJ1dHRvblByb3BzKSk7Cn07CgpleHBvcnQgY29uc3QgUm91dGVyTGlua0ljb25CdXR0b24gPSB3aXRoUm91dGVyKExpbmtCdXR0b24pOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/RouterLinkIconButton/index.tsx"],"names":["IconButton","React","useCallback","withRouter","LinkButton","props","history","location","match","staticContext","to","buttonProps","handleClick","push","createElement","Object","assign","onClick","RouterLinkIconButton"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,iBAA3B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,SAASC,UAAT,QAA2B,kBAA3B;;AACA,MAAMC,UAAU,GAAGC,KAAK,IAAI;AACxB,QAAM;AAAEC,IAAAA,OAAF;AAAWC,IAAAA,QAAX;AAAqBC,IAAAA,KAArB;AAA4BC,IAAAA,aAA5B;AAA2CC,IAAAA;AAA3C,MAAkEL,KAAxE;AAAA,QAAwDM,WAAxD,4BAAwEN,KAAxE;;AACA,QAAMO,WAAW,GAAGV,WAAW,CAAC,MAAM;AAClCI,IAAAA,OAAO,CAACO,IAAR,CAAaH,EAAb;AACH,GAF8B,EAE5B,CAACJ,OAAD,EAAUI,EAAV,CAF4B,CAA/B;AAGA,SAAOT,KAAK,CAACa,aAAN,CAAoBd,UAApB,EAAgCe,MAAM,CAACC,MAAP,CAAc;AAAEC,IAAAA,OAAO,EAAEL;AAAX,GAAd,EAAwCD,WAAxC,CAAhC,CAAP;AACH,CAND;;AAOA,OAAO,MAAMO,oBAAoB,GAAGf,UAAU,CAACC,UAAD,CAAvC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { IconButton } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport { withRouter } from 'react-router-dom';\r\nconst LinkButton = props => {\r\n const { history, location, match, staticContext, to, ...buttonProps } = props;\r\n const handleClick = useCallback(() => {\r\n history.push(to);\r\n }, [history, to]);\r\n return React.createElement(IconButton, Object.assign({ onClick: handleClick }, buttonProps));\r\n};\r\nexport const RouterLinkIconButton = withRouter(LinkButton);\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e670f1101ccb60c86706309f26172244.json b/node_modules/.cache/cache-loader/e670f1101ccb60c86706309f26172244.json deleted file mode 100644 index 8c31b03..0000000 --- a/node_modules/.cache/cache-loader/e670f1101ccb60c86706309f26172244.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\LeftSidePanel.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\DataManagerPage\\LeftSidePanel.tsx","mtime":1631029334702},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBQcmV2aWV3R3JhcGggfSBmcm9tICcuLi8uLi8uLi9QcmV2aWV3R3JhcGgnOwppbXBvcnQgeyBRdWlja0Ryb3AgfSBmcm9tICcuLi8uLi8uLi9RdWlja0Ryb3AnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgc3R5bGVkIGZyb20gJ3N0eWxlZC1jb21wb25lbnRzJzsKaW1wb3J0IHsgdXNlU2V0dGluZ3MgfSBmcm9tICd+L3N0YXRlJzsKaW1wb3J0IHsgUEFORUxfV0lEVEggfSBmcm9tICd+L3N0eWxlcyc7CmNvbnN0IFBSRVZJRVdfU0laRSA9IFBBTkVMX1dJRFRIIC0gMTY7CmV4cG9ydCBjb25zdCBMZWZ0U2lkZVBhbmVsID0gKCkgPT4gewogIGNvbnN0IFtzZXR0aW5nc10gPSB1c2VTZXR0aW5ncygpOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRhaW5lciwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChTZWN0aW9uLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KFNlY3Rpb25UaXRsZSwgbnVsbCwgIlF1aWNrIGltcG9ydCIpLCBSZWFjdC5jcmVhdGVFbGVtZW50KFF1aWNrRHJvcCwgbnVsbCkpLCBzZXR0aW5ncy5zaG93UHJldmlld01hcCA/IFJlYWN0LmNyZWF0ZUVsZW1lbnQoU2VjdGlvbiwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChTZWN0aW9uVGl0bGUsIG51bGwsICJQcmV2aWV3IiksIFJlYWN0LmNyZWF0ZUVsZW1lbnQoUHJldmlldywgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChQcmV2aWV3R3JhcGgsIHsKICAgIHdpZHRoOiBQUkVWSUVXX1NJWkUsCiAgICBoZWlnaHQ6IFBSRVZJRVdfU0laRQogIH0pKSkgOiBudWxsKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCXdpZHRoOiAke1BBTkVMX1dJRFRIfXB4OwpgOwpjb25zdCBTZWN0aW9uVGl0bGUgPSBzdHlsZWQuaDJgCglmb250LXNpemU6IDAuOGVtOwoJdGV4dC1hbGlnbjogY2VudGVyOwpgOwpjb25zdCBTZWN0aW9uID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDIwcHg7CmA7CmNvbnN0IFByZXZpZXcgPSBzdHlsZWQuZGl2YAoJbWFyZ2luLWxlZnQ6IDhweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/DataManagerPage/LeftSidePanel.tsx"],"names":["PreviewGraph","QuickDrop","React","styled","useSettings","PANEL_WIDTH","PREVIEW_SIZE","LeftSidePanel","settings","createElement","Container","Section","SectionTitle","showPreviewMap","Preview","width","height","div","h2"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,uBAA7B;AACA,SAASC,SAAT,QAA0B,oBAA1B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,WAAT,QAA4B,SAA5B;AACA,SAASC,WAAT,QAA4B,UAA5B;AACA,MAAMC,YAAY,GAAGD,WAAW,GAAG,EAAnC;AACA,OAAO,MAAME,aAAa,GAAG,MAAM;AAC/B,QAAM,CAACC,QAAD,IAAaJ,WAAW,EAA9B;AACA,SAAQF,KAAK,CAACO,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJR,KAAK,CAACO,aAAN,CAAoBE,OAApB,EAA6B,IAA7B,EACIT,KAAK,CAACO,aAAN,CAAoBG,YAApB,EAAkC,IAAlC,EAAwC,cAAxC,CADJ,EAEIV,KAAK,CAACO,aAAN,CAAoBR,SAApB,EAA+B,IAA/B,CAFJ,CADI,EAIJO,QAAQ,CAACK,cAAT,GAA2BX,KAAK,CAACO,aAAN,CAAoBE,OAApB,EAA6B,IAA7B,EACvBT,KAAK,CAACO,aAAN,CAAoBG,YAApB,EAAkC,IAAlC,EAAwC,SAAxC,CADuB,EAEvBV,KAAK,CAACO,aAAN,CAAoBK,OAApB,EAA6B,IAA7B,EACIZ,KAAK,CAACO,aAAN,CAAoBT,YAApB,EAAkC;AAAEe,IAAAA,KAAK,EAAET,YAAT;AAAuBU,IAAAA,MAAM,EAAEV;AAA/B,GAAlC,CADJ,CAFuB,CAA3B,GAG8F,IAP1F,CAAR;AAQH,CAVM;AAWP,MAAMI,SAAS,GAAGP,MAAM,CAACc,GAAK;AAC9B,UAAUZ,WAAY;AACtB,CAFA;AAGA,MAAMO,YAAY,GAAGT,MAAM,CAACe,EAAI;AAChC;AACA;AACA,CAHA;AAIA,MAAMP,OAAO,GAAGR,MAAM,CAACc,GAAK;AAC5B;AACA,CAFA;AAGA,MAAMH,OAAO,GAAGX,MAAM,CAACc,GAAK;AAC5B;AACA,CAFA","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { PreviewGraph } from '../../../PreviewGraph';\r\nimport { QuickDrop } from '../../../QuickDrop';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { useSettings } from '~/state';\r\nimport { PANEL_WIDTH } from '~/styles';\r\nconst PREVIEW_SIZE = PANEL_WIDTH - 16;\r\nexport const LeftSidePanel = () => {\r\n const [settings] = useSettings();\r\n return (React.createElement(Container, null,\r\n React.createElement(Section, null,\r\n React.createElement(SectionTitle, null, \"Quick import\"),\r\n React.createElement(QuickDrop, null)),\r\n settings.showPreviewMap ? (React.createElement(Section, null,\r\n React.createElement(SectionTitle, null, \"Preview\"),\r\n React.createElement(Preview, null,\r\n React.createElement(PreviewGraph, { width: PREVIEW_SIZE, height: PREVIEW_SIZE })))) : null));\r\n};\r\nconst Container = styled.div `\r\n\twidth: ${PANEL_WIDTH}px;\r\n`;\r\nconst SectionTitle = styled.h2 `\r\n\tfont-size: 0.8em;\r\n\ttext-align: center;\r\n`;\r\nconst Section = styled.div `\r\n\tmargin-top: 20px;\r\n`;\r\nconst Preview = styled.div `\r\n\tmargin-left: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e6860eb52fd666f1b50bf39697cdcf8b.json b/node_modules/.cache/cache-loader/e6860eb52fd666f1b50bf39697cdcf8b.json deleted file mode 100644 index f8dd215..0000000 --- a/node_modules/.cache/cache-loader/e6860eb52fd666f1b50bf39697cdcf8b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\NumericDomainEditor\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\NumericDomainEditor\\index.tsx","mtime":1631029334842},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgRG9tYWluQnJ1c2ggfSBmcm9tICcuLi9Eb21haW5CcnVzaCc7CmltcG9ydCB7IExhYmVsIH0gZnJvbSAnQGZsdWVudHVpL3JlYWN0JzsKaW1wb3J0IHsgU2NhbGVUeXBlIH0gZnJvbSAnQHRoZW1hdGljL2NvcmUnOwppbXBvcnQgeyBTY2FsZVR5cGVDaG9pY2VHcm91cCB9IGZyb20gJ0B0aGVtYXRpYy9mbHVlbnQnOwppbXBvcnQgeyBmb3JtYXQgfSBmcm9tICdkMy1mb3JtYXQnOwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2ssIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwppbXBvcnQgeyB1c2VDb2x1bW5IaXN0b2dyYW0sIHVzZUNvbHVtblN0YXRzIH0gZnJvbSAnfi9hcnF1ZXJvJzsKZXhwb3J0IGNvbnN0IE51bWVyaWNEb21haW5FZGl0b3IgPSAoewogIHRhYmxlLAogIGVuY29kaW5nLAogIG9uQ2hhbmdlCn0pID0+IHsKICBjb25zdCBwYXJhbWV0ZXJzID0gdXNlQ29sdW1uU3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ICAgbWF4OiBkb21haW5bMV0sCiAgICBwcmVjaXNpb246IHByZWNpc2lvbiwKICAgIGN1cnJlbnREb21haW46IGVuY29kaW5nLmRvbWFpbiwKICAgIG9uQ2hhbmdlOiBoYW5kbGVEb21haW5DaGFuZ2UsCiAgICBzaG93VGV4dElucHV0czogdHJ1ZQogIH0pLCBSZWFjdC5jcmVhdGVFbGVtZW50KFNjYWxlVHlwZUNob2ljZUdyb3VwLCB7CiAgICBzZWxlY3RlZFR5cGU6IGVuY29kaW5nLnNjYWxlVHlwZSB8fCBTY2FsZVR5cGUuTGluZWFyLAogICAgb25DaGFuZ2U6IGhhbmRsZVR5cGVDaGFuZ2UsCiAgICBzdXBwcmVzc1F1YW50aWxlOiB0cnVlCiAgfSkpOwp9Owpjb25zdCBDb250YWluZXIgPSBzdHlsZWQuZGl2YGA7"},{"version":3,"sources":["C:/ws/graph-drill/src/controls/NumericDomainEditor/index.tsx"],"names":["DomainBrush","Label","ScaleType","ScaleTypeChoiceGroup","format","React","useCallback","useMemo","styled","useColumnHistogram","useColumnStats","NumericDomainEditor","table","encoding","onChange","parameters","field","domain","precision","fmt","handleTypeChange","scaleType","handleDomainChange","histogram","createElement","Container","min","max","currentDomain","showTextInputs","selectedType","Linear","suppressQuantile","div"],"mappings":"AAAA,SAASA,WAAT,QAA4B,gBAA5B;AACA,SAASC,KAAT,QAAsB,iBAAtB;AACA,SAASC,SAAT,QAA0B,gBAA1B;AACA,SAASC,oBAAT,QAAqC,kBAArC;AACA,SAASC,MAAT,QAAuB,WAAvB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAASC,kBAAT,EAA6BC,cAA7B,QAAmD,WAAnD;AACA,OAAO,MAAMC,mBAAmB,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,QAAT;AAAmBC,EAAAA;AAAnB,CAAD,KAAoC;AACnE,QAAMC,UAA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AAS,EAAEA,SAAnE;AAA8EU,IAAAA,aAAa,EAAEf,QAAQ,CAACI,MAAtG;AAA8GH,IAAAA,QAAQ,EAAEQ,kBAAxH;AAA4IO,IAAAA,cAAc,EAAE;AAA5J,GAAjC,CAFI,EAGJxB,KAAK,CAACmB,aAAN,CAAoBrB,oBAApB,EAA0C;AAAE2B,IAAAA,YAAY,EAAEjB,QAAQ,CAACQ,SAAT,IAAsBnB,SAAS,CAAC6B,MAAhD;AAAwDjB,IAAAA,QAAQ,EAAEM,gBAAlE;AAAoFY,IAAAA,gBAAgB,EAAE;AAAtG,GAA1C,CAHI,CAAR;AAIH,CAlBM;AAmBP,MAAMP,SAAS,GAAGjB,MAAM,CAACyB,GAAK,EAA9B","sourcesContent":["import { DomainBrush } from '../DomainBrush';\r\nimport { Label } from '@fluentui/react';\r\nimport { ScaleType } from '@thematic/core';\r\nimport { ScaleTypeChoiceGroup } from '@thematic/fluent';\r\nimport { format } from 'd3-format';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useColumnHistogram, useColumnStats } from '~/arquero';\r\nexport const NumericDomainEditor = ({ table, encoding, onChange, }) => {\r\n const parameters = useColumnStats(table, encoding.field);\r\n const domain = parameters?.domain || [0, 1];\r\n const precision = parameters?.precision || 0;\r\n const fmt = useMemo(() => format(`.${precision}f`), [precision]);\r\n const handleTypeChange = useCallback(scaleType => onChange &&\r\n onChange({\r\n scaleType,\r\n }), [onChange]);\r\n const handleDomainChange = useCallback(domain => onChange &&\r\n onChange({\r\n domain,\r\n }), [onChange]);\r\n const histogram = useColumnHistogram(table, encoding.field);\r\n return (React.createElement(Container, null,\r\n React.createElement(Label, null, `Input domain (data extent: ${fmt(domain[0])} - ${fmt(domain[1])})`),\r\n React.createElement(DomainBrush, { histogram: histogram, min: domain[0], max: domain[1], precision: precision, currentDomain: encoding.domain, onChange: handleDomainChange, showTextInputs: true }),\r\n React.createElement(ScaleTypeChoiceGroup, { selectedType: encoding.scaleType || ScaleType.Linear, onChange: handleTypeChange, suppressQuantile: true })));\r\n};\r\nconst Container = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/e96ba5f2e65142a196e87e20a4ec4ac9.json b/node_modules/.cache/cache-loader/e96ba5f2e65142a196e87e20a4ec4ac9.json deleted file mode 100644 index f58455a..0000000 --- a/node_modules/.cache/cache-loader/e96ba5f2e65142a196e87e20a4ec4ac9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\api\\layout.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\api\\layout.ts","mtime":1631029334662},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgQVVUT0xBWU9VVF9VUkwgfSBmcm9tICd+L2NvbnN0YW50cyc7Ci8qKg0KICogVHJhbnNmb3JtcyBhbmQgZWRnZSBsaXN0IHRvIHRoZSBQT1NUIHBheWxvYWQgSlNPTi4NCiAqIEBwYXJhbSBlZGdlcw0KICovCgpmdW5jdGlvbiBlZGdlc1RvUE9TVChlZGdlcykgewogIHJldHVybiBlZGdlcy5tYXAoZSA9PiAoewogICAgc291cmNlOiBlLnNvdXJjZSwKICAgIHRhcmdldDogZS50YXJnZXQsCiAgICB3ZWlnaHQ6IGUud2VpZ2h0CiAgfSkpOwp9CgpmdW5jdGlvbiBjcmVhdGVQT1NUQm9keShlZGdlcykgewogIHJldHVybiB7CiAgICBsYXlvdXRfdHlwZTogJ3VtYXAnLAogICAgLy8gVE9ETzogaXQgY291bGQgYWN0dWFsbHkgYmUgZGlyZWN0ZWQKICAgIGlzX2RpcmVjdGVkOiBmYWxzZSwKICAgIGVkZ2VzOiBlZGdlc1RvUE9TVChlZGdlcykKICB9Owp9CgpleHBvcnQgYXN5bmMgZnVuY3Rpb24gdW1hcExheW91dChlZGdlcykgewogIGNvbnN0IGJvZHkgPSBjcmVhdGVQT1NUQm9keShlZGdlcyk7CiAgcmV0dXJuIGZldGNoKEFVVE9MQVlPVVRfVVJMLCB7CiAgICBtZXRob2Q6ICdQT1NUJywKICAgIG1vZGU6ICdjb3JzJywKICAgIGJvZHk6IEpTT04uc3RyaW5naWZ5KGJvZHkpCiAgfSkudGhlbihyZXMgPT4gcmVzLmpzb24oKSkudGhlbihqc29uID0+IGpzb24ucG9zaXRpb25zLm1hcChwID0+ICh7CiAgICBpZDogcC5ub2RlX2lkLAogICAgeDogcC54LAogICAgeTogcC55LAogICAgZDogcC5zaXplLAogICAgY29tbXVuaXR5OiBgJHtwLmNvbW11bml0eX1gCiAgfSkpKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/api/layout.ts"],"names":["AUTOLAYOUT_URL","edgesToPOST","edges","map","e","source","target","weight","createPOSTBody","layout_type","is_directed","umapLayout","body","fetch","method","mode","JSON","stringify","then","res","json","positions","p","id","node_id","x","y","d","size","community"],"mappings":"AAAA,SAASA,cAAT,QAA+B,aAA/B;AACA;AACA;AACA;AACA;;AACA,SAASC,WAAT,CAAqBC,KAArB,EAA4B;AACxB,SAAOA,KAAK,CAACC,GAAN,CAAUC,CAAC,KAAK;AACnBC,IAAAA,MAAM,EAAED,CAAC,CAACC,MADS;AAEnBC,IAAAA,MAAM,EAAEF,CAAC,CAACE,MAFS;AAGnBC,IAAAA,MAAM,EAAEH,CAAC,CAACG;AAHS,GAAL,CAAX,CAAP;AAKH;;AACD,SAASC,cAAT,CAAwBN,KAAxB,EAA+B;AAC3B,SAAO;AACHO,IAAAA,WAAW,EAAE,MADV;AAEH;AACAC,IAAAA,WAAW,EAAE,KAHV;AAIHR,IAAAA,KAAK,EAAED,WAAW,CAACC,KAAD;AAJf,GAAP;AAMH;;AACD,OAAO,eAAeS,UAAf,CAA0BT,KAA1B,EAAiC;AACpC,QAAMU,IAAI,GAAGJ,cAAc,CAACN,KAAD,CAA3B;AACA,SAAOW,KAAK,CAACb,cAAD,EAAiB;AACzBc,IAAAA,MAAM,EAAE,MADiB;AAEzBC,IAAAA,IAAI,EAAE,MAFmB;AAGzBH,IAAAA,IAAI,EAAEI,IAAI,CAACC,SAAL,CAAeL,IAAf;AAHmB,GAAjB,CAAL,CAKFM,IALE,CAKGC,GAAG,IAAIA,GAAG,CAACC,IAAJ,EALV,EAMFF,IANE,CAMGE,IAAI,IAAIA,IAAI,CAACC,SAAL,CAAelB,GAAf,CAAmBmB,CAAC,KAAK;AACvCC,IAAAA,EAAE,EAAED,CAAC,CAACE,OADiC;AAEvCC,IAAAA,CAAC,EAAEH,CAAC,CAACG,CAFkC;AAGvCC,IAAAA,CAAC,EAAEJ,CAAC,CAACI,CAHkC;AAIvCC,IAAAA,CAAC,EAAEL,CAAC,CAACM,IAJkC;AAKvCC,IAAAA,SAAS,EAAG,GAAEP,CAAC,CAACO,SAAU;AALa,GAAL,CAApB,CANX,CAAP;AAaH","sourcesContent":["import { AUTOLAYOUT_URL } from '~/constants';\r\n/**\r\n * Transforms and edge list to the POST payload JSON.\r\n * @param edges\r\n */\r\nfunction edgesToPOST(edges) {\r\n return edges.map(e => ({\r\n source: e.source,\r\n target: e.target,\r\n weight: e.weight,\r\n }));\r\n}\r\nfunction createPOSTBody(edges) {\r\n return {\r\n layout_type: 'umap',\r\n // TODO: it could actually be directed\r\n is_directed: false,\r\n edges: edgesToPOST(edges),\r\n };\r\n}\r\nexport async function umapLayout(edges) {\r\n const body = createPOSTBody(edges);\r\n return fetch(AUTOLAYOUT_URL, {\r\n method: 'POST',\r\n mode: 'cors',\r\n body: JSON.stringify(body),\r\n })\r\n .then(res => res.json())\r\n .then(json => json.positions.map(p => ({\r\n id: p.node_id,\r\n x: p.x,\r\n y: p.y,\r\n d: p.size,\r\n community: `${p.community}`,\r\n })));\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/eb0f905d4992b40d399b141f0ed2cd93.json b/node_modules/.cache/cache-loader/eb0f905d4992b40d399b141f0ed2cd93.json deleted file mode 100644 index 622d767..0000000 --- a/node_modules/.cache/cache-loader/eb0f905d4992b40d399b141f0ed2cd93.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\data.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\data.ts","mtime":1624559748380},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyB1c2VJbnRlcm5lZEdyYXBoLCB1c2VJbnRlcm5lZE1pbmltYXBHcmFwaCB9IGZyb20gJ34vc3RhdGUvY2FjaGVzJzsKZXhwb3J0IGZ1bmN0aW9uIHVzZUlucHV0R3JhcGgoKSB7CiAgcmV0dXJuIHVzZUludGVybmVkR3JhcGgoKTsKfSAvLyBjcmVhdGVzIGFuIGlucHV0IGdyYXBoIHdpdGggZml4ZWQgc2l6aW5nCi8vIHRoaXMgc2F2ZXMgb24gcmFuZ2UgY29tcHV0ZSBmb3IgdGhlIG1pbmltYXAKCmV4cG9ydCBmdW5jdGlvbiB1c2VTdGF0aWNJbnB1dEdyYXBoKCkgewogIHJldHVybiB1c2VJbnRlcm5lZE1pbmltYXBHcmFwaCgpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/data.ts"],"names":["useInternedGraph","useInternedMinimapGraph","useInputGraph","useStaticInputGraph"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,gBAAT,EAA2BC,uBAA3B,QAA0D,gBAA1D;AACA,OAAO,SAASC,aAAT,GAAyB;AAC5B,SAAOF,gBAAgB,EAAvB;AACH,C,CACD;AACA;;AACA,OAAO,SAASG,mBAAT,GAA+B;AAClC,SAAOF,uBAAuB,EAA9B;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { useInternedGraph, useInternedMinimapGraph } from '~/state/caches';\r\nexport function useInputGraph() {\r\n return useInternedGraph();\r\n}\r\n// creates an input graph with fixed sizing\r\n// this saves on range compute for the minimap\r\nexport function useStaticInputGraph() {\r\n return useInternedMinimapGraph();\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/eb9272199f0cca7fc4b9f9444f9eefe1.json b/node_modules/.cache/cache-loader/eb9272199f0cca7fc4b9f9444f9eefe1.json deleted file mode 100644 index 0da7afb..0000000 --- a/node_modules/.cache/cache-loader/eb9272199f0cca7fc4b9f9444f9eefe1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Export\\ImageSettings.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Export\\ImageSettings.tsx","mtime":1631029334775},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGVPbmx5KSB7IHZhciBrZXlzID0gT2JqZWN0LmtleXMob2JqZWN0KTsgaWYgKE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpIHsgdmFyIHN5bWJvbHMgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKG9iamVjdCk7IGlmIChlbnVtZXJhYmxlT25seSkgeyBzeW1ib2xzID0gc3ltYm9scy5maWx0ZXIoZnVuY3Rpb24gKHN5bSkgeyByZXR1cm4gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmplY3QsIHN5bSkuZW51bWVyYWJsZTsgfSk7IH0ga2V5cy5wdXNoLmFwcGx5KGtleXMsIHN5bWJvbHMpOyB9IHJldHVybiBrZXlzOyB9CgpmdW5jdGlvbiBfb2JqZWN0U3ByZWFkKHRhcmdldCkgeyBmb3IgKHZhciBpID0gMTsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKykgeyB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldICE9IG51bGwgPyBhcmd1bWVudHNbaV0gOiB7fTsgaWYgKGkgJSAyKSB7IG93bktleXMoT2JqZWN0KHNvdXJjZSksIHRydWUpLmZvckVhY2goZnVuY3Rpb24gKGtleSkgeyBfZ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AgICAgbWFyZ2luVG9wOiAzCiAgICAgIH0KICAgIH0KICB9KSwgUmVhY3QuY3JlYXRlRWxlbWVudChTaXplLCBudWxsLCBSZWFjdC5jcmVhdGVFbGVtZW50KE51bWJlclNwaW5CdXR0b24sIHsKICAgIGxhYmVsOiAnU2l6ZSAocHgpJywKICAgIHZhbHVlOiBzZXR0aW5ncy5zaXplLAogICAgb25DaGFuZ2U6IGhhbmRsZVNpemVDaGFuZ2UsCiAgICBpbmNyZW1lbnRCdXR0b25BcmlhTGFiZWw6ICJpbmNyZW1lbnQgc2l6ZSAocHgpIiwKICAgIGRlY3JlbWVudEJ1dHRvbkFyaWFMYWJlbDogImRlY3JlbWVudCBzaXplIChweCkiCiAgfSkpKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCWRpc3BsYXk6IGZsZXg7CglqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CmA7CmNvbnN0IFNpemUgPSBzdHlsZWQuZGl2YAoJd2lkdGg6IDI1JTsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/components/Export/ImageSettings.tsx"],"names":["NumberSpinButton","TextField","React","useCallback","styled","ImageSettings","onChange","settings","handleFilenameChange","e","value","filename","handleSizeChange","size","createElement","Container","label","suffix","styles","fieldGroup","marginTop","Size","incrementButtonAriaLabel","decrementButtonAriaLabel","div"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,SAASA,gBAAT,QAAiC,qCAAjC;AACA,SAASC,SAAT,QAA0B,iBAA1B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,aAAa,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA;AAAZ,CAAD,KAA6B;AACtD,QAAMC,oBAAoB,GAAGL,WAAW,CAAC,CAACM,CAAD,EAAIC,KAAJ,KAAc;AACnDJ,IAAAA,QAAQ,IACJA,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ENSE file in the project.\r\n */\r\nimport { NumberSpinButton } from '@essex-js-toolkit/themed-components';\r\nimport { TextField } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const ImageSettings = ({ onChange, settings, }) => {\r\n const handleFilenameChange = useCallback((e, value) => {\r\n onChange &&\r\n onChange({\r\n ...settings,\r\n filename: value,\r\n });\r\n }, [onChange, settings]);\r\n const handleSizeChange = useCallback(value => {\r\n onChange &&\r\n onChange({\r\n ...settings,\r\n size: value,\r\n });\r\n }, [onChange, settings]);\r\n return (React.createElement(Container, null,\r\n React.createElement(TextField, { label: 'Filename', value: settings.filename, suffix: '.png', onChange: handleFilenameChange, styles: {\r\n // TODO: this is a kludge to align the label with the NumberSpinButton next to it\r\n fieldGroup: {\r\n marginTop: 3,\r\n },\r\n } }),\r\n React.createElement(Size, null,\r\n React.createElement(NumberSpinButton, { label: 'Size (px)', value: settings.size, onChange: handleSizeChange, incrementButtonAriaLabel: \"increment size (px)\", decrementButtonAriaLabel: \"decrement size (px)\" }))));\r\n};\r\nconst Container = styled.div `\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n`;\r\nconst Size = styled.div `\r\n\twidth: 25%;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ec80b3125f2683dfa69753b1269a5760.json b/node_modules/.cache/cache-loader/ec80b3125f2683dfa69753b1269a5760.json deleted file mode 100644 index 01e646c..0000000 --- a/node_modules/.cache/cache-loader/ec80b3125f2683dfa69753b1269a5760.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ToggleHeader\\ToggleHeader.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ToggleHeader\\ToggleHeader.tsx","mtime":1631029334855},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBUb2dnbGUgfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2ssIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgVG9nZ2xlSGVhZGVyID0gKHsKICB0aXRsZSwKICBzdWJ0aXRsZSwKICBjaGVja2VkLAogIGRpc2FibGVkLAogIG9uQ2hhbmdlCn0pID0+IHsKICBjb25z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X07Cglib3JkZXItYm90dG9tOiBub25lOwoJYmFja2dyb3VuZDogJHsoewogIHRoZW1lCn0pID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkuZmFpbnQoKS5oZXgoMC44KX07CglwYWRkaW5nOiA0cHg7CgloZWlnaHQ6IDMycHg7CglwYWRkaW5nLWxlZnQ6IDIwcHg7Cglmb250LXNpemU6IDAuOGVtOwoJZGlzcGxheTogZmxleDsKCWFsaWduLWl0ZW1zOiBjZW50ZXI7CglqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CmA7CmNvbnN0IFRpdGxlID0gc3R5bGVkLmRpdmAKCWZvbnQtd2VpZ2h0OiBib2xkOwpgOwpjb25zdCBTdWJ0aXRsZSA9IHN0eWxlZC5kaXZgCgljb2xvcjogJHsoewogIHRoZW1lCn0pID0+IHRoZW1lLmFwcGxpY2F0aW9uKCkubWlkQ29udHJhc3QoKS5oZXgoKX07Cglmb250LXNpemU6IDAuOWVtOwpgOwpjb25zdCBUb2dnbGVTZWN0aW9uID0gc3R5bGVkLmRpdmBgOw=="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ToggleHeader/ToggleHeader.tsx"],"names":["Toggle","React","useCallback","useMemo","styled","ToggleHeader","title","subtitle","checked","disabled","onChange","handleChange","_","v","toggleStyles","root","margin","pill","height","width","padding","fontSize","thumb","text","createElement","Container","Title","Subtitle","ToggleSection","styles","onText","offText","div","theme","application","lowContrast","hex","faint","midContrast"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,MAAT,QAAuB,iBAAvB;AACA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,QAA4C,OAA5C;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA,QAAT;AAAmBC,EAAAA,OAAnB;AAA4BC,EAAAA,QAA5B;AAAsCC,EAAAA;AAAtC,CAAD,KAAuD;AAC/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BAAqB,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBC,WAApB,GAAkCC,GAAlC,EAAwC;AAC5E;AACA,eAAe,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBG,KAApB,GAA4BD,GAA5B,CAAgC,GAAhC,CAAqC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAXA;AAYA,MAAMV,KAAK,GAAGtB,MAAM,CAAC4B,GAAK;AAC1B;AACA,CAFA;AAGA,MAAML,QAAQ,GAAGvB,MAAM,CAAC4B,GAAK;AAC7B,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,WAAN,GAAoBI,WAApB,GAAkCF,GAAlC,EAAwC;AACjE;AACA,CAHA;AAIA,MAAMR,aAAa,GAAGxB,MAAM,CAAC4B,GAAK,EAAlC","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { Toggle } from '@fluentui/react';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport styled from 'styled-components';\r\nexport const ToggleHeader = ({ title, subtitle, checked, disabled, onChange, }) => {\r\n const handleChange = useCallback((_, v) => onChange && onChange(v), [onChange]);\r\n // create a \"micro toggle\"\r\n const toggleStyles = useMemo(() => ({\r\n root: {\r\n margin: 0,\r\n },\r\n pill: {\r\n height: 14,\r\n width: 28,\r\n padding: 1,\r\n fontSize: 12,\r\n },\r\n thumb: {\r\n fontSize: 12,\r\n },\r\n text: {\r\n fontSize: '0.8em',\r\n },\r\n }), []);\r\n return (React.createElement(Container, null,\r\n React.createElement(Title, null, title),\r\n React.createElement(Subtitle, null, subtitle),\r\n React.createElement(ToggleSection, null,\r\n React.createElement(Toggle, { disabled: disabled, styles: toggleStyles, onText: \"on\", offText: \"off\", checked: checked, onChange: handleChange }))));\r\n};\r\nconst Container = styled.div `\r\n\tborder: 1px solid ${({ theme }) => theme.application().lowContrast().hex()};\r\n\tborder-bottom: none;\r\n\tbackground: ${({ theme }) => theme.application().faint().hex(0.8)};\r\n\tpadding: 4px;\r\n\theight: 32px;\r\n\tpadding-left: 20px;\r\n\tfont-size: 0.8em;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n`;\r\nconst Title = styled.div `\r\n\tfont-weight: bold;\r\n`;\r\nconst Subtitle = styled.div `\r\n\tcolor: ${({ theme }) => theme.application().midContrast().hex()};\r\n\tfont-size: 0.9em;\r\n`;\r\nconst ToggleSection = styled.div ``;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ed5bd954702f5bb4d52e9c258eade2ef.json b/node_modules/.cache/cache-loader/ed5bd954702f5bb4d52e9c258eade2ef.json deleted file mode 100644 index dfafebf..0000000 --- a/node_modules/.cache/cache-loader/ed5bd954702f5bb4d52e9c258eade2ef.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\legends\\EdgeSizeHeaderLegend.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\legends\\EdgeSizeHeaderLegend.tsx","mtime":1631029334804},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBIZWFkZXJMZWdlbmQgfSBmcm9tICcuLi8uLi9jb250cm9scy9IZWFkZXJMZWdlbmQnOwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VFZGdlQ291bnQgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyB1c2VFZGdlU2l6ZUVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZS92aXMnOwpleHBvcnQgY29uc3QgRWRnZVNpemVIZWFkZXJMZWdlbmQgPSAoKSA9PiB7CiAgY29uc3QgY291bnQgPSB1c2VFZGdlQ291bnQoKTsKICBjb25zdCBlbmNvZGluZyA9IHVzZUVkZ2VTaXplRW5jb2RpbmcoKTsKICByZXR1cm4gUmVhY3QuY3JlYXRlRWxlbWVudChIZWFkZXJMZWdlbmQsIHsKICAgIGxhYmVsOiAnRWRnZSBzaXplJywKICAgIGVuY29kaW5nOiBlbmNvZGluZywKICAgIHNpemVFbmNvZGluZzogZW5jb2RpbmcsCiAgICBpc1Vuc2V0OiBjb3VudCA9PT0gMCwKICAgIGlzRGFzaGVzOiB0cnVlCiAgfSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/legends/EdgeSizeHeaderLegend.tsx"],"names":["HeaderLegend","React","useEdgeCount","useEdgeSizeEncoding","EdgeSizeHeaderLegend","count","encoding","createElement","label","sizeEncoding","isUnset","isDashes"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,YAAT,QAA6B,6BAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,YAAT,QAA6B,WAA7B;AACA,SAASC,mBAAT,QAAoC,aAApC;AACA,OAAO,MAAMC,oBAAoB,GAAG,MAAM;AACtC,QAAMC,KAAK,GAAGH,YAAY,EAA1B;AACA,QAAMI,QAAQ,GAAGH,mBAAmB,EAApC;AACA,SAAQF,KAAK,CAACM,aAAN,CAAoBP,YAApB,EAAkC;AAAEQ,IAAAA,KAAK,EAAE,WAAT;AAAsBF,IAAAA,QAAQ,EAAEA,QAAhC;AAA0CG,IAAAA,YAAY,EAAEH,QAAxD;AAAkEI,IAAAA,OAAO,EAAEL,KAAK,KAAK,CAArF;AAAwFM,IAAAA,QAAQ,EAAE;AAAlG,GAAlC,CAAR;AACH,CAJM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { HeaderLegend } from '../../controls/HeaderLegend';\r\nimport React from 'react';\r\nimport { useEdgeCount } from '~/arquero';\r\nimport { useEdgeSizeEncoding } from '~/state/vis';\r\nexport const EdgeSizeHeaderLegend = () => {\r\n const count = useEdgeCount();\r\n const encoding = useEdgeSizeEncoding();\r\n return (React.createElement(HeaderLegend, { label: 'Edge size', encoding: encoding, sizeEncoding: encoding, isUnset: count === 0, isDashes: true }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/ed7e6584076eba7374be38e8cc7d89e4.json b/node_modules/.cache/cache-loader/ed7e6584076eba7374be38e8cc7d89e4.json deleted file mode 100644 index b023216..0000000 --- a/node_modules/.cache/cache-loader/ed7e6584076eba7374be38e8cc7d89e4.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\controls\\NodeColorControls\\NodeColorControls.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\controls\\NodeColorControls\\NodeColorControls.tsx","mtime":1624559748307},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VBcnF1ZXJvVmlzaWJsZU5vZGVzVGFibGUgfSBmcm9tICd+L2FycXVlcm8nOwppbXBvcnQgeyBDb2xvclNlbGVjdG9yIH0gZnJvbSAnfi9jb250cm9scy9Db2xvclNlbGVjdG9yJzsKaW1wb3J0IHsgdXNlTm9kZUNvbG9yRW5jb2RpbmcsIHVzZVVwZGF0ZU5vZGVDb2xvckVuY29kaW5nIH0gZnJvbSAnfi9zdGF0ZSc7CmV4cG9ydCBjb25zdCBOb2RlQ29sb3JDb250cm9scyA9ICgpID0+IHsKICBjb25zdCBlbmNvZGluZyA9IHVzZU5vZGVDb2xvckVuY29kaW5nKCk7CiAgY29uc3QgdXBkYXRlRW5jb2RpbmcgPSB1c2VVcGRhdGVOb2RlQ29sb3JFbmNvZGluZygpOwogIGNvbnN0IHRhYmxlID0gdXNlQXJxdWVyb1Zpc2libGVOb2Rlc1RhYmxlKCk7CiAgcmV0dXJuIFJlYWN0LmNyZWF0ZUVsZW1lbnQoQ29sb3JTZWxlY3RvciwgewogICAgdGFibGU6IHRhYmxlLAogICAgZW5jb2Rpbmc6IGVuY29kaW5nLAogICAgb25DaGFuZ2U6IHVwZGF0ZUVuY29kaW5nCiAgfSk7Cn07"},{"version":3,"sources":["C:/ws/graph-drill/src/components/controls/NodeColorControls/NodeColorControls.tsx"],"names":["React","useArqueroVisibleNodesTable","ColorSelector","useNodeColorEncoding","useUpdateNodeColorEncoding","NodeColorControls","encoding","updateEncoding","table","createElement","onChange"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,2BAAT,QAA4C,WAA5C;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,SAASC,oBAAT,EAA+BC,0BAA/B,QAAiE,SAAjE;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAAM;AACnC,QAAMC,QAAQ,GAAGH,oBAAoB,EAArC;AACA,QAAMI,cAAc,GAAGH,0BAA0B,EAAjD;AACA,QAAMI,KAAK,GAAGP,2BAA2B,EAAzC;AACA,SAAQD,KAAK,CAACS,aAAN,CAAoBP,aAApB,EAAmC;AAAEM,IAAAA,KAAK,EAAEA,KAAT;AAAgBF,IAAAA,QAAQ,EAAEA,QAA1B;AAAoCI,IAAAA,QAAQ,EAAEH;AAA9C,GAAnC,CAAR;AACH,CALM","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport React from 'react';\r\nimport { useArqueroVisibleNodesTable } from '~/arquero';\r\nimport { ColorSelector } from '~/controls/ColorSelector';\r\nimport { useNodeColorEncoding, useUpdateNodeColorEncoding } from '~/state';\r\nexport const NodeColorControls = () => {\r\n const encoding = useNodeColorEncoding();\r\n const updateEncoding = useUpdateNodeColorEncoding();\r\n const table = useArqueroVisibleNodesTable();\r\n return (React.createElement(ColorSelector, { table: table, encoding: encoding, onChange: updateEncoding }));\r\n};\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/eef094059fcec12a769649c72a1a57ca.json b/node_modules/.cache/cache-loader/eef094059fcec12a769649c72a1a57ca.json deleted file mode 100644 index 728fa26..0000000 --- a/node_modules/.cache/cache-loader/eef094059fcec12a769649c72a1a57ca.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\hooks\\usePresetData.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\hooks\\usePresetData.ts","mtime":1631029334695},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwppbXBvcnQgeyBGaWxlT3JpZ2luIH0gZnJvbSAnLi4vLi4vLi4vdHlwZXMnOwppbXBvcnQgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VEYXRhc2V0LCB1c2VGb3JtYXQgfSBmcm9tICd+L3N0YXRlJzsKLyoqDQogKiBUaGlzIGhvb2tzIGxvYWRzIHByZS1iYWtlZCBjb21wbGV0ZSBkYXRzZXRzDQogKiBhY2Nlc3NpYmxlIHZpYSB0aGUgZGF0YXNldCBwYXJhbSAoaW4gZGVwbG95ZWQgcHVibGljL2RhdGEgZm9sZGVyKS4NCiAqIE5vdGUgdGhhdCB0byBiZSBpbmNsdWRlZCBoZXJlIHRoZXkgbXVzdA0KICogaGF2ZSBhIG5vZGVzIGFuZCBqb2luIGZpbGUgcGFpciBhdCBtaW5pbXVtLg0KICovCgpleHBvcnQgZnVuY3Rpb24gdXNlUHJlc2V0RGF0YSgpIHsKICBjb25zdCBkYXRhc2V0ID0gdXNlRGF0YXNldCgpOwogIGNvbnN0IGZvcm1hdCA9IHVzZUZvcm1hdCgpOwogIHJldHVybiB1c2VNZW1vKCgpID0+IHsKICAgIHJldHVybiBkYXRhc2V0ID8gewogICAgICBub2RlczogewogICAgICAgIG9yaWdpbjogRmlsZU9yaWdpbi5QcmVzZXQsCiAgICAgICAgdXJsOiBgZGF0YS8ke2RhdGFzZXR9L25vZGVzLiR7Zm9ybWF0fWAsCiAgICAgICAgdGFibGVUeXBlOiAnbm9kZScKICAgICAgfSwKICAgICAgam9pbjogewogICAgICAgIG9yaWdpbjogRmlsZU9yaWdpbi5QcmVzZXQsCiAgICAgICAgdXJsOiBgZGF0YS8ke2RhdGFzZXR9L2pvaW4uJHtmb3JtYXR9YCwKICAgICAgICB0YWJsZVR5cGU6ICdqb2luJwogICAgICB9CiAgICB9IDoge307CiAgfSwgW2RhdGFzZXQsIGZvcm1hdF0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/hooks/usePresetData.ts"],"names":["FileOrigin","useMemo","useDataset","useFormat","usePresetData","dataset","format","nodes","origin","Preset","url","tableType","join"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,UAAT,QAA2B,gBAA3B;AACA,SAASC,OAAT,QAAwB,OAAxB;AACA,SAASC,UAAT,EAAqBC,SAArB,QAAsC,SAAtC;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,aAAT,GAAyB;AAC5B,QAAMC,OAAO,GAAGH,UAAU,EAA1B;AACA,QAAMI,MAAM,GAAGH,SAAS,EAAxB;AACA,SAAOF,OAAO,CAAC,MAAM;AACjB,WAAOI,OAAO,GACR;AACEE,MAAAA,KAAK,EAAE;AACHC,QAAAA,MAAM,EAAER,UAAU,CAACS,MADhB;AAEHC,QAAAA,GAAG,EAAG,QAAOL,OAAQ,UAASC,MAAO,EAFlC;AAGHK,QAAAA,SAAS,EAAE;AAHR,OADT;AAMEC,MAAAA,IAAI,EAAE;AACFJ,QAAAA,MAAM,EAAER,UAAU,CAACS,MADjB;AAEFC,QAAAA,GAAG,EAAG,QAAOL,OAAQ,SAAQC,MAAO,EAFlC;AAGFK,QAAAA,SAAS,EAAE;AAHT;AANR,KADQ,GAaR,EAbN;AAcH,GAfa,EAeX,CAACN,OAAD,EAAUC,MAAV,CAfW,CAAd;AAgBH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { FileOrigin } from '../../../types';\r\nimport { useMemo } from 'react';\r\nimport { useDataset, useFormat } from '~/state';\r\n/**\r\n * This hooks loads pre-baked complete datsets\r\n * accessible via the dataset param (in deployed public/data folder).\r\n * Note that to be included here they must\r\n * have a nodes and join file pair at minimum.\r\n */\r\nexport function usePresetData() {\r\n const dataset = useDataset();\r\n const format = useFormat();\r\n return useMemo(() => {\r\n return dataset\r\n ? {\r\n nodes: {\r\n origin: FileOrigin.Preset,\r\n url: `data/${dataset}/nodes.${format}`,\r\n tableType: 'node',\r\n },\r\n join: {\r\n origin: FileOrigin.Preset,\r\n url: `data/${dataset}/join.${format}`,\r\n tableType: 'join',\r\n },\r\n }\r\n : {};\r\n }, [dataset, format]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/eef1c5b1a7edee9e756973a320bbe78b.json b/node_modules/.cache/cache-loader/eef1c5b1a7edee9e756973a320bbe78b.json deleted file mode 100644 index cf7439a..0000000 --- a/node_modules/.cache/cache-loader/eef1c5b1a7edee9e756973a320bbe78b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\utils\\theme.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\utils\\theme.ts","mtime":1620403249637},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwoKLyoqDQogKiBMaXN0IHRoZSB0aGVtZSBjb2xvciBvcHRpb25zLA0KICogY29tcGF0aWJsZSB3aXRoIHRoZSBnZXROYW1lZENvbG9yIGZ1bmN0aW9uLg0KICogTm90ZSB0aGF0IHdlIGRvbid0IHJlYWxseSB3YW50IGFsbCB0aGUgb3B0aW9ucw0KICogb24gdGhlIHNjaGVtZSwganVzdCBhIHNlbGVjdGlvbiBvZiBvYnZpb3VzIG9uZXMuDQogKi8KZXhwb3J0IGZ1bmN0aW9uIGxpc3RUaGVtYXRpY0NvbG9ycygpIHsKICBjb25zdCBub21pbmFscyA9IG5ldyBBcnJheSgxMCkuZmlsbCgnbm9taW5hbCcpLm1hcCgoYSwgaSkgPT4gYCR7YX1bJHtpfV1gKTsKICByZXR1cm4gWydmYWludEFubm90YXRpb24nLCAnbG93Q29udHJhc3RBbm5vdGF0aW9uJywgJ21pZENvbnRyYXN0QW5ub3RhdGlvbicsICdoaWdoQ29udHJhc3RBbm5vdGF0aW9uJywgLi4ubm9taW5hbHNdOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/utils/theme.ts"],"names":["listThematicColors","nominals","Array","fill","map","a","i"],"mappings":"AAAA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,kBAAT,GAA8B;AACjC,QAAMC,QAAQ,GAAG,IAAIC,KAAJ,CAAU,EAAV,EAAcC,IAAd,CAAmB,SAAnB,EAA8BC,GAA9B,CAAkC,CAACC,CAAD,EAAIC,CAAJ,KAAW,GAAED,CAAE,IAAGC,CAAE,GAAtD,CAAjB;AACA,SAAO,CACH,iBADG,EAEH,uBAFG,EAGH,uBAHG,EAIH,wBAJG,EAKH,GAAGL,QALA,CAAP;AAOH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\n/**\r\n * List the theme color options,\r\n * compatible with the getNamedColor function.\r\n * Note that we don't really want all the options\r\n * on the scheme, just a selection of obvious ones.\r\n */\r\nexport function listThematicColors() {\r\n const nominals = new Array(10).fill('nominal').map((a, i) => `${a}[${i}]`);\r\n return [\r\n 'faintAnnotation',\r\n 'lowContrastAnnotation',\r\n 'midContrastAnnotation',\r\n 'highContrastAnnotation',\r\n ...nominals,\r\n ];\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f1d73f29a226e968caed834f7f57711b.json b/node_modules/.cache/cache-loader/f1d73f29a226e968caed834f7f57711b.json deleted file mode 100644 index 8c7c019..0000000 --- a/node_modules/.cache/cache-loader/f1d73f29a226e968caed834f7f57711b.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ManualPicker.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\controls\\ColorSelector\\ManualPicker.tsx","mtime":1631029334816},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgQ29sb3JQaWNrZXIgfSBmcm9tICdAZmx1ZW50dWkvcmVhY3QnOwppbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7CmltcG9ydCBzdHlsZWQgZnJvbSAnc3R5bGVkLWNvbXBvbmVudHMnOwpleHBvcnQgY29uc3QgTWFudWFsUGlja2VyID0gKHsKICBlbmNvZGluZywKICBvbkNoYW5nZQp9KSA9PiB7CiAgY29uc3QgaGFuZGxlUGlja2VyQ2hhbmdlID0gdXNlQ2FsbGJhY2soKGUsIGNvbG9yKSA9PiB7CiAgICBvbkNoYW5nZSh7CiAgICAgIHZhbHVlOiBgIyR7Y29sb3IuaGV4fWAKICAgIH0pOwogIH0sIFtvbkNoYW5nZV0pOwogIHJldHVybiBSZWFjdC5jcmVhdGVFbGVtZW50KENvbnRhaW5lciwgbnVsbCwgUmVhY3QuY3JlYXRlRWxlbWVudChDb2xvclBpY2tlciwgewogICAgY29sb3I6IGVuY29kaW5nLnZhbHVlIHx8ICdub25lJywKICAgIG9uQ2hhbmdlOiBoYW5kbGVQaWNrZXJDaGFuZ2UsCiAgICBhbHBoYVR5cGU6ICJub25lIgogIH0pKTsKfTsKY29uc3QgQ29udGFpbmVyID0gc3R5bGVkLmRpdmAKCW1hcmdpbi10b3A6IDhweDsKYDs="},{"version":3,"sources":["C:/ws/graph-drill/src/controls/ColorSelector/ManualPicker.tsx"],"names":["ColorPicker","React","useCallback","styled","ManualPicker","encoding","onChange","handlePickerChange","e","color","value","hex","createElement","Container","alphaType","div"],"mappings":"AAAA,SAASA,WAAT,QAA4B,iBAA5B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,QAAF;AAAYC,EAAAA;AAAZ,CAAD,KAA6B;AACrD,QAAMC,kBAAkB,GAAGL,WAAW,CAAC,CAACM,CAAD,EAAIC,KAAJ,KAAc;AACjDH,IAAAA,QAAQ,CAAC;AACLI,MAAAA,KAAK,EAAG,IAAGD,KAAK,CAACE,GAAI;AADhB,KAAD,CAAR;AAGH,GAJqC,EAInC,CAACL,QAAD,CAJmC,CAAtC;AAKA,SAAQL,KAAK,CAACW,aAAN,CAAoBC,SAApB,EAA+B,IAA/B,EACJZ,KAAK,CAACW,aAAN,CAAoBZ,WAApB,EAAiC;AAAES,IAAAA,KAAK,EAAEJ,QAAQ,CAACK,KAAT,IAAkB,MAA3B;AAAmCJ,IAAAA,QAAQ,EAAEC,kBAA7C;AAAiEO,IAAAA,SAAS,EAAE;AAA5E,GAAjC,CADI,CAAR;AAEH,CARM;AASP,MAAMD,SAAS,GAAGV,MAAM,CAACY,GAAK;AAC9B;AACA,CAFA","sourcesContent":["import { ColorPicker } from '@fluentui/react';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const ManualPicker = ({ encoding, onChange, }) => {\r\n const handlePickerChange = useCallback((e, color) => {\r\n onChange({\r\n value: `#${color.hex}`,\r\n });\r\n }, [onChange]);\r\n return (React.createElement(Container, null,\r\n React.createElement(ColorPicker, { color: encoding.value || 'none', onChange: handlePickerChange, alphaType: \"none\" })));\r\n};\r\nconst Container = styled.div `\r\n\tmargin-top: 8px;\r\n`;\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f1ef8c32b9148ea3c57183d4452537d1.json b/node_modules/.cache/cache-loader/f1ef8c32b9148ea3c57183d4452537d1.json deleted file mode 100644 index d14c495..0000000 --- a/node_modules/.cache/cache-loader/f1ef8c32b9148ea3c57183d4452537d1.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\hooks\\useUrlFiles.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\hooks\\useUrlFiles.ts","mtime":1631029334698},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlTWVtbyB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHsgdXNlQ29tbXVuaXRpZXNGaWxlLCB1c2VFZGdlc0ZpbGUsIHVzZUpvaW5GaWxlLCB1c2VOb2Rlc0ZpbGUgfSBmcm9tICd+L3N0YXRlJzsKaW1wb3J0IHsgRmlsZU9yaWdpbiB9IGZyb20gJ34vdHlwZXMnOwovKioNCiAqIFRoaXMgbG9hZHMgdGVzdCBkYXRhIGZpbGVzIGFzIHNwZWNpZmllZCBvbiB0aGUgdXJsLg0KICogVGhpcyBpcyB2ZXJ5IGFkLWhvYyAtIGl0IGlzIHN1cHBvc2VkIHRvIGJlIGFraW4gdG8NCiAqIGRyb3BwaW5nIHRoZSBuYW1lZCBmaWxlcyBvbiB0aGUgY29ycmVzcG9uZGluZyBGaWxlRHJvcCB3ZWxscy4NCiAqIEl0J3MgcG9zc2libGUgdGhpcyB3b3VsZCB3b3JrIHdpdGggZGF0YSBob3N0ZWQgZWxzZXdoZXJlIGlmIENPUlMNCiAqIGlzIHNldHVwIHByb3Blcmx5LCBidXQgb3RoZXJ3aXNlIHRoZXkgYX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DogZWRnZXNGaWxlLAogICAgICAgIHRhYmxlVHlwZTogJ2VkZ2UnCiAgICAgIH07CiAgICB9CgogICAgcmV0dXJuIGJ1bmRsZTsKICB9LCBbbm9kZXNGaWxlLCBqb2luRmlsZSwgY29tbXVuaXRpZXNGaWxlLCBlZGdlc0ZpbGVdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/hooks/useUrlFiles.ts"],"names":["useMemo","useCommunitiesFile","useEdgesFile","useJoinFile","useNodesFile","FileOrigin","useUrlFiles","nodesFile","joinFile","communitiesFile","edgesFile","bundle","nodes","origin","Remote","url","tableType","join","communities","edges"],"mappings":"AAAA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,kBAAT,EAA6BC,YAA7B,EAA2CC,WAA3C,EAAwDC,YAAxD,QAA6E,SAA7E;AACA,SAASC,UAAT,QAA2B,SAA3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,WAAT,GAAuB;AAC1B,QAAMC,SAAS,GAAGH,YAAY,EAA9B;AACA,QAAMI,QAAQ,GAAGL,WAAW,EAA5B;AACA,QAAMM,eAAe,GAAGR,kBAAkB,EAA1C;AACA,QAAMS,SAAS,GAAGR,YAAY,EAA9B;AACA,SAAOF,OAAO,CAAC,MAAM;AACjB,UAAMW,MAAM,GAAG,EAAf;;AACA,QAAIJ,SAAJ,EAAe;AACXI,MAAAA,MAAM,CAACC,KAAP,GAAe;AACXC,QAAAA,MAAM,EAAER,UAAU,CAACS,MADR;AAEXC,QAAAA,GAAG,EAAER,SAFM;AAGXS,QAAAA,SAAS,EAAE;AAHA,OAAf;AAKH;;AACD,QAAIR,QAAJ,EAAc;AACVG,MAAAA,MAAM,CAACM,IAAP,GAAc;AACVJ,QAAAA,MAAM,EAAER,UAAU,CAACS,MADT;AAEVC,QAAAA,GAAG,EAAEP,QAFK;AAGVQ,QAAAA,SAAS,EAAE;AAHD,OAAd;AAKH;;AACD,QAAIP,eAAJ,EAAqB;AACjBE,MAAAA,MAAM,CAACO,WAAP,GAAqB;AACjBL,QAAAA,MAAM,EAAER,UAAU,CAACS,MADF;AAEjBC,QAAAA,GAAG,EAAEN,eAFY;AAGjBO,QAAAA,SAAS,EAAE;AAHM,OAArB;AAKH;;AACD,QAAIN,SAAJ,EAAe;AACXC,MAAAA,MAAM,CAACQ,KAAP,GAAe;AACXN,QAAAA,MAAM,EAAER,UAAU,CAACS,MADR;AAEXC,QAAAA,GAAG,EAAEL,SAFM;AAGXM,QAAAA,SAAS,EAAE;AAHA,OAAf;AAKH;;AACD,WAAOL,MAAP;AACH,GA/Ba,EA+BX,CAACJ,SAAD,EAAYC,QAAZ,EAAsBC,eAAtB,EAAuCC,SAAvC,CA/BW,CAAd;AAgCH","sourcesContent":["import { useMemo } from 'react';\r\nimport { useCommunitiesFile, useEdgesFile, useJoinFile, useNodesFile, } from '~/state';\r\nimport { FileOrigin } from '~/types';\r\n/**\r\n * This loads test data files as specified on the url.\r\n * This is very ad-hoc - it is supposed to be akin to\r\n * dropping the named files on the corresponding FileDrop wells.\r\n * It's possible this would work with data hosted elsewhere if CORS\r\n * is setup properly, but otherwise they are expected to be available under\r\n * the public folder.\r\n */\r\nexport function useUrlFiles() {\r\n const nodesFile = useNodesFile();\r\n const joinFile = useJoinFile();\r\n const communitiesFile = useCommunitiesFile();\r\n const edgesFile = useEdgesFile();\r\n return useMemo(() => {\r\n const bundle = {};\r\n if (nodesFile) {\r\n bundle.nodes = {\r\n origin: FileOrigin.Remote,\r\n url: nodesFile,\r\n tableType: 'node',\r\n };\r\n }\r\n if (joinFile) {\r\n bundle.join = {\r\n origin: FileOrigin.Remote,\r\n url: joinFile,\r\n tableType: 'join',\r\n };\r\n }\r\n if (communitiesFile) {\r\n bundle.communities = {\r\n origin: FileOrigin.Remote,\r\n url: communitiesFile,\r\n tableType: 'community',\r\n };\r\n }\r\n if (edgesFile) {\r\n bundle.edges = {\r\n origin: FileOrigin.Remote,\r\n url: edgesFile,\r\n tableType: 'edge',\r\n };\r\n }\r\n return bundle;\r\n }, [nodesFile, joinFile, communitiesFile, edgesFile]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f3cef5586fed6d3c279150435300244a.json b/node_modules/.cache/cache-loader/f3cef5586fed6d3c279150435300244a.json deleted file mode 100644 index ae2488f..0000000 --- a/node_modules/.cache/cache-loader/f3cef5586fed6d3c279150435300244a.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\util.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\util.ts","mtime":1631029334677},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:ZnVuY3Rpb24gb3duS2V5cyhvYmplY3QsIGVudW1lcmFibGV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iaW5dLnB1c2godmFsdWUpOwogIH0pOwogIHJldHVybiBiaW5zOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/util.ts"],"names":["TableCollection","one","histogram","op","precisionFixed","getColumnStats","table","name","numRows","numCols","dataType","precision","unique","domain","domain95","domain99","type","get","stats","rollup","min","max","q01","quantile","q05","q95","q99","ret","getPrecision","uniques","values","spread","whole","checkWhole","numbers","every","n","Number","isInteger","getColumnHistogram","split","collection","histo","toArray","d","binTableColumn","column","quantileOps","Array","fill","reduce","acc","cur","idx","binned","bins","Object","objects","map","v","i","a","arr","x0","length","x1","scan","value","binIndex","findIndex","bin","push"],"mappings":";;;;;;AAAA,SAASA,eAAT,QAAgC,mBAAhC;AACA,SAASC,GAAT,QAAoB,SAApB;AACA,SAASC,SAAT,QAA0B,2BAA1B,C,CACA;;AACA,SAASC,EAAT,QAAmB,SAAnB;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,OAAO,SAASC,cAAT,CAAwBC,KAAxB,EAA+BC,IAA/B,EAAqC;AACxC,MAAI,CAACD,KAAD,IAAUA,KAAK,CAACE,OAAN,OAAoB,CAA9B,IAAmCF,KAAK,CAACG,OAAN,OAAoB,CAAvD,IAA4D,CAACF,IAAjE,EAAuE;AACnE,WAAO;AACHG,MAAAA,QAAQ,EAAE,EADP;AAEHC,MAAAA,SAAS,EAAE,CAFR;AAGHC,MAAAA,MAAM,EAAE,EAHL;AAIHC,MAAAA,MAAM,EAAE,CAAC,CAAD,EAAI,CAAJ,CAJL;AAKHC,MAAAA,QAAQ,EAAE,CAAC,CAAD,EAAI,CAAJ,CALP;AAMHC,MAAAA,QAAQ,EAAE,CAAC,CAAD,EAAI,CAAJ;AANP,KAAP;AAQH;;AACD,QAAMC,IAAI,GAAG,OAAOV,KAAK,CAACW,GAAN,CAAUV,IAAV,EAAgB,CAAhB,CAApB;AACA,QAAMW,KAAK,GAAGjB,GAAG,CAACK,KAAK,CAACa,MAAN,CAAa;AAC3BC,IAAAA,GA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CAAX,GAAeb,IAAI,CAACS,MAAL,GAAc,CAA7B,GAAiCI,QAA7C;AACAb,IAAAA,IAAI,CAACe,GAAD,CAAJ,CAAUC,IAAV,CAAeJ,KAAf;AACH,GAPD;AAQA,SAAOZ,IAAP;AACH","sourcesContent":["import { TableCollection } from './TableCollection';\r\nimport { one } from './table';\r\nimport { histogram } from '@essex-js-toolkit/toolbox';\r\n// eslint-disable-next-line\r\nimport { op } from 'arquero';\r\nimport { precisionFixed } from 'd3-format';\r\nexport function getColumnStats(table, name) {\r\n if (!table || table.numRows() === 0 || table.numCols() === 0 || !name) {\r\n return {\r\n dataType: '',\r\n precision: 0,\r\n unique: [],\r\n domain: [0, 1],\r\n domain95: [0, 1],\r\n domain99: [0, 1],\r\n };\r\n }\r\n const type = typeof table.get(name, 0);\r\n const stats = one(table.rollup({\r\n min: op.min(name),\r\n max: op.max(name),\r\n q01: op.quantile(name, 0.01),\r\n q05: op.quantile(name, 0.05),\r\n q95: op.quantile(name, 0.95),\r\n q99: op.quantile(name, 0.99),\r\n unique: op.unique(name),\r\n }));\r\n const ret = {\r\n dataType: type,\r\n precision: getPrecision([stats.min, stats.max], stats.uniques),\r\n unique: stats.unique,\r\n domain: [stats.min, stats.max],\r\n domain95: [stats.q05, stats.q95],\r\n domain99: [stats.q01, stats.q99],\r\n };\r\n return ret;\r\n}\r\n// compute a suggested precision based on 100 divisions of the data range\r\nexport function getPrecision(domain = [0, 1], values) {\r\n const spread = domain[1] - domain[0];\r\n const whole = checkWhole(values);\r\n return whole ? 0 : precisionFixed(spread / 100);\r\n}\r\nfunction checkWhole(numbers) {\r\n if (!numbers) {\r\n return false;\r\n }\r\n return numbers.every(n => Number.isInteger(n));\r\n}\r\nexport function getColumnHistogram(table, name) {\r\n if (!table || table.numRows() === 0 || !name) {\r\n return [];\r\n }\r\n const type = name.split('.')[0];\r\n const collection = new TableCollection(table, type);\r\n // TODO: use the binTableColumn function, but this does not produce the same type of bins as the histogram utility\r\n const histo = histogram(collection.toArray(), 100, (d) => d.get(name));\r\n return histo;\r\n}\r\n/**\r\n * This function takes an arquero table and bins the values of a specified column\r\n * into a fixed set of quantiles from 0-1.0.\r\n * // TODO: use op.ntile??\r\n * @param table\r\n * @param column\r\n */\r\nexport function binTableColumn(table, column) {\r\n const quantileOps = new Array(100).fill(1).reduce((acc, cur, idx) => {\r\n acc[idx] = op.quantile(column, idx / 100);\r\n return acc;\r\n }, {});\r\n const domain = one(table.rollup({\r\n min: op.min(column),\r\n max: op.max(column),\r\n }));\r\n const binned = table.rollup({\r\n ...quantileOps,\r\n });\r\n // craft a set of d3-style bins to push data into\r\n const bins = Object.values(binned.objects()[0]).map((v, i, a) => {\r\n const arr = [];\r\n arr.x0 = v;\r\n if (i === a.length - 1) {\r\n arr.x1 = domain.max;\r\n }\r\n else {\r\n arr.x1 = a[i + 1];\r\n }\r\n return arr;\r\n });\r\n // fill the bins\r\n table.scan((idx) => {\r\n const value = table.get(column, idx);\r\n const binIndex = bins.findIndex(bin => value >= bin.x0 && value < bin.x1);\r\n // bin maxes are exclusive except for the last bin\r\n // https://github.com/d3/d3-array/blob/v2.8.0/README.md#_bin\r\n const bin = binIndex < 0 ? bins.length - 1 : binIndex;\r\n bins[bin].push(value);\r\n });\r\n return bins;\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f50b17a069b5f319f008ad2deb63810c.json b/node_modules/.cache/cache-loader/f50b17a069b5f319f008ad2deb63810c.json deleted file mode 100644 index 62368f6..0000000 --- a/node_modules/.cache/cache-loader/f50b17a069b5f319f008ad2deb63810c.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\Export\\hooks\\useSaveImage.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\Export\\hooks\\useSaveImage.ts","mtime":1631029334780},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlRWZmZWN0IH0gZnJvbSAncmVhY3QnOwovKioNCiAqIFNhdmVzIGltYWdlIGZyb20gcmVuZGVyZXIgd2hlbiByZXF1ZXN0ZWQuDQogKiBAcGFyYW0gc2F2ZSBJbmRpY2F0ZXMgaWYgdGhlIHJlbmRlcmVyIHNob3VsZCBiZSB1c2VkIHRvIHNhdmUgYW4gaW1hZ2UuDQogKiBAcGFyYW0gc2V0dGluZ3MgSW1hZ2Ugc2V0dGluZ3MgdG8gYXBwbHkgdG8gZG93bmxvYWQuDQogKiBAcGFyYW0gcmVuZGVyZXIgSW5zdGFudGlhdGVkIHJlbmRlcmVyLg0KICogQHBhcmFtIG9uQ29tcGxldGUgQ2FsbGJhY2sgdGhhdCBmaXJlcyB3aGVuIHNhdmUgaXMgY29tcGxldGUuDQogKi8KCmV4cG9ydCBmdW5jdGlvbiB1c2VTYXZlSW1hZ2Uoc2F2ZSwgc2V0dGluZ3MsIHJlbmRlcmVyLCBvbkNvbXBsZXRlKSB7CiAgdXNlRWZmZWN0KCgpID0+IHsKICAgIGlmIChyZW5kZXJlciAmJiBzYXZlKSB7CiAgICAgIC8vIG5lZWQgdG8gZm9yY2UgcmVzaXplIG9uIHRoZSByZW5kZXJlciBkaXJlY3RseQogICAgICByZW5kZXJlci5yZXNpemUoc2V0dGluZ3Muc2l6ZSwgc2V0dGluZ3Muc2l6ZSk7CiAgICAgIHJlbmRlcmVyLm1ha2VEaXJ0eSgpOwogICAgICByZW5kZXJlci5yZW5kZXIoKTsKICAgICAgY29uc3QgewogICAgICAgIHZpZXcKICAgICAgfSA9IHJlbmRlcmVyOwogICAgICBjb25zdCBkYXRhID0gdmlldy50b0RhdGFVUkwoJ2ltYWdlL3BuZycsIDEpOwogICAgICBjb25zdCBsaW5rID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnYScpOwogICAgICBsaW5rLmRvd25sb2FkID0gc2V0dGluZ3MuZmlsZW5hbWU7CiAgICAgIGxpbmsuaHJlZiA9IGRhdGE7CiAgICAgIGxpbmsuY2xpY2soKTsKICAgICAgb25Db21wbGV0ZSAmJiBvbkNvbXBsZXRlKCk7CiAgICB9CiAgfSwgW3JlbmRlcmVyLCBzYXZlLCBzZXR0aW5ncywgb25Db21wbGV0ZV0pOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/components/Export/hooks/useSaveImage.ts"],"names":["useEffect","useSaveImage","save","settings","renderer","onComplete","resize","size","makeDirty","render","view","data","toDataURL","link","document","createElement","download","filename","href","click"],"mappings":"AAAA,SAASA,SAAT,QAA0B,OAA1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,YAAT,CAAsBC,IAAtB,EAA4BC,QAA5B,EAAsCC,QAAtC,EAAgDC,UAAhD,EAA4D;AAC/DL,EAAAA,SAAS,CAAC,MAAM;AACZ,QAAII,QAAQ,IAAIF,IAAhB,EAAsB;AAClB;AACAE,MAAAA,QAAQ,CAACE,MAAT,CAAgBH,QAAQ,CAACI,IAAzB,EAA+BJ,QAAQ,CAACI,IAAxC;AACAH,MAAAA,QAAQ,CAACI,SAAT;AACAJ,MAAAA,QAAQ,CAACK,MAAT;AACA,YAAM;AAAEC,QAAAA;AAAF,UAAWN,QAAjB;AACA,YAAMO,IAAI,GAAGD,IAAI,CAACE,SAAL,CAAe,WAAf,EAA4B,CAA5B,CAAb;AACA,YAAMC,IAAI,GAAGC,QAAQ,CAACC,aAAT,CAAuB,GAAvB,CAAb;AACAF,MAAAA,IAAI,CAACG,QAAL,GAAgBb,QAAQ,CAACc,QAAzB;AACAJ,MAAAA,IAAI,CAACK,IAAL,GAAYP,IAAZ;AACAE,MAAAA,IAAI,CAACM,KAAL;AACAd,MAAAA,UAAU,IAAIA,UAAU,EAAxB;AACH;AACJ,GAdQ,EAcN,CAACD,QAAD,EAAWF,IAAX,EAAiBC,QAAjB,EAA2BE,UAA3B,CAdM,CAAT;AAeH","sourcesContent":["import { useEffect } from 'react';\r\n/**\r\n * Saves image from renderer when requested.\r\n * @param save Indicates if the renderer should be used to save an image.\r\n * @param settings Image settings to apply to download.\r\n * @param renderer Instantiated renderer.\r\n * @param onComplete Callback that fires when save is complete.\r\n */\r\nexport function useSaveImage(save, settings, renderer, onComplete) {\r\n useEffect(() => {\r\n if (renderer && save) {\r\n // need to force resize on the renderer directly\r\n renderer.resize(settings.size, settings.size);\r\n renderer.makeDirty();\r\n renderer.render();\r\n const { view } = renderer;\r\n const data = view.toDataURL('image/png', 1);\r\n const link = document.createElement('a');\r\n link.download = settings.filename;\r\n link.href = data;\r\n link.click();\r\n onComplete && onComplete();\r\n }\r\n }, [renderer, save, settings, onComplete]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f64cb6b007e91718c377ebc2513837ed.json b/node_modules/.cache/cache-loader/f64cb6b007e91718c377ebc2513837ed.json deleted file mode 100644 index f99ad18..0000000 --- a/node_modules/.cache/cache-loader/f64cb6b007e91718c377ebc2513837ed.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\hooks\\graph\\colors.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\hooks\\graph\\colors.ts","mtime":1631029334857},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgdXNlVGhlbWF0aWNDb2xvclNjYWxlIH0gZnJvbSAnLi9zY2FsZXMnOwppbXBvcnQgeyB0b0dyYXBoQ29sb3IgfSBmcm9tICdAZ3Jhc3BvbG9naWMvZ3JhcGgnOwppbXBvcnQgeyBDb2xvciB9IGZyb20gJ0B0aGVtYXRpYy9jb2xvcic7CmltcG9ydCB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Bjb2xvckNhY2hlLnNldCh2YWx1ZSwgY29sb3IpOwogICAgfQoKICAgIHJldHVybiBjb2xvcjsKICB9LCBbZW5jb2RpbmcsIGNvbG9yU2NhbGUsIGNvbG9yQ2FjaGVdKTsKfQ=="},{"version":3,"sources":["C:/ws/graph-drill/src/hooks/graph/colors.ts"],"names":["useThematicColorScale","toGraphColor","Color","SelectionState","useThematic","useCallback","useMemo","useBackgroundColor","alpha","theme","plotArea","fill","rgbav","useHiddenColor","useHoveredNodeColor","application","error","useSelectedNodeColor","node","useSuppresedNodeColor","selectionState","NoData","useMiniMapNodeColor","useAOIBoundsColor","rule","stroke","hex","COLOR_NONE","useDataBoundColorScale","encoding","colorScale","colorCache","Map","item","field","value","get","color","set"],"mappings":"AAAA,SAASA,qBAAT,QAAsC,UAAtC;AACA,SAASC,YAAT,QAA6B,oBAA7B;AACA,SAASC,KAAT,QAAsB,iBAAtB;AACA,SAASC,cAAT,QAA+B,gBAA/B;AACA,SAASC,WAAT,QAA4B,iBAA5B;AACA,SAASC,WAAT,EAAsBC,OAAtB,QAAqC,OAArC;AACA,OAAO,SAASC,kBAAT,CAA4BC,KAAK,GAAG,GAApC,EAAyC;AAC5C,QAAMC,KAAK,GAAGL,WAAW,EAAzB;AACA,SAAOE,OAAO,CAAC,MAAMG,KAAK,CAACC,QAAN,GAAiBC,IAAjB,GAAwBC,KAAxB,CAA8BJ,KAA9B,CAAP,EAA6C,CAACC,KAAD,EAAQD,KAAR,CAA7C,CAAd;AACH,C,CACD;;AACA,OAAO,SAASK,cAAT,GAA0B;AAC7B,SAAOP,OAAO,CAAC,MAAM,CAAP,EAAU,EAAV,CAAd;AACH;AACD,OAAO,SAASQ,mBAAT,GAA+B;AAClC,QAAML,KAAK,GAAGL,WAAW,EAAzB;AACA,SAAOE,OAAO,CAAC,MAAMG,KAAK,CAACM,WAAN,GAAoBC,KAApB,GAA4BJ,KAA5B,EAAP,EAA4C,CAACH,KAAD,CAA5C,CAAd;AACH;AACD,OAAO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AAU,CAACK,GAAX,CAAeD,KAAf,CAAZ;;AACA,QAAIE,KAAK,IAAI,IAAb,EAAmB;AACfA,MAAAA,KAAK,GAAGP,UAAU,CAACK,KAAD,CAAlB;AACAJ,MAAAA,UAAU,CAACO,GAAX,CAAeH,KAAf,EAAsBE,KAAtB;AACH;;AACD,WAAOA,KAAP;AACH,GAXiB,EAWf,CAACR,QAAD,EAAWC,UAAX,EAAuBC,UAAvB,CAXe,CAAlB;AAYH","sourcesContent":["import { useThematicColorScale } from './scales';\r\nimport { toGraphColor } from '@graspologic/graph';\r\nimport { Color } from '@thematic/color';\r\nimport { SelectionState } from '@thematic/core';\r\nimport { useThematic } from '@thematic/react';\r\nimport { useCallback, useMemo } from 'react';\r\nexport function useBackgroundColor(alpha = 1.0) {\r\n const theme = useThematic();\r\n return useMemo(() => theme.plotArea().fill().rgbav(alpha), [theme, alpha]);\r\n}\r\n// sometimes we need an explicitly hidden color on the graph, so alpha == 0\r\nexport function useHiddenColor() {\r\n return useMemo(() => 0, []);\r\n}\r\nexport function useHoveredNodeColor() {\r\n const theme = useThematic();\r\n return useMemo(() => theme.application().error().rgbav(), [theme]);\r\n}\r\nexport function useSelectedNodeColor() {\r\n const theme = useThematic();\r\n return useMemo(() => theme.node().fill().rgbav(), [theme]);\r\n}\r\nexport function useSuppresedNodeColor() {\r\n const theme = useThematic();\r\n return useMemo(() => toGraphColor(theme.node({ selectionState: SelectionState.NoData }).fill().rgbav()), [theme]);\r\n}\r\nexport function useMiniMapNodeColor() {\r\n return useSuppresedNodeColor();\r\n}\r\nexport function useAOIBoundsColor() {\r\n const theme = useThematic();\r\n return useMemo(() => theme.rule().stroke().hex(), [theme]);\r\n}\r\nconst COLOR_NONE = new Color('none');\r\nexport function useDataBoundColorScale(encoding) {\r\n const colorScale = useThematicColorScale(encoding);\r\n // eslint-disable-next-line\r\n const colorCache = useMemo(() => new Map(), [encoding]);\r\n return useCallback((item) => {\r\n if (!item || !encoding.field) {\r\n return COLOR_NONE;\r\n }\r\n const value = item.get(encoding.field);\r\n let color = colorCache.get(value);\r\n if (color == null) {\r\n color = colorScale(value);\r\n colorCache.set(value, color);\r\n }\r\n return color;\r\n }, [encoding, colorScale, colorCache]);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/f9a4bca8a415cb061b036cc6c5cd355e.json b/node_modules/.cache/cache-loader/f9a4bca8a415cb061b036cc6c5cd355e.json deleted file mode 100644 index 1cadcbc..0000000 --- a/node_modules/.cache/cache-loader/f9a4bca8a415cb061b036cc6c5cd355e.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\arquero\\communities.ts","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\arquero\\communities.ts","mtime":1631029334668},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"cont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5pdHk7CiAgcmV0dXJuIG5ldyBOb2RlQ29sbGVjdGlvbih0YmwsIGluZGljZXMpOwp9Ci8qKg0KICogRmluZCBhbGwgb2YgdGhlIG5vZGUgcm93cyBmb3IgY29tbXVuaXRpZXMgdGhhdCBzaGFyZSBhIHBhcmVudC4NCiAqIEBwYXJhbSBwaWQNCiAqIEBwYXJhbSBieVBhcmVudA0KICovCgpleHBvcnQgZnVuY3Rpb24gZmluZE5vZGVzVGFibGVGb3JQYXJlbnQocGlkLCBieVBhcmVudCkgewogIGNvbnN0IHBpZHggPSBmaW5kR3JvdXBJbmRpY2VzKGJ5UGFyZW50LCAnY29tbXVuaXR5LnBpZCcsIHBpZCk7CiAgcmV0dXJuIGJ5UGFyZW50LnJlaWZ5KHBpZHgpOwp9"},{"version":3,"sources":["C:/ws/graph-drill/src/arquero/communities.ts"],"names":["NodeCollection","findGroupIndices","table","findNodesTableForCommunity","cid","byParent","byCommunity","pidx","cidx","indices","tbl","reify","findNodesCollectionForCommunity","findNodesTableForParent","pid"],"mappings":"AAAA;AACA;AACA;AACA;AACA,SAASA,cAAT,QAA+B,mBAA/B;AACA,SAASC,gBAAT,QAAiC,SAAjC;AACA,SAASC,KAAT,QAAsB,SAAtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,0BAAT,CAAoCC,GAApC,EAAyCC,QAAzC,EAAmDC,WAAnD,EAAgE;AACnE,MAAI,CAACF,GAAL,EAAU;AACN,WAAOF,KAAK,EAAZ;AACH;;AACD,QAAMK,IAAI,GAAGN,gBAAgB,CAACI,QAAD,EAAW,eAAX,EAA4BD,GAA5B,CAA7B;AACA,QAAMI,IAAI,GAAGP,gBAAgB,CAACK,WAAD,EAAc,cAAd,EAA8BF,GAA9B,CAA7B;AACA,QAAMK,OAAO,GAAGF,IAAI,IAAIC,IAAxB;AACA,QAAME,GAAG,GAAGH,IAAI,GAAGF,QAAH,GAAcC,WAA9B;AACA,SAAOI,GAAG,CAACC,KAAJ,CAAUF,OAAV,CAAP;AACH,C,CACD;;AACA,OAAO,SAASG,+BAAT,CAAyCR,GAAzC,EAA8CC,QAA9C,EAAwDC,WAAxD,EAAqE;AACxE,MAAI,CAACF,GAAL,EAAU;AACN,WAAO,IAAIJ,cAAJ,EAAP;AACH;;AACD,QAAMO,IAAI,GAAGN,gBAAgB,CAACI,QAAD,EAAW,eAAX,EAA4BD,GAA5B,CAA7B;AACA,QAAMI,IAAI,GAAGP,gBAAgB,CAACK,WAAD,EAAc,cAAd,EAA8BF,GAA9B,CAA7B;AACA,QAAMK,OAAO,GAAGF,IAAI,IAAIC,IAAxB;AACA,QAAME,GAAG,GAAGH,IAAI,GAAGF,QAAH,GAAcC,WAA9B;AACA,SAAO,IAAIN,cAAJ,CAAmBU,GAAnB,EAAwBD,OAAxB,CAAP;AACH;AACD;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASI,uBAAT,CAAiCC,GAAjC,EAAsCT,QAAtC,EAAgD;AACnD,QAAME,IAAI,GAAGN,gBAAgB,CAACI,QAAD,EAAW,eAAX,EAA4BS,GAA5B,CAA7B;AACA,SAAOT,QAAQ,CAACM,KAAT,CAAeJ,IAAf,CAAP;AACH","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nimport { NodeCollection } from './TableCollection';\r\nimport { findGroupIndices } from './table';\r\nimport { table } from 'arquero';\r\n/**\r\n * Gets a table of just the nodes for a matching community.\r\n * The preferred outcome here is to use the grouped-by-parent table,\r\n * because this retains child community differentiability.\r\n * However, if the selected community is a leaf in the hierarchy,\r\n * it will have no child communities and therefore filtering by 'parent'\r\n * will not return it (because there are no rows with this cid as parent).\r\n * In this case, we use the grouped-by-community variant to get the nodes.\r\n * @param cid\r\n * @param byParent\r\n * @param byCommunity\r\n */\r\nexport function findNodesTableForCommunity(cid, byParent, byCommunity) {\r\n if (!cid) {\r\n return table();\r\n }\r\n const pidx = findGroupIndices(byParent, 'community.pid', cid);\r\n const cidx = findGroupIndices(byCommunity, 'community.id', cid);\r\n const indices = pidx || cidx;\r\n const tbl = pidx ? byParent : byCommunity;\r\n return tbl.reify(indices);\r\n}\r\n// this is duplicative of findNodesTableForCommunity, but retaining the indices allows us to avoid reify\r\nexport function findNodesCollectionForCommunity(cid, byParent, byCommunity) {\r\n if (!cid) {\r\n return new NodeCollection();\r\n }\r\n const pidx = findGroupIndices(byParent, 'community.pid', cid);\r\n const cidx = findGroupIndices(byCommunity, 'community.id', cid);\r\n const indices = pidx || cidx;\r\n const tbl = pidx ? byParent : byCommunity;\r\n return new NodeCollection(tbl, indices);\r\n}\r\n/**\r\n * Find all of the node rows for communities that share a parent.\r\n * @param pid\r\n * @param byParent\r\n */\r\nexport function findNodesTableForParent(pid, byParent) {\r\n const pidx = findGroupIndices(byParent, 'community.pid', pid);\r\n return byParent.reify(pidx);\r\n}\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/fac149d89add8f4008c791938644dae9.json b/node_modules/.cache/cache-loader/fac149d89add8f4008c791938644dae9.json deleted file mode 100644 index 845238b..0000000 --- a/node_modules/.cache/cache-loader/fac149d89add8f4008c791938644dae9.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\QuickDrop\\index.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\QuickDrop\\index.tsx","mtime":1620403249352},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:LyohDQogKiBDb3B5cmlnaHQgKGMpIE1pY3Jvc29mdC4gQWxsIHJpZ2h0cyByZXNlcnZlZC4NCiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS4gU2VlIExJQ0VOU0UgZmlsZSBpbiB0aGUgcHJvamVjdC4NCiAqLwpleHBvcnQgKiBmcm9tICcuL1F1aWNrRHJvcCc7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/QuickDrop/index.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,cAAc,aAAd","sourcesContent":["/*!\r\n * Copyright (c) Microsoft. All rights reserved.\r\n * Licensed under the MIT license. See LICENSE file in the project.\r\n */\r\nexport * from './QuickDrop';\r\n"]}]} \ No newline at end of file diff --git a/node_modules/.cache/cache-loader/fedfa5d38ab7ac2d0067c75a308e5b31.json b/node_modules/.cache/cache-loader/fedfa5d38ab7ac2d0067c75a308e5b31.json deleted file mode 100644 index f78b1b5..0000000 --- a/node_modules/.cache/cache-loader/fedfa5d38ab7ac2d0067c75a308e5b31.json +++ /dev/null @@ -1 +0,0 @@ -{"remainingRequest":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js??ruleSet[1].rules[0].use[1]!C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js??ruleSet[1].rules[0].use[2]!C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeListItem.tsx","dependencies":[{"path":"C:\\ws\\graph-drill\\src\\components\\App\\pages\\GraphViewerPage\\SidePanel\\PanelComponents\\NodeListItem.tsx","mtime":1631029334733},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\cache-loader-virtual-2fd14a2267\\0\\cache\\cache-loader-npm-4.1.0-82c3da90d8-0339778bdd.zip\\node_modules\\cache-loader\\dist\\cjs.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\babel-loader-virtual-fd8dd261de\\0\\cache\\babel-loader-npm-8.2.2-b4e600c2c5-df5092ef98.zip\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\ws\\graph-drill\\.yarn\\__virtual__\\ts-loader-virtual-aa0d54d245\\0\\cache\\ts-loader-npm-9.2.1-40e1a5908e-1f2e61905d.zip\\node_modules\\ts-loader\\index.js","mtime":456789000000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgU2VsZWN0aW9uU3RhdGUgfSBmcm9tICdAdGhlbWF0aWMvY29yZSc7CmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JzsKaW1wb3J0IHN0eWxlZCBmcm9tICdzdHlsZWQtY29tcG9uZW50cyc7CmV4cG9ydCBjb25zdCBOb2RlTGlzdEl0ZW0gPSAoewogIG5vZGVJZCwKICBvbkhvdmVyLAogIG9uQ2xpY2ssCiAgc2VsZWN0ZWQKfSkgPT4gewogIGNvb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jdGlvblN0YXRlLkhvdmVyZWQKfSkuZmlsbCgpLmhleCgpfSAhaW1wb3J0YW50YH07CgkJdXNlci1zZWxlY3Q6IG5vbmU7Cgl9CmA7"},{"version":3,"sources":["C:/ws/graph-drill/src/components/App/pages/GraphViewerPage/SidePanel/PanelComponents/NodeListItem.tsx"],"names":["SelectionState","React","useCallback","styled","NodeListItem","nodeId","onHover","onClick","selected","handleEnter","handleLeave","handleClick","createElement","Tr","onMouseEnter","onMouseLeave","key","tr","theme","text","fill","hex","rect","selectionState","Selected","Hovered"],"mappings":"AAAA,SAASA,cAAT,QAA+B,gBAA/B;AACA,OAAOC,KAAP,IAAgBC,WAAhB,QAAmC,OAAnC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAO,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA,MAAF;AAAUC,EAAAA,OAAV;AAAmBC,EAAAA,OAAnB;AAA4BC,EAAAA;AAA5B,CAAD,KAA6C;AACrE,QAAMC,WAAW,GAAGP,WAAW,CAAC,MAAMI,OAAO,CAACD,MAAD,CAAd,EAAwB,CAACA,MAAD,EAASC,OAAT,CAAxB,CAA/B;AACA,QAAMI,WAAW,GAAGR,WAAW,CAAC,MAAMI,OAAO,EAAd,EAAkB,CAACA,OAAD,CAAlB,CAA/B;AACA,QAAMK,WAAW,GAAGT,WAAW,CAAC,MAAMK,OAAO,CAACF,MAAD,CAAd,EAAwB,CAACE,OAAD,EAAUF,MAAV,CAAxB,CAA/B;AACA,SAAQJ,KAAK,CAACW,aAAN,CAAoBC,EAApB,EAAwB;AAAEN,IAAAA,OAAO,EAAEI,WAAX;AAAwBG,IAAAA,YAAY,EAAEL,WAAtC;AAAmDM,IAAAA,YAAY,EAAEL,WAAjE;AAA8EF,IAAAA,QAAQ,EAAEA,QAAxF;AAAkGQ,IAAAA,GAAG,EAAG,YAAWX,MAAO;AAA1H,GAAxB,EACJJ,KAAK,CAACW,aAAN,CAAoB,IAApB,EAA0B,IAA1B,EAAgCP,MAAhC,CADI,CAAR;AAEH,CANM;AAOP,MAAMQ,EAAE,GAAGV,MAAM,CAACc,EAAI;AACtB;AACA;AACA;AACA,UAAU,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAeA,KAAK,CAACC,IAAN,GAAaC,IAAb,GAAoBC,GAApB,EAA0B;AACnD,qBAAqB,CAAC;AAAEb,EAAAA,QAAF;AAAYU,EAAAA;AAAZ,CAAD,KAAyBV,QAAQ,GAC/C,GAAEU,KAAK,CACLI,IADA,CACK;AAAEC,EAAAA,cAAc,EAAEvB,cAAc,CAACwB;AAAjC,CADL,EAEAJ,IAFA,GAGAC,GAHA,EAGM,EAJuC,GAKhD,SAAU;AAChB;AACA,sBAAsB,CAAC;AAAEH,EAAAA;AAAF,CAAD,KAAgB,GAAEA,KAAK,CACxCI,IADmC,CAC9B;AAAEC,EAAAA,cAAc,EAAEvB,cAAc,CAACyB;AAAjC,CAD8B,EAEnCL,IAFmC,GAGnCC,GAHmC,EAG7B,aAAa;AACxB;AACA;AACA,CAlBA","sourcesContent":["import { SelectionState } from '@thematic/core';\r\nimport React, { useCallback } from 'react';\r\nimport styled from 'styled-components';\r\nexport const NodeListItem = ({ nodeId, onHover, onClick, selected, }) => {\r\n const handleEnter = useCallback(() => onHover(nodeId), [nodeId, onHover]);\r\n const handleLeave = useCallback(() => onHover(), [onHover]);\r\n const handleClick = useCallback(() => onClick(nodeId), [onClick, nodeId]);\r\n return (React.createElement(Tr, { onClick: handleClick, onMouseEnter: handleEnter, onMouseLeave: handleLeave, selected: selected, key: `node-row-${nodeId}` },\r\n React.createElement(\"td\", null, nodeId)));\r\n};\r\nconst Tr = styled.tr `\r\n\tdisplay: table;\r\n\twidth: 100%;\r\n\tcursor: pointer;\r\n\tcolor: ${({ theme }) => theme.text().fill().hex()};\r\n\tbackground-color: ${({ selected, theme }) => selected\r\n ? `${theme\r\n .rect({ selectionState: SelectionState.Selected })\r\n .fill()\r\n .hex()}`\r\n : 'inherit'};\r\n\t&&:hover {\r\n\t\tbackground-color: ${({ theme }) => `${theme\r\n .rect({ selectionState: SelectionState.Hovered })\r\n .fill()\r\n .hex()} !important`};\r\n\t\tuser-select: none;\r\n\t}\r\n`;\r\n"]}]} \ No newline at end of file