Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merging latest Lightning changes from upstream #41

Open
wants to merge 44 commits into
base: spark
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e6e137c
Revert text texture throttling which causes artifacts.
g-zachar Sep 11, 2019
0e7bcb6
Merge pull request #41 from WebPlatformForEmbedded/fix/text-artifacts
g-zachar Sep 18, 2019
ea70f2a
1.0.9
g-zachar Sep 18, 2019
e363837
Added text overflow option (#35)
g-zachar Sep 18, 2019
d4fb785
1.1.0
g-zachar Sep 18, 2019
d9236d6
fix(fireAncestors): prevent method from being called on component tha…
erikhaandrikman Sep 19, 2019
0a25373
Fixed circular dependency warnings.
g-zachar Sep 30, 2019
033a052
Merge pull request #54 from WebPlatformForEmbedded/fix/circular-depen…
erikhaandrikman Sep 30, 2019
0971296
Feature/longpress (#55)
erikhaandrikman Oct 10, 2019
44164a9
1.2.0
g-zachar Oct 14, 2019
965d2e4
Removed hard test dependencies (#61)
g-zachar Oct 22, 2019
cedca6a
Env/cleanup rollup (#62)
g-zachar Oct 28, 2019
6c92bae
Env/npm publish (#67)
g-zachar Nov 6, 2019
c3ee21d
1.2.1
g-zachar Nov 6, 2019
7050075
Update README.md
g-zachar Nov 8, 2019
37c69ce
Added RoundedRectangle webgl shader (#71)
g-zachar Nov 19, 2019
66917a4
1.3.0
g-zachar Nov 19, 2019
b1a6d2a
Fixed text highlight offset calculation (#87)
g-zachar Jan 8, 2020
95403b3
1.3.1
g-zachar Jan 8, 2020
aaed132
Fixed createWorker only ES5-valid
erikhaandrikman Jan 15, 2020
e3c2044
1.3.2
erikhaandrikman Jan 15, 2020
be1a431
Feature/es5 bundle (#97)
michielvandergeest Jan 16, 2020
d59d275
Updated package-lock.json file
g-zachar Jan 16, 2020
27bd2fb
1.4.0
g-zachar Jan 16, 2020
3348366
Update rollup and es5 config (#102)
g-zachar Jan 29, 2020
fd8169c
1.4.1
g-zachar Jan 29, 2020
10105cb
Corrected bug on resizeMode When using an already loaded textureSourc…
hacketo Feb 3, 2020
aed798e
merging in upstream changes
mfiess Feb 4, 2020
6b12472
SparkRenderer support
mfiess Feb 7, 2020
de48cd0
Merge pull request #1 from mfiess/_updates2
mfiess Feb 7, 2020
f75b941
spark renderer updates
mfiess Feb 7, 2020
b59b326
Merge pull request #2 from mfiess/_updates2
mfiess Feb 7, 2020
51a894a
cleanup
mfiess Feb 8, 2020
385452a
Merge branch '_updates020417_2' of https://github.com/mfiess/Lightnin…
mfiess Feb 8, 2020
eb40679
updates
mfiess Feb 8, 2020
2218193
updates
mfiess Feb 8, 2020
e70e12d
updates for Spark
mfiess Feb 11, 2020
3b8c3d3
updates for Spark
mfiess Feb 11, 2020
624b0e5
spark updates
mfiess Feb 11, 2020
cfe47f1
spark updates
mfiess Feb 11, 2020
0fc6fcf
additional Spark updates (#108)
mfiess Feb 18, 2020
82d2ae9
1.5.0
erikhaandrikman Feb 18, 2020
dee1ebe
spark shader updates
mfiess Feb 19, 2020
659cebd
Merge remote-tracking branch 'metroupstream/master' into _updates0204…
mfiess Feb 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Lightning

[![npm](https://img.shields.io/npm/v/wpe-lightning)](https://www.npmjs.com/package/wpe-lightning)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=55UJZHTXW8VTE)

Lightning is a (TV) app development framework that offers great portability and performance.
Expand Down
2,294 changes: 2,281 additions & 13 deletions package-lock.json

Large diffs are not rendered by default.

31 changes: 24 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{
"author": "Metrological, Bas van Meurs <b.van.meurs@metrological.com>",
"name": "wpe-lightning",
"version": "1.0.8",
"version": "1.5.0",
"license": "apache",
"main": "src/lightning.mjs",
"main": "dist/lightning.js",
"module": "index.js",
"files": [
"index.js",
"src/**",
"dist/**",
"devtools/**"
],
"scripts": {
"postinstall": "rollup -c"
},
"dependencies": {
"rollup": "^0.67.0",
"rollup-plugin-license": "^0.10.0"
"build": "rollup -c",
"release": "npm run build && npm publish"
},
"repository": {
"type": "git",
"url": "git@github.com:WebPlatformForEmbedded/Lightning.git"
},
"bugs": {
"url": "https://github.com/WebPlatformForEmbedded/Lightning/issues"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/plugin-transform-parameters": "^7.8.3",
"@babel/plugin-transform-spread": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"chai": "^4.2.0",
"mocha": "^6.2.1",
"rollup": "^1.30.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-license": "^0.10.0",
"rollup-plugin-terser": "^5.1.2",
"sinon": "^7.5.0"
}
}
131 changes: 124 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,137 @@
const resolve = require('./rollup.plugin.resolver');
import license from 'rollup-plugin-license';
import pkg from './package.json';
import { terser } from 'rollup-plugin-terser';
import babel from 'rollup-plugin-babel';

export default {
const TERSER_CONFIG = {
keep_classnames: true,
keep_fnames: true,
sourcemap: true,
}

export default [{
/** lightning.js */
input: './src/lightning.mjs',
plugins: [
resolve("web"),

/* Add version number to bundle */
license({
banner: `Lightning v<%= pkg.version %>\n\n https://github.com/WebPlatformForEmbedded/Lightning`,
}),
],
output: {
file: './dist/lightning-web.js',
format: 'iife',
file: './dist/lightning.js',
format: 'umd',
name: 'lng'
}
},
{
/** lightning.min.js */
input: './src/lightning.mjs',
plugins: [
terser(TERSER_CONFIG),

/* Add version number to bundle */
license({
banner: `Lightning v<%= pkg.version %>\n\n https://github.com/WebPlatformForEmbedded/Lightning`,
}),
],
output: {
file: './dist/lightning.min.js',
format: 'umd',
name: 'lng',
sourcemap: true,
}

},
{
/** lightning.es5.js */
input: './src/lightning.mjs',
plugins: [

/* Add version number to bundle */
license({
banner: `Lightning v<%= pkg.version %>\n\n https://github.com/WebPlatformForEmbedded/Lightning`,
}),
babel({
presets: [
[
'@babel/env',
{
targets: {
ie: '11',
},
spec: true,
debug: false
},
],
],
plugins: ['@babel/plugin-transform-spread', '@babel/plugin-transform-parameters'],
}),
],
output: {
file: './dist/lightning.es5.js',
format: 'umd',
name: 'lng'
}
},
{
/** lightning.es5.min.js */
input: './src/lightning.mjs',
plugins: [
terser(TERSER_CONFIG),

/* Add version number to bundle */
license({
banner: `Lightning v<%= pkg.version %>\n\n https://github.com/WebPlatformForEmbedded/Lightning`,
}),
babel({
presets: [
[
'@babel/env',
{
targets: {
ie: '11',
},
spec: true,
debug: false
},
],
],
plugins: ['@babel/plugin-transform-spread', '@babel/plugin-transform-parameters'],
}),
],
output: {
file: './dist/lightning.es5.min.js',
format: 'umd',
name: 'lng',
sourcemap: true,
}
},
{
/** lightning-inspect.es5.js */
input: './devtools/lightning-inspect.js',
plugins: [

babel({
presets: [
[
'@babel/env',
{
targets: {
ie: '11',
},
spec: true,
debug: false
},
],
],
plugins: ['@babel/plugin-transform-spread', '@babel/plugin-transform-parameters'],
}),
],
output: {
file: './devtools/lightning-inspect.es5.js',
format: 'umd',
name: 'lng'
}
};
},
]
23 changes: 0 additions & 23 deletions rollup.plugin.resolver.js

This file was deleted.

9 changes: 4 additions & 5 deletions src/animation/Transition.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ export default class Transition extends EventEmitter {
this._settings = settings;

this._element = element;
this._getter = Element.getGetter(property);
this._setter = Element.getSetter(property);

this._getter = element.constructor.getGetter(property);
this._setter = element.constructor.getSetter(property);

this._merger = settings.merger;

if (!this._merger) {
this._merger = Element.getMerger(property);
this._merger = element.constructor.getMerger(property);
}

this._startValue = this._getter(this._element);
Expand Down Expand Up @@ -199,5 +200,3 @@ export default class Transition extends EventEmitter {
}

Transition.prototype.isTransition = true;

import Element from "../tree/Element.mjs";
Loading