Skip to content

Commit b25dcc1

Browse files
authored
Merge pull request #524 from rdkcentral/release/2.12.1
Release - v2.12.1
2 parents a36de7f + 2d41486 commit b25dcc1

File tree

37 files changed

+412
-75
lines changed

37 files changed

+412
-75
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v2.12.1
4+
*07 feb 2024*
5+
6+
- Fixed examples that were not working due to incorrect imports.
7+
- Fixed build issues on non-*nix systems.
8+
- Fixed some typos in the documentation.
9+
- Fixed an issue in RoundedRectangleShader where setting a stroke value resulted in incorrect clipping, especially noticeable when the radius is half the height.
10+
311
## v2.12.0
412
*26 oct 2023*
513

docs/RenderEngine/Elements/Children.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TemplateDemo extends lng.Application {
5959
}
6060
}
6161
_init() {
62-
// let's generate dinamically some list items
62+
// let's generate dynamically some list items
6363
// and give it to our list
6464
this.tag('List').items = [1,2,3,4].map((i) => ({label: i }))
6565
}
@@ -94,4 +94,4 @@ class ExampleListItem extends lng.component {
9494
const options = {stage: {w: window.innerWidth, h: window.innerHeight, useImageWorker: false}};
9595
const App = new TemplateDemo(options);
9696
document.body.appendChild(App.stage.getCanvas());
97-
```
97+
```

examples/animation/index.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!--
2+
If not stated otherwise in this file or this component's LICENSE file the
3+
following copyright and licenses apply:
4+
5+
Copyright 2020 Metrological
6+
7+
Licensed under the Apache License, Version 2.0 (the License);
8+
you may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<!DOCTYPE html>
21+
<html lang="en">
22+
<head>
23+
<meta charset="UTF-8" />
24+
25+
</head>
26+
<body style="margin: 0; padding: 0">
27+
<script type="module">
28+
import lng from '../../dist/src/lightning.mjs';
29+
//attachInspector(lng)
30+
31+
window.onload = function() {
32+
class BasicUsageExample extends lng.Application {
33+
static _template() {
34+
return {
35+
Bg: {
36+
rect: true, w: 1900, h: 1080, color: 0xFF000000
37+
},
38+
Block: {
39+
rect: true, w: 200, h: 200, color: 0xFFFFFFFF, x: 0, y: 300
40+
},
41+
}
42+
}
43+
44+
start() {
45+
this.blockAnimation.start()
46+
}
47+
48+
_init() {
49+
this.blockAnimation = this.tag('Block').animation({
50+
duration: 200 / 100,
51+
repeat: 0,
52+
stopMethod: 'immediate',
53+
// timingFunction: 'cubic-bezier(0.20, 1.00, 0.80, 1.00)',
54+
actions: [
55+
{ p: 'x', v: { 0: { v: 0 }, 1: { v: 1900 - 200 } } }
56+
],
57+
})
58+
59+
console.log('start');
60+
this.blockAnimation.start();
61+
}
62+
63+
}
64+
65+
const options = {stage: {w: 1900, h: 1080, clearColor: 0xFF000000, canvas2d: false, useImageWorker: false}, debug: true}
66+
67+
const app = new BasicUsageExample(options);
68+
69+
document.body.appendChild(app.stage.getCanvas());
70+
}
71+
</script>
72+
</body>
73+
</html>

examples/basic-usage/web-src/basic-usage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body style="margin: 0; padding: 0">
2727
<script type="module">
28-
import lng from '../../../src/lightning.mjs';
28+
import lng from '../../../dist/src/lightning.mjs';
2929
//attachInspector(lng)
3030

3131
window.onload = function() {

examples/destroy/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body style="margin: 0; padding: 0">
2727
<script type="module">
28-
import lng from '../../../src/lightning.mjs';
28+
import lng from '../../../dist/src/lightning.mjs';
2929
//attachInspector(lng)
3030

3131
let app = null;

examples/layout/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body>
2727
<script type="module">
28-
import lng from '../../src/lightning.mjs';
28+
import lng from '../../dist/src/lightning.mjs';
2929
class LayoutExample extends lng.Application {
3030
static _template() {
3131
return {

examples/mouse-pointer/basic-usage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<body style="margin: 0; padding: 0">
2929
<script type="module">
30-
import lng from '../../src/lightning.mjs';
30+
import lng from '../../dist/src/lightning.mjs';
3131
//attachInspector(lng)
3232

3333
window.onload = function () {

examples/mouse-pointer/cursor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body style="margin: 0; padding: 0">
2727
<script type="module">
28-
import lng from '../../src/lightning.mjs';
28+
import lng from '../../dist/src/lightning.mjs';
2929
//attachInspector(lng)
3030

3131
window.onload = function() {

examples/mouse-pointer/hover-tree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</head>
2626
<body style="margin: 0; padding: 0">
2727
<script type="module">
28-
import lng from '../../src/lightning.mjs';
28+
import lng from '../../dist/src/lightning.mjs';
2929
//attachInspector(lng)
3030

3131
window.onload = function() {

examples/mouse-pointer/scroll.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</head>
3232
<body style="margin: 0; padding: 0">
3333
<script type="module">
34-
import lng from '../../src/lightning.mjs';
34+
import lng from '../../dist/src/lightning.mjs';
3535
// attachInspector(lng)
3636

3737
window.onload = function() {

0 commit comments

Comments
 (0)