Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nativescript-community/ui-canvas
Browse files Browse the repository at this point in the history
# Conflicts:
#	docs/assets/search.js
  • Loading branch information
farfromrefug committed Jun 14, 2024
2 parents 5f5e30f + 5664d1c commit 3c63b1d
Show file tree
Hide file tree
Showing 14 changed files with 693 additions and 429 deletions.
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,21 @@ packages/**/*.d.ts
bin
build
Pods
!packages/platforms
!packages/*/platforms
/packages/**/*.aar
/packages/**/*.framework
/packages/**/*.xcframework
/demo-snippets/**/*.aar
*.xcuserdatad
/packages/README.md
packages/**/*js.map
packages/**/*js
packages/**/angular/*.json
packages/*.ngsummary.json
packages/*.metadata.json
packages/angular
packages/typings
packages/**/angular/*.json
packages/**/*.ngsummary.json
packages/**/*.metadata.json

.vscode/settings.json

/blueprint.md
2 changes: 1 addition & 1 deletion demo-vue
Submodule demo-vue updated 1 files
+6 −0 webpack.config.js
2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
"useWorkspaces": true,
"command": {
"publish": {
"cleanupTempFiles": true,
"removePackageFields": [
"devDependencies",
"scripts"
]
"cleanupTempFiles": true
}
},
"npmClientArgs": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr --env.watchNodeModules",
"demo.vue.clean": "cd ./demo-vue && ns clean",
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr --env.watchNodeModules",
"doc": "node tools/builddoc.mjs",
"doc": "node tools/builddoc.js",
"postinstall": "npm run setup",
"readme": "lerna run readme && node ./tools/readme.js",
"start": "./node_modules/.bin/ntl -A -s 15 -o",
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.25](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-06-06)

**Note:** Version bump only for package @nativescript-community/ui-canvas

## [4.6.24](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-05-30)

**Note:** Version bump only for package @nativescript-community/ui-canvas
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript-community/ui-canvas",
"version": "4.6.24",
"version": "4.6.25",
"description": "Implement Canvas into your NativeScript apps.",
"main": "./index",
"sideEffects": false,
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-canvaslabel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.28](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-06-06)

**Note:** Version bump only for package @nativescript-community/ui-canvaslabel

## [1.2.27](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-05-30)

**Note:** Version bump only for package @nativescript-community/ui-canvaslabel
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-canvaslabel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript-community/ui-canvaslabel",
"version": "1.2.27",
"version": "1.2.28",
"description": "Alternative to the built-in NativeScript Label but uses canvas which allows extreme complexity and customization.",
"main": "./canvaslabel",
"sideEffects": false,
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-svg/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.37](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-06-06)

**Note:** Version bump only for package @nativescript-community/ui-svg

## [0.1.36](https://github.com/nativescript-community/ui-canvas/compare/@nativescript-community/[email protected]...@nativescript-community/[email protected]) (2024-05-30)

**Note:** Version bump only for package @nativescript-community/ui-svg
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript-community/ui-svg",
"version": "0.1.36",
"version": "0.1.37",
"description": "Adds support for SVGs in your NativeScript apps.",
"main": "./index",
"sideEffects": false,
Expand Down
10 changes: 10 additions & 0 deletions src/ui-canvas/canvas.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,16 @@ export class StaticLayout {
}
return result;
}
getLineWidth(lineNumber: number) {
// TODO: actually find line used width
let result = this.getBounds().size.width;
if (isNaN(result)) {
result = this.width;
} else {
result = Math.min(result, this.width);
}
return result;
}
getHeight() {
const result = this.getBounds().size.height;
return result;
Expand Down
2 changes: 1 addition & 1 deletion tools
Loading

0 comments on commit 3c63b1d

Please sign in to comment.