Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leaferjs committed Dec 7, 2024
1 parent 5293b5c commit e3890a4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/performance/million.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Million Rects | Leafer UI</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script src="https://unpkg.com/leafer-ui@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-ui@1.1.0/dist/web.min.js"></script>
</head>

<body></body>
Expand Down
15 changes: 15 additions & 0 deletions src/property/animation/count.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Leafer, Text } from 'leafer-ui'
import '@leafer-in/animate'

const leafer = new Leafer({ view: window })

const text = new Text({
fill: 'rgb(50,205,121)',
text: 0, // [!code hl:5]
animation: {
style: { text: 100 },
duration: 2
}
})

leafer.add(text)
4 changes: 2 additions & 2 deletions src/property/custom/addAttr-datatype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Leafer, Text, dataType } from 'leafer-ui'

const leafer = new Leafer({ view: window })

Text.addAttr('version', '1.0.10', dataType) // [!code hl]
Text.addAttr('version', '1.1.0', dataType) // [!code hl]

// default version

const text = new Text({ text: 'Welcome to LeaferJS' })

leafer.add(text)

console.log((text as any).version) // 1.0.10
console.log((text as any).version) // 1.1.0

// set version

Expand Down
2 changes: 1 addition & 1 deletion src/start/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Demo | Leafer UI</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<script src="https://unpkg.com/leafer-ui@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-ui@1.1.0/dist/web.min.js"></script>
</head>
<body></body>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/worker/worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 你也可以使用npm包模式,编译成js文件供worker调用
importScripts(
'https://unpkg.com/@leafer-ui/worker@1.0.10/dist/worker.min.js'
'https://unpkg.com/@leafer-ui/worker@1.1.0/dist/worker.min.js'
)

const { Leafer, Rect } = LeaferUI
Expand Down

0 comments on commit e3890a4

Please sign in to comment.