基于区块链的毕业设计Image Customization Widget – 图像自定义小部件

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Image Customization Widget – 图像自定义小部件 是一篇很好的国外资料

Image Customization Widget

To add this widget to your Enketo Express installation see this guidance.

Works on SVG media if the following is present for a question in XLSForm (or XForm):

  1. Appearance "image-customization" on select_one and select_multiple questions.
  2. The column "body::kb:image-customization" is present with a ${style} reference for that question.
  3. The settings sheet has a namespaces setting containing kb="http://kobotoolbox.org/xforms".
  4. The ${style} calculation produces a stringified JSON format with SVG style instructions. The special "selected" property is optional and can be used to override the selected style in the image-map widget (in case both are combined). The other properties correspond to an id attribute on a <path> in the SVG. Multiple style properties can be customized. See example:
{ 	"selected": { 		"stroke": "yellow", 		"stroke-width": 4 	}, 	"AL": { 		"fill": "#ccc" 	}, 	"CO": { 		"fill": "#ababab" 	} }

Note that this widget is a custom hack for which we cannot device a proper sane XForm syntax. It is therefore not suitable for inclusion in the common Enketo tools and the ODK XForms specification.


图像定制小部件

要将此小部件添加到Enketo Express安装中,请参阅本指南。

如果XLSForm(或XForm)中的问题出现以下情况,则SVG媒体可以正常工作:

  1. 在选择一个和选择多个问题时出现“图像定制”。
  2. 列“body::kb:image customization”中包含该问题的${style}引用。
  3. 设置表中的名称空间设置包含kb=“http://kobotoolbox.org/xforms”.
  4. ${style}计算生成带有SVG样式指令的字符串化JSON格式。可选的情况下,在“特殊的图像”和“样式”中都可以选择覆盖。其他属性对应于SVG中&lt;path&gt;上的id属性。可以自定义多个样式特性。参见示例:
{ 	"selected": { 		"stroke": "yellow", 		"stroke-width": 4 	}, 	"AL": { 		"fill": "#ccc" 	}, 	"CO": { 		"fill": "#ababab" 	} }

请注意,此小部件是一个自定义的黑客程序,我们无法为其设置一个正确的XForm语法。因此,它不适合包含在通用Enketo工具和odkxforms规范中。

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/16899.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Image Customization Widget – 图像自定义小部件

提供最优质的资源集合

立即查看 了解详情