@galacean/effects-core 1.4.3 → 1.4.5-alpha.0

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.
@@ -4,6 +4,7 @@ export * from './device';
4
4
  export * from './image-data';
5
5
  export * from './sortable';
6
6
  export * from './asserts';
7
+ export * from './text';
7
8
  export * from './timeline-component';
8
9
  export * from './logger';
9
10
  export type Immutable<O> = O extends Record<any, any> ? {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 判断是否为可解析的字体
3
+ * - 首字母不能为数字或 `.`
4
+ * - 不能包含特殊字符,`_-` 是被允许的
5
+ * @param fontFamily - 字体名称
6
+ * @returns
7
+ */
8
+ export declare function isValidFontFamily(fontFamily: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "1.4.3",
3
+ "version": "1.4.5-alpha.0",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "registry": "https://registry.npmjs.org"
43
43
  },
44
44
  "dependencies": {
45
- "@galacean/effects-specification": "1.2.0",
45
+ "@galacean/effects-specification": "1.3.0-alpha.0",
46
46
  "@galacean/effects-math": "1.0.1"
47
47
  },
48
48
  "scripts": {