@cloudbase/cals 1.0.3-alpha.15 → 1.0.3-alpha.17
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/lib/parser/.DS_Store +0 -0
- package/lib/parser/cals/index.d.ts +2 -1
- package/lib/parser/cals/index.d.ts.map +1 -1
- package/lib/parser/cals/index.js +25 -12
- package/lib/parser/cals/utils/block/index.d.ts.map +1 -1
- package/lib/parser/cals/utils/block/index.js +7 -3
- package/lib/parser/cals/utils/code/index.d.ts.map +1 -1
- package/lib/parser/cals/utils/code/index.js +18 -12
- package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
- package/lib/parser/cals/utils/runtime.js +5 -2
- package/lib/parser/cals/utils/style.d.ts.map +1 -1
- package/lib/parser/cals/utils/style.js +7 -3
- package/lib/parser/cals/utils/version/common.d.ts.map +1 -1
- package/lib/parser/cals/utils/version/common.js +16 -33
- package/lib/parser/cals/utils/version/parses.d.ts.map +1 -1
- package/lib/parser/cals/utils/version/parses.js +18 -36
- package/lib/parser/cals/utils/version/utils.js +5 -2
- package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +14 -1
- package/lib/types/lcds.d.ts +324 -211
- package/lib/types/lcds.d.ts.map +1 -1
- package/lib/utils/build.js +3 -3
- package/lib/utils/dts/auto-generated.d.ts +1 -1
- package/lib/utils/dts/auto-generated.d.ts.map +1 -1
- package/lib/utils/dts/auto-generated.js +1227 -35
- package/lib/utils/dts/index.d.ts +41 -4
- package/lib/utils/dts/index.d.ts.map +1 -1
- package/lib/utils/dts/index.js +384 -66
- package/lib/utils/version/migrations/version4.js +2 -2
- package/package.json +2 -1
|
@@ -50,11 +50,11 @@ function Plugin(opt) {
|
|
|
50
50
|
return str;
|
|
51
51
|
if (num1 == '0')
|
|
52
52
|
return '0';
|
|
53
|
-
const v = +num1 / zoom;
|
|
53
|
+
const v = +num1 / (zoom || 1);
|
|
54
54
|
if (isNaN(v)) {
|
|
55
55
|
return str;
|
|
56
56
|
}
|
|
57
|
-
const value = Number.isInteger(v) ? v.toString() : toFixed(v, precision);
|
|
57
|
+
const value = Number.isInteger(v) ? v.toString() : toFixed(v, precision || 0);
|
|
58
58
|
return `calc(${value}${outUnit}/${rootValue})`;
|
|
59
59
|
});
|
|
60
60
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export * from './platform/common';
|
|
|
7
7
|
export * from './platform/component';
|
|
8
8
|
export * from './platform/datasource';
|
|
9
9
|
export { IDataSourceQuery } from './platform/query';
|
|
10
|
-
export * from './lcds';
|
|
10
|
+
export * as LCDS from './lcds';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC"}
|
package/lib/types/index.js
CHANGED
|
@@ -10,10 +10,23 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
13
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
20
|
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
16
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.LCDS = void 0;
|
|
17
30
|
// basic
|
|
18
31
|
__exportStar(require("./basic/app"), exports);
|
|
19
32
|
__exportStar(require("./basic/common"), exports);
|
|
@@ -25,4 +38,4 @@ __exportStar(require("./platform/common"), exports);
|
|
|
25
38
|
__exportStar(require("./platform/component"), exports);
|
|
26
39
|
__exportStar(require("./platform/datasource"), exports);
|
|
27
40
|
// lcds
|
|
28
|
-
|
|
41
|
+
exports.LCDS = __importStar(require("./lcds"));
|