initialize() {
    const {document, margin, width, height, effWidth, effHeight,
      scale, maxCusps, scaledMargin, scaledWidth, finalAngle} = this;

    const drawing = this.drawing = new SvgContext;
    SvgElement.appendChildren(document.body,
      Svg({width: width, height: height},
        Rect({
          'class': 'border',
          x: margin,
          y: margin,
          width: effWidth,
          height: effHeight,
        }),
        G({transform: `scale(${scale} ${-scale}) ` +
            `translate(${scaledWidth - 2 + scaledMargin}, ` +
                      `${-scaledWidth / 2 - scaledMargin}) ` +
            `rotate(90 ${-maxCusps} 0)`},
          drawing)
      )
    );
    const EpiSet = this.EpiSet = EpiSetClass(drawing, maxCusps, finalAngle);
    this.epiSets = range(maxCusps + 1, 1).reverse().map(
      cusps => new EpiSet(cusps));

    this.initialized = true;
  }
// construction but before starting animation.
construction but before starting animation.
construction but before starting animation .
initialize() {
    const {document, margin, width, height, effWidth, effHeight,
      scale, maxCusps, scaledMargin, scaledWidth, finalAngle} = this;
    const drawing = this.drawing = new SvgContext;
    SvgElement.appendChildren(document.body,
      Svg({width: width, height: height},
        Rect({
          'class': 'border',
          x: margin,
          y: margin,
          width: effWidth,
          height: effHeight,
        }),
        G({transform: `scale(${scale} ${-scale}) ` +
            `translate(${scaledWidth - 2 + scaledMargin}, ` +
                      `${-scaledWidth / 2 - scaledMargin}) ` +
            `rotate(90 ${-maxCusps} 0)`},
          drawing)
      )
    );
    const EpiSet = this.EpiSet = EpiSetClass(drawing, maxCusps, finalAngle);
    this.epiSets = range(maxCusps + 1, 1).reverse().map(
      cusps => new EpiSet(cusps));
    this.initialized = true;
  }
initialize ( ) { const { document , margin , width , height , effWidth , effHeight , scale , maxCusps , scaledMargin , scaledWidth , finalAngle } = this ; const drawing = this . drawing = new SvgContext ; SvgElement . appendChildren ( document . body , Svg ( { width : width , height : height } , Rect ( { 'class' : 'border' , x : margin , y : margin , width : effWidth , height : effHeight , } ) , G ( { transform : ` ${ scale } ${ - scale } ` + ` ${ scaledWidth - 2 + scaledMargin } ` + ` ${ - scaledWidth / 2 - scaledMargin } ` + ` ${ - maxCusps } ` } , drawing ) ) ) ; const EpiSet = this . EpiSet = EpiSetClass ( drawing , maxCusps , finalAngle ) ; this . epiSets = range ( maxCusps + 1 , 1 ) . reverse ( ) . map ( cusps => new EpiSet ( cusps ) ) ; this . initialized = true ; }
construction but before starting animation.
construction but before starting animation .