"use strict";

const Slide = require('../lib/Slide');
const cursor = require('kittik-cursor').create().reset().hideCursor();

Slide.create(cursor, {
  shapes: [{
    name: 'Hello',
    type: 'FigText',
    options: {
      text: 'Hello, Kittik!',
      x: 'center',
      y: 'middle',
      font: 'Star Wars'
    }
  }],
  animations: [{
    name: 'Print',
    type: 'Print',
    options: {
      easing: 'outCubic',
      duration: 6000
    }
  }, {
    name: 'Slide X',
    type: 'Slide',
    options: {
      direction: 'outRight',
      easing: 'inOutSine',
      duration: 2000
    }
  }],
  order: [
    'Hello::Print->Slide X'
  ]
}).render().then(() => cursor.reset().showCursor());

@@ -304,24 +304,259 @@
 Wars'%0A    %7D%0A
+  %7D, %7B%0A    name: 'Shape',%0A    type: 'Rectangle',%0A    options: %7B%0A      text: 'Rectangle example',%0A      x: 'center',%0A      y: 'middle',%0A      width: '50%25',%0A      height: '10%25',%0A      background: 'white',%0A      foreground: 'black'%0A    %7D%0A
   %7D%5D,%0A  anim
@@ -861,16 +861,45 @@
 Slide X'
+,%0A    'Shape::Print-%3ESlide X'
 %0A  %5D%0A%7D).

Update one-slide example with one more shape