外观
lib-finSvgGaugesReactExt 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793455827/FIN+5.3.1+lib-finSvgGaugesReactExt 中文整理基于 FIN 5.3.1
导读: 本页为
lib-finSvgGaugesReactExt的 API / 标签 / 函数参考文档。
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- lib
- meta
- funcs
- def
- finMiscComponentsContextMenuItems()
- supertypes
- src
- finMiscComponentsModels()
API 正文(英文)
funcs
| finMiscComponentsContextMenuItems | Axon function |
| finMiscComponentsModels | Returns models from the FIN |
def
func:finMiscComponentsContextMenuItems
finMiscComponentsContextMenuItems()
Axon function
meta
| def | func:finMiscComponentsContextMenuItems |
| finBuilderMenu | ✓ |
| is | func |
| lib | lib:finSvgGaugesReactExt |
| name | finMiscComponentsContextMenuItems |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
src
() => do
srcs: [
["svgNeedleGauge","needle"],
["svgBar1","bar1"],
["svgBar2","bar2"],
["svgBar3","bar3"],
["svgBar4","bar4"],
["svgBar5","bar5"],
["circleGauge2","circle1"],
["circleGauge3","circle2"],
["halfCircleGauge1","halfCircle1"],
["halfCircleGauge2","halfCircle2"],
["halfCircleGauge3","halfCircle3"],
["halfCircleGauge4","halfCircle4"],
["halfCircleGauge5","halfCircle5"],
["halfCircleGauge6","halfCircle6"],
["halfCircleGauge7","halfCircle7"],
["halfCircleGauge8","halfCircle8"],
["lightGauge1","light1"],
["lightGauge2","light2"],
["lightningGauge","lightning"],
["raindropGauge","raindrop"],
["snowflakeGauge","snowflake"],
["sunGauge","sun"],
["treeGauge","tree"],
["batteryGauge","battery"],
["buttonComponent","buttonComponent"],
["titleContainer","labelContainer"]
]
menu: []
srcs.each x=> do
menu = menu.add({
dis: "Configure Gauge",
name:"fin_menu_configure_gauge_"+x[1],
menuOn: "source==\"/finPod/finSvgGaugesReactExt/src/res/models/"+x[0]+".f5m\"",
icon:"",
folderPath: "",
body: " top.app.ShowRemotePopup(null, '/pod/finSvgGaugesReactExt/index.html#type="+x[1]+"&id=' + this.model.id, {size: {w:'100%', h:'100%'}, position: {x:'center', y:'middle'}});"+
" setTimeout(function(){ top.document.getElementsByClassName('remote-content-popup')[0].style.backgroundColor = 'rgba(0,0,0,0)' }, 500);",
})
end
menu
enddef
func:finMiscComponentsModels
finMiscComponentsModels()
Returns models from the FIN|Misc Components Pod
meta
| construct | finMiscComponentsModels() |
| def | func:finMiscComponentsModels |
| finModelFunc | ✓ |
| is | func |
| lib | lib:finSvgGaugesReactExt |
| name | finMiscComponentsModels |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
src
() => do
[
{
dis: toLocale("Needle Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgNeedleGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/svgNeedleGauge.png`
},
{
dis: toLocale("Bar Gauge 1"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgBar1.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/barGauge1.png`
},
{
dis: toLocale("Bar Gauge 2"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgBar2.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/barGauge2.png`
},
{
dis: toLocale("Bar Gauge 3"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgBar3.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/barGauge3.png`
},
{
dis: toLocale("Bar Gauge 4"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgBar4.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/barGauge4.png`
},
{
dis: toLocale("Bar Gauge 5"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/svgBar5.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/barGauge5.png`
},
{
dis: toLocale("Circle Gauge 1"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/circleGauge2.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/circleGauge1.png`
},
{
dis: toLocale("Circle Gauge 2"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/circleGauge3.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/circleGauge2.png`
},
{
dis: toLocale("Half Circle Gauge 1"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge1.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge1.png`
},
{
dis: toLocale("Half Circle Gauge 2"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge2.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge2.png`
},
{
dis: toLocale("Half Circle Gauge 3"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge3.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge3.png`
},
{
dis: toLocale("Half Circle Gauge 4"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge4.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge4.png`
},
{
dis: toLocale("Half Circle Gauge 5"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge5.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge5.png`
},
{
dis: toLocale("Half Circle Gauge 6"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge6.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge6.png`
},
{
dis: toLocale("Half Circle Gauge 7"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge7.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge7.png`
},
{
dis: toLocale("Half Circle Gauge 8"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/halfCircleGauge8.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/halfCircleGauge8.png`
},
{
dis: toLocale("Light Gauge 1"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/lightGauge1.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/lightGauge1.png`
},
{
dis: toLocale("Light Gauge 2"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/lightGauge2.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/lightGauge2.png`
},
{
dis: toLocale("Lightning Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/lightningGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/lightningGauge.png`
},
{
dis: toLocale("Raindrop Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/raindropGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/raindropGauge.png`
},
{
dis: toLocale("Snowflake Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/snowflakeGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/snowflakeGauge.png`
},
{
dis: toLocale("Sun Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/sunGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/sunGauge.png`
},
{
dis: toLocale("Tree Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/treeGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/treeGauge.png`
},
{
dis: toLocale("Battery Gauge"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/batteryGauge.f5m`,
category: "svgGauges",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/batteryGauge.png`
},
{
dis: toLocale("Button Bar"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/buttonComponent.f5m`,
category: "svgMisc",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/buttonComponent.png`
},
{
dis: toLocale("Label Container"),
file: `/finPod/finSvgGaugesReactExt/src/res/models/titleContainer.f5m`,
category: "svgMisc",
finModel,
image: `/finPod/finSvgGaugesReactExt/src/res/img/viewContainer.png`
},
]
end