fix: 修复一点点bug

This commit is contained in:
黎智洲 2021-08-11 00:10:37 +08:00
parent 1995261241
commit 07358a4038
3 changed files with 96 additions and 10 deletions

View File

@ -13,10 +13,9 @@
}
.container {
width: 100%;
height: 400px;
background-color: #fafafa;
border: 1px solid #ccc;
position: relative;
}
.down {
@ -24,19 +23,20 @@
margin-top: 20px;
}
#container {
width: 100%;
height: 400px;
}
#freed {
width: 200px;
height: 300px;
border: 1px solid #ccc;
background-color: #fafafa;
margin-right: 30px;
}
#leak {
width: 400px;
height: 300px;
border: 1px solid #ccc;
background-color: #fafafa;
}
</style>
</head>
@ -51,8 +51,8 @@
<span id="pos"></span>
<div class="down">
<div id="freed"></div>
<div id="leak"></div>
<div id="freed" class="container"></div>
<div id="leak" class="container"></div>
</div>
@ -84,6 +84,92 @@
});
let data = [{
"LinkQueue": {
"data": [
{
"type": "head",
"name": "Qptr",
"id": "0x616eb0",
"label": "front",
"front": "node#0x616ed0",
"external": [
"lq"
]
},
{
"type": "head",
"name": "Qptr",
"id": "0x616eb1",
"label": "rear",
"rear": "node#0x616ed0",
"external": null
},
{
"type": "node",
"id": "0x616ed0",
"data": "",
"next": null,
"root": true
},
{
"type": "node",
"id": "0x616ef0",
"data": "D",
"next": null,
"root": true,
"external": [
"p"
]
}
],
"layouter": "LinkQueue"
}
},{
"LinkQueue": {
"data": [
{
"type": "head",
"name": "Qptr",
"id": "0x616eb0",
"label": "front",
"front": "node#0x616ed0",
"external": [
"lq"
]
},
{
"type": "head",
"name": "Qptr",
"id": "0x616eb1",
"label": "rear",
"rear": "node#0x616ed0",
"external": null
},
{
"type": "node",
"id": "0x616ed0",
"data": "",
"next": null,
"root": true
},
{
"type": "node",
"id": "0x616ef0",
"data": "",
"next": null,
"root": true,
"external": [
"p"
],
"freed": true
}
],
"layouter": "LinkQueue"
}
}];
let dataIndex = 0,
curData = data[dataIndex];

2
dist/sv.js vendored

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,7 @@ export class ViewManager {
const options: EngineOptions = this.engine.engineOptions;
if(options.freedContainer) {
this.freedContainer = new FreedContainer(engine, options.freedContainer, { fitCenter: true, tooltip: false });
this.freedContainer = new FreedContainer(engine, options.freedContainer, { fitCenter: true, tooltip: true });
}
if(options.leakContainer) {