fix: 修复一点点bug
This commit is contained in:
parent
1995261241
commit
07358a4038
@ -13,10 +13,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
|
||||||
height: 400px;
|
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.down {
|
.down {
|
||||||
@ -24,19 +23,20 @@
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
width: 100%;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
#freed {
|
#freed {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
border: 1px solid #ccc;
|
|
||||||
background-color: #fafafa;
|
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#leak {
|
#leak {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
border: 1px solid #ccc;
|
|
||||||
background-color: #fafafa;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -51,8 +51,8 @@
|
|||||||
<span id="pos"></span>
|
<span id="pos"></span>
|
||||||
|
|
||||||
<div class="down">
|
<div class="down">
|
||||||
<div id="freed"></div>
|
<div id="freed" class="container"></div>
|
||||||
<div id="leak"></div>
|
<div id="leak" class="container"></div>
|
||||||
</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,
|
let dataIndex = 0,
|
||||||
curData = data[dataIndex];
|
curData = data[dataIndex];
|
||||||
|
|
||||||
|
|||||||
2
dist/sv.js
vendored
2
dist/sv.js
vendored
File diff suppressed because one or more lines are too long
@ -32,7 +32,7 @@ export class ViewManager {
|
|||||||
const options: EngineOptions = this.engine.engineOptions;
|
const options: EngineOptions = this.engine.engineOptions;
|
||||||
|
|
||||||
if(options.freedContainer) {
|
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) {
|
if(options.leakContainer) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user