repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/donut-transfer/index.js | packages/site/examples/demo/scene-case/donut-transfer/index.js | import F6 from "@antv/f6";
import { data, legendData } from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const legend = new F6.Legend({
data: legendData,
align: "center",
layout: "horizontal",
position: "bottom-left",
vertiSep: 12,
horiSep: 24,
offsetY: -24,
padding: [4, 16, 8,... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/custom-flow/data.js | packages/site/examples/demo/scene-case/custom-flow/data.js | export default {
nodes: [
{
id: "1",
label: "Company1",
},
{
id: "2",
label: "Company2",
},
{
id: "3",
label: "Company3",
},
{
id: "4",
label: "Company4",
},
{
id: "5",
label: "Company5",
},
{
id: "6",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/custom-flow/index.js | packages/site/examples/demo/scene-case/custom-flow/index.js | import F6 from "@antv/f6";
import data from "./data";
import dagreLayout from "@antv/f6/dist/extends/layout/dagreLayout";
import { isObject } from "@antv/util";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerLayout("dagre", dagreLayout);
const colorMap = {
A: "#72CC4A",
B: "#1A91FF",
C: "... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/knowledge-tree-graph/data.js | packages/site/examples/demo/scene-case/knowledge-tree-graph/data.js | export default {
id: "200000004",
tooltip: "Thing",
label: "事物",
description: null,
descriptionZh: null,
depth: 3,
subTypeCount: 9,
status: 0,
children: [
{
id: "500000061",
tooltip: "Person",
label: "自然人",
description: null,
descriptionZh: null,
depth: 1,
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/knowledge-tree-graph/index.js | packages/site/examples/demo/scene-case/knowledge-tree-graph/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const minWidth = 60;
const BaseConfig = {
nameFontSize: 12,
childCountWidth: 22,
countMarginLe... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/metro-lines/data.js | packages/site/examples/demo/scene-case/metro-lines/data.js | const data = {
nodes: [
{
id: "0",
x: 12955418.07889617,
y: 4858516.455509626,
class: "地铁二号线",
name: "地铁二号线 0",
},
{
id: "1",
x: 12955418.07889617,
y: 4858516.455509626,
class: "地铁二号线",
name: "地铁二号线 1",
},
{
id: "2",
x: 129608... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/metro-lines/index.js | packages/site/examples/demo/scene-case/metro-lines/index.js | import F6 from "@antv/f6";
import { nodes, edges, data } from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerNode(
"breath-node",
{
afterDraw(cfg, group) {
const r = cfg.size / 2;
const back1 = group.addShape("circle", {
zIndex: -3,
attrs: {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/decision-tree/data.js | packages/site/examples/demo/scene-case/decision-tree/data.js | export default {
id: "g1",
name: "Name1",
count: 123456,
label: "538.90",
currency: "Yuan",
rate: 1.0,
status: "B",
variableName: "V1",
variableValue: 0.341,
variableUp: false,
children: [
{
id: "g12",
name: "Deal with LONG label LONG label LONG label LONG label",
count: 1234... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/decision-tree/index.js | packages/site/examples/demo/scene-case/decision-tree/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import mockData from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const colors = {
B: "#5B8FF9",
R: "#F46649",
Y: "#EEBC20",
G: "#5BD8A6",
DI: "#A7A7A7",
};
F6.registerGraph("TreeGraph", TreeGra... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/mind-map/data.js | packages/site/examples/demo/scene-case/mind-map/data.js | const rawData = {
label: "Modeling Methods",
id: "0",
children: [
{
label: "Classification",
id: "0-1",
color: "#5AD8A6",
children: [
{
label: "Logistic regression",
id: "0-1-1",
},
{
label: "Linear discriminant analysis",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/scene-case/mind-map/index.js | packages/site/examples/demo/scene-case/mind-map/index.js | import F6 from "@antv/f6";
import result from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const { Util } = F6;
F6.registerNode(
"dice-mind-map-root",
{
jsx: (cfg) => {
const width = Util.getTextSize(cfg.label, 16)[0] + 24;
const stroke = cfg.style.stroke || "#096dd9";
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/add-child/data.js | packages/site/examples/demo/interactive/add-child/data.js | export default {
isRoot: true,
id: "Root",
style: {
fill: "red",
},
children: [
{
id: "SubTreeNode1",
raw: {},
children: [
{
id: "SubTreeNode1.1",
},
{
id: "SubTreeNode1.2",
children: [
{
id: "SubTreeNode... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/add-child/index.js | packages/site/examples/demo/interactive/add-child/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
modes: {
default: ["collapse... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/hull/data.js | packages/site/examples/demo/interactive/hull/data.js | export default {
nodes: [
{ id: "node0", size: 50 },
{ id: "node1", size: 30 },
{ id: "node2", size: 30 },
{ id: "node3", size: 30 },
{ id: "node4", size: 30, isLeaf: true },
{ id: "node5", size: 30, isLeaf: true },
{ id: "node6", size: 15, isLeaf: true },
{ id: "node7", size: 15, isLe... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/hull/index.js | packages/site/examples/demo/interactive/hull/index.js | import F6 from "@antv/f6";
import data from "./data";
import force from "@antv/f6/dist/extends/layout/forceLayout";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerLayout("force", force);
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 50,
modes... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/hide-item/data.js | packages/site/examples/demo/interactive/hide-item/data.js | export default {
nodes: [
{ id: "node0", size: 50, label: "0", x: 326, y: 268 },
{ id: "node1", size: 30, label: "1", x: 280, y: 384 },
{ id: "node2", size: 30, label: "2", x: 234, y: 167 },
{ id: "node3", size: 30, label: "3", x: 391, y: 368 },
{ id: "node4", size: 30, label: "4", x: 444, y: 209 ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/hide-item/index.js | packages/site/examples/demo/interactive/hide-item/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 60,
modes: {
default: [
"drag-node",
{
type: "drag-canvas",
enableOptimize... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/activate-relations/data.js | packages/site/examples/demo/interactive/activate-relations/data.js | export default {
nodes: [
{
id: "0",
comboId: "a",
},
{
id: "1",
comboId: "a",
},
{
id: "2",
comboId: "a",
},
{
id: "3",
comboId: "a",
},
{
id: "4",
comboId: "a",
},
{
id: "5",
comboId: "a",
},
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/activate-relations/index.js | packages/site/examples/demo/interactive/activate-relations/index.js | import F6 from "@antv/f6";
import data from "./data";
import force from "@antv/f6/dist/extends/layout/forceLayout";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerLayout("force", force);
const tooltip = new F6.Tooltip({
offsetX: 10,
offsetY: 10,
fixToNode: [1, 0.5],
itemTypes: ["node", ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/move/data.js | packages/site/examples/demo/interactive/move/data.js | export default {
nodes: [
{
id: "node1",
x: 150,
y: 50,
label: "node1",
},
{
id: "node2",
x: 200,
y: 150,
label: "node2",
},
{
id: "node3",
x: 100,
y: 150,
label: "node3",
},
],
edges: [
{
source: "node1",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/move/index.js | packages/site/examples/demo/interactive/move/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 60,
defaultNode: {
style: {
fill: "#DEE9FF",
stroke: "#5B8FF9",
},
},
defaultEdge:... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/drag-subtree/data.js | packages/site/examples/demo/interactive/drag-subtree/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{ id: "Logistic regression" },
{ id: "Linear discriminant analysis" },
{ id: "Rules" },
{ id: "Decision trees" },
{ id: "Naive Bayes" },
{ id: "K nearest neighbor"... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/drag-subtree/index.js | packages/site/examples/demo/interactive/drag-subtree/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data.js";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/combo-rect/data.js | packages/site/examples/demo/interactive/combo-rect/data.js | export default {
nodes: [
{ id: "node1", x: 350, y: 200, comboId: "combo1" },
{ id: "node2", x: 350, y: 250, comboId: "combo1" },
{ id: "node3", x: 100, y: 200, comboId: "combo3" },
],
edges: [
{ source: "node1", target: "node2" },
{ source: "node1", target: "node3" },
{ source: "combo1", ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/combo-rect/index.js | packages/site/examples/demo/interactive/combo-rect/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 60,
groupByTypes: false,
defaultCombo: {
type: "rect",
size: [40, 10],
padding: [30, 20, 10,... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/change-data/data.js | packages/site/examples/demo/interactive/change-data/data.js | export default {
isRoot: true,
id: "Root",
style: {
fill: "red",
},
children: [
{
id: "SubTreeNode1",
raw: {},
children: [
{
id: "SubTreeNode1.1",
},
{
id: "SubTreeNode1.2",
children: [
{
id: "SubTreeNode... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/change-data/index.js | packages/site/examples/demo/interactive/change-data/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
modes: {
default: ["collapse... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/move-animate/data.js | packages/site/examples/demo/interactive/move-animate/data.js | export default {
nodes: [
{
id: "node1",
x: 150,
y: 50,
label: "node1",
},
{
id: "node2",
x: 200,
y: 150,
label: "node2",
},
{
id: "node3",
x: 100,
y: 150,
label: "node3",
},
],
edges: [
{
source: "node1",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/move-animate/index.js | packages/site/examples/demo/interactive/move-animate/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 60,
defaultNode: {
style: {
fill: "#DEE9FF",
stroke: "#5B8FF9",
},
},
defaultEdge:... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/combo-circle/data.js | packages/site/examples/demo/interactive/combo-circle/data.js | export default {
nodes: [
{ id: "node1", x: 350, y: 200, comboId: "combo1" },
{ id: "node2", x: 350, y: 250, comboId: "combo1" },
{ id: "node3", x: 100, y: 200, comboId: "combo3" },
],
edges: [
{ source: "node1", target: "node2" },
{ source: "node1", target: "node3" },
{ source: "combo1", ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/combo-circle/index.js | packages/site/examples/demo/interactive/combo-circle/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 60,
groupByTypes: false,
defaultCombo: {
type: "circle",
style: {
lineWidth: 1,
},
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/collapse-slibing/data.js | packages/site/examples/demo/interactive/collapse-slibing/data.js | export default {
isRoot: true,
id: "Root",
cluster: "c0",
children: [
{
id: "SubTreeNode1",
cluster: "c0",
raw: {},
children: [
{
id: "SubTreeNode1.1",
cluster: "c1",
},
{
id: "SubTreeNode1.2",
cluster: "c1",
c... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/collapse-slibing/index.js | packages/site/examples/demo/interactive/collapse-slibing/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data.js";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
F6.registerBehavior("collapse-slibing", {
getEvents() {
return {
"node:click": "onCli... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/change-members/data.js | packages/site/examples/demo/interactive/change-members/data.js | export default {
nodes: [
{
id: "1",
label: "公司1",
group: 1,
},
{
id: "2",
label: "公司2",
group: 1,
},
{
id: "3",
label: "公司3",
group: 1,
},
{
id: "4",
label: "公司4",
group: 1,
},
{
id: "5",
label: "公... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/change-members/index.js | packages/site/examples/demo/interactive/change-members/index.js | import F6 from "@antv/f6";
import data from "./data";
import grid from "@antv/f6/dist/extends/layout/gridLayout";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerLayout("grid", grid);
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
fitViewPadding: 50,
modes: {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/canvas-two-fingers/data.js | packages/site/examples/demo/interactive/canvas-two-fingers/data.js | export default {
nodes: [
{
id: "Myriel",
},
{
id: "Napoleon",
},
{
id: "Mlle.Baptistine",
},
{
id: "Mme.Magloire",
},
{
id: "CountessdeLo",
},
{
id: "Geborand",
},
{
id: "Champtercier",
},
{
id: "Cravatte",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/canvas-two-fingers/index.js | packages/site/examples/demo/interactive/canvas-two-fingers/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerBehavior("double-finger-drag-canvas", {
getEvents: function getEvents() {
return {
"canvas:drag": "onWheel",
};
},
onWheel: function onWheel(ev) {
if (ev.ctrlKey) {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/highlight-dark/data.js | packages/site/examples/demo/interactive/highlight-dark/data.js | export default {
nodes: [
{
id: "0",
comboId: "a",
},
{
id: "1",
comboId: "a",
},
{
id: "2",
comboId: "a",
},
{
id: "3",
comboId: "a",
},
{
id: "4",
comboId: "a",
},
{
id: "5",
comboId: "a",
},
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/highlight-dark/index.js | packages/site/examples/demo/interactive/highlight-dark/index.js | import F6 from "@antv/f6";
import data from "./data";
import force from "@antv/f6/dist/extends/layout/forceLayout";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerLayout("force", force);
const tooltip = new F6.Tooltip({
offsetX: 10,
offsetY: 10,
fixToNode: [1, 0.5],
itemTypes: ["node", ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/partial-node/data.js | packages/site/examples/demo/interactive/partial-node/data.js | export default {
nodes: [
{
id: "node1",
x: 100,
y: 150,
label: "node1",
size: 100,
type: "customNode",
},
{
id: "node2",
x: 300,
y: 150,
label: "node2",
size: 100,
type: "customNode",
},
],
edges: [
{
source: "node1... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/interactive/partial-node/index.js | packages/site/examples/demo/interactive/partial-node/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerNode(
"customNode",
{
drawShape: function drawShape(cfg, group) {
const { shapeType } = this;
const style = Object.assign({}, this.getShapeStyle(cfg), {
x: 0,
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/intend-align-top/data.js | packages/site/examples/demo/tree-graph/intend-align-top/data.js | export default {
id: "A",
children: [
{
id: "A1",
children: [{ id: "A11" }, { id: "A12" }, { id: "A13" }, { id: "A14" }],
},
{
id: "A2",
children: [
{
id: "A21",
children: [{ id: "A211" }, { id: "A212" }],
},
{
id: "A22",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/intend-align-top/index.js | packages/site/examples/demo/tree-graph/intend-align-top/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
F6.registerNode("card-node", {
draw: function drawShape(cfg, group) {
const r = 2;
const c... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/right-mind-map/data.js | packages/site/examples/demo/tree-graph/right-mind-map/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/right-mind-map/index.js | packages/site/examples/demo/tree-graph/right-mind-map/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
d... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tree-edge-label/data.js | packages/site/examples/demo/tree-graph/tree-edge-label/data.js | export default {
isRoot: true,
id: "Root",
style: {
fill: "red",
},
children: [
{
id: "SubTreeNode1",
raw: {},
children: [
{
id: "SubTreeNode1.1",
},
{
id: "SubTreeNode1.2",
children: [
{
id: "SubTreeNode... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tree-edge-label/index.js | packages/site/examples/demo/tree-graph/tree-edge-label/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
linkCenter: true,
pixelRatio,
fitView: tr... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-tree/data.js | packages/site/examples/demo/tree-graph/custom-tree/data.js | export default {
name: "Modeling Methods",
children: [
{
name: "Classification",
children: [
{
name: "Logistic regression",
},
{
name: "Linear discriminant analysis",
},
{
name: "Rules",
},
{
name: "Decis... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-tree/index.js | packages/site/examples/demo/tree-graph/custom-tree/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
F6.registerNode(
"tree-node",
{
drawShape: function drawShape(cfg, group) {
const rec... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/radial-dendrogram/data.js | packages/site/examples/demo/tree-graph/radial-dendrogram/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/radial-dendrogram/index.js | packages/site/examples/demo/tree-graph/radial-dendrogram/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
linkCenter: true,
pixelRatio,
fitView: true,
modes: {
default: [
{
type: "collapse-... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/file-system/data.js | packages/site/examples/demo/tree-graph/file-system/data.js | export default {
id: "1",
name: "src",
children: [
{
id: "1-1",
name: "behavior",
children: [],
},
{
id: "1-3",
name: "graph",
children: [
{
id: "1-3-1",
name: "controller",
children: [],
},
],
},
{
i... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/file-system/index.js | packages/site/examples/demo/tree-graph/file-system/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
F6.registerNode("file-node", {
draw: function draw(cfg, group) {
const keyShape = group.addSha... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/radial-compact-box/data.js | packages/site/examples/demo/tree-graph/radial-compact-box/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/radial-compact-box/index.js | packages/site/examples/demo/tree-graph/radial-compact-box/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
linkCenter: true,
pixelRatio,
fitView: tr... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/compact-box/data.js | packages/site/examples/demo/tree-graph/compact-box/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{ id: "Logistic regression" },
{ id: "Linear discriminant analysis" },
{ id: "Rules" },
{ id: "Decision trees" },
{ id: "Naive Bayes" },
{ id: "K nearest neighbor"... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/compact-box/index.js | packages/site/examples/demo/tree-graph/compact-box/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data.js";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tb-compact-box/data.js | packages/site/examples/demo/tree-graph/tb-compact-box/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tb-compact-box/index.js | packages/site/examples/demo/tree-graph/tb-compact-box/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data.js";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
linkCenter:... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/basic-dendrogram/data.js | packages/site/examples/demo/tree-graph/basic-dendrogram/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{ id: "Logistic regression" },
{ id: "Linear discriminant analysis" },
{ id: "Rules" },
{ id: "Decision trees" },
{ id: "Naive Bayes" },
{ id: "K nearest neighbor"... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/basic-dendrogram/index.js | packages/site/examples/demo/tree-graph/basic-dendrogram/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
de... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-side-mind-map/data.js | packages/site/examples/demo/tree-graph/custom-side-mind-map/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-side-mind-map/index.js | packages/site/examples/demo/tree-graph/custom-side-mind-map/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
d... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-edge-tree/data.js | packages/site/examples/demo/tree-graph/custom-edge-tree/data.js | export default {
id: "root",
label: "root",
children: [
{
id: "c1",
label: "c1",
children: [
{
id: "c1-1",
label: "c1-1",
},
{
id: "c1-2",
label: "c1-2",
children: [
{
id: "c1-2-1",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/custom-edge-tree/index.js | packages/site/examples/demo/tree-graph/custom-edge-tree/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const COLLAPSE_ICON = function COLLAPSE_ICON(x, y, r) {
return [
["M", x - r, y - r],
["a... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tb-dendrogram/data.js | packages/site/examples/demo/tree-graph/tb-dendrogram/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/tb-dendrogram/index.js | packages/site/examples/demo/tree-graph/tb-dendrogram/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
linkCenter: tr... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/mind-map/data.js | packages/site/examples/demo/tree-graph/mind-map/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/mind-map/index.js | packages/site/examples/demo/tree-graph/mind-map/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
de... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/intended/data.js | packages/site/examples/demo/tree-graph/intended/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/intended/index.js | packages/site/examples/demo/tree-graph/intended/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
linkCenter: true,
pixelRatio,
fitView: tru... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/left-mind-map/data.js | packages/site/examples/demo/tree-graph/left-mind-map/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/left-mind-map/index.js | packages/site/examples/demo/tree-graph/left-mind-map/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data_ from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
const graph = new F6.TreeGraph({
width,
height,
pixelRatio,
fitView: true,
modes: {
d... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/compact-box-left-align/data.js | packages/site/examples/demo/tree-graph/compact-box-left-align/data.js | export default {
id: "Modeling Methods",
children: [
{
id: "Classification",
children: [
{
id: "Logistic regression",
},
{
id: "Linear discriminant analysis",
},
{
id: "Rules",
},
{
id: "Decision trees",
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/tree-graph/compact-box-left-align/index.js | packages/site/examples/demo/tree-graph/compact-box-left-align/index.js | import F6 from "@antv/f6";
import TreeGraph from "@antv/f6/dist/extends/graph/treeGraph";
import data from "./data.js";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerGraph("TreeGraph", TreeGraph);
F6.registerNode("crect", {
draw: (cfg, group) => {
const width = cfg.id.length * 10;
co... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/change-position-default/data.js | packages/site/examples/demo/animation/change-position-default/data.js | export default {
nodes: [
{
id: "a",
x: 200,
y: 100,
style: { fill: "#5B8FF9", stroke: null },
},
{
id: "b",
x: 100,
y: 200,
style: { fill: "#5AD8A6", stroke: null },
},
{
id: "c",
x: 300,
y: 200,
style: { fill: "#5D7092", str... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/change-position-default/index.js | packages/site/examples/demo/animation/change-position-default/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
animate: true,
});
graph.data(data);
graph.render();
graph.fitView();
setInterval(() => {
data.nodes.forEach((node) => {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/point-in-line/data.js | packages/site/examples/demo/animation/point-in-line/data.js | export default {
nodes: [
{
id: "node1",
x: 100,
y: 100,
label: "Node 1",
labelCfg: {
position: "top",
},
},
{
id: "node2",
x: 300,
y: 200,
color: "#40a9ff",
label: "Node 2",
labelCfg: {
position: "left",
offse... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/point-in-line/index.js | packages/site/examples/demo/animation/point-in-line/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerEdge(
"circle-running",
{
afterDraw(cfg, group) {
const shape = group.get("children")[0];
const startPoint = shape.getPoint(0);
const circle = group.addShape("circle", ... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/edge-line-growth/data.js | packages/site/examples/demo/animation/edge-line-growth/data.js | export default {
nodes: [
{
id: "node1",
x: 100,
y: 100,
label: "Node 1",
labelCfg: {
position: "top",
},
},
{
id: "node2",
x: 300,
y: 200,
color: "#40a9ff",
label: "Node 2",
labelCfg: {
position: "left",
offse... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/edge-line-growth/index.js | packages/site/examples/demo/animation/edge-line-growth/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerEdge(
"line-growth",
{
afterDraw(_, group) {
const shape = group.get("children")[0];
const length = shape.getTotalLength();
console.log(_);
shape.animate(
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/node-node/data.js | packages/site/examples/demo/animation/node-node/data.js | export default {
nodes: [
{
id: "node1",
x: 100,
y: 100,
type: "circle-animate",
size: 20,
label: "Scale Animation",
labelCfg: {
position: "top",
},
},
{
id: "node2",
x: 300,
y: 200,
type: "background-animate",
color: "#... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/node-node/index.js | packages/site/examples/demo/animation/node-node/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
F6.registerNode(
"circle-animate",
{
afterDraw(cfg, group) {
const shape = group.get("children")[0];
shape.animate(
(ratio) => {
const diff = ratio <= 0.5 ? ratio * 10... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/edge-edge/data.js | packages/site/examples/demo/animation/edge-edge/data.js | export default {
nodes: [
{
id: "node1",
x: 100,
y: 100,
label: "Node 1",
labelCfg: {
position: "top",
},
},
{
id: "node2",
x: 300,
y: 200,
color: "#40a9ff",
label: "Node 2",
labelCfg: {
position: "left",
offse... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/edge-edge/index.js | packages/site/examples/demo/animation/edge-edge/index.js | import F6 from "@antv/f6";
import data from "./data";
const width = 375;
const height = 600;
const pixelRatio = 2;
const lineDash = [4, 2, 1, 2];
F6.registerEdge(
"line-dash",
{
afterDraw(cfg, group) {
const shape = group.get("children")[0];
let index = 0;
shape.animate(
() => {
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/site/examples/demo/animation/custom-animate-position/index.js | packages/site/examples/demo/animation/custom-animate-position/index.js | import F6 from "@antv/f6";
const width = 375;
const height = 600;
const pixelRatio = 2;
const r = 50;
const radius = Math.PI;
const graph = new F6.Graph({
width,
height,
pixelRatio,
fitView: true,
animate: true,
animateCfg: {
duration: 1000,
onFrame(node, ratio, toAttrs, fromAttrs) {
const cu... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/index.js | packages/f6-wx/src/index.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.F6 = e())
: (t.F6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/graph/treeGraph.js | packages/f6-wx/src/extends/graph/treeGraph.js | !(function (t, n) {
"object" == typeof exports && "object" == typeof module
? (module.exports = n())
: "function" == typeof define && define.amd
? define([], n)
: "object" == typeof exports
? (exports.f6 = n())
: (t.f6 = n());
})(this, function () {
return (function (t) {
var n = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/comboForceLayout.js | packages/f6-wx/src/extends/layout/comboForceLayout.js | !(function (e, t) {
"object" == typeof exports && "object" == typeof module
? (module.exports = t())
: "function" == typeof define && define.amd
? define([], t)
: "object" == typeof exports
? (exports.f6 = t())
: (e.f6 = t());
})(this, function () {
return (function (e) {
var t = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/gridLayout.js | packages/f6-wx/src/extends/layout/gridLayout.js | !(function (e, t) {
"object" == typeof exports && "object" == typeof module
? (module.exports = t())
: "function" == typeof define && define.amd
? define([], t)
: "object" == typeof exports
? (exports.f6 = t())
: (e.f6 = t());
})(this, function () {
return (function (e) {
var t = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/circularLayout.js | packages/f6-wx/src/extends/layout/circularLayout.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.f6 = e())
: (t.f6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/forceAtlas2Layout.js | packages/f6-wx/src/extends/layout/forceAtlas2Layout.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.f6 = e())
: (t.f6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/fruchtermanLayout.js | packages/f6-wx/src/extends/layout/fruchtermanLayout.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.f6 = e())
: (t.f6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/randomLayout.js | packages/f6-wx/src/extends/layout/randomLayout.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.f6 = e())
: (t.f6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/radialLayout.js | packages/f6-wx/src/extends/layout/radialLayout.js | !(function (t, r) {
"object" == typeof exports && "object" == typeof module
? (module.exports = r())
: "function" == typeof define && define.amd
? define([], r)
: "object" == typeof exports
? (exports.f6 = r())
: (t.f6 = r());
})(this, function () {
return (function (t) {
var r = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/concentricLayout.js | packages/f6-wx/src/extends/layout/concentricLayout.js | !(function (e, t) {
"object" == typeof exports && "object" == typeof module
? (module.exports = t())
: "function" == typeof define && define.amd
? define([], t)
: "object" == typeof exports
? (exports.f6 = t())
: (e.f6 = t());
})(this, function () {
return (function (e) {
var t = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/dagreLayout.js | packages/f6-wx/src/extends/layout/dagreLayout.js | !(function (t, n) {
"object" == typeof exports && "object" == typeof module
? (module.exports = n())
: "function" == typeof define && define.amd
? define([], n)
: "object" == typeof exports
? (exports.f6 = n())
: (t.f6 = n());
})(this, function () {
return (function (t) {
var n = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/forceLayout.js | packages/f6-wx/src/extends/layout/forceLayout.js | !(function (t, n) {
"object" == typeof exports && "object" == typeof module
? (module.exports = n())
: "function" == typeof define && define.amd
? define([], n)
: "object" == typeof exports
? (exports.f6 = n())
: (t.f6 = n());
})(this, function () {
return (function (t) {
var n = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/mdsLayout.js | packages/f6-wx/src/extends/layout/mdsLayout.js | !(function (t, r) {
"object" == typeof exports && "object" == typeof module
? (module.exports = r())
: "function" == typeof define && define.amd
? define([], r)
: "object" == typeof exports
? (exports.f6 = r())
: (t.f6 = r());
})(this, function () {
return (function (t) {
var r = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | true |
antvis/F6 | https://github.com/antvis/F6/blob/f632a34ab2bba06bc735c234263db238cad549cb/packages/f6-wx/src/extends/layout/gForceLayout.js | packages/f6-wx/src/extends/layout/gForceLayout.js | !(function (t, e) {
"object" == typeof exports && "object" == typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define([], e)
: "object" == typeof exports
? (exports.f6 = e())
: (t.f6 = e());
})(this, function () {
return (function (t) {
var e = {};
... | javascript | MIT | f632a34ab2bba06bc735c234263db238cad549cb | 2026-01-05T03:38:06.879725Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.