@perses-dev/scatter-chart-plugin 0.8.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/__mf/css/async/442.d3010b86.css +1 -0
  2. package/__mf/css/async/61.d3010b86.css +1 -0
  3. package/__mf/css/async/823.d3010b86.css +1 -0
  4. package/__mf/js/ScatterChart.c24272aa.js +6 -0
  5. package/__mf/js/async/110.81c0553c.js +2 -0
  6. package/__mf/js/async/{964.dc115a62.js → 121.3d737127.js} +2 -2
  7. package/__mf/js/async/144.ea70fffb.js +2 -0
  8. package/__mf/js/async/{516.d0e99b34.js.LICENSE.txt → 144.ea70fffb.js.LICENSE.txt} +10 -0
  9. package/__mf/js/async/{488.064b892d.js → 177.dcbc74ea.js} +1 -1
  10. package/__mf/js/async/192.bdbd0050.js +1 -0
  11. package/__mf/js/async/2.90f7755b.js +1 -0
  12. package/__mf/js/async/235.65b39c0b.js +1 -0
  13. package/__mf/js/async/252.7a42b897.js +22 -0
  14. package/__mf/js/async/274.a99c9e5e.js +2 -0
  15. package/__mf/js/async/356.b0eaf484.js +1 -0
  16. package/__mf/js/async/392.9770147b.js +2 -0
  17. package/__mf/js/async/470.d8f8455f.js +2 -0
  18. package/__mf/js/async/558.9b9bceac.js +1 -0
  19. package/__mf/js/async/{214.7983e65f.js → 587.7d986455.js} +1 -1
  20. package/__mf/js/async/588.ca097377.js +1 -0
  21. package/__mf/js/async/616.f69792d9.js +1 -0
  22. package/__mf/js/async/623.9c7769f4.js +147 -0
  23. package/__mf/js/async/659.4c75e909.js +1 -0
  24. package/__mf/js/async/71.1f30dc06.js +1 -0
  25. package/__mf/js/async/790.9c4e890d.js +7 -0
  26. package/__mf/js/async/873.3eacbdd9.js +1 -0
  27. package/__mf/js/async/941.541b64f3.js +2 -0
  28. package/__mf/js/async/{738.580d645a.js → 968.fe693cc9.js} +1 -1
  29. package/__mf/js/async/978.a16d507f.js +1 -0
  30. package/__mf/js/async/__federation_expose_ScatterChart.1afece4c.js +1 -0
  31. package/__mf/js/async/lib-router.9d11adb0.js +2 -0
  32. package/__mf/js/main.92664367.js +6 -0
  33. package/lib/Scatterplot.d.ts.map +1 -1
  34. package/lib/Scatterplot.js +11 -8
  35. package/lib/Scatterplot.js.map +1 -1
  36. package/lib/bootstrap.js +1 -1
  37. package/lib/bootstrap.js.map +1 -1
  38. package/lib/cjs/ScatterChartPanel.js +3 -3
  39. package/lib/cjs/Scatterplot.js +9 -6
  40. package/lib/cjs/index-federation.js +12 -12
  41. package/lib/cjs/mock-trace-data.js +5 -5
  42. package/mf-manifest.json +33 -33
  43. package/mf-stats.json +47 -37
  44. package/package.json +5 -5
  45. package/__mf/css/async/341.9c79ef64.css +0 -1
  46. package/__mf/css/async/580.9c79ef64.css +0 -1
  47. package/__mf/css/async/759.9c79ef64.css +0 -1
  48. package/__mf/js/101.3314ba33.js +0 -2
  49. package/__mf/js/333.6a3b3c73.js +0 -2
  50. package/__mf/js/ScatterChart.86ae5555.js +0 -5
  51. package/__mf/js/async/109.f3e6d8b4.js +0 -73
  52. package/__mf/js/async/173.ab77c209.js +0 -2
  53. package/__mf/js/async/224.fc2a8424.js +0 -1
  54. package/__mf/js/async/238.16ecfee4.js +0 -1
  55. package/__mf/js/async/269.5bb64fce.js +0 -2
  56. package/__mf/js/async/269.5bb64fce.js.LICENSE.txt +0 -9
  57. package/__mf/js/async/288.3bee5f6d.js +0 -7
  58. package/__mf/js/async/292.0026ffe2.js +0 -1
  59. package/__mf/js/async/356.7ea71e7e.js +0 -147
  60. package/__mf/js/async/409.744b01b2.js +0 -1
  61. package/__mf/js/async/422.e34eaeff.js +0 -1
  62. package/__mf/js/async/516.d0e99b34.js +0 -2
  63. package/__mf/js/async/580.d7eab327.js +0 -2
  64. package/__mf/js/async/580.d7eab327.js.LICENSE.txt +0 -9
  65. package/__mf/js/async/651.4f472055.js +0 -1
  66. package/__mf/js/async/694.ea33534b.js +0 -1
  67. package/__mf/js/async/740.7c6f3f45.js +0 -1
  68. package/__mf/js/async/75.7a5ae496.js +0 -1
  69. package/__mf/js/async/770.f8131ccc.js +0 -1
  70. package/__mf/js/async/960.3781a1d1.js +0 -2
  71. package/__mf/js/async/981.6aa3d08a.js +0 -2
  72. package/__mf/js/async/__federation_expose_ScatterChart.868aeff6.js +0 -2
  73. package/__mf/js/async/__federation_expose_ScatterChart.868aeff6.js.LICENSE.txt +0 -9
  74. package/__mf/js/async/lib-router.c387b50a.js +0 -2
  75. package/__mf/js/index.70f0e2e3.js +0 -5
  76. /package/__mf/js/{101.3314ba33.js.LICENSE.txt → async/110.81c0553c.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{964.dc115a62.js.LICENSE.txt → 121.3d737127.js.LICENSE.txt} +0 -0
  78. /package/__mf/js/async/{109.f3e6d8b4.js.LICENSE.txt → 252.7a42b897.js.LICENSE.txt} +0 -0
  79. /package/__mf/js/async/{960.3781a1d1.js.LICENSE.txt → 274.a99c9e5e.js.LICENSE.txt} +0 -0
  80. /package/__mf/js/async/{981.6aa3d08a.js.LICENSE.txt → 392.9770147b.js.LICENSE.txt} +0 -0
  81. /package/__mf/js/async/{173.ab77c209.js.LICENSE.txt → 470.d8f8455f.js.LICENSE.txt} +0 -0
  82. /package/__mf/js/async/{356.7ea71e7e.js.LICENSE.txt → 623.9c7769f4.js.LICENSE.txt} +0 -0
  83. /package/__mf/js/async/{288.3bee5f6d.js.LICENSE.txt → 790.9c4e890d.js.LICENSE.txt} +0 -0
  84. /package/__mf/js/{333.6a3b3c73.js.LICENSE.txt → async/941.541b64f3.js.LICENSE.txt} +0 -0
  85. /package/__mf/js/async/{lib-router.c387b50a.js.LICENSE.txt → lib-router.9d11adb0.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Scatterplot.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ReactElement, useMemo } from 'react';\nimport { EChart, OnEventsType, useChartsTheme } from '@perses-dev/components';\nimport { use, EChartsCoreOption } from 'echarts/core';\nimport { ScatterChart as EChartsScatterChart } from 'echarts/charts';\nimport {\n DatasetComponent,\n DataZoomComponent,\n LegendComponent,\n GridComponent,\n TitleComponent,\n TooltipComponent,\n} from 'echarts/components';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport { EChartsOption, ScatterSeriesOption } from 'echarts';\nimport { formatValue } from '@perses-dev/core';\nimport { replaceVariablesInString, useAllVariableValues, useRouterContext } from '@perses-dev/plugin-system';\nimport { EChartTraceValue } from './ScatterChartPanel';\n\nuse([\n DatasetComponent,\n DataZoomComponent,\n LegendComponent,\n EChartsScatterChart,\n GridComponent,\n TitleComponent,\n TooltipComponent,\n CanvasRenderer,\n]);\n\nexport interface ScatterplotProps {\n width: number;\n height: number;\n options: EChartsOption;\n link?: string;\n}\n\nconst DATE_FORMATTER = new Intl.DateTimeFormat(undefined, {\n dateStyle: 'long',\n timeStyle: 'medium',\n}).format;\n\nexport function Scatterplot(props: ScatterplotProps): ReactElement {\n const { width, height, options, link: linkTemplate } = props;\n const chartsTheme = useChartsTheme();\n const variableValues = useAllVariableValues();\n const { navigate } = useRouterContext();\n\n // Apache EChart Options Docs: https://echarts.apache.org/en/option.html\n const eChartOptions: EChartsCoreOption = {\n dataset: options.dataset,\n series: options.series,\n dataZoom: options.dataZoom,\n grid: {\n bottom: 40,\n top: 50,\n left: 50,\n right: 100,\n },\n xAxis: {\n type: 'time',\n name: 'Local Time',\n },\n yAxis: {\n scale: true,\n type: 'value',\n name: 'Duration',\n axisLabel: {\n formatter: (durationMs: number) => formatValue(durationMs, { unit: 'milliseconds' }),\n },\n },\n animation: false,\n tooltip: {\n padding: 5,\n borderWidth: 1,\n trigger: 'axis',\n axisPointer: {\n type: 'cross',\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n formatter: function (params: any) {\n // TODO: import type from ECharts instead of using any\n const data = params[0].data as EChartTraceValue;\n return [\n `<b>Service name</b>: ${data.rootServiceName}<br/>`,\n `<b>Span name</b>: ${data.rootTraceName}<br/>`,\n `<b>Time</b>: ${DATE_FORMATTER(data.startTime)}<br/>`,\n `<b>Duration</b>: ${formatValue(data.durationMs, { unit: 'milliseconds' })}<br/>`,\n `<b>Span count</b>: ${data.spanCount} (${data.errorCount} errors)<br/>`,\n ].join('');\n },\n },\n legend: {\n show: true,\n type: 'scroll',\n orient: 'horizontal',\n bottom: 0,\n },\n };\n\n const handleEvents: OnEventsType<ScatterSeriesOption['data'] | unknown> = useMemo(() => {\n const handlers: OnEventsType<ScatterSeriesOption['data'] | unknown> = {};\n if (navigate && linkTemplate) {\n handlers.click = (params): void => {\n const linkVariables = params.data.linkVariables as Record<string, string> | undefined;\n const link = replaceVariablesInString(linkTemplate, variableValues, linkVariables);\n navigate(link);\n };\n }\n return handlers;\n }, [linkTemplate, navigate, variableValues]);\n\n return (\n <EChart\n sx={{\n width: width,\n height: height,\n }}\n option={eChartOptions}\n theme={chartsTheme.echartsTheme}\n onEvents={handleEvents}\n />\n );\n}\n"],"names":["useMemo","EChart","useChartsTheme","use","ScatterChart","EChartsScatterChart","DatasetComponent","DataZoomComponent","LegendComponent","GridComponent","TitleComponent","TooltipComponent","CanvasRenderer","formatValue","replaceVariablesInString","useAllVariableValues","useRouterContext","DATE_FORMATTER","Intl","DateTimeFormat","undefined","dateStyle","timeStyle","format","Scatterplot","props","width","height","options","link","linkTemplate","chartsTheme","variableValues","navigate","eChartOptions","dataset","series","dataZoom","grid","bottom","top","left","right","xAxis","type","name","yAxis","scale","axisLabel","formatter","durationMs","unit","animation","tooltip","padding","borderWidth","trigger","axisPointer","params","data","rootServiceName","rootTraceName","startTime","spanCount","errorCount","join","legend","show","orient","handleEvents","handlers","click","linkVariables","sx","option","theme","echartsTheme","onEvents"],"mappings":"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"}
1
+ {"version":3,"sources":["../../src/Scatterplot.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ReactElement, useMemo } from 'react';\nimport { EChart, OnEventsType, useChartsTheme } from '@perses-dev/components';\nimport { use, EChartsCoreOption } from 'echarts/core';\nimport { ScatterChart as EChartsScatterChart } from 'echarts/charts';\nimport {\n DatasetComponent,\n DataZoomComponent,\n LegendComponent,\n GridComponent,\n TitleComponent,\n TooltipComponent,\n} from 'echarts/components';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport { EChartsOption, ScatterSeriesOption } from 'echarts';\nimport { formatValue } from '@perses-dev/core';\nimport {\n replaceVariablesInString,\n useAllVariableValues,\n useRouterContext,\n useTimeRange,\n} from '@perses-dev/plugin-system';\nimport { EChartTraceValue } from './ScatterChartPanel';\n\nuse([\n DatasetComponent,\n DataZoomComponent,\n LegendComponent,\n EChartsScatterChart,\n GridComponent,\n TitleComponent,\n TooltipComponent,\n CanvasRenderer,\n]);\n\nexport interface ScatterplotProps {\n width: number;\n height: number;\n options: EChartsOption;\n link?: string;\n}\n\nconst DATE_FORMATTER = new Intl.DateTimeFormat(undefined, {\n dateStyle: 'long',\n timeStyle: 'medium',\n}).format;\n\nexport function Scatterplot(props: ScatterplotProps): ReactElement {\n const { width, height, options, link: linkTemplate } = props;\n const chartsTheme = useChartsTheme();\n const { absoluteTimeRange } = useTimeRange();\n const variableValues = useAllVariableValues();\n const { navigate } = useRouterContext();\n\n // Apache EChart Options Docs: https://echarts.apache.org/en/option.html\n const eChartOptions: EChartsCoreOption = {\n dataset: options.dataset,\n series: options.series,\n dataZoom: options.dataZoom,\n grid: {\n top: 45,\n bottom: 20,\n left: 30,\n right: 20,\n },\n xAxis: {\n type: 'time',\n min: absoluteTimeRange.start,\n max: absoluteTimeRange.end,\n },\n yAxis: {\n scale: true,\n type: 'value',\n name: 'Duration',\n splitNumber: 4,\n axisLabel: {\n formatter: (durationMs: number) => formatValue(durationMs, { unit: 'milliseconds' }),\n },\n },\n animation: false,\n tooltip: {\n padding: 5,\n borderWidth: 1,\n trigger: 'axis',\n axisPointer: {\n type: 'cross',\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n formatter: function (params: any) {\n // TODO: import type from ECharts instead of using any\n const data = params[0].data as EChartTraceValue;\n return [\n `<b>Service name</b>: ${data.rootServiceName}<br/>`,\n `<b>Span name</b>: ${data.rootTraceName}<br/>`,\n `<b>Time</b>: ${DATE_FORMATTER(data.startTime)}<br/>`,\n `<b>Duration</b>: ${formatValue(data.durationMs, { unit: 'milliseconds' })}<br/>`,\n `<b>Span count</b>: ${data.spanCount} (${data.errorCount} errors)<br/>`,\n ].join('');\n },\n },\n legend: {\n show: true,\n type: 'scroll',\n orient: 'horizontal',\n bottom: 0,\n },\n };\n\n const handleEvents: OnEventsType<ScatterSeriesOption['data'] | unknown> = useMemo(() => {\n const handlers: OnEventsType<ScatterSeriesOption['data'] | unknown> = {};\n if (navigate && linkTemplate) {\n handlers.click = (params): void => {\n const linkVariables = params.data.linkVariables as Record<string, string> | undefined;\n const link = replaceVariablesInString(linkTemplate, variableValues, linkVariables);\n navigate(link);\n };\n }\n return handlers;\n }, [linkTemplate, navigate, variableValues]);\n\n return (\n <EChart\n style={{\n width: width,\n height: height,\n }}\n option={eChartOptions}\n theme={chartsTheme.echartsTheme}\n onEvents={handleEvents}\n />\n );\n}\n"],"names":["useMemo","EChart","useChartsTheme","use","ScatterChart","EChartsScatterChart","DatasetComponent","DataZoomComponent","LegendComponent","GridComponent","TitleComponent","TooltipComponent","CanvasRenderer","formatValue","replaceVariablesInString","useAllVariableValues","useRouterContext","useTimeRange","DATE_FORMATTER","Intl","DateTimeFormat","undefined","dateStyle","timeStyle","format","Scatterplot","props","width","height","options","link","linkTemplate","chartsTheme","absoluteTimeRange","variableValues","navigate","eChartOptions","dataset","series","dataZoom","grid","top","bottom","left","right","xAxis","type","min","start","max","end","yAxis","scale","name","splitNumber","axisLabel","formatter","durationMs","unit","animation","tooltip","padding","borderWidth","trigger","axisPointer","params","data","rootServiceName","rootTraceName","startTime","spanCount","errorCount","join","legend","show","orient","handleEvents","handlers","click","linkVariables","style","option","theme","echartsTheme","onEvents"],"mappings":"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"}
package/lib/bootstrap.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  // Copyright 2024 The Perses Authors
2
3
  // Licensed under the Apache License, Version 2.0 (the "License");
3
4
  // you may not use this file except in compliance with the License.
@@ -10,7 +11,6 @@
10
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
12
  // See the License for the specific language governing permissions and
12
13
  // limitations under the License.
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import React from 'react';
15
15
  import ReactDOM from 'react-dom/client';
16
16
  const root = ReactDOM.createRoot(document.getElementById('root'));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bootstrap.tsx"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nconst root = ReactDOM.createRoot(document.getElementById('root')!);\nroot.render(<React.StrictMode></React.StrictMode>);\n"],"names":["React","ReactDOM","root","createRoot","document","getElementById","render","StrictMode"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,OAAOA,WAAW,QAAQ;AAC1B,OAAOC,cAAc,mBAAmB;AAExC,MAAMC,OAAOD,SAASE,UAAU,CAACC,SAASC,cAAc,CAAC;AACzDH,KAAKI,MAAM,eAAC,KAACN,MAAMO,UAAU"}
1
+ {"version":3,"sources":["../../src/bootstrap.tsx"],"sourcesContent":["// Copyright 2024 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport React from 'react';\nimport ReactDOM from 'react-dom/client';\n\nconst root = ReactDOM.createRoot(document.getElementById('root')!);\nroot.render(<React.StrictMode></React.StrictMode>);\n"],"names":["React","ReactDOM","root","createRoot","document","getElementById","render","StrictMode"],"mappings":";AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAOA,WAAW,QAAQ;AAC1B,OAAOC,cAAc,mBAAmB;AAExC,MAAMC,OAAOD,SAASE,UAAU,CAACC,SAASC,cAAc,CAAC;AACzDH,KAAKI,MAAM,eAAC,KAACN,MAAMO,UAAU"}
@@ -17,14 +17,14 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- ScatterChartPanel: function() {
24
+ get ScatterChartPanel () {
25
25
  return ScatterChartPanel;
26
26
  },
27
- getSymbolSize: function() {
27
+ get getSymbolSize () {
28
28
  return getSymbolSize;
29
29
  }
30
30
  });
@@ -46,6 +46,7 @@ const DATE_FORMATTER = new Intl.DateTimeFormat(undefined, {
46
46
  function Scatterplot(props) {
47
47
  const { width, height, options, link: linkTemplate } = props;
48
48
  const chartsTheme = (0, _components.useChartsTheme)();
49
+ const { absoluteTimeRange } = (0, _pluginsystem.useTimeRange)();
49
50
  const variableValues = (0, _pluginsystem.useAllVariableValues)();
50
51
  const { navigate } = (0, _pluginsystem.useRouterContext)();
51
52
  // Apache EChart Options Docs: https://echarts.apache.org/en/option.html
@@ -54,19 +55,21 @@ function Scatterplot(props) {
54
55
  series: options.series,
55
56
  dataZoom: options.dataZoom,
56
57
  grid: {
57
- bottom: 40,
58
- top: 50,
59
- left: 50,
60
- right: 100
58
+ top: 45,
59
+ bottom: 20,
60
+ left: 30,
61
+ right: 20
61
62
  },
62
63
  xAxis: {
63
64
  type: 'time',
64
- name: 'Local Time'
65
+ min: absoluteTimeRange.start,
66
+ max: absoluteTimeRange.end
65
67
  },
66
68
  yAxis: {
67
69
  scale: true,
68
70
  type: 'value',
69
71
  name: 'Duration',
72
+ splitNumber: 4,
70
73
  axisLabel: {
71
74
  formatter: (durationMs)=>(0, _core1.formatValue)(durationMs, {
72
75
  unit: 'milliseconds'
@@ -119,7 +122,7 @@ function Scatterplot(props) {
119
122
  variableValues
120
123
  ]);
121
124
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.EChart, {
122
- sx: {
125
+ style: {
123
126
  width: width,
124
127
  height: height
125
128
  },
@@ -1,15 +1,3 @@
1
- // Copyright 2024 The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
1
  "use strict";
14
2
  function _getRequireWildcardCache(nodeInterop) {
15
3
  if (typeof WeakMap !== "function") return null;
@@ -52,4 +40,16 @@ function _interop_require_wildcard(obj, nodeInterop) {
52
40
  }
53
41
  return newObj;
54
42
  }
43
+ // Copyright 2024 The Perses Authors
44
+ // Licensed under the Apache License, Version 2.0 (the "License");
45
+ // you may not use this file except in compliance with the License.
46
+ // You may obtain a copy of the License at
47
+ //
48
+ // http://www.apache.org/licenses/LICENSE-2.0
49
+ //
50
+ // Unless required by applicable law or agreed to in writing, software
51
+ // distributed under the License is distributed on an "AS IS" BASIS,
52
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ // See the License for the specific language governing permissions and
54
+ // limitations under the License.
55
55
  Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
@@ -17,20 +17,20 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- MOCK_TRACE_SEARCH_RESULT: function() {
24
+ get MOCK_TRACE_SEARCH_RESULT () {
25
25
  return MOCK_TRACE_SEARCH_RESULT;
26
26
  },
27
- MOCK_TRACE_SEARCH_RESULT_EMPTY: function() {
27
+ get MOCK_TRACE_SEARCH_RESULT_EMPTY () {
28
28
  return MOCK_TRACE_SEARCH_RESULT_EMPTY;
29
29
  },
30
- MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT: function() {
30
+ get MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT () {
31
31
  return MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT;
32
32
  },
33
- MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT_EMPTY: function() {
33
+ get MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT_EMPTY () {
34
34
  return MOCK_TRACE_SEARCH_RESULT_QUERY_RESULT_EMPTY;
35
35
  }
36
36
  });
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "ScatterChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.8.1",
8
+ "buildVersion": "0.9.1",
9
9
  "buildName": "@perses-dev/scatter-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/ScatterChart.86ae5555.js",
12
+ "name": "__mf/js/ScatterChart.c24272aa.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -20,9 +20,9 @@
20
20
  "api": ""
21
21
  },
22
22
  "globalName": "ScatterChart",
23
- "pluginVersion": "0.19.1",
23
+ "pluginVersion": "0.21.6",
24
24
  "prefetchInterface": false,
25
- "publicPath": "/plugins/ScatterChart/"
25
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/ScatterChart/\"; }"
26
26
  },
27
27
  "shared": [
28
28
  {
@@ -35,7 +35,7 @@
35
35
  "js": {
36
36
  "async": [],
37
37
  "sync": [
38
- "__mf/js/async/960.3781a1d1.js"
38
+ "__mf/js/async/274.a99c9e5e.js"
39
39
  ]
40
40
  },
41
41
  "css": {
@@ -54,8 +54,8 @@
54
54
  "js": {
55
55
  "async": [],
56
56
  "sync": [
57
- "__mf/js/async/694.ea33534b.js",
58
- "__mf/js/async/770.f8131ccc.js"
57
+ "__mf/js/async/235.65b39c0b.js",
58
+ "__mf/js/async/616.f69792d9.js"
59
59
  ]
60
60
  },
61
61
  "css": {
@@ -74,8 +74,8 @@
74
74
  "js": {
75
75
  "async": [],
76
76
  "sync": [
77
- "__mf/js/async/214.7983e65f.js",
78
- "__mf/js/async/738.580d645a.js"
77
+ "__mf/js/async/587.7d986455.js",
78
+ "__mf/js/async/968.fe693cc9.js"
79
79
  ]
80
80
  },
81
81
  "css": {
@@ -87,14 +87,14 @@
87
87
  {
88
88
  "id": "ScatterChart:@perses-dev/components",
89
89
  "name": "@perses-dev/components",
90
- "version": "0.52.0",
90
+ "version": "0.53.0-beta.2",
91
91
  "singleton": true,
92
- "requiredVersion": "^0.52.0",
92
+ "requiredVersion": "^0.53.0-beta.2",
93
93
  "assets": {
94
94
  "js": {
95
95
  "async": [],
96
96
  "sync": [
97
- "__mf/js/async/288.3bee5f6d.js"
97
+ "__mf/js/async/790.9c4e890d.js"
98
98
  ]
99
99
  },
100
100
  "css": {
@@ -106,14 +106,14 @@
106
106
  {
107
107
  "id": "ScatterChart:@perses-dev/plugin-system",
108
108
  "name": "@perses-dev/plugin-system",
109
- "version": "0.52.0",
109
+ "version": "0.53.0-beta.2",
110
110
  "singleton": true,
111
- "requiredVersion": "^0.52.0",
111
+ "requiredVersion": "^0.53.0-beta.2",
112
112
  "assets": {
113
113
  "js": {
114
114
  "async": [],
115
115
  "sync": [
116
- "__mf/js/async/109.f3e6d8b4.js"
116
+ "__mf/js/async/252.7a42b897.js"
117
117
  ]
118
118
  },
119
119
  "css": {
@@ -132,7 +132,7 @@
132
132
  "js": {
133
133
  "async": [],
134
134
  "sync": [
135
- "__mf/js/async/75.7a5ae496.js"
135
+ "__mf/js/async/192.bdbd0050.js"
136
136
  ]
137
137
  },
138
138
  "css": {
@@ -151,7 +151,7 @@
151
151
  "js": {
152
152
  "async": [],
153
153
  "sync": [
154
- "__mf/js/async/409.744b01b2.js"
154
+ "__mf/js/async/873.3eacbdd9.js"
155
155
  ]
156
156
  },
157
157
  "css": {
@@ -170,7 +170,7 @@
170
170
  "js": {
171
171
  "async": [],
172
172
  "sync": [
173
- "__mf/js/async/981.6aa3d08a.js"
173
+ "__mf/js/async/392.9770147b.js"
174
174
  ]
175
175
  },
176
176
  "css": {
@@ -189,7 +189,7 @@
189
189
  "js": {
190
190
  "async": [],
191
191
  "sync": [
192
- "__mf/js/async/173.ab77c209.js"
192
+ "__mf/js/async/470.d8f8455f.js"
193
193
  ]
194
194
  },
195
195
  "css": {
@@ -208,7 +208,7 @@
208
208
  "js": {
209
209
  "async": [],
210
210
  "sync": [
211
- "__mf/js/async/964.dc115a62.js"
211
+ "__mf/js/async/121.3d737127.js"
212
212
  ]
213
213
  },
214
214
  "css": {
@@ -227,7 +227,7 @@
227
227
  "js": {
228
228
  "async": [],
229
229
  "sync": [
230
- "__mf/js/async/740.7c6f3f45.js"
230
+ "__mf/js/async/978.a16d507f.js"
231
231
  ]
232
232
  },
233
233
  "css": {
@@ -245,25 +245,25 @@
245
245
  "assets": {
246
246
  "js": {
247
247
  "sync": [
248
- "__mf/js/101.3314ba33.js",
249
- "__mf/js/async/516.d0e99b34.js",
250
- "__mf/js/async/__federation_expose_ScatterChart.868aeff6.js"
248
+ "__mf/js/async/110.81c0553c.js",
249
+ "__mf/js/async/144.ea70fffb.js",
250
+ "__mf/js/async/__federation_expose_ScatterChart.1afece4c.js"
251
251
  ],
252
252
  "async": [
253
- "__mf/js/async/238.16ecfee4.js",
254
- "__mf/js/async/224.fc2a8424.js",
255
- "__mf/js/async/292.0026ffe2.js",
256
- "__mf/js/async/356.7ea71e7e.js",
257
- "__mf/js/async/422.e34eaeff.js",
258
- "__mf/js/async/lib-router.c387b50a.js",
259
- "__mf/js/async/488.064b892d.js"
253
+ "__mf/js/async/588.ca097377.js",
254
+ "__mf/js/async/71.1f30dc06.js",
255
+ "__mf/js/async/356.b0eaf484.js",
256
+ "__mf/js/async/623.9c7769f4.js",
257
+ "__mf/js/async/659.4c75e909.js",
258
+ "__mf/js/async/lib-router.9d11adb0.js",
259
+ "__mf/js/async/177.dcbc74ea.js"
260
260
  ]
261
261
  },
262
262
  "css": {
263
263
  "sync": [],
264
264
  "async": [
265
- "__mf/css/async/341.9c79ef64.css",
266
- "__mf/css/async/759.9c79ef64.css"
265
+ "__mf/css/async/61.d3010b86.css",
266
+ "__mf/css/async/823.d3010b86.css"
267
267
  ]
268
268
  }
269
269
  },
package/mf-stats.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "ScatterChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.8.1",
8
+ "buildVersion": "0.9.1",
9
9
  "buildName": "@perses-dev/scatter-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/ScatterChart.86ae5555.js",
12
+ "name": "__mf/js/ScatterChart.c24272aa.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -20,9 +20,9 @@
20
20
  "api": ""
21
21
  },
22
22
  "globalName": "ScatterChart",
23
- "pluginVersion": "0.19.1",
23
+ "pluginVersion": "0.21.6",
24
24
  "prefetchInterface": false,
25
- "publicPath": "/plugins/ScatterChart/"
25
+ "getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/ScatterChart/\"; }"
26
26
  },
27
27
  "shared": [
28
28
  {
@@ -37,7 +37,7 @@
37
37
  "js": {
38
38
  "async": [],
39
39
  "sync": [
40
- "__mf/js/async/960.3781a1d1.js"
40
+ "__mf/js/async/274.a99c9e5e.js"
41
41
  ]
42
42
  },
43
43
  "css": {
@@ -59,8 +59,8 @@
59
59
  "js": {
60
60
  "async": [],
61
61
  "sync": [
62
- "__mf/js/async/694.ea33534b.js",
63
- "__mf/js/async/770.f8131ccc.js"
62
+ "__mf/js/async/235.65b39c0b.js",
63
+ "__mf/js/async/616.f69792d9.js"
64
64
  ]
65
65
  },
66
66
  "css": {
@@ -82,8 +82,8 @@
82
82
  "js": {
83
83
  "async": [],
84
84
  "sync": [
85
- "__mf/js/async/214.7983e65f.js",
86
- "__mf/js/async/738.580d645a.js"
85
+ "__mf/js/async/587.7d986455.js",
86
+ "__mf/js/async/968.fe693cc9.js"
87
87
  ]
88
88
  },
89
89
  "css": {
@@ -95,17 +95,17 @@
95
95
  },
96
96
  {
97
97
  "singleton": true,
98
- "requiredVersion": "^0.52.0",
98
+ "requiredVersion": "^0.53.0-beta.2",
99
99
  "shareScope": "default",
100
100
  "name": "@perses-dev/components",
101
- "version": "0.52.0",
101
+ "version": "0.53.0-beta.2",
102
102
  "eager": false,
103
103
  "id": "ScatterChart:@perses-dev/components",
104
104
  "assets": {
105
105
  "js": {
106
106
  "async": [],
107
107
  "sync": [
108
- "__mf/js/async/288.3bee5f6d.js"
108
+ "__mf/js/async/790.9c4e890d.js"
109
109
  ]
110
110
  },
111
111
  "css": {
@@ -113,21 +113,23 @@
113
113
  "sync": []
114
114
  }
115
115
  },
116
- "usedIn": []
116
+ "usedIn": [
117
+ "./ScatterChart"
118
+ ]
117
119
  },
118
120
  {
119
121
  "singleton": true,
120
- "requiredVersion": "^0.52.0",
122
+ "requiredVersion": "^0.53.0-beta.2",
121
123
  "shareScope": "default",
122
124
  "name": "@perses-dev/plugin-system",
123
- "version": "0.52.0",
125
+ "version": "0.53.0-beta.2",
124
126
  "eager": false,
125
127
  "id": "ScatterChart:@perses-dev/plugin-system",
126
128
  "assets": {
127
129
  "js": {
128
130
  "async": [],
129
131
  "sync": [
130
- "__mf/js/async/109.f3e6d8b4.js"
132
+ "__mf/js/async/252.7a42b897.js"
131
133
  ]
132
134
  },
133
135
  "css": {
@@ -135,7 +137,9 @@
135
137
  "sync": []
136
138
  }
137
139
  },
138
- "usedIn": []
140
+ "usedIn": [
141
+ "./ScatterChart"
142
+ ]
139
143
  },
140
144
  {
141
145
  "singleton": true,
@@ -149,7 +153,7 @@
149
153
  "js": {
150
154
  "async": [],
151
155
  "sync": [
152
- "__mf/js/async/75.7a5ae496.js"
156
+ "__mf/js/async/192.bdbd0050.js"
153
157
  ]
154
158
  },
155
159
  "css": {
@@ -171,7 +175,7 @@
171
175
  "js": {
172
176
  "async": [],
173
177
  "sync": [
174
- "__mf/js/async/409.744b01b2.js"
178
+ "__mf/js/async/873.3eacbdd9.js"
175
179
  ]
176
180
  },
177
181
  "css": {
@@ -193,7 +197,7 @@
193
197
  "js": {
194
198
  "async": [],
195
199
  "sync": [
196
- "__mf/js/async/981.6aa3d08a.js"
200
+ "__mf/js/async/392.9770147b.js"
197
201
  ]
198
202
  },
199
203
  "css": {
@@ -215,7 +219,7 @@
215
219
  "js": {
216
220
  "async": [],
217
221
  "sync": [
218
- "__mf/js/async/173.ab77c209.js"
222
+ "__mf/js/async/470.d8f8455f.js"
219
223
  ]
220
224
  },
221
225
  "css": {
@@ -237,7 +241,7 @@
237
241
  "js": {
238
242
  "async": [],
239
243
  "sync": [
240
- "__mf/js/async/964.dc115a62.js"
244
+ "__mf/js/async/121.3d737127.js"
241
245
  ]
242
246
  },
243
247
  "css": {
@@ -245,7 +249,9 @@
245
249
  "sync": []
246
250
  }
247
251
  },
248
- "usedIn": []
252
+ "usedIn": [
253
+ "./ScatterChart"
254
+ ]
249
255
  },
250
256
  {
251
257
  "singleton": true,
@@ -259,7 +265,7 @@
259
265
  "js": {
260
266
  "async": [],
261
267
  "sync": [
262
- "__mf/js/async/740.7c6f3f45.js"
268
+ "__mf/js/async/978.a16d507f.js"
263
269
  ]
264
270
  },
265
271
  "css": {
@@ -276,30 +282,34 @@
276
282
  "path": "./ScatterChart",
277
283
  "id": "ScatterChart:ScatterChart",
278
284
  "name": "ScatterChart",
279
- "requires": [],
285
+ "requires": [
286
+ "react",
287
+ "@perses-dev/components",
288
+ "@perses-dev/plugin-system"
289
+ ],
280
290
  "file": "src/ScatterChart.ts",
281
291
  "assets": {
282
292
  "js": {
283
293
  "sync": [
284
- "__mf/js/101.3314ba33.js",
285
- "__mf/js/async/516.d0e99b34.js",
286
- "__mf/js/async/__federation_expose_ScatterChart.868aeff6.js"
294
+ "__mf/js/async/110.81c0553c.js",
295
+ "__mf/js/async/144.ea70fffb.js",
296
+ "__mf/js/async/__federation_expose_ScatterChart.1afece4c.js"
287
297
  ],
288
298
  "async": [
289
- "__mf/js/async/238.16ecfee4.js",
290
- "__mf/js/async/224.fc2a8424.js",
291
- "__mf/js/async/292.0026ffe2.js",
292
- "__mf/js/async/356.7ea71e7e.js",
293
- "__mf/js/async/422.e34eaeff.js",
294
- "__mf/js/async/lib-router.c387b50a.js",
295
- "__mf/js/async/488.064b892d.js"
299
+ "__mf/js/async/588.ca097377.js",
300
+ "__mf/js/async/71.1f30dc06.js",
301
+ "__mf/js/async/356.b0eaf484.js",
302
+ "__mf/js/async/623.9c7769f4.js",
303
+ "__mf/js/async/659.4c75e909.js",
304
+ "__mf/js/async/lib-router.9d11adb0.js",
305
+ "__mf/js/async/177.dcbc74ea.js"
296
306
  ]
297
307
  },
298
308
  "css": {
299
309
  "sync": [],
300
310
  "async": [
301
- "__mf/css/async/341.9c79ef64.css",
302
- "__mf/css/async/759.9c79ef64.css"
311
+ "__mf/css/async/61.d3010b86.css",
312
+ "__mf/css/async/823.d3010b86.css"
303
313
  ]
304
314
  }
305
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perses-dev/scatter-chart-plugin",
3
- "version": "0.8.1",
3
+ "version": "0.9.1",
4
4
  "homepage": "https://github.com/perses/plugins/blob/main/README.md",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,9 +30,9 @@
30
30
  "@emotion/react": "^11.7.1",
31
31
  "@emotion/styled": "^11.6.0",
32
32
  "@hookform/resolvers": "^3.2.0",
33
- "@perses-dev/components": "^0.52.0",
34
- "@perses-dev/core": "^0.52.0",
35
- "@perses-dev/plugin-system": "^0.52.0",
33
+ "@perses-dev/components": "^0.53.0-beta.2",
34
+ "@perses-dev/core": "^0.53.0-beta.2",
35
+ "@perses-dev/plugin-system": "^0.53.0-beta.2",
36
36
  "date-fns": "^4.1.0",
37
37
  "date-fns-tz": "^3.2.0",
38
38
  "echarts": "5.5.0",
@@ -63,4 +63,4 @@
63
63
  }
64
64
  ]
65
65
  }
66
- }
66
+ }
@@ -1 +0,0 @@
1
- @font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/ScatterChart/__mf/font/lato-latin-300-normal.c5195215.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/ScatterChart/__mf/font/lato-latin-400-normal.b7ffde23.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/ScatterChart/__mf/font/lato-latin-700-normal.d5eb20bc.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/ScatterChart/__mf/font/lato-latin-900-normal.d884a71c.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@@ -1 +0,0 @@
1
- @font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:300;src:url(/plugins/ScatterChart/__mf/font/lato-latin-300-normal.c5195215.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-300-normal.322bdf14.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:400;src:url(/plugins/ScatterChart/__mf/font/lato-latin-400-normal.b7ffde23.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-400-normal.63513b00.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:700;src:url(/plugins/ScatterChart/__mf/font/lato-latin-700-normal.d5eb20bc.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-700-normal.bb27db94.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/ScatterChart/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+100-24F,U+259,U+1E??,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-display:swap;font-weight:900;src:url(/plugins/ScatterChart/__mf/font/lato-latin-900-normal.d884a71c.woff2)format("woff2"),url(/plugins/ScatterChart/__mf/font/lato-all-900-normal.a27049a3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}