@lynx-js/web-core 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: some inline style properties cause crash ([#647](https://github.com/lynx-family/lynx-stack/pull/647))
8
+
9
+ add support for the following css properties
10
+
11
+ - mask
12
+ - mask-repeat
13
+ - mask-position
14
+ - mask-clip
15
+ - mask-origin
16
+ - mask-size
17
+ - gap
18
+ - column-gap
19
+ - row-gap
20
+ - image-rendering
21
+ - hyphens
22
+ - offset-path
23
+ - offset-distance
24
+
25
+ - feat: support touch events for MTS ([#641](https://github.com/lynx-family/lynx-stack/pull/641))
26
+
27
+ now we support
28
+
29
+ - main-thread:bindtouchstart
30
+ - main-thread:bindtouchend
31
+ - main-thread:bindtouchmove
32
+ - main-thread:bindtouchcancel
33
+
34
+ - feat: add SystemInfo.screenWidth and SystemInfo.screenHeight ([#641](https://github.com/lynx-family/lynx-stack/pull/641))
35
+
36
+ - Updated dependencies [[`c9ccad6`](https://github.com/lynx-family/lynx-stack/commit/c9ccad6b574c98121149d3e9d4a9a7e97af63d91), [`9ad394e`](https://github.com/lynx-family/lynx-stack/commit/9ad394ea9ef28688a3b810b4051868b2a28eb7de), [`f4cfb70`](https://github.com/lynx-family/lynx-stack/commit/f4cfb70606d46cd4017254c326095432f9c6bcb8), [`c9ccad6`](https://github.com/lynx-family/lynx-stack/commit/c9ccad6b574c98121149d3e9d4a9a7e97af63d91), [`839d61c`](https://github.com/lynx-family/lynx-stack/commit/839d61c8a329ed1e265fe2edc12a702e9592f743)]:
37
+ - @lynx-js/offscreen-document@0.0.2
38
+ - @lynx-js/web-mainthread-apis@0.13.1
39
+ - @lynx-js/web-worker-runtime@0.13.1
40
+ - @lynx-js/web-constants@0.13.1
41
+ - @lynx-js/web-worker-rpc@0.13.1
42
+
3
43
  ## 0.13.0
4
44
 
5
45
  ### Patch Changes
@@ -2,6 +2,9 @@
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
4
  import { startUIThread, } from '../uiThread/startUIThread.js';
5
+ const pixelRatio = window.devicePixelRatio;
6
+ const screenWidth = window.screen.availWidth * pixelRatio;
7
+ const screenHeight = window.screen.availHeight * pixelRatio;
5
8
  export function createLynxView(configs) {
6
9
  const { shadowRoot, callbacks, templateUrl, globalProps, initData, nativeModulesMap, napiModulesMap, tagMap, lynxGroupId, threadStrategy = 'multi-thread', } = configs;
7
10
  return startUIThread(templateUrl, {
@@ -12,6 +15,8 @@ export function createLynxView(configs) {
12
15
  napiModulesMap,
13
16
  browserConfig: {
14
17
  pixelRatio: window.devicePixelRatio,
18
+ pixelWidth: screenWidth,
19
+ pixelHeight: screenHeight,
15
20
  },
16
21
  }, shadowRoot, lynxGroupId, threadStrategy, callbacks);
17
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -24,15 +24,15 @@
24
24
  "**/*.css"
25
25
  ],
26
26
  "dependencies": {
27
- "@lynx-js/offscreen-document": "0.0.1",
28
- "@lynx-js/web-constants": "0.13.0",
29
- "@lynx-js/web-mainthread-apis": "0.13.0",
30
- "@lynx-js/web-worker-rpc": "0.13.0",
31
- "@lynx-js/web-worker-runtime": "0.13.0"
27
+ "@lynx-js/offscreen-document": "0.0.2",
28
+ "@lynx-js/web-constants": "0.13.1",
29
+ "@lynx-js/web-mainthread-apis": "0.13.1",
30
+ "@lynx-js/web-worker-rpc": "0.13.1",
31
+ "@lynx-js/web-worker-runtime": "0.13.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.2",
35
- "@lynx-js/web-elements": "0.7.0"
35
+ "@lynx-js/web-elements": "0.7.1"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@lynx-js/lynx-core": "0.1.2",