diff --git a/public/index.html b/public/index.html
index 8760ed8..b8b5b9f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -15,7 +15,7 @@
diff --git a/public/netlist.css b/public/netlist.css
index a03987b..25ac98a 100644
--- a/public/netlist.css
+++ b/public/netlist.css
@@ -43,8 +43,8 @@
--multiplexers-fill-color: #E59866;
--registers-color: #95A5A6;
--registers-fill-color: #D5DBDB;
- --unary-color: #1ABC9C;
- --unary-fill-color: #A3E4D7;
+ --unary-color: #279BB0;
+ --unary-fill-color: #a3cee4;
--line-arrow-opacity: 1;
diff --git a/public/test.skin b/public/test.skin
deleted file mode 100644
index 2f56e96..0000000
Binary files a/public/test.skin and /dev/null differ
diff --git a/src/components/setting/color.js b/src/components/setting/color.js
index 81c8bf6..9769c54 100644
--- a/src/components/setting/color.js
+++ b/src/components/setting/color.js
@@ -145,16 +145,16 @@ export function onGeneralColorChange(colorString) {
export function onCellColorChange(colorString) {
const { r, g, b } = parseColor(colorString);
- const index = colorManager.currentGerneralIndex;
- const item = colorManager.generals[index];
+ const index = colorManager.currentCellIndex;
+ const item = colorManager.cells[index];
const borderColor = `rgb(${r}, ${g}, ${b})`;
const { ir, ig, ib } = increaseBrightness({ r, g, b }, 10);
const fillColor = `rgb(${ir}, ${ig}, ${ib})`;
-
+
const rootStyles = getComputedStyle(document.documentElement);
document.documentElement.style.setProperty(`--${item.type}-color`, borderColor);
- document.documentElement.style.setProperty(`--${item.type}-fill-color`, fillColor);
+ // document.documentElement.style.setProperty(`--${item.type}-fill-color`, fillColor);
}
export const predefinedColors = [
diff --git a/src/hook/render/instantiation.js b/src/hook/render/instantiation.js
index 8a9e9a2..e0b4353 100644
--- a/src/hook/render/instantiation.js
+++ b/src/hook/render/instantiation.js
@@ -30,9 +30,7 @@ export class InstantiationRender {
* @description 将 elknode 关于 例化模块 的数据添加为 d3 数据项目
* @param {import('../jsdoc').ElkNode} node
*/
- addAsD3DataItem(node) {
- console.log(node);
-
+ addAsD3DataItem(node) {
const nodeModule = this.rootRender.nameToModule.get(node.renderName);
const view = nodeModule.view;
const textPadding = 5;