diff --git a/js/citta.js b/js/citta.js index 45eccd9..1f93fae 100644 --- a/js/citta.js +++ b/js/citta.js @@ -129,10 +129,10 @@ function renderCetasikaTable(y) { cetasikaIdIndex[name] = child.id; itemIndex[child.id] = renderCetasikaCell(x, y + rowHeight * 3, columnWidth, rowHeight * 2.5, name); noteIndex[child.id] = { - "char_mark": child.char_mark, - "function": child.function, - "appearance": child.appearance, - "proximate_cause": child.proximate_cause, + 'char_mark': child.char_mark, + 'function': child.function, + 'appearance': child.appearance, + 'proximate_cause': child.proximate_cause, }; x += columnWidth; }); @@ -390,17 +390,17 @@ function setupHighlightsBehavior(cntt, ntt) { let connections = itemGraph[itemId]; let item = itemIndex[itemId]; - item.on("mouseover", function(event, d) { + item.on('mouseover', function(event, d) { if (locked) return; highlightsConnections(connections); }) - .on("mousemove", function(event) { + .on('mousemove', function(event) { }) - .on("mouseout", function() { + .on('mouseout', function() { if (locked) return; if (clearFunc) clearFunc(); }) - .on("click", function() { + .on('click', function() { if (locked && lockedItem === this) { locked = false; lockedItem = null; diff --git a/js/common.js b/js/common.js index 443b3f6..3dc6bbe 100644 --- a/js/common.js +++ b/js/common.js @@ -19,16 +19,16 @@ const rpSvg = container.select('#container4').append('svg') .attr('width', svgWidth) .attr('height', svgHeight); -const rpgSvg = container.select("#container5").append('svg') +const rpgSvg = container.select('#container5').append('svg') .attr('class', 'svg-content') .attr('width', svgWidth) .attr('height', svgHeight); -const rpnSvg = container.select("#simulation"); +const rpnSvg = container.select('#simulation'); -const rpnlSvg = container.select("#simulation-notes"); +const rpnlSvg = container.select('#simulation-notes'); -const rpnsSvg = container.select("#container6").append('svg') +const rpnsSvg = container.select('#container6').append('svg') .attr('class', 'svg-content') .attr('width', svgWidth) .attr('height', 1); @@ -119,7 +119,7 @@ function renderTextBox(parent, x, y, w, h, bgColor, text, params = {}) { let cell = renderCell(item, x, y, w, h, bgColor); let textElement = renderText(item, x, y, w, h, text, params); item.setText = function(newText) { - item.select("text").remove(); + item.select('text').remove(); textElement = renderText(item, x, y, w, h, newText, params); }; item.setColor = function(newColor) { diff --git a/js/data.js b/js/data.js index e0b7796..eae8eca 100644 --- a/js/data.js +++ b/js/data.js @@ -1,2508 +1,2508 @@ const cittas = { - "name": "心", - "cetasika": [ - "触", - "受", - "想", - "思", - "一境性", - "命根", - "作意" + 'name': '心', + 'cetasika': [ + '触', + '受', + '想', + '思', + '一境性', + '命根', + '作意' ], - "children": [ + 'children': [ { - "name": "12不善心", - "realm": "欲", - "category": [ - "不善" - ], - "roots": [ - "痴" - ], - "cetasika": [ - "寻", - "伺", - "痴", - "无愧", - "无惭", - "掉举" - ], - "functions": [ - "速行" - ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" - ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" - ], - "mental_objects": [ - "54欲界心", - "15色界心", - "12无色界心", - "52心所21色", - "概念" - ], - "object_time": [ - "过去", - "现在", - "未来", - "离时" - ], - "basis": "有时依", - "realms": [ - "欲" - ], - "children": [ - { - "name": "悦俱邪见相应无行心", - "feeling": "悦", - "roots": [ - "贪" - ], - "condition": "相应", - "volition": "无行", - "cetasika": [ - "胜解", - "精进", - "喜", - "欲", - "邪见", - "贪" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "悦", - "俱", - "邪见", - "相应", - "无行" - ], - "id": 1 - }, - { - "name": "悦俱邪见相应有行心", - "feeling": "悦", - "roots": [ - "贪" - ], - "condition": "相应", - "volition": "有行", - "cetasika": [ - "胜解", - "精进", - "喜", - "欲", - "邪见", - "贪", - "昏沉", - "睡眠" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "悦", - "俱", - "邪见", - "相应", - "有行" - ], - "id": 2 - }, - { - "name": "悦俱邪见不相应无行心", - "feeling": "悦", - "roots": [ - "贪" - ], - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "胜解", - "精进", - "喜", - "欲", - "贪" - ], - "cetasika_opt": [ - "慢" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "悦", - "俱", - "邪见", - "不相应", - "无行" - ], - "id": 3 - }, - { - "name": "悦俱邪见不相应有行心", - "feeling": "悦", - "roots": [ - "贪" - ], - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "胜解", - "精进", - "喜", - "欲", - "贪", - "昏沉", - "睡眠" - ], - "cetasika_opt": [ - "慢" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "悦", - "俱", - "邪见", - "不相应", - "有行" - ], - "id": 4 - }, - { - "name": "舍俱邪见相应无行心", - "feeling": "舍", - "roots": [ - "贪" - ], - "condition": "相应", - "volition": "无行", - "cetasika": [ - "胜解", - "精进", - "欲", - "邪见", - "贪" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "邪见", - "相应", - "无行" - ], - "id": 5 - }, - { - "name": "舍俱邪见相应有行心", - "feeling": "舍", - "roots": [ - "贪" - ], - "condition": "相应", - "volition": "有行", - "cetasika": [ - "胜解", - "精进", - "欲", - "邪见", - "贪", - "昏沉", - "睡眠" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "邪见", - "相应", - "有行" - ], - "id": 6 - }, - { - "name": "舍俱邪见不相应无行心", - "feeling": "舍", - "roots": [ - "贪" - ], - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "胜解", - "精进", - "欲", - "贪" - ], - "cetasika_opt": [ - "慢" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "邪见", - "不相应", - "无行" - ], - "id": 7 - }, - { - "name": "舍俱邪见不相应有行心", - "feeling": "舍", - "roots": [ - "贪" - ], - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "胜解", - "精进", - "欲", - "贪", - "昏沉", - "睡眠" - ], - "cetasika_opt": [ - "慢" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "邪见", - "不相应", - "有行" - ], - "id": 8 - }, - { - "name": "忧俱嗔恚相应无行心", - "feeling": "忧", - "roots": [ - "嗔" - ], - "condition": "相应", - "volition": "无行", - "basis": "欲界依", - "cetasika": [ - "胜解", - "精进", - "欲", - "嗔" - ], - "cetasika_opt": [ - "嫉", - "悭", - "恶作" - ], - "notes": [ - "忧", - "俱", - "嗔恚", - "相应", - "无行" - ], - "id": 9 - }, - { - "name": "忧俱嗔恚相应有行心", - "feeling": "忧", - "roots": [ - "嗔" - ], - "condition": "相应", - "volition": "有行", - "basis": "欲界依", - "cetasika": [ - "胜解", - "精进", - "欲", - "嗔", - "昏沉", - "睡眠" - ], - "cetasika_opt": [ - "嫉", - "悭", - "恶作" - ], - "notes": [ - "忧", - "俱", - "嗔恚", - "相应", - "有行" - ], - "id": 10 - }, - { - "name": "舍俱疑相应心", - "feeling": "舍", - "condition": "相应", - "cetasika": [ - "精进", - "疑" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "疑", - "相应" - ], - "id": 11 - }, - { - "name": "舍俱掉举相应心", - "feeling": "舍", - "condition": "相应", - "cetasika": [ - "胜解", - "精进" - ], - "realms": [ - "色", - "无色" - ], - "notes": [ - "舍", - "俱", - "掉举", - "相应" - ], - "id": 12 + 'name': '12不善心', + 'realm': '欲', + 'category': [ + '不善' + ], + 'roots': [ + '痴' + ], + 'cetasika': [ + '寻', + '伺', + '痴', + '无愧', + '无惭', + '掉举' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' + ], + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' + ], + 'mental_objects': [ + '54欲界心', + '15色界心', + '12无色界心', + '52心所21色', + '概念' + ], + 'object_time': [ + '过去', + '现在', + '未来', + '离时' + ], + 'basis': '有时依', + 'realms': [ + '欲' + ], + 'children': [ + { + 'name': '悦俱邪见相应无行心', + 'feeling': '悦', + 'roots': [ + '贪' + ], + 'condition': '相应', + 'volition': '无行', + 'cetasika': [ + '胜解', + '精进', + '喜', + '欲', + '邪见', + '贪' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '悦', + '俱', + '邪见', + '相应', + '无行' + ], + 'id': 1 + }, + { + 'name': '悦俱邪见相应有行心', + 'feeling': '悦', + 'roots': [ + '贪' + ], + 'condition': '相应', + 'volition': '有行', + 'cetasika': [ + '胜解', + '精进', + '喜', + '欲', + '邪见', + '贪', + '昏沉', + '睡眠' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '悦', + '俱', + '邪见', + '相应', + '有行' + ], + 'id': 2 + }, + { + 'name': '悦俱邪见不相应无行心', + 'feeling': '悦', + 'roots': [ + '贪' + ], + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '胜解', + '精进', + '喜', + '欲', + '贪' + ], + 'cetasika_opt': [ + '慢' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '悦', + '俱', + '邪见', + '不相应', + '无行' + ], + 'id': 3 + }, + { + 'name': '悦俱邪见不相应有行心', + 'feeling': '悦', + 'roots': [ + '贪' + ], + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '胜解', + '精进', + '喜', + '欲', + '贪', + '昏沉', + '睡眠' + ], + 'cetasika_opt': [ + '慢' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '悦', + '俱', + '邪见', + '不相应', + '有行' + ], + 'id': 4 + }, + { + 'name': '舍俱邪见相应无行心', + 'feeling': '舍', + 'roots': [ + '贪' + ], + 'condition': '相应', + 'volition': '无行', + 'cetasika': [ + '胜解', + '精进', + '欲', + '邪见', + '贪' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '邪见', + '相应', + '无行' + ], + 'id': 5 + }, + { + 'name': '舍俱邪见相应有行心', + 'feeling': '舍', + 'roots': [ + '贪' + ], + 'condition': '相应', + 'volition': '有行', + 'cetasika': [ + '胜解', + '精进', + '欲', + '邪见', + '贪', + '昏沉', + '睡眠' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '邪见', + '相应', + '有行' + ], + 'id': 6 + }, + { + 'name': '舍俱邪见不相应无行心', + 'feeling': '舍', + 'roots': [ + '贪' + ], + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '胜解', + '精进', + '欲', + '贪' + ], + 'cetasika_opt': [ + '慢' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '邪见', + '不相应', + '无行' + ], + 'id': 7 + }, + { + 'name': '舍俱邪见不相应有行心', + 'feeling': '舍', + 'roots': [ + '贪' + ], + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '胜解', + '精进', + '欲', + '贪', + '昏沉', + '睡眠' + ], + 'cetasika_opt': [ + '慢' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '邪见', + '不相应', + '有行' + ], + 'id': 8 + }, + { + 'name': '忧俱嗔恚相应无行心', + 'feeling': '忧', + 'roots': [ + '嗔' + ], + 'condition': '相应', + 'volition': '无行', + 'basis': '欲界依', + 'cetasika': [ + '胜解', + '精进', + '欲', + '嗔' + ], + 'cetasika_opt': [ + '嫉', + '悭', + '恶作' + ], + 'notes': [ + '忧', + '俱', + '嗔恚', + '相应', + '无行' + ], + 'id': 9 + }, + { + 'name': '忧俱嗔恚相应有行心', + 'feeling': '忧', + 'roots': [ + '嗔' + ], + 'condition': '相应', + 'volition': '有行', + 'basis': '欲界依', + 'cetasika': [ + '胜解', + '精进', + '欲', + '嗔', + '昏沉', + '睡眠' + ], + 'cetasika_opt': [ + '嫉', + '悭', + '恶作' + ], + 'notes': [ + '忧', + '俱', + '嗔恚', + '相应', + '有行' + ], + 'id': 10 + }, + { + 'name': '舍俱疑相应心', + 'feeling': '舍', + 'condition': '相应', + 'cetasika': [ + '精进', + '疑' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '疑', + '相应' + ], + 'id': 11 + }, + { + 'name': '舍俱掉举相应心', + 'feeling': '舍', + 'condition': '相应', + 'cetasika': [ + '胜解', + '精进' + ], + 'realms': [ + '色', + '无色' + ], + 'notes': [ + '舍', + '俱', + '掉举', + '相应' + ], + 'id': 12 } ] }, { - "name": "8大善心", - "realm": "欲", - "category": [ - "善" - ], - "roots": [ - "无贪", - "无嗔" - ], - "functions": [ - "速行" - ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" - ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" - ], - "mental_objects": [ - "54欲界心", - "15色界心", - "12无色界心", - "52心所21色", - "概念" - ], - "object_time": [ - "过去", - "现在", - "未来", - "离时" - ], - "cetasika": [ - "寻", - "伺", - "胜解", - "精进", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "cetasika_opt": [ - "正语", - "正业", - "正命", - "悲悯", - "随喜" - ], - "basis": "有时依", - "realms": [ - "欲", - "色", - "无色" - ], - "children": [ - { - "name": "悦俱智相应无行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "无行", - "mental_objects": [ - "6出世间心", - "涅槃" - ], - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "无行" - ], - "id": 13 - }, - { - "name": "悦俱智相应有行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "有行", - "mental_objects": [ - "6出世间心", - "涅槃" - ], - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "有行" - ], - "id": 14 - }, - { - "name": "悦俱智不相应无行心", - "feeling": "悦", - "condition": "不相应", - "volition": "无行", - "mental_objects": [ - "涅槃" - ], - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 15 - }, - { - "name": "悦俱智不相应有行心", - "feeling": "悦", - "condition": "不相应", - "volition": "有行", - "mental_objects": [ - "涅槃" - ], - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 16 - }, - { - "name": "舍俱智相应无行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "无行", - "mental_objects": [ - "6出世间心", - "涅槃" - ], - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "无行" - ], - "id": 17 - }, - { - "name": "舍俱智相应有行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "有行", - "mental_objects": [ - "6出世间心", - "涅槃" - ], - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "有行" - ], - "id": 18 - }, - { - "name": "舍俱智不相应无行心", - "feeling": "舍", - "condition": "不相应", - "volition": "无行", - "mental_objects": [ - "涅槃" - ], - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 19 - }, - { - "name": "舍俱智不相应有行心", - "feeling": "舍", - "condition": "不相应", - "mental_objects": [ - "涅槃" + 'name': '8大善心', + 'realm': '欲', + 'category': [ + '善' + ], + 'roots': [ + '无贪', + '无嗔' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' + ], + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' + ], + 'mental_objects': [ + '54欲界心', + '15色界心', + '12无色界心', + '52心所21色', + '概念' + ], + 'object_time': [ + '过去', + '现在', + '未来', + '离时' + ], + 'cetasika': [ + '寻', + '伺', + '胜解', + '精进', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'cetasika_opt': [ + '正语', + '正业', + '正命', + '悲悯', + '随喜' + ], + 'basis': '有时依', + 'realms': [ + '欲', + '色', + '无色' + ], + 'children': [ + { + 'name': '悦俱智相应无行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '无行', + 'mental_objects': [ + '6出世间心', + '涅槃' + ], + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '无行' + ], + 'id': 13 + }, + { + 'name': '悦俱智相应有行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '有行', + 'mental_objects': [ + '6出世间心', + '涅槃' + ], + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '有行' + ], + 'id': 14 + }, + { + 'name': '悦俱智不相应无行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '无行', + 'mental_objects': [ + '涅槃' + ], + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 15 + }, + { + 'name': '悦俱智不相应有行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '有行', + 'mental_objects': [ + '涅槃' + ], + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 16 + }, + { + 'name': '舍俱智相应无行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '无行', + 'mental_objects': [ + '6出世间心', + '涅槃' + ], + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '无行' + ], + 'id': 17 + }, + { + 'name': '舍俱智相应有行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '有行', + 'mental_objects': [ + '6出世间心', + '涅槃' + ], + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '有行' + ], + 'id': 18 + }, + { + 'name': '舍俱智不相应无行心', + 'feeling': '舍', + 'condition': '不相应', + 'volition': '无行', + 'mental_objects': [ + '涅槃' + ], + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 19 + }, + { + 'name': '舍俱智不相应有行心', + 'feeling': '舍', + 'condition': '不相应', + 'mental_objects': [ + '涅槃' ], - "volition": "有行", - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 20 + 'volition': '有行', + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 20 } ] }, { - "name": "8大果报心", - "realm": "欲", - "category": [ - "无记", - "果报", - "有因" - ], - "roots": [ - "无贪", - "无嗔" - ], - "functions": [ - "离路心", - "彼所缘" - ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门", - "离门" - ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" - ], - "mental_objects": [ - "54欲界心", - "52心所21色" - ], - "object_time": [ - "过去", - "现在", - "未来" - ], - "cetasika": [ - "寻", - "伺", - "胜解", - "精进", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "basis": "欲界依", - "realms": [ - "欲" - ], - "children": [ - { - "name": "悦俱智相应无行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "无行", - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "无行" - ], - "id": 21 - }, - { - "name": "悦俱智相应有行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "有行", - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "有行" - ], - "id": 22 - }, - { - "name": "悦俱智不相应无行心", - "feeling": "悦", - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 23 - }, - { - "name": "悦俱智不相应有行心", - "feeling": "悦", - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 24 - }, - { - "name": "舍俱智相应无行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "无行", - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "无行" - ], - "id": 25 - }, - { - "name": "舍俱智相应有行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "有行", - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "有行" - ], - "id": 26 - }, - { - "name": "舍俱智不相应无行心", - "feeling": "舍", - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 27 - }, - { - "name": "舍俱智不相应有行心", - "feeling": "舍", - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 28 + 'name': '8大果报心', + 'realm': '欲', + 'category': [ + '无记', + '果报', + '有因' + ], + 'roots': [ + '无贪', + '无嗔' + ], + 'functions': [ + '离路心', + '彼所缘' + ], + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门', + '离门' + ], + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' + ], + 'mental_objects': [ + '54欲界心', + '52心所21色' + ], + 'object_time': [ + '过去', + '现在', + '未来' + ], + 'cetasika': [ + '寻', + '伺', + '胜解', + '精进', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'basis': '欲界依', + 'realms': [ + '欲' + ], + 'children': [ + { + 'name': '悦俱智相应无行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '无行', + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '无行' + ], + 'id': 21 + }, + { + 'name': '悦俱智相应有行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '有行', + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '有行' + ], + 'id': 22 + }, + { + 'name': '悦俱智不相应无行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 23 + }, + { + 'name': '悦俱智不相应有行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 24 + }, + { + 'name': '舍俱智相应无行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '无行', + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '无行' + ], + 'id': 25 + }, + { + 'name': '舍俱智相应有行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '有行', + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '有行' + ], + 'id': 26 + }, + { + 'name': '舍俱智不相应无行心', + 'feeling': '舍', + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 27 + }, + { + 'name': '舍俱智不相应有行心', + 'feeling': '舍', + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 28 } ] }, { - "name": "7无因不善果报心", - "realm": "欲", - "roots": [ - "无因" + 'name': '7无因不善果报心', + 'realm': '欲', + 'roots': [ + '无因' ], - "category": [ - "无记", - "果报", - "无因" + 'category': [ + '无记', + '果报', + '无因' ], - "object_time": [ - "现在" + 'object_time': [ + '现在' ], - "realms": [ - "欲" + 'realms': [ + '欲' ], - "children": [ + 'children': [ { - "name": "眼识", - "feeling": "舍", - "basis": "眼净色", - "realms": [ - "色" + 'name': '眼识', + 'feeling': '舍', + 'basis': '眼净色', + 'realms': [ + '色' ], - "objects": [ - "色所缘" + 'objects': [ + '色所缘' ], - "functions": [ - "见" + 'functions': [ + '见' ], - "gates": [ - "眼门" + 'gates': [ + '眼门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 29 + 'id': 29 }, { - "name": "耳识", - "feeling": "舍", - "objects": [ - "声所缘" + 'name': '耳识', + 'feeling': '舍', + 'objects': [ + '声所缘' ], - "basis": "耳净色", - "realms": [ - "色" + 'basis': '耳净色', + 'realms': [ + '色' ], - "functions": [ - "听" + 'functions': [ + '听' ], - "gates": [ - "耳门" + 'gates': [ + '耳门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 30 + 'id': 30 }, { - "name": "鼻识", - "feeling": "舍", - "basis": "鼻净色", - "objects": [ - "香所缘" + 'name': '鼻识', + 'feeling': '舍', + 'basis': '鼻净色', + 'objects': [ + '香所缘' ], - "functions": [ - "嗅" + 'functions': [ + '嗅' ], - "gates": [ - "鼻门" + 'gates': [ + '鼻门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 31 + 'id': 31 }, { - "name": "舌识", - "feeling": "舍", - "basis": "舌净色", - "objects": [ - "味所缘" + 'name': '舌识', + 'feeling': '舍', + 'basis': '舌净色', + 'objects': [ + '味所缘' ], - "functions": [ - "尝" + 'functions': [ + '尝' ], - "gates": [ - "舌门" + 'gates': [ + '舌门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 32 + 'id': 32 }, { - "name": "身识", - "feeling": "苦", - "basis": "身净色", - "functions": [ - "触" + 'name': '身识', + 'feeling': '苦', + 'basis': '身净色', + 'functions': [ + '触' ], - "objects": [ - "触所缘" + 'objects': [ + '触所缘' ], - "gates": [ - "身门" + 'gates': [ + '身门' ], - "notes": [ - "苦", - "俱", - "五识" + 'notes': [ + '苦', + '俱', + '五识' ], - "id": 33 + 'id': 33 }, { - "name": "舍俱领受心", - "feeling": "舍", - "basis": "依", - "realms": [ - "色" + 'name': '舍俱领受心', + 'feeling': '舍', + 'basis': '依', + 'realms': [ + '色' ], - "functions": [ - "领受" + 'functions': [ + '领受' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "cetasika": [ - "寻", - "伺", - "胜解" + 'cetasika': [ + '寻', + '伺', + '胜解' ], - "notes": [ - "舍", - "俱", - "领受心" + 'notes': [ + '舍', + '俱', + '领受心' ], - "id": 34 + 'id': 34 }, { - "name": "舍俱推度心", - "feeling": "舍", - "basis": "依", - "realms": [ - "色" + 'name': '舍俱推度心', + 'feeling': '舍', + 'basis': '依', + 'realms': [ + '色' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "mental_objects": [ - "54欲界心", - "52心所21色" + 'mental_objects': [ + '54欲界心', + '52心所21色' ], - "object_time": [ - "过去", - "未来" + 'object_time': [ + '过去', + '未来' ], - "functions": [ - "离路心", - "推度", - "彼所缘" + 'functions': [ + '离路心', + '推度', + '彼所缘' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门", - "离门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门', + '离门' ], - "cetasika": [ - "寻", - "伺", - "胜解" + 'cetasika': [ + '寻', + '伺', + '胜解' ], - "notes": [ - "舍", - "俱", - "推度心" + 'notes': [ + '舍', + '俱', + '推度心' ], - "id": 35 + 'id': 35 } ] }, { - "name": "8无因善果报心", - "realm": "欲", - "roots": [ - "无因" + 'name': '8无因善果报心', + 'realm': '欲', + 'roots': [ + '无因' ], - "object_time": [ - "现在" + 'object_time': [ + '现在' ], - "category": [ - "无记", - "果报", - "无因" + 'category': [ + '无记', + '果报', + '无因' ], - "realms": [ - "欲", + 'realms': [ + '欲', ], - "children": [ + 'children': [ { - "name": "眼识", - "feeling": "舍", - "basis": "眼净色", - "realms": [ - "色" + 'name': '眼识', + 'feeling': '舍', + 'basis': '眼净色', + 'realms': [ + '色' ], - "objects": [ - "色所缘" + 'objects': [ + '色所缘' ], - "functions": [ - "见" + 'functions': [ + '见' ], - "gates": [ - "眼门" + 'gates': [ + '眼门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 36 + 'id': 36 }, { - "name": "耳识", - "feeling": "舍", - "objects": [ - "声所缘" + 'name': '耳识', + 'feeling': '舍', + 'objects': [ + '声所缘' ], - "basis": "耳净色", - "realms": [ - "色" + 'basis': '耳净色', + 'realms': [ + '色' ], - "functions": [ - "听" + 'functions': [ + '听' ], - "gates": [ - "耳门" + 'gates': [ + '耳门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 37 + 'id': 37 }, { - "name": "鼻识", - "feeling": "舍", - "basis": "鼻净色", - "objects": [ - "香所缘" + 'name': '鼻识', + 'feeling': '舍', + 'basis': '鼻净色', + 'objects': [ + '香所缘' ], - "functions": [ - "嗅" + 'functions': [ + '嗅' ], - "gates": [ - "鼻门" + 'gates': [ + '鼻门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 38 + 'id': 38 }, { - "name": "舌识", - "feeling": "舍", - "basis": "舌净色", - "objects": [ - "味所缘" + 'name': '舌识', + 'feeling': '舍', + 'basis': '舌净色', + 'objects': [ + '味所缘' ], - "functions": [ - "尝" + 'functions': [ + '尝' ], - "gates": [ - "舌门" + 'gates': [ + '舌门' ], - "notes": [ - "舍", - "俱", - "五识" + 'notes': [ + '舍', + '俱', + '五识' ], - "id": 39 + 'id': 39 }, { - "name": "身识", - "feeling": "乐", - "basis": "身净色", - "objects": [ - "触所缘" + 'name': '身识', + 'feeling': '乐', + 'basis': '身净色', + 'objects': [ + '触所缘' ], - "functions": [ - "触" + 'functions': [ + '触' ], - "gates": [ - "身门" + 'gates': [ + '身门' ], - "notes": [ - "乐", - "俱", - "五识" + 'notes': [ + '乐', + '俱', + '五识' ], - "id": 40 + 'id': 40 }, { - "name": "舍俱领受心", - "feeling": "舍", - "basis": "依", - "realms": [ - "色" + 'name': '舍俱领受心', + 'feeling': '舍', + 'basis': '依', + 'realms': [ + '色' ], - "functions": [ - "领受" + 'functions': [ + '领受' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "cetasika": [ - "寻", - "伺", - "胜解" + 'cetasika': [ + '寻', + '伺', + '胜解' ], - "notes": [ - "舍", - "俱", - "领受心" + 'notes': [ + '舍', + '俱', + '领受心' ], - "id": 41 + 'id': 41 }, { - "name": "舍俱推度心", - "feeling": "舍", - "basis": "依", - "realms": [ - "色" + 'name': '舍俱推度心', + 'feeling': '舍', + 'basis': '依', + 'realms': [ + '色' ], - "functions": [ - "离路心", - "推度", - "彼所缘" + 'functions': [ + '离路心', + '推度', + '彼所缘' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门", - "离门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门', + '离门' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "mental_objects": [ - "54欲界心", - "52心所21色" + 'mental_objects': [ + '54欲界心', + '52心所21色' ], - "object_time": [ - "过去", - "未来" + 'object_time': [ + '过去', + '未来' ], - "cetasika": [ - "寻", - "伺", - "胜解" + 'cetasika': [ + '寻', + '伺', + '胜解' ], - "notes": [ - "舍", - "俱", - "推度心" + 'notes': [ + '舍', + '俱', + '推度心' ], - "id": 42 + 'id': 42 }, { - "name": "悦俱推度心", - "feeling": "悦", - "basis": "有时依", - "realms": [ - "色" + 'name': '悦俱推度心', + 'feeling': '悦', + 'basis': '有时依', + 'realms': [ + '色' ], - "functions": [ - "推度", - "彼所缘" + 'functions': [ + '推度', + '彼所缘' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "mental_objects": [ - "54欲界心", - "52心所21色" + 'mental_objects': [ + '54欲界心', + '52心所21色' ], - "object_time": [ - "过去", - "未来" + 'object_time': [ + '过去', + '未来' ], - "cetasika": [ - "寻", - "伺", - "胜解", - "喜" + 'cetasika': [ + '寻', + '伺', + '胜解', + '喜' ], - "notes": [ - "悦", - "俱", - "推度心" + 'notes': [ + '悦', + '俱', + '推度心' ], - "id": 43 + 'id': 43 } ] }, { - "name": "8大唯作心", - "realm": "欲", - "functions": [ - "速行" - ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" - ], - "basis": "有时依", - "realms": [ - "欲", - "色", - "无色" - ], - "mental_objects": [ - "54欲界心", - "15色界心", - "12无色界心", - "52心所21色", - "概念" - ], - "object_time": [ - "过去", - "现在", - "未来", - "离时" - ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" - ], - "cetasika": [ - "寻", - "伺", - "胜解", - "精进", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "有因唯作心是阿罗汉独有", - "category": [ - "无记", - "唯作", - "有因" - ], - "roots": [ - "无贪", - "无嗔" - ], - "children": [ - { - "name": "悦俱智相应无行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "无行", - "mental_objects": [ - "8出世间心", - "涅槃" - ], - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "无行" - ], - "id": 44 - }, - { - "name": "悦俱智相应有行心", - "feeling": "悦", - "roots": [ - "无痴" - ], - "condition": "相应", - "volition": "有行", - "mental_objects": [ - "8出世间心", - "涅槃" - ], - "cetasika": [ - "喜", - "欲", - "慧" - ], - "notes": [ - "悦", - "俱", - "智", - "相应", - "有行" - ], - "id": 45 - }, - { - "name": "悦俱智不相应无行心", - "feeling": "悦", - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 46 - }, - { - "name": "悦俱智不相应有行心", - "feeling": "悦", - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "喜", - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 47 - }, - { - "name": "舍俱智相应无行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "mental_objects": [ - "8出世间心", - "涅槃" - ], - "condition": "相应", - "volition": "无行", - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "无行" - ], - "id": 48 - }, - { - "name": "舍俱智相应有行心", - "feeling": "舍", - "roots": [ - "无痴" - ], - "mental_objects": [ - "8出世间心", - "涅槃" - ], - "condition": "相应", - "volition": "有行", - "cetasika": [ - "欲", - "慧" - ], - "notes": [ - "舍", - "俱", - "智", - "相应", - "有行" - ], - "id": 49 - }, - { - "name": "舍俱智不相应无行心", - "feeling": "舍", - "condition": "不相应", - "volition": "无行", - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "无行" - ], - "id": 50 - }, - { - "name": "舍俱智不相应有行心", - "feeling": "舍", - "condition": "不相应", - "volition": "有行", - "cetasika": [ - "欲" - ], - "notes": [ - "悦", - "俱", - "智", - "不相应", - "有行" - ], - "id": 51 + 'name': '8大唯作心', + 'realm': '欲', + 'functions': [ + '速行' + ], + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' + ], + 'basis': '有时依', + 'realms': [ + '欲', + '色', + '无色' + ], + 'mental_objects': [ + '54欲界心', + '15色界心', + '12无色界心', + '52心所21色', + '概念' + ], + 'object_time': [ + '过去', + '现在', + '未来', + '离时' + ], + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' + ], + 'cetasika': [ + '寻', + '伺', + '胜解', + '精进', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '有因唯作心是阿罗汉独有', + 'category': [ + '无记', + '唯作', + '有因' + ], + 'roots': [ + '无贪', + '无嗔' + ], + 'children': [ + { + 'name': '悦俱智相应无行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '无行', + 'mental_objects': [ + '8出世间心', + '涅槃' + ], + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '无行' + ], + 'id': 44 + }, + { + 'name': '悦俱智相应有行心', + 'feeling': '悦', + 'roots': [ + '无痴' + ], + 'condition': '相应', + 'volition': '有行', + 'mental_objects': [ + '8出世间心', + '涅槃' + ], + 'cetasika': [ + '喜', + '欲', + '慧' + ], + 'notes': [ + '悦', + '俱', + '智', + '相应', + '有行' + ], + 'id': 45 + }, + { + 'name': '悦俱智不相应无行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 46 + }, + { + 'name': '悦俱智不相应有行心', + 'feeling': '悦', + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '喜', + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 47 + }, + { + 'name': '舍俱智相应无行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'mental_objects': [ + '8出世间心', + '涅槃' + ], + 'condition': '相应', + 'volition': '无行', + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '无行' + ], + 'id': 48 + }, + { + 'name': '舍俱智相应有行心', + 'feeling': '舍', + 'roots': [ + '无痴' + ], + 'mental_objects': [ + '8出世间心', + '涅槃' + ], + 'condition': '相应', + 'volition': '有行', + 'cetasika': [ + '欲', + '慧' + ], + 'notes': [ + '舍', + '俱', + '智', + '相应', + '有行' + ], + 'id': 49 + }, + { + 'name': '舍俱智不相应无行心', + 'feeling': '舍', + 'condition': '不相应', + 'volition': '无行', + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '无行' + ], + 'id': 50 + }, + { + 'name': '舍俱智不相应有行心', + 'feeling': '舍', + 'condition': '不相应', + 'volition': '有行', + 'cetasika': [ + '欲' + ], + 'notes': [ + '悦', + '俱', + '智', + '不相应', + '有行' + ], + 'id': 51 } ] }, { - "name": "3无因唯作心", - "realm": "欲", - "roots": [ - "无因" + 'name': '3无因唯作心', + 'realm': '欲', + 'roots': [ + '无因' ], - "objects": [ - "色所缘","香所缘","声所缘","味所缘","触所缘" + 'objects': [ + '色所缘','香所缘','声所缘','味所缘','触所缘' ], - "object_time": [ - "现在" + 'object_time': [ + '现在' ], - "category": [ - "无记", - "唯作", - "无因" + 'category': [ + '无记', + '唯作', + '无因' ], - "basis": "有时依", - "realms": [ - "欲", - "色" + 'basis': '有时依', + 'realms': [ + '欲', + '色' ], - "children": [ + 'children': [ { - "name": "五门转向心", - "feeling": "舍", - "functions": [ - "转向" + 'name': '五门转向心', + 'feeling': '舍', + 'functions': [ + '转向' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门' ], - "basis": "依", - "cetasika": [ - "寻", - "伺", - "胜解" + 'basis': '依', + 'cetasika': [ + '寻', + '伺', + '胜解' ], - "notes": [ - "五门转向心" + 'notes': [ + '五门转向心' ], - "id": 52 + 'id': 52 }, { - "name": "意门转向心", - "feeling": "舍", - "realms": [ - "无色" + 'name': '意门转向心', + 'feeling': '舍', + 'realms': [ + '无色' ], - "functions": [ - "转向", - "确定" + 'functions': [ + '转向', + '确定' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' ], - "mental_objects": [ - "54欲界心", - "15色界心", - "12无色界心", - "8出世间心", - "52心所21色", - "涅槃", - "概念" + 'mental_objects': [ + '54欲界心', + '15色界心', + '12无色界心', + '8出世间心', + '52心所21色', + '涅槃', + '概念' ], - "object_time": [ - "过去", - "未来", - "离时" + 'object_time': [ + '过去', + '未来', + '离时' ], - "cetasika": [ - "寻", - "伺", - "胜解", - "精进" + 'cetasika': [ + '寻', + '伺', + '胜解', + '精进' ], - "notes": [ - "意门转向心" + 'notes': [ + '意门转向心' ], - "id": 53 + 'id': 53 }, { - "name": "生笑心", - "feeling": "悦", - "functions": [ - "速行" + 'name': '生笑心', + 'feeling': '悦', + 'functions': [ + '速行' ], - "gates": [ - "眼门","耳门","鼻门","舌门","身门","意门" + 'gates': [ + '眼门','耳门','鼻门','舌门','身门','意门' ], - "mental_objects": [ - "54欲界心", - "52心所21色" + 'mental_objects': [ + '54欲界心', + '52心所21色' ], - "object_time": [ - "过去", - "未来" + 'object_time': [ + '过去', + '未来' ], - "basis": "依", - "cetasika": [ - "寻", - "伺", - "胜解", - "精进", - "喜" + 'basis': '依', + 'cetasika': [ + '寻', + '伺', + '胜解', + '精进', + '喜' ], - "notes": [ - "生笑心" + 'notes': [ + '生笑心' ], - "id": 54 + 'id': 54 } ] }, { - "name": "5广大善心", - "realm": "色", - "functions": [ - "速行" - ], - "gates": [ - "意门" - ], - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "category": [ - "善" - ], - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "basis": "依", - "realms": [ - "欲", - "色" - ], - "children": [ - { - "name": "初禅心", - "feeling": "悦", - "cetasika": [ - "寻", - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "寻、伺、喜、乐、一境性", - "notes": [], - "id": 55 - }, - { - "name": "第二禅心", - "feeling": "悦", - "cetasika": [ - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "伺、喜、乐、一境性", - "notes": [], - "id": 56 - }, - { - "name": "第三禅心", - "feeling": "悦", - "cetasika": [ - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "喜、乐、一境性", - "notes": [], - "id": 57 - }, - { - "name": "第四禅心", - "feeling": "悦", - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "乐、一境性", - "notes": [], - "id": 58 - }, - { - "name": "第五禅心", - "feeling": "舍", - "note": "舍、一境性", - "notes": [], - "id": 59 + 'name': '5广大善心', + 'realm': '色', + 'functions': [ + '速行' + ], + 'gates': [ + '意门' + ], + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'category': [ + '善' + ], + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'basis': '依', + 'realms': [ + '欲', + '色' + ], + 'children': [ + { + 'name': '初禅心', + 'feeling': '悦', + 'cetasika': [ + '寻', + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '寻、伺、喜、乐、一境性', + 'notes': [], + 'id': 55 + }, + { + 'name': '第二禅心', + 'feeling': '悦', + 'cetasika': [ + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '伺、喜、乐、一境性', + 'notes': [], + 'id': 56 + }, + { + 'name': '第三禅心', + 'feeling': '悦', + 'cetasika': [ + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '喜、乐、一境性', + 'notes': [], + 'id': 57 + }, + { + 'name': '第四禅心', + 'feeling': '悦', + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '乐、一境性', + 'notes': [], + 'id': 58 + }, + { + 'name': '第五禅心', + 'feeling': '舍', + 'note': '舍、一境性', + 'notes': [], + 'id': 59 } ] }, { - "name": "5广大果报心", - "realm": "色", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "functions": [ - "离路心" - ], - "gates": [ - "离门" - ], - "category": [ - "无记", - "果报", - "有因" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "basis": "依", - "realms": [ - "色" - ], - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "children": [ - { - "name": "初禅心", - "feeling": "悦", - "cetasika": [ - "寻", - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "寻、伺、喜、乐、一境性", - "notes": [], - "id": 60 - }, - { - "name": "第二禅心", - "feeling": "悦", - "cetasika": [ - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "伺、喜、乐、一境性", - "notes": [], - "id": 61 - }, - { - "name": "第三禅心", - "feeling": "悦", - "cetasika": [ - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "喜、乐、一境性", - "notes": [], - "id": 62 - }, - { - "name": "第四禅心", - "feeling": "悦", - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "乐、一境性", - "notes": [], - "id": 63 - }, - { - "name": "第五禅心", - "feeling": "舍", - "note": "舍、一境性", - "notes": [], - "id": 64 + 'name': '5广大果报心', + 'realm': '色', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'functions': [ + '离路心' + ], + 'gates': [ + '离门' + ], + 'category': [ + '无记', + '果报', + '有因' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'basis': '依', + 'realms': [ + '色' + ], + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'children': [ + { + 'name': '初禅心', + 'feeling': '悦', + 'cetasika': [ + '寻', + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '寻、伺、喜、乐、一境性', + 'notes': [], + 'id': 60 + }, + { + 'name': '第二禅心', + 'feeling': '悦', + 'cetasika': [ + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '伺、喜、乐、一境性', + 'notes': [], + 'id': 61 + }, + { + 'name': '第三禅心', + 'feeling': '悦', + 'cetasika': [ + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '喜、乐、一境性', + 'notes': [], + 'id': 62 + }, + { + 'name': '第四禅心', + 'feeling': '悦', + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '乐、一境性', + 'notes': [], + 'id': 63 + }, + { + 'name': '第五禅心', + 'feeling': '舍', + 'note': '舍、一境性', + 'notes': [], + 'id': 64 } ] }, { - "name": "5广大唯作心", - "realm": "色", - "basis": "依", - "realms": [ - "欲", - "色" - ], - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "functions": [ - "速行" - ], - "gates": [ - "意门" - ], - "category": [ - "无记", - "唯作", - "有因" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "children": [ - { - "name": "初禅心", - "feeling": "悦", - "cetasika": [ - "寻", - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "寻、伺、喜、乐、一境性", - "notes": [], - "id": 65 - }, - { - "name": "第二禅心", - "feeling": "悦", - "cetasika": [ - "伺", - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "伺、喜、乐、一境性", - "notes": [], - "id": 66 - }, - { - "name": "第三禅心", - "feeling": "悦", - "cetasika": [ - "喜" - ], - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "喜、乐、一境性", - "notes": [], - "id": 67 - }, - { - "name": "第四禅心", - "feeling": "悦", - "cetasika_opt": [ - "悲悯", - "随喜" - ], - "note": "乐、一境性", - "notes": [], - "id": 68 - }, - { - "name": "第五禅心", - "feeling": "舍", - "note": "舍、一境性", - "notes": [], - "id": 69 + 'name': '5广大唯作心', + 'realm': '色', + 'basis': '依', + 'realms': [ + '欲', + '色' + ], + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '意门' + ], + 'category': [ + '无记', + '唯作', + '有因' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'children': [ + { + 'name': '初禅心', + 'feeling': '悦', + 'cetasika': [ + '寻', + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '寻、伺、喜、乐、一境性', + 'notes': [], + 'id': 65 + }, + { + 'name': '第二禅心', + 'feeling': '悦', + 'cetasika': [ + '伺', + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '伺、喜、乐、一境性', + 'notes': [], + 'id': 66 + }, + { + 'name': '第三禅心', + 'feeling': '悦', + 'cetasika': [ + '喜' + ], + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '喜、乐、一境性', + 'notes': [], + 'id': 67 + }, + { + 'name': '第四禅心', + 'feeling': '悦', + 'cetasika_opt': [ + '悲悯', + '随喜' + ], + 'note': '乐、一境性', + 'notes': [], + 'id': 68 + }, + { + 'name': '第五禅心', + 'feeling': '舍', + 'note': '舍、一境性', + 'notes': [], + 'id': 69 } ] }, { - "name": "4广大善心", - "realm": "无色", - "category": [ - "善" - ], - "functions": [ - "速行" - ], - "gates": [ - "意门" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "feeling": "舍", - "basis": "有时依", - "realms": [ - "欲", - "色", - "无色" - ], - "children": [ - { - "name": "空无边处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 70 - }, - { - "name": "识无边处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 71 - }, - { - "name": "无所有处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 72 - }, - { - "name": "非想非非想处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 73 + 'name': '4广大善心', + 'realm': '无色', + 'category': [ + '善' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '意门' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'feeling': '舍', + 'basis': '有时依', + 'realms': [ + '欲', + '色', + '无色' + ], + 'children': [ + { + 'name': '空无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 70 + }, + { + 'name': '识无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 71 + }, + { + 'name': '无所有处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 72 + }, + { + 'name': '非想非非想处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 73 } ] }, { - "name": "4广大果报心", - "realm": "无色", - "feeling": "舍", - "realms": [ - "无色" - ], - "functions": [ - "离路心" - ], - "gates": [ - "离门" - ], - "basis": "无", - "category": [ - "无记", - "果报", - "有因" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "children": [ - { - "name": "空无边处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 74 - }, - { - "name": "识无边处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 75 - }, - { - "name": "无所有处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 76 - }, - { - "name": "非想非非想处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 77 + 'name': '4广大果报心', + 'realm': '无色', + 'feeling': '舍', + 'realms': [ + '无色' + ], + 'functions': [ + '离路心' + ], + 'gates': [ + '离门' + ], + 'basis': '无', + 'category': [ + '无记', + '果报', + '有因' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'children': [ + { + 'name': '空无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 74 + }, + { + 'name': '识无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 75 + }, + { + 'name': '无所有处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 76 + }, + { + 'name': '非想非非想处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 77 } ] }, { - "name": "4广大唯作心", - "realm": "无色", - "basis": "有时依", - "realms": [ - "欲", - "色", - "无色" - ], - "functions": [ - "速行" - ], - "gates": [ - "意门" - ], - "category": [ - "无记", - "唯作", - "有因" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "feeling": "舍", - "cetasika": [ - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "children": [ - { - "name": "空无边处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 78 - }, - { - "name": "识无边处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 79 - }, - { - "name": "无所有处心", - "note": "舍、一境性", - "mental_objects": [ - "概念" - ], - "object_time": [ - "离时" - ], - "notes": [], - "id": 80 - }, - { - "name": "非想非非想处心", - "note": "舍、一境性", - "mental_objects": [ - "12无色界心" - ], - "object_time": [ - "过去" - ], - "notes": [], - "id": 81 + 'name': '4广大唯作心', + 'realm': '无色', + 'basis': '有时依', + 'realms': [ + '欲', + '色', + '无色' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '意门' + ], + 'category': [ + '无记', + '唯作', + '有因' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'feeling': '舍', + 'cetasika': [ + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'children': [ + { + 'name': '空无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 78 + }, + { + 'name': '识无边处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 79 + }, + { + 'name': '无所有处心', + 'note': '舍、一境性', + 'mental_objects': [ + '概念' + ], + 'object_time': [ + '离时' + ], + 'notes': [], + 'id': 80 + }, + { + 'name': '非想非非想处心', + 'note': '舍、一境性', + 'mental_objects': [ + '12无色界心' + ], + 'object_time': [ + '过去' + ], + 'notes': [], + 'id': 81 } ] }, { - "name": "4出世间善心", - "realm": "出世间", - "basis": "有时依", - "realms": [ - "欲", - "色" - ], - "mental_objects": [ - "涅槃" - ], - "object_time": [ - "离时" - ], - "functions": [ - "速行" - ], - "gates": [ - "意门" - ], - "feeling": "依禅那", - "category": [ - "善" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "cetasika": [ - "正语", - "正业", - "正命", - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "note": "依照禅定状态(121心)可能有寻、伺、喜心所", - "children": [ - { - "name": "须陀洹道心", - "basis": "依", - "note": "断三结", - "notes": [], - "id": 82 - }, - { - "name": "斯陀含道心", - "note": "断粗欲界贪、嗔", - "realms": [ - "无色" - ], - "notes": [], - "id": 83 - }, - { - "name": "阿那含道心", - "realms": [ - "无色" - ], - "note": "断细欲界贪嗔", - "notes": [], - "id": 84 - }, - { - "name": "阿罗汉道心", - "realms": [ - "无色" - ], - "note": "断五上分结", - "notes": [], - "id": 85 + 'name': '4出世间善心', + 'realm': '出世间', + 'basis': '有时依', + 'realms': [ + '欲', + '色' + ], + 'mental_objects': [ + '涅槃' + ], + 'object_time': [ + '离时' + ], + 'functions': [ + '速行' + ], + 'gates': [ + '意门' + ], + 'feeling': '依禅那', + 'category': [ + '善' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'cetasika': [ + '正语', + '正业', + '正命', + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'note': '依照禅定状态(121心)可能有寻、伺、喜心所', + 'children': [ + { + 'name': '须陀洹道心', + 'basis': '依', + 'note': '断三结', + 'notes': [], + 'id': 82 + }, + { + 'name': '斯陀含道心', + 'note': '断粗欲界贪、嗔', + 'realms': [ + '无色' + ], + 'notes': [], + 'id': 83 + }, + { + 'name': '阿那含道心', + 'realms': [ + '无色' + ], + 'note': '断细欲界贪嗔', + 'notes': [], + 'id': 84 + }, + { + 'name': '阿罗汉道心', + 'realms': [ + '无色' + ], + 'note': '断五上分结', + 'notes': [], + 'id': 85 } ] }, { - "name": "4出世间果报心", - "realm": "出世间", - "basis": "无", - "realms": [ - "欲", - "色", - "无色" - ], - "mental_objects": [ - "涅槃" - ], - "object_time": [ - "离时" - ], - "category": [ - "无记", - "果报", - "有因" - ], - "functions": [ - "速行" - ], - "roots": [ - "无贪", - "无嗔", - "无痴" - ], - "feeling": "依禅那", - "cetasika": [ - "正语", - "正业", - "正命", - "胜解", - "精进", - "欲", - "慧", - "信", - "念", - "惭", - "愧", - "无贪", - "无嗔", - "中舍性", - "心所轻安", - "心轻安", - "心所轻快性", - "心轻快性", - "心所柔软性", - "心柔软性", - "心所适应性", - "心适应性", - "心所练达性", - "心练达性", - "心所正直性", - "心正直性" - ], - "note": "依照禅定状态(121心)可能有寻、伺、喜心所", - "children": [ - { - "name": "须陀洹果心", - "note": "断三结", - "example": "", - "notes": [], - "id": 86 - }, - { - "name": "斯陀含果心", - "note": "断粗欲界贪、嗔", - "example": "", - "notes": [], - "id": 87 - }, - { - "name": "阿那含果心", - "note": "断细欲界贪嗔", - "example": "", - "notes": [], - "id": 88 - }, - { - "name": "阿罗汉果心", - "note": "断五上分结", - "example": "", - "notes": [], - "id": 89 + 'name': '4出世间果报心', + 'realm': '出世间', + 'basis': '无', + 'realms': [ + '欲', + '色', + '无色' + ], + 'mental_objects': [ + '涅槃' + ], + 'object_time': [ + '离时' + ], + 'category': [ + '无记', + '果报', + '有因' + ], + 'functions': [ + '速行' + ], + 'roots': [ + '无贪', + '无嗔', + '无痴' + ], + 'feeling': '依禅那', + 'cetasika': [ + '正语', + '正业', + '正命', + '胜解', + '精进', + '欲', + '慧', + '信', + '念', + '惭', + '愧', + '无贪', + '无嗔', + '中舍性', + '心所轻安', + '心轻安', + '心所轻快性', + '心轻快性', + '心所柔软性', + '心柔软性', + '心所适应性', + '心适应性', + '心所练达性', + '心练达性', + '心所正直性', + '心正直性' + ], + 'note': '依照禅定状态(121心)可能有寻、伺、喜心所', + 'children': [ + { + 'name': '须陀洹果心', + 'note': '断三结', + 'example': '', + 'notes': [], + 'id': 86 + }, + { + 'name': '斯陀含果心', + 'note': '断粗欲界贪、嗔', + 'example': '', + 'notes': [], + 'id': 87 + }, + { + 'name': '阿那含果心', + 'note': '断细欲界贪嗔', + 'example': '', + 'notes': [], + 'id': 88 + }, + { + 'name': '阿罗汉果心', + 'note': '断五上分结', + 'example': '', + 'notes': [], + 'id': 89 } ] } @@ -2510,616 +2510,616 @@ const cittas = }; const notes = { - "悦": { - "note": "somanassasahagata,受心所体验到乐受" + '悦': { + 'note': 'somanassasahagata,受心所体验到乐受' }, - "舍": { - "note": "upekkhàsahagata,受心所体验到舍受" + '舍': { + 'note': 'upekkhàsahagata,受心所体验到舍受' }, - "忧": { - "note": "domanassa,直译为不好的心意" + '忧': { + 'note': 'domanassa,直译为不好的心意' }, - "乐": { - "note": "感受目标升起是快乐的感受,是受蕴" + '乐': { + 'note': '感受目标升起是快乐的感受,是受蕴' }, - "喜": { - "note": "喜欢目标,属于行蕴" + '喜': { + 'note': '喜欢目标,属于行蕴' }, - "智": { - "note": "慧心所" + '智': { + 'note': '慧心所' }, - "领受心": { - "note": "领受该印记" + '领受心': { + 'note': '领受该印记' }, - "推度心": { - "note": "推度、考察该印记" + '推度心': { + 'note': '推度、考察该印记' }, - "五门转向心":{ - "note": "转向心之一,把心转向该目标。若所缘呈现于五根门之一,则将心转向所缘的是五门转向心" + '五门转向心':{ + 'note': '转向心之一,把心转向该目标。若所缘呈现于五根门之一,则将心转向所缘的是五门转向心' }, - "意门转向心": { - "note": "" + '意门转向心': { + 'note': '' }, - "五识": { - "note": "五根之识,能识别色声香味触。在无因不善果报心和无因善果报心中各有一组,合称为双五识。双五识只在五门心路生起,且都是过去业的果报。眼耳鼻舌都是舍俱,身识由善不善果报分为乐俱苦俱" + '五识': { + 'note': '五根之识,能识别色声香味触。在无因不善果报心和无因善果报心中各有一组,合称为双五识。双五识只在五门心路生起,且都是过去业的果报。眼耳鼻舌都是舍俱,身识由善不善果报分为乐俱苦俱' }, - "疑": { - "note": "对于佛、法、僧,对于业果法则方面的怀疑" + '疑': { + 'note': '对于佛、法、僧,对于业果法则方面的怀疑' }, - "掉举": { - "note": "uddhacca是指心的散乱、不平静" + '掉举': { + 'note': 'uddhacca是指心的散乱、不平静' }, - "邪见": { - "note": "不正确的见解" + '邪见': { + 'note': '不正确的见解' }, - "俱": { - "note": "伴随" + '俱': { + 'note': '伴随' }, - "相应": { - "note": "持有相应的见解。对邪见,不知道是邪见,算作相应;对智,知道是智,算作相应" + '相应': { + 'note': '持有相应的见解。对邪见,不知道是邪见,算作相应;对智,知道是智,算作相应' }, - "不相应": { - "note": "未持有相应的见解。对邪见,知道是邪见,算作不相应;对智,不知道是智,算作不相应" + '不相应': { + 'note': '未持有相应的见解。对邪见,知道是邪见,算作不相应;对智,不知道是智,算作不相应' }, - "有行": { - "note": "不用经过其他人怂恿、鼓励,或者自己没有刻意让它生起的贪心" + '有行': { + 'note': '不用经过其他人怂恿、鼓励,或者自己没有刻意让它生起的贪心' }, - "无行": { - "note": "经过其他人怂恿" + '无行': { + 'note': '经过其他人怂恿' }, - "嗔恚": { - "note": "反击、嗔、怒、生气。有情升起嗔恚,使身心热恼,不得平静" + '嗔恚': { + 'note': '反击、嗔、怒、生气。有情升起嗔恚,使身心热恼,不得平静' }, }; const cetasika = { - "name": "52心所", - "note": "心所是心的成份、因子,从属于心,是心的伴随者,附属物。心是不会单独生起的,必定有相应的心所伴随。每个心识刹那都会有一组心与心所生起,该组心与心所必定同时生、同时灭、同一所缘、同一依处。心与心所的聚合即称为名聚。", - "children": [ + 'name': '52心所', + 'note': '心所是心的成份、因子,从属于心,是心的伴随者,附属物。心是不会单独生起的,必定有相应的心所伴随。每个心识刹那都会有一组心与心所生起,该组心与心所必定同时生、同时灭、同一所缘、同一依处。心与心所的聚合即称为名聚。', + 'children': [ { - "name": "13通一切心所", - "note": "通一切心所的本质由同一名聚中的共存心所及心确定。与美心共存则成美心所,与不善心共存则成不善心所,与无记心共存则为无记心所", - "children": [ + 'name': '13通一切心所', + 'note': '通一切心所的本质由同一名聚中的共存心所及心确定。与美心共存则成美心所,与不善心共存则成不善心所,与无记心共存则为无记心所', + 'children': [ { - "name": "7遍一切心所", - "note": "遍一切心所是指伴随着每个心的心所。双五识是最基本的心,就只有这七个心所伴随着它们。", - "children": [ - { - "name": "触", - "char_mark": "接触目标", - "function": "目标与识撞击", - "appearance": "1.因依处、目标与识集合生起; 2.导致受、想、行的生起", - "proximate_cause": "出现于诸门之境", - "note": "", - "id": 101 - }, - { - "name": "受", - "char_mark": "被感受", - "function": "体验目标", - "appearance": "身心受乐、苦、平静", - "proximate_cause": "身根,即身净色的接触", - "note": "", - "id": 102 - }, - { - "name": "想", - "char_mark": "在心里作标记或印记,知道目标之间的差别,如绿色、黄色等", - "function": "1.通过以前所做的标识来认得相同的所缘;2.对目标作印记,以便再次体会时能认出", - "appearance": "1.心所注意的记号;根据记号去注意目标;2.不深入地取目标,不取目标太久", - "proximate_cause": "目标的显现", - "note": "", - "id": 103 - }, - { - "name": "思", - "char_mark": "催促或发动相应法朝向目标", - "function": "集合,以便相应法不会混乱", - "appearance": "指导", - "proximate_cause": "1.依处;2.目标;3.从触到作意作为显著的相应法", - "note": "", - "id": 104 - }, - { - "name": "一境性", - "char_mark": "1.作为首领;2.稳定于目标,不散乱;3.是相应法对目标不散乱之因", - "function": "统一俱生法", - "appearance": "1.平静;寂止;2.智果生起之因", - "proximate_cause": "多数是乐受(禅定状态)", - "note": "", - "id": 105 - }, - { - "name": "命根", - "char_mark": "维持相应名法", - "function": "令相应名法能够从生起至坏灭之间存在", - "appearance": "维持相应名法存在,直到坏灭", - "proximate_cause": "应受维持的名法", - "note": "", - "id": 106 - }, - { - "name": "作意", - "char_mark": "推动或指挥法朝向目标", - "function": "把相应法与目标连接起来", - "appearance": "面对目标", - "proximate_cause": "目标", - "note": "", - "id": 107 + 'name': '7遍一切心所', + 'note': '遍一切心所是指伴随着每个心的心所。双五识是最基本的心,就只有这七个心所伴随着它们。', + 'children': [ + { + 'name': '触', + 'char_mark': '接触目标', + 'function': '目标与识撞击', + 'appearance': '1.因依处、目标与识集合生起; 2.导致受、想、行的生起', + 'proximate_cause': '出现于诸门之境', + 'note': '', + 'id': 101 + }, + { + 'name': '受', + 'char_mark': '被感受', + 'function': '体验目标', + 'appearance': '身心受乐、苦、平静', + 'proximate_cause': '身根,即身净色的接触', + 'note': '', + 'id': 102 + }, + { + 'name': '想', + 'char_mark': '在心里作标记或印记,知道目标之间的差别,如绿色、黄色等', + 'function': '1.通过以前所做的标识来认得相同的所缘;2.对目标作印记,以便再次体会时能认出', + 'appearance': '1.心所注意的记号;根据记号去注意目标;2.不深入地取目标,不取目标太久', + 'proximate_cause': '目标的显现', + 'note': '', + 'id': 103 + }, + { + 'name': '思', + 'char_mark': '催促或发动相应法朝向目标', + 'function': '集合,以便相应法不会混乱', + 'appearance': '指导', + 'proximate_cause': '1.依处;2.目标;3.从触到作意作为显著的相应法', + 'note': '', + 'id': 104 + }, + { + 'name': '一境性', + 'char_mark': '1.作为首领;2.稳定于目标,不散乱;3.是相应法对目标不散乱之因', + 'function': '统一俱生法', + 'appearance': '1.平静;寂止;2.智果生起之因', + 'proximate_cause': '多数是乐受(禅定状态)', + 'note': '', + 'id': 105 + }, + { + 'name': '命根', + 'char_mark': '维持相应名法', + 'function': '令相应名法能够从生起至坏灭之间存在', + 'appearance': '维持相应名法存在,直到坏灭', + 'proximate_cause': '应受维持的名法', + 'note': '', + 'id': 106 + }, + { + 'name': '作意', + 'char_mark': '推动或指挥法朝向目标', + 'function': '把相应法与目标连接起来', + 'appearance': '面对目标', + 'proximate_cause': '目标', + 'note': '', + 'id': 107 } ] }, { - "name": "6杂心所", - "note": "杂心所是指伴随着某些心的心所。", - "children": [ - { - "name": "寻", - "char_mark": "把心投向或者导向目标", - "function": "全面地撞击目标", - "appearance": "把心导向目标", - "proximate_cause": "目标(或目标+依处+触)", - "note": "不出现于双五识及二禅以上的心", - "id": 108 - }, - { - "name": "伺", - "char_mark": "一再地伺察于所缘", - "function": "重复地把相应名法置于目标", - "appearance": "令心继续于所缘", - "proximate_cause": "目标(或目标+依处+触)", - "note": "不出现于双五识及三禅以上的心", - "id": 109 - }, - { - "name": "胜解", - "char_mark": "确信或确定目标", - "function": "不犹豫", - "appearance": "确定或决定", - "proximate_cause": "另一个需要抉择的目标", - "note": "不出现于双五识及疑心", - "id": 110 - }, - { - "name": "精进", - "char_mark": "努力或者能忍受所面对的任何苦", - "function": "支持或稳固相应名法", - "appearance": "不放弃", - "proximate_cause": "1.悚惧智;2.精进事", - "note": "不出现于15无因果报心及1无因五门转向心", - "id": 111 - }, - { - "name": "喜", - "char_mark": "喜欢目标", - "function": "1.令身与心喜悦;2.散播胜心生色至全身", - "appearance": "身与心的喜悦", - "proximate_cause": "目标(或目标+依处+触)", - "note": "悦俱(乐受)心,但悦俱第四禅心没有喜", - "id": 112 - }, - { - "name": "欲", - "char_mark": "欲作", - "function": "寻找目标", - "appearance": "要目标;需要目标", - "proximate_cause": "所希求的目标", - "note": "不出现于18无因果报心及2痴心", - "id": 113 + 'name': '6杂心所', + 'note': '杂心所是指伴随着某些心的心所。', + 'children': [ + { + 'name': '寻', + 'char_mark': '把心投向或者导向目标', + 'function': '全面地撞击目标', + 'appearance': '把心导向目标', + 'proximate_cause': '目标(或目标+依处+触)', + 'note': '不出现于双五识及二禅以上的心', + 'id': 108 + }, + { + 'name': '伺', + 'char_mark': '一再地伺察于所缘', + 'function': '重复地把相应名法置于目标', + 'appearance': '令心继续于所缘', + 'proximate_cause': '目标(或目标+依处+触)', + 'note': '不出现于双五识及三禅以上的心', + 'id': 109 + }, + { + 'name': '胜解', + 'char_mark': '确信或确定目标', + 'function': '不犹豫', + 'appearance': '确定或决定', + 'proximate_cause': '另一个需要抉择的目标', + 'note': '不出现于双五识及疑心', + 'id': 110 + }, + { + 'name': '精进', + 'char_mark': '努力或者能忍受所面对的任何苦', + 'function': '支持或稳固相应名法', + 'appearance': '不放弃', + 'proximate_cause': '1.悚惧智;2.精进事', + 'note': '不出现于15无因果报心及1无因五门转向心', + 'id': 111 + }, + { + 'name': '喜', + 'char_mark': '喜欢目标', + 'function': '1.令身与心喜悦;2.散播胜心生色至全身', + 'appearance': '身与心的喜悦', + 'proximate_cause': '目标(或目标+依处+触)', + 'note': '悦俱(乐受)心,但悦俱第四禅心没有喜', + 'id': 112 + }, + { + 'name': '欲', + 'char_mark': '欲作', + 'function': '寻找目标', + 'appearance': '要目标;需要目标', + 'proximate_cause': '所希求的目标', + 'note': '不出现于18无因果报心及2痴心', + 'id': 113 } ] } ] }, { - "name": "14不善心所", - "note": "只与不善心相应的心所", - "children": [ + 'name': '14不善心所', + 'note': '只与不善心相应的心所', + 'children': [ { - "name": "4遍一切不善心所", - "note": "遍一切不善心所是指伴随着每个不善心的心所", - "children": [ - { - "name": "痴", - "char_mark": "1.心盲目,无法如实知见究竟法的真实性;2.或无智,即不能透彻地知见究竟法的真实性", - "function": "1.不能透彻地知见究竟法的真实性2.覆蔽究竟法的真实性", - "appearance": "1.导致错误的修行;2.令慧眼盲目", - "proximate_cause": "不如理作意,即作意目标(究竟法)为常、乐、我、净等", - "note": "", - "id": 114 - }, - { - "name": "无惭", - "char_mark": "不厌恶或不耻于恶行", - "function": "无耻地为恶", - "appearance": "不退避于造恶", - "proximate_cause": "不尊重自己", - "note": "", - "id": 115 - }, - { - "name": "无愧", - "char_mark": "不害怕恶行", - "function": "无惧地为恶", - "appearance": "不退避诸恶", - "proximate_cause": "不尊重他人", - "note": "", - "id": 116 - }, - { - "name": "掉举", - "char_mark": "心不平静", - "function": "心不稳定", - "appearance": "混乱", - "proximate_cause": "对散乱之心不如理作意", - "note": "", - "id": 117 + 'name': '4遍一切不善心所', + 'note': '遍一切不善心所是指伴随着每个不善心的心所', + 'children': [ + { + 'name': '痴', + 'char_mark': '1.心盲目,无法如实知见究竟法的真实性;2.或无智,即不能透彻地知见究竟法的真实性', + 'function': '1.不能透彻地知见究竟法的真实性2.覆蔽究竟法的真实性', + 'appearance': '1.导致错误的修行;2.令慧眼盲目', + 'proximate_cause': '不如理作意,即作意目标(究竟法)为常、乐、我、净等', + 'note': '', + 'id': 114 + }, + { + 'name': '无惭', + 'char_mark': '不厌恶或不耻于恶行', + 'function': '无耻地为恶', + 'appearance': '不退避于造恶', + 'proximate_cause': '不尊重自己', + 'note': '', + 'id': 115 + }, + { + 'name': '无愧', + 'char_mark': '不害怕恶行', + 'function': '无惧地为恶', + 'appearance': '不退避诸恶', + 'proximate_cause': '不尊重他人', + 'note': '', + 'id': 116 + }, + { + 'name': '掉举', + 'char_mark': '心不平静', + 'function': '心不稳定', + 'appearance': '混乱', + 'proximate_cause': '对散乱之心不如理作意', + 'note': '', + 'id': 117 } ] }, { - "name": "贪根", - "children": [ - { - "name": "贪", - "char_mark": "执着目标为「我的」", - "function": "粘着目标", - "appearance": "不能舍弃目标", - "proximate_cause": "认为诸结之法有乐味", - "note": "必然出现于8个贪心", - "id": 118 - }, - { - "name": "邪见", - "char_mark": "错误地作意究竟法为常、乐、净、我", - "function": "错误地认为究竟法是常、乐、净、我", - "appearance": "错误地理解究竟法为常、乐、净、我", - "proximate_cause": "不想见圣者,如佛陀等", - "note": "邪见出现于4个邪见相应贪心", - "id": 119 - }, - { - "name": "慢", - "char_mark": "骄傲", - "function": "高举自己;「称赞」、「奉承」相应名法", - "appearance": "欲自标榜", - "proximate_cause": "与见不相应的贪", - "note": "只出现于四个邪见不相应贪心,且可能不出现", - "id": 120 + 'name': '贪根', + 'children': [ + { + 'name': '贪', + 'char_mark': '执着目标为「我的」', + 'function': '粘着目标', + 'appearance': '不能舍弃目标', + 'proximate_cause': '认为诸结之法有乐味', + 'note': '必然出现于8个贪心', + 'id': 118 + }, + { + 'name': '邪见', + 'char_mark': '错误地作意究竟法为常、乐、净、我', + 'function': '错误地认为究竟法是常、乐、净、我', + 'appearance': '错误地理解究竟法为常、乐、净、我', + 'proximate_cause': '不想见圣者,如佛陀等', + 'note': '邪见出现于4个邪见相应贪心', + 'id': 119 + }, + { + 'name': '慢', + 'char_mark': '骄傲', + 'function': '高举自己;「称赞」、「奉承」相应名法', + 'appearance': '欲自标榜', + 'proximate_cause': '与见不相应的贪', + 'note': '只出现于四个邪见不相应贪心,且可能不出现', + 'id': 120 } ] }, { - "name": "嗔根", - "note": "嫉、悭、恶作可能出现或不出现,且只能出现一个", - "children": [ - { - "name": "嗔", - "char_mark": "粗野", - "function": "1.令自己挣扎与颤动;2.身体的挣扎与颤动;3.怒烧(嗔的)心所依处或身心", - "appearance": "毁坏身心;或毁坏自己与他人的福利", - "proximate_cause": "九或十种嗔怒事", - "note": "必然出现于两个嗔心", - "id": 121 - }, - { - "name": "嫉", - "char_mark": "嫉羡他人的成就", - "function": "不喜他人的成就", - "appearance": "不能忍受看到他人成就;背向他人的成就", - "proximate_cause": "他人的成就", - "note": "与悭、恶作不共现", - "id": 122 - }, - { - "name": "悭", - "char_mark": "隐秘自己已得或当得的利益", - "function": "不能忍受与他人分享自己的利益", - "appearance": "1.怨恨与吝啬(因为不乐于分享所得)2.或导致不乐、不喜与痛苦", - "proximate_cause": "自己所得", - "note": "与嫉、恶作不共现", - "id": 123 - }, - { - "name": "恶作", - "char_mark": "追悔", - "function": "追悔以造的恶,以及没有实行的善", - "appearance": "不断忆起时感到后悔,或心感到不快", - "proximate_cause": "已造的恶及未行的善", - "note": "与悭、嫉不共现", - "id": 124 + 'name': '嗔根', + 'note': '嫉、悭、恶作可能出现或不出现,且只能出现一个', + 'children': [ + { + 'name': '嗔', + 'char_mark': '粗野', + 'function': '1.令自己挣扎与颤动;2.身体的挣扎与颤动;3.怒烧(嗔的)心所依处或身心', + 'appearance': '毁坏身心;或毁坏自己与他人的福利', + 'proximate_cause': '九或十种嗔怒事', + 'note': '必然出现于两个嗔心', + 'id': 121 + }, + { + 'name': '嫉', + 'char_mark': '嫉羡他人的成就', + 'function': '不喜他人的成就', + 'appearance': '不能忍受看到他人成就;背向他人的成就', + 'proximate_cause': '他人的成就', + 'note': '与悭、恶作不共现', + 'id': 122 + }, + { + 'name': '悭', + 'char_mark': '隐秘自己已得或当得的利益', + 'function': '不能忍受与他人分享自己的利益', + 'appearance': '1.怨恨与吝啬(因为不乐于分享所得)2.或导致不乐、不喜与痛苦', + 'proximate_cause': '自己所得', + 'note': '与嫉、恶作不共现', + 'id': 123 + }, + { + 'name': '恶作', + 'char_mark': '追悔', + 'function': '追悔以造的恶,以及没有实行的善', + 'appearance': '不断忆起时感到后悔,或心感到不快', + 'proximate_cause': '已造的恶及未行的善', + 'note': '与悭、嫉不共现', + 'id': 124 } ] }, { - "name": "痴", - "children": [ - { - "name": "疑", - "char_mark": "怀疑三宝、缘起、因果(对八事、十六事怀疑)", - "function": "对八事起动摇", - "appearance": "导致对八事犹豫不决", - "proximate_cause": "对怀疑八事、十六事起不如理作意", - "note": "只出现于疑心", - "id": 125 + 'name': '痴', + 'children': [ + { + 'name': '疑', + 'char_mark': '怀疑三宝、缘起、因果(对八事、十六事怀疑)', + 'function': '对八事起动摇', + 'appearance': '导致对八事犹豫不决', + 'proximate_cause': '对怀疑八事、十六事起不如理作意', + 'note': '只出现于疑心', + 'id': 125 } ] }, { - "name": "有行", - "note": "只出现于4个有行贪心与1个有行嗔心", - "children": [ - { - "name": "昏沉", - "char_mark": "不努力、不精进", - "function": "去除精进", - "appearance": "心的消沉,或办事的精进力减弱", - "proximate_cause": "对导致怠惰的所缘起不如理作意", - "note": "", - "id": 126 - }, - { - "name": "睡眠", - "char_mark": "心所的不适业", - "function": "闭塞识门,或令相应法沉滞", - "appearance": "1.退离目标2.昏昏欲睡", - "proximate_cause": "对导致怠惰的所缘起不如理作意", - "note": "", - "id": 127 + 'name': '有行', + 'note': '只出现于4个有行贪心与1个有行嗔心', + 'children': [ + { + 'name': '昏沉', + 'char_mark': '不努力、不精进', + 'function': '去除精进', + 'appearance': '心的消沉,或办事的精进力减弱', + 'proximate_cause': '对导致怠惰的所缘起不如理作意', + 'note': '', + 'id': 126 + }, + { + 'name': '睡眠', + 'char_mark': '心所的不适业', + 'function': '闭塞识门,或令相应法沉滞', + 'appearance': '1.退离目标2.昏昏欲睡', + 'proximate_cause': '对导致怠惰的所缘起不如理作意', + 'note': '', + 'id': 127 } ] } ] }, { - "name": "25美心所", - "note": "只与美心相应的心所", - "children": [ + 'name': '25美心所', + 'note': '只与美心相应的心所', + 'children': [ { - "name": "19遍一切美心心所", - "note": "59个美心必然有这19个心所伴随", - "children": [ - { - "name": "信", - "char_mark": "对当信之事有信心或信仰", - "function": "1.使用相应名法对当信之事清楚;2.引发自己与相应名法对当信之事有信心,而不会退减,也不退避", - "appearance": "1.相应名法对当信之事不迷蒙;2.无疑、无不如理作意,以及不犹豫地确定当信之事,或使到对当信之事作出决定", - "proximate_cause": "当信之事", - "note": "", - "id": 128 - }, - { - "name": "念", - "char_mark": "1.使相应法对目标念念分明而不流失;2.全心投入于善行", - "function": "去除会令目标消失的放逸;不令目标消失", - "appearance": "1.守护心,或守护禅修目标;2.心面对目标的状态", - "proximate_cause": "1.强而有力的想;2.或身念处等等", - "note": "", - "id": 129 - }, - { - "name": "惭", - "char_mark": "对恶行感到厌恶", - "function": "耻于造恶", - "appearance": "退避诸恶", - "proximate_cause": "尊重自己", - "note": "", - "id": 130 - }, - { - "name": "愧", - "char_mark": "对恶行感到害怕", - "function": "害怕造恶", - "appearance": "退避诸恶", - "proximate_cause": "尊重他人", - "note": "", - "id": 131 - }, - { - "name": "无贪", - "char_mark": "心不贪求、不染着目标", - "function": "不执着目标为「我的」或「我的东西」", - "appearance": "不执着目标", - "proximate_cause": "目标(或依处+目标+触);或如理作意", - "note": "", - "id": 132 - }, - { - "name": "无嗔", - "char_mark": "1.不粗野;2.不对抗", - "function": "去除怨根;去除怒火", - "appearance": "如满月般清澈祥和", - "proximate_cause": "目标(或依处+目标+触);或如理作意", - "note": "", - "id": 133 - }, - { - "name": "中舍性", - "char_mark": "平衡性与心所、平等性", - "function": "1.防止过多或不足;2.去除偏差", - "appearance": "中舍", - "proximate_cause": "相应名法(或依处+目标+触);或如理作意", - "note": "", - "id": 134 - }, - { - "name": "心所轻安", - "char_mark": "心所(受、想、行)轻安、镇静", - "function": "破除心所与心的不安", - "appearance": "心所与心的宁静、轻安、不颤动", - "proximate_cause": "心与心所", - "note": "", - "id": 135 - }, - { - "name": "心轻安", - "char_mark": "心的", - "function": "破除心所与心的不安", - "appearance": "心所与心的宁静、轻安、不颤动", - "proximate_cause": "心与心所", - "note": "", - "id": 136 - }, - { - "name": "心所轻快性", - "char_mark": "心所(受、想、行)的轻快", - "function": "破除心所与心的沉重", - "appearance": "心所与心", - "proximate_cause": "心与心所", - "note": "", - "id": 137 - }, - { - "name": "心轻快性", - "char_mark": "心的轻快", - "function": "破除心所与心的沉重", - "appearance": "心所与心", - "proximate_cause": "心与心所", - "note": "", - "id": 138 - }, - { - "name": "心所柔软性", - "char_mark": "心所(受、想、行)的柔软", - "function": "破除心所与心的僵硬性", - "appearance": "心所与心对目标无对抗及无阻碍", - "proximate_cause": "心与心所", - "note": "", - "id": 139 - }, - { - "name": "心柔软性", - "char_mark": "心的柔软", - "function": "破除心所与心的僵硬性", - "appearance": "心所与心对目标无抵抗及无阻碍", - "proximate_cause": "心与心所", - "note": "", - "id": 140 - }, - { - "name": "心所适应性", - "char_mark": "心所(受、想、行)具堪任性", - "function": "破除心所与心对善作业的不适应性", - "appearance": "心所与心成功取某所缘为目标", - "proximate_cause": "心与心所", - "note": "", - "id": 141 - }, - { - "name": "心适应性", - "char_mark": "心具堪任性", - "function": "破除心所与心对善作业的不适应性", - "appearance": "心所与心成功取某所缘为目标", - "proximate_cause": "心与心所", - "note": "", - "id": 142 - }, - { - "name": "心所练达性", - "char_mark": "心所(受、想、行)具熟练性", - "function": "破除心所与心的疾病", - "appearance": "心所与心毫无瑕疵", - "proximate_cause": "心与心所", - "note": "", - "id": 143 - }, - { - "name": "心练达性", - "char_mark": "心具熟练性", - "function": "破除心所与心的疾病", - "appearance": "心所与心毫无瑕疵", - "proximate_cause": "心与心所", - "note": "", - "id": 144 - }, - { - "name": "心所正直性", - "char_mark": "心所(受、想、行)正直", - "function": "破除心所与心的欺骗性", - "appearance": "心所与心不狡诈", - "proximate_cause": "心与心所", - "note": "", - "id": 145 - }, - { - "name": "心正直性", - "char_mark": "心正直", - "function": "破除心所与心的欺骗性", - "appearance": "心所与心不狡诈", - "proximate_cause": "心与心所", - "note": "", - "id": 146 + 'name': '19遍一切美心心所', + 'note': '59个美心必然有这19个心所伴随', + 'children': [ + { + 'name': '信', + 'char_mark': '对当信之事有信心或信仰', + 'function': '1.使用相应名法对当信之事清楚;2.引发自己与相应名法对当信之事有信心,而不会退减,也不退避', + 'appearance': '1.相应名法对当信之事不迷蒙;2.无疑、无不如理作意,以及不犹豫地确定当信之事,或使到对当信之事作出决定', + 'proximate_cause': '当信之事', + 'note': '', + 'id': 128 + }, + { + 'name': '念', + 'char_mark': '1.使相应法对目标念念分明而不流失;2.全心投入于善行', + 'function': '去除会令目标消失的放逸;不令目标消失', + 'appearance': '1.守护心,或守护禅修目标;2.心面对目标的状态', + 'proximate_cause': '1.强而有力的想;2.或身念处等等', + 'note': '', + 'id': 129 + }, + { + 'name': '惭', + 'char_mark': '对恶行感到厌恶', + 'function': '耻于造恶', + 'appearance': '退避诸恶', + 'proximate_cause': '尊重自己', + 'note': '', + 'id': 130 + }, + { + 'name': '愧', + 'char_mark': '对恶行感到害怕', + 'function': '害怕造恶', + 'appearance': '退避诸恶', + 'proximate_cause': '尊重他人', + 'note': '', + 'id': 131 + }, + { + 'name': '无贪', + 'char_mark': '心不贪求、不染着目标', + 'function': '不执着目标为「我的」或「我的东西」', + 'appearance': '不执着目标', + 'proximate_cause': '目标(或依处+目标+触);或如理作意', + 'note': '', + 'id': 132 + }, + { + 'name': '无嗔', + 'char_mark': '1.不粗野;2.不对抗', + 'function': '去除怨根;去除怒火', + 'appearance': '如满月般清澈祥和', + 'proximate_cause': '目标(或依处+目标+触);或如理作意', + 'note': '', + 'id': 133 + }, + { + 'name': '中舍性', + 'char_mark': '平衡性与心所、平等性', + 'function': '1.防止过多或不足;2.去除偏差', + 'appearance': '中舍', + 'proximate_cause': '相应名法(或依处+目标+触);或如理作意', + 'note': '', + 'id': 134 + }, + { + 'name': '心所轻安', + 'char_mark': '心所(受、想、行)轻安、镇静', + 'function': '破除心所与心的不安', + 'appearance': '心所与心的宁静、轻安、不颤动', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 135 + }, + { + 'name': '心轻安', + 'char_mark': '心的', + 'function': '破除心所与心的不安', + 'appearance': '心所与心的宁静、轻安、不颤动', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 136 + }, + { + 'name': '心所轻快性', + 'char_mark': '心所(受、想、行)的轻快', + 'function': '破除心所与心的沉重', + 'appearance': '心所与心', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 137 + }, + { + 'name': '心轻快性', + 'char_mark': '心的轻快', + 'function': '破除心所与心的沉重', + 'appearance': '心所与心', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 138 + }, + { + 'name': '心所柔软性', + 'char_mark': '心所(受、想、行)的柔软', + 'function': '破除心所与心的僵硬性', + 'appearance': '心所与心对目标无对抗及无阻碍', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 139 + }, + { + 'name': '心柔软性', + 'char_mark': '心的柔软', + 'function': '破除心所与心的僵硬性', + 'appearance': '心所与心对目标无抵抗及无阻碍', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 140 + }, + { + 'name': '心所适应性', + 'char_mark': '心所(受、想、行)具堪任性', + 'function': '破除心所与心对善作业的不适应性', + 'appearance': '心所与心成功取某所缘为目标', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 141 + }, + { + 'name': '心适应性', + 'char_mark': '心具堪任性', + 'function': '破除心所与心对善作业的不适应性', + 'appearance': '心所与心成功取某所缘为目标', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 142 + }, + { + 'name': '心所练达性', + 'char_mark': '心所(受、想、行)具熟练性', + 'function': '破除心所与心的疾病', + 'appearance': '心所与心毫无瑕疵', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 143 + }, + { + 'name': '心练达性', + 'char_mark': '心具熟练性', + 'function': '破除心所与心的疾病', + 'appearance': '心所与心毫无瑕疵', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 144 + }, + { + 'name': '心所正直性', + 'char_mark': '心所(受、想、行)正直', + 'function': '破除心所与心的欺骗性', + 'appearance': '心所与心不狡诈', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 145 + }, + { + 'name': '心正直性', + 'char_mark': '心正直', + 'function': '破除心所与心的欺骗性', + 'appearance': '心所与心不狡诈', + 'proximate_cause': '心与心所', + 'note': '', + 'id': 146 } ] }, { - "name": "离", - "note": "只出现于欲界8大善心,及8出世间心。8出世间心必然同时生起3离心所,而欲界善心则视情况生起且一次只能生起一个。离有三种:自然离(有机会造恶但不造),持戒离(由于持戒不造恶),正断离(出世间心)", - "children": [ - { - "name": "正语", - "char_mark": "远离、摆脱不正语", - "function": "远离恶语", - "appearance": "不造恶语", - "proximate_cause": "信、惭、愧、知足等", - "note": "", - "id": 147 - }, - { - "name": "正业", - "char_mark": "远离、摆脱不正业", - "function": "远离身恶行", - "appearance": "不造身恶行", - "proximate_cause": "信、惭、愧、知足等", - "note": "", - "id": 148 - }, - { - "name": "正命", - "char_mark": "远离、摆脱不正命", - "function": "远离邪命", - "appearance": "不造邪命", - "proximate_cause": "信、惭、愧、知足等", - "note": "", - "id": 149 + 'name': '离', + 'note': '只出现于欲界8大善心,及8出世间心。8出世间心必然同时生起3离心所,而欲界善心则视情况生起且一次只能生起一个。离有三种:自然离(有机会造恶但不造),持戒离(由于持戒不造恶),正断离(出世间心)', + 'children': [ + { + 'name': '正语', + 'char_mark': '远离、摆脱不正语', + 'function': '远离恶语', + 'appearance': '不造恶语', + 'proximate_cause': '信、惭、愧、知足等', + 'note': '', + 'id': 147 + }, + { + 'name': '正业', + 'char_mark': '远离、摆脱不正业', + 'function': '远离身恶行', + 'appearance': '不造身恶行', + 'proximate_cause': '信、惭、愧、知足等', + 'note': '', + 'id': 148 + }, + { + 'name': '正命', + 'char_mark': '远离、摆脱不正命', + 'function': '远离邪命', + 'appearance': '不造邪命', + 'proximate_cause': '信、惭、愧、知足等', + 'note': '', + 'id': 149 } ] }, { - "name": "无量", - "note": "可能出现于28种心:欲界8大善心、8大唯作心及12禅心", - "children": [ - { - "name": "悲悯", - "char_mark": "悲悯,拔除自他之苦", - "function": "不忍见自他之苦", - "appearance": "不残忍,或导致自他不残忍", - "proximate_cause": "如理作意见受尽苦难的自他没有依归", - "note": "", - "id": 150 - }, - { - "name": "随喜", - "char_mark": "随喜自他利益、成就而生喜悦", - "function": "不嫉妒自他的成就", - "appearance": "对自他的成就无厌恶", - "proximate_cause": "见到自他的成就", - "note": "", - "id": 151 + 'name': '无量', + 'note': '可能出现于28种心:欲界8大善心、8大唯作心及12禅心', + 'children': [ + { + 'name': '悲悯', + 'char_mark': '悲悯,拔除自他之苦', + 'function': '不忍见自他之苦', + 'appearance': '不残忍,或导致自他不残忍', + 'proximate_cause': '如理作意见受尽苦难的自他没有依归', + 'note': '', + 'id': 150 + }, + { + 'name': '随喜', + 'char_mark': '随喜自他利益、成就而生喜悦', + 'function': '不嫉妒自他的成就', + 'appearance': '对自他的成就无厌恶', + 'proximate_cause': '见到自他的成就', + 'note': '', + 'id': 151 } ] }, { - "name": "无痴", - "children": [ - { - "name": "慧", - "char_mark": "1.透彻地如实知见究竟法的自性相与共相;2.毫无瑕疵地彻知究竟法,如神射手般一箭贯穿目标", - "function": "如油灯般照亮目标(意即驱除遮蔽目标的黑暗愚痴)", - "appearance": "对目标无迷惑(如受到好向导指示森林的途径)", - "proximate_cause": "定", - "note": "出现于欲界12智相应心、色界心、无色界心与出世间心", - "id": 152 + 'name': '无痴', + 'children': [ + { + 'name': '慧', + 'char_mark': '1.透彻地如实知见究竟法的自性相与共相;2.毫无瑕疵地彻知究竟法,如神射手般一箭贯穿目标', + 'function': '如油灯般照亮目标(意即驱除遮蔽目标的黑暗愚痴)', + 'appearance': '对目标无迷惑(如受到好向导指示森林的途径)', + 'proximate_cause': '定', + 'note': '出现于欲界12智相应心、色界心、无色界心与出世间心', + 'id': 152 } ] } @@ -3129,71 +3129,71 @@ const cetasika = { }; const causes = { - "index_base": 200, - "title": '因', - "names": ['贪','嗔','痴','无贪','无嗔','无痴','无因'] + 'index_base': 200, + 'title': '因', + 'names': ['贪','嗔','痴','无贪','无嗔','无痴','无因'] }; const times = { - "index_base": 300, - "title": '所缘之时', - "names": ['过去','现在','未来','离时'], + 'index_base': 300, + 'title': '所缘之时', + 'names': ['过去','现在','未来','离时'], }; const objects = { - "index_base": 400, - "title": '五所缘', - "names": ['色所缘','声所缘','香所缘','味所缘','触所缘'], + 'index_base': 400, + 'title': '五所缘', + 'names': ['色所缘','声所缘','香所缘','味所缘','触所缘'], }; const functions = { - "index_base": 500, - "title": '作用', - "names": ['离路心', '速行', '转向', '见', '听', '嗅', '尝', '触', '领受', '推度', '彼所缘', '确定'], + 'index_base': 500, + 'title': '作用', + 'names': ['离路心', '速行', '转向', '见', '听', '嗅', '尝', '触', '领受', '推度', '彼所缘', '确定'], }; const feelings = { - "index_base": 600, - "title": '受', - "names": ['舍','苦','忧','乐','悦','依禅那'] + 'index_base': 600, + 'title': '受', + 'names': ['舍','苦','忧','乐','悦','依禅那'] }; const gates = { - "index_base": 700, - "title": '门', - "names": ['眼门','耳门','鼻门','舌门','身门','意门','离门'] + 'index_base': 700, + 'title': '门', + 'names': ['眼门','耳门','鼻门','舌门','身门','意门','离门'] }; const realms = { - "index_base": 800, - "title": '升起之地', - "names": ['欲','色','无色'] + 'index_base': 800, + 'title': '升起之地', + 'names': ['欲','色','无色'] }; const basis = { - "index_base": 900, - "title": '依处(净色/心所依处)', - "names": ['眼净色','耳净色','鼻净色','舌净色','身净色','依','有时依','欲界依','无'] + 'index_base': 900, + 'title': '依处(净色/心所依处)', + 'names': ['眼净色','耳净色','鼻净色','舌净色','身净色','依','有时依','欲界依','无'] }; const mental_objects = { - "index_base": 1000, - "title": '法所缘', - "names": ['54欲界心', '15色界心', '12无色界心', '6出世间心', '8出世间心', '52心所21色', '涅槃', '概念'] + 'index_base': 1000, + 'title': '法所缘', + 'names': ['54欲界心', '15色界心', '12无色界心', '6出世间心', '8出世间心', '52心所21色', '涅槃', '概念'] }; const data = { - "header": { - "row_header": "界", - "column_header": "本性" + 'header': { + 'row_header': '界', + 'column_header': '本性' }, - "rows_header": [ - "54欲界心", "15色界心", "12无色界心", "8出世间心" + 'rows_header': [ + '54欲界心', '15色界心', '12无色界心', '8出世间心' ], - "columns_header": [ - {name: "12不善心"}, {name: "21善心"}, {name: "56无记心", children: [{name: "36果报心", children: [{name: "21有因心"}, {name: "15无因心"}]}, {name: "20唯作心", children: [{name: "17有因心"}, {name: "3无因心"}]}]} + 'columns_header': [ + {name: '12不善心'}, {name: '21善心'}, {name: '56无记心', children: [{name: '36果报心', children: [{name: '21有因心'}, {name: '15无因心'}]}, {name: '20唯作心', children: [{name: '17有因心'}, {name: '3无因心'}]}]} ], - "cells_citta_group": [ + 'cells_citta_group': [ [[0], [1], [2], [3, 4], [5], [6]], [[], [7], [8], [],[9],[]], [[], [10], [11], [],[12],[]], diff --git a/js/flows.js b/js/flows.js index 8f50524..ea87553 100644 --- a/js/flows.js +++ b/js/flows.js @@ -1,113 +1,113 @@ const flowCittas = [ { - "id": 1, - "name": "有分", - "color": "dimgrey", + 'id': 1, + 'name': '有分', + 'color': 'dimgrey', }, { - "id": 2, - "name": "过去有分", - "color": "grey", + 'id': 2, + 'name': '过去有分', + 'color': 'grey', }, { - "id": 3, - "name": "有分波动", - "color": "darkgrey", + 'id': 3, + 'name': '有分波动', + 'color': 'darkgrey', }, { - "id": 4, - "name": "有分断", - "color": "lightgrey", + 'id': 4, + 'name': '有分断', + 'color': 'lightgrey', }, { - "id": 5, - "name": "五门转向", - "color": "palevioletred", - "cittas": [{"class": "无因唯作心", "cittas": ["五门转向心"]}] + 'id': 5, + 'name': '五门转向', + 'color': 'palevioletred', + 'cittas': [{'class': '无因唯作心', 'cittas': ['五门转向心']}] }, { - "id": 6, - "name": "五识", - "color": "tomato", - "cittas": [{"class": "无因不善果报心", "cittas": ["眼识", "耳识", "鼻识", "舌识", "身识"], "matcher": {"likable": 3}}, - {"class": "无因善果报心", "cittas": ["眼识", "耳识", "鼻识", "舌识", "身识"]}] + 'id': 6, + 'name': '五识', + 'color': 'tomato', + 'cittas': [{'class': '无因不善果报心', 'cittas': ['眼识', '耳识', '鼻识', '舌识', '身识'], 'matcher': {'likable': 3}}, + {'class': '无因善果报心', 'cittas': ['眼识', '耳识', '鼻识', '舌识', '身识']}] }, { - "id": 7, - "name": "领受", - "color": "gold", - "cittas": [{"class": "无因不善果报心", "cittas": ["舍俱领受心"], "matcher": {"likable": 3}}, - {"class": "无因善果报心", "cittas": ["舍俱领受心"]}] + 'id': 7, + 'name': '领受', + 'color': 'gold', + 'cittas': [{'class': '无因不善果报心', 'cittas': ['舍俱领受心'], 'matcher': {'likable': 3}}, + {'class': '无因善果报心', 'cittas': ['舍俱领受心']}] }, { - "id": 8, - "name": "推度", - "color": "darkseagreen", - "cittas": [{"class": "无因不善果报心", "cittas": ["舍俱领受心"], "matcher": {"likable": 3}}, - {"class": "无因善果报心", "cittas": ["舍俱领受心"], "matcher": {"likable": 2}}, - {"class": "无因善果报心", "cittas": ["悦俱推度心"]}] + 'id': 8, + 'name': '推度', + 'color': 'darkseagreen', + 'cittas': [{'class': '无因不善果报心', 'cittas': ['舍俱领受心'], 'matcher': {'likable': 3}}, + {'class': '无因善果报心', 'cittas': ['舍俱领受心'], 'matcher': {'likable': 2}}, + {'class': '无因善果报心', 'cittas': ['悦俱推度心']}] }, { - "id": 9, - "name": "确定", - "color": "cyan", - "cittas": [{"class": "无因唯作心", "cittas": ["意门转向心"]}] + 'id': 9, + 'name': '确定', + 'color': 'cyan', + 'cittas': [{'class': '无因唯作心', 'cittas': ['意门转向心']}] }, { - "id": 10, - "name": "速行", - "color": "lightblue", - "cittas": [{"class": "不善心", "cittas": ["悦俱邪见相应无行心", "悦俱邪见相应有行心", "悦俱邪见不相应无行心", "悦俱邪见不相应有行心", - "舍俱邪见相应无行心", "舍俱邪见相应有行心", "舍俱邪见不相应无行心", "舍俱邪见不相应有行心", "忧俱嗔恚相应无行心", "忧俱嗔恚相应有行心", - "舍俱疑相应心", "舍俱掉举相应心"], "matcher": {"arahant": false, "goodIntention": false}}, - {"class": "善心", "cittas": ["悦俱智相应无行心", "悦俱智相应有行心", "悦俱智不相应无行心", - "悦俱智不相应有行心", "舍俱智相应无行心", "舍俱智相应有行心", "舍俱智不相应无行心", - "舍俱智不相应有行心"], "matcher": {"arahant": false, "goodIntention": true}}, - {"class": "唯作心", "cittas": ["悦俱智相应无行心", "悦俱智相应有行心", "悦俱智不相应无行心", - "悦俱智不相应有行心", "舍俱智相应无行心", "舍俱智相应有行心", "舍俱智不相应无行心", - "舍俱智不相应有行心", "生笑心"], "matcher": {"arahant": true}}] + 'id': 10, + 'name': '速行', + 'color': 'lightblue', + 'cittas': [{'class': '不善心', 'cittas': ['悦俱邪见相应无行心', '悦俱邪见相应有行心', '悦俱邪见不相应无行心', '悦俱邪见不相应有行心', + '舍俱邪见相应无行心', '舍俱邪见相应有行心', '舍俱邪见不相应无行心', '舍俱邪见不相应有行心', '忧俱嗔恚相应无行心', '忧俱嗔恚相应有行心', + '舍俱疑相应心', '舍俱掉举相应心'], 'matcher': {'arahant': false, 'goodIntention': false}}, + {'class': '善心', 'cittas': ['悦俱智相应无行心', '悦俱智相应有行心', '悦俱智不相应无行心', + '悦俱智不相应有行心', '舍俱智相应无行心', '舍俱智相应有行心', '舍俱智不相应无行心', + '舍俱智不相应有行心'], 'matcher': {'arahant': false, 'goodIntention': true}}, + {'class': '唯作心', 'cittas': ['悦俱智相应无行心', '悦俱智相应有行心', '悦俱智不相应无行心', + '悦俱智不相应有行心', '舍俱智相应无行心', '舍俱智相应有行心', '舍俱智不相应无行心', + '舍俱智不相应有行心', '生笑心'], 'matcher': {'arahant': true}}] }, { - "id": 11, - "name": "彼所缘", - "color": "mediumslateblue", - "cittas": [{"class": "不善果报心", "cittas": ["舍俱智相应无行心", "舍俱智相应有行心", "舍俱智不相应无行心","舍俱智不相应有行心", "舍俱推度心"], "matcher": {"likable": 3}}, - {"class": "善果报心", "cittas": ["悦俱智相应无行心", "悦俱智相应有行心", "悦俱智不相应无行心", "悦俱智不相应有行心", "舍俱推度心"], "matcher": {"likable": 2}}, - {"class": "善果报心", "cittas": ["悦俱智相应无行心", "悦俱智相应有行心", "悦俱智不相应无行心", "悦俱智不相应有行心", "悦俱推度心"]}] + 'id': 11, + 'name': '彼所缘', + 'color': 'mediumslateblue', + 'cittas': [{'class': '不善果报心', 'cittas': ['舍俱智相应无行心', '舍俱智相应有行心', '舍俱智不相应无行心','舍俱智不相应有行心', '舍俱推度心'], 'matcher': {'likable': 3}}, + {'class': '善果报心', 'cittas': ['悦俱智相应无行心', '悦俱智相应有行心', '悦俱智不相应无行心', '悦俱智不相应有行心', '舍俱推度心'], 'matcher': {'likable': 2}}, + {'class': '善果报心', 'cittas': ['悦俱智相应无行心', '悦俱智相应有行心', '悦俱智不相应无行心', '悦俱智不相应有行心', '悦俱推度心']}] }, { - "id": 12, - "name": "意门转向", - "color": "cornflowerblue", - "cittas": [{"class": "无因唯作心", "cittas": ["意门转向心"]}] + 'id': 12, + 'name': '意门转向', + 'color': 'cornflowerblue', + 'cittas': [{'class': '无因唯作心', 'cittas': ['意门转向心']}] } ]; const fiveDoorFlows = [ - {"id": 1, "class": "彼所缘时分", "flowCittas": [1, 2, 3, 4, 5, 6, 7, 8, 9, {"id": 10, "count": 7}, {"id": 11, "count": 2}, 1]}, - {"id": 2, "class": "速行时分", "flowCittas": [1, {"id": 2, "count": 2}, 3, 4, 5, 6, 7, 8, 9, {"id": 10, "count": 7}, {"id": 1, "count": 2}]}, - {"id": 3, "class": "速行时分", "flowCittas": [1, {"id": 2, "count": 3}, 3, 4, 5, 6, 7, 8, 9, {"id": 10, "count": 7}, 1]}, - {"id": 4, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 4}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 3}, {"id": 1, "count": 5}]}, - {"id": 5, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 5}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 3}, {"id": 1, "count": 4}]}, - {"id": 6, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 6}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 3}, {"id": 1, "count": 3}]}, - {"id": 7, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 7}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 3}, {"id": 1, "count": 2}]}, - {"id": 8, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 8}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 3}, {"id": 1, "count": 1}]}, - {"id": 9, "class": "确定时分", "flowCittas": [1, {"id": 2, "count": 9}, 3, 4, 5, 6, 7, 8, {"id": 9, "count": 2}, {"id": 1, "count": 1}]}, - {"id": 10, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 10}, {"id": 3, "count": 2}, {"id": 1, "count": 6}]}, - {"id": 11, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 11}, {"id": 3, "count": 2}, {"id": 1, "count": 5}]}, - {"id": 12, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 12}, {"id": 3, "count": 2}, {"id": 1, "count": 4}]}, - {"id": 13, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 13}, {"id": 3, "count": 2}, {"id": 1, "count": 3}]}, - {"id": 14, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 14}, {"id": 3, "count": 2}, {"id": 1, "count": 2}]}, - {"id": 15, "class": "无效时分", "flowCittas": [1, {"id": 2, "count": 15}, {"id": 3, "count": 2}, {"id": 1, "count": 1}]}, + {'id': 1, 'class': '彼所缘时分', 'flowCittas': [1, 2, 3, 4, 5, 6, 7, 8, 9, {'id': 10, 'count': 7}, {'id': 11, 'count': 2}, 1]}, + {'id': 2, 'class': '速行时分', 'flowCittas': [1, {'id': 2, 'count': 2}, 3, 4, 5, 6, 7, 8, 9, {'id': 10, 'count': 7}, {'id': 1, 'count': 2}]}, + {'id': 3, 'class': '速行时分', 'flowCittas': [1, {'id': 2, 'count': 3}, 3, 4, 5, 6, 7, 8, 9, {'id': 10, 'count': 7}, 1]}, + {'id': 4, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 4}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 3}, {'id': 1, 'count': 5}]}, + {'id': 5, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 5}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 3}, {'id': 1, 'count': 4}]}, + {'id': 6, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 6}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 3}, {'id': 1, 'count': 3}]}, + {'id': 7, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 7}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 3}, {'id': 1, 'count': 2}]}, + {'id': 8, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 8}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 3}, {'id': 1, 'count': 1}]}, + {'id': 9, 'class': '确定时分', 'flowCittas': [1, {'id': 2, 'count': 9}, 3, 4, 5, 6, 7, 8, {'id': 9, 'count': 2}, {'id': 1, 'count': 1}]}, + {'id': 10, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 10}, {'id': 3, 'count': 2}, {'id': 1, 'count': 6}]}, + {'id': 11, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 11}, {'id': 3, 'count': 2}, {'id': 1, 'count': 5}]}, + {'id': 12, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 12}, {'id': 3, 'count': 2}, {'id': 1, 'count': 4}]}, + {'id': 13, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 13}, {'id': 3, 'count': 2}, {'id': 1, 'count': 3}]}, + {'id': 14, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 14}, {'id': 3, 'count': 2}, {'id': 1, 'count': 2}]}, + {'id': 15, 'class': '无效时分', 'flowCittas': [1, {'id': 2, 'count': 15}, {'id': 3, 'count': 2}, {'id': 1, 'count': 1}]}, ]; const mindDoorFlows = [ - {"id": 1, "class": "极清晰", "flowCittas": [1, 2, 3, 4, 12, {"id": 10, "count": 7}, {"id": 11, "count": 2}, 1]}, - {"id": 2, "class": "清晰", "flowCittas": [1, 2, 3, 4, 12, {"id": 10, "count": 7}, {"id": 1, "count": 3}]}, - {"id": 3, "class": "不清晰", "flowCittas": [1, 2, {"id": 12, "count": 3}, {"id": 1, "count": 10}]}, - {"id": 4, "class": "不清晰", "flowCittas": [1, 2, {"id": 12, "count": 2}, {"id": 1, "count": 11}]}, - {"id": 5, "class": "极不清晰", "flowCittas": [1, 2, {"id": 3, "count": 3}, {"id": 1, "count": 10}]}, - {"id": 6, "class": "极不清晰", "flowCittas": [1, 2, {"id": 3, "count": 2}, {"id": 1, "count": 11}]}, + {'id': 1, 'class': '极清晰', 'flowCittas': [1, 2, 3, 4, 12, {'id': 10, 'count': 7}, {'id': 11, 'count': 2}, 1]}, + {'id': 2, 'class': '清晰', 'flowCittas': [1, 2, 3, 4, 12, {'id': 10, 'count': 7}, {'id': 1, 'count': 3}]}, + {'id': 3, 'class': '不清晰', 'flowCittas': [1, 2, {'id': 12, 'count': 3}, {'id': 1, 'count': 10}]}, + {'id': 4, 'class': '不清晰', 'flowCittas': [1, 2, {'id': 12, 'count': 2}, {'id': 1, 'count': 11}]}, + {'id': 5, 'class': '极不清晰', 'flowCittas': [1, 2, {'id': 3, 'count': 3}, {'id': 1, 'count': 10}]}, + {'id': 6, 'class': '极不清晰', 'flowCittas': [1, 2, {'id': 3, 'count': 2}, {'id': 1, 'count': 11}]}, ]; const senseFlowState = { @@ -116,11 +116,11 @@ const senseFlowState = { goodIntention: true, sliderValue: 1, // actually configs, but - container: "#senseflow", - controls: "#senseflowcontrols", + container: '#senseflow', + controls: '#senseflowcontrols', doorFlow: fiveDoorFlows, renderEntity: true, - markerName: "#sensearraw", + markerName: '#sensearraw', }; @@ -130,20 +130,20 @@ const mindFlowState = { goodIntention: true, sliderValue: 1, // actually configs, but - container: "#mindflow", - controls: "#mindflowcontrols", + container: '#mindflow', + controls: '#mindflowcontrols', doorFlow: mindDoorFlows, - markerName: "#mindarrow", + markerName: '#mindarrow', }; function createNode(flowCitta, i) { return { id: i, - "fcid": flowCitta.id, - "name": flowCitta.name, - "color": flowCitta.color, - "cittas": flowCitta.cittas + 'fcid': flowCitta.id, + 'name': flowCitta.name, + 'color': flowCitta.color, + 'cittas': flowCitta.cittas } } @@ -151,9 +151,9 @@ function getRenderData(state) { const i = state.sliderValue - 1; const flow = state.doorFlow[i]; const data = {}; - data["name"] = flow["class"]; + data['name'] = flow['class']; const nodes = []; - flow["flowCittas"].forEach((item, i) => { + flow['flowCittas'].forEach((item, i) => { if (typeof item === 'object') { for (let i = 0; i < item.count; ++i) { const node = createNode(flowCittas[item.id - 1], nodes.length); @@ -170,7 +170,7 @@ function getRenderData(state) { ids[item.cid] = item.id; }); - data["nodes"] = nodes; + data['nodes'] = nodes; return data; } @@ -203,49 +203,49 @@ function findMatch(cittas, state) { function renderEntity(svg, x, y, radius, state) { // material - svg.append("circle") - .attr("cx", x(1)) - .attr("cy", 0) - .attr("r", radius) - .style("fill", "red") - .style("stroke", "black") - .style("stroke-width", 1); - svg.append("text") - .attr("x", x(1)) - .attr("y", 0) - .style("fill", "black") - .style("text-anchor", "middle") - .attr("dominant-baseline", "middle") - .text("色法"); - - - svg.append("line") - .attr("x1", x(1)) - .attr("y1", radius) - .attr("x2", x(1)) - .attr("y2", y - radius) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); - renderTextBox(svg, x(1) + 3, y / 2 - 20, 120, 20, "red", "撞击净色及有分") - - svg.append("line") - .attr("x1", x(1) + radius) - .attr("y1", 0) - .attr("x2", x(17)) - .attr("y2", 0) - .attr("stroke", "black") - .attr("stroke-width", 2); - renderTextBox(svg, (x(1) + radius + x(17)) / 2 - 50, -25, 100, 20, "red", "色法寿命"); - - svg.append("line") - .attr("x1", x(17)) - .attr("y1", 0) - .attr("x2", x(17)) - .attr("y2", y - radius) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); + svg.append('circle') + .attr('cx', x(1)) + .attr('cy', 0) + .attr('r', radius) + .style('fill', 'red') + .style('stroke', 'black') + .style('stroke-width', 1); + svg.append('text') + .attr('x', x(1)) + .attr('y', 0) + .style('fill', 'black') + .style('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .text('色法'); + + + svg.append('line') + .attr('x1', x(1)) + .attr('y1', radius) + .attr('x2', x(1)) + .attr('y2', y - radius) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); + renderTextBox(svg, x(1) + 3, y / 2 - 20, 120, 20, 'red', '撞击净色及有分') + + svg.append('line') + .attr('x1', x(1) + radius) + .attr('y1', 0) + .attr('x2', x(17)) + .attr('y2', 0) + .attr('stroke', 'black') + .attr('stroke-width', 2); + renderTextBox(svg, (x(1) + radius + x(17)) / 2 - 50, -25, 100, 20, 'red', '色法寿命'); + + svg.append('line') + .attr('x1', x(17)) + .attr('y1', 0) + .attr('x2', x(17)) + .attr('y2', y - radius) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); } function renderFlow(state) { @@ -256,11 +256,11 @@ function renderFlow(state) { height = 600 - margin.top - margin.bottom; const svg = d3.select(state.container) - .append("svg") - .attr("width", width + margin.left + margin.right) - .attr("height", height + margin.top + margin.bottom) - .append("g") - .attr("transform",`translate(${margin.left},${margin.top})`); + .append('svg') + .attr('width', width + margin.left + margin.right) + .attr('height', height + margin.top + margin.bottom) + .append('g') + .attr('transform',`translate(${margin.left},${margin.top})`); // List of node names const allNodes = data.nodes.map(d=>d.id) @@ -280,68 +280,68 @@ function renderFlow(state) { }); // Define the arrowhead marker - svg.append("defs") - .append("marker") - .attr("id", state.markerName) - .attr("viewBox", "0 0 10 10") - .attr("refX", 8) // Adjust this to control the arrowhead positioning - .attr("refY", 5) - .attr("markerWidth", 6) - .attr("markerHeight", 6) - .attr("orient", "auto") - .append("path") - .attr("d", "M 0 0 L 10 5 L 0 10 Z") // Arrow shape - .attr("fill", "black"); - - svg.selectAll("nextarrow") + svg.append('defs') + .append('marker') + .attr('id', state.markerName) + .attr('viewBox', '0 0 10 10') + .attr('refX', 8) // Adjust this to control the arrowhead positioning + .attr('refY', 5) + .attr('markerWidth', 6) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 10 5 L 0 10 Z') // Arrow shape + .attr('fill', 'black'); + + svg.selectAll('nextarrow') .data(data.nodes.slice(0, -1)) - .join("line") - .attr("x1", d => x(d.id) + radius) - .attr("y1", y) - .attr("x2", d => x(d.id + 1) -radius) - .attr("y2", y) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); + .join('line') + .attr('x1', d => x(d.id) + radius) + .attr('y1', y) + .attr('x2', d => x(d.id + 1) -radius) + .attr('y2', y) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); // Add the circle for the nodes const nodes = svg - .selectAll("mynodes") + .selectAll('mynodes') .data(data.nodes) - .join("circle") - .attr("cx", d => x(d.id)) - .attr("cy", y) - .attr("r", radius) - .style("fill", d => d.color) - .style("stroke", "black") - .style("stroke-width", 1) + .join('circle') + .attr('cx', d => x(d.id)) + .attr('cy', y) + .attr('r', radius) + .style('fill', d => d.color) + .style('stroke', 'black') + .style('stroke-width', 1) .each(function(d) { - d["circle"] = d3.select(this); + d['circle'] = d3.select(this); }); const numbers = svg - .selectAll("numbers") + .selectAll('numbers') .data(data.nodes) - .join("text") - .attr("x", d => x(d.id)) - .attr("y", y) - .style("fill", "black") - .style("text-anchor", "middle") - .attr("dominant-baseline", "middle") + .join('text') + .attr('x', d => x(d.id)) + .attr('y', y) + .style('fill', 'black') + .style('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') .each(function(d) { const textElement = d3.select(this); textElement.text(d.id); }); const padding = 6; - const labels = svg.selectAll("labels") + const labels = svg.selectAll('labels') .data(data.nodes) - .join("g") - .attr("x", d => x(d.id)) - .attr("y", y + radius * 2) + .join('g') + .attr('x', d => x(d.id)) + .attr('y', y + radius * 2) .each(function(d) { const w = 24; - d["label"] = renderTextBox(svg, x(d.id) - w / 2, y + radius + padding, w, 80, 'transparent', d.name, {vertical: true}); + d['label'] = renderTextBox(svg, x(d.id) - w / 2, y + radius + padding, w, 80, 'transparent', d.name, {vertical: true}); }); // Add the highlighting functionality @@ -350,9 +350,9 @@ function renderFlow(state) { if (node.fcid !== d.fcid) return; node.circle.transition() .duration(200) - .attr("r", radius * 1.2) // increase the radius to make it look larger - .style("stroke", "black") // add a black border - .style("stroke-width", 2); // set border thickness + .attr('r', radius * 1.2) // increase the radius to make it look larger + .style('stroke', 'black') // add a black border + .style('stroke-width', 2); // set border thickness node.label.setColor('lightblue'); if (node.ct) node.ct.setColor('lightblue'); }); @@ -364,9 +364,9 @@ function renderFlow(state) { node.label.setColor('transparent'); node.circle.transition() .duration(200) - .attr("r", radius) // increase the radius to make it look larger - .style("stroke", "black") // add a black border - .style("stroke-width", 1); // set border thickness\ + .attr('r', radius) // increase the radius to make it look larger + .style('stroke', 'black') // add a black border + .style('stroke-width', 1); // set border thickness\ if (node.ct) node.ct.setColor('white'); }); } @@ -408,15 +408,15 @@ function renderFlow(state) { const def = findMatch(node.cittas, state); const w = 110; const ty = 240 + ((node.id - first) % 2) * 110; - svg.append("line") - .attr("x1", x(node.id)) - .attr("y1", y + 100 + padding) - .attr("x2", x(node.id)) - .attr("y2", ty) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); - node["ct"] = renderVerticalTable(svg, x(node.id) - w / 2, ty, w, 10, def.class, def.cittas.map(c => ({"name": c})), 3); + svg.append('line') + .attr('x1', x(node.id)) + .attr('y1', y + 100 + padding) + .attr('x2', x(node.id)) + .attr('y2', ty) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); + node['ct'] = renderVerticalTable(svg, x(node.id) - w / 2, ty, w, 10, def.class, def.cittas.map(c => ({'name': c})), 3); }); let left = -1; @@ -428,39 +428,39 @@ function renderFlow(state) { } }); if (left !== -1) { - svg.append("line") - .attr("x1", x(left)) - .attr("y1", y - radius) - .attr("x2", x(left)) - .attr("y2", y - 4 * radius) - .attr("stroke", "black") - .attr("stroke-width", 2); - - svg.append("line") - .attr("x1", x(right)) - .attr("y1", y - radius) - .attr("x2", x(right)) - .attr("y2", y - 4 * radius) - .attr("stroke", "black") - .attr("stroke-width", 2); - - svg.append("line") - .attr("x1", x(left)) - .attr("y1", y - 2 * radius) - .attr("x2", x(right)) - .attr("y2", y - 2 * radius) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); - - svg.append("line") - .attr("x1", x(right)) - .attr("y1", y - 2 * radius) - .attr("x2", x(left)) - .attr("y2", y - 2 * radius) - .attr("stroke", "black") - .attr("stroke-width", 2) - .attr("marker-end", "url(#"+ state.markerName+ ")"); + svg.append('line') + .attr('x1', x(left)) + .attr('y1', y - radius) + .attr('x2', x(left)) + .attr('y2', y - 4 * radius) + .attr('stroke', 'black') + .attr('stroke-width', 2); + + svg.append('line') + .attr('x1', x(right)) + .attr('y1', y - radius) + .attr('x2', x(right)) + .attr('y2', y - 4 * radius) + .attr('stroke', 'black') + .attr('stroke-width', 2); + + svg.append('line') + .attr('x1', x(left)) + .attr('y1', y - 2 * radius) + .attr('x2', x(right)) + .attr('y2', y - 2 * radius) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); + + svg.append('line') + .attr('x1', x(right)) + .attr('y1', y - 2 * radius) + .attr('x2', x(left)) + .attr('y2', y - 2 * radius) + .attr('stroke', 'black') + .attr('stroke-width', 2) + .attr('marker-end', 'url(#'+ state.markerName+ ')'); const w = 120; const h = 20; @@ -489,15 +489,15 @@ function renderButtonGroup(controlsContainer, buttonData, title, state, stateUpd .style('left', '10px') .style('font-weight', 'bold'); - bg.selectAll("button") + bg.selectAll('button') .data(buttonData) .enter() - .append("button") + .append('button') .text(d => d.name) - .attr("class", d => d.id === 1 ? "radio-button active" : "radio-button") - .on("click", function (event, d) { - bg.selectAll(".radio-button").classed("active", false); - d3.select(this).classed("active", true); + .attr('class', d => d.id === 1 ? 'radio-button active' : 'radio-button') + .on('click', function (event, d) { + bg.selectAll('.radio-button').classed('active', false); + d3.select(this).classed('active', true); stateUpdater(state, d); return renderFlow(state); }); @@ -560,14 +560,14 @@ function renderControls(state, min, max) { renderTextBox(svg, 100+width, 30, 22, 120, 'cyan', '极细微所缘', {vertical: true, valign: 'top'}); // Create a container for the button group - renderButtonGroup(controlsContainer, [{ "id": 1, "name": "极可喜" }, { "id": 2, "name": "可喜" }, { "id": 3, "name": "不可喜" }], '所缘本性', state, (state, data) => {state.likable = data.id;}); - const intentButtonGroup = renderButtonGroup(controlsContainer, [{ "id": 1, "name": "如理作意" }, { "id": 2, "name": "不如理作意" }], '作意', state, (state, data) => {state.goodIntention = data.id === 1;}); - renderButtonGroup(controlsContainer, [{ "id": 1, "name": "凡夫有学" }, { "id": 2, "name": "阿罗汉" }], '果位', state, (state, data) => { + renderButtonGroup(controlsContainer, [{ 'id': 1, 'name': '极可喜' }, { 'id': 2, 'name': '可喜' }, { 'id': 3, 'name': '不可喜' }], '所缘本性', state, (state, data) => {state.likable = data.id;}); + const intentButtonGroup = renderButtonGroup(controlsContainer, [{ 'id': 1, 'name': '如理作意' }, { 'id': 2, 'name': '不如理作意' }], '作意', state, (state, data) => {state.goodIntention = data.id === 1;}); + renderButtonGroup(controlsContainer, [{ 'id': 1, 'name': '凡夫有学' }, { 'id': 2, 'name': '阿罗汉' }], '果位', state, (state, data) => { state.arahant = data.id === 2; if (state.arahant) { - intentButtonGroup.selectAll(".radio-button").attr("disabled", true); + intentButtonGroup.selectAll('.radio-button').attr('disabled', true); } else { - intentButtonGroup.selectAll(".radio-button").attr("disabled", null); + intentButtonGroup.selectAll('.radio-button').attr('disabled', null); } }); } diff --git a/js/rupa.js b/js/rupa.js index 20261e5..c6ba86a 100644 --- a/js/rupa.js +++ b/js/rupa.js @@ -1,304 +1,304 @@ const rupa = { - name: "28色", + name: '28色', children: [ { - name: "四大", + name: '四大', children: [ { - name: "大种色", + name: '大种色', children: [ { - name: "地", + name: '地', id: 1, - character: "硬性", - functions: "支持统一粒色聚里的其他色法", - manifestation: "接受同一色聚里的其他色法住于其上", - cause: "其他三界" + character: '硬性', + functions: '支持统一粒色聚里的其他色法', + manifestation: '接受同一色聚里的其他色法住于其上', + cause: '其他三界' }, { - name: "水", + name: '水', id: 2, - character: "流动", - functions: "展布其他俱生色法", - manifestation: "粘着同一色聚里的其他色法", - cause: "其他三界" + character: '流动', + functions: '展布其他俱生色法', + manifestation: '粘着同一色聚里的其他色法', + cause: '其他三界' }, { - name: "火", + name: '火', id: 3, - character: "热或冷", - functions: "使同一粒色聚里的其他色法成熟", - manifestation: "不断地使同一色聚柔软", - cause: "其他三界" + character: '热或冷', + functions: '使同一粒色聚里的其他色法成熟', + manifestation: '不断地使同一色聚柔软', + cause: '其他三界' }, { - name: "风", + name: '风', id: 4, - character: "撑持;刚强", - functions: "移动、推", - manifestation: "带动其他俱生色法移位", - cause: "其他三界" + character: '撑持;刚强', + functions: '移动、推', + manifestation: '带动其他俱生色法移位', + cause: '其他三界' }, ] } ] }, { - name: "四大所造色", + name: '四大所造色', children: [ { - name: "净色", + name: '净色', children: [ { - name: "眼净色", + name: '眼净色', id: 5, - character: "可接受色所缘撞击的四大种之净色", - functions: "引心路至色所缘", - manifestation: "作为眼识的依处", - cause: "想见的因缘之业生种色(同一粒色聚里的四大)" + character: '可接受色所缘撞击的四大种之净色', + functions: '引心路至色所缘', + manifestation: '作为眼识的依处', + cause: '想见的因缘之业生种色(同一粒色聚里的四大)' }, { - name: "耳净色", + name: '耳净色', id: 6, - character: "可接受声所缘撞击的四大种之净色", - functions: "引心路至声所缘", - manifestation: "作为耳识的依处", - cause: "想听的因缘之业生种色(同一粒色聚里的四大)" + character: '可接受声所缘撞击的四大种之净色', + functions: '引心路至声所缘', + manifestation: '作为耳识的依处', + cause: '想听的因缘之业生种色(同一粒色聚里的四大)' }, { - name: "鼻净色", + name: '鼻净色', id: 7, - character: "可接受香所缘撞击的四大种之净色", - functions: "引心路至香所缘", - manifestation: "作为鼻识的依处", - cause: "想嗅的因缘之业生种色(同一粒色聚里的四大)" + character: '可接受香所缘撞击的四大种之净色', + functions: '引心路至香所缘', + manifestation: '作为鼻识的依处', + cause: '想嗅的因缘之业生种色(同一粒色聚里的四大)' }, { - name: "舌净色", + name: '舌净色', id: 8, - character: "可接受味所缘撞击的四大种之净色", - functions: "引心路至味所缘", - manifestation: "作为舌识的依处", - cause: "想尝的因缘之业生种色(同一粒色聚中的四大)" + character: '可接受味所缘撞击的四大种之净色', + functions: '引心路至味所缘', + manifestation: '作为舌识的依处', + cause: '想尝的因缘之业生种色(同一粒色聚中的四大)' }, { - name: "身净色", + name: '身净色', id: 9, - character: "可接受触所缘撞击的四大种之净色", - functions: "引心路至触所缘", - manifestation: "作为身识的依处", - cause: "想触的因缘之业生种色(同一粒色聚里的四大)" + character: '可接受触所缘撞击的四大种之净色', + functions: '引心路至触所缘', + manifestation: '作为身识的依处', + cause: '想触的因缘之业生种色(同一粒色聚里的四大)' }, ] }, { - name: "境色", + name: '境色', children: [ { - name: "色", + name: '色', id: 10, - character: "撞击眼净色", - functions: "作为眼识的目标", - manifestation: "作为眼识之境", - cause: "同一粒色聚里的四大" + character: '撞击眼净色', + functions: '作为眼识的目标', + manifestation: '作为眼识之境', + cause: '同一粒色聚里的四大' }, { - name: "声", + name: '声', id: 11, - character: "撞击耳净色", - functions: "作为耳识的目标", - manifestation: "作为耳识之境", - cause: "同一粒色聚里的四大" + character: '撞击耳净色', + functions: '作为耳识的目标', + manifestation: '作为耳识之境', + cause: '同一粒色聚里的四大' }, { - name: "香", + name: '香', id: 12, - character: "撞击鼻净色", - functions: "作为鼻识的目标", - manifestation: "作为鼻识之境", - cause: "同一粒色聚里的四大" + character: '撞击鼻净色', + functions: '作为鼻识的目标', + manifestation: '作为鼻识之境', + cause: '同一粒色聚里的四大' }, { - name: "味", + name: '味', id: 13, - character: "撞击舌净色", - functions: "作为舌识的目标", - manifestation: "作为舌识之境", - cause: "同一粒色聚里的四大" + character: '撞击舌净色', + functions: '作为舌识的目标', + manifestation: '作为舌识之境', + cause: '同一粒色聚里的四大' }, { - name: "触", - alias: "地火风", + name: '触', + alias: '地火风', id: -1, - character: "撞击身净色", - functions: "作为身识的目标", - manifestation: "作为身识之境", - cause: "同一粒色聚里的四大" + character: '撞击身净色', + functions: '作为身识的目标', + manifestation: '作为身识之境', + cause: '同一粒色聚里的四大' }, ] }, { - name: "性根色", + name: '性根色', children: [ { - name: "女根色", + name: '女根色', id: 14, - character: "女性", - functions: "显示是女性", - manifestation: "女性、女相、女性行为、女性特征", - cause: "同一粒色聚里的业生四大" + character: '女性', + functions: '显示是女性', + manifestation: '女性、女相、女性行为、女性特征', + cause: '同一粒色聚里的业生四大' }, { - name: "男根色", + name: '男根色', id: 15, - character: "男性", - functions: "显示是男性", - manifestation: "男性、男相、男性行为、男性特征", - cause: "同一粒色聚里的业生四大" + character: '男性', + functions: '显示是男性', + manifestation: '男性、男相、男性行为、男性特征', + cause: '同一粒色聚里的业生四大' }, ] }, { - name: "心色", + name: '心色', children: [ { - name: "心色", + name: '心色', id: 16, - alias: "心所依处", - character: "提供意界和意识界的依处", - functions: "作为意界和意识界的依处", - manifestation: "撑此意界和意识界", - cause: "同一粒色聚里的业生四大" + alias: '心所依处', + character: '提供意界和意识界的依处', + functions: '作为意界和意识界的依处', + manifestation: '撑此意界和意识界', + cause: '同一粒色聚里的业生四大' }, ] }, { - name: "命根色", + name: '命根色', children: [ { - name: "命根色", + name: '命根色', id: 17, - character: "维护在住时的俱生业生色", - functions: "使到俱生业生色发生", - manifestation: "维持这些业生色存在", - cause: "同一粒色聚里的业生四大" + character: '维护在住时的俱生业生色', + functions: '使到俱生业生色发生', + manifestation: '维持这些业生色存在', + cause: '同一粒色聚里的业生四大' }, ] }, { - name: "食色", + name: '食色', children: [ { - name: "食色", - alias: "食素", + name: '食色', + alias: '食素', id: 18, - character: "所吃食物里之营养", - functions: "滋养色法", - manifestation: "制造食生色维持身体", - cause: "必须受到它滋养的处色" + character: '所吃食物里之营养', + functions: '滋养色法', + manifestation: '制造食生色维持身体', + cause: '必须受到它滋养的处色' }, ] }, { - name: "限界色", + name: '限界色', children: [ { - name: "限界色", - alias: "空界", + name: '限界色', + alias: '空界', id: 19, - character: "划定色聚的界限", - functions: "显示色聚的边际", - manifestation: "色聚的界限/之间的孔隙", - cause: "应被区划的色聚" + character: '划定色聚的界限', + functions: '显示色聚的边际', + manifestation: '色聚的界限/之间的孔隙', + cause: '应被区划的色聚' }, ] }, { - name: "表色", + name: '表色', children: [ { - name: "身表色", + name: '身表色', id: 20, - character: "由心生风界带动动作,令俱生色身稳定或移动。", - functions: "通过动作表示自己的意志", - manifestation: "作为身体转动之因", - cause: "心生风界", - extra: "(风界之力过强的心生大种)" + character: '由心生风界带动动作,令俱生色身稳定或移动。', + functions: '通过动作表示自己的意志', + manifestation: '作为身体转动之因', + cause: '心生风界', + extra: '(风界之力过强的心生大种)' }, { - name: "语表色", + name: '语表色', id: 21, - character: "制造声音的地界互相撞击,而有语言的表达。", - functions: "通过语言表达自己的意志", - manifestation: "作为语言之因", - cause: "心生地界", - extra: "(地界过强的心生大种)" + character: '制造声音的地界互相撞击,而有语言的表达。', + functions: '通过语言表达自己的意志', + manifestation: '作为语言之因', + cause: '心生地界', + extra: '(地界过强的心生大种)' }, ] }, { - name: "变化色", + name: '变化色', children: [ { - name: "色轻快性", + name: '色轻快性', id: 22, - character: "心生色、时节生色与食生色的不重与不迟钝", - functions: "去除这些色法的重性", - manifestation: "这些色法轻快地升起及变易", - cause: "轻快的色" + character: '心生色、时节生色与食生色的不重与不迟钝', + functions: '去除这些色法的重性', + manifestation: '这些色法轻快地升起及变易', + cause: '轻快的色' }, { - name: "色柔软性", + name: '色柔软性', id: 23, - character: "心生色、时节生色与食生色的不坚固与不粗", - functions: "去除这些色法的坚硬性与粗性", - manifestation: "不对抗身体的一切作业", - cause: "柔软的色" + character: '心生色、时节生色与食生色的不坚固与不粗', + functions: '去除这些色法的坚硬性与粗性', + manifestation: '不对抗身体的一切作业', + cause: '柔软的色' }, { - name: "色适业性", + name: '色适业性', id: 24, - character: "心生色、时节生色与食生色的适应性", - functions: "去除由风界不平衡的不适应性", - manifestation: "这些色法的不软弱", - cause: "适业的色" + character: '心生色、时节生色与食生色的适应性', + functions: '去除由风界不平衡的不适应性', + manifestation: '这些色法的不软弱', + cause: '适业的色' }, ] }, { - name: "相色", + name: '相色', children: [ { - name: "色积集", + name: '色积集', id: 25, - character: "色法的起始/成长至诸根具足", - functions: "令色法开始生起", - manifestation: "起始或完成的状态", - cause: "生起之色法" + character: '色法的起始/成长至诸根具足', + functions: '令色法开始生起', + manifestation: '起始或完成的状态', + cause: '生起之色法' }, { - name: "色相续", + name: '色相续', id: 26, - character: "诸根具足后色法的持续", - functions: "一个接一个地连续结合", - manifestation: "持续而不间断", - cause: "结合的色法" + character: '诸根具足后色法的持续', + functions: '一个接一个地连续结合', + manifestation: '持续而不间断', + cause: '结合的色法' }, { - name: "色老性", + name: '色老性', id: 27, - character: "色法成熟与老化", - functions: "导致坏灭、死亡", - manifestation: "失去新性", - cause: "正在衰老的色法" + character: '色法成熟与老化', + functions: '导致坏灭、死亡', + manifestation: '失去新性', + cause: '正在衰老的色法' }, { - name: "色无常", + name: '色无常', id: 28, - character: "真实色法完全坏灭", - functions: "令真实色法消失", - manifestation: "真实色法灭尽", - cause: "灭尽的真实色法" + character: '真实色法完全坏灭', + functions: '令真实色法消失', + manifestation: '真实色法灭尽', + cause: '灭尽的真实色法' }, ] } @@ -309,243 +309,243 @@ const rupa = { const rupaClass = [ { - name: "内色", + name: '内色', id: 101, - values: ["内", "外"], - notes: "作为名法之门的五净色", - rupa: ["眼净色", "耳净色", "鼻净色", "舌净色", "身净色"] + values: ['内', '外'], + notes: '作为名法之门的五净色', + rupa: ['眼净色', '耳净色', '鼻净色', '舌净色', '身净色'] }, { - name: "所依色", + name: '所依色', id: 102, - values: ["所依", "非所依"], - notes: "六识所依之色法", - rupa: ["眼净色", "耳净色", "鼻净色", "舌净色", "身净色", "心色"] + values: ['所依', '非所依'], + notes: '六识所依之色法', + rupa: ['眼净色', '耳净色', '鼻净色', '舌净色', '身净色', '心色'] }, { - name: "门色", + name: '门色', id: 103, - values: ["门", "非门"], - notes: "五净色:心与目标之门;表色:造身语业之门", - rupa: ["眼净色", "耳净色", "鼻净色", "舌净色", "身净色", "身表色", "语表色"] + values: ['门', '非门'], + notes: '五净色:心与目标之门;表色:造身语业之门', + rupa: ['眼净色', '耳净色', '鼻净色', '舌净色', '身净色', '身表色', '语表色'] }, { - name: "根色", + name: '根色', id: 104, - values: ["根", "非根"], - notes: "有控制力", - rupa: ["眼净色", "耳净色", "鼻净色", "舌净色", "身净色", "男根色", "女根色", "命根色"] + values: ['根', '非根'], + notes: '有控制力', + rupa: ['眼净色', '耳净色', '鼻净色', '舌净色', '身净色', '男根色', '女根色', '命根色'] }, { - name: "粗/近/有对色", + name: '粗/近/有对色', id: 105, - values: ["粗/近/有对", "细/远/非有对"], - notes: "直接使根识生起的色法", - rupa: ["地", "火", "风", "眼净色", "耳净色", "鼻净色", "舌净色", "身净色", "色", "声", "香", "味"] + values: ['粗/近/有对', '细/远/非有对'], + notes: '直接使根识生起的色法', + rupa: ['地', '火', '风', '眼净色', '耳净色', '鼻净色', '舌净色', '身净色', '色', '声', '香', '味'] }, { - name: "执受色", + name: '执受色', id: 106, - values: ["执受", "非执受", "皆可"], - notes: "渴爱与邪见推动而造下的业的果报", - rupa: ["眼净色", "耳净色", "鼻净色", "舌净色", "身净色", "男根色", "女根色", "心色", "命根色"], - extra: ["地", "水", "火", "风", "色", "香", "味", "食色", "限界色"] + values: ['执受', '非执受', '皆可'], + notes: '渴爱与邪见推动而造下的业的果报', + rupa: ['眼净色', '耳净色', '鼻净色', '舌净色', '身净色', '男根色', '女根色', '心色', '命根色'], + extra: ['地', '水', '火', '风', '色', '香', '味', '食色', '限界色'] }, { - name: "可见色", + name: '可见色', id: 107, - values: ["可见", "不可见", "皆可"], - notes: "可被眼见得知", + values: ['可见', '不可见', '皆可'], + notes: '可被眼见得知', rupa: [], - extra: ["色"] + extra: ['色'] }, { - name: "取境色", + name: '取境色', id: 108, - values: ["到达境", "不取境", "不到达境"], - notes: "五净色取五境为目标", - rupa: ["眼净色", "耳净色"], - extra: ["鼻净色", "舌净色", "身净色"] + values: ['到达境', '不取境', '不到达境'], + notes: '五净色取五境为目标', + rupa: ['眼净色', '耳净色'], + extra: ['鼻净色', '舌净色', '身净色'] }, { - name: "不分离色", + name: '不分离色', id: 109, - values: ["不分离", "分离"], - notes: "四大元素与色香味食色存在于一切色聚中", - rupa: ["地", "水", "火", "风", "色", "香", "味", "食色"] + values: ['不分离', '分离'], + notes: '四大元素与色香味食色存在于一切色聚中', + rupa: ['地', '水', '火', '风', '色', '香', '味', '食色'] }, ]; const rupaCause = { - name: "四因", - rupa: ["地", "水", "火", "风", "色", "香", "味", "食色"], + name: '四因', + rupa: ['地', '水', '火', '风', '色', '香', '味', '食色'], children: [ { - name: "业生色", + name: '业生色', id: 201, - rupa: ["眼净色", "耳净色", "鼻净色", - "舌净色", "身净色", "女根色", "男根色", - "心色", "命根色", "限界色"] + rupa: ['眼净色', '耳净色', '鼻净色', + '舌净色', '身净色', '女根色', '男根色', + '心色', '命根色', '限界色'] }, { - name: "心生色", + name: '心生色', id: 202, - rupa: ["声", "限界色", "身表色", "语表色", "色轻快性", "色柔软性", "色适业性"] + rupa: ['声', '限界色', '身表色', '语表色', '色轻快性', '色柔软性', '色适业性'] }, { - name: "时节生色", + name: '时节生色', id: 203, - rupa: ["声", "限界色", "色轻快性", "色柔软性", "色适业性"] + rupa: ['声', '限界色', '色轻快性', '色柔软性', '色适业性'] }, { - name: "食生色", + name: '食生色', id: 204, - rupa: ["限界色", "色轻快性", "色柔软性", "色适业性"] + rupa: ['限界色', '色轻快性', '色柔软性', '色适业性'] } ] }; const rupaAgg = { - name: "23色聚", - rupa: ["地", "水", "火", "风", "色", "香", "味", "食色"], + name: '23色聚', + rupa: ['地', '水', '火', '风', '色', '香', '味', '食色'], children: [ { - name: "业生", - rupa: ["命根色"], + name: '业生', + rupa: ['命根色'], children: [ { - name: "眼十法聚", + name: '眼十法聚', id: 315, - rupa: ["眼净色"] + rupa: ['眼净色'] }, { - name: "耳十法聚", + name: '耳十法聚', id: 316, - rupa: ["耳净色"] + rupa: ['耳净色'] }, { - name: "鼻十法聚", + name: '鼻十法聚', id: 317, - rupa: ["鼻净色"] + rupa: ['鼻净色'] }, { - name: "舌十法聚", + name: '舌十法聚', id: 318, - rupa: ["舌净色"] + rupa: ['舌净色'] }, { - name: "身十法聚", + name: '身十法聚', id: 319, - rupa: ["身净色"] + rupa: ['身净色'] }, { - name: "女根色十法聚", + name: '女根色十法聚', id: 320, - rupa: ["女根色"] + rupa: ['女根色'] }, { - name: "男根色十法聚", + name: '男根色十法聚', id: 321, - rupa: ["男根色"] + rupa: ['男根色'] }, { - name: "心色十法聚", + name: '心色十法聚', id: 322, - rupa: ["心色"] + rupa: ['心色'] }, { - name: "命九法聚", + name: '命九法聚', id: 323, rupa: [] }, ] }, { - name: "心生", + name: '心生', rupa: [], children: [ { id: 301, - name: "纯八法聚", + name: '纯八法聚', rupa: [] }, { id: 302, - name: "身表九法聚", - rupa: ["身表色"] + name: '身表九法聚', + rupa: ['身表色'] }, { id: 303, - name: "语表十法聚", - rupa: ["声", "语表色"] + name: '语表十法聚', + rupa: ['声', '语表色'] }, { id: 304, - name: "轻快性十一法聚", - rupa: ["色轻快性", "色柔软性", "色适业性"] + name: '轻快性十一法聚', + rupa: ['色轻快性', '色柔软性', '色适业性'] }, { id: 305, - name: "身表轻快性十二法聚", - rupa: ["色轻快性", "色柔软性", "色适业性", "身表色"] + name: '身表轻快性十二法聚', + rupa: ['色轻快性', '色柔软性', '色适业性', '身表色'] }, { id: 306, - name: "语表声轻快性十三法聚", - rupa: ["色轻快性", "色柔软性", "色适业性", "声", "语表色"] + name: '语表声轻快性十三法聚', + rupa: ['色轻快性', '色柔软性', '色适业性', '声', '语表色'] }, { id: 307, - name: "非语言的声九法聚", - rupa: ["声"] + name: '非语言的声九法聚', + rupa: ['声'] }, { id: 308, - name: "非语言的声轻快性十二法聚", - rupa: ["色轻快性", "色柔软性", "色适业性", "声"] + name: '非语言的声轻快性十二法聚', + rupa: ['色轻快性', '色柔软性', '色适业性', '声'] }, ] }, { - name: "时节生", + name: '时节生', rupa: [], children: [ { id: 309, - name: "纯八法聚", + name: '纯八法聚', rupa: [] }, { id: 310, - name: "声九法聚", - rupa: ["声"] + name: '声九法聚', + rupa: ['声'] }, { id: 311, - name: "轻快性十一法聚", - rupa: ["色轻快性", "色柔软性", "色适业性"] + name: '轻快性十一法聚', + rupa: ['色轻快性', '色柔软性', '色适业性'] }, { id: 312, - name: "声轻快性十一法聚", - rupa: ["声", "色轻快性", "色柔软性", "色适业性"] + name: '声轻快性十一法聚', + rupa: ['声', '色轻快性', '色柔软性', '色适业性'] }, ] }, { - name: "食生", + name: '食生', rupa: [], children: [ { id: 313, - name: "纯八法聚", + name: '纯八法聚', rupa: [] }, { id: 314, - name: "轻快性十一法聚", - rupa: ["色轻快性", "色柔软性", "色适业性"] + name: '轻快性十一法聚', + rupa: ['色轻快性', '色柔软性', '色适业性'] }, ] } @@ -653,7 +653,7 @@ function renderRupaAttrTable(parent) { renderGrid(); - const eightBasics = ["地", "水", "火", "风", "色", "香", "味", "食色"]; + const eightBasics = ['地', '水', '火', '风', '色', '香', '味', '食色']; const ebIndex = []; eightBasics.forEach((d) => { ebIndex.push(rupaIndex[d].id); @@ -665,34 +665,34 @@ function renderRupaAttrTable(parent) { ebIndex.forEach(d => { min = Math.min(min, d); max = Math.max(max, d); - parent.append("line") - .attr("x1", endX) - .attr("y1", unit * d + unit / 2) - .attr("x2", endX + len) - .attr("y2", unit * d + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); + parent.append('line') + .attr('x1', endX) + .attr('y1', unit * d + unit / 2) + .attr('x2', endX + len) + .attr('y2', unit * d + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); }); - parent.append("line") - .attr("x1", endX + len) - .attr("y1", unit * min + unit / 2) - .attr("x2", endX + len) - .attr("y2", unit * max + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); + parent.append('line') + .attr('x1', endX + len) + .attr('y1', unit * min + unit / 2) + .attr('x2', endX + len) + .attr('y2', unit * max + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); - parent.append("line") - .attr("x1", endX + len) - .attr("y1", unit * (min + 2) / 2 + unit / 2) - .attr("x2", endX + len * 2) - .attr("y2", unit * (min + 2) / 2 + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); + parent.append('line') + .attr('x1', endX + len) + .attr('y1', unit * (min + 2) / 2 + unit / 2) + .attr('x2', endX + len * 2) + .attr('y2', unit * (min + 2) / 2 + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); renderTextBox(parent, endX + len * 2, unit * min, unit, unit * 4, 'lavender', '八不离色', {size: fontSize}); - const threeChange = ["色轻快性", "色柔软性", "色适业性"]; + const threeChange = ['色轻快性', '色柔软性', '色适业性']; const tcIndex = []; threeChange.forEach((d) => { tcIndex.push(rupaIndex[d].id); @@ -702,28 +702,28 @@ function renderRupaAttrTable(parent) { tcIndex.forEach(d => { tcMin = Math.min(tcMin, d); tcMax = Math.max(tcMax, d); - parent.append("line") - .attr("x1", endX) - .attr("y1", unit * d + unit / 2) - .attr("x2", endX + len) - .attr("y2", unit * d + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); + parent.append('line') + .attr('x1', endX) + .attr('y1', unit * d + unit / 2) + .attr('x2', endX + len) + .attr('y2', unit * d + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); }); - parent.append("line") - .attr("x1", endX + len) - .attr("y1", unit * tcMin + unit / 2) - .attr("x2", endX + len) - .attr("y2", unit * tcMax + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); - parent.append("line") - .attr("x1", endX + len) - .attr("y1", unit * (tcMin + tcMax) / 2 + unit / 2) - .attr("x2", endX + len * 2) - .attr("y2", unit * (tcMin + tcMax) / 2 + unit / 2) - .attr("stroke", "black") - .attr("stroke-width", 1); + parent.append('line') + .attr('x1', endX + len) + .attr('y1', unit * tcMin + unit / 2) + .attr('x2', endX + len) + .attr('y2', unit * tcMax + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); + parent.append('line') + .attr('x1', endX + len) + .attr('y1', unit * (tcMin + tcMax) / 2 + unit / 2) + .attr('x2', endX + len * 2) + .attr('y2', unit * (tcMin + tcMax) / 2 + unit / 2) + .attr('stroke', 'black') + .attr('stroke-width', 1); renderTextBox(parent, endX + len * 2, unit * tcMin, unit, unit * 3, 'lightblue', '变化色', {size: fontSize}); return { @@ -764,7 +764,7 @@ function renderNotesTable(parent, x, y) { }); } function renderColumnHeaders(x, y) { - ["特相", "作用", "现起", "近因"].forEach(((d, i) => { + ['特相', '作用', '现起', '近因'].forEach(((d, i) => { renderTextBox(parent, x + i * columnW, y, columnW, columnHeaderH, 'lightcyan', d, {size: fontSize}); })); } @@ -817,7 +817,7 @@ function renderRupaAggTable(parent, x, y) { const h2 = fontSize*4 + padding * 4; renderTextBox(parent, x, ry, unit, h2, 'lavender', '八不离色', {vertical: true, size: fontSize}); ry += h2; - const changeRupa = ["色轻快性", "色柔软性", "色适业性"]; + const changeRupa = ['色轻快性', '色柔软性', '色适业性']; if (isSubset(rupas, changeRupa)) { const h3 = fontSize*3 + padding * 4; renderTextBox(parent, x, ry, unit, h3, 'lightblue', '变化色', {vertical: true, size: fontSize}); @@ -828,7 +828,7 @@ function renderRupaAggTable(parent, x, y) { }); } - const eightBasics = ["地", "水", "火", "风", "色", "香", "味", "食色"]; + const eightBasics = ['地', '水', '火', '风', '色', '香', '味', '食色']; eightBasics.forEach(d => { const items = highlightableItems[rupaIndex[d].id]; highlightableItems[data.id].push(...items); @@ -836,7 +836,7 @@ function renderRupaAggTable(parent, x, y) { const otherRupas = setSubtraction(setSubtraction(rupas, eightBasics), changeRupa); otherRupas.forEach((d, i) => { const h = d.length * fontSize + padding*4; - renderTextBox(parent, x, ry, unit, h, i === 0 ? 'lightgreen' : "lightskyblue", d, {vertical: true, size: fontSize}); + renderTextBox(parent, x, ry, unit, h, i === 0 ? 'lightgreen' : 'lightskyblue', d, {vertical: true, size: fontSize}); ry += h; const items = highlightableItems[rupaIndex[d].id]; highlightableItems[data.id].push(...items); @@ -869,17 +869,17 @@ function setupRupaHighlightBehavior() { d.clear(); }); } - item.item.on("mouseover", function(event, d) { + item.item.on('mouseover', function(event, d) { if (rupaLock) return; item.highlight(); }) - .on("mousemove", function(event) { + .on('mousemove', function(event) { }) - .on("mouseout", function() { + .on('mouseout', function() { if (rupaLock) return; item.clear(); }) - .on("click", function() { + .on('click', function() { if (rupaLock === item) { rupaLock = null; item.clear(); diff --git a/js/rupaorigin.js b/js/rupaorigin.js index 044771f..6a8eabf 100644 --- a/js/rupaorigin.js +++ b/js/rupaorigin.js @@ -1,27 +1,27 @@ const rupaAggs = [ { id: 0, - name: "食生色聚", - fire: "食生火界", - food: "食生食素" + name: '食生色聚', + fire: '食生火界', + food: '食生食素' }, { id: 1, - name: "心生色聚", - fire: "心生火界", - food: "心生食素" + name: '心生色聚', + fire: '心生火界', + food: '心生食素' }, { id: 2, - name: "业生色聚", - fire: "业生火界", - food: "业生食素" + name: '业生色聚', + fire: '业生火界', + food: '业生食素' }, { id: 3, - name: "时节生色聚", - fire: "时节生火界", - food: "时节生食素" + name: '时节生色聚', + fire: '时节生火界', + food: '时节生食素' } ]; @@ -30,56 +30,56 @@ function renderAgg(parent, x, y, data) { const rx = 90; const ry = 60; const colors = ['lightblue', 'lightcyan', 'lavender', 'skyblue']; - const main = group.append("ellipse") - .attr("cx", x) // Center x - .attr("cy", y) // Center y - .attr("rx", rx) // Horizontal radius - .attr("ry", ry) // Vertical radius - .style("fill", colors[data.id]) - .style("stroke", "black"); + const main = group.append('ellipse') + .attr('cx', x) // Center x + .attr('cy', y) // Center y + .attr('rx', rx) // Horizontal radius + .attr('ry', ry) // Vertical radius + .style('fill', colors[data.id]) + .style('stroke', 'black'); - group.append("text") - .attr("x", x) - .attr("y", y) - .attr("text-anchor", "middle") - .attr("dominant-baseline", "middle") - .style("font-size", "16px") + group.append('text') + .attr('x', x) + .attr('y', y) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('font-size', '16px') .text(data.name); const fireX = x - ry/1.75; const fireY = y - ry/2; - group.append("ellipse") - .attr("cx", fireX) // Center x - .attr("cy", fireY) // Center y - .attr("rx", rx/3) // Horizontal radius - .attr("ry", ry/3) // Vertical radius - .style("fill", "pink") - .style("stroke", "black"); + group.append('ellipse') + .attr('cx', fireX) // Center x + .attr('cy', fireY) // Center y + .attr('rx', rx/3) // Horizontal radius + .attr('ry', ry/3) // Vertical radius + .style('fill', 'pink') + .style('stroke', 'black'); - group.append("text") - .attr("x", fireX) - .attr("y", fireY) - .attr("text-anchor", "middle") - .attr("dominant-baseline", "middle") - .style("font-size", "12px") + group.append('text') + .attr('x', fireX) + .attr('y', fireY) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('font-size', '12px') .text(data.fire); const foodX = x + ry/1.75; const foodY = y + ry/2; - group.append("ellipse") - .attr("cx", foodX) // Center x - .attr("cy", foodY) // Center y - .attr("rx", rx/3) // Horizontal radius - .attr("ry", ry/3) // Vertical radius - .style("fill", "lightgreen") - .style("stroke", "black"); + group.append('ellipse') + .attr('cx', foodX) // Center x + .attr('cy', foodY) // Center y + .attr('rx', rx/3) // Horizontal radius + .attr('ry', ry/3) // Vertical radius + .style('fill', 'lightgreen') + .style('stroke', 'black'); - group.append("text") - .attr("x", foodX) - .attr("y", foodY) - .attr("text-anchor", "middle") - .attr("dominant-baseline", "middle") - .style("font-size", "12px") + group.append('text') + .attr('x', foodX) + .attr('y', foodY) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .style('font-size', '12px') .text(data.food); return { @@ -92,10 +92,10 @@ function renderAgg(parent, x, y, data) { rx: rx, ry: ry, highlight: function () { - main.style("stroke-width", 2); + main.style('stroke-width', 2); }, clear: function () { - main.style("stroke-width", 1); + main.style('stroke-width', 1); } }; } @@ -115,12 +115,12 @@ function renderCurve(parent, x1, y1, x2, y2, d, label, labelColor) { Q ${midX} ${midY} ${x2} ${y2}`; - const curve = parent.append("path") - .attr("d", pathData) - .attr("fill", "none") - .attr("stroke", "black") - .attr("stroke-width", 1) - .attr("marker-end", "url(#rupa-arrowhead)"); + const curve = parent.append('path') + .attr('d', pathData) + .attr('fill', 'none') + .attr('stroke', 'black') + .attr('stroke-width', 1) + .attr('marker-end', 'url(#rupa-arrowhead)'); const px = 12; const padding = 3; @@ -128,27 +128,27 @@ function renderCurve(parent, x1, y1, x2, y2, d, label, labelColor) { return { highlight: function () { - curve.attr("stroke-width", 2); + curve.attr('stroke-width', 2); }, clear: function () { - curve.attr("stroke-width", 1); + curve.attr('stroke-width', 1); } } } function renderRupaOrigins(parent) { - parent.append("defs") - .append("marker") - .attr("id", "rupa-arrowhead") - .attr("viewBox", "0 -5 10 10") - .attr("refX", 10) - .attr("refY", 0) - .attr("markerWidth", 6) - .attr("markerHeight", 6) - .attr("orient", "auto") - .append("path") - .attr("d", "M0,-5L10,0L0,5") - .attr("fill", "black"); + parent.append('defs') + .append('marker') + .attr('id', 'rupa-arrowhead') + .attr('viewBox', '0 -5 10 10') + .attr('refX', 10) + .attr('refY', 0) + .attr('markerWidth', 6) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M0,-5L10,0L0,5') + .attr('fill', 'black'); const x0 = 400; const y0 = 100;