Skip to content

Commit

Permalink
release(performance-monitor): v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Apr 11, 2024
1 parent 2514d74 commit ead1578
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
},
"performance-monitor": {
"react": true,
"version": "0.4.1",
"version": "0.4.2",
"style": true,
"icon": false,
"test": true,
Expand Down
3 changes: 2 additions & 1 deletion src/performance-monitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import now from 'licia/now'
import dateFormat from 'licia/dateFormat'
import Color from 'licia/Color'
import isHidden from 'licia/isHidden'
import stripNum from 'licia/stripNum'
import { exportCjs } from '../share/util'

/** IOptions */
Expand Down Expand Up @@ -307,7 +308,7 @@ export default class PerformanceMonitor extends Component<IOptions> {
ctx.beginPath()
for (let i = 0; i < 2; ++i) {
const y = calcY(scaleValue)
const labelText = scaleValue + unit
const labelText = stripNum(scaleValue) + unit
ctx.moveTo(0, y)
ctx.lineTo(4, y)
ctx.moveTo(ctx.measureText(labelText).width + 12, y)
Expand Down
2 changes: 1 addition & 1 deletion src/performance-monitor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "performance-monitor",
"version": "0.4.1",
"version": "0.4.2",
"description": "Realtime counter used for displaying cpu, fps metrics",
"luna": {
"react": true
Expand Down

0 comments on commit ead1578

Please sign in to comment.