ssbunny / d3-selection

Transform the DOM by selecting elements and joining to data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

d3源码学习笔记之 d3-selection

记录学习 d3.v4.js 过程中,在源码中的注释。列出已经看过的源码:

  • constant.js - 构造常数
  • creator.js - 获得创建元素函数的函数,多用于 append/insert 回调
  • local.js
  • matcher.js - 子选择器函数,参见 selection/filter.js
  • mouse.js
  • namespace.js - 取命名空间
  • namespaces.js - 已注册的命名空间前缀
  • point.js
  • select.js - 获得选区
  • selectAll.js - 获得选区,选区中包含一组节点
  • selector.js - 子选择器函数,参见 selection/select.js
  • selectorAll.js - 子选择器函数,参见 selection/selectAll.js
  • sourceEvent.js
  • touch.js
  • touches.js
  • window.js - 获得 window 对象
  • selection/append.js - 添加元素
  • selection/attr.js - 获取/设置属性
  • selection/call.js
  • selection/classed.js - 处理样式
  • selection/data.js
  • selection/datum.js - 处理单一节点的数据
  • selection/dispatch.js
  • selection/each.js - 为每个元素执行回调函数
  • selection/empty.js
  • selection/enter.js
  • selection/exit.js
  • selection/filter.js - 过滤选区
  • selection/html.js - 获取/设置节点的 innerHTML 值
  • selection/index.js - 选区
  • selection/insert.js - 插入元素
  • selection/lower.js - 将当前选区中的元素依次移动到最前面
  • selection/merge.js - 合并选区
  • selection/node.js - 找到选区内第一个非空元素
  • selection/nodes.js - 找到选区内所有非空元素
  • selection/on.js
  • selection/order.js - 按当前选区的顺序重新组织 DOM 结构
  • selection/property.js - 获取/设置属性
  • selection/raise.js - 将当前选区中的元素依次移动到最后面
  • selection/remove.js - 删除元素
  • selection/select.js - 获得子选区
  • selection/selectAll.js - 获得子选区
  • selection/size.js - 获得当前选区大小,不包含空元素
  • selection/sort.js - 重排选区 + order 操作
  • selection/sparse.js
  • selection/style.js - 处理内联样式
  • selection/text.js - 获取/设置节点的 textContent 值

About

Transform the DOM by selecting elements and joining to data.

License:Other


Languages

Language:JavaScript 100.0%