@vivliostyle/core 2.16.0 → 2.17.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.
Files changed (34) hide show
  1. package/lib/vivliostyle/base.d.ts +5 -14
  2. package/lib/vivliostyle/break-position.d.ts +1 -10
  3. package/lib/vivliostyle/cfi.d.ts +4 -12
  4. package/lib/vivliostyle/columns.d.ts +0 -21
  5. package/lib/vivliostyle/css-cascade.d.ts +74 -372
  6. package/lib/vivliostyle/css-page.d.ts +3 -141
  7. package/lib/vivliostyle/css-parser.d.ts +0 -169
  8. package/lib/vivliostyle/css-prop.d.ts +0 -25
  9. package/lib/vivliostyle/css-styler.d.ts +4 -11
  10. package/lib/vivliostyle/css-tokenizer.d.ts +9 -3
  11. package/lib/vivliostyle/css-validator.d.ts +1 -186
  12. package/lib/vivliostyle/css.d.ts +28 -178
  13. package/lib/vivliostyle/diff.d.ts +2 -8
  14. package/lib/vivliostyle/epub.d.ts +1 -6
  15. package/lib/vivliostyle/exprs.d.ts +1 -225
  16. package/lib/vivliostyle/footnotes.d.ts +7 -30
  17. package/lib/vivliostyle/layout-processor.d.ts +8 -24
  18. package/lib/vivliostyle/layout-util.d.ts +0 -9
  19. package/lib/vivliostyle/layout.d.ts +4 -37
  20. package/lib/vivliostyle/net.d.ts +2 -8
  21. package/lib/vivliostyle/ops.d.ts +5 -52
  22. package/lib/vivliostyle/page-floats.d.ts +7 -21
  23. package/lib/vivliostyle/page-master.d.ts +3 -54
  24. package/lib/vivliostyle/pseudo-element.d.ts +3 -7
  25. package/lib/vivliostyle/repetitive-element.d.ts +9 -54
  26. package/lib/vivliostyle/table.d.ts +11 -92
  27. package/lib/vivliostyle/task.d.ts +16 -49
  28. package/lib/vivliostyle/toc.d.ts +1 -3
  29. package/lib/vivliostyle/types.d.ts +5 -4
  30. package/lib/vivliostyle/vgen.d.ts +14 -43
  31. package/lib/vivliostyle/vtree.d.ts +0 -4
  32. package/lib/vivliostyle.js +1 -1
  33. package/lib/vivliostyle.js.map +1 -1
  34. package/package.json +2 -2
@@ -67,10 +67,7 @@ export declare function getURLParam(name: string, opt_url?: string): string | nu
67
67
  * @return new url
68
68
  */
69
69
  export declare function setURLParam(url: string, name: string, value: string): string;
70
- /**
71
- * @return ?string
72
- */
73
- export declare function asString(v: any): any;
70
+ export declare function asString(v: any): string | null;
74
71
  export interface Comparable {
75
72
  /**
76
73
  * @return -1 when this less then other, 0 when this equals other
@@ -94,14 +91,10 @@ export declare class PriorityQueue {
94
91
  */
95
92
  remove(): Comparable;
96
93
  }
97
- /**
98
- * @param prefix Prefix (containing leading and trailing hyphens)
99
- * @param cssPropName CSS property name
100
- * @return JavaScript property name
101
- */
102
- export declare function cssToJSProp(prefix: string, cssPropName: string): string;
103
94
  export declare const knownPrefixes: string[];
104
- export declare const propNameMap: {};
95
+ export declare const propNameMap: {
96
+ [key: string]: string[];
97
+ };
105
98
  export declare function checkIfPropertySupported(prefix: string, prop: string): boolean;
106
99
  export declare function getPrefixedPropertyNames(prop: string): string[] | null;
107
100
  export declare function setCSSProperty(elem: Element, prop: string, value: string): void;
@@ -111,9 +104,7 @@ export declare class StringBuffer {
111
104
  list: string[];
112
105
  append(str: string): StringBuffer;
113
106
  clear(): void;
114
- /**
115
- * @override
116
- */
107
+ /** @override */
117
108
  toString(): string;
118
109
  }
119
110
  export declare function escapeChar(str: string): string;
@@ -10,9 +10,7 @@ export declare abstract class AbstractBreakPosition implements Layout.AbstractBr
10
10
  current: number;
11
11
  minimum: number;
12
12
  };
13
- /**
14
- * @override
15
- */
13
+ /** @override */
16
14
  breakPositionChosen(column: Layout.Column): void;
17
15
  getNodeContext(): Vtree.NodeContext;
18
16
  }
@@ -32,17 +30,10 @@ export declare class EdgeBreakPosition extends AbstractBreakPosition implements
32
30
  protected isEdgeUpdated: boolean;
33
31
  private edge;
34
32
  constructor(position: Vtree.NodeContext, breakOnEdge: string | null, overflows: boolean, computedBlockSize: number);
35
- /**
36
- * @override
37
- */
38
33
  findAcceptableBreak(column: Layout.Column, penalty: number): Vtree.NodeContext;
39
- /**
40
- * @override
41
- */
42
34
  getMinBreakPenalty(): number;
43
35
  private updateEdge;
44
36
  private updateOverflows;
45
- /** @override */
46
37
  getNodeContext(): Vtree.NodeContext;
47
38
  private isFirstContentOfRepetitiveElementsOwner;
48
39
  }
@@ -41,9 +41,7 @@ export interface Step {
41
41
  }
42
42
  export declare class RefStep implements Step {
43
43
  appendTo(sb: Base.StringBuffer): void;
44
- /**
45
- * @override
46
- */
44
+ /** @override */
47
45
  applyTo(pos: Position): boolean;
48
46
  }
49
47
  export declare class ChildStep implements Step {
@@ -51,13 +49,9 @@ export declare class ChildStep implements Step {
51
49
  readonly id: string | null;
52
50
  readonly sideBias: string | null;
53
51
  constructor(index: number, id: string | null, sideBias: string | null);
54
- /**
55
- * @override
56
- */
52
+ /** @override */
57
53
  appendTo(sb: Base.StringBuffer): void;
58
- /**
59
- * @override
60
- */
54
+ /** @override */
61
55
  applyTo(pos: Position): boolean;
62
56
  }
63
57
  export declare class OffsetStep implements Step {
@@ -67,9 +61,7 @@ export declare class OffsetStep implements Step {
67
61
  readonly sideBias: string | null;
68
62
  constructor(offset: number, textBefore: string | null, textAfter: string | null, sideBias: string | null);
69
63
  applyTo(pos: Position): boolean;
70
- /**
71
- * @override
72
- */
64
+ /** @override */
73
65
  appendTo(sb: Base.StringBuffer): void;
74
66
  }
75
67
  export declare class Fragment {
@@ -37,37 +37,16 @@ export declare class BalanceLastColumnBalancer extends ColumnBalancer {
37
37
  originalPosition: Vtree.LayoutPosition | null;
38
38
  foundUpperBound: boolean;
39
39
  constructor(columnGenerator: ColumnGenerator, regionPageFloatLayoutContext: any, layoutContainer: Vtree.Container, columnCount: number);
40
- /**
41
- * @override
42
- */
43
40
  preBalance(layoutResult: ColumnLayoutResult): void;
44
41
  private checkPosition;
45
- /**
46
- * @override
47
- */
48
42
  calculatePenalty(layoutResult: ColumnLayoutResult): number;
49
- /**
50
- * @override
51
- */
52
43
  hasNextCandidate(candidates: ColumnBalancingTrialResult[]): boolean;
53
- /**
54
- * @override
55
- */
56
44
  updateCondition(candidates: ColumnBalancingTrialResult[]): void;
57
45
  }
58
46
  export declare class BalanceNonLastColumnBalancer extends ColumnBalancer {
59
47
  constructor(columnGenerator: ColumnGenerator, regionPageFloatLayoutContext: any, layoutContainer: Vtree.Container);
60
- /**
61
- * @override
62
- */
63
48
  calculatePenalty(layoutResult: ColumnLayoutResult): number;
64
- /**
65
- * @override
66
- */
67
49
  hasNextCandidate(candidates: ColumnBalancingTrialResult[]): boolean;
68
- /**
69
- * @override
70
- */
71
50
  updateCondition(candidates: ColumnBalancingTrialResult[]): void;
72
51
  }
73
52
  export declare function createColumnBalancer(columnCount: number, columnFill: Css.Ident, columnGenerator: ColumnGenerator, regionPageFloatLayoutContext: PageFloats.PageFloatLayoutContext, layoutContainer: Vtree.Container, columns: Layout.Column[], flowPosition: Vtree.FlowPosition): ColumnBalancer | null;