update 0.13.1
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.13.1
|
||||||
|
|
||||||
|
修复定制动画重载画布的编辑问题。
|
||||||
|
|
||||||
## 0.13.0
|
## 0.13.0
|
||||||
|
|
||||||
添加自定义动画,可以自由定制动画了。
|
添加自定义动画,可以自由定制动画了。
|
||||||
|
@@ -5,6 +5,8 @@ nav:
|
|||||||
title: change log
|
title: change log
|
||||||
order: 6
|
order: 6
|
||||||
---
|
---
|
||||||
|
## 0.13.1
|
||||||
|
Fixed editing problem of custom animation overloaded canvas.
|
||||||
## 0.13.0
|
## 0.13.0
|
||||||
Add custom animation, you can customize the animation freely.
|
Add custom animation, you can customize the animation freely.
|
||||||
## 0.12.4
|
## 0.12.4
|
||||||
@@ -34,7 +36,7 @@ Timeline adds auto focus function.
|
|||||||
## 0.11.7
|
## 0.11.7
|
||||||
Cancel the multi selection adsorption function.
|
Cancel the multi selection adsorption function.
|
||||||
## 0.11.6
|
## 0.11.6
|
||||||
Cancel the adsorption of the first mouse click.
|
Cancel the first mouse click.
|
||||||
Modify the selected color of timeline.
|
Modify the selected color of timeline.
|
||||||
## 0.11.5
|
## 0.11.5
|
||||||
Fix reference line adsorption and wrong displacement bug
|
Fix reference line adsorption and wrong displacement bug
|
||||||
@@ -95,13 +97,13 @@ The minimum value of canvas drag is changed to 0.
|
|||||||
## 0.7.7
|
## 0.7.7
|
||||||
Optimize the drag logic of the canvas to move more smoothly.
|
Optimize the drag logic of the canvas to move more smoothly.
|
||||||
## 0.7.6
|
## 0.7.6
|
||||||
The custom rightglobalcustom type on the right is changed to the function passed in config
|
The custom globalconfig function on the right is changed to the custom type
|
||||||
## 0.7.5
|
## 0.7.5
|
||||||
Change the roller direction.
|
Change the roller direction.
|
||||||
## 0.7.4
|
## 0.7.4
|
||||||
Fix box move bug.
|
Fix box move bug.
|
||||||
## 0.7.3
|
## 0.7.3
|
||||||
Pop up and fix the problem.
|
Fix pop-up location and selection issues.
|
||||||
## 0.7.2
|
## 0.7.2
|
||||||
Fix the impact of locking components. You can't drag, zoom or rotate during locking.
|
Fix the impact of locking components. You can't drag, zoom or rotate during locking.
|
||||||
## 0.7.1
|
## 0.7.1
|
||||||
|
@@ -5,6 +5,10 @@ nav:
|
|||||||
title: 变更日志
|
title: 变更日志
|
||||||
order: 6
|
order: 6
|
||||||
---
|
---
|
||||||
|
## 0.13.1
|
||||||
|
|
||||||
|
修复定制动画重载画布的编辑问题。
|
||||||
|
|
||||||
## 0.13.0
|
## 0.13.0
|
||||||
|
|
||||||
添加自定义动画,可以自由定制动画了。
|
添加自定义动画,可以自由定制动画了。
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-07-07 11:11:52
|
* @Date: 2021-07-07 11:11:52
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2022-01-13 15:42:40
|
* @LastEditTime: 2022-04-03 23:02:07
|
||||||
* @FilePath: \dooringx\packages\dooringx-example\.umirc.ts
|
* @FilePath: \dooringx\packages\dooringx-example\.umirc.ts
|
||||||
*/
|
*/
|
||||||
import { defineConfig } from 'umi';
|
import { defineConfig } from 'umi';
|
||||||
|
@@ -155,5 +155,5 @@ MIT
|
|||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|
||||||
重构动画
|
重构数据源
|
||||||
|
完善文档
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.13.0",
|
"version": "0.13.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/dooringx-lib.esm.js",
|
"module": "dist/dooringx-lib.esm.js",
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-02-25 21:16:58
|
* @Date: 2021-02-25 21:16:58
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2022-01-12 17:26:07
|
* @LastEditTime: 2022-04-04 20:17:55
|
||||||
* @FilePath: \dooringx\packages\dooringx-lib\src\config\index.tsx
|
* @FilePath: \dooringx\packages\dooringx-lib\src\config\index.tsx
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
@@ -451,9 +451,16 @@ export class UserConfig {
|
|||||||
return JSON.parse(json);
|
return JSON.parse(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 重设store并根据store重设
|
||||||
|
* @param {IStoreData[]} data
|
||||||
|
* @memberof UserConfig
|
||||||
|
*/
|
||||||
resetData(data: IStoreData[]) {
|
resetData(data: IStoreData[]) {
|
||||||
this.store.resetToInitData(data, true);
|
this.store.resetToInitData(data, true);
|
||||||
this.toRegist();
|
this.toRegist();
|
||||||
|
this.animateFactory.syncStoreToConfig(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
getWrapperMove() {
|
getWrapperMove() {
|
||||||
@@ -478,6 +485,9 @@ export class UserConfig {
|
|||||||
getStoreChanger() {
|
getStoreChanger() {
|
||||||
return this.storeChanger;
|
return this.storeChanger;
|
||||||
}
|
}
|
||||||
|
getAnimateFactory() {
|
||||||
|
return this.animateFactory;
|
||||||
|
}
|
||||||
getConfig() {
|
getConfig() {
|
||||||
return this.initConfig;
|
return this.initConfig;
|
||||||
}
|
}
|
||||||
|
@@ -163,6 +163,26 @@ export class AnimateFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 将store中的配置写入config
|
||||||
|
* 注意!只在导入新store后使用
|
||||||
|
* @memberof AnimateFactory
|
||||||
|
*/
|
||||||
|
syncStoreToConfig(config: UserConfig) {
|
||||||
|
const store = config.getStore();
|
||||||
|
let data: IStoreData;
|
||||||
|
const isEdit = config.getStoreChanger().isEdit();
|
||||||
|
if (isEdit) {
|
||||||
|
const origin = config.getStoreChanger().getOrigin()!;
|
||||||
|
data = origin.data[origin.current];
|
||||||
|
} else {
|
||||||
|
data = store.getData();
|
||||||
|
}
|
||||||
|
const dataAnimate = data.globalState?.customAnimate;
|
||||||
|
this.customAnimateName = [...dataAnimate];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* 将用户输入转换为新的动画
|
* 将用户输入转换为新的动画
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-03-14 05:35:15
|
* @Date: 2021-03-14 05:35:15
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2021-07-20 16:18:29
|
* @LastEditTime: 2022-04-04 20:13:58
|
||||||
* @FilePath: \dooringx\packages\dooringx-lib\src\hooks\index.ts
|
* @FilePath: \dooringx\packages\dooringx-lib\src\hooks\index.ts
|
||||||
*/
|
*/
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dooringx-plugin-template",
|
"name": "dooringx-plugin-template",
|
||||||
"version": "0.13.0",
|
"version": "0.13.1",
|
||||||
"description": "> TODO: description",
|
"description": "> TODO: description",
|
||||||
"author": "yehuozhili <673632758@qq.com>",
|
"author": "yehuozhili <673632758@qq.com>",
|
||||||
"homepage": "https://github.com/H5-Dooring/dooringx#readme",
|
"homepage": "https://github.com/H5-Dooring/dooringx#readme",
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
"@rollup/plugin-node-resolve": "^13.0.4",
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
||||||
"@rollup/plugin-url": "^6.1.0",
|
"@rollup/plugin-url": "^6.1.0",
|
||||||
"@svgr/rollup": "^5.5.0",
|
"@svgr/rollup": "^5.5.0",
|
||||||
"dooringx-lib": "^0.13.0",
|
"dooringx-lib": "^0.13.1",
|
||||||
"postcss": "^8.3.6",
|
"postcss": "^8.3.6",
|
||||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||||
"rollup-plugin-postcss": "^4.0.1",
|
"rollup-plugin-postcss": "^4.0.1",
|
||||||
|
Reference in New Issue
Block a user