oolong-engine 0.0.2-t.2 → 0.0.2-t.4

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.
@@ -32,3 +32,4 @@ export * from "./props/TextParagraphProps";
32
32
  export * from "./props/TextParagraphQuoteProps";
33
33
  export * from "./utils/GraphicUtils";
34
34
  export * from "./utils/ImageUtils";
35
+ export * from "./OolongSVGUtils";
package/dist/index.css CHANGED
@@ -1,83 +1 @@
1
-
2
- .canvas-container{
3
- /*position: absolute;*/
4
- /*left: 0;*/
5
- /*top: 0;*/
6
- /*width: 100%;*/
7
- /*height: 100%;*/
8
-
9
- .auxiliary-canvas{
10
- position: absolute;
11
- left: 0;
12
- top: 0;
13
- width: 100%;
14
- height: 100%;
15
- z-index: 2;
16
- pointer-events: none;
17
- }
18
-
19
- .content-canvas{
20
- position: absolute;
21
- left: 0;
22
- top: 0;
23
- width: 100%;
24
- height: 100%;
25
- z-index: 1;
26
- }
27
-
28
- .page-canvas{
29
- position: absolute;
30
- left: 0;
31
- top: 0;
32
- width: 100%;
33
- height: 100%;
34
- z-index: 0;
35
- }
36
-
37
- }
38
- .normal-container{
39
- width: 100%;
40
- height: 100%;
41
-
42
- .normal-canvas{
43
- width: 100%;
44
- height: 100%;
45
- }
46
- }
47
- .canvas-input{
48
- position: absolute;
49
- border:none;
50
- outline: none;
51
- user-select: none;
52
- width: 1px;
53
- z-index: 3;
54
- opacity: 0;
55
- pointer-events: none;
56
- }
57
-
58
- @keyframes van-cursor-flicker {
59
- from {
60
- opacity: 1;
61
- }
62
-
63
- 50% {
64
- opacity: 0;
65
- }
66
-
67
- 100% {
68
- opacity: 1;
69
- }
70
- }
71
-
72
- .render-input{
73
- position: absolute;
74
- background-color: #000000;
75
- width: 1px;
76
- height: 12px;
77
- z-index: 4;
78
- pointer-events: none;
79
-
80
- animation: 0.6s van-cursor-flicker infinite;
81
-
82
-
83
- }
1
+ .canvas-container .auxiliary-canvas{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2;pointer-events:none}.canvas-container .content-canvas{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1}.canvas-container .page-canvas{position:absolute;left:0;top:0;width:100%;height:100%;z-index:0}.normal-container,.normal-container .normal-canvas{width:100%;height:100%}.canvas-input{position:absolute;border:none;outline:none;-webkit-user-select:none;user-select:none;width:1px;z-index:3;opacity:0;pointer-events:none}@keyframes van-cursor-flicker{0%{opacity:1}50%{opacity:0}to{opacity:1}}.render-input{position:absolute;background-color:#000;width:1px;height:12px;z-index:4;pointer-events:none;animation:.6s van-cursor-flicker infinite}
@@ -9,6 +9,7 @@ export declare class ResourceManager {
9
9
  private svgBlobMap;
10
10
  instance: AbsResourceInstance;
11
11
  constructor();
12
+ reset(): void;
12
13
  loadResourceInstance(resourceInstance: AbsResourceInstance): void;
13
14
  private makeSvgBlobUrlKey;
14
15
  setSvgInfo(svgCode: string, resourceInfo: ISVGResourceInfo, width: number, height: number): void;
@@ -18,6 +18,7 @@ export declare class SelectManager {
18
18
  statusHandlers: AbsStatusHandler[];
19
19
  constructor(render: GMLRender, auxiliaryManager: AuxiliaryManager, cropManager: CropManager, docState: DocState);
20
20
  register(inputManager: InputManager): void;
21
+ reset(): void;
21
22
  refreshSelectStatus(): void;
22
23
  selectStatusContext(): SelectStatusContext;
23
24
  getSelectNodes(): GraphicNode[];
@@ -4,9 +4,11 @@ import { OolongSlideContainer } from "../graphics/OolongSlideContainer";
4
4
  export declare class SlideCoverManager {
5
5
  private slideSet;
6
6
  private slideContainerSet;
7
+ private working;
7
8
  appCtx: AppEventContext;
8
9
  init(appCtx: AppEventContext): void;
9
10
  start(): void;
11
+ stop(): void;
10
12
  updateSlideCover(node: GraphicNode): void;
11
13
  updateSlideContainerCover(node: OolongSlideContainer): void;
12
14
  private tickerRun;
@@ -9,6 +9,7 @@ export declare class SlideManager {
9
9
  constructor();
10
10
  init(appCtx: AppEventContext): void;
11
11
  start(): void;
12
+ stop(): void;
12
13
  enterEditing(ctx: AppEventContext): void;
13
14
  exitEditing(ctx: AppEventContext): void;
14
15
  jumpTo(docState: DocState, index: number): string | null;
@@ -3,7 +3,10 @@ export type SlotCallback = (param: any) => void;
3
3
  export declare class SlotManager {
4
4
  private slotMap;
5
5
  private slotCallBack;
6
+ private working;
6
7
  start(): void;
8
+ stop(): void;
9
+ reset(): void;
7
10
  addSlotState(type: SlotKeyType, state: any): void;
8
11
  registerSlotCallback(type: SlotKeyType, callback: SlotCallback): void;
9
12
  private tickerRun;
@@ -11,6 +11,7 @@ export declare class IdGenerator {
11
11
  */
12
12
  zIndex: number;
13
13
  setPrefix(prefix: string): void;
14
+ reset(): void;
14
15
  /**
15
16
  * a001:1
16
17
  * @param type
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oolong-engine",
3
3
  "private": false,
4
- "version": "0.0.2-t.2",
4
+ "version": "0.0.2-t.4",
5
5
  "main": "./dist/engine.umd.cjs",
6
6
  "module": "./dist/engine.js",
7
7
  "type": "module",