import { AddChildFromBuilder } from "@nativescript/core/ui/core/view" ; import { SVGItem } from "./SVGItem" ; export class Defs extends SVGItem implements AddChildFromBuilder { _views : any [ ] ; constructor ( ) { super ( ) ; this . _views = [ ] ; } _addChildFromBuilder ( name , value ) { value . parent = this ; value . _canvas = this . _canvas ; this . _views . push ( value ) ; this . _appendChild ( value . id || value . _domId , value ) ; } }