efront 4.35.0 → 4.35.2

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.
@@ -276,7 +276,9 @@ function solve(body, ox, dx) {
276
276
  if (cache.length && p <= cache[cache.length - 1]) {
277
277
  var p1 = p;
278
278
  var pt1 = pt;
279
+ var p2 = p;
279
280
  while (p1 <= cache[cache.length - 1]) {
281
+ p2 = p1;
280
282
  p1 = cache.pop();
281
283
  pt1 = cache.pop();
282
284
  bx = cache.pop();
@@ -285,7 +287,7 @@ function solve(body, ox, dx) {
285
287
  if (p === p1 && p > powermap[">>>"]) cache.push(bx, pt1, p1);
286
288
  continue;
287
289
  }
288
- var cx1 = make(body, bx, cx, p1 === p ? pt1 : null);
290
+ var cx1 = make(body, bx, cx, p === p2 ? pt1 : null);
289
291
  if (cx1 !== cx) {
290
292
  dx -= cx - cx1;
291
293
  cx = cx1;
@@ -321,7 +323,7 @@ function solve(body, ox, dx) {
321
323
  if (cache.length) {
322
324
  var bx = cache[0];
323
325
  var pt = cache[1];
324
- if (cx - bx >= 2) {
326
+ if (cx - bx >= 2 && cache[2] <= p) {
325
327
  cx = make(body, bx, cx, cache[1]);
326
328
  }
327
329
  }
@@ -82,4 +82,7 @@ tc("hwb(120 0 0)", "#0f0");
82
82
  tc("hwb(120turn 0 0)", "#f00");
83
83
  tc("calc(10 / 20)", "0.5");
84
84
  tc("calc(10 / 20)", "0.5");
85
+ tc("Math.log(f) / Math.LN2 / 10 | 0", "Math.log(f) * 0.14426950408889633 | 0");
86
+ tc("Math.log(f) / Math.LN2 / 10 * 10 | 0", "Math.log(f) * 1.4426950408889634 | 0");
87
+ tc("Math.log(f) / Math.LN2 / 10 ** 2 | 0", "Math.log(f) * 0.014426950408889633 | 0");
85
88
  // tf(path.join(__dirname, "../zimoli/spacechar_test.js"))
@@ -43,7 +43,7 @@
43
43
  <i18n-chooser></i18n-chooser>
44
44
  <script>
45
45
 
46
- var hosts = data.getItem("hosts");
46
+ var hosts = data.getInstance("hosts");
47
47
  if (!hosts.length) hosts.push({ key: location.host, name: location.host });
48
48
  function main(host) {
49
49
  var fields = refilm`
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "efront",
3
- "version": "4.35.0",
4
- "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
- "main": "./coms/efront",
6
- "directories": {
7
- "test": "test"
8
- },
9
- "bin": {
10
- "efront": "tools/run-efront.bat"
11
- },
12
- "scripts": {
13
- "prepack": "node tools/build-efront.js --node --no-target&node public/efront build 文件系统.html"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/yunxu1019/efront.git"
18
- },
19
- "keywords": [
20
- "efront"
21
- ],
22
- "author": "yunxu1019",
23
- "license": "MIT"
24
- }
1
+ {
2
+ "name": "efront",
3
+ "version": "4.35.2",
4
+ "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
+ "main": "public/efront.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "bin": {
10
+ "efront": "public/efront.js"
11
+ },
12
+ "scripts": {
13
+ "prepack": "node tools/build-efront.js --node --no-target&node public/efront build 文件系统.html"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/yunxu1019/efront.git"
18
+ },
19
+ "keywords": [
20
+ "efront"
21
+ ],
22
+ "author": "yunxu1019",
23
+ "license": "MIT"
24
+ }