Upgrade atlas graph and desktop reader layout
This commit is contained in:
@@ -20,6 +20,14 @@ OLLAMA_URL=http://192.168.1.10:11434
|
|||||||
http://100.114.68.27:18080
|
http://100.114.68.27:18080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
映射域名:
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://lab.k1412.top/
|
||||||
|
```
|
||||||
|
|
||||||
|
图谱增强渲染懒加载本地 vendored `ECharts 6.1.0`,文件位于 `web/static/vendor/`。首屏先显示内置 SVG 图谱;ECharts 加载成功后自动升级为 Canvas 交互图谱。
|
||||||
|
|
||||||
## AI Policy
|
## AI Policy
|
||||||
|
|
||||||
- 默认摘要模型:`ChatGPT-5.6:fast`
|
- 默认摘要模型:`ChatGPT-5.6:fast`
|
||||||
|
|||||||
+304
-8
@@ -9,15 +9,18 @@ const state = {
|
|||||||
searchItems: [],
|
searchItems: [],
|
||||||
searchTotal: 0,
|
searchTotal: 0,
|
||||||
aiBusy: false,
|
aiBusy: false,
|
||||||
|
atlasChart: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
const $ = (selector) => document.querySelector(selector);
|
const $ = (selector) => document.querySelector(selector);
|
||||||
|
|
||||||
const elements = {
|
const elements = {
|
||||||
|
app: $(".atlas-app"),
|
||||||
healthLine: $("#healthLine"),
|
healthLine: $("#healthLine"),
|
||||||
searchInput: $("#searchInput"),
|
searchInput: $("#searchInput"),
|
||||||
searchBtn: $("#searchBtn"),
|
searchBtn: $("#searchBtn"),
|
||||||
mapTitle: $("#mapTitle"),
|
mapTitle: $("#mapTitle"),
|
||||||
|
atlasChart: $("#atlasChart"),
|
||||||
atlasSvg: $("#atlasSvg"),
|
atlasSvg: $("#atlasSvg"),
|
||||||
routeList: $("#routeList"),
|
routeList: $("#routeList"),
|
||||||
timeline: $("#timeline"),
|
timeline: $("#timeline"),
|
||||||
@@ -61,16 +64,74 @@ async function api(path, options = {}) {
|
|||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function loadChartEngine() {
|
||||||
|
if (window.echarts) {
|
||||||
|
if (state.atlas) renderAtlasMap();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (document.querySelector("script[data-chart-engine='echarts']")) return;
|
||||||
|
|
||||||
|
const script = document.createElement("script");
|
||||||
|
script.src = "/static/vendor/echarts.min.js?v=6.1.0";
|
||||||
|
script.async = true;
|
||||||
|
script.dataset.chartEngine = "echarts";
|
||||||
|
script.onload = () => {
|
||||||
|
if (state.atlas) renderAtlasMap();
|
||||||
|
};
|
||||||
|
script.onerror = () => {
|
||||||
|
console.warn("ECharts atlas enhancement unavailable; SVG fallback remains active.");
|
||||||
|
};
|
||||||
|
document.head.appendChild(script);
|
||||||
|
}
|
||||||
|
|
||||||
function topicLabel(topic) {
|
function topicLabel(topic) {
|
||||||
const found = state.atlas?.topics?.find((item) => item.id === topic);
|
const found = state.atlas?.topics?.find((item) => item.id === topic);
|
||||||
return found?.label || topic.replaceAll("-", " ");
|
return found?.label || topic.replaceAll("-", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
function colorFor(index) {
|
function colorFor(index) {
|
||||||
const colors = ["#0d766f", "#ba5644", "#aa7419", "#527b46", "#665d9f", "#236092", "#8a5a25"];
|
const colors = ["#0b7a75", "#c95745", "#b37a22", "#4d7f52", "#5f63b5", "#22699a", "#9a5d2f", "#7b4aa0"];
|
||||||
return colors[index % colors.length];
|
return colors[index % colors.length];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hexToRgb(hex) {
|
||||||
|
const clean = String(hex || "").replace("#", "");
|
||||||
|
const value = Number.parseInt(clean.length === 3 ? clean.replace(/(.)/g, "$1$1") : clean, 16);
|
||||||
|
return {
|
||||||
|
r: (value >> 16) & 255,
|
||||||
|
g: (value >> 8) & 255,
|
||||||
|
b: value & 255,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function hexToRgba(hex, alpha) {
|
||||||
|
const { r, g, b } = hexToRgb(hex);
|
||||||
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function mixColor(hex, target, amount) {
|
||||||
|
const base = hexToRgb(hex);
|
||||||
|
const next = hexToRgb(target);
|
||||||
|
const mix = (left, right) => Math.round(left + (right - left) * amount);
|
||||||
|
return `rgb(${mix(base.r, next.r)}, ${mix(base.g, next.g)}, ${mix(base.b, next.b)})`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function chartGradient(color) {
|
||||||
|
if (!window.echarts?.graphic?.RadialGradient) return color;
|
||||||
|
return new window.echarts.graphic.RadialGradient(0.34, 0.28, 0.86, [
|
||||||
|
{ offset: 0, color: "#ffffff" },
|
||||||
|
{ offset: 0.58, color: mixColor(color, "#ffffff", 0.64) },
|
||||||
|
{ offset: 1, color },
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function setReaderMode(enabled) {
|
||||||
|
const changed = elements.app.classList.toggle("reader-mode", Boolean(enabled));
|
||||||
|
if (changed && state.atlas) {
|
||||||
|
window.requestAnimationFrame(() => renderAtlasMap());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function loadHealth() {
|
async function loadHealth() {
|
||||||
try {
|
try {
|
||||||
const health = await api("/api/health");
|
const health = await api("/api/health");
|
||||||
@@ -90,11 +151,234 @@ async function loadAtlas() {
|
|||||||
renderOverview();
|
renderOverview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function atlasTopics() {
|
||||||
|
return state.atlas.topics.filter((topic) => topic.count >= 30).slice(0, 13);
|
||||||
|
}
|
||||||
|
|
||||||
|
function setAtlasRenderer(useChart) {
|
||||||
|
if (elements.atlasChart) elements.atlasChart.hidden = !useChart;
|
||||||
|
if (elements.atlasSvg) elements.atlasSvg.hidden = useChart;
|
||||||
|
}
|
||||||
|
|
||||||
function renderAtlasMap() {
|
function renderAtlasMap() {
|
||||||
|
if (window.echarts && elements.atlasChart) {
|
||||||
|
try {
|
||||||
|
renderEchartsAtlasMap();
|
||||||
|
return;
|
||||||
|
} catch (error) {
|
||||||
|
console.warn("ECharts atlas failed, falling back to SVG", error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
renderSvgAtlasMap();
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderEchartsAtlasMap() {
|
||||||
|
const isMobile = window.matchMedia("(max-width: 760px)").matches;
|
||||||
|
const readerMode = elements.app.classList.contains("reader-mode");
|
||||||
|
let topics = atlasTopics();
|
||||||
|
if (readerMode && !isMobile) {
|
||||||
|
topics = topics.slice(0, 10);
|
||||||
|
}
|
||||||
|
const topicMap = new Map(topics.map((topic, index) => [topic.id, { ...topic, index }]));
|
||||||
|
const maxCount = Math.max(...topics.map((topic) => topic.count), 1);
|
||||||
|
setAtlasRenderer(true);
|
||||||
|
|
||||||
|
if (!state.atlasChart) {
|
||||||
|
state.atlasChart = window.echarts.init(elements.atlasChart, null, {
|
||||||
|
renderer: "canvas",
|
||||||
|
useDirtyRect: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const width = elements.atlasChart.clientWidth || (isMobile ? 360 : 780);
|
||||||
|
const height = elements.atlasChart.clientHeight || (isMobile ? 360 : 460);
|
||||||
|
const isCompact = isMobile || width < 690 || elements.app.classList.contains("reader-mode");
|
||||||
|
const padding = isCompact
|
||||||
|
? { left: 46, right: 86, top: 42, bottom: 54 }
|
||||||
|
: { left: 92, right: 92, top: 64, bottom: 74 };
|
||||||
|
const layoutX = (topic) => (isCompact ? topic.x - Math.max(0, topic.x - 64) * 0.65 : topic.x);
|
||||||
|
const xs = topics.map(layoutX);
|
||||||
|
const ys = topics.map((topic) => topic.y);
|
||||||
|
const minX = Math.min(...xs);
|
||||||
|
const maxX = Math.max(...xs);
|
||||||
|
const minY = Math.min(...ys);
|
||||||
|
const maxY = Math.max(...ys);
|
||||||
|
const xSpan = Math.max(maxX - minX, 1);
|
||||||
|
const ySpan = Math.max(maxY - minY, 1);
|
||||||
|
const plotWidth = Math.max(width - padding.left - padding.right, 260);
|
||||||
|
const plotHeight = Math.max(height - padding.top - padding.bottom, 230);
|
||||||
|
const sizeBase = isCompact ? (isMobile ? 24 : 36) : 48;
|
||||||
|
const sizeRange = isCompact ? (isMobile ? 30 : 42) : 62;
|
||||||
|
|
||||||
|
const nodes = topics.map((topic, index) => {
|
||||||
|
const color = colorFor(index);
|
||||||
|
const active = topic.id === state.activeTopic;
|
||||||
|
const symbolSize = sizeBase + sizeRange * Math.sqrt(topic.count / maxCount);
|
||||||
|
return {
|
||||||
|
id: topic.id,
|
||||||
|
name: topic.label,
|
||||||
|
value: topic.count,
|
||||||
|
x: padding.left + ((layoutX(topic) - minX) / xSpan) * plotWidth,
|
||||||
|
y: padding.top + ((topic.y - minY) / ySpan) * plotHeight,
|
||||||
|
symbolSize,
|
||||||
|
count: topic.count,
|
||||||
|
recent_count: topic.recent_count,
|
||||||
|
heat: topic.heat,
|
||||||
|
question: topic.question,
|
||||||
|
stance: topic.stance,
|
||||||
|
itemStyle: {
|
||||||
|
color: chartGradient(color),
|
||||||
|
borderColor: active ? "#17201c" : mixColor(color, "#101614", 0.08),
|
||||||
|
borderWidth: active ? 3 : 1.4,
|
||||||
|
shadowBlur: active ? 30 : 18,
|
||||||
|
shadowColor: hexToRgba(color, active ? 0.34 : 0.2),
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
color: active ? "#0f1714" : "#18211d",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
const links = state.atlas.edges
|
||||||
|
.filter((edge) => topicMap.has(edge.source) && topicMap.has(edge.target))
|
||||||
|
.map((edge) => ({
|
||||||
|
source: edge.source,
|
||||||
|
target: edge.target,
|
||||||
|
value: edge.count,
|
||||||
|
lineStyle: {
|
||||||
|
width: Math.max(1, 1.2 + edge.strength * 5.4),
|
||||||
|
opacity: Math.min(0.58, 0.13 + edge.strength * 0.5),
|
||||||
|
color: hexToRgba(colorFor(topicMap.get(edge.source).index), 0.48),
|
||||||
|
curveness: 0.08,
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
state.atlasChart.setOption(
|
||||||
|
{
|
||||||
|
backgroundColor: "transparent",
|
||||||
|
animationDuration: 850,
|
||||||
|
animationDurationUpdate: 450,
|
||||||
|
animationEasing: "cubicOut",
|
||||||
|
tooltip: {
|
||||||
|
trigger: "item",
|
||||||
|
confine: true,
|
||||||
|
appendToBody: true,
|
||||||
|
backgroundColor: "rgba(252, 253, 249, 0.97)",
|
||||||
|
borderColor: "rgba(31, 37, 33, 0.18)",
|
||||||
|
borderWidth: 1,
|
||||||
|
padding: [10, 12],
|
||||||
|
textStyle: {
|
||||||
|
color: "#151b18",
|
||||||
|
fontSize: 12,
|
||||||
|
lineHeight: 18,
|
||||||
|
},
|
||||||
|
extraCssText: "box-shadow:0 16px 42px rgba(24,31,28,.16);border-radius:8px;",
|
||||||
|
formatter(params) {
|
||||||
|
if (params.dataType === "edge") {
|
||||||
|
return `
|
||||||
|
<strong>${escapeHtml(topicLabel(params.data.source))} ↔ ${escapeHtml(topicLabel(params.data.target))}</strong><br>
|
||||||
|
共现证据:${escapeHtml(params.data.value)}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
const item = params.data;
|
||||||
|
return `
|
||||||
|
<strong>${escapeHtml(item.name)}</strong><br>
|
||||||
|
${escapeHtml(item.count)} papers · recent +${escapeHtml(item.recent_count)}<br>
|
||||||
|
<span style="color:#68706b">${escapeHtml(item.question)}</span>
|
||||||
|
`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
type: "graph",
|
||||||
|
layout: "none",
|
||||||
|
data: nodes,
|
||||||
|
links,
|
||||||
|
roam: true,
|
||||||
|
draggable: true,
|
||||||
|
center: isCompact ? (isMobile ? ["80%", "50%"] : ["120%", "50%"]) : ["50%", "50%"],
|
||||||
|
zoom: isCompact ? (isMobile ? 0.64 : 0.72) : 1,
|
||||||
|
nodeScaleRatio: isCompact ? 0.24 : 0.5,
|
||||||
|
cursor: "pointer",
|
||||||
|
selectedMode: "single",
|
||||||
|
scaleLimit: { min: 0.45, max: 3.2 },
|
||||||
|
label: {
|
||||||
|
show: true,
|
||||||
|
position: "inside",
|
||||||
|
overflow: "truncate",
|
||||||
|
formatter(params) {
|
||||||
|
return `{name|${params.data.name}}\n{meta|${params.data.count} · +${params.data.recent_count}}`;
|
||||||
|
},
|
||||||
|
rich: {
|
||||||
|
name: {
|
||||||
|
fontSize: isCompact ? (isMobile ? 9 : 10) : 12,
|
||||||
|
fontWeight: 850,
|
||||||
|
lineHeight: isCompact ? (isMobile ? 12 : 13) : 16,
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
color: "#59625d",
|
||||||
|
fontSize: isCompact ? (isMobile ? 8 : 9) : 10,
|
||||||
|
fontWeight: 700,
|
||||||
|
lineHeight: isCompact ? (isMobile ? 10 : 11) : 13,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
color: "source",
|
||||||
|
cap: "round",
|
||||||
|
},
|
||||||
|
emphasis: {
|
||||||
|
focus: "adjacency",
|
||||||
|
scale: 1.08,
|
||||||
|
itemStyle: {
|
||||||
|
shadowBlur: 36,
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
opacity: 0.82,
|
||||||
|
width: 4,
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
color: "#0b1411",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
blur: {
|
||||||
|
itemStyle: {
|
||||||
|
opacity: 0.28,
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
opacity: 0.06,
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
opacity: 0.35,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
itemStyle: {
|
||||||
|
borderColor: "#111714",
|
||||||
|
borderWidth: 3,
|
||||||
|
shadowBlur: 34,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
true,
|
||||||
|
);
|
||||||
|
|
||||||
|
state.atlasChart.off("click");
|
||||||
|
state.atlasChart.on("click", async (params) => {
|
||||||
|
if (params.dataType !== "node" || !params.data?.id) return;
|
||||||
|
await selectTopic(params.data.id);
|
||||||
|
scrollLensIntoView();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderSvgAtlasMap() {
|
||||||
const topics = state.atlas.topics.filter((topic) => topic.count >= 30).slice(0, 13);
|
const topics = state.atlas.topics.filter((topic) => topic.count >= 30).slice(0, 13);
|
||||||
const topicMap = new Map(topics.map((topic, index) => [topic.id, { ...topic, index }]));
|
const topicMap = new Map(topics.map((topic, index) => [topic.id, { ...topic, index }]));
|
||||||
const maxCount = Math.max(...topics.map((topic) => topic.count), 1);
|
const maxCount = Math.max(...topics.map((topic) => topic.count), 1);
|
||||||
const isMobile = window.matchMedia("(max-width: 760px)").matches;
|
const isMobile = window.matchMedia("(max-width: 760px)").matches;
|
||||||
|
setAtlasRenderer(false);
|
||||||
elements.atlasSvg.setAttribute("viewBox", isMobile ? "16 -4 78 86" : "0 0 170 100");
|
elements.atlasSvg.setAttribute("viewBox", isMobile ? "16 -4 78 86" : "0 0 170 100");
|
||||||
const point = (topic) => ({
|
const point = (topic) => ({
|
||||||
x: isMobile ? topic.x : 14 + topic.x * 1.58,
|
x: isMobile ? topic.x : 14 + topic.x * 1.58,
|
||||||
@@ -229,6 +513,7 @@ function routeButtons(routes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderOverview(aiHtml = "") {
|
function renderOverview(aiHtml = "") {
|
||||||
|
setReaderMode(false);
|
||||||
state.view = "atlas";
|
state.view = "atlas";
|
||||||
state.selectedPaper = null;
|
state.selectedPaper = null;
|
||||||
elements.lensEyebrow.textContent = "Atlas";
|
elements.lensEyebrow.textContent = "Atlas";
|
||||||
@@ -296,6 +581,7 @@ async function selectTopic(topic) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderTopic(focus, aiHtml = "") {
|
function renderTopic(focus, aiHtml = "") {
|
||||||
|
setReaderMode(false);
|
||||||
state.view = "atlas";
|
state.view = "atlas";
|
||||||
elements.lensEyebrow.textContent = "Topic";
|
elements.lensEyebrow.textContent = "Topic";
|
||||||
elements.lensTitle.textContent = focus.label;
|
elements.lensTitle.textContent = focus.label;
|
||||||
@@ -366,6 +652,7 @@ function renderTopic(focus, aiHtml = "") {
|
|||||||
function renderRoute(routeId) {
|
function renderRoute(routeId) {
|
||||||
const route = state.atlas.routes.find((item) => item.id === routeId);
|
const route = state.atlas.routes.find((item) => item.id === routeId);
|
||||||
if (!route) return;
|
if (!route) return;
|
||||||
|
setReaderMode(false);
|
||||||
state.selectedPaper = null;
|
state.selectedPaper = null;
|
||||||
elements.lensEyebrow.textContent = "Route";
|
elements.lensEyebrow.textContent = "Route";
|
||||||
elements.lensTitle.textContent = route.title;
|
elements.lensTitle.textContent = route.title;
|
||||||
@@ -397,6 +684,7 @@ async function runSearch() {
|
|||||||
renderOverview();
|
renderOverview();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
setReaderMode(false);
|
||||||
state.view = "search";
|
state.view = "search";
|
||||||
setModeButtons("search");
|
setModeButtons("search");
|
||||||
elements.lensEyebrow.textContent = "Search";
|
elements.lensEyebrow.textContent = "Search";
|
||||||
@@ -422,6 +710,7 @@ async function runSearch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderReading() {
|
function renderReading() {
|
||||||
|
setReaderMode(false);
|
||||||
state.view = "reading";
|
state.view = "reading";
|
||||||
setModeButtons("reading");
|
setModeButtons("reading");
|
||||||
elements.lensEyebrow.textContent = "Reading";
|
elements.lensEyebrow.textContent = "Reading";
|
||||||
@@ -465,6 +754,7 @@ async function selectPaper(id) {
|
|||||||
function renderPaperReader(aiHtml = "", abstractHtml = "") {
|
function renderPaperReader(aiHtml = "", abstractHtml = "") {
|
||||||
const paper = state.selectedPaper;
|
const paper = state.selectedPaper;
|
||||||
if (!paper) return;
|
if (!paper) return;
|
||||||
|
setReaderMode(true);
|
||||||
elements.lensEyebrow.textContent = "Paper";
|
elements.lensEyebrow.textContent = "Paper";
|
||||||
elements.lensTitle.textContent = "研读";
|
elements.lensTitle.textContent = "研读";
|
||||||
elements.lensBody.innerHTML = `
|
elements.lensBody.innerHTML = `
|
||||||
@@ -483,6 +773,7 @@ function renderPaperReader(aiHtml = "", abstractHtml = "") {
|
|||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="tool-row">
|
<div class="tool-row">
|
||||||
<a class="paper-link" href="${escapeHtml(paper.url)}" target="_blank" rel="noreferrer">arXiv</a>
|
<a class="paper-link" href="${escapeHtml(paper.url)}" target="_blank" rel="noreferrer">arXiv</a>
|
||||||
|
<button class="tool-button" type="button" data-reader-action="map">回到图谱</button>
|
||||||
<button class="tool-button" type="button" data-paper-action="abstract">摘要</button>
|
<button class="tool-button" type="button" data-paper-action="abstract">摘要</button>
|
||||||
<button class="tool-button primary" type="button" data-paper-action="summary">中文摘要</button>
|
<button class="tool-button primary" type="button" data-paper-action="summary">中文摘要</button>
|
||||||
<button class="tool-button" type="button" data-paper-action="translate">翻译</button>
|
<button class="tool-button" type="button" data-paper-action="translate">翻译</button>
|
||||||
@@ -580,13 +871,6 @@ function setModeButtons(view) {
|
|||||||
document.querySelectorAll("[data-view]").forEach((button) => {
|
document.querySelectorAll("[data-view]").forEach((button) => {
|
||||||
button.classList.toggle("active", button.dataset.view === view);
|
button.classList.toggle("active", button.dataset.view === view);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener(
|
|
||||||
"resize",
|
|
||||||
debounce(() => {
|
|
||||||
if (state.atlas) renderAtlasMap();
|
|
||||||
}, 150),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollLensIntoView() {
|
function scrollLensIntoView() {
|
||||||
@@ -619,6 +903,7 @@ function bindEvents() {
|
|||||||
const topicAi = event.target.closest("[data-topic-ai]");
|
const topicAi = event.target.closest("[data-topic-ai]");
|
||||||
const compareButton = event.target.closest("[data-compare-topic]");
|
const compareButton = event.target.closest("[data-compare-topic]");
|
||||||
const paperAction = event.target.closest("[data-paper-action]");
|
const paperAction = event.target.closest("[data-paper-action]");
|
||||||
|
const readerAction = event.target.closest("[data-reader-action]");
|
||||||
|
|
||||||
if (topicButton) {
|
if (topicButton) {
|
||||||
await selectTopic(topicButton.dataset.topic);
|
await selectTopic(topicButton.dataset.topic);
|
||||||
@@ -638,6 +923,9 @@ function bindEvents() {
|
|||||||
const action = paperAction.dataset.paperAction;
|
const action = paperAction.dataset.paperAction;
|
||||||
if (action === "abstract") await loadAbstract();
|
if (action === "abstract") await loadAbstract();
|
||||||
else await runPaperAi(action);
|
else await runPaperAi(action);
|
||||||
|
} else if (readerAction) {
|
||||||
|
if (state.topicFocus) renderTopic(state.topicFocus);
|
||||||
|
else renderOverview();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -669,12 +957,20 @@ function bindEvents() {
|
|||||||
scrollLensIntoView();
|
scrollLensIntoView();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.addEventListener(
|
||||||
|
"resize",
|
||||||
|
debounce(() => {
|
||||||
|
if (state.atlas) renderAtlasMap();
|
||||||
|
}, 150),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function boot() {
|
async function boot() {
|
||||||
bindEvents();
|
bindEvents();
|
||||||
await loadHealth();
|
await loadHealth();
|
||||||
await loadAtlas();
|
await loadAtlas();
|
||||||
|
loadChartEngine();
|
||||||
}
|
}
|
||||||
|
|
||||||
boot();
|
boot();
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>Agent Knowledge Atlas</title>
|
<title>Agent Knowledge Atlas</title>
|
||||||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23cfe8e3'/%3E%3Ctext x='32' y='40' text-anchor='middle' font-size='24' font-family='Arial' font-weight='700' fill='%23064c47'%3EAK%3C/text%3E%3C/svg%3E" />
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23cfe8e3'/%3E%3Ctext x='32' y='40' text-anchor='middle' font-size='24' font-family='Arial' font-weight='700' fill='%23064c47'%3EAK%3C/text%3E%3C/svg%3E" />
|
||||||
<link rel="stylesheet" href="/static/styles.css?v=atlas-20260708-2" />
|
<link rel="stylesheet" href="/static/styles.css?v=atlas-20260708-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main class="atlas-app">
|
<main class="atlas-app">
|
||||||
@@ -44,7 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="atlasStage" class="atlas-stage">
|
<div id="atlasStage" class="atlas-stage">
|
||||||
<svg id="atlasSvg" viewBox="0 0 170 100" role="img" aria-label="Agent topic map"></svg>
|
<div id="atlasChart" class="atlas-chart" role="img" aria-label="Agent topic map"></div>
|
||||||
|
<svg id="atlasSvg" class="atlas-fallback" viewBox="0 0 170 100" role="img" aria-label="Agent topic map"></svg>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="route-band">
|
<div class="route-band">
|
||||||
@@ -78,6 +79,6 @@
|
|||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script src="/static/app.js?v=atlas-20260708-2"></script>
|
<script src="/static/app.js?v=atlas-20260708-8"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+127
-10
@@ -1,17 +1,17 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg: #f4f2ec;
|
--bg: #eef0ed;
|
||||||
--surface: #fffefa;
|
--surface: #fcfcf8;
|
||||||
--surface-2: #ece8df;
|
--surface-2: #e6ece8;
|
||||||
--ink: #171a18;
|
--ink: #171a18;
|
||||||
--muted: #6d716c;
|
--muted: #6d716c;
|
||||||
--line: #ddd8cb;
|
--line: #d5ddd3;
|
||||||
--teal: #0d766f;
|
--teal: #0d766f;
|
||||||
--teal-2: #cfe8e3;
|
--teal-2: #cfe8e3;
|
||||||
--coral: #ba5644;
|
--coral: #ba5644;
|
||||||
--gold: #aa7419;
|
--gold: #aa7419;
|
||||||
--green: #527b46;
|
--green: #527b46;
|
||||||
--violet: #665d9f;
|
--violet: #665d9f;
|
||||||
--shadow: 0 18px 50px rgba(35, 31, 24, 0.1);
|
--shadow: 0 20px 54px rgba(23, 31, 28, 0.11);
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -58,7 +58,7 @@ button {
|
|||||||
gap: 18px;
|
gap: 18px;
|
||||||
padding: 16px 22px;
|
padding: 16px 22px;
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
background: rgba(255, 254, 250, 0.94);
|
background: rgba(252, 252, 248, 0.94);
|
||||||
backdrop-filter: blur(14px);
|
backdrop-filter: blur(14px);
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -215,26 +215,49 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.atlas-stage {
|
.atlas-stage {
|
||||||
|
position: relative;
|
||||||
|
isolation: isolate;
|
||||||
height: min(58vh, 560px);
|
height: min(58vh, 560px);
|
||||||
min-height: 420px;
|
min-height: 420px;
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background:
|
background:
|
||||||
linear-gradient(90deg, rgba(23, 26, 24, 0.035) 1px, transparent 1px),
|
linear-gradient(90deg, rgba(25, 34, 30, 0.045) 1px, transparent 1px),
|
||||||
linear-gradient(0deg, rgba(23, 26, 24, 0.035) 1px, transparent 1px),
|
linear-gradient(0deg, rgba(25, 34, 30, 0.045) 1px, transparent 1px),
|
||||||
#fffefa;
|
linear-gradient(135deg, rgba(13, 118, 111, 0.08), transparent 42%),
|
||||||
background-size: 34px 34px;
|
linear-gradient(315deg, rgba(186, 86, 68, 0.07), transparent 38%),
|
||||||
|
#f8faf5;
|
||||||
|
background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%, auto;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.atlas-stage::after {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
content: "";
|
||||||
|
background:
|
||||||
|
linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 24%),
|
||||||
|
linear-gradient(0deg, rgba(19, 25, 22, 0.045), transparent 26%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.atlas-chart,
|
||||||
#atlasSvg {
|
#atlasSvg {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 420px;
|
min-height: 420px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.atlas-chart[hidden],
|
||||||
|
#atlasSvg[hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.atlas-edge {
|
.atlas-edge {
|
||||||
stroke: rgba(82, 85, 79, 0.24);
|
stroke: rgba(82, 85, 79, 0.24);
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
@@ -544,6 +567,99 @@ button {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1181px) {
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.atlas-app {
|
||||||
|
height: 100vh;
|
||||||
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace {
|
||||||
|
min-height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-panel,
|
||||||
|
.lens-panel {
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-panel {
|
||||||
|
overflow: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lens-panel {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lens-body {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .workspace {
|
||||||
|
grid-template-columns: minmax(430px, 0.78fr) minmax(660px, 1.22fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .map-head {
|
||||||
|
align-items: flex-start;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .map-head h2 {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .atlas-actions {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .route-list {
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .lens-head {
|
||||||
|
padding: 22px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .lens-body {
|
||||||
|
padding: 0 30px 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .lens-body .section {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .lens-head h2 {
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .reader-title {
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 1.22;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .reader-box,
|
||||||
|
.reader-mode .ai-box {
|
||||||
|
padding: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reader-mode .markdown-preview,
|
||||||
|
.reader-mode .ai-output,
|
||||||
|
.reader-mode .abstract-text {
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1180px) {
|
@media (max-width: 1180px) {
|
||||||
.topbar {
|
.topbar {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
@@ -636,6 +752,7 @@ button {
|
|||||||
max-width: calc(100vw - 28px);
|
max-width: calc(100vw - 28px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.atlas-chart,
|
||||||
#atlasSvg {
|
#atlasSvg {
|
||||||
min-height: 360px;
|
min-height: 360px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
+222
@@ -0,0 +1,222 @@
|
|||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
========================================================================
|
||||||
|
Apache ECharts Subcomponents:
|
||||||
|
|
||||||
|
The Apache ECharts project contains subcomponents with separate copyright
|
||||||
|
notices and license terms. Your use of the source code for these
|
||||||
|
subcomponents is also subject to the terms and conditions of the following
|
||||||
|
licenses.
|
||||||
|
|
||||||
|
BSD 3-Clause (d3.js):
|
||||||
|
The following files embed [d3.js](https://github.com/d3/d3) BSD 3-Clause:
|
||||||
|
`/src/chart/treemap/treemapLayout.ts`,
|
||||||
|
`/src/chart/tree/layoutHelper.ts`,
|
||||||
|
`/src/chart/graph/forceHelper.ts`,
|
||||||
|
`/src/util/number.ts`
|
||||||
|
See `/licenses/LICENSE-d3` for details of the license.
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
Apache ECharts
|
||||||
|
Copyright 2017-2026 The Apache Software Foundation
|
||||||
|
|
||||||
|
This product includes software developed at
|
||||||
|
The Apache Software Foundation (https://www.apache.org/).
|
||||||
Vendored
+45
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user