feat: 后端全量更新 - 含所有本次需求
- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>State Chart with Simple Curved Link Reshaping</title>
|
||||
<!-- Copyright 1998-2020 by Northwoods Software Corporation. -->
|
||||
<meta name="description" content="TypeScript: Changing the curviness of a link using a single reshaping handle." />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- /* Copyright 1998-2020 by Northwoods Software Corporation. */ -->
|
||||
|
||||
<script src="../samples/assets/require.js"></script>
|
||||
<script src="../assets/js/goSamples.js"></script> <!-- this is only for the GoJS Samples framework -->
|
||||
<script id="code">
|
||||
function init() {
|
||||
require(["CurvedLinkReshapingScript"], function(app) {
|
||||
app.init();
|
||||
document.getElementById("SaveButton").onclick = app.save;
|
||||
document.getElementById("LoadButton").onclick = app.load;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init()">
|
||||
<div id="sample">
|
||||
<div id="myDiagramDiv" style="background-color: whitesmoke; border: solid 1px black; width: 100%; height: 400px"></div>
|
||||
<p>
|
||||
This sample is a modification of the <a href="../samples/stateChart.html">State Chart</a> sample that makes use of
|
||||
the CurvedLinkReshapingTool that is defined in its own file, as <a href="CurvedLinkReshapingTool.ts">CurvedLinkReshapingTool.ts</a>.
|
||||
</p>
|
||||
<p>
|
||||
Note that unlike the standard case of a Bezier-curved Link that is <a>Part.reshapable</a>, there is only one reshape
|
||||
handle When the user drags that handle, the value of <a>Link.curviness</a> is modified, causing the link to be curved
|
||||
differently. This sample also defines a TwoWay <a>Binding</a> on that property, thereby saving the curviness to the
|
||||
model data. Unlike the regular State Chart sample, there is no Binding on <a>Link.points</a>, which is no longer needed
|
||||
when the curviness is the only modified property.
|
||||
</p>
|
||||
<button id="SaveButton">Save</button>
|
||||
<button id="LoadButton">Load</button> Diagram Model saved in JSON format:
|
||||
<br />
|
||||
<textarea id="mySavedModel" style="width:100%;height:300px">
|
||||
{ "nodeKeyProperty": "id",
|
||||
"nodeDataArray": [
|
||||
{ "id": 0, "loc": "120 120", "text": "Initial" },
|
||||
{ "id": 1, "loc": "330 120", "text": "First down" },
|
||||
{ "id": 2, "loc": "226 376", "text": "First up" },
|
||||
{ "id": 3, "loc": "60 276", "text": "Second down" },
|
||||
{ "id": 4, "loc": "226 226", "text": "Wait" }
|
||||
],
|
||||
"linkDataArray": [
|
||||
{ "from": 0, "to": 0, "text": "up or timer", "curviness": -20 },
|
||||
{ "from": 0, "to": 1, "text": "down", "curviness": 20 },
|
||||
{ "from": 1, "to": 0, "text": "up (moved)\nPOST", "curviness": 20 },
|
||||
{ "from": 1, "to": 1, "text": "down", "curviness": -20 },
|
||||
{ "from": 1, "to": 2, "text": "up (no move)" },
|
||||
{ "from": 1, "to": 4, "text": "timer" },
|
||||
{ "from": 2, "to": 0, "text": "timer\nPOST" },
|
||||
{ "from": 2, "to": 3, "text": "down" },
|
||||
{ "from": 3, "to": 0, "text": "up\nPOST\n(dblclick\nif no move)" },
|
||||
{ "from": 3, "to": 3, "text": "down or timer", "curviness": 20 },
|
||||
{ "from": 4, "to": 0, "text": "up\nPOST" },
|
||||
{ "from": 4, "to": 4, "text": "down" }
|
||||
]
|
||||
}
|
||||
</textarea>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user