我试图通过使用Rappid教程包中的一些示例来构建一个原型,即
QAD
和
KitchenSink
.
joint.dia.Element.define('qad.Question'
在KitchenSink中,我定义了模具组,但组中的元素是json对象,例如:
App.config.stencil.shapes.standard = [
{
type: 'standard.Rectangle',
size: { width: 5, height: 3 },
attrs: {
我试着把
qad.Question
joint.shapes.qad.Question
并将其设置为变量并使用它,但每种方法都会导致错误。