瀏覽代碼

README.md

Ievgen Naida 5 年之前
父節點
當前提交
6b5b097fc4
共有 1 個文件被更改,包括 8 次插入9 次删除
  1. 8 9
      README.md

+ 8 - 9
README.md

@@ -48,17 +48,16 @@ Features:
 
 ```TypeScript
 import {
-  default as timeline,
   TimelineOptions,
-  Timeline,
-  AnimationTimelineLane,
-  ScrollEventArgs
+  Timeline
 } from "animation-timeline-js";
 
-timeline.initialize({ id: 'timeline' });
+  const options = new TimelineOptions();
+  options.id = 'timeline';
+  new Timeline(options);
 ```
 
-### Draw the outline tree
+### Draw outline tree
 
 Scroll events can be synchronized with the outline at the left side of the control.
 
@@ -69,7 +68,7 @@ Scroll events can be synchronized with the outline at the left side of the contr
 
 ```
 
-## Data structure
+## Model
 
 ### Events
 
@@ -111,13 +110,13 @@ to pack JavaScript as a bundle:
   npm run build
 ```
 
-### Build tests:
-
+### Build Tests
 To build TypeScript unittests command should be executed: 
 ```bash
   npm run build-tests
 ```
 
+### Run Tests
 Tests execution can be started by opening tests/unittests.html. 
 External mocha libs are used so internet is required.