diff --git a/dist/BarChart.5f4d3c70.js b/dist/BarChart.5f4d3c70.js index 9ca10ce..36d49e6 100644 --- a/dist/BarChart.5f4d3c70.js +++ b/dist/BarChart.5f4d3c70.js @@ -128,9 +128,9 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _tooltip = _interopRequireDefault(require("../../partials/tooltip")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var transformList = function transformList(data, f) { var map = new Map(); data.forEach(function (d) { @@ -380,7 +380,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/BarChart.5f4d3c70.js.map b/dist/BarChart.5f4d3c70.js.map index 65ef90d..b366243 100644 --- a/dist/BarChart.5f4d3c70.js.map +++ b/dist/BarChart.5f4d3c70.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/BarChart.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","collator","Intl","Collator","numeric","sensitivity","collSort","b","compare","nest","sortKeys","rollup","v","entries","wrap","text","width","each","updateBars","currentText","select","words","split","reverse","word","line","lineNumber","lineHeight","y","attr","dy","parseFloat","tspan","append","concat","pop","push","join","node","getComputedTextLength","BarChart","props","margin","top","right","bottom","left","fields","x","fullData","self","useRef","scaleRef","hightRef","viewerRef","createXScale","xScale","scaleBand","domain","flat","range","padding","createYScale","height","yScale","scaleLinear","max","createLogYScale","scaleLog","formatTick","toLocaleString","drawBar","selection","className","addLabel","offset","tooltipHandlers","createTooltip","current","selectAll","enterBars","enter","bandwidth","on","mousemove","mouseleave","currentData","_props$fields","selected","filter","id","title","operation","values","filterAdded","merge","transition","duration","exit","remove","useEffect","setTimeout","rect","getBoundingClientRect","innerWidth","innerHeight","svg","yTickCount","logScale","xAxis","axisBottom","yAxis","axisLeft","tickSize","tickFormat","tickValues","ticks","layout","filters","filterData","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC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OJ,MAAM,CAACgE,KAAK,CAAChH,EAAE,CAAC;EACvBgD,MAAM,CAAChD,EAAE,CAAC;EAEV+G,MAAM,GAAG/D,MAAM,CAACgE,KAAK,CAAChH,EAAE,CAAC;EACzB,IAAI+G,MAAM,IAAIA,MAAM,CAAC5D,GAAG,IAAI4D,MAAM,CAAC5D,GAAG,CAACE,gBAAgB,CAAChJ,MAAM,EAAE;IAC9D0M,MAAM,CAAC5D,GAAG,CAACE,gBAAgB,CAAC5J,OAAO,CAAC,UAAUyN,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"BarChart.5f4d3c70.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n function collSort(a,b){\n return collator.compare(b,a);\n }\n return d3.nest().key((d) => d[field])\n .sortKeys(collSort)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nconst wrap = (text, width) => {\n text.each(function updateBars() {\n const currentText = d3.select(this);\n const words = currentText.text().split(/\\s+/).reverse();\n let word;\n let line = [];\n let lineNumber = 0;\n const lineHeight = 1.1; // ems\n const y = currentText.attr('y');\n const dy = parseFloat(currentText.attr('dy'));\n let tspan = currentText\n .text(null)\n .append('tspan')\n .attr('x', 0)\n .attr('y', y)\n .attr('dy', `${dy}em`);\n word = words.pop();\n while (word) {\n line.push(word);\n tspan.text(line.join(' '));\n if (tspan.node().getComputedTextLength() > width) {\n line.pop();\n tspan.text(line.join(' '));\n line = [word];\n tspan = currentText\n .append('tspan')\n .attr('x', 0)\n .attr('y', y)\n .attr('dy', `${++lineNumber * lineHeight + dy}em`)\n .text(word);\n }\n word = words.pop();\n }\n });\n};\n\nfunction BarChart(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n const fields = { x: 'key', y: 'value' };\n const fullData = transform(props.data, props.fields.x, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const createXScale = (f, width) => {\n // set the ranges\n const xScale = d3\n .scaleBand()\n .domain(fullData.map((d) => d[f]).flat())\n .range([0, width])\n .padding(0.1);\n return xScale;\n };\n\n const createYScale = (f, height) => {\n const yScale = d3\n .scaleLinear()\n .domain([0, d3.max(fullData, (d) => d[f])])\n .range([height, 0]);\n return yScale;\n };\n\n const createLogYScale = (f, height) => {\n const yScale = d3\n .scaleLog()\n .domain([1, d3.max(fullData, (d) => d[f])])\n .range([height, 0]);\n return yScale;\n };\n\n const formatTick = (d) => d.toLocaleString();\n\n const drawBar = (selection, data, className = 'og') => {\n const addLabel = (d) => `${d.key}: ${d.value}`;\n const offset = {\n x: 60,\n y: 0,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n const updateBars = selection.selectAll(`rect.${className}`).data(data, (d) => d[fields.x]);\n\n const enterBars = updateBars.enter().append('rect');\n enterBars\n .attr('class', `${className}`)\n .attr('x', (d) => scaleRef.current.x(d[fields.x]))\n .attr('width', scaleRef.current.x.bandwidth())\n .attr('y', hightRef.current);\n enterBars\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (currentData) => {\n const selected = enterBars.filter((d) => d === currentData);\n const value = selected.data()[0].key;\n const filter = props?.fields?.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n });\n\n updateBars\n .merge(enterBars)\n .transition()\n .duration(1000)\n .attr('y', (d) => scaleRef.current.y(d[fields.y]))\n .attr('height', (d) => hightRef.current - scaleRef.current.y(d[fields.y]));\n\n // update_bars\n updateBars\n .exit()\n .transition()\n .duration(1000)\n .attr('y', hightRef.current)\n .attr('height', 0)\n .remove();\n\n return updateBars;\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n hightRef.current = innerHeight;\n\n // create svg\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n viewerRef.current = svg\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n const xScale = createXScale(fields.x, innerWidth);\n let yTickCount = 4;\n let yScale = createYScale(fields.y, innerHeight);\n if (props.logScale){\n yScale = createLogYScale(fields.y, innerHeight);\n yTickCount = 2;\n }\n scaleRef.current = { x: xScale, y: yScale };\n\n const xAxis = d3.axisBottom(xScale);\n viewerRef.current\n .append('g')\n .attr('class', 'x axis')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(xAxis)\n .selectAll('.tick text')\n .call(wrap, xScale.bandwidth());\n\n // add the y Axis\n const yAxis = d3.axisLeft(yScale).tickSize(-innerWidth).tickFormat(formatTick).tickValues(yScale.ticks(yTickCount));\n viewerRef.current.append('g').call(yAxis);\n\n drawBar(viewerRef.current, fullData, 'og');\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.x, props.fields.isList);\n } else {\n data = fullData;\n }\n drawBar(viewerRef.current, data, 'ft');\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default BarChart;\n\nBarChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n logScale: PropTypes.bool,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/BarChart.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","collator","Intl","Collator","numeric","sensitivity","collSort","b","compare","nest","sortKeys","rollup","v","entries","wrap","text","width","each","updateBars","currentText","select","words","split","reverse","word","line","lineNumber","lineHeight","y","attr","dy","parseFloat","tspan","append","concat","pop","push","join","node","getComputedTextLength","BarChart","props","margin","top","right","bottom","left","fields","x","fullData","self","useRef","scaleRef","hightRef","viewerRef","createXScale","xScale","scaleBand","domain","flat","range","padding","createYScale","height","yScale","scaleLinear","max","createLogYScale","scaleLog","formatTick","toLocaleString","drawBar","selection","className","addLabel","offset","tooltipHandlers","createTooltip","current","selectAll","enterBars","enter","bandwidth","on","mousemove","mouseleave","currentData","_props$fields","selected","filter","id","title","operation","values","filterAdded","merge","transition","duration","exit","remove","useEffect","setTimeout","rect","getBoundingClientRect","innerWidth","innerHeight","svg","yTickCount","logScale","xAxis","axisBottom","yAxis","axisLeft","tickSize","tickFormat","tickValues","ticks","layout","filters","filterData","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAA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AAC,CAAC,CAACC,UAAU;EAC7DX,OAAO,EAAEQ,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC1DnC,WAAW,EAAEgC,kBAAS,CAACM,IAAI,CAACH,UAAU;EACtCrB,QAAQ,EAAEkB,kBAAS,CAACK,IAAI;EACxBd,MAAM,EAAES,kBAAS,CAACE,KAAK,CAAC;IACtBhH,KAAK,EAAE8G,kBAAS,CAACO,MAAM,CAACJ,UAAU;IAClCK,WAAW,EAAER,kBAAS,CAACO,MAAM,CAACJ;EAChC,CAAC,CAAC,CAACA;AACL,CAAC","file":"BarChart.5f4d3c70.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n function collSort(a,b){\n return collator.compare(b,a);\n }\n return d3.nest().key((d) => d[field])\n .sortKeys(collSort)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nconst wrap = (text, width) => {\n text.each(function updateBars() {\n const currentText = d3.select(this);\n const words = currentText.text().split(/\\s+/).reverse();\n let word;\n let line = [];\n let lineNumber = 0;\n const lineHeight = 1.1; // ems\n const y = currentText.attr('y');\n const dy = parseFloat(currentText.attr('dy'));\n let tspan = currentText\n .text(null)\n .append('tspan')\n .attr('x', 0)\n .attr('y', y)\n .attr('dy', `${dy}em`);\n word = words.pop();\n while (word) {\n line.push(word);\n tspan.text(line.join(' '));\n if (tspan.node().getComputedTextLength() > width) {\n line.pop();\n tspan.text(line.join(' '));\n line = [word];\n tspan = currentText\n .append('tspan')\n .attr('x', 0)\n .attr('y', y)\n .attr('dy', `${++lineNumber * lineHeight + dy}em`)\n .text(word);\n }\n word = words.pop();\n }\n });\n};\n\nfunction BarChart(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n const fields = { x: 'key', y: 'value' };\n const fullData = transform(props.data, props.fields.x, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const createXScale = (f, width) => {\n // set the ranges\n const xScale = d3\n .scaleBand()\n .domain(fullData.map((d) => d[f]).flat())\n .range([0, width])\n .padding(0.1);\n return xScale;\n };\n\n const createYScale = (f, height) => {\n const yScale = d3\n .scaleLinear()\n .domain([0, d3.max(fullData, (d) => d[f])])\n .range([height, 0]);\n return yScale;\n };\n\n const createLogYScale = (f, height) => {\n const yScale = d3\n .scaleLog()\n .domain([1, d3.max(fullData, (d) => d[f])])\n .range([height, 0]);\n return yScale;\n };\n\n const formatTick = (d) => d.toLocaleString();\n\n const drawBar = (selection, data, className = 'og') => {\n const addLabel = (d) => `${d.key}: ${d.value}`;\n const offset = {\n x: 60,\n y: 0,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n const updateBars = selection.selectAll(`rect.${className}`).data(data, (d) => d[fields.x]);\n\n const enterBars = updateBars.enter().append('rect');\n enterBars\n .attr('class', `${className}`)\n .attr('x', (d) => scaleRef.current.x(d[fields.x]))\n .attr('width', scaleRef.current.x.bandwidth())\n .attr('y', hightRef.current);\n enterBars\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (currentData) => {\n const selected = enterBars.filter((d) => d === currentData);\n const value = selected.data()[0].key;\n const filter = props?.fields?.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n });\n\n updateBars\n .merge(enterBars)\n .transition()\n .duration(1000)\n .attr('y', (d) => scaleRef.current.y(d[fields.y]))\n .attr('height', (d) => hightRef.current - scaleRef.current.y(d[fields.y]));\n\n // update_bars\n updateBars\n .exit()\n .transition()\n .duration(1000)\n .attr('y', hightRef.current)\n .attr('height', 0)\n .remove();\n\n return updateBars;\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n hightRef.current = innerHeight;\n\n // create svg\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n viewerRef.current = svg\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n const xScale = createXScale(fields.x, innerWidth);\n let yTickCount = 4;\n let yScale = createYScale(fields.y, innerHeight);\n if (props.logScale){\n yScale = createLogYScale(fields.y, innerHeight);\n yTickCount = 2;\n }\n scaleRef.current = { x: xScale, y: yScale };\n\n const xAxis = d3.axisBottom(xScale);\n viewerRef.current\n .append('g')\n .attr('class', 'x axis')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(xAxis)\n .selectAll('.tick text')\n .call(wrap, xScale.bandwidth());\n\n // add the y Axis\n const yAxis = d3.axisLeft(yScale).tickSize(-innerWidth).tickFormat(formatTick).tickValues(yScale.ticks(yTickCount));\n viewerRef.current.append('g').call(yAxis);\n\n drawBar(viewerRef.current, fullData, 'og');\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.x, props.fields.isList);\n } else {\n data = fullData;\n }\n drawBar(viewerRef.current, data, 'ft');\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default BarChart;\n\nBarChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n logScale: PropTypes.bool,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/DensityChart.25818996.js b/dist/DensityChart.25818996.js index 1369d2f..ded91fb 100644 --- a/dist/DensityChart.25818996.js +++ b/dist/DensityChart.25818996.js @@ -128,9 +128,9 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _utils = require("../../../common/utils"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function DensityChart(props) { var startPosition = [0, 0]; var endPosition = [0, 0]; @@ -291,7 +291,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/DensityChart.25818996.js.map b/dist/DensityChart.25818996.js.map index a37204b..af23f05 100644 --- a/dist/DensityChart.25818996.js.map +++ b/dist/DensityChart.25818996.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/DensityChart.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DensityChart","props","startPosition","endPosition","self","useRef","svg","scales","x","scaleLinear","y","margin","top","right","bottom","left","end","event","selection","_ref","Math","min","x0","y0","_ref2","max","x1","y1","filters","id","concat","title","field","fields","operation","values","numFixed","current","invert","filterAdded","useEffect","setTimeout","select","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","append","attr","paddingPercent","domainExtentX","extent","data","d","domainPaddingX","domainExtentY","domainPaddingY","domain","range","axisBottom","axisLeft","getCurrentMouseClickPosition","rec","node","mouseX","sourceEvent","clientX","mouseY","clientY","brush","on","startX","startY","selectArea","abs","selectedArea","layout","length","filterData","k","pow","round","log10","color","densityData","contourDensity","size","bandwidth","insert","enter","geoPath","value","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","number","currentCols","func","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","forEach","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","dep","Array","isArray","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,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J,MAAM,CAACmE,KAAK,CAACvJ,EAAE,CAAC;EACvBoF,MAAM,CAACpF,EAAE,CAAC;EAEVsJ,MAAM,GAAGlE,MAAM,CAACmE,KAAK,CAACvJ,EAAE,CAAC;EACzB,IAAIsJ,MAAM,IAAIA,MAAM,CAAC/D,GAAG,IAAI+D,MAAM,CAAC/D,GAAG,CAACE,gBAAgB,CAACrC,MAAM,EAAE;IAC9DkG,MAAM,CAAC/D,GAAG,CAACE,gBAAgB,CAACqB,OAAO,CAAC,UAAU2C,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"DensityChart.25818996.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nfunction DensityChart(props) {\n let startPosition = [0, 0];\n let endPosition = [0, 0];\n const self = useRef();\n const svg = useRef();\n const scales = useRef({\n x: d3.scaleLinear(),\n y: d3.scaleLinear(),\n });\n const margin = {\n top: 10,\n right: 30,\n bottom: 20,\n left: 40,\n };\n\n const end = () => {\n if (!d3.event.selection) return;\n const [x0, y0] = [Math.min(startPosition[0], endPosition[0]),\n Math.min(startPosition[1], endPosition[1])];\n const [x1, y1] = [Math.max(startPosition[0], endPosition[0]),\n Math.max(startPosition[1], endPosition[1])];\n const filters = [\n {\n id: `${props.id}_x`,\n title: props.title,\n field: props.fields.x,\n operation: 'range',\n values: [numFixed(scales.current.x.invert(x0)), numFixed(scales.current.x.invert(x1))],\n },\n {\n id: `${props.id}_y`,\n title: props.title,\n field: props.fields.y,\n operation: 'range',\n values: [numFixed(scales.current.y.invert(y1)), numFixed(scales.current.y.invert(y0))],\n },\n ];\n props.filterAdded(filters);\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n svg.current = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n const paddingPercent = 0.1; // Adjust the percentage of padding as needed\n const domainExtentX = d3.extent(props.data, (d) => d[props.fields.x]);\n const domainPaddingX = (domainExtentX[1] - domainExtentX[0]) * paddingPercent;\n const domainExtentY = d3.extent(props.data, (d) => d[props.fields.y]);\n const domainPaddingY = (domainExtentY[1] - domainExtentY[0]) * paddingPercent;\n scales.current.x\n .domain([domainExtentX[0] - domainPaddingX,\n domainExtentX[1] + domainPaddingX])\n .range([0, innerWidth]);\n\n scales.current.y\n .domain([domainExtentY[0] - domainPaddingY,\n domainExtentY[1] + domainPaddingY])\n .range([innerHeight, 0]);\n\n svg.current\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(scales.current.x));\n svg.current.append('g').call(d3.axisLeft(scales.current.y));\n\n const getCurrentMouseClickPosition = () => {\n const rec = svg.current.select('.overlay').node();\n const mouseX = d3.event.sourceEvent.clientX - rec.getBoundingClientRect().x;\n const mouseY = d3.event.sourceEvent.clientY - rec.getBoundingClientRect().y;\n return [mouseX, mouseY];\n };\n\n const brush = d3\n .brush()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ]).on('start', () => {\n startPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selection').remove('rect');\n }).on('brush', () => {\n endPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selected-area').remove('.selected-area');\n svg.current.selectAll('.selection').remove('rect');\n const startX = Math.min(startPosition[0], endPosition[0]);\n const startY = Math.min(startPosition[1], endPosition[1]);\n const selectArea = svg.current.append('rect')\n .attr('class', 'selected-area')\n .attr('position', 'absolute')\n .attr('x', startX)\n .attr('y', startY)\n .attr('width', Math.abs(endPosition[0] - startPosition[0]))\n .attr('height', Math.abs(endPosition[1] - startPosition[1]))\n .attr('fill', 'rgba(130, 130, 130, 0.5)');\n })\n .on('end', () => {\n endPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selected-area').remove('.selected-area');\n svg.current.selectAll('.selection').remove('rect');\n const startX = Math.min(startPosition[0], endPosition[0]);\n const startY = Math.min(startPosition[1], endPosition[1]);\n const selectedArea = svg.current.append('rect')\n .attr('class', 'selected-area')\n .attr('position', 'absolute')\n .attr('x', startX)\n .attr('y', startY)\n .attr('width', Math.abs(endPosition[0] - startPosition[0]))\n .attr('height', Math.abs(endPosition[1] - startPosition[1]))\n .attr('fill', 'rgba(140, 140, 140, 0.5)');\n end();\n setTimeout(\n () => {\n selectedArea.remove();\n },\n 20,\n );\n });\n\n svg.current.append('g').call(brush);\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { data } = props;\n if (props.filters.length !== 0) data = props.filterData;\n\n const k = 10 ** (-4 + Math.round(Math.log10(data.length)));\n const color = d3.scaleLinear().domain([0, k]).range(['white', '#4682b4']);\n\n const densityData = d3\n .contourDensity()\n .x((d) => scales.current.x(d[props.fields.x]))\n .y((d) => scales.current.y(d[props.fields.y]))\n .size([innerWidth, innerHeight])\n .bandwidth(20)(data);\n\n svg.current.select('#draw_area').remove('g');\n svg.current\n .insert('g', 'g')\n .attr('id', 'draw_area')\n .selectAll('path')\n .data(densityData)\n .enter()\n .append('path')\n .attr('d', d3.geoPath())\n .attr('fill', (d) => color(d.value));\n }, 100);\n }, [props.layout, props.filters, props.filterData]);\n return
;\n}\n\nexport default DensityChart;\n\nDensityChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, y: PropTypes.string.isRequired })\n .isRequired,\n id: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n filterAdded: PropTypes.func.isRequired,\n title: PropTypes.string.isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/DensityChart.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DensityChart","props","startPosition","endPosition","self","useRef","svg","scales","x","scaleLinear","y","margin","top","right","bottom","left","end","event","selection","_ref","Math","min","x0","y0","_ref2","max","x1","y1","filters","id","concat","title","field","fields","operation","values","numFixed","current","invert","filterAdded","useEffect","setTimeout","select","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","append","attr","paddingPercent","domainExtentX","extent","data","d","domainPaddingX","domainExtentY","domainPaddingY","domain","range","axisBottom","axisLeft","getCurrentMouseClickPosition","rec","node","mouseX","sourceEvent","clientX","mouseY","clientY","brush","on","startX","startY","selectArea","abs","selectedArea","layout","length","filterData","k","pow","round","log10","color","densityData","contourDensity","size","bandwidth","insert","enter","geoPath","value","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","number","currentCols","func"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UA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CAAE,CAAC;AACnF;AAAC,IAAAiD,QAAA,GAAAC,OAAA,CAAAtH,OAAA,GAEckB,YAAY;AAE3BA,YAAY,CAACqG,SAAS,GAAG;EACvB7C,IAAI,EAAE8C,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACvDxE,MAAM,EAAEqE,kBAAS,CAACE,KAAK,CAAC;IAAEhG,CAAC,EAAE8F,kBAAS,CAACI,MAAM,CAACD,UAAU;IAAE/F,CAAC,EAAE4F,kBAAS,CAACI,MAAM,CAACD;EAAW,CAAC,CAAC,CACxFA,UAAU;EACb5E,EAAE,EAAEyE,kBAAS,CAACI,MAAM,CAACD,UAAU;EAC/BvB,UAAU,EAAEoB,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC7D7E,OAAO,EAAE0E,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC1DzB,MAAM,EAAEsB,kBAAS,CAACE,KAAK,CAAC;IACtBxD,KAAK,EAAEsD,kBAAS,CAACK,MAAM,CAACF,UAAU;IAClCG,WAAW,EAAEN,kBAAS,CAACK,MAAM,CAACF;EAChC,CAAC,CAAC,CAACA,UAAU;EACblE,WAAW,EAAE+D,kBAAS,CAACO,IAAI,CAACJ,UAAU;EACtC1E,KAAK,EAAEuE,kBAAS,CAACI,MAAM,CAACD;AAC1B,CAAC","file":"DensityChart.25818996.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nfunction DensityChart(props) {\n let startPosition = [0, 0];\n let endPosition = [0, 0];\n const self = useRef();\n const svg = useRef();\n const scales = useRef({\n x: d3.scaleLinear(),\n y: d3.scaleLinear(),\n });\n const margin = {\n top: 10,\n right: 30,\n bottom: 20,\n left: 40,\n };\n\n const end = () => {\n if (!d3.event.selection) return;\n const [x0, y0] = [Math.min(startPosition[0], endPosition[0]),\n Math.min(startPosition[1], endPosition[1])];\n const [x1, y1] = [Math.max(startPosition[0], endPosition[0]),\n Math.max(startPosition[1], endPosition[1])];\n const filters = [\n {\n id: `${props.id}_x`,\n title: props.title,\n field: props.fields.x,\n operation: 'range',\n values: [numFixed(scales.current.x.invert(x0)), numFixed(scales.current.x.invert(x1))],\n },\n {\n id: `${props.id}_y`,\n title: props.title,\n field: props.fields.y,\n operation: 'range',\n values: [numFixed(scales.current.y.invert(y1)), numFixed(scales.current.y.invert(y0))],\n },\n ];\n props.filterAdded(filters);\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n svg.current = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n const paddingPercent = 0.1; // Adjust the percentage of padding as needed\n const domainExtentX = d3.extent(props.data, (d) => d[props.fields.x]);\n const domainPaddingX = (domainExtentX[1] - domainExtentX[0]) * paddingPercent;\n const domainExtentY = d3.extent(props.data, (d) => d[props.fields.y]);\n const domainPaddingY = (domainExtentY[1] - domainExtentY[0]) * paddingPercent;\n scales.current.x\n .domain([domainExtentX[0] - domainPaddingX,\n domainExtentX[1] + domainPaddingX])\n .range([0, innerWidth]);\n\n scales.current.y\n .domain([domainExtentY[0] - domainPaddingY,\n domainExtentY[1] + domainPaddingY])\n .range([innerHeight, 0]);\n\n svg.current\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(scales.current.x));\n svg.current.append('g').call(d3.axisLeft(scales.current.y));\n\n const getCurrentMouseClickPosition = () => {\n const rec = svg.current.select('.overlay').node();\n const mouseX = d3.event.sourceEvent.clientX - rec.getBoundingClientRect().x;\n const mouseY = d3.event.sourceEvent.clientY - rec.getBoundingClientRect().y;\n return [mouseX, mouseY];\n };\n\n const brush = d3\n .brush()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ]).on('start', () => {\n startPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selection').remove('rect');\n }).on('brush', () => {\n endPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selected-area').remove('.selected-area');\n svg.current.selectAll('.selection').remove('rect');\n const startX = Math.min(startPosition[0], endPosition[0]);\n const startY = Math.min(startPosition[1], endPosition[1]);\n const selectArea = svg.current.append('rect')\n .attr('class', 'selected-area')\n .attr('position', 'absolute')\n .attr('x', startX)\n .attr('y', startY)\n .attr('width', Math.abs(endPosition[0] - startPosition[0]))\n .attr('height', Math.abs(endPosition[1] - startPosition[1]))\n .attr('fill', 'rgba(130, 130, 130, 0.5)');\n })\n .on('end', () => {\n endPosition = getCurrentMouseClickPosition();\n svg.current.selectAll('.selected-area').remove('.selected-area');\n svg.current.selectAll('.selection').remove('rect');\n const startX = Math.min(startPosition[0], endPosition[0]);\n const startY = Math.min(startPosition[1], endPosition[1]);\n const selectedArea = svg.current.append('rect')\n .attr('class', 'selected-area')\n .attr('position', 'absolute')\n .attr('x', startX)\n .attr('y', startY)\n .attr('width', Math.abs(endPosition[0] - startPosition[0]))\n .attr('height', Math.abs(endPosition[1] - startPosition[1]))\n .attr('fill', 'rgba(140, 140, 140, 0.5)');\n end();\n setTimeout(\n () => {\n selectedArea.remove();\n },\n 20,\n );\n });\n\n svg.current.append('g').call(brush);\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { data } = props;\n if (props.filters.length !== 0) data = props.filterData;\n\n const k = 10 ** (-4 + Math.round(Math.log10(data.length)));\n const color = d3.scaleLinear().domain([0, k]).range(['white', '#4682b4']);\n\n const densityData = d3\n .contourDensity()\n .x((d) => scales.current.x(d[props.fields.x]))\n .y((d) => scales.current.y(d[props.fields.y]))\n .size([innerWidth, innerHeight])\n .bandwidth(20)(data);\n\n svg.current.select('#draw_area').remove('g');\n svg.current\n .insert('g', 'g')\n .attr('id', 'draw_area')\n .selectAll('path')\n .data(densityData)\n .enter()\n .append('path')\n .attr('d', d3.geoPath())\n .attr('fill', (d) => color(d.value));\n }, 100);\n }, [props.layout, props.filters, props.filterData]);\n return
;\n}\n\nexport default DensityChart;\n\nDensityChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, y: PropTypes.string.isRequired })\n .isRequired,\n id: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n filterAdded: PropTypes.func.isRequired,\n title: PropTypes.string.isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/EnumList.6d2f70b1.js b/dist/EnumList.6d2f70b1.js index e6c876c..7127966 100644 --- a/dist/EnumList.6d2f70b1.js +++ b/dist/EnumList.6d2f70b1.js @@ -127,9 +127,9 @@ exports.default = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var d3 = _interopRequireWildcard(require("d3")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var transformList = function transformList(data, f) { var map = new Map(); data.forEach(function (d) { @@ -287,7 +287,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/EnumList.6d2f70b1.js.map b/dist/EnumList.6d2f70b1.js.map index 63554a3..71a4338 100644 --- a/dist/EnumList.6d2f70b1.js.map +++ b/dist/EnumList.6d2f70b1.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/EnumList.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","d3","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","nest","sortKeys","ascending","rollup","v","entries","EnumList","props","margin","top","right","bottom","left","fields","x","y","fullData","self","useRef","scaleRef","hightRef","viewerRef","addList","className","container","current","innerHTML","_data$find","filteredCount","find","item","listItem","document","createElement","id","innerText","listBadge","classList","add","style","appendChild","onclick","onSelect","padding","target","filter","title","operation","values","filterAdded","useEffect","setTimeout","filters","filterData","layout","ref","width","height","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols","_default","exports","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","body","getElementById","remove","stackTrace","getParents","modules","parents","k","dep","concat","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,EAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAAyB,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,Y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CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAAC+D,KAAK,CAACtG,EAAE,CAAC;EACvBuC,MAAM,CAACvC,EAAE,CAAC;EAEVqG,MAAM,GAAG9D,MAAM,CAAC+D,KAAK,CAACtG,EAAE,CAAC;EACzB,IAAIqG,MAAM,IAAIA,MAAM,CAAC3D,GAAG,IAAI2D,MAAM,CAAC3D,GAAG,CAACE,gBAAgB,CAAChF,MAAM,EAAE;IAC9DyI,MAAM,CAAC3D,GAAG,CAACE,gBAAgB,CAAC5F,OAAO,CAAC,UAAUwJ,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"EnumList.6d2f70b1.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport * as d3 from 'd3';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n return d3.nest().key((d) => d[field])\n .sortKeys(d3.ascending)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nfunction EnumList(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n const fields = { x: 'key', y: 'value' };\n const fullData = transform(props.data, props.fields.x, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const addList = (data, className = 'og') => {\n const container = self.current;\n container.innerHTML = ''; // Clear previous content\n fullData.forEach((d) => {\n const filteredCount = data.find(item => item.key === d.key)?.value || 0;\n let listItem = document.createElement('div');\n listItem.id = d.key;\n listItem.className = 'list-item';\n listItem.innerText = d.key;\n let listBadge = document.createElement(\"span\")\n listBadge.innerText = filteredCount + \"/\" + d.value;\n listBadge.classList.add('badge')\n listBadge.classList.add('badge-secondary')\n listBadge.style.margin = \"2px\";\n listItem.appendChild(listBadge);\n listItem.onclick = onSelect;\n listItem.style.padding = \"3px\";\n container.appendChild(listItem);\n });\n };\n \n\n // Handle checkbox selection\n const onSelect = (e) => {\n const value = e.target.id;\n const filter = props.fields.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n };\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.x, props.fields.isList);\n } else {\n data = fullData;\n }\n addList(data, 'ft');\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nEnumList.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n\nexport default EnumList;\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/EnumList.js"],"names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","d3","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","nest","sortKeys","ascending","rollup","v","entries","EnumList","props","margin","top","right","bottom","left","fields","x","y","fullData","self","useRef","scaleRef","hightRef","viewerRef","addList","className","container","current","innerHTML","_data$find","filteredCount","find","item","listItem","document","createElement","id","innerText","listBadge","classList","add","style","appendChild","onclick","onSelect","padding","target","filter","title","operation","values","filterAdded","useEffect","setTimeout","filters","filterData","layout","ref","width","height","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols","_default","exports"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,EAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAAyB,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAA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AC,CAAC,CAACC,UAAU;EAC1Db,WAAW,EAAEU,kBAAS,CAACM,IAAI,CAACH,UAAU;EACtCR,MAAM,EAAEK,kBAAS,CAACE,KAAK,CAAC;IACtBL,KAAK,EAAEG,kBAAS,CAACO,MAAM,CAACJ,UAAU;IAClCK,WAAW,EAAER,kBAAS,CAACO,MAAM,CAACJ;EAChC,CAAC,CAAC,CAACA;AACL,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAA1G,OAAA,GAEa2C,QAAQ","file":"EnumList.6d2f70b1.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport * as d3 from 'd3';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n return d3.nest().key((d) => d[field])\n .sortKeys(d3.ascending)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nfunction EnumList(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n const fields = { x: 'key', y: 'value' };\n const fullData = transform(props.data, props.fields.x, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const addList = (data, className = 'og') => {\n const container = self.current;\n container.innerHTML = ''; // Clear previous content\n fullData.forEach((d) => {\n const filteredCount = data.find(item => item.key === d.key)?.value || 0;\n let listItem = document.createElement('div');\n listItem.id = d.key;\n listItem.className = 'list-item';\n listItem.innerText = d.key;\n let listBadge = document.createElement(\"span\")\n listBadge.innerText = filteredCount + \"/\" + d.value;\n listBadge.classList.add('badge')\n listBadge.classList.add('badge-secondary')\n listBadge.style.margin = \"2px\";\n listItem.appendChild(listBadge);\n listItem.onclick = onSelect;\n listItem.style.padding = \"3px\";\n container.appendChild(listItem);\n });\n };\n \n\n // Handle checkbox selection\n const onSelect = (e) => {\n const value = e.target.id;\n const filter = props.fields.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n };\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.x, props.fields.isList);\n } else {\n data = fullData;\n }\n addList(data, 'ft');\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nEnumList.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n\nexport default EnumList;\n"]} \ No newline at end of file diff --git a/dist/Heatmap.9c081d3f.js b/dist/Heatmap.9c081d3f.js index e492c9b..b71df16 100644 --- a/dist/Heatmap.9c081d3f.js +++ b/dist/Heatmap.9c081d3f.js @@ -129,9 +129,9 @@ var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _utils = require("../../../common/utils"); var _tooltip = _interopRequireDefault(require("../../partials/tooltip")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function Heatmap(props) { var self = (0, _react.useRef)(); var scales = { @@ -284,7 +284,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/Heatmap.9c081d3f.js.map b/dist/Heatmap.9c081d3f.js.map index a1baece..bd5d62f 100644 --- a/dist/Heatmap.9c081d3f.js.map +++ b/dist/Heatmap.9c081d3f.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/Heatmap.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","_tooltip","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Heatmap","props","self","useRef","scales","x","scaleBand","y","color","scaleSequential","margin","top","right","bottom","left","myGroups","map","data","d","fields","keys","myVars","useEffect","setTimeout","select","current","remove","selectAll","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","filters","length","filterData","svg","append","attr","concat","range","domain","padding","style","axisBottom","tickSize","axisLeft","interpolator","interpolateInferno","extent","z","addLabel","numFixed","offset","tooltipHandlers","createTooltip","visData","forEach","g","v","currentData","filter","push","mean","enter","bandwidth","on","mousemove","mouseleave","id","title","field","operation","values","filterAdded","layout","createElement","ref","_default","exports","propTypes","PropTypes","string","isRequired","arrayOf","shape","number","currentCols","func","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Array","isArray","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA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IAAIwF,MAAM,GAAGjE,MAAM,CAACkE,KAAK,CAACzF,EAAE,CAAC;EAC7BuB,MAAM,CAACI,OAAO,GAAG,CAAC,CAAC;EACnB,IAAI6D,MAAM,EAAE;IACVA,MAAM,CAAC9D,GAAG,CAAC/E,IAAI,GAAG4E,MAAM,CAACI,OAAO;EAClC;EAEA,IAAI6D,MAAM,IAAIA,MAAM,CAAC9D,GAAG,IAAI8D,MAAM,CAAC9D,GAAG,CAACG,iBAAiB,CAAChE,MAAM,EAAE;IAC/D2H,MAAM,CAAC9D,GAAG,CAACG,iBAAiB,CAACzC,OAAO,CAAC,UAAUuG,EAAE,EAAE;MACjDA,EAAE,CAACpE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACkE,KAAK,CAACzF,EAAE,CAAC;EACvBuB,MAAM,CAACvB,EAAE,CAAC;EAEVwF,MAAM,GAAGjE,MAAM,CAACkE,KAAK,CAACzF,EAAE,CAAC;EACzB,IAAIwF,MAAM,IAAIA,MAAM,CAAC9D,GAAG,IAAI8D,MAAM,CAAC9D,GAAG,CAACE,gBAAgB,CAAC/D,MAAM,EAAE;IAC9D2H,MAAM,CAAC9D,GAAG,CAACE,gBAAgB,CAACxC,OAAO,CAAC,UAAUuG,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"Heatmap.9c081d3f.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\nimport createTooltip from '../../partials/tooltip';\n\nfunction Heatmap(props) {\n const self = useRef();\n const scales = {\n x: d3.scaleBand(),\n y: d3.scaleBand(),\n color: d3.scaleSequential(),\n };\n\n const margin = {\n top: 10,\n right: 10,\n bottom: 30,\n left: 60,\n };\n\n const myGroups = d3.map(props.data, (d) => d[props.fields.x]).keys();\n const myVars = d3.map(props.data, (d) => d[props.fields.y]).keys();\n\n useEffect(() => {\n setTimeout(() => {\n // Remove old svg if any\n d3.select(self.current).select('.tooltip').remove('div');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { data } = props;\n if (props.filters.length !== 0) data = props.filterData;\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n // Create and draw x-axis\n scales.x.range([0, innerWidth]).domain(myGroups).padding(0.05);\n svg\n .append('g')\n .style('font-size', 13)\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(scales.x).tickSize(0))\n .select('.domain')\n .remove();\n\n // Create and draw y-axis\n scales.y.range([innerHeight, 0]).domain(myVars).padding(0.05);\n svg\n .append('g')\n .style('font-size', 13)\n .call(d3.axisLeft(scales.y).tickSize(0))\n .select('.domain')\n .remove();\n\n // Create color scale\n scales.color\n .interpolator(d3.interpolateInferno)\n .domain(d3.extent(props.data, (d) => d[props.fields.z]));\n\n // create a tooltip\n const addLabel = (d) => `The ${props.fields.z} of this \n cell is: ${numFixed(d.z ? d.z : 0)}`;\n const offset = {\n x: 80,\n y: 0,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n\n // Group data by the values of x and y\n // then aggregate to one value using mean\n // @TODO add option to choose different function such as: count, max, ..\n const visData = [];\n myGroups.forEach((g) => myVars.forEach((v) => {\n const currentData = data.filter(\n (d) => d[props.fields.x] === g && d[props.fields.y] === v,\n );\n visData.push({\n g,\n v,\n z: d3.mean(currentData, (d) => d[props.fields.z]),\n });\n }));\n\n // Draw each cell\n svg\n .selectAll()\n .data(visData, (d) => `${d.g}:${d.v}`)\n .enter()\n .append('rect')\n .attr('x', (d) => scales.x(d.g))\n .attr('y', (d) => scales.y(d.v))\n .attr('rx', 4)\n .attr('ry', 4)\n .attr('width', scales.x.bandwidth())\n .attr('height', scales.y.bandwidth())\n .style('fill', (d) => scales.color(d.z))\n .style('stroke-width', 4)\n .style('stroke', 'none')\n .style('opacity', 0.8)\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (d) => {\n const filters = [\n {\n id: `${props.id}_x`,\n title: props.title,\n field: props.fields.x,\n operation: 'in',\n values: [d.g],\n },\n {\n id: `${props.id}_y`,\n title: props.title,\n field: props.fields.y,\n operation: 'in',\n values: [d.v],\n },\n ];\n props.filterAdded(filters);\n });\n }, 100);\n }, [props.layout, props.filters, props.filterData]);\n\n return
;\n}\n\nexport default Heatmap;\n\nHeatmap.propTypes = {\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n x: PropTypes.string.isRequired,\n y: PropTypes.string.isRequired,\n z: PropTypes.string.isRequired,\n }).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n filterAdded: PropTypes.func.isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/Heatmap.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","_tooltip","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Heatmap","props","self","useRef","scales","x","scaleBand","y","color","scaleSequential","margin","top","right","bottom","left","myGroups","map","data","d","fields","keys","myVars","useEffect","setTimeout","select","current","remove","selectAll","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","filters","length","filterData","svg","append","attr","concat","range","domain","padding","style","axisBottom","tickSize","axisLeft","interpolator","interpolateInferno","extent","z","addLabel","numFixed","offset","tooltipHandlers","createTooltip","visData","forEach","g","v","currentData","filter","push","mean","enter","bandwidth","on","mousemove","mouseleave","id","title","field","operation","values","filterAdded","layout","createElement","ref","_default","exports","propTypes","PropTypes","string","isRequired","arrayOf","shape","number","currentCols","func"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAF,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,G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AAU;EACbhD,UAAU,EAAE8C,kBAAS,CAACG,OAAO,CAACH,kBAAS,CAACI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACF,UAAU;EAC7DlD,OAAO,EAAEgD,kBAAS,CAACG,OAAO,CAACH,kBAAS,CAACI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACF,UAAU;EAC1DR,MAAM,EAAEM,kBAAS,CAACI,KAAK,CAAC;IACtBvD,KAAK,EAAEmD,kBAAS,CAACK,MAAM,CAACH,UAAU;IAClCI,WAAW,EAAEN,kBAAS,CAACK,MAAM,CAACH;EAChC,CAAC,CAAC,CAACA,UAAU;EACbT,WAAW,EAAEO,kBAAS,CAACO,IAAI,CAACL;AAC9B,CAAC","file":"Heatmap.9c081d3f.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\nimport createTooltip from '../../partials/tooltip';\n\nfunction Heatmap(props) {\n const self = useRef();\n const scales = {\n x: d3.scaleBand(),\n y: d3.scaleBand(),\n color: d3.scaleSequential(),\n };\n\n const margin = {\n top: 10,\n right: 10,\n bottom: 30,\n left: 60,\n };\n\n const myGroups = d3.map(props.data, (d) => d[props.fields.x]).keys();\n const myVars = d3.map(props.data, (d) => d[props.fields.y]).keys();\n\n useEffect(() => {\n setTimeout(() => {\n // Remove old svg if any\n d3.select(self.current).select('.tooltip').remove('div');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { data } = props;\n if (props.filters.length !== 0) data = props.filterData;\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n // Create and draw x-axis\n scales.x.range([0, innerWidth]).domain(myGroups).padding(0.05);\n svg\n .append('g')\n .style('font-size', 13)\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(scales.x).tickSize(0))\n .select('.domain')\n .remove();\n\n // Create and draw y-axis\n scales.y.range([innerHeight, 0]).domain(myVars).padding(0.05);\n svg\n .append('g')\n .style('font-size', 13)\n .call(d3.axisLeft(scales.y).tickSize(0))\n .select('.domain')\n .remove();\n\n // Create color scale\n scales.color\n .interpolator(d3.interpolateInferno)\n .domain(d3.extent(props.data, (d) => d[props.fields.z]));\n\n // create a tooltip\n const addLabel = (d) => `The ${props.fields.z} of this \n cell is: ${numFixed(d.z ? d.z : 0)}`;\n const offset = {\n x: 80,\n y: 0,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n\n // Group data by the values of x and y\n // then aggregate to one value using mean\n // @TODO add option to choose different function such as: count, max, ..\n const visData = [];\n myGroups.forEach((g) => myVars.forEach((v) => {\n const currentData = data.filter(\n (d) => d[props.fields.x] === g && d[props.fields.y] === v,\n );\n visData.push({\n g,\n v,\n z: d3.mean(currentData, (d) => d[props.fields.z]),\n });\n }));\n\n // Draw each cell\n svg\n .selectAll()\n .data(visData, (d) => `${d.g}:${d.v}`)\n .enter()\n .append('rect')\n .attr('x', (d) => scales.x(d.g))\n .attr('y', (d) => scales.y(d.v))\n .attr('rx', 4)\n .attr('ry', 4)\n .attr('width', scales.x.bandwidth())\n .attr('height', scales.y.bandwidth())\n .style('fill', (d) => scales.color(d.z))\n .style('stroke-width', 4)\n .style('stroke', 'none')\n .style('opacity', 0.8)\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (d) => {\n const filters = [\n {\n id: `${props.id}_x`,\n title: props.title,\n field: props.fields.x,\n operation: 'in',\n values: [d.g],\n },\n {\n id: `${props.id}_y`,\n title: props.title,\n field: props.fields.y,\n operation: 'in',\n values: [d.v],\n },\n ];\n props.filterAdded(filters);\n });\n }, 100);\n }, [props.layout, props.filters, props.filterData]);\n\n return
;\n}\n\nexport default Heatmap;\n\nHeatmap.propTypes = {\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n x: PropTypes.string.isRequired,\n y: PropTypes.string.isRequired,\n z: PropTypes.string.isRequired,\n }).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n filterAdded: PropTypes.func.isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/Histogram.3148aeff.js b/dist/Histogram.3148aeff.js index 2cd5eb8..132ecb9 100644 --- a/dist/Histogram.3148aeff.js +++ b/dist/Histogram.3148aeff.js @@ -128,15 +128,15 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _utils = require("../../../common/utils"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /** * @function Histogram * @description Creates an interactive histogram chart @@ -306,7 +306,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/Histogram.3148aeff.js.map b/dist/Histogram.3148aeff.js.map index 0e5c849..f12deb2 100644 --- a/dist/Histogram.3148aeff.js.map +++ b/dist/Histogram.3148aeff.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/Histogram.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_slicedToArray","arr","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","len","length","arr2","l","Symbol","iterator","f","next","done","push","value","return","isArray","Histogram","_ref","data","fields","id","_ref$binsCount","binsCount","filterData","filters","filterAdded","layout","svgRef","useRef","_useState","useState","x","scaleLinear","y","_useState2","Scales","_useState3","hist","histogram","bins","_useState4","margin","top","right","bottom","left","useEffect","setTimeout","select","current","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","svg","append","attr","concat","domain","max","d","range","thresholds","ticks","brush","brushX","extent","on","event","selection","_ref2","x0","x1","field","operation","values","numFixed","invert","axisBottom","view","axisLeft","join","Math","style","transition","duration","createElement","ref","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","number","func","currentCols","defaultProps","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","forEach","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,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B,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACiE,KAAK,CAACxJ,EAAE,CAAC;EACvBuF,MAAM,CAACvF,EAAE,CAAC;EAEVuJ,MAAM,GAAGhE,MAAM,CAACiE,KAAK,CAACxJ,EAAE,CAAC;EACzB,IAAIuJ,MAAM,IAAIA,MAAM,CAAC7D,GAAG,IAAI6D,MAAM,CAAC7D,GAAG,CAACE,gBAAgB,CAAC5G,MAAM,EAAE;IAC9DuK,MAAM,CAAC7D,GAAG,CAACE,gBAAgB,CAACoB,OAAO,CAAC,UAAU0C,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"Histogram.3148aeff.js","sourceRoot":"../source","sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\n/**\n * @function Histogram\n * @description Creates an interactive histogram chart\n * User can select specific range of x by brushing\n * @param {Object} data - total data without filtering\n * @param {Array} fields - contains filed to create histogram on\n * @param {String} id - HTML id for the chart\n * @param {Integer} binsCount - number of bins to split data on\n * @param {Object} filterData - data after applying filters\n * @param {Array} filters - current filters\n * @param {Function} filterAdded - handler for adding new filter\n * @returns {Component}\n */\n\nfunction Histogram({\n data, fields, id, binsCount = 10, filterData, filters, filterAdded, layout,\n}) {\n const svgRef = useRef();\n const [Scales] = useState({\n x: d3.scaleLinear(),\n y: d3.scaleLinear(),\n });\n const [histogram] = useState({\n hist: d3.histogram(),\n bins: null,\n });\n const margin = {\n top: 10,\n right: 10,\n bottom: 30,\n left: 40,\n };\n\n // initialize svg and draw base histogram\n useEffect(() => {\n setTimeout(() => {\n d3.select(svgRef.current).selectAll('svg').remove('svg');\n const rect = svgRef.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n const svg = d3\n .select(svgRef.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n Scales.x.domain([0, d3.max(data, (d) => d[fields.x])]).range([0, innerWidth]);\n\n histogram.hist\n .value((d) => d[fields.x])\n .domain(Scales.x.domain())\n .thresholds(Scales.x.ticks(binsCount));\n\n histogram.bins = histogram.hist(data);\n\n Scales.y = d3\n .scaleLinear()\n .range([innerHeight, 0])\n .domain([0, d3.max(histogram.bins, (d) => d.length)]);\n\n // brush\n const brush = d3\n .brushX()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ])\n .on('end', () => {\n if (d3.event.selection) {\n const [x0, x1] = [d3.event.selection[0], d3.event.selection[1]];\n filterAdded([\n {\n id,\n field: fields.x,\n operation: 'range',\n values: [numFixed(Scales.x.invert(x0)), numFixed(Scales.x.invert(x1))],\n },\n ]);\n }\n });\n svg.append('g').call(brush);\n\n // draw x-axis\n svg\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(Scales.x));\n\n // draw y-axis\n const view = svg\n .append('g')\n .call(d3.axisLeft(Scales.y))\n .append('g')\n .attr('class', 'hist-area');\n\n // draw histogram rectangles\n view\n .selectAll('.bar')\n .data(histogram.bins)\n .join('rect')\n .attr('class', 'bar')\n .attr('x', 1)\n .attr('transform', (d) => `translate(${Scales.x(d.x0)},${Scales.y(d.length)})`)\n .attr('width', (d) => Math.max(Scales.x(d.x1) - Scales.x(d.x0) - 1, 0))\n .attr('height', (d) => innerHeight - Scales.y(d.length))\n .style('fill', '#87CEFA');\n }, 100);\n }, [layout]);\n\n // draw filtered histogram\n useEffect(() => {\n setTimeout(() => {\n const rect = svgRef.current.getBoundingClientRect();\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { bins } = histogram;\n if (filters.length !== 0) {\n bins = histogram.hist(filterData);\n }\n\n d3.select(svgRef.current)\n .selectAll('.hist-area')\n .selectAll('.bar-f')\n .data(bins)\n .join('rect')\n .attr('class', 'bar-f')\n .style('transform', 'scale(1, -1)')\n .attr('x', (d) => Scales.x(d.x0))\n .attr('y', () => -innerHeight)\n .transition()\n .duration(1000)\n .attr('width', (d) => Math.max(Scales.x(d.x1) - Scales.x(d.x0) - 1, 0))\n .attr('height', (d) => innerHeight - Scales.y(d.length))\n .style('fill', '#4682B4');\n }, 100);\n }, [filters, filterData, layout]);\n return
;\n}\n\nexport default Histogram;\n\nHistogram.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired }).isRequired,\n id: PropTypes.string.isRequired,\n binsCount: PropTypes.number,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n\nHistogram.defaultProps = {\n binsCount: 10,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/Histogram.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","f","o","next","done","push","value","return","isArray","Histogram","_ref","data","fields","id","_ref$binsCount","binsCount","filterData","filters","filterAdded","layout","svgRef","useRef","_useState","useState","x","scaleLinear","y","_useState2","Scales","_useState3","hist","histogram","bins","_useState4","margin","top","right","bottom","left","useEffect","setTimeout","select","current","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","svg","append","attr","concat","domain","max","d","range","thresholds","ticks","brush","brushX","extent","on","event","selection","_ref2","x0","x1","field","operation","values","numFixed","invert","axisBottom","view","axisLeft","join","Math","style","transition","duration","createElement","ref","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","number","func","currentCols","defaultProps"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MA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WAAW,EAAEP,kBAAS,CAACK,MAAM,CAACF;EAChC,CAAC,CAAC,CAACA;AACL,CAAC;AAEDlF,SAAS,CAACuF,YAAY,GAAG;EACvBjF,SAAS,EAAE;AACb,CAAC","file":"Histogram.3148aeff.js","sourceRoot":"../source","sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\n/**\n * @function Histogram\n * @description Creates an interactive histogram chart\n * User can select specific range of x by brushing\n * @param {Object} data - total data without filtering\n * @param {Array} fields - contains filed to create histogram on\n * @param {String} id - HTML id for the chart\n * @param {Integer} binsCount - number of bins to split data on\n * @param {Object} filterData - data after applying filters\n * @param {Array} filters - current filters\n * @param {Function} filterAdded - handler for adding new filter\n * @returns {Component}\n */\n\nfunction Histogram({\n data, fields, id, binsCount = 10, filterData, filters, filterAdded, layout,\n}) {\n const svgRef = useRef();\n const [Scales] = useState({\n x: d3.scaleLinear(),\n y: d3.scaleLinear(),\n });\n const [histogram] = useState({\n hist: d3.histogram(),\n bins: null,\n });\n const margin = {\n top: 10,\n right: 10,\n bottom: 30,\n left: 40,\n };\n\n // initialize svg and draw base histogram\n useEffect(() => {\n setTimeout(() => {\n d3.select(svgRef.current).selectAll('svg').remove('svg');\n const rect = svgRef.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n const svg = d3\n .select(svgRef.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n\n Scales.x.domain([0, d3.max(data, (d) => d[fields.x])]).range([0, innerWidth]);\n\n histogram.hist\n .value((d) => d[fields.x])\n .domain(Scales.x.domain())\n .thresholds(Scales.x.ticks(binsCount));\n\n histogram.bins = histogram.hist(data);\n\n Scales.y = d3\n .scaleLinear()\n .range([innerHeight, 0])\n .domain([0, d3.max(histogram.bins, (d) => d.length)]);\n\n // brush\n const brush = d3\n .brushX()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ])\n .on('end', () => {\n if (d3.event.selection) {\n const [x0, x1] = [d3.event.selection[0], d3.event.selection[1]];\n filterAdded([\n {\n id,\n field: fields.x,\n operation: 'range',\n values: [numFixed(Scales.x.invert(x0)), numFixed(Scales.x.invert(x1))],\n },\n ]);\n }\n });\n svg.append('g').call(brush);\n\n // draw x-axis\n svg\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(Scales.x));\n\n // draw y-axis\n const view = svg\n .append('g')\n .call(d3.axisLeft(Scales.y))\n .append('g')\n .attr('class', 'hist-area');\n\n // draw histogram rectangles\n view\n .selectAll('.bar')\n .data(histogram.bins)\n .join('rect')\n .attr('class', 'bar')\n .attr('x', 1)\n .attr('transform', (d) => `translate(${Scales.x(d.x0)},${Scales.y(d.length)})`)\n .attr('width', (d) => Math.max(Scales.x(d.x1) - Scales.x(d.x0) - 1, 0))\n .attr('height', (d) => innerHeight - Scales.y(d.length))\n .style('fill', '#87CEFA');\n }, 100);\n }, [layout]);\n\n // draw filtered histogram\n useEffect(() => {\n setTimeout(() => {\n const rect = svgRef.current.getBoundingClientRect();\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n let { bins } = histogram;\n if (filters.length !== 0) {\n bins = histogram.hist(filterData);\n }\n\n d3.select(svgRef.current)\n .selectAll('.hist-area')\n .selectAll('.bar-f')\n .data(bins)\n .join('rect')\n .attr('class', 'bar-f')\n .style('transform', 'scale(1, -1)')\n .attr('x', (d) => Scales.x(d.x0))\n .attr('y', () => -innerHeight)\n .transition()\n .duration(1000)\n .attr('width', (d) => Math.max(Scales.x(d.x1) - Scales.x(d.x0) - 1, 0))\n .attr('height', (d) => innerHeight - Scales.y(d.length))\n .style('fill', '#4682B4');\n }, 100);\n }, [filters, filterData, layout]);\n return
;\n}\n\nexport default Histogram;\n\nHistogram.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired }).isRequired,\n id: PropTypes.string.isRequired,\n binsCount: PropTypes.number,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n\nHistogram.defaultProps = {\n binsCount: 10,\n};\n"]} \ No newline at end of file diff --git a/dist/HorizontalBarChart.fcfb2c72.js b/dist/HorizontalBarChart.fcfb2c72.js index 60e04dc..8ec8e62 100644 --- a/dist/HorizontalBarChart.fcfb2c72.js +++ b/dist/HorizontalBarChart.fcfb2c72.js @@ -128,9 +128,9 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _tooltip = _interopRequireDefault(require("../../partials/tooltip")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } var transformList = function transformList(data, f) { var map = new Map(); data.forEach(function (d) { @@ -375,7 +375,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/HorizontalBarChart.fcfb2c72.js.map b/dist/HorizontalBarChart.fcfb2c72.js.map index 7e840f6..0f515a5 100644 --- a/dist/HorizontalBarChart.fcfb2c72.js.map +++ b/dist/HorizontalBarChart.fcfb2c72.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/HorizontalBarChart.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","collator","Intl","Collator","numeric","sensitivity","collSort","b","compare","nest","sortKeys","rollup","v","entries","HorizontalBarChart","props","margin","top","right","bottom","left","fields","y","x","fullData","self","useRef","scaleRef","hightRef","viewerRef","createLogXScale","width","maxValue","max","xScale","scaleLog","domain","range","createXScale","scaleLinear","createYScale","height","yScale","scaleBand","padding","formatTick","toLocaleString","createTextLabel","current","selectAll","remove","enter","append","attr","bandwidth","text","on","filter","id","title","operation","values","filterAdded","drawBar","selection","className","addLabel","concat","offset","tooltipHandlers","createTooltip","updateBars","enterBars","mousemove","mouseleave","enterData","_props$fields","selected","merge","transition","duration","exit","useEffect","setTimeout","select","rect","getBoundingClientRect","innerWidth","innerHeight","tickCount","svg","console","log","logScale","axisBottom","tickSize","tickValues","ticks","tickFormat","layout","filters","filterData","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","clear","hmrApply","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBA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,EAAE;IAC7D,OAAO4F,cAAc,CAACC,MAAM,CAACC,aAAa,EAAE9F,EAAE,CAAC;EACjD,CAAC,CAAC;AACJ;AAEA,SAASoG,YAAYA,CAACtC,MAAM,EAAE9D,EAAE,EAAE;EAChC,IAAI4H,MAAM,GAAG9D,MAAM,CAAC+D,KAAK,CAAC7H,EAAE,CAAC;EAC7B8D,MAAM,CAACI,OAAO,GAAG,CAAC,CAAC;EACnB,IAAI0D,MAAM,EAAE;IACVA,MAAM,CAAC3D,GAAG,CAAC5I,IAAI,GAAGyI,MAAM,CAACI,OAAO;EAClC;EAEA,IAAI0D,MAAM,IAAIA,MAAM,CAAC3D,GAAG,IAAI2D,MAAM,CAAC3D,GAAG,CAACG,iBAAiB,CAAC/H,MAAM,EAAE;IAC/DuL,MAAM,CAAC3D,GAAG,CAACG,iBAAiB,CAAC3I,OAAO,CAAC,UAAUsM,EAAE,EAAE;MACjDA,EAAE,CAACjE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAAC+D,KAAK,CAAC7H,EAAE,CAAC;EACvB8D,MAAM,CAAC9D,EAAE,CAAC;EAEV4H,MAAM,GAAG9D,MAAM,CAAC+D,KAAK,CAAC7H,EAAE,CAAC;EACzB,IAAI4H,MAAM,IAAIA,MAAM,CAAC3D,GAAG,IAAI2D,MAAM,CAAC3D,GAAG,CAACE,gBAAgB,CAAC9H,MAAM,EAAE;IAC9DuL,MAAM,CAAC3D,GAAG,CAACE,gBAAgB,CAAC1I,OAAO,CAAC,UAAUsM,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"HorizontalBarChart.fcfb2c72.js","sourceRoot":"../source","sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n function collSort(a,b){\n return collator.compare(b,a);\n }\n return d3\n .nest()\n .key((d) => d[field])\n .sortKeys(collSort)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nfunction HorizontalBarChart(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 10,\n };\n\n const fields = { y: 'key', x: 'value' };\n const fullData = transform(props.data, props.fields.y, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const createLogXScale = (f, width) => {\n const maxValue = d3.max(fullData, d => d[f]);\n // for now, starting domain at 1 always.\n const xScale = d3.scaleLog()\n .domain([1, maxValue])\n .range([0, width]);\n return xScale;\n };\n\n const createXScale = (f, width) => {\n const xScale = d3\n .scaleLinear()\n .domain([0, d3.max(fullData, (d) => d[f])])\n .range([0, width]);\n return xScale;\n };\n\n\n const createYScale = (f, height) => {\n // set the ranges\n const yScale = d3\n .scaleBand()\n .domain(fullData.map((d) => d[f]))\n .range([height, 0])\n .padding(0.1);\n return yScale;\n };\n\n const formatTick = (d) => d.toLocaleString();\n \n const createTextLabel = () => {\n viewerRef.current.selectAll('.label').remove();\n viewerRef.current\n .selectAll('.label')\n .data(fullData, (d) => d[fields.y])\n .enter()\n .append('text')\n .attr('class', 'label')\n .attr('x', 5)\n .attr('y', (d) => scaleRef.current.y(d[fields.y]) + scaleRef.current.y.bandwidth() / 2 + 4)\n .text((d) => d.key)\n .on('click', x=>{\n const filter = {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'eq',\n values: x.key,\n };\n props.filterAdded([filter])\n });\n };\n\n const drawBar = (selection, data, className = 'og') => {\n const addLabel = (d) => `${d.key}: ${d.value}`;\n const offset = {\n x: 30,\n y: 10,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n const updateBars = selection.selectAll(`rect.${className}`).data(data, (d) => d[fields.y]);\n\n const enterBars = updateBars.enter().append('rect');\n enterBars\n .attr('class', `${className}`)\n .attr('x', 0)\n .attr('height', scaleRef.current.y.bandwidth())\n .attr('y', (d) => scaleRef.current.y(d[fields.y]));\n enterBars\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (enterData) => {\n const selected = enterBars.filter((d) => d === enterData);\n const value = selected.data()[0].key;\n const filter = props?.fields?.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n });\n\n updateBars\n .merge(enterBars)\n .transition()\n .duration(1000)\n .attr('width', (d) => scaleRef.current.x(d[fields.x]))\n .selectAll('.label')\n .text((d) => d.key);\n // update_bars\n\n updateBars.exit().transition().duration(1000).attr('width', 0)\n .remove();\n\n return updateBars;\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n hightRef.current = innerHeight;\n let tickCount = 4;\n\n // create svg\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n viewerRef.current = svg\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n //\n let xScale = createXScale(fields.x, innerWidth);\n console.log(props)\n if (props.logScale){\n xScale = createLogXScale(fields.x, innerWidth);\n tickCount = 2;\n }\n const yScale = createYScale(fields.y, innerHeight);\n scaleRef.current = { x: xScale, y: yScale };\n\n viewerRef.current\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(xScale)\n .tickSize(-innerHeight)\n .tickValues(xScale.ticks(tickCount))\n .tickFormat(formatTick));\n\n drawBar(viewerRef.current, fullData, 'og');\n createTextLabel();\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.y, props.fields.isList);\n } else {\n data = fullData;\n }\n drawBar(viewerRef.current, data, 'ft');\n createTextLabel();\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default HorizontalBarChart;\n\nHorizontalBarChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ y: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n logScale: PropTypes.bool,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/HorizontalBarChart.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","transformList","data","f","map","Map","forEach","d","items","Array","isArray","from","key","value","transform","field","isList","arguments","length","undefined","collator","Intl","Collator","numeric","sensitivity","collSort","b","compare","nest","sortKeys","rollup","v","entries","HorizontalBarChart","props","margin","top","right","bottom","left","fields","y","x","fullData","self","useRef","scaleRef","hightRef","viewerRef","createLogXScale","width","maxValue","max","xScale","scaleLog","domain","range","createXScale","scaleLinear","createYScale","height","yScale","scaleBand","padding","formatTick","toLocaleString","createTextLabel","current","selectAll","remove","enter","append","attr","bandwidth","text","on","filter","id","title","operation","values","filterAdded","drawBar","selection","className","addLabel","concat","offset","tooltipHandlers","createTooltip","updateBars","enterBars","mousemove","mouseleave","enterData","_props$fields","selected","merge","transition","duration","exit","useEffect","setTimeout","select","rect","getBoundingClientRect","innerWidth","innerHeight","tickCount","svg","console","log","logScale","axisBottom","tickSize","tickValues","ticks","tickFormat","layout","filters","filterData","createElement","ref","style","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","bool","func","number","currentCols"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAA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+E,KAAK,EAAE;MAAEzE,KAAK,EAAE,MAAM;MAAEU,MAAM,EAAE;IAAO;EAAE,CAAE,CAAC;AACnF;AAAC,IAAAgE,QAAA,GAAAC,OAAA,CAAA9I,OAAA,GAEckD,kBAAkB;AAEjCA,kBAAkB,CAAC6F,SAAS,GAAG;EAC7B5H,IAAI,EAAE6H,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACvD1F,MAAM,EAAEuF,kBAAS,CAACE,KAAK,CAAC;IAAExF,CAAC,EAAEsF,kBAAS,CAACI,MAAM,CAACD,UAAU;IAAElH,MAAM,EAAE+G,kBAAS,CAACK;EAAK,CAAC,CAAC,CAACF,UAAU;EAC9FrD,EAAE,EAAEkD,kBAAS,CAACI,MAAM,CAACD,UAAU;EAC/BpD,KAAK,EAAEiD,kBAAS,CAACI,MAAM,CAACD,UAAU;EAClCV,UAAU,EAAEO,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC7DX,OAAO,EAAEQ,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC1DjD,WAAW,EAAE8C,kBAAS,CAACM,IAAI,CAACH,UAAU;EACtClB,QAAQ,EAAEe,kBAAS,CAACK,IAAI;EACxBd,MAAM,EAAES,kBAAS,CAACE,KAAK,CAAC;IACtB/E,KAAK,EAAE6E,kBAAS,CAACO,MAAM,CAACJ,UAAU;IAClCK,WAAW,EAAER,kBAAS,CAACO,MAAM,CAACJ;EAChC,CAAC,CAAC,CAACA;AACL,CAAC","file":"HorizontalBarChart.fcfb2c72.js","sourceRoot":"../source","sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nconst transformList = (data, f) => {\n const map = new Map();\n data.forEach((d) => {\n const items = d[f];\n if (Array.isArray(items)) {\n items.forEach((i) => {\n if (!map.has(i)) { map.set(i, 0); }\n map.set(i, map.get(i) + 1);\n });\n } else {\n if (!map.has(items)) { map.set(items, 0); }\n map.set(items, map.get(items) + 1);\n }\n });\n return Array.from(map).map((d) => ({ key: d[0], value: d[1] }));\n};\n\nconst transform = (data, field, isList = false) => {\n if (isList) {\n return transformList(data, field);\n }\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n function collSort(a,b){\n return collator.compare(b,a);\n }\n return d3\n .nest()\n .key((d) => d[field])\n .sortKeys(collSort)\n .rollup((v) => v.length)\n .entries(data);\n};\n\nfunction HorizontalBarChart(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 10,\n };\n\n const fields = { y: 'key', x: 'value' };\n const fullData = transform(props.data, props.fields.y, props.fields.isList);\n const self = useRef();\n const scaleRef = useRef();\n const hightRef = useRef();\n const viewerRef = useRef();\n\n const createLogXScale = (f, width) => {\n const maxValue = d3.max(fullData, d => d[f]);\n // for now, starting domain at 1 always.\n const xScale = d3.scaleLog()\n .domain([1, maxValue])\n .range([0, width]);\n return xScale;\n };\n\n const createXScale = (f, width) => {\n const xScale = d3\n .scaleLinear()\n .domain([0, d3.max(fullData, (d) => d[f])])\n .range([0, width]);\n return xScale;\n };\n\n\n const createYScale = (f, height) => {\n // set the ranges\n const yScale = d3\n .scaleBand()\n .domain(fullData.map((d) => d[f]))\n .range([height, 0])\n .padding(0.1);\n return yScale;\n };\n\n const formatTick = (d) => d.toLocaleString();\n \n const createTextLabel = () => {\n viewerRef.current.selectAll('.label').remove();\n viewerRef.current\n .selectAll('.label')\n .data(fullData, (d) => d[fields.y])\n .enter()\n .append('text')\n .attr('class', 'label')\n .attr('x', 5)\n .attr('y', (d) => scaleRef.current.y(d[fields.y]) + scaleRef.current.y.bandwidth() / 2 + 4)\n .text((d) => d.key)\n .on('click', x=>{\n const filter = {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'eq',\n values: x.key,\n };\n props.filterAdded([filter])\n });\n };\n\n const drawBar = (selection, data, className = 'og') => {\n const addLabel = (d) => `${d.key}: ${d.value}`;\n const offset = {\n x: 30,\n y: 10,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n const updateBars = selection.selectAll(`rect.${className}`).data(data, (d) => d[fields.y]);\n\n const enterBars = updateBars.enter().append('rect');\n enterBars\n .attr('class', `${className}`)\n .attr('x', 0)\n .attr('height', scaleRef.current.y.bandwidth())\n .attr('y', (d) => scaleRef.current.y(d[fields.y]));\n enterBars\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', (enterData) => {\n const selected = enterBars.filter((d) => d === enterData);\n const value = selected.data()[0].key;\n const filter = props?.fields?.isList ? {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'has',\n values: value,\n } : {\n id: props.id,\n title: props.title,\n field: props.fields.y,\n operation: 'eq',\n values: value,\n };\n props.filterAdded([filter]);\n });\n\n updateBars\n .merge(enterBars)\n .transition()\n .duration(1000)\n .attr('width', (d) => scaleRef.current.x(d[fields.x]))\n .selectAll('.label')\n .text((d) => d.key);\n // update_bars\n\n updateBars.exit().transition().duration(1000).attr('width', 0)\n .remove();\n\n return updateBars;\n };\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('svg').remove('svg');\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n hightRef.current = innerHeight;\n let tickCount = 4;\n\n // create svg\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n viewerRef.current = svg\n .append('g')\n .attr('transform', `translate(${margin.left},${margin.top})`);\n //\n let xScale = createXScale(fields.x, innerWidth);\n console.log(props)\n if (props.logScale){\n xScale = createLogXScale(fields.x, innerWidth);\n tickCount = 2;\n }\n const yScale = createYScale(fields.y, innerHeight);\n scaleRef.current = { x: xScale, y: yScale };\n\n viewerRef.current\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(xScale)\n .tickSize(-innerHeight)\n .tickValues(xScale.ticks(tickCount))\n .tickFormat(formatTick));\n\n drawBar(viewerRef.current, fullData, 'og');\n createTextLabel();\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n let data = [];\n if (props.filters.length > 0) {\n data = transform(props.filterData, props.fields.y, props.fields.isList);\n } else {\n data = fullData;\n }\n drawBar(viewerRef.current, data, 'ft');\n createTextLabel();\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default HorizontalBarChart;\n\nHorizontalBarChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ y: PropTypes.string.isRequired, isList: PropTypes.bool }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n logScale: PropTypes.bool,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/KMCurve.b8405d3d.js b/dist/KMCurve.b8405d3d.js index 3ca0485..ebb5d74 100644 --- a/dist/KMCurve.b8405d3d.js +++ b/dist/KMCurve.b8405d3d.js @@ -127,28 +127,28 @@ exports.default = void 0; var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } function isUndefined(d) { return d === undefined || d == null || typeof d === 'string' && d.toLowerCase() === 'na'; } @@ -382,7 +382,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/KMCurve.b8405d3d.js.map b/dist/KMCurve.b8405d3d.js.map index ddb3b06..1d25b9d 100644 --- a/dist/KMCurve.b8405d3d.js.map +++ b/dist/KMCurve.b8405d3d.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/KMCurve.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","minLen","_arrayLikeToArray","toString","slice","name","Array","from","test","iter","isArray","len","length","arr2","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","isUndefined","d","toLowerCase","KMCurve","exports","_PureComponent","_super","_this","React","createRef","maxTime","NEGATIVE_INFINITY","state","margin","top","right","bottom","left","filter","data","transform","field","fields","componentDidMount","_this2","setTimeout","rect","current","getBoundingClientRect","innerWidth","width","innerHeight","height","svg","select","append","attr","viewer","concat","xScale","scaleLinear","domain","range","yScale","color","scaleOrdinal","map","quantize","interpolateSpectral","xaxisGroup","axisBottom","ticks","text","time","unit","yaxisGroup","axisLeft","forEach","drawKMCurve","nodeWidth","getBBox","legend","lg","selectAll","enter","style","offset","x","eventValue","censoredValue","group","event","filteredData","collapsed_stage","Math","max","groups","nest","entries","rs","g","risk","values","sortKeys","b","rollup","v","censor","points","currentTime","c","censored","push","drawLine","_this3","line","curve","curveStepAfter","y","datum","point","render","createElement","id","ref","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","string","defaultProps","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,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VA,MAAM,CAAC5D,GAAG,CAACpG,IAAI,GAAGiG,MAAM,CAACI,OAAO;EAClC;EAEA,IAAI2D,MAAM,IAAIA,MAAM,CAAC5D,GAAG,IAAI4D,MAAM,CAAC5D,GAAG,CAACG,iBAAiB,CAACpL,MAAM,EAAE;IAC/D6O,MAAM,CAAC5D,GAAG,CAACG,iBAAiB,CAACjE,OAAO,CAAC,UAAU6H,EAAE,EAAE;MACjDA,EAAE,CAAClE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACgE,KAAK,CAAC7E,EAAE,CAAC;EACvBa,MAAM,CAACb,EAAE,CAAC;EAEV4E,MAAM,GAAG/D,MAAM,CAACgE,KAAK,CAAC7E,EAAE,CAAC;EACzB,IAAI4E,MAAM,IAAIA,MAAM,CAAC5D,GAAG,IAAI4D,MAAM,CAAC5D,GAAG,CAACE,gBAAgB,CAACnL,MAAM,EAAE;IAC9D6O,MAAM,CAAC5D,GAAG,CAACE,gBAAgB,CAAChE,OAAO,CAAC,UAAU6H,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"KMCurve.b8405d3d.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\n\nfunction isUndefined(d) {\n return d === undefined || d == null || (typeof d === 'string' && d.toLowerCase() === 'na');\n}\nexport default class KMCurve extends PureComponent {\n constructor(props) {\n super(props);\n this.self = React.createRef();\n this.maxTime = Number.NEGATIVE_INFINITY;\n this.state = {\n margin: {\n top: 35,\n right: 20,\n bottom: 45,\n left: 45,\n },\n };\n if (this.props.filter) {\n this.state.data = this.transform(\n this.props.data.filter((d) => d[this.props.filter.field] === this.props.filter.value),\n this.props.fields,\n );\n } else {\n this.state.data = this.transform(this.props.data, this.props.fields);\n }\n }\n\n componentDidMount() {\n setTimeout(() => {\n const rect = this.self.current.getBoundingClientRect();\n const innerWidth = rect.width - this.state.margin.left - this.state.margin.right;\n const innerHeight = rect.height - this.state.margin.top - this.state.margin.bottom;\n // create svg\n const svg = d3\n .select(this.self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n const viewer = svg\n .append('g')\n .attr('transform', `translate(${this.state.margin.left},${this.state.margin.top})`);\n //\n this.xScale = d3.scaleLinear().domain([0, this.maxTime]).range([0, innerWidth]);\n\n this.yScale = d3.scaleLinear().domain([0, 1]).range([innerHeight, 0]);\n\n this.color = d3\n .scaleOrdinal()\n .domain(this.state.data.map((d) => d.key))\n .range(d3.quantize((t) => d3.interpolateSpectral(t), this.state.data.length));\n\n const xaxisGroup = viewer\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(this.xScale).ticks(4)); // .tickSize(-innerWidth));\n xaxisGroup\n .append('text')\n .attr('y', 30)\n .attr('x', innerWidth / 2)\n .attr('fill', 'black')\n .attr('font-size', 13)\n .text(`Time ${this.props.fields.time.unit ? `(${this.props.fields.time.unit})` : ''}`);\n\n // add the y Axis\n const yaxisGroup = viewer.append('g').call(d3.axisLeft(this.yScale).ticks(4)); // .tickSize(-innerWidth)\n yaxisGroup\n .append('text')\n .attr('y', -30)\n .attr('x', -innerHeight / 3)\n .attr('fill', 'black')\n .attr('font-size', 13)\n .attr('transform', 'rotate(-90)')\n .text('Survival Probability');\n\n this.state.data.forEach((d) => this.drawKMCurve(viewer, d));\n\n const height = 0;\n const nodeWidth = (d) => d.getBBox().width;\n const legend = svg\n .append('g')\n .attr('class', 'legend')\n .attr('transform', `translate(${this.state.margin.left + innerWidth / 2},0)`);\n\n const lg = legend\n .selectAll('g')\n .data(this.state.data)\n .enter()\n .append('g')\n .attr('transform', (d, i) => `translate(${i * 100},${height + 15})`);\n\n lg.append('rect')\n .style('fill', (d) => this.color(d.key))\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', 10)\n .attr('height', 10);\n\n lg.append('text')\n .style('font-family', 'Georgia')\n .style('font-size', '13px')\n .attr('x', 17.5)\n .attr('y', 10)\n .text((d) => d.key);\n\n let offset = 0;\n lg.attr('transform', function transform() {\n const x = offset;\n offset += nodeWidth(this) + 10;\n return `translate(${x},${height + 10})`;\n });\n }, 500);\n }\n\n transform(data, field) {\n const { eventValue } = field;\n const { censoredValue } = field;\n const group = field.group.field;\n const time = field.time.field;\n const event = field.event.field;\n\n const filteredData = data.filter(\n (d) => d.collapsed_stage !== 'stage_x/NR'\n && !isUndefined(d[time])\n && !isUndefined(d[event])\n && !isUndefined(d[group]),\n );\n this.maxTime = Math.max(...filteredData.map((d) => d[time]));\n const groups = d3\n .nest()\n .key((d) => d[group])\n .entries(filteredData);\n const rs = [];\n groups.forEach((g) => {\n const { key } = g;\n let risk = g.values.length;\n const values = d3\n .nest()\n .key((d) => +d[time])\n .sortKeys((a, b) => +a - +b)\n .rollup((v) => ({\n event: v.filter((d) => d[event] === eventValue).length,\n censor: v.filter((d) => d[event] === censoredValue).length,\n }))\n .entries(g.values);\n let p = 1;\n const points = [];\n values.forEach((d) => {\n const currentTime = +d.key;\n const e = d.value.event;\n const c = d.value.censor;\n if (currentTime < 0) return;\n if (e > 0) {\n p *= 1 - e / risk;\n const censored = false;\n points.push({ p, currentTime, censored });\n }\n if (c > 0) {\n const censored = true;\n points.push({ p, currentTime, censored });\n }\n risk -= e + c;\n });\n rs.push({ key, points });\n });\n\n return rs;\n }\n\n drawLine(viewer, points, color) {\n const line = d3\n .line()\n .curve(d3.curveStepAfter)\n .x((d) => this.xScale(d.time))\n .y((d) => this.yScale(d.p));\n viewer\n .append('path')\n .datum(points)\n .attr('class', 'line')\n .style('stroke', color)\n .attr('d', line);\n\n points.forEach((point) => {\n if (point.censored) {\n const p = [\n {\n p: point.p - 0.015,\n time: point.time,\n },\n {\n p: point.p + 0.015,\n time: point.time,\n },\n ];\n viewer.append('path').datum(p).attr('class', 'mark').style('stroke', color)\n .attr('d', line);\n }\n });\n }\n\n drawKMCurve(viewer, d) {\n // draw lines\n this.drawLine(viewer, d.points, this.color(d.key));\n // draw marks\n }\n\n render() {\n return
;\n }\n}\n\nKMCurve.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, time: PropTypes.shape() }).isRequired,\n filter: PropTypes.shape({ field: PropTypes.string, value: PropTypes.string }),\n id: PropTypes.string.isRequired,\n};\n\nKMCurve.defaultProps = {\n filter: {},\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/KMCurve.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","_arrayLikeToArray","toString","slice","name","Array","from","test","isArray","length","_classCallCheck","_defineProperties","enumerable","configurable","writable","_toPropertyKey","key","_createClass","_toPrimitive","toPrimitive","String","Number","_inherits","create","value","_setPrototypeOf","setPrototypeOf","bind","_createSuper","_isNativeReflectConstruct","_getPrototypeOf","s","Reflect","construct","arguments","apply","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","Boolean","valueOf","getPrototypeOf","isUndefined","d","undefined","toLowerCase","KMCurve","exports","_PureComponent","_super","props","_this","self","React","createRef","maxTime","NEGATIVE_INFINITY","state","margin","top","right","bottom","left","filter","data","transform","field","fields","componentDidMount","_this2","setTimeout","rect","current","getBoundingClientRect","innerWidth","width","innerHeight","height","svg","select","append","attr","viewer","concat","xScale","scaleLinear","domain","range","yScale","color","scaleOrdinal","map","quantize","interpolateSpectral","xaxisGroup","axisBottom","ticks","text","time","unit","yaxisGroup","axisLeft","forEach","drawKMCurve","nodeWidth","getBBox","legend","lg","selectAll","enter","style","offset","x","eventValue","censoredValue","group","event","filteredData","collapsed_stage","Math","max","groups","nest","entries","rs","g","risk","values","sortKeys","b","rollup","v","censor","p","points","currentTime","c","censored","push","drawLine","_this3","line","curve","curveStepAfter","y","datum","point","render","createElement","id","ref","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","string","defaultProps"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAmC,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA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iI,kBAAS,CAACI;EAAO,CAAC,CAAC;EAC7ER,EAAE,EAAEI,kBAAS,CAACI,MAAM,CAACD;AACvB,CAAC;AAED9G,OAAO,CAACgH,YAAY,GAAG;EACrB/F,MAAM,EAAE,CAAC;AACX,CAAC","file":"KMCurve.b8405d3d.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\n\nfunction isUndefined(d) {\n return d === undefined || d == null || (typeof d === 'string' && d.toLowerCase() === 'na');\n}\nexport default class KMCurve extends PureComponent {\n constructor(props) {\n super(props);\n this.self = React.createRef();\n this.maxTime = Number.NEGATIVE_INFINITY;\n this.state = {\n margin: {\n top: 35,\n right: 20,\n bottom: 45,\n left: 45,\n },\n };\n if (this.props.filter) {\n this.state.data = this.transform(\n this.props.data.filter((d) => d[this.props.filter.field] === this.props.filter.value),\n this.props.fields,\n );\n } else {\n this.state.data = this.transform(this.props.data, this.props.fields);\n }\n }\n\n componentDidMount() {\n setTimeout(() => {\n const rect = this.self.current.getBoundingClientRect();\n const innerWidth = rect.width - this.state.margin.left - this.state.margin.right;\n const innerHeight = rect.height - this.state.margin.top - this.state.margin.bottom;\n // create svg\n const svg = d3\n .select(this.self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n // create viewer\n const viewer = svg\n .append('g')\n .attr('transform', `translate(${this.state.margin.left},${this.state.margin.top})`);\n //\n this.xScale = d3.scaleLinear().domain([0, this.maxTime]).range([0, innerWidth]);\n\n this.yScale = d3.scaleLinear().domain([0, 1]).range([innerHeight, 0]);\n\n this.color = d3\n .scaleOrdinal()\n .domain(this.state.data.map((d) => d.key))\n .range(d3.quantize((t) => d3.interpolateSpectral(t), this.state.data.length));\n\n const xaxisGroup = viewer\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(this.xScale).ticks(4)); // .tickSize(-innerWidth));\n xaxisGroup\n .append('text')\n .attr('y', 30)\n .attr('x', innerWidth / 2)\n .attr('fill', 'black')\n .attr('font-size', 13)\n .text(`Time ${this.props.fields.time.unit ? `(${this.props.fields.time.unit})` : ''}`);\n\n // add the y Axis\n const yaxisGroup = viewer.append('g').call(d3.axisLeft(this.yScale).ticks(4)); // .tickSize(-innerWidth)\n yaxisGroup\n .append('text')\n .attr('y', -30)\n .attr('x', -innerHeight / 3)\n .attr('fill', 'black')\n .attr('font-size', 13)\n .attr('transform', 'rotate(-90)')\n .text('Survival Probability');\n\n this.state.data.forEach((d) => this.drawKMCurve(viewer, d));\n\n const height = 0;\n const nodeWidth = (d) => d.getBBox().width;\n const legend = svg\n .append('g')\n .attr('class', 'legend')\n .attr('transform', `translate(${this.state.margin.left + innerWidth / 2},0)`);\n\n const lg = legend\n .selectAll('g')\n .data(this.state.data)\n .enter()\n .append('g')\n .attr('transform', (d, i) => `translate(${i * 100},${height + 15})`);\n\n lg.append('rect')\n .style('fill', (d) => this.color(d.key))\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', 10)\n .attr('height', 10);\n\n lg.append('text')\n .style('font-family', 'Georgia')\n .style('font-size', '13px')\n .attr('x', 17.5)\n .attr('y', 10)\n .text((d) => d.key);\n\n let offset = 0;\n lg.attr('transform', function transform() {\n const x = offset;\n offset += nodeWidth(this) + 10;\n return `translate(${x},${height + 10})`;\n });\n }, 500);\n }\n\n transform(data, field) {\n const { eventValue } = field;\n const { censoredValue } = field;\n const group = field.group.field;\n const time = field.time.field;\n const event = field.event.field;\n\n const filteredData = data.filter(\n (d) => d.collapsed_stage !== 'stage_x/NR'\n && !isUndefined(d[time])\n && !isUndefined(d[event])\n && !isUndefined(d[group]),\n );\n this.maxTime = Math.max(...filteredData.map((d) => d[time]));\n const groups = d3\n .nest()\n .key((d) => d[group])\n .entries(filteredData);\n const rs = [];\n groups.forEach((g) => {\n const { key } = g;\n let risk = g.values.length;\n const values = d3\n .nest()\n .key((d) => +d[time])\n .sortKeys((a, b) => +a - +b)\n .rollup((v) => ({\n event: v.filter((d) => d[event] === eventValue).length,\n censor: v.filter((d) => d[event] === censoredValue).length,\n }))\n .entries(g.values);\n let p = 1;\n const points = [];\n values.forEach((d) => {\n const currentTime = +d.key;\n const e = d.value.event;\n const c = d.value.censor;\n if (currentTime < 0) return;\n if (e > 0) {\n p *= 1 - e / risk;\n const censored = false;\n points.push({ p, currentTime, censored });\n }\n if (c > 0) {\n const censored = true;\n points.push({ p, currentTime, censored });\n }\n risk -= e + c;\n });\n rs.push({ key, points });\n });\n\n return rs;\n }\n\n drawLine(viewer, points, color) {\n const line = d3\n .line()\n .curve(d3.curveStepAfter)\n .x((d) => this.xScale(d.time))\n .y((d) => this.yScale(d.p));\n viewer\n .append('path')\n .datum(points)\n .attr('class', 'line')\n .style('stroke', color)\n .attr('d', line);\n\n points.forEach((point) => {\n if (point.censored) {\n const p = [\n {\n p: point.p - 0.015,\n time: point.time,\n },\n {\n p: point.p + 0.015,\n time: point.time,\n },\n ];\n viewer.append('path').datum(p).attr('class', 'mark').style('stroke', color)\n .attr('d', line);\n }\n });\n }\n\n drawKMCurve(viewer, d) {\n // draw lines\n this.drawLine(viewer, d.points, this.color(d.key));\n // draw marks\n }\n\n render() {\n return
;\n }\n}\n\nKMCurve.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired, time: PropTypes.shape() }).isRequired,\n filter: PropTypes.shape({ field: PropTypes.string, value: PropTypes.string }),\n id: PropTypes.string.isRequired,\n};\n\nKMCurve.defaultProps = {\n filter: {},\n};\n"]} \ No newline at end of file diff --git a/dist/ParallelCoordinates.f76efbe7.js b/dist/ParallelCoordinates.f76efbe7.js index 552f021..dbe710e 100644 --- a/dist/ParallelCoordinates.f76efbe7.js +++ b/dist/ParallelCoordinates.f76efbe7.js @@ -128,9 +128,9 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _utils = require("../../../common/utils"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function ParallelCoordinates(props) { var self = (0, _react.useRef)(); var foregroundRef = (0, _react.useRef)(); @@ -284,7 +284,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/ParallelCoordinates.f76efbe7.js.map b/dist/ParallelCoordinates.f76efbe7.js.map index 6bdc27a..4e67d2b 100644 --- a/dist/ParallelCoordinates.f76efbe7.js.map +++ b/dist/ParallelCoordinates.f76efbe7.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/ParallelCoordinates.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ParallelCoordinates","props","self","useRef","foregroundRef","backgroundRef","dimensions","fields","y","scales","x","scalePoint","margin","top","right","bottom","left","path","d","ctx","beginPath","forEach","p","moveTo","current","lineTo","stroke","brush","event","selection","field","filter","target","_ref","x1","x0","filterAdded","id","title","operation","values","numFixed","invert","useEffect","setTimeout","select","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","append","attr","style","concat","node","getContext","strokeStyle","svg","domain","range","scaleLinear","extent","data","g","enter","each","addAxis","axisLeft","text","addBrush","brushY","on","layout","filterData","clearRect","filters","length","includes","createElement","ref","_default","exports","propTypes","PropTypes","string","isRequired","arrayOf","shape","func","number","currentCols","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Array","isArray","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"ParallelCoordinates.f76efbe7.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nfunction ParallelCoordinates(props) {\n const self = useRef();\n const foregroundRef = useRef();\n const backgroundRef = useRef();\n const dimensions = props.fields.y;\n const scales = useRef({\n x: d3.scalePoint(),\n y: {},\n });\n const margin = {\n top: 25,\n right: 40,\n bottom: 20,\n left: 40,\n };\n\n function path(d, ctx) {\n ctx.beginPath();\n dimensions.forEach((p, i) => {\n if (i === 0) {\n ctx.moveTo(scales.current.x(p), scales.current.y[p](d[p]));\n } else {\n ctx.lineTo(scales.current.x(p), scales.current.y[p](d[p]));\n }\n });\n ctx.stroke();\n }\n\n function brush() {\n if (!d3.event.selection) return;\n const field = dimensions.filter((d) => scales.current.y[d].brush === d3.event.target)[0];\n const [x1, x0] = [d3.event.selection[0], d3.event.selection[1]];\n props.filterAdded([\n {\n id: props.id,\n title: props.title,\n field,\n operation: 'range',\n values: [\n numFixed(scales.current.y[field].invert(x0)),\n numFixed(scales.current.y[field].invert(x1)),\n ],\n },\n ]);\n }\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('canvas').remove('canvas');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n backgroundRef.current = d3\n .select(self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${margin.left}px,${margin.top}px)`);\n\n foregroundRef.current = d3\n .select(self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${margin.left}px,${margin.top - innerHeight - 5}px)`);\n\n backgroundRef.current = backgroundRef.current.node().getContext('2d');\n foregroundRef.current = foregroundRef.current.node().getContext('2d');\n\n foregroundRef.current.strokeStyle = 'rgba(0,100,160,0.24)';\n backgroundRef.current.strokeStyle = 'rgba(0,0,0,0.1)';\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .style('transform', `translate(${0}px,${-2 * innerHeight - margin.top / 2}px)`)\n .append('g')\n .style('transform', `translate(${margin.left}px,${margin.top}px)`);\n\n scales.current.x.domain(dimensions);\n scales.current.x.range([0, innerWidth], 1);\n\n dimensions.forEach((d) => {\n scales.current.y[d] = d3\n .scaleLinear()\n .domain(d3.extent(props.data, (p) => +p[d]))\n .range([innerHeight, 0]);\n });\n\n const g = svg\n .selectAll('.dimension')\n .data(dimensions)\n .enter()\n .append('g')\n .attr('class', 'dimension')\n .attr('transform', (d) => `translate(${scales.current.x(d)})`);\n\n // Add an axis and title.\n g.append('g')\n .attr('class', 'axis')\n .each(function addAxis(d) {\n d3.select(this).call(d3.axisLeft(scales.current.y[d]));\n })\n .append('text')\n .style('text-anchor', 'middle')\n .attr('y', -9)\n .text((d) => d);\n\n g.append('g')\n .attr('class', 'brush')\n .each(function addBrush(d) {\n d3.select(this).call(\n (scales.current.y[d].brush = d3\n .brushY()\n .extent([\n [-10, 0],\n [10, innerHeight],\n ])\n .on('end', brush)),\n );\n })\n .selectAll('rect')\n .attr('x', -8)\n .attr('width', 16);\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n if (!props.filterData) return;\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n // Render selected lines\n foregroundRef.current.clearRect(0, 0, innerWidth + 1, innerHeight + 1);\n backgroundRef.current.clearRect(0, 0, innerWidth + 1, innerHeight + 1);\n if (props.filters.length === 0) {\n props.data.forEach((d) => {\n path(d, foregroundRef.current);\n });\n } else {\n props.data.forEach((d) => {\n if (props.filterData.includes(d)) {\n path(d, foregroundRef.current);\n } else {\n path(d, backgroundRef.current);\n }\n });\n }\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default ParallelCoordinates;\n\nParallelCoordinates.propTypes = {\n title: PropTypes.string.isRequired,\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n y: PropTypes.arrayOf(PropTypes.string).isRequired,\n }).isRequired,\n id: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/ParallelCoordinates.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ParallelCoordinates","props","self","useRef","foregroundRef","backgroundRef","dimensions","fields","y","scales","x","scalePoint","margin","top","right","bottom","left","path","d","ctx","beginPath","forEach","p","moveTo","current","lineTo","stroke","brush","event","selection","field","filter","target","_ref","x1","x0","filterAdded","id","title","operation","values","numFixed","invert","useEffect","setTimeout","select","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","append","attr","style","concat","node","getContext","strokeStyle","svg","domain","range","scaleLinear","extent","data","g","enter","each","addAxis","axisLeft","text","addBrush","brushY","on","layout","filterData","clearRect","filters","length","includes","createElement","ref","_default","exports","propTypes","PropTypes","string","isRequired","arrayOf","shape","func","number","currentCols"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IA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AAS,CAACC,MAAM,CAACC,UAAU;EAC/BV,OAAO,EAAEQ,kBAAS,CAACG,OAAO,CAACH,kBAAS,CAACI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACF,UAAU;EAC1DrD,WAAW,EAAEmD,kBAAS,CAACK,IAAI,CAACH,UAAU;EACtCb,MAAM,EAAEW,kBAAS,CAACI,KAAK,CAAC;IACtBxC,KAAK,EAAEoC,kBAAS,CAACM,MAAM,CAACJ,UAAU;IAClCK,WAAW,EAAEP,kBAAS,CAACM,MAAM,CAACJ;EAChC,CAAC,CAAC,CAACA;AACL,CAAC","file":"ParallelCoordinates.f76efbe7.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nfunction ParallelCoordinates(props) {\n const self = useRef();\n const foregroundRef = useRef();\n const backgroundRef = useRef();\n const dimensions = props.fields.y;\n const scales = useRef({\n x: d3.scalePoint(),\n y: {},\n });\n const margin = {\n top: 25,\n right: 40,\n bottom: 20,\n left: 40,\n };\n\n function path(d, ctx) {\n ctx.beginPath();\n dimensions.forEach((p, i) => {\n if (i === 0) {\n ctx.moveTo(scales.current.x(p), scales.current.y[p](d[p]));\n } else {\n ctx.lineTo(scales.current.x(p), scales.current.y[p](d[p]));\n }\n });\n ctx.stroke();\n }\n\n function brush() {\n if (!d3.event.selection) return;\n const field = dimensions.filter((d) => scales.current.y[d].brush === d3.event.target)[0];\n const [x1, x0] = [d3.event.selection[0], d3.event.selection[1]];\n props.filterAdded([\n {\n id: props.id,\n title: props.title,\n field,\n operation: 'range',\n values: [\n numFixed(scales.current.y[field].invert(x0)),\n numFixed(scales.current.y[field].invert(x1)),\n ],\n },\n ]);\n }\n\n useEffect(() => {\n setTimeout(() => {\n d3.select(self.current).selectAll('canvas').remove('canvas');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n backgroundRef.current = d3\n .select(self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${margin.left}px,${margin.top}px)`);\n\n foregroundRef.current = d3\n .select(self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${margin.left}px,${margin.top - innerHeight - 5}px)`);\n\n backgroundRef.current = backgroundRef.current.node().getContext('2d');\n foregroundRef.current = foregroundRef.current.node().getContext('2d');\n\n foregroundRef.current.strokeStyle = 'rgba(0,100,160,0.24)';\n backgroundRef.current.strokeStyle = 'rgba(0,0,0,0.1)';\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height)\n .style('transform', `translate(${0}px,${-2 * innerHeight - margin.top / 2}px)`)\n .append('g')\n .style('transform', `translate(${margin.left}px,${margin.top}px)`);\n\n scales.current.x.domain(dimensions);\n scales.current.x.range([0, innerWidth], 1);\n\n dimensions.forEach((d) => {\n scales.current.y[d] = d3\n .scaleLinear()\n .domain(d3.extent(props.data, (p) => +p[d]))\n .range([innerHeight, 0]);\n });\n\n const g = svg\n .selectAll('.dimension')\n .data(dimensions)\n .enter()\n .append('g')\n .attr('class', 'dimension')\n .attr('transform', (d) => `translate(${scales.current.x(d)})`);\n\n // Add an axis and title.\n g.append('g')\n .attr('class', 'axis')\n .each(function addAxis(d) {\n d3.select(this).call(d3.axisLeft(scales.current.y[d]));\n })\n .append('text')\n .style('text-anchor', 'middle')\n .attr('y', -9)\n .text((d) => d);\n\n g.append('g')\n .attr('class', 'brush')\n .each(function addBrush(d) {\n d3.select(this).call(\n (scales.current.y[d].brush = d3\n .brushY()\n .extent([\n [-10, 0],\n [10, innerHeight],\n ])\n .on('end', brush)),\n );\n })\n .selectAll('rect')\n .attr('x', -8)\n .attr('width', 16);\n }, 100);\n }, [props.layout]);\n\n useEffect(() => {\n setTimeout(() => {\n if (!props.filterData) return;\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n\n // Render selected lines\n foregroundRef.current.clearRect(0, 0, innerWidth + 1, innerHeight + 1);\n backgroundRef.current.clearRect(0, 0, innerWidth + 1, innerHeight + 1);\n if (props.filters.length === 0) {\n props.data.forEach((d) => {\n path(d, foregroundRef.current);\n });\n } else {\n props.data.forEach((d) => {\n if (props.filterData.includes(d)) {\n path(d, foregroundRef.current);\n } else {\n path(d, backgroundRef.current);\n }\n });\n }\n }, 100);\n }, [props.filters, props.filterData, props.layout]);\n\n return
;\n}\n\nexport default ParallelCoordinates;\n\nParallelCoordinates.propTypes = {\n title: PropTypes.string.isRequired,\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n y: PropTypes.arrayOf(PropTypes.string).isRequired,\n }).isRequired,\n id: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/PieChart.13f339c7.js b/dist/PieChart.13f339c7.js index d815c8e..c42bed6 100644 --- a/dist/PieChart.13f339c7.js +++ b/dist/PieChart.13f339c7.js @@ -128,9 +128,9 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _tooltip = _interopRequireDefault(require("../../partials/tooltip")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function PieChart(props) { var self = (0, _react.useRef)(); var margin = { @@ -300,7 +300,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/PieChart.13f339c7.js.map b/dist/PieChart.13f339c7.js.map index bc013f5..675433d 100644 --- a/dist/PieChart.13f339c7.js.map +++ b/dist/PieChart.13f339c7.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/PieChart.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","PieChart","props","self","useRef","margin","top","right","bottom","left","data","nest","key","d","fields","x","rollup","v","length","entries","sum","value","pie","sortValues","b","arcs","useEffect","setTimeout","select","current","remove","selectAll","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","radius","Math","min","arc","innerRadius","outerRadius","color","scaleOrdinal","domain","map","range","quantize","interpolateSpectral","svg","append","attr","viewer","concat","legendG","enter","style","text","addLabel","format","offset","y","tooltipHandlers","createTooltip","onClick","selected","values","reduce","point","push","filter","id","title","field","operation","filterAdded","filterRemove","pies","join","on","mousemove","mouseleave","filters","f","forEach","layout","createElement","ref","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","func","number","currentCols","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Array","isArray","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAA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EAAE;MACjDA,EAAE,CAACpE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACkE,KAAK,CAACjG,EAAE,CAAC;EACvB+B,MAAM,CAAC/B,EAAE,CAAC;EAEVgG,MAAM,GAAGjE,MAAM,CAACkE,KAAK,CAACjG,EAAE,CAAC;EACzB,IAAIgG,MAAM,IAAIA,MAAM,CAAC9D,GAAG,IAAI8D,MAAM,CAAC9D,GAAG,CAACE,gBAAgB,CAAC3F,MAAM,EAAE;IAC9DuJ,MAAM,CAAC9D,GAAG,CAACE,gBAAgB,CAACvB,OAAO,CAAC,UAAUsF,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"PieChart.13f339c7.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nfunction PieChart(props) {\n const self = useRef();\n const margin = {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n };\n const data = d3\n .nest()\n .key((d) => d[props.fields.x])\n\n .rollup((v) => v.length)\n .entries(props.data);\n\n const sum = d3.sum(data, (d) => d.value);\n const pie = d3\n .pie()\n .sortValues((a, b) => b - a)\n .value((d) => d.value);\n\n const arcs = pie(data);\n\n useEffect(() => {\n setTimeout(() => {\n // Remove old svg if any\n d3.select(self.current).select('.tooltip').remove('.tooltip');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n // calculate chart dimensions\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n const radius = Math.min(innerWidth, innerHeight) / 2;\n\n const arc = d3.arc().innerRadius(0).outerRadius(radius);\n\n const color = d3\n .scaleOrdinal()\n .domain(data.map((d) => d.key))\n .range(d3.quantize((t) => d3.interpolateSpectral(t), data.length));\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n\n const viewer = svg\n .append('g')\n .attr(\n 'transform',\n `translate(${innerWidth / 2 + margin.left},${innerHeight / 2 + margin.top})`,\n );\n\n if (innerWidth > 500) {\n const legendG = svg\n .selectAll('.legend')\n .data(arcs)\n .enter()\n .append('g')\n .attr('transform', (d, i) => `translate(${innerWidth - 110},${i * 15 + 20})`)\n .attr('class', 'legend');\n\n legendG\n .append('rect') // make a matching color rect\n .attr('width', 13)\n .attr('height', 13)\n .attr('fill', (d, i) => color(i))\n .attr('stroke', 'grey')\n .style('stroke-width', '1px');\n\n legendG\n .append('text') // add the text\n .text((d) => `${d.value} ${d.data.key}`)\n .style('font-size', 15)\n .attr('y', 13)\n .attr('x', 15);\n }\n\n // create a tooltip\n const addLabel = (d) => `Class: ${d.data.key} Count: ${d.data.value} \n Percentage: ${d3.format('.0%')(d.data.value / sum)}`;\n const offset = {\n x: rect.width / 2 + 20,\n y: rect.height / 2,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n\n const onClick = (d) => {\n d.data.selected = !d.data.selected;\n const values = data.reduce((value, point) => {\n if (point.selected) value.push(point.key);\n return value;\n }, []);\n if (values.length > 0) {\n const filter = {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'in',\n values,\n };\n props.filterAdded([filter]);\n } else {\n props.filterRemove(props.id);\n }\n };\n\n const pies = viewer\n .selectAll('path')\n .data(arcs)\n .join('path')\n .attr('class', 'slide')\n .attr('fill', (d) => color(d.data.key))\n .attr('d', arc)\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', onClick);\n\n const filters = props.filters.filter((f) => f.id === props.id);\n if (filters.length > 0) {\n filters[0].values.forEach((value) => {\n data.forEach((d) => {\n if (d.key === value) d.selected = true;\n });\n });\n }\n if (filters.length > 0) {\n pies\n .attr('fill', (d) => (d.data.selected ? color(d.data.key) : '#C0C0C0'))\n .attr('fill-opacity', (d) => (d.data.selected ? 1 : 0.5))\n .attr('stroke', '#CCCCCC')\n .attr('stroke-width', (d) => (d.data.selected ? 3 : 0));\n } else {\n data.forEach((d) => {\n d.selected = false;\n });\n pies\n .attr('fill', (d) => color(d.data.key))\n .attr('fill-opacity', 1)\n .attr('stroke', 'none');\n }\n }, 100);\n }, [props.layout, props.filters]);\n\n return (\n
\n
\n
\n );\n}\n\nexport default PieChart;\n\nPieChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n filterRemove: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/PieChart.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_tooltip","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","PieChart","props","self","useRef","margin","top","right","bottom","left","data","nest","key","d","fields","x","rollup","v","length","entries","sum","value","pie","sortValues","b","arcs","useEffect","setTimeout","select","current","remove","selectAll","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","radius","Math","min","arc","innerRadius","outerRadius","color","scaleOrdinal","domain","map","range","quantize","interpolateSpectral","svg","append","attr","viewer","concat","legendG","enter","style","text","addLabel","format","offset","y","tooltipHandlers","createTooltip","onClick","selected","values","reduce","point","push","filter","id","title","field","operation","filterAdded","filterRemove","pies","join","on","mousemove","mouseleave","filters","f","forEach","layout","createElement","ref","_default","exports","propTypes","PropTypes","arrayOf","shape","isRequired","string","func","number","currentCols"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAmD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,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AAE;MAAEvB,KAAK,EAAE,MAAM;MAAEE,MAAM,EAAE;IAAO;EAAE,gBAC5C/D,MAAA,CAAAS,OAAA,CAAAyG,aAAA;IAAKf,EAAE,EAAEvE,KAAK,CAACuE,EAAG;IAACgB,GAAG,EAAEtF,IAAK;IAACuD,KAAK,EAAE;MAAEvB,KAAK,EAAE,MAAM;MAAEE,MAAM,EAAE;IAAO;EAAE,CAAE,CACtE,CAAC;AAEV;AAAC,IAAAqD,QAAA,GAAAC,OAAA,CAAA5G,OAAA,GAEckB,QAAQ;AAEvBA,QAAQ,CAAC2F,SAAS,GAAG;EACnBlF,IAAI,EAAEmF,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACvDlF,MAAM,EAAE+E,kBAAS,CAACE,KAAK,CAAC;IAAEhF,CAAC,EAAE8E,kBAAS,CAACI,MAAM,CAACD;EAAW,CAAC,CAAC,CAACA,UAAU;EACtEvB,EAAE,EAAEoB,kBAAS,CAACI,MAAM,CAACD,UAAU;EAC/BtB,KAAK,EAAEmB,kBAAS,CAACI,MAAM,CAACD,UAAU;EAClCZ,OAAO,EAAES,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC1DnB,WAAW,EAAEgB,kBAAS,CAACK,IAAI,CAACF,UAAU;EACtClB,YAAY,EAAEe,kBAAS,CAACK,IAAI,CAACF,UAAU;EACvCT,MAAM,EAAEM,kBAAS,CAACE,KAAK,CAAC;IACtB5D,KAAK,EAAE0D,kBAAS,CAACM,MAAM,CAACH,UAAU;IAClCI,WAAW,EAAEP,kBAAS,CAACM,MAAM,CAACH;EAChC,CAAC,CAAC,CAACA;AACL,CAAC","file":"PieChart.13f339c7.js","sourceRoot":"../source","sourcesContent":["import React, { useRef, useEffect } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport createTooltip from '../../partials/tooltip';\n\nfunction PieChart(props) {\n const self = useRef();\n const margin = {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n };\n const data = d3\n .nest()\n .key((d) => d[props.fields.x])\n\n .rollup((v) => v.length)\n .entries(props.data);\n\n const sum = d3.sum(data, (d) => d.value);\n const pie = d3\n .pie()\n .sortValues((a, b) => b - a)\n .value((d) => d.value);\n\n const arcs = pie(data);\n\n useEffect(() => {\n setTimeout(() => {\n // Remove old svg if any\n d3.select(self.current).select('.tooltip').remove('.tooltip');\n d3.select(self.current).selectAll('svg').remove('svg');\n\n // calculate chart dimensions\n const rect = self.current.getBoundingClientRect();\n const innerWidth = rect.width - margin.left - margin.right;\n const innerHeight = rect.height - margin.top - margin.bottom;\n const radius = Math.min(innerWidth, innerHeight) / 2;\n\n const arc = d3.arc().innerRadius(0).outerRadius(radius);\n\n const color = d3\n .scaleOrdinal()\n .domain(data.map((d) => d.key))\n .range(d3.quantize((t) => d3.interpolateSpectral(t), data.length));\n\n const svg = d3\n .select(self.current)\n .append('svg')\n .attr('width', rect.width)\n .attr('height', rect.height);\n\n const viewer = svg\n .append('g')\n .attr(\n 'transform',\n `translate(${innerWidth / 2 + margin.left},${innerHeight / 2 + margin.top})`,\n );\n\n if (innerWidth > 500) {\n const legendG = svg\n .selectAll('.legend')\n .data(arcs)\n .enter()\n .append('g')\n .attr('transform', (d, i) => `translate(${innerWidth - 110},${i * 15 + 20})`)\n .attr('class', 'legend');\n\n legendG\n .append('rect') // make a matching color rect\n .attr('width', 13)\n .attr('height', 13)\n .attr('fill', (d, i) => color(i))\n .attr('stroke', 'grey')\n .style('stroke-width', '1px');\n\n legendG\n .append('text') // add the text\n .text((d) => `${d.value} ${d.data.key}`)\n .style('font-size', 15)\n .attr('y', 13)\n .attr('x', 15);\n }\n\n // create a tooltip\n const addLabel = (d) => `Class: ${d.data.key} Count: ${d.data.value} \n Percentage: ${d3.format('.0%')(d.data.value / sum)}`;\n const offset = {\n x: rect.width / 2 + 20,\n y: rect.height / 2,\n };\n const tooltipHandlers = createTooltip(self.current, addLabel, offset);\n\n const onClick = (d) => {\n d.data.selected = !d.data.selected;\n const values = data.reduce((value, point) => {\n if (point.selected) value.push(point.key);\n return value;\n }, []);\n if (values.length > 0) {\n const filter = {\n id: props.id,\n title: props.title,\n field: props.fields.x,\n operation: 'in',\n values,\n };\n props.filterAdded([filter]);\n } else {\n props.filterRemove(props.id);\n }\n };\n\n const pies = viewer\n .selectAll('path')\n .data(arcs)\n .join('path')\n .attr('class', 'slide')\n .attr('fill', (d) => color(d.data.key))\n .attr('d', arc)\n .on('mousemove', tooltipHandlers.mousemove)\n .on('mouseleave', tooltipHandlers.mouseleave)\n .on('click', onClick);\n\n const filters = props.filters.filter((f) => f.id === props.id);\n if (filters.length > 0) {\n filters[0].values.forEach((value) => {\n data.forEach((d) => {\n if (d.key === value) d.selected = true;\n });\n });\n }\n if (filters.length > 0) {\n pies\n .attr('fill', (d) => (d.data.selected ? color(d.data.key) : '#C0C0C0'))\n .attr('fill-opacity', (d) => (d.data.selected ? 1 : 0.5))\n .attr('stroke', '#CCCCCC')\n .attr('stroke-width', (d) => (d.data.selected ? 3 : 0));\n } else {\n data.forEach((d) => {\n d.selected = false;\n });\n pies\n .attr('fill', (d) => color(d.data.key))\n .attr('fill-opacity', 1)\n .attr('stroke', 'none');\n }\n }, 100);\n }, [props.layout, props.filters]);\n\n return (\n
\n
\n
\n );\n}\n\nexport default PieChart;\n\nPieChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({ x: PropTypes.string.isRequired }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n filterRemove: PropTypes.func.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/ScatterChart.9b7d43a5.js b/dist/ScatterChart.9b7d43a5.js index 9667346..4590da3 100644 --- a/dist/ScatterChart.9b7d43a5.js +++ b/dist/ScatterChart.9b7d43a5.js @@ -128,22 +128,22 @@ var _react = _interopRequireWildcard(require("react")); var d3 = _interopRequireWildcard(require("d3")); var _propTypes = _interopRequireDefault(require("prop-types")); var _utils = require("../../../common/utils"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } var ScatterChart = exports.default = /*#__PURE__*/function (_PureComponent) { _inherits(ScatterChart, _PureComponent); var _super = _createSuper(ScatterChart); @@ -354,7 +354,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/ScatterChart.9b7d43a5.js.map b/dist/ScatterChart.9b7d43a5.js.map index 7dbb331..c371dcc 100644 --- a/dist/ScatterChart.9b7d43a5.js.map +++ b/dist/ScatterChart.9b7d43a5.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/ScatterChart.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","enumerable","configurable","writable","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","ScatterChart","exports","_PureComponent","_super","_this","React","createRef","state","margin","top","right","bottom","left","data","filter","d","fields","x","y","z","componentDidMount","componentDidUpdate","_this2","setTimeout","select","current","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","canvas","append","attr","style","concat","svg","viewer","xScale","createScaleLiner","yScale","radiusScale","getCurrentMouseClickPosition","console","log","mouseX","event","sourceEvent","clientX","node","mouseY","clientY","axisBottom","tickSize","axisLeft","brush","extent","on","startPosition","endPosition","startX","Math","min","startY","selectedArea","abs","end","draw","drawPoint","point","cx","cy","context","beginPath","arc","PI","closePath","fill","stroke","_this3","getContext","clearRect","fillStyle","strokeWidth","strokeStyle","globalAlpha","filters","forEach","filterData","includes","f","range","paddingPercent","domainExtent","domainPadding","scaleLiner","scaleLinear","domain","nice","selection","_ref","x0","y0","_ref2","max","x1","y1","id","title","field","operation","values","numFixed","invert","filterAdded","render","createElement","ref","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","string","func","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Array","isArray","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAJ,CAAA,UAAAG,CAAA,CAAAE,GAAA,CAAAL,CAAA,OAAAM,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAZ,CAAA,oBAAAY,CAAA,IAAAH,MAAA,CAA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,CAAC,CAACwF,IAAI,CAAC,UAAUxF,EAAE,EAAE;IAC7D,OAAOmD,cAAc,CAACC,MAAM,CAACC,aAAa,EAAErD,EAAE,CAAC;EACjD,CAAC,CAAC;AACJ;AAEA,SAAS4D,YAAYA,CAACtC,MAAM,EAAEtB,EAAE,EAAE;EAChC,IAAIsF,MAAM,GAAGhE,MAAM,CAACiE,KAAK,CAACvF,EAAE,CAAC;EAC7BsB,MAAM,CAACI,OAAO,GAAG,CAAC,CAAC;EACnB,IAAI4D,MAAM,EAAE;IACVA,MAAM,CAAC7D,GAAG,CAAC1H,IAAI,GAAGuH,MAAM,CAACI,OAAO;EAClC;EAEA,IAAI4D,MAAM,IAAIA,MAAM,CAAC7D,GAAG,IAAI6D,MAAM,CAAC7D,GAAG,CAACG,iBAAiB,CAAC7L,MAAM,EAAE;IAC/DuP,MAAM,CAAC7D,GAAG,CAACG,iBAAiB,CAAChD,OAAO,CAAC,UAAU6G,EAAE,EAAE;MACjDA,EAAE,CAACnE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACiE,KAAK,CAACvF,EAAE,CAAC;EACvBsB,MAAM,CAACtB,EAAE,CAAC;EAEVsF,MAAM,GAAGhE,MAAM,CAACiE,KAAK,CAACvF,EAAE,CAAC;EACzB,IAAIsF,MAAM,IAAIA,MAAM,CAAC7D,GAAG,IAAI6D,MAAM,CAAC7D,GAAG,CAACE,gBAAgB,CAAC5L,MAAM,EAAE;IAC9DuP,MAAM,CAAC7D,GAAG,CAACE,gBAAgB,CAAC/C,OAAO,CAAC,UAAU6G,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"ScatterChart.9b7d43a5.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nexport default class ScatterChart extends PureComponent {\n constructor(props) {\n super(props);\n\n this.self = React.createRef();\n this.state = {\n margin: {\n top: 5,\n right: 10,\n bottom: 25,\n left: 25,\n },\n };\n this.state.data = this.props.data.filter(\n (d) => d[this.props.fields.x] !== 'N/A'\n && d[this.props.fields.y] !== 'N/A'\n && d[this.props.fields.z] !== 'N/A',\n );\n }\n\n componentDidMount() {\n this.componentDidUpdate();\n }\n\n componentDidUpdate() {\n setTimeout(() => {\n d3.select(this.self.current).selectAll('canvas').remove('canvas');\n d3.select(this.self.current).selectAll('svg').remove('svg');\n this.rect = this.self.current.getBoundingClientRect();\n const innerWidth = this.rect.width - this.state.margin.left - this.state.margin.right;\n const innerHeight = this.rect.height - this.state.margin.top - this.state.margin.bottom;\n\n this.canvas = d3\n .select(this.self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${this.state.margin.left}px,${this.state.margin.top}px)`);\n\n // create svg\n const svg = d3\n .select(this.self.current)\n .append('svg')\n .attr('width', this.rect.width)\n .attr('height', this.rect.height)\n .attr('transform', `translate(${0},${-innerHeight})`);\n\n // create viewer\n const viewer = svg\n .append('g')\n .attr('transform', `translate(${this.state.margin.left},0)`);\n\n //\n this.xScale = this.createScaleLiner(this.props.fields.x, [0, innerWidth]);\n this.yScale = this.createScaleLiner(this.props.fields.y, [innerHeight, 0]);\n this.radiusScale = this.createScaleLiner(this.props.fields.z, [3, 10]);\n const getCurrentMouseClickPosition = () => {\n console.log(svg);\n const mouseX = d3.event.sourceEvent.clientX - svg.node().getBoundingClientRect().x\n - this.state.margin.left;\n const mouseY = d3.event.sourceEvent.clientY - svg.node().getBoundingClientRect().y;\n return [mouseX, mouseY];\n };\n viewer\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(this.xScale).tickSize(-innerHeight));\n\n // add the y Axis\n viewer.append('g').call(d3.axisLeft(this.yScale).tickSize(-innerWidth));\n\n this.brush = d3\n .brush()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ]).on('start', () => {\n this.startPosition = getCurrentMouseClickPosition();\n }).on('brush', () => {\n this.endPosition = getCurrentMouseClickPosition();\n svg.selectAll('rect').remove('rect');\n const startX = Math.min(this.startPosition[0], this.endPosition[0]);\n const startY = Math.min(this.startPosition[1], this.endPosition[1]);\n const selectedArea = svg.append('rect')\n .attr('position', 'absolute')\n .attr('x', startX + this.state.margin.left)\n .attr('y', startY)\n .attr('width', Math.abs(this.endPosition[0] - this.startPosition[0]))\n .attr('height', Math.abs(this.endPosition[1] - this.startPosition[1]))\n .attr('fill', 'rgba(211, 211, 211, 0.5)');\n })\n .on('end', () => {\n this.endPosition = getCurrentMouseClickPosition();\n svg.selectAll('rect').remove('rect');\n const startX = Math.min(this.startPosition[0], this.endPosition[0]);\n const startY = Math.min(this.startPosition[1], this.endPosition[1]);\n const selectedArea=svg.append('rect')\n .attr('position', 'absolute')\n .attr('x', startX + this.state.margin.left)\n .attr('y', startY)\n .attr('width', Math.abs(this.endPosition[0] - this.startPosition[0]))\n .attr('height', Math.abs(this.endPosition[1] - this.startPosition[1]))\n .attr('fill', 'rgba(211, 211, 211, 0.5)');\n this.end();\n });\n\n viewer.append('g').call(this.brush);\n\n this.draw();\n }, 100);\n }\n\n drawPoint(point) {\n const cx = this.xScale(point[this.props.fields.x]);\n const cy = this.yScale(point[this.props.fields.y]);\n const r = this.props.fields.z ? this.radiusScale(point[this.props.fields.z]) : 3;\n\n this.context.beginPath();\n this.context.arc(cx, cy, r, 0, 2 * Math.PI);\n this.context.closePath();\n this.context.fill();\n this.context.stroke();\n }\n\n draw() {\n this.context = this.canvas.node().getContext('2d');\n this.context.clearRect(0, 0, this.rect.width, this.rect.height);\n this.context.fillStyle = '#87CEEB';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#4682B4';\n this.context.globalAlpha = 1;\n\n if (this.props.filters.length === 0) {\n this.state.data.forEach((point) => {\n this.drawPoint(point);\n });\n } else {\n this.state.data.forEach((point) => {\n if (this.props.filterData.includes(point)) {\n this.context.fillStyle = '#87CEEB';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#4682B4';\n this.context.globalAlpha = 1;\n } else {\n this.context.fillStyle = '#c0c0c0c0';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#000000';\n this.context.globalAlpha = 0.2;\n }\n this.drawPoint(point);\n });\n }\n }\n\n createScaleLiner(f, range) {\n const paddingPercent = 0.1; // Adjust the percentage of padding as needed\n const domainExtent = d3.extent(this.state.data, (d) => d[f]);\n const domainPadding = (domainExtent[1] - domainExtent[0]) * paddingPercent;\n const scaleLiner = d3\n .scaleLinear()\n .domain([domainExtent[0] - domainPadding,\n domainExtent[1] + domainPadding])\n .range(range)\n .nice();\n return scaleLiner;\n }\n\n end() {\n if (!d3.event.selection) return;\n\n const [x0, y0] = [Math.min(this.startPosition[0], this.endPosition[0]),\n Math.min(this.startPosition[1], this.endPosition[1])];\n const [x1, y1] = [Math.max(this.startPosition[0], this.endPosition[0]),\n Math.max(this.startPosition[1], this.endPosition[1])];\n\n const filters = [\n {\n id: `${this.props.id}_x`,\n title: this.props.title,\n field: this.props.fields.x,\n operation: 'range',\n values: [numFixed(this.xScale.invert(x0)), numFixed(this.xScale.invert(x1))],\n },\n {\n id: `${this.props.id}_y`,\n title: this.props.title,\n field: this.props.fields.y,\n operation: 'range',\n values: [numFixed(this.yScale.invert(y1)), numFixed(this.yScale.invert(y0))],\n },\n ];\n this.props.filterAdded(filters);\n }\n\n render() {\n return (\n
\n );\n }\n}\n\nScatterChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n x: PropTypes.string.isRequired,\n y: PropTypes.string.isRequired,\n z: PropTypes.string,\n }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/ScatterChart.js"],"names":["_react","_interopRequireWildcard","require","d3","_propTypes","_interopRequireDefault","_utils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","TypeError","_defineProperties","length","enumerable","configurable","writable","_toPropertyKey","key","_createClass","_toPrimitive","toPrimitive","String","Number","_inherits","create","value","_setPrototypeOf","setPrototypeOf","bind","_createSuper","_isNativeReflectConstruct","_getPrototypeOf","s","Reflect","construct","arguments","apply","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","Boolean","valueOf","getPrototypeOf","ScatterChart","exports","_PureComponent","_super","props","_this","self","React","createRef","state","margin","top","right","bottom","left","data","filter","d","fields","x","y","z","componentDidMount","componentDidUpdate","_this2","setTimeout","select","current","selectAll","remove","rect","getBoundingClientRect","innerWidth","width","innerHeight","height","canvas","append","attr","style","concat","svg","viewer","xScale","createScaleLiner","yScale","radiusScale","getCurrentMouseClickPosition","console","log","mouseX","event","sourceEvent","clientX","node","mouseY","clientY","axisBottom","tickSize","axisLeft","brush","extent","on","startPosition","endPosition","startX","Math","min","startY","selectedArea","abs","end","draw","drawPoint","point","cx","cy","context","beginPath","arc","PI","closePath","fill","stroke","_this3","getContext","clearRect","fillStyle","strokeWidth","strokeStyle","globalAlpha","filters","forEach","filterData","includes","f","range","paddingPercent","domainExtent","domainPadding","scaleLiner","scaleLinear","domain","nice","selection","_ref","x0","y0","_ref2","max","x1","y1","id","title","field","operation","values","numFixed","invert","filterAdded","render","createElement","ref","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","string","func"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,EAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAe,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GA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E,EAAE,IAAI,CAAC5G,KAAK,CAAC4G,EAAG;QAACU,GAAG,EAAE,IAAI,CAACpH,IAAK;QAACiC,KAAK,EAAE;UAAEN,KAAK,EAAE,MAAM;UAAEE,MAAM,EAAE;QAAO;MAAE,CAAE,CAAC;IAExF;EAAC;EAAA,OAAAnC,YAAA;AAAA,EAtMuC2H,oBAAa;AAyMvD3H,YAAY,CAAC4H,SAAS,GAAG;EACvB7G,IAAI,EAAE8G,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACvDnC,UAAU,EAAEgC,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC7D9G,MAAM,EAAE2G,kBAAS,CAACE,KAAK,CAAC;IACtB5G,CAAC,EAAE0G,kBAAS,CAACI,MAAM,CAACD,UAAU;IAC9B5G,CAAC,EAAEyG,kBAAS,CAACI,MAAM,CAACD,UAAU;IAC9B3G,CAAC,EAAEwG,kBAAS,CAACI;EACf,CAAC,CAAC,CAACD,UAAU;EACbhB,EAAE,EAAEa,kBAAS,CAACI,MAAM,CAACD,UAAU;EAC/Bf,KAAK,EAAEY,kBAAS,CAACI,MAAM,CAACD,UAAU;EAClCrC,OAAO,EAAEkC,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC1DT,WAAW,EAAEM,kBAAS,CAACK,IAAI,CAACF;AAC9B,CAAC","file":"ScatterChart.9b7d43a5.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport * as d3 from 'd3';\nimport PropTypes from 'prop-types';\nimport { numFixed } from '../../../common/utils';\n\nexport default class ScatterChart extends PureComponent {\n constructor(props) {\n super(props);\n\n this.self = React.createRef();\n this.state = {\n margin: {\n top: 5,\n right: 10,\n bottom: 25,\n left: 25,\n },\n };\n this.state.data = this.props.data.filter(\n (d) => d[this.props.fields.x] !== 'N/A'\n && d[this.props.fields.y] !== 'N/A'\n && d[this.props.fields.z] !== 'N/A',\n );\n }\n\n componentDidMount() {\n this.componentDidUpdate();\n }\n\n componentDidUpdate() {\n setTimeout(() => {\n d3.select(this.self.current).selectAll('canvas').remove('canvas');\n d3.select(this.self.current).selectAll('svg').remove('svg');\n this.rect = this.self.current.getBoundingClientRect();\n const innerWidth = this.rect.width - this.state.margin.left - this.state.margin.right;\n const innerHeight = this.rect.height - this.state.margin.top - this.state.margin.bottom;\n\n this.canvas = d3\n .select(this.self.current)\n .append('canvas')\n .attr('width', innerWidth)\n .attr('height', innerHeight)\n .style('transform', `translate(${this.state.margin.left}px,${this.state.margin.top}px)`);\n\n // create svg\n const svg = d3\n .select(this.self.current)\n .append('svg')\n .attr('width', this.rect.width)\n .attr('height', this.rect.height)\n .attr('transform', `translate(${0},${-innerHeight})`);\n\n // create viewer\n const viewer = svg\n .append('g')\n .attr('transform', `translate(${this.state.margin.left},0)`);\n\n //\n this.xScale = this.createScaleLiner(this.props.fields.x, [0, innerWidth]);\n this.yScale = this.createScaleLiner(this.props.fields.y, [innerHeight, 0]);\n this.radiusScale = this.createScaleLiner(this.props.fields.z, [3, 10]);\n const getCurrentMouseClickPosition = () => {\n console.log(svg);\n const mouseX = d3.event.sourceEvent.clientX - svg.node().getBoundingClientRect().x\n - this.state.margin.left;\n const mouseY = d3.event.sourceEvent.clientY - svg.node().getBoundingClientRect().y;\n return [mouseX, mouseY];\n };\n viewer\n .append('g')\n .attr('transform', `translate(0,${innerHeight})`)\n .call(d3.axisBottom(this.xScale).tickSize(-innerHeight));\n\n // add the y Axis\n viewer.append('g').call(d3.axisLeft(this.yScale).tickSize(-innerWidth));\n\n this.brush = d3\n .brush()\n .extent([\n [0, 0],\n [innerWidth, innerHeight],\n ]).on('start', () => {\n this.startPosition = getCurrentMouseClickPosition();\n }).on('brush', () => {\n this.endPosition = getCurrentMouseClickPosition();\n svg.selectAll('rect').remove('rect');\n const startX = Math.min(this.startPosition[0], this.endPosition[0]);\n const startY = Math.min(this.startPosition[1], this.endPosition[1]);\n const selectedArea = svg.append('rect')\n .attr('position', 'absolute')\n .attr('x', startX + this.state.margin.left)\n .attr('y', startY)\n .attr('width', Math.abs(this.endPosition[0] - this.startPosition[0]))\n .attr('height', Math.abs(this.endPosition[1] - this.startPosition[1]))\n .attr('fill', 'rgba(211, 211, 211, 0.5)');\n })\n .on('end', () => {\n this.endPosition = getCurrentMouseClickPosition();\n svg.selectAll('rect').remove('rect');\n const startX = Math.min(this.startPosition[0], this.endPosition[0]);\n const startY = Math.min(this.startPosition[1], this.endPosition[1]);\n const selectedArea=svg.append('rect')\n .attr('position', 'absolute')\n .attr('x', startX + this.state.margin.left)\n .attr('y', startY)\n .attr('width', Math.abs(this.endPosition[0] - this.startPosition[0]))\n .attr('height', Math.abs(this.endPosition[1] - this.startPosition[1]))\n .attr('fill', 'rgba(211, 211, 211, 0.5)');\n this.end();\n });\n\n viewer.append('g').call(this.brush);\n\n this.draw();\n }, 100);\n }\n\n drawPoint(point) {\n const cx = this.xScale(point[this.props.fields.x]);\n const cy = this.yScale(point[this.props.fields.y]);\n const r = this.props.fields.z ? this.radiusScale(point[this.props.fields.z]) : 3;\n\n this.context.beginPath();\n this.context.arc(cx, cy, r, 0, 2 * Math.PI);\n this.context.closePath();\n this.context.fill();\n this.context.stroke();\n }\n\n draw() {\n this.context = this.canvas.node().getContext('2d');\n this.context.clearRect(0, 0, this.rect.width, this.rect.height);\n this.context.fillStyle = '#87CEEB';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#4682B4';\n this.context.globalAlpha = 1;\n\n if (this.props.filters.length === 0) {\n this.state.data.forEach((point) => {\n this.drawPoint(point);\n });\n } else {\n this.state.data.forEach((point) => {\n if (this.props.filterData.includes(point)) {\n this.context.fillStyle = '#87CEEB';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#4682B4';\n this.context.globalAlpha = 1;\n } else {\n this.context.fillStyle = '#c0c0c0c0';\n this.context.strokeWidth = 1;\n this.context.strokeStyle = '#000000';\n this.context.globalAlpha = 0.2;\n }\n this.drawPoint(point);\n });\n }\n }\n\n createScaleLiner(f, range) {\n const paddingPercent = 0.1; // Adjust the percentage of padding as needed\n const domainExtent = d3.extent(this.state.data, (d) => d[f]);\n const domainPadding = (domainExtent[1] - domainExtent[0]) * paddingPercent;\n const scaleLiner = d3\n .scaleLinear()\n .domain([domainExtent[0] - domainPadding,\n domainExtent[1] + domainPadding])\n .range(range)\n .nice();\n return scaleLiner;\n }\n\n end() {\n if (!d3.event.selection) return;\n\n const [x0, y0] = [Math.min(this.startPosition[0], this.endPosition[0]),\n Math.min(this.startPosition[1], this.endPosition[1])];\n const [x1, y1] = [Math.max(this.startPosition[0], this.endPosition[0]),\n Math.max(this.startPosition[1], this.endPosition[1])];\n\n const filters = [\n {\n id: `${this.props.id}_x`,\n title: this.props.title,\n field: this.props.fields.x,\n operation: 'range',\n values: [numFixed(this.xScale.invert(x0)), numFixed(this.xScale.invert(x1))],\n },\n {\n id: `${this.props.id}_y`,\n title: this.props.title,\n field: this.props.fields.y,\n operation: 'range',\n values: [numFixed(this.yScale.invert(y1)), numFixed(this.yScale.invert(y0))],\n },\n ];\n this.props.filterAdded(filters);\n }\n\n render() {\n return (\n
\n );\n }\n}\n\nScatterChart.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.shape({\n x: PropTypes.string.isRequired,\n y: PropTypes.string.isRequired,\n z: PropTypes.string,\n }).isRequired,\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterAdded: PropTypes.func.isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/SelectDataTable.48b05c90.js b/dist/SelectDataTable.48b05c90.js index a74f45a..ac44f50 100644 --- a/dist/SelectDataTable.48b05c90.js +++ b/dist/SelectDataTable.48b05c90.js @@ -133,32 +133,32 @@ var _arrayMove = _interopRequireDefault(require("array-move")); var _propTypes = _interopRequireDefault(require("prop-types")); var _VisDataTableControl = _interopRequireDefault(require("./VisDataTableControl/VisDataTableControl")); require("./VisDataTable.css"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } var _cellRenderer = function cellRenderer(d, f, bg) { var urlElt; bg = bg || ''; @@ -471,7 +471,6 @@ var SelectDataTable = exports.default = /*#__PURE__*/function (_PureComponent) { }); }, 300); // 300 milliseconds delay }, - position: { x: 0 }, @@ -651,7 +650,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/SelectDataTable.48b05c90.js.map b/dist/SelectDataTable.48b05c90.js.map index 9a7ab38..bc572aa 100644 --- a/dist/SelectDataTable.48b05c90.js.map +++ b/dist/SelectDataTable.48b05c90.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/VisDataTable/SelectDataTable.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","iter","Array","from","isArray","_arrayLikeToArray","_createForOfIteratorHelper","allowArrayLike","it","length","F","s","done","value","_e","f","normalCompletion","didErr","err","step","next","_e2","return","minLen","toString","slice","name","test","len","arr2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","_toPropertyKey","configurable","writable","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","cellRenderer","d","bg","urlElt","link","url","field","urlbase","createElement","href","rowData","cellData","join","Fragment","dataKey","className","title","style","backgroundColor","rowClassName","_ref","index","SelectDataTable","exports","_PureComponent","_super","_this","console","log","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","selected","marked","containerRef","React","createRef","autoSizer","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","getFileExt","slide_url","lastPart","substring","lastIndexOf","lastDotIndex","downloadSelected","_this2","downloadLimit","configProps","data","alert","_iterator","_step","_loop","x","prevState","indexOf","concat","_iterator2","_step2","_loop2","record","fetch","mode","then","json","collectionId","y","collectionDoc","collectionName","window","location","protocol","replace","subId","error","imageId","filename","document","download","body","appendChild","click","removeChild","catch","collator","Intl","Collator","numeric","sensitivity","_this$props","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this3","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","zIndex","onMouseDown","stopPropagation","selectionHandler","isChecked","item","downloadField","existingIndex","_ref12","isResize","render","_this4","_this$state2","finalData","ref","height","list","onCheckChanged","onAllCheck","AutoSizer","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","onClick","faFileArrowDown","color","_ref15","type","includes","onChange","cellDataGetter","_ref16","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","ws","onmessage","JSON","parse","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","message","stack","overlay","createErrorOverlay","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;EACjD,CAAC,CAAC;AACJ;AAEA,SAASO,YAAYA,CAACnC,MAAM,EAAE4B,EAAE,EAAE;EAChC,IAAI4B,MAAM,GAAGxD,MAAM,CAACyD,KAAK,CAAC7B,EAAE,CAAC;EAC7B5B,MAAM,CAACI,OAAO,GAAG,CAAC,CAAC;EACnB,IAAIoD,MAAM,EAAE;IACVA,MAAM,CAACrD,GAAG,CAACjI,IAAI,GAAG8H,MAAM,CAACI,OAAO;EAClC;EAEA,IAAIoD,MAAM,IAAIA,MAAM,CAACrD,GAAG,IAAIqD,MAAM,CAACrD,GAAG,CAACG,iBAAiB,CAACjS,MAAM,EAAE;IAC/DmV,MAAM,CAACrD,GAAG,CAACG,iBAAiB,CAACnQ,OAAO,CAAC,UAAUwT,EAAE,EAAE;MACjDA,EAAE,CAAC3D,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACyD,KAAK,CAAC7B,EAAE,CAAC;EACvB5B,MAAM,CAAC4B,EAAE,CAAC;EAEV4B,MAAM,GAAGxD,MAAM,CAACyD,KAAK,CAAC7B,EAAE,CAAC;EACzB,IAAI4B,MAAM,IAAIA,MAAM,CAACrD,GAAG,IAAIqD,MAAM,CAACrD,GAAG,CAACE,gBAAgB,CAAChS,MAAM,EAAE;IAC9DmV,MAAM,CAACrD,GAAG,CAACE,gBAAgB,CAAClQ,OAAO,CAAC,UAAUwT,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"SelectDataTable.48b05c90.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort, faFileArrowDown } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f, bg) => {\n let urlElt;\n bg = bg || '';\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n // urlElt = d.cellData;\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class SelectDataTable extends PureComponent {\n constructor(props) {\n console.log(\"constructed, showing props\")\n console.log(props)\n super(props);\n const fWidth = 1 / this.props.fields.length;\n let fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n //fields = fields.unshift({width: 50, isShow: true})\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n selected: [],\n marked: []\n };\n this.containerRef = React.createRef();\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n getFileExt(slide_url) {\n // gets the extension. if no extension, then entire last path elem\n // functionally should get the last thing separated by either / or .\n let lastPart = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n let lastDotIndex = lastPart.lastIndexOf('.');\n if (lastDotIndex !== -1) {\n return lastPart.substring(lastDotIndex + 1);\n }\n return lastPart;\n}\n\n downloadSelected() {\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n let data = this.state.selected\n if (data.length > downloadLimit){\n data = data.slice(0, downloadLimit);\n alert(\"Limiting download to first \" + downloadLimit)\n }\n for (let x of data) {\n this.setState(prevState => {\n if (prevState.marked.indexOf(x) === -1) {\n return {\n marked: [...prevState.marked, x]\n };\n }\n return null;\n });\n }\n this.setState({\"selected\":[]});\n\n console.log(data)\n console.log(\"about to try?\")\n console.log(this.props.configProps)\n // trigger downloads from pathdb\n for (let record of data){\n console.log(\"inside loop\")\n console.log(\"trying to get metadata for slide with pathdb id\", record)\n fetch(\"/node/\" + record + \"?_format=json\", {mode: \"cors\"}).then(x=>x.json()).then(x=>{ \n let collectionId = x['field_collection'][0]['target_id'];\n // look for collection in pathdb\n fetch(\"/taxonomy/term/\" + collectionId + \"?_format=json\", {mode: \"cors\"}).then(y=>y.json()).then(collectionDoc=>{\n let collectionName = collectionDoc['name']['0']['value'];\n console.log(\"looking at wsi url: \", x['field_wsiimage'][0]['url'])\n let slide_url = x['field_wsiimage'][0]['url']\n if (window.location.protocol === \"https:\") {\n slide_url = slide_url.replace(/^http:\\/\\//i, 'https://');\n }\n console.log(\"using anchor method\")\n //let filename = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n let subId = \"subject\";\n try {\n subId = x['clinicaltrialsubjectid'][0]['value'];\n } catch (error) {\n console.log(\"subject id missing for download, just using 'image'\");\n console.error(error);\n }\n let imageId = record;\n try {\n imageId = x['imageid'][0]['value'];\n } catch (error) {\n console.log(\"image id missing for download, just using pathdb id\");\n console.error(error);\n }\n let filename = collectionName + \"_\" + subId + \"_\" + imageId + \".\" + this.getFileExt(slide_url);\n const a = document.createElement('a');\n a.href = slide_url;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n })\n\n }).catch(console.error)\n }\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n {}\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n selectionHandler(isChecked, rowData){\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n console.log(\"chexmix\", isChecked, rowData)\n const { selected } = this.state;\n console.log(\"state selected before change\", selected)\n let item = rowData[this.props.configProps.downloadField];\n const existingIndex = selected.indexOf(item);\n // if check is true, add to state\n if (isChecked && existingIndex === -1) {\n this.setState(prevState => ({\n selected: [...prevState.selected, item]\n }));\n }\n // if check is false, remove from state\n if (!isChecked && existingIndex !== -1) {\n this.setState(prevState => ({\n selected: prevState.selected.filter(x => x !== item)\n }));\n }\n if (this.state.selected.length > downloadLimit - 2) {\n alert(\"Warning: We limit to at most \" + downloadLimit + \" concurrent downloads.\")\n }\n }\n\n sortHandler({ sortBy, sortDirection }) {\n\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection, selected, marked } = this.state;\n const finalData = this.getSortData();\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n
{ this.downloadSelected() }}>
}\n cellRenderer={({ rowData }) => (\n this.selectionHandler(e.target.checked, rowData)}\n />\n )}\n />\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => {\n let color = marked.includes(d.rowData[this.props.configProps.downloadField])? 'lightGray': '';\n return cellRenderer(d, f, color)\n }}\n />\n ))}\n \n )}\n
\n
\n );\n }\n}\n\nSelectDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/VisDataTable/SelectDataTable.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","Array","from","isArray","_arrayLikeToArray","_createForOfIteratorHelper","length","_n","F","s","done","value","f","next","return","toString","slice","name","test","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","configurable","writable","_classCallCheck","_defineProperties","key","_createClass","_toPrimitive","toPrimitive","String","Number","_inherits","create","_setPrototypeOf","setPrototypeOf","bind","_createSuper","_isNativeReflectConstruct","_getPrototypeOf","Reflect","construct","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","Boolean","valueOf","getPrototypeOf","cellRenderer","d","bg","urlElt","link","url","field","urlbase","createElement","target","href","rowData","cellData","join","Fragment","dataKey","className","title","style","backgroundColor","rowClassName","_ref","index","SelectDataTable","exports","_PureComponent","_super","props","_this","console","log","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","selected","marked","containerRef","React","createRef","autoSizer","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","getFileExt","slide_url","lastPart","substring","lastIndexOf","lastDotIndex","downloadSelected","_this2","downloadLimit","configProps","data","alert","_iterator","_step","_loop","x","prevState","indexOf","concat","err","_iterator2","_step2","_loop2","record","fetch","mode","then","json","collectionId","y","collectionDoc","collectionName","window","location","protocol","replace","subId","error","imageId","filename","document","download","body","appendChild","click","removeChild","catch","collator","Intl","Collator","undefined","numeric","sensitivity","_this$props","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this3","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","zIndex","onMouseDown","stopPropagation","selectionHandler","isChecked","item","downloadField","existingIndex","_ref12","isResize","render","_this4","_this$state2","finalData","ref","height","list","onCheckChanged","onAllCheck","AutoSizer","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","onClick","faFileArrowDown","color","_ref15","type","includes","onChange","cellDataGetter","_ref16","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,UAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,oBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACAA,OAAA;AAA4B,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAA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ACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAACC,UAAU;EACvD/E,OAAO,EAAE4E,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC;AAClD,CAAC","file":"SelectDataTable.48b05c90.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort, faFileArrowDown } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f, bg) => {\n let urlElt;\n bg = bg || '';\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n // urlElt = d.cellData;\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class SelectDataTable extends PureComponent {\n constructor(props) {\n console.log(\"constructed, showing props\")\n console.log(props)\n super(props);\n const fWidth = 1 / this.props.fields.length;\n let fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n //fields = fields.unshift({width: 50, isShow: true})\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n selected: [],\n marked: []\n };\n this.containerRef = React.createRef();\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n getFileExt(slide_url) {\n // gets the extension. if no extension, then entire last path elem\n // functionally should get the last thing separated by either / or .\n let lastPart = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n let lastDotIndex = lastPart.lastIndexOf('.');\n if (lastDotIndex !== -1) {\n return lastPart.substring(lastDotIndex + 1);\n }\n return lastPart;\n}\n\n downloadSelected() {\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n let data = this.state.selected\n if (data.length > downloadLimit){\n data = data.slice(0, downloadLimit);\n alert(\"Limiting download to first \" + downloadLimit)\n }\n for (let x of data) {\n this.setState(prevState => {\n if (prevState.marked.indexOf(x) === -1) {\n return {\n marked: [...prevState.marked, x]\n };\n }\n return null;\n });\n }\n this.setState({\"selected\":[]});\n\n console.log(data)\n console.log(\"about to try?\")\n console.log(this.props.configProps)\n // trigger downloads from pathdb\n for (let record of data){\n console.log(\"inside loop\")\n console.log(\"trying to get metadata for slide with pathdb id\", record)\n fetch(\"/node/\" + record + \"?_format=json\", {mode: \"cors\"}).then(x=>x.json()).then(x=>{ \n let collectionId = x['field_collection'][0]['target_id'];\n // look for collection in pathdb\n fetch(\"/taxonomy/term/\" + collectionId + \"?_format=json\", {mode: \"cors\"}).then(y=>y.json()).then(collectionDoc=>{\n let collectionName = collectionDoc['name']['0']['value'];\n console.log(\"looking at wsi url: \", x['field_wsiimage'][0]['url'])\n let slide_url = x['field_wsiimage'][0]['url']\n if (window.location.protocol === \"https:\") {\n slide_url = slide_url.replace(/^http:\\/\\//i, 'https://');\n }\n console.log(\"using anchor method\")\n //let filename = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n let subId = \"subject\";\n try {\n subId = x['clinicaltrialsubjectid'][0]['value'];\n } catch (error) {\n console.log(\"subject id missing for download, just using 'image'\");\n console.error(error);\n }\n let imageId = record;\n try {\n imageId = x['imageid'][0]['value'];\n } catch (error) {\n console.log(\"image id missing for download, just using pathdb id\");\n console.error(error);\n }\n let filename = collectionName + \"_\" + subId + \"_\" + imageId + \".\" + this.getFileExt(slide_url);\n const a = document.createElement('a');\n a.href = slide_url;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n })\n\n }).catch(console.error)\n }\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n {}\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n selectionHandler(isChecked, rowData){\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n console.log(\"chexmix\", isChecked, rowData)\n const { selected } = this.state;\n console.log(\"state selected before change\", selected)\n let item = rowData[this.props.configProps.downloadField];\n const existingIndex = selected.indexOf(item);\n // if check is true, add to state\n if (isChecked && existingIndex === -1) {\n this.setState(prevState => ({\n selected: [...prevState.selected, item]\n }));\n }\n // if check is false, remove from state\n if (!isChecked && existingIndex !== -1) {\n this.setState(prevState => ({\n selected: prevState.selected.filter(x => x !== item)\n }));\n }\n if (this.state.selected.length > downloadLimit - 2) {\n alert(\"Warning: We limit to at most \" + downloadLimit + \" concurrent downloads.\")\n }\n }\n\n sortHandler({ sortBy, sortDirection }) {\n\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection, selected, marked } = this.state;\n const finalData = this.getSortData();\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n
{ this.downloadSelected() }}>
}\n cellRenderer={({ rowData }) => (\n this.selectionHandler(e.target.checked, rowData)}\n />\n )}\n />\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => {\n let color = marked.includes(d.rowData[this.props.configProps.downloadField])? 'lightGray': '';\n return cellRenderer(d, f, color)\n }}\n />\n ))}\n \n )}\n
\n
\n );\n }\n}\n\nSelectDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/TextContainer.a7f37af3.js b/dist/TextContainer.a7f37af3.js index c303af5..2b8c2b5 100644 --- a/dist/TextContainer.a7f37af3.js +++ b/dist/TextContainer.a7f37af3.js @@ -126,7 +126,7 @@ Object.defineProperty(exports, "__esModule", { exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function TextContainer(props) { var margin = { top: 10, @@ -177,7 +177,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/TextContainer.a7f37af3.js.map b/dist/TextContainer.a7f37af3.js.map index baa88c3..47eded7 100644 --- a/dist/TextContainer.a7f37af3.js.map +++ b/dist/TextContainer.a7f37af3.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/Chart/TextContainer.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireDefault","require","_propTypes","obj","__esModule","default","TextContainer","props","margin","top","right","bottom","left","createElement","id","style","width","height","title","configProps","description","_default","exports","propTypes","PropTypes","string","isRequired","layout","shape","number","currentCols","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","call","hot","data","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","push","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","event","JSON","parse","type","handled","assets","forEach","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","d","dep","Array","isArray","length","concat","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnC,SAASG,aAAaA,CAACC,KAAK,EAAE;EAC5B,IAAMC,MAAM,GAAG;IACbC,GAAG,EAAE,EAAE;IACPC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE;EACR,CAAC;EAED,oBAAOb,MAAA,CAAAM,OAAA,CAAAQ,aAAA;IAAKC,EAAE,EAAEP,KAAK,CAACO,EAAG;IAACC,KAAK,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAO;EAAE,gBACjElB,MAAA,CAAAM,OAAA,CAAAQ,aAAA,aAAKN,KAAK,CAACW,KAAU,CAAC,eACtBnB,MAAA,CAAAM,OAAA,CAAAQ,aAAA,YAAIN,KAAK,CAACY,WAAW,CAACC,WAAe,CAClC,CAAC;AACR;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjB,OAAA,GAEcC,aAAa;AAE5BA,aAAa,CAACiB,SAAS,GAAG;EAC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A,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"TextContainer.a7f37af3.js","sourceRoot":"../source","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction TextContainer(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n return
\n

{props.title}

\n

{props.configProps.description}

\n
;\n}\n\nexport default TextContainer;\n\nTextContainer.propTypes = {\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/Chart/TextContainer.js"],"names":["_react","_interopRequireDefault","require","_propTypes","e","__esModule","default","TextContainer","props","margin","top","right","bottom","left","createElement","id","style","width","height","title","configProps","description","_default","exports","propTypes","PropTypes","string","isRequired","layout","shape","number","currentCols"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnC,SAASG,aAAaA,CAACC,KAAK,EAAE;EAC5B,IAAMC,MAAM,GAAG;IACbC,GAAG,EAAE,EAAE;IACPC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE;EACR,CAAC;EAED,oBAAOb,MAAA,CAAAM,OAAA,CAAAQ,aAAA;IAAKC,EAAE,EAAEP,KAAK,CAACO,EAAG;IAACC,KAAK,EAAE;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAO;EAAE,gBACjElB,MAAA,CAAAM,OAAA,CAAAQ,aAAA,aAAKN,KAAK,CAACW,KAAU,CAAC,eACtBnB,MAAA,CAAAM,OAAA,CAAAQ,aAAA,YAAIN,KAAK,CAACY,WAAW,CAACC,WAAe,CAClC,CAAC;AACR;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjB,OAAA,GAEcC,aAAa;AAE5BA,aAAa,CAACiB,SAAS,GAAG;EACxBT,EAAE,EAAEU,kBAAS,CAACC,MAAM,CAACC,UAAU;EAC/BR,KAAK,EAAEM,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClCN,WAAW,EAAEI,kBAAS,CAACC,MAAM,CAACC,UAAU;EACxCC,MAAM,EAAEH,kBAAS,CAACI,KAAK,CAAC;IACtBZ,KAAK,EAAEQ,kBAAS,CAACK,MAAM,CAACH,UAAU;IAClCI,WAAW,EAAEN,kBAAS,CAACK,MAAM,CAACH;EAChC,CAAC,CAAC,CAACA;AACL,CAAC","file":"TextContainer.a7f37af3.js","sourceRoot":"../source","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction TextContainer(props) {\n const margin = {\n top: 10,\n right: 10,\n bottom: 35,\n left: 35,\n };\n\n return
\n

{props.title}

\n

{props.configProps.description}

\n
;\n}\n\nexport default TextContainer;\n\nTextContainer.propTypes = {\n id: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n layout: PropTypes.shape({\n width: PropTypes.number.isRequired,\n currentCols: PropTypes.number.isRequired,\n }).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/VisDataTable.c1822ccd.js b/dist/VisDataTable.c1822ccd.js index 9d4d0ae..554fbf7 100644 --- a/dist/VisDataTable.c1822ccd.js +++ b/dist/VisDataTable.c1822ccd.js @@ -133,31 +133,31 @@ var _arrayMove = _interopRequireDefault(require("array-move")); var _propTypes = _interopRequireDefault(require("prop-types")); var _VisDataTableControl = _interopRequireDefault(require("./VisDataTableControl/VisDataTableControl")); require("./VisDataTable.css"); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } var _cellRenderer = function cellRenderer(d, f) { var urlElt; if (f.link && (f.link.url || f.link.field)) { @@ -348,7 +348,6 @@ var VisDataTable = exports.default = /*#__PURE__*/function (_PureComponent) { }); }, 300); // 300 milliseconds delay }, - position: { x: 0 }, @@ -463,7 +462,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/VisDataTable.c1822ccd.js.map b/dist/VisDataTable.c1822ccd.js.map index 3b6722e..e8834e6 100644 --- a/dist/VisDataTable.c1822ccd.js.map +++ b/dist/VisDataTable.c1822ccd.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/VisDataTable/VisDataTable.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","minLen","_arrayLikeToArray","toString","slice","name","Array","from","test","iter","isArray","len","length","arr2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","cellRenderer","d","f","urlElt","link","url","field","urlbase","createElement","href","rowData","cellData","join","Fragment","dataKey","className","title","rowClassName","_ref","index","VisDataTable","exports","_PureComponent","_super","_this","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","autoSizer","React","createRef","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","collator","Intl","Collator","numeric","sensitivity","_this$props","data","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this2","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","x","zIndex","onMouseDown","stopPropagation","_ref12","isResize","render","_this3","_this$state2","finalData","style","height","list","onCheckChanged","onAllCheck","AutoSizer","ref","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","cellDataGetter","_ref15","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","console","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","log","removeErrorOverlay","error","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","concat","Function","deps","cached","cache","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,aAAa,EAAEC,EAAE,CAAC,CAACqC,IAAI,CAAC,UAAUrC,EAAE,EAAE;IAC7D,OAAOH,cAAc,CAACC,MAAM,CAACC,aAAa,EAAEC,EAAE,CAAC;EACjD,CAAC,CAAC;AACJ;AAEA,SAASQ,YAAYA,CAACvC,MAAM,EAAE+B,EAAE,EAAE;EAChC,IAAImC,MAAM,GAAGlE,MAAM,CAACmE,KAAK,CAACpC,EAAE,CAAC;EAC7B/B,MAAM,CAACI,OAAO,GAAG,CAAC,CAAC;EACnB,IAAI8D,MAAM,EAAE;IACVA,MAAM,CAAC/D,GAAG,CAAC9E,IAAI,GAAG2E,MAAM,CAACI,OAAO;EAClC;EAEA,IAAI8D,MAAM,IAAIA,MAAM,CAAC/D,GAAG,IAAI+D,MAAM,CAAC/D,GAAG,CAACG,iBAAiB,CAACjN,MAAM,EAAE;IAC/D6Q,MAAM,CAAC/D,GAAG,CAACG,iBAAiB,CAACtM,OAAO,CAAC,UAAUqQ,EAAE,EAAE;MACjDA,EAAE,CAACrE,MAAM,CAACI,OAAO,CAAC;IACpB,CAAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACmE,KAAK,CAACpC,EAAE,CAAC;EACvB/B,MAAM,CAAC+B,EAAE,CAAC;EAEVmC,MAAM,GAAGlE,MAAM,CAACmE,KAAK,CAACpC,EAAE,CAAC;EACzB,IAAImC,MAAM,IAAIA,MAAM,CAAC/D,GAAG,IAAI+D,MAAM,CAAC/D,GAAG,CAACE,gBAAgB,CAAChN,MAAM,EAAE;IAC9D6Q,MAAM,CAAC/D,GAAG,CAACE,gBAAgB,CAACrM,OAAO,CAAC,UAAUqQ,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"VisDataTable.c1822ccd.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f) => {\n let urlElt;\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class VisDataTable extends PureComponent {\n constructor(props) {\n super(props);\n const fWidth = 1 / this.props.fields.length;\n const fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n };\n\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n sortHandler({ sortBy, sortDirection }) {\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection } = this.state;\n const finalData = this.getSortData();\n\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => cellRenderer(d, f)}\n />\n ))}\n \n )}\n \n
\n );\n }\n}\n\nVisDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/VisDataTable/VisDataTable.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","_arrayLikeToArray","toString","slice","name","Array","from","test","isArray","length","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_classCallCheck","_defineProperties","key","_createClass","_toPrimitive","toPrimitive","String","Number","_inherits","create","_setPrototypeOf","setPrototypeOf","bind","_createSuper","_isNativeReflectConstruct","_getPrototypeOf","s","Reflect","construct","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","Boolean","valueOf","getPrototypeOf","cellRenderer","d","f","urlElt","link","url","field","urlbase","createElement","target","href","rowData","cellData","join","Fragment","dataKey","className","title","rowClassName","_ref","index","VisDataTable","exports","_PureComponent","_super","props","_this","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","autoSizer","React","createRef","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","collator","Intl","Collator","undefined","numeric","sensitivity","_this$props","data","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this2","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","x","zIndex","onMouseDown","stopPropagation","_ref12","isResize","render","_this3","_this$state2","finalData","style","height","list","onCheckChanged","onAllCheck","AutoSizer","ref","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","cellDataGetter","_ref15","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,UAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,oBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACAA,OAAA;AAA4B,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,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Y,CAACC,CAAC,EAAEC,CAAC,CAAC;YAAA;UAAC,CACzC,CAAC;QAAA,CACH,CACE,CAAC;MAAA,CAED,CACR,CAAC;IAEV;EAAC;EAAA,OAAAmB,YAAA;AAAA,EAzKuC4G,oBAAa;AA4KvD5G,YAAY,CAAC6G,SAAS,GAAG;EACvBnE,IAAI,EAAEoE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EACvDtE,UAAU,EAAEmE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC,UAAU;EAC7D1G,MAAM,EAAEuG,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAACC,UAAU;EACvDrE,OAAO,EAAEkE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAACC;AAClD,CAAC","file":"VisDataTable.c1822ccd.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f) => {\n let urlElt;\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class VisDataTable extends PureComponent {\n constructor(props) {\n super(props);\n const fWidth = 1 / this.props.fields.length;\n const fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n };\n\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n sortHandler({ sortBy, sortDirection }) {\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection } = this.state;\n const finalData = this.getSortData();\n\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => cellRenderer(d, f)}\n />\n ))}\n \n )}\n \n
\n );\n }\n}\n\nVisDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n"]} \ No newline at end of file diff --git a/dist/VisGridCard.fac47b76.js b/dist/VisGridCard.fac47b76.js index 32cb964..d71c0d2 100644 --- a/dist/VisGridCard.fac47b76.js +++ b/dist/VisGridCard.fac47b76.js @@ -1533,8 +1533,8 @@ var _inherits2 = _interopRequireDefault(require("babel-runtime/helpers/inherits" var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } var _jsxFileName = "src/index.js"; var styles = { position: "absolute", @@ -1712,20 +1712,20 @@ var _react = _interopRequireWildcard(require("react")); var _reactVirtualized = require("react-virtualized"); require("./MasonryComponent.css"); function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } var MasonryComponent = exports.default = /*#__PURE__*/function (_Component) { _inherits(MasonryComponent, _Component); var _super = _createSuper(MasonryComponent); @@ -1829,22 +1829,22 @@ var _react = _interopRequireWildcard(require("react")); var _reactVirtualized = require("react-virtualized"); var _reactVirtualizedImageMeasurer = _interopRequireDefault(require("react-virtualized-image-measurer")); var _MasonryComponent = _interopRequireDefault(require("./MasonryComponent/MasonryComponent")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } -function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } var VisGridCard = exports.default = /*#__PURE__*/function (_PureComponent) { _inherits(VisGridCard, _PureComponent); var _super = _createSuper(VisGridCard); @@ -1959,7 +1959,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "60560" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "60405" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/VisGridCard.fac47b76.js.map b/dist/VisGridCard.fac47b76.js.map index 8a2d1be..75eaffb 100644 --- a/dist/VisGridCard.fac47b76.js.map +++ b/dist/VisGridCard.fac47b76.js.map @@ -1 +1 @@ -{"version":3,"sources":["../node_modules/babel-runtime/helpers/objectWithoutProperties.js","../node_modules/core-js/library/modules/_global.js","../node_modules/core-js/library/modules/_core.js","../node_modules/core-js/library/modules/_a-function.js","../node_modules/core-js/library/modules/_ctx.js","../node_modules/core-js/library/modules/_is-object.js","../node_modules/core-js/library/modules/_an-object.js","../node_modules/core-js/library/modules/_fails.js","../node_modules/core-js/library/modules/_descriptors.js","../node_modules/core-js/library/modules/_dom-create.js","../node_modules/core-js/library/modules/_ie8-dom-define.js","../node_modules/core-js/library/modules/_to-primitive.js","../node_modules/core-js/library/modules/_object-dp.js","../node_modules/core-js/library/modules/_property-desc.js","../node_modules/core-js/library/modules/_hide.js","../node_modules/core-js/library/modules/_has.js","../node_modules/core-js/library/modules/_export.js","../node_modules/core-js/library/modules/es6.object.define-property.js","../node_modules/core-js/library/fn/object/define-property.js","../node_modules/babel-runtime/core-js/object/define-property.js","../node_modules/babel-runtime/helpers/defineProperty.js","../node_modules/core-js/library/modules/_cof.js","../node_modules/core-js/library/modules/_iobject.js","../node_modules/core-js/library/modules/_defined.js","../node_modules/core-js/library/modules/_to-iobject.js","../node_modules/core-js/library/modules/_to-integer.js","../node_modules/core-js/library/modules/_to-length.js","../node_modules/core-js/library/modules/_to-absolute-index.js","../node_modules/core-js/library/modules/_array-includes.js","../node_modules/core-js/library/modules/_library.js","../node_modules/core-js/library/modules/_shared.js","../node_modules/core-js/library/modules/_uid.js","../node_modules/core-js/library/modules/_shared-key.js","../node_modules/core-js/library/modules/_object-keys-internal.js","../node_modules/core-js/library/modules/_enum-bug-keys.js","../node_modules/core-js/library/modules/_object-keys.js","../node_modules/core-js/library/modules/_object-gops.js","../node_modules/core-js/library/modules/_object-pie.js","../node_modules/core-js/library/modules/_to-object.js","../node_modules/core-js/library/modules/_object-assign.js","../node_modules/core-js/library/modules/es6.object.assign.js","../node_modules/core-js/library/fn/object/assign.js","../node_modules/babel-runtime/core-js/object/assign.js","../node_modules/babel-runtime/helpers/extends.js","../node_modules/core-js/library/modules/_object-gpo.js","../node_modules/core-js/library/modules/_object-sap.js","../node_modules/core-js/library/modules/es6.object.get-prototype-of.js","../node_modules/core-js/library/fn/object/get-prototype-of.js","../node_modules/babel-runtime/core-js/object/get-prototype-of.js","../node_modules/babel-runtime/helpers/classCallCheck.js","../node_modules/babel-runtime/helpers/createClass.js","../node_modules/core-js/library/modules/_string-at.js","../node_modules/core-js/library/modules/_redefine.js","../node_modules/core-js/library/modules/_iterators.js","../node_modules/core-js/library/modules/_object-dps.js","../node_modules/core-js/library/modules/_html.js","../node_modules/core-js/library/modules/_object-create.js","../node_modules/core-js/library/modules/_wks.js","../node_modules/core-js/library/modules/_set-to-string-tag.js","../node_modules/core-js/library/modules/_iter-create.js","../node_modules/core-js/library/modules/_iter-define.js","../node_modules/core-js/library/modules/es6.string.iterator.js","../node_modules/core-js/library/modules/_add-to-unscopables.js","../node_modules/core-js/library/modules/_iter-step.js","../node_modules/core-js/library/modules/es6.array.iterator.js","../node_modules/core-js/library/modules/web.dom.iterable.js","../node_modules/core-js/library/modules/_wks-ext.js","../node_modules/core-js/library/fn/symbol/iterator.js","../node_modules/babel-runtime/core-js/symbol/iterator.js","../node_modules/core-js/library/modules/_meta.js","../node_modules/core-js/library/modules/_wks-define.js","../node_modules/core-js/library/modules/_enum-keys.js","../node_modules/core-js/library/modules/_is-array.js","../node_modules/core-js/library/modules/_object-gopn.js","../node_modules/core-js/library/modules/_object-gopn-ext.js","../node_modules/core-js/library/modules/_object-gopd.js","../node_modules/core-js/library/modules/es6.symbol.js","../node_modules/core-js/library/modules/es6.object.to-string.js","../node_modules/core-js/library/modules/es7.symbol.async-iterator.js","../node_modules/core-js/library/modules/es7.symbol.observable.js","../node_modules/core-js/library/fn/symbol/index.js","../node_modules/babel-runtime/core-js/symbol.js","../node_modules/babel-runtime/helpers/typeof.js","../node_modules/babel-runtime/helpers/possibleConstructorReturn.js","../node_modules/core-js/library/modules/_set-proto.js","../node_modules/core-js/library/modules/es6.object.set-prototype-of.js","../node_modules/core-js/library/fn/object/set-prototype-of.js","../node_modules/babel-runtime/core-js/object/set-prototype-of.js","../node_modules/core-js/library/modules/es6.object.create.js","../node_modules/core-js/library/fn/object/create.js","../node_modules/babel-runtime/core-js/object/create.js","../node_modules/babel-runtime/helpers/inherits.js","../src/index.js","components/VisualTools/VisGridCard/MasonryComponent/MasonryComponent.js","components/VisualTools/VisGridCard/VisGridCard.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["styles","position","bottom","right","width","height","overflow","opacity","ImageMeasurer","makeItemsWithSizes","items","sizes","reduce","res","item","stop","src","props","image","size","itemsWithSizes","push","timeouts","state","onLoad","ref","clearTimeout","offsetWidth","offsetHeight","setState","onLoadError","event","onError","getDefaultSize","timeout","setTimeout","setDefaultSize","defaultWidth","defaultHeight","forEach","keyMapper","children","map","index","target","PureComponent","displayName","propTypes","PropTypes","func","number","isRequired","defaultProps","_react","_interopRequireWildcard","require","_reactVirtualized","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_classCallCheck","instance","Constructor","TypeError","_defineProperties","length","descriptor","enumerable","configurable","writable","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","Number","_inherits","subClass","superClass","create","value","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","MasonryComponent","exports","_Component","_super","_this","columnWidth","cellMeasurerCache","CellMeasurerCache","fixedWidth","cellPositionerConfig","columnCount","spacer","cellPositioner","createMasonryCellPositioner","cellRenderer","_ref","parent","style","_this$props","fields","_itemsWithSizes$index","top","isInteger","left","createElement","CellMeasurer","cache","className","alt","title","render","_this$props2","Masonry","cellCount","Component","_reactVirtualizedImageMeasurer","_interopRequireDefault","_MasonryComponent","obj","VisGridCard","_PureComponent","console","log","widthUnit","config","UNIT_OF_GRID_VIEW","autoSizer","React","createRef","onResize","data","filterData","filters","__data","_this$state","AutoSizer","_ref2","error","_ref3","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","isParcelRequire","WebSocket","hostname","location","protocol","ws","onmessage","JSON","parse","type","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","message","stack","overlay","createErrorOverlay","document","body","appendChild","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","d","dep","Array","isArray","concat","Function","deps","cached","some","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9DA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;;ACLA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;;ACDA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;;ACFA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;;ACFA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;;ACDA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;;ACDA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;;ACDA;AACA;AACA;AACA;;ACHA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtPA;;ACAA;AACA;;ACDA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;;ACLA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;;ACHA;AACA;AACA;;ACFA;;ACAA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;;ACLA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AChCA,IAAA,MAAA,GAAA,uBAAA,CAAA,OAAA;AACA,IAAA,UAAA,GAAA,sBAAA,CAAA,OAAA;AAAA,SAAA,yBAAA,CAAA,6BAAA,OAAA,mBAAA,CAAA,OAAA,OAAA,IAAA,CAAA,OAAA,OAAA,YAAA,wBAAA,YAAA,CAAA,CAAA,WAAA,CAAA,GAAA,CAAA,GAAA,CAAA,KAAA,CAAA;AAAA,SAAA,wBAAA,CAAA,EAAA,CAAA,SAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA,UAAA,SAAA,CAAA,eAAA,CAAA,uBAAA,CAAA,yBAAA,CAAA,WAAA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","sourceRoot":"../source","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","module.exports = true;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","module.exports = require('./_hide');\n","module.exports = {};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n","module.exports = function () { /* empty */ };\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n","exports.f = require('./_wks');\n","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n","","require('./_wks-define')('asyncIterator');\n","require('./_wks-define')('observable');\n","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};","import React, {PureComponent} from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst styles = {\n position: \"absolute\",\n bottom: \"0\",\n right: \"0\",\n width: \"1px\",\n height: \"1px\",\n overflow: \"hidden\",\n opacity: 0\n};\n\nexport default class ImageMeasurer extends PureComponent {\n\n static displayName = \"ImageMeasurer\";\n\n static propTypes = {\n onError: PropTypes.func,\n timeout: PropTypes.number,\n keyMapper: PropTypes.func,\n image: PropTypes.func.isRequired,\n children: PropTypes.func.isRequired,\n defaultWidth: PropTypes.number.isRequired,\n defaultHeight: PropTypes.number.isRequired\n };\n\n static defaultProps = {\n onError: () => null,\n timeout: 5000,\n keyMapper: () => null\n };\n\n makeItemsWithSizes = (items, sizes) => items.reduce((res, item) => {\n\n if (res.stop) return res;\n\n const src = this.props.image(item);\n const size = sizes[src];\n\n // this will stop execution for first non-loaded image\n if (src && !size) {\n return {...res, stop: true};\n }\n\n res.itemsWithSizes.push({\n item,\n size\n });\n\n return res;\n\n }, {itemsWithSizes: [], stop: false}).itemsWithSizes;\n\n timeouts = {};\n\n state = {\n sizes: {}\n };\n\n onLoad = (src, ref) => {\n\n this.clearTimeout(src);\n\n if (this.state.sizes[src]) return;\n\n const size = {\n width: ref.offsetWidth,\n height: ref.offsetHeight\n };\n\n const sizes = {\n ...this.state.sizes,\n [src]: size\n };\n\n this.setState({sizes});\n\n };\n\n onLoadError = (event, item, src) => {\n this.onLoad(src, this.props.onError(event, item, src) || this.getDefaultSize());\n };\n\n clearTimeout = (src) => {\n const timeout = this.timeouts[src];\n if (timeout) clearTimeout(timeout);\n };\n\n setTimeout = (src) => {\n this.clearTimeout(src);\n setTimeout(() => {\n this.setDefaultSize(src);\n }, this.props.timeout);\n };\n\n getDefaultSize = () => ({\n width: this.props.defaultWidth,\n height: this.props.defaultHeight\n });\n\n setDefaultSize = (src) => {\n this.onLoad(src, this.getDefaultSize());\n };\n\n componentDidUpdate() {\n\n const {items, image} = this.props;\n\n items.forEach(item => {\n\n const src = image(item);\n\n if (!!this.timeouts[src] || this.state.sizes[src]) return;\n\n if (!src) {\n this.setDefaultSize(src);\n return;\n }\n\n this.setTimeout(src);\n\n })\n\n }\n\n render() {\n\n const {items, image, keyMapper, children, defaultWidth, defaultHeight, onError, timeout, ...props} = this.props;\n const {sizes} = this.state;\n\n const itemsWithSizes = this.makeItemsWithSizes(items, sizes);\n\n return (\n
\n\n \n {items.map((item, index) => {\n\n const src = image(item);\n\n if (!src) return null;\n\n return (\n this.onLoad(src, event.target)}\n onError={event => this.onLoadError(event, item, src)}\n />\n );\n\n })}\n \n\n {children({itemsWithSizes, sizes})}\n\n
\n );\n\n }\n}\n","import React, { Component } from 'react';\nimport {\n CellMeasurer,\n CellMeasurerCache,\n createMasonryCellPositioner,\n Masonry,\n} from 'react-virtualized';\nimport './MasonryComponent.css';\n\nexport default class MasonryComponent extends Component {\n constructor(props) {\n super(props);\n this.state = {\n height: this.props.height,\n width: this.props.width,\n itemsWithSizes: this.props.itemsWithSizes,\n columnWidth: this.props.columnWidth || 200,\n defaultHeight: this.props.defaultHeight || 150,\n defaultWidth: this.props.defaultWidth || 200,\n };\n\n this.cellMeasurerCache = new CellMeasurerCache({\n defaultHeight: this.props.defaultHeight,\n defaultWidth: this.props.defaultWidth,\n fixedWidth: true,\n });\n this.cellPositionerConfig = {\n cellMeasurerCache: this.cellMeasurerCache,\n columnCount: 4,\n columnWidth: this.props.columnWidth,\n spacer: 10,\n };\n this.cellPositioner = createMasonryCellPositioner(this.cellPositionerConfig);\n this.cellRenderer = this.cellRenderer.bind(this);\n }\n\n cellRenderer({\n index, key, parent, style,\n }) {\n const {\n itemsWithSizes, columnWidth, defaultWidth, defaultHeight, fields,\n } = this.props;\n const { item, size } = itemsWithSizes[index];\n\n const height = columnWidth * (size.height / size.width) || defaultHeight;\n if (style.top !== undefined && Number.isInteger(style.top)) style.top += 10;\n if (style.left !== undefined && Number.isInteger(style.left)) style.left += 10;\n return (\n \n
\n {item[fields.image] && (\n \n )}\n
{item[fields.title]}
\n
\n
\n );\n }\n\n render() {\n const {\n height, width, itemsWithSizes, defaultHeight, defaultWidth,\n } = this.props;\n\n return (\n \n );\n }\n}\n","import React, { PureComponent } from 'react';\nimport {\n AutoSizer,\n CellMeasurer,\n CellMeasurerCache,\n createMasonryCellPositioner,\n Masonry,\n} from 'react-virtualized';\nimport ImageMeasurer from 'react-virtualized-image-measurer';\nimport MasonryComponent from './MasonryComponent/MasonryComponent';\n\nexport default class VisGridCard extends PureComponent {\n constructor(props) {\n super(props);\n console.log(this.props);\n\n // const widthUnit = this.props.config.UNIT_OF_GRID_VIEW[0];\n\n this.state = {\n widthUnit: this.props.config.UNIT_OF_GRID_VIEW[0],\n width: null,\n height: null,\n columnWidth: 200,\n defaultHeight: 150,\n defaultWidth: 200,\n };\n\n this.autoSizer = React.createRef();\n this.onResize = this.onResize.bind(this);\n }\n\n onResize({ height, width }) {\n console.log('v', height, width);\n this.setState({ width, height });\n }\n\n render() {\n const {\n data, filterData, filters, fields,\n } = this.props;\n const __data = filters.length > 0 ? filterData : data;\n const { defaultHeight, defaultWidth, columnWidth } = this.state;\n // =this.props.config.UNIT_OF_GRID_VIEW[0]\n console.log(__data);\n return (\n
\n\n \n {({ height, width }) => (\n item[fields.image]}\n keyMapper={(item) => item[fields.key]}\n onError={(error, item, src) => {\n console.error(\n 'Cannot load image',\n src,\n 'for item',\n item,\n 'error',\n error,\n );\n }}\n defaultHeight={defaultHeight}\n defaultWidth={defaultWidth}\n >\n {({ itemsWithSizes }) => (\n \n )}\n \n\n )}\n \n
\n );\n }\n}\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../node_modules/babel-runtime/helpers/objectWithoutProperties.js","../node_modules/core-js/library/modules/_global.js","../node_modules/core-js/library/modules/_core.js","../node_modules/core-js/library/modules/_a-function.js","../node_modules/core-js/library/modules/_ctx.js","../node_modules/core-js/library/modules/_is-object.js","../node_modules/core-js/library/modules/_an-object.js","../node_modules/core-js/library/modules/_fails.js","../node_modules/core-js/library/modules/_descriptors.js","../node_modules/core-js/library/modules/_dom-create.js","../node_modules/core-js/library/modules/_ie8-dom-define.js","../node_modules/core-js/library/modules/_to-primitive.js","../node_modules/core-js/library/modules/_object-dp.js","../node_modules/core-js/library/modules/_property-desc.js","../node_modules/core-js/library/modules/_hide.js","../node_modules/core-js/library/modules/_has.js","../node_modules/core-js/library/modules/_export.js","../node_modules/core-js/library/modules/es6.object.define-property.js","../node_modules/core-js/library/fn/object/define-property.js","../node_modules/babel-runtime/core-js/object/define-property.js","../node_modules/babel-runtime/helpers/defineProperty.js","../node_modules/core-js/library/modules/_cof.js","../node_modules/core-js/library/modules/_iobject.js","../node_modules/core-js/library/modules/_defined.js","../node_modules/core-js/library/modules/_to-iobject.js","../node_modules/core-js/library/modules/_to-integer.js","../node_modules/core-js/library/modules/_to-length.js","../node_modules/core-js/library/modules/_to-absolute-index.js","../node_modules/core-js/library/modules/_array-includes.js","../node_modules/core-js/library/modules/_library.js","../node_modules/core-js/library/modules/_shared.js","../node_modules/core-js/library/modules/_uid.js","../node_modules/core-js/library/modules/_shared-key.js","../node_modules/core-js/library/modules/_object-keys-internal.js","../node_modules/core-js/library/modules/_enum-bug-keys.js","../node_modules/core-js/library/modules/_object-keys.js","../node_modules/core-js/library/modules/_object-gops.js","../node_modules/core-js/library/modules/_object-pie.js","../node_modules/core-js/library/modules/_to-object.js","../node_modules/core-js/library/modules/_object-assign.js","../node_modules/core-js/library/modules/es6.object.assign.js","../node_modules/core-js/library/fn/object/assign.js","../node_modules/babel-runtime/core-js/object/assign.js","../node_modules/babel-runtime/helpers/extends.js","../node_modules/core-js/library/modules/_object-gpo.js","../node_modules/core-js/library/modules/_object-sap.js","../node_modules/core-js/library/modules/es6.object.get-prototype-of.js","../node_modules/core-js/library/fn/object/get-prototype-of.js","../node_modules/babel-runtime/core-js/object/get-prototype-of.js","../node_modules/babel-runtime/helpers/classCallCheck.js","../node_modules/babel-runtime/helpers/createClass.js","../node_modules/core-js/library/modules/_string-at.js","../node_modules/core-js/library/modules/_redefine.js","../node_modules/core-js/library/modules/_iterators.js","../node_modules/core-js/library/modules/_object-dps.js","../node_modules/core-js/library/modules/_html.js","../node_modules/core-js/library/modules/_object-create.js","../node_modules/core-js/library/modules/_wks.js","../node_modules/core-js/library/modules/_set-to-string-tag.js","../node_modules/core-js/library/modules/_iter-create.js","../node_modules/core-js/library/modules/_iter-define.js","../node_modules/core-js/library/modules/es6.string.iterator.js","../node_modules/core-js/library/modules/_add-to-unscopables.js","../node_modules/core-js/library/modules/_iter-step.js","../node_modules/core-js/library/modules/es6.array.iterator.js","../node_modules/core-js/library/modules/web.dom.iterable.js","../node_modules/core-js/library/modules/_wks-ext.js","../node_modules/core-js/library/fn/symbol/iterator.js","../node_modules/babel-runtime/core-js/symbol/iterator.js","../node_modules/core-js/library/modules/_meta.js","../node_modules/core-js/library/modules/_wks-define.js","../node_modules/core-js/library/modules/_enum-keys.js","../node_modules/core-js/library/modules/_is-array.js","../node_modules/core-js/library/modules/_object-gopn.js","../node_modules/core-js/library/modules/_object-gopn-ext.js","../node_modules/core-js/library/modules/_object-gopd.js","../node_modules/core-js/library/modules/es6.symbol.js","../node_modules/core-js/library/modules/es6.object.to-string.js","../node_modules/core-js/library/modules/es7.symbol.async-iterator.js","../node_modules/core-js/library/modules/es7.symbol.observable.js","../node_modules/core-js/library/fn/symbol/index.js","../node_modules/babel-runtime/core-js/symbol.js","../node_modules/babel-runtime/helpers/typeof.js","../node_modules/babel-runtime/helpers/possibleConstructorReturn.js","../node_modules/core-js/library/modules/_set-proto.js","../node_modules/core-js/library/modules/es6.object.set-prototype-of.js","../node_modules/core-js/library/fn/object/set-prototype-of.js","../node_modules/babel-runtime/core-js/object/set-prototype-of.js","../node_modules/core-js/library/modules/es6.object.create.js","../node_modules/core-js/library/fn/object/create.js","../node_modules/babel-runtime/core-js/object/create.js","../node_modules/babel-runtime/helpers/inherits.js","../src/index.js","components/VisualTools/VisGridCard/MasonryComponent/MasonryComponent.js","components/VisualTools/VisGridCard/VisGridCard.js"],"names":["styles","position","bottom","right","width","height","overflow","opacity","ImageMeasurer","makeItemsWithSizes","items","sizes","reduce","res","item","stop","src","props","image","size","itemsWithSizes","push","timeouts","state","onLoad","ref","clearTimeout","offsetWidth","offsetHeight","setState","onLoadError","event","onError","getDefaultSize","timeout","setTimeout","setDefaultSize","defaultWidth","defaultHeight","forEach","keyMapper","children","map","index","target","PureComponent","displayName","propTypes","PropTypes","func","number","isRequired","defaultProps","_react","_interopRequireWildcard","require","_reactVirtualized","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","TypeError","_defineProperties","length","enumerable","configurable","writable","_toPropertyKey","key","_createClass","_toPrimitive","toPrimitive","String","Number","_inherits","create","value","_setPrototypeOf","setPrototypeOf","bind","_createSuper","_isNativeReflectConstruct","_getPrototypeOf","s","Reflect","construct","arguments","apply","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","Boolean","valueOf","getPrototypeOf","MasonryComponent","exports","_Component","_super","_this","columnWidth","cellMeasurerCache","CellMeasurerCache","fixedWidth","cellPositionerConfig","columnCount","spacer","cellPositioner","createMasonryCellPositioner","cellRenderer","_ref","parent","style","_this$props","fields","_itemsWithSizes$index","top","undefined","isInteger","left","createElement","CellMeasurer","cache","className","alt","title","render","_this$props2","Masonry","cellCount","Component","_reactVirtualizedImageMeasurer","_interopRequireDefault","_MasonryComponent","VisGridCard","_PureComponent","console","log","widthUnit","config","UNIT_OF_GRID_VIEW","autoSizer","React","createRef","onResize","data","filterData","filters","__data","_this$state","AutoSizer","_ref2","error","_ref3"],"mappings":"A0CAA,AgDAA,AvEAA,A6BAA,AuCAA,ANAA,AbAA,AnBAA,ACAA,A9BAA,AuBAA,AgDAA,A3FAA,AmFAA,ADAA,AzCAA,AgDAA,AvEAA,A6BAA,AuCAA,ANAA,AbAA,AhEAA,A2DAA,AxDAA,AsBAA,APAA,AnBAA,AEAA,AmBAA,AfAA,ACAA,AyBAA,AqCAA,AhEAA,AQAA,ADAA,AyCAA,A7CAA,AYAA,AkDAA,AnEAA,AsDAA,ACAA,AGAA,AVAA,AxBAA,AwCAA,A9BAA,AiBAA,A5CAA,A0CAA,AqBAA,ADAA,ADAA,ArCAA,AQAA,AXAA,AEAA,AEAA,AQAA,AhCAA,AuCAA,AgCAA,A1BAA,A1BAA,AmBAA,AxBAA,AFAA,ADAA,AEAA,AYAA,A3BAA,AoBAA,AmCAA,ATAA,AOAA,AxBAA,AgDAA,AvEAA,A6BAA,AuCAA,ARAA,AhBAA,AiBAA,ACAA;A9BCA,ACAA,A9BAA,AuBAA,AgDAA,A3FAA,AmFAA,ADAA,AzCAA,AgDAA,AvEAA,A6BAA,AuCAA,ANAA,AbAA,AhEAA,A2DAA,AxDAA,AsBAA,APAA,AnBAA,AEAA,AmBAA,AfAA,ACAA,AyBAA,AqCAA,AvDDA,ATCA,ANDA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BlJmB,OAAM,IAAN;AhBmJnB,EgBnJmB;AhBoJnB,AgBvJ0B;AhBwJ1B,iCgBtKqBhC;AhBuKrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"VisGridCard.fac47b76.js","sourceRoot":"../source","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","module.exports = true;\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","module.exports = require('./_hide');\n","module.exports = {};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n","module.exports = function () { /* empty */ };\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n","exports.f = require('./_wks');\n","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n","","require('./_wks-define')('asyncIterator');\n","require('./_wks-define')('observable');\n","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};","import React, {PureComponent} from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst styles = {\n position: \"absolute\",\n bottom: \"0\",\n right: \"0\",\n width: \"1px\",\n height: \"1px\",\n overflow: \"hidden\",\n opacity: 0\n};\n\nexport default class ImageMeasurer extends PureComponent {\n\n static displayName = \"ImageMeasurer\";\n\n static propTypes = {\n onError: PropTypes.func,\n timeout: PropTypes.number,\n keyMapper: PropTypes.func,\n image: PropTypes.func.isRequired,\n children: PropTypes.func.isRequired,\n defaultWidth: PropTypes.number.isRequired,\n defaultHeight: PropTypes.number.isRequired\n };\n\n static defaultProps = {\n onError: () => null,\n timeout: 5000,\n keyMapper: () => null\n };\n\n makeItemsWithSizes = (items, sizes) => items.reduce((res, item) => {\n\n if (res.stop) return res;\n\n const src = this.props.image(item);\n const size = sizes[src];\n\n // this will stop execution for first non-loaded image\n if (src && !size) {\n return {...res, stop: true};\n }\n\n res.itemsWithSizes.push({\n item,\n size\n });\n\n return res;\n\n }, {itemsWithSizes: [], stop: false}).itemsWithSizes;\n\n timeouts = {};\n\n state = {\n sizes: {}\n };\n\n onLoad = (src, ref) => {\n\n this.clearTimeout(src);\n\n if (this.state.sizes[src]) return;\n\n const size = {\n width: ref.offsetWidth,\n height: ref.offsetHeight\n };\n\n const sizes = {\n ...this.state.sizes,\n [src]: size\n };\n\n this.setState({sizes});\n\n };\n\n onLoadError = (event, item, src) => {\n this.onLoad(src, this.props.onError(event, item, src) || this.getDefaultSize());\n };\n\n clearTimeout = (src) => {\n const timeout = this.timeouts[src];\n if (timeout) clearTimeout(timeout);\n };\n\n setTimeout = (src) => {\n this.clearTimeout(src);\n setTimeout(() => {\n this.setDefaultSize(src);\n }, this.props.timeout);\n };\n\n getDefaultSize = () => ({\n width: this.props.defaultWidth,\n height: this.props.defaultHeight\n });\n\n setDefaultSize = (src) => {\n this.onLoad(src, this.getDefaultSize());\n };\n\n componentDidUpdate() {\n\n const {items, image} = this.props;\n\n items.forEach(item => {\n\n const src = image(item);\n\n if (!!this.timeouts[src] || this.state.sizes[src]) return;\n\n if (!src) {\n this.setDefaultSize(src);\n return;\n }\n\n this.setTimeout(src);\n\n })\n\n }\n\n render() {\n\n const {items, image, keyMapper, children, defaultWidth, defaultHeight, onError, timeout, ...props} = this.props;\n const {sizes} = this.state;\n\n const itemsWithSizes = this.makeItemsWithSizes(items, sizes);\n\n return (\n
\n\n \n {items.map((item, index) => {\n\n const src = image(item);\n\n if (!src) return null;\n\n return (\n this.onLoad(src, event.target)}\n onError={event => this.onLoadError(event, item, src)}\n />\n );\n\n })}\n \n\n {children({itemsWithSizes, sizes})}\n\n
\n );\n\n }\n}\n","import React, { Component } from 'react';\nimport {\n CellMeasurer,\n CellMeasurerCache,\n createMasonryCellPositioner,\n Masonry,\n} from 'react-virtualized';\nimport './MasonryComponent.css';\n\nexport default class MasonryComponent extends Component {\n constructor(props) {\n super(props);\n this.state = {\n height: this.props.height,\n width: this.props.width,\n itemsWithSizes: this.props.itemsWithSizes,\n columnWidth: this.props.columnWidth || 200,\n defaultHeight: this.props.defaultHeight || 150,\n defaultWidth: this.props.defaultWidth || 200,\n };\n\n this.cellMeasurerCache = new CellMeasurerCache({\n defaultHeight: this.props.defaultHeight,\n defaultWidth: this.props.defaultWidth,\n fixedWidth: true,\n });\n this.cellPositionerConfig = {\n cellMeasurerCache: this.cellMeasurerCache,\n columnCount: 4,\n columnWidth: this.props.columnWidth,\n spacer: 10,\n };\n this.cellPositioner = createMasonryCellPositioner(this.cellPositionerConfig);\n this.cellRenderer = this.cellRenderer.bind(this);\n }\n\n cellRenderer({\n index, key, parent, style,\n }) {\n const {\n itemsWithSizes, columnWidth, defaultWidth, defaultHeight, fields,\n } = this.props;\n const { item, size } = itemsWithSizes[index];\n\n const height = columnWidth * (size.height / size.width) || defaultHeight;\n if (style.top !== undefined && Number.isInteger(style.top)) style.top += 10;\n if (style.left !== undefined && Number.isInteger(style.left)) style.left += 10;\n return (\n \n
\n {item[fields.image] && (\n \n )}\n
{item[fields.title]}
\n
\n
\n );\n }\n\n render() {\n const {\n height, width, itemsWithSizes, defaultHeight, defaultWidth,\n } = this.props;\n\n return (\n \n );\n }\n}\n","import React, { PureComponent } from 'react';\nimport {\n AutoSizer,\n CellMeasurer,\n CellMeasurerCache,\n createMasonryCellPositioner,\n Masonry,\n} from 'react-virtualized';\nimport ImageMeasurer from 'react-virtualized-image-measurer';\nimport MasonryComponent from './MasonryComponent/MasonryComponent';\n\nexport default class VisGridCard extends PureComponent {\n constructor(props) {\n super(props);\n console.log(this.props);\n\n // const widthUnit = this.props.config.UNIT_OF_GRID_VIEW[0];\n\n this.state = {\n widthUnit: this.props.config.UNIT_OF_GRID_VIEW[0],\n width: null,\n height: null,\n columnWidth: 200,\n defaultHeight: 150,\n defaultWidth: 200,\n };\n\n this.autoSizer = React.createRef();\n this.onResize = this.onResize.bind(this);\n }\n\n onResize({ height, width }) {\n console.log('v', height, width);\n this.setState({ width, height });\n }\n\n render() {\n const {\n data, filterData, filters, fields,\n } = this.props;\n const __data = filters.length > 0 ? filterData : data;\n const { defaultHeight, defaultWidth, columnWidth } = this.state;\n // =this.props.config.UNIT_OF_GRID_VIEW[0]\n console.log(__data);\n return (\n
\n\n \n {({ height, width }) => (\n item[fields.image]}\n keyMapper={(item) => item[fields.key]}\n onError={(error, item, src) => {\n console.error(\n 'Cannot load image',\n src,\n 'for item',\n item,\n 'error',\n error,\n );\n }}\n defaultHeight={defaultHeight}\n defaultWidth={defaultWidth}\n >\n {({ itemsWithSizes }) => (\n \n )}\n \n\n )}\n \n
\n );\n }\n}\n"]} \ No newline at end of file diff --git a/dist/config/wines.json b/dist/config/wines.json index 87e8a56..4abdc4b 100644 --- a/dist/config/wines.json +++ b/dist/config/wines.json @@ -19,7 +19,7 @@ "description": "Wine Type", "chartType": "PIE_CHART", "fields": { "x": "wine_type" }, - "size": [1, 1], + "size": [2,2], "priority": 50, "designation":"left" }, diff --git a/dist/index.html b/dist/index.html index 96ea50f..6bd844a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,8 +8,6 @@ - - @@ -230,7 +228,7 @@ TCIA Eaglescope - +