saccade 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,13 +13,13 @@ npm install saccade -D
13
13
  ## Usage
14
14
 
15
15
  ```tsx
16
- import { Lapse } from 'saccade'
16
+ import { Saccade } from 'saccade'
17
17
 
18
18
  function App() {
19
19
  return (
20
20
  <>
21
21
  <YourApp />
22
- <Lapse />
22
+ <Saccade />
23
23
  </>
24
24
  )
25
25
  }
@@ -51,9 +51,9 @@ Saccade patches timing APIs (`setTimeout`, `setInterval`, `requestAnimationFrame
51
51
  For non-React usage or programmatic control:
52
52
 
53
53
  ```ts
54
- import { LapseEngine } from 'saccade/core'
54
+ import { SaccadeEngine } from 'saccade/core'
55
55
 
56
- const engine = new LapseEngine()
56
+ const engine = new SaccadeEngine()
57
57
 
58
58
  // Speed control
59
59
  engine.setSpeed(0.25) // quarter speed
@@ -77,7 +77,7 @@ engine.destroy()
77
77
  ## React Hooks
78
78
 
79
79
  ```tsx
80
- import { LapseProvider, useLapseEngine, useTimeline, useSpeed } from 'saccade'
80
+ import { SaccadeProvider, useSaccadeEngine, useTimeline, useSpeed } from 'saccade'
81
81
  ```
82
82
 
83
83
  ### `useSpeed`
@@ -127,7 +127,7 @@ import type {
127
127
 
128
128
  ## Requirements
129
129
 
130
- - React 18+ (for the `<Lapse>` component)
130
+ - React 18+ (for the `<Saccade>` component)
131
131
  - No React dependency needed for `saccade/core`
132
132
 
133
133
  ## License