Encodable:可视化组件的可配置语法
Encodable: Configurable Grammar for Visualization Components
摘要:
现在有很多可视化组件库,它们的API通常彼此不同。这些组件在API和通用功能方面是否可以更相似?对于正在开发新的可视化组件的人来说,API应该是什么样子?这项工作从可视化语法中汲取灵感,将语法从其渲染引擎中分离出来,并将其调整为可配置的语法,用于称为Encodable的各个组件。Encodable帮助组件作者为他们的组件定义语法,并将来自用户的编码规范解析为实现的实用函数。本文解释了语法设计,并演示了如何使用它构建组件。
英文摘要:
There are so many libraries of visualization components nowadays with their APIs often different from one another. Could these components be more similar, both in terms of the APIs and common functionalities? For someone who is developing a new visualization component, how should the API look like? This work drew inspiration from visualization grammar, decoupled the grammar from its rendering engine and adapted it into a configurable grammar for individual components called Encodable. Encodable helps component authors define grammar for their components, and parse encoding specifications from users into utility functions for the implementation. This paper explains the grammar design and demonstrates how to build components with it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。