@univerjs/slides 0.5.3 → 0.5.4-nightly.202501131606

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 (3) hide show
  1. package/lib/es/index.js +49 -49
  2. package/package.json +5 -5
  3. package/LICENSE +0 -176
package/lib/es/index.js CHANGED
@@ -2,8 +2,8 @@ var be = Object.defineProperty;
2
2
  var Te = (n, e, r) => e in n ? be(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r;
3
3
  var h = (n, e, r) => Te(n, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { Plugin as Oe, merge as ye, UniverInstanceType as De, Inject as H, Injector as q, IConfigService as _e, Registry as me, LocaleService as ne, PageElementType as Y, DocumentDataModel as je, getColorStyle as J, BasicShapes as he, sortRules as Ee, SlideDataModel as Me, IContextService as Ve, Styles as Xe, Worksheet as ze } from "@univerjs/core";
5
- import { IRenderingEngine as Ae, IRenderManagerService as Re, Liquid as Le, DocumentViewModel as Ne, DocumentSkeleton as He, Documents as We, SceneViewer as we, Scene as se, Viewport as $, ScrollBar as ve, Image as Se, PageLayoutType as pe, RichText as Ce, Rect as B, Slide as $e, SpreadsheetSkeleton as Ye, Spreadsheet as Fe, SpreadsheetRowHeader as Ke, SpreadsheetColumnHeader as ke, getColor as ge } from "@univerjs/engine-render";
6
- const Be = "slides.config", ue = {};
5
+ import { IRenderingEngine as Ae, IRenderManagerService as Re, Liquid as Le, DocumentViewModel as Ne, DocumentSkeleton as He, Documents as We, SceneViewer as we, Scene as se, Viewport as $, ScrollBar as ve, Image as Se, PageLayoutType as pe, RichText as Ce, Rect as B, Slide as $e, SpreadsheetSkeleton as Ye, Spreadsheet as Fe, SpreadsheetRowHeader as Ke, SpreadsheetColumnHeader as ke, getColor as ue } from "@univerjs/engine-render";
6
+ const Be = "slides.config", ge = {};
7
7
  var qe = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Ge = (n, e, r, i) => {
8
8
  for (var t = i > 1 ? void 0 : i ? Ue(e, r) : e, a = n.length - 1, s; a >= 0; a--)
9
9
  (s = n[a]) && (t = (i ? s(e, r, t) : s(t)) || t);
@@ -13,13 +13,13 @@ const Ze = "slides";
13
13
  var k;
14
14
  let fe = (k = class extends Oe {
15
15
  // private _canvasView: CanvasView | null = null;
16
- constructor(e = ue, r, i, t) {
16
+ constructor(e = ge, r, i, t) {
17
17
  super();
18
18
  h(this, "_canvasEngine", null);
19
19
  this._config = e, this._injector = r, this._renderManagerService = i, this._configService = t;
20
20
  const { ...a } = ye(
21
21
  {},
22
- ue,
22
+ ge,
23
23
  this._config
24
24
  );
25
25
  this._configService.setConfig(Be, a), this._initializeDependencies(this._injector);
@@ -97,11 +97,11 @@ let Q = class extends F {
97
97
  height: c,
98
98
  angle: w,
99
99
  scaleX: v,
100
- scaleY: g,
100
+ scaleY: u,
101
101
  skewX: l,
102
102
  skewY: d,
103
103
  flipX: _,
104
- flipY: u,
104
+ flipY: g,
105
105
  title: D,
106
106
  description: M,
107
107
  document: b
@@ -118,11 +118,11 @@ let Q = class extends F {
118
118
  zIndex: t,
119
119
  angle: w,
120
120
  scaleX: v,
121
- scaleY: g,
121
+ scaleY: u,
122
122
  skewX: l,
123
123
  skewY: d,
124
124
  flipX: _,
125
- flipY: u
125
+ flipY: g
126
126
  }), f = new se("__DocsScene__" + i, T), x = new $("__DocsViewPort_" + i, f, {
127
127
  left: 0,
128
128
  top: 0,
@@ -197,8 +197,8 @@ let Q = class extends F {
197
197
  return;
198
198
  let a = 0, s = 0;
199
199
  for (let c = 0, w = t.length; c < w; c++) {
200
- const v = t[c], { pageWidth: g, pageHeight: l } = v;
201
- e.pageLayoutType === pe.VERTICAL ? (s += l, s += e.pageMarginTop, c === w - 1 && (s += e.pageMarginTop), a = Math.max(a, g)) : e.pageLayoutType === pe.HORIZONTAL && (a += g, c !== w - 1 && (a += e.pageMarginLeft), s = Math.max(s, l));
200
+ const v = t[c], { pageWidth: u, pageHeight: l } = v;
201
+ e.pageLayoutType === pe.VERTICAL ? (s += l, s += e.pageMarginTop, c === w - 1 && (s += e.pageMarginTop), a = Math.max(a, u)) : e.pageLayoutType === pe.HORIZONTAL && (a += u, c !== w - 1 && (a += e.pageMarginLeft), s = Math.max(s, l));
202
202
  }
203
203
  e.resize(a, s), r.resize(a, s);
204
204
  }
@@ -206,9 +206,9 @@ let Q = class extends F {
206
206
  const a = r == null ? void 0 : r.getParent(), { width: s, height: o, pageMarginLeft: c, pageMarginTop: w } = e;
207
207
  if (a == null || s === Number.POSITIVE_INFINITY || o === Number.POSITIVE_INFINITY)
208
208
  return;
209
- const { width: v, height: g } = a;
210
- let l = 0, d = 0, _ = 0, u = 0, D = Number.POSITIVE_INFINITY;
211
- if (v > (s + c * 2) * t ? (l = v / 2 - s * t / 2, l /= t, _ = (v - c * 2) / t, D = 0) : (l = c, _ = s + c * 2, D = (_ - v / t) / 2), g > o ? (d = g / 2 - o / 2, u = (g - w * 2) / t) : (d = w, u = o + w * 2), r.resize(_, u + 200), e.translate(l, d), D !== Number.POSITIVE_INFINITY && i != null) {
209
+ const { width: v, height: u } = a;
210
+ let l = 0, d = 0, _ = 0, g = 0, D = Number.POSITIVE_INFINITY;
211
+ if (v > (s + c * 2) * t ? (l = v / 2 - s * t / 2, l /= t, _ = (v - c * 2) / t, D = 0) : (l = c, _ = s + c * 2, D = (_ - v / t) / 2), u > o ? (d = u / 2 - o / 2, g = (u - w * 2) / t) : (d = w, g = o + w * 2), r.resize(_, g + 200), e.translate(l, d), D !== Number.POSITIVE_INFINITY && i != null) {
212
212
  const M = i.transScroll2ViewportScrollValue(D, 0).x;
213
213
  i.scrollToBarPos({
214
214
  x: M
@@ -249,11 +249,11 @@ class it extends F {
249
249
  height: c,
250
250
  angle: w,
251
251
  scaleX: v,
252
- scaleY: g,
252
+ scaleY: u,
253
253
  skewX: l,
254
254
  skewY: d,
255
255
  flipX: _,
256
- flipY: u,
256
+ flipY: g,
257
257
  title: D,
258
258
  description: M,
259
259
  image: b = {}
@@ -267,11 +267,11 @@ class it extends F {
267
267
  zIndex: t,
268
268
  angle: w,
269
269
  scaleX: v,
270
- scaleY: g,
270
+ scaleY: u,
271
271
  skewX: l,
272
272
  skewY: d,
273
273
  flipX: _,
274
- flipY: u,
274
+ flipY: g,
275
275
  forceRender: !0
276
276
  });
277
277
  }
@@ -311,11 +311,11 @@ let ee = class extends F {
311
311
  height: c,
312
312
  angle: w,
313
313
  scaleX: v,
314
- scaleY: g,
314
+ scaleY: u,
315
315
  skewX: l,
316
316
  skewY: d,
317
317
  flipX: _,
318
- flipY: u,
318
+ flipY: g,
319
319
  title: D,
320
320
  description: M,
321
321
  richText: b = {}
@@ -328,11 +328,11 @@ let ee = class extends F {
328
328
  zIndex: t,
329
329
  angle: w,
330
330
  scaleX: v,
331
- scaleY: g,
331
+ scaleY: u,
332
332
  skewX: l,
333
333
  skewY: d,
334
334
  flipX: _,
335
- flipY: u,
335
+ flipY: g,
336
336
  forceRender: !0
337
337
  }, R = !1;
338
338
  if (P != null ? (m = { ...m, text: P, ff: p, fs: S, it: I, bl: T, ul: f, st: x, ol: O, bg: X, bd: A, cl: L }, R = !0) : N != null && (m = { ...m, richText: N }, R = !0), R !== !1)
@@ -371,11 +371,11 @@ class dt extends F {
371
371
  height: c,
372
372
  angle: w,
373
373
  scaleX: v,
374
- scaleY: g,
374
+ scaleY: u,
375
375
  skewX: l,
376
376
  skewY: d,
377
377
  flipX: _,
378
- flipY: u,
378
+ flipY: g,
379
379
  title: D,
380
380
  description: M
381
381
  } = r, { shapeType: b, text: P, shapeProperties: p, placeholder: S, link: I } = r.shape || {}, T = p == null ? "" : J(p.shapeBackgroundFill) || "rgba(255,255,255,1)", f = p == null ? void 0 : p.outline, x = {};
@@ -393,11 +393,11 @@ class dt extends F {
393
393
  zIndex: t,
394
394
  angle: w,
395
395
  scaleX: v,
396
- scaleY: g,
396
+ scaleY: u,
397
397
  skewX: l,
398
398
  skewY: d,
399
399
  flipX: _,
400
- flipY: u,
400
+ flipY: g,
401
401
  forceRender: !0,
402
402
  ...x
403
403
  });
@@ -412,11 +412,11 @@ class dt extends F {
412
412
  zIndex: t,
413
413
  angle: w,
414
414
  scaleX: v,
415
- scaleY: g,
415
+ scaleY: u,
416
416
  skewX: l,
417
417
  skewY: d,
418
418
  flipX: _,
419
- flipY: u,
419
+ flipY: g,
420
420
  forceRender: !0,
421
421
  radius: O,
422
422
  ...x
@@ -433,8 +433,8 @@ class ht {
433
433
  }
434
434
  }
435
435
  W.add(new ht());
436
- var pt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, ut = (n, e, r, i) => {
437
- for (var t = i > 1 ? void 0 : i ? gt(e, r) : e, a = n.length - 1, s; a >= 0; a--)
436
+ var pt = Object.defineProperty, ut = Object.getOwnPropertyDescriptor, gt = (n, e, r, i) => {
437
+ for (var t = i > 1 ? void 0 : i ? ut(e, r) : e, a = n.length - 1, s; a >= 0; a--)
438
438
  (s = n[a]) && (t = (i ? s(e, r, t) : s(t)) || t);
439
439
  return i && t && pt(e, r, t), t;
440
440
  }, ft = (n, e) => (r, i) => e(r, i, n);
@@ -468,7 +468,7 @@ let te = class {
468
468
  });
469
469
  }
470
470
  };
471
- te = ut([
471
+ te = gt([
472
472
  ft(0, H(q))
473
473
  ], te);
474
474
  var _t = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, vt = (n, e, r, i) => {
@@ -498,11 +498,11 @@ let re = class extends F {
498
498
  height: c,
499
499
  angle: w,
500
500
  scaleX: v,
501
- scaleY: g,
501
+ scaleY: u,
502
502
  skewX: l,
503
503
  skewY: d,
504
504
  flipX: _,
505
- flipY: u,
505
+ flipY: g,
506
506
  title: D,
507
507
  description: M,
508
508
  slide: b
@@ -517,11 +517,11 @@ let re = class extends F {
517
517
  zIndex: t,
518
518
  angle: w,
519
519
  scaleX: v,
520
- scaleY: g,
520
+ scaleY: u,
521
521
  skewX: l,
522
522
  skewY: d,
523
523
  flipX: _,
524
- flipY: u,
524
+ flipY: g,
525
525
  forceRender: !0
526
526
  });
527
527
  p.enableNav(), p.enableSelectedClipElement();
@@ -549,8 +549,8 @@ let re = class extends F {
549
549
  explicitViewportWidthSet: !1,
550
550
  explicitViewportHeightSet: !1
551
551
  }).closeClip();
552
- const { pageElements: v, pageBackgroundFill: g } = i, l = (d = this._ObjectProvider) == null ? void 0 : d.convertToRenderObjects(v, t);
553
- return this._addBackgroundRect(c, g, a), c.addObjects(l), l == null || l.forEach((_) => {
552
+ const { pageElements: v, pageBackgroundFill: u } = i, l = (d = this._ObjectProvider) == null ? void 0 : d.convertToRenderObjects(v, t);
553
+ return this._addBackgroundRect(c, u, a), c.addObjects(l), l == null || l.forEach((_) => {
554
554
  c.attachTransformerTo(_);
555
555
  }), c;
556
556
  }
@@ -607,11 +607,11 @@ let ie = class extends F {
607
607
  height: c,
608
608
  angle: w,
609
609
  scaleX: v,
610
- scaleY: g,
610
+ scaleY: u,
611
611
  skewX: l,
612
612
  skewY: d,
613
613
  flipX: _,
614
- flipY: u,
614
+ flipY: g,
615
615
  spreadsheet: D
616
616
  } = e;
617
617
  if (D == null)
@@ -632,11 +632,11 @@ let ie = class extends F {
632
632
  zIndex: t,
633
633
  angle: w,
634
634
  scaleX: v,
635
- scaleY: g,
635
+ scaleY: u,
636
636
  skewX: l,
637
637
  skewY: d,
638
638
  flipX: _,
639
- flipY: u,
639
+ flipY: g,
640
640
  forceRender: !0
641
641
  }), A = new se("spreadInSlideScene" + i, X, {
642
642
  width: x,
@@ -649,8 +649,8 @@ let ie = class extends F {
649
649
  top: -1,
650
650
  width: T,
651
651
  height: f,
652
- fill: ge([248, 249, 250]),
653
- stroke: ge([217, 217, 217]),
652
+ fill: ue([248, 249, 250]),
653
+ stroke: ue([217, 217, 217]),
654
654
  strokeWidth: 1
655
655
  });
656
656
  return L.zIndex = 10, A.addObjects([L], 1), A.addObjects([N, m, R], 2), X;
@@ -688,23 +688,23 @@ let ie = class extends F {
688
688
  width: s,
689
689
  height: o,
690
690
  isWheelPreventDefaultX: !0
691
- }), c.onScrollAfter$.subscribeEvent((g) => {
692
- const { scrollX: l, scrollY: d, viewportScrollX: _, viewportScrollY: u } = g;
691
+ }), c.onScrollAfter$.subscribeEvent((u) => {
692
+ const { scrollX: l, scrollY: d, viewportScrollX: _, viewportScrollY: g } = u;
693
693
  w.updateScrollVal({
694
694
  scrollX: l,
695
695
  viewportScrollX: _
696
696
  }), v.updateScrollVal({
697
697
  scrollY: d,
698
- viewportScrollY: u
698
+ viewportScrollY: g
699
699
  });
700
700
  }), t.attachControl(), new ve(c, {
701
701
  mainScene: a
702
- }), t.onMouseWheel$.subscribeEvent((g, l) => {
703
- const d = g;
702
+ }), t.onMouseWheel$.subscribeEvent((u, l) => {
703
+ const d = u;
704
704
  if (d.ctrlKey) {
705
705
  const _ = Math.abs(d.deltaX);
706
- let u = _ < 40 ? 0.05 : _ < 80 ? 0.02 : 0.01;
707
- u *= d.deltaY > 0 ? -1 : 1, t.scaleX < 1 && (u /= 2), t.scaleX + u > 4 ? t.scale(4, 4) : t.scaleX + u < 0.1 ? t.scale(0.1, 0.1) : (t.scaleBy(u, u), d.preventDefault());
706
+ let g = _ < 40 ? 0.05 : _ < 80 ? 0.02 : 0.01;
707
+ g *= d.deltaY > 0 ? -1 : 1, t.scaleX < 1 && (g /= 2), t.scaleX + g > 4 ? t.scale(4, 4) : t.scaleX + g < 0.1 ? t.scale(0.1, 0.1) : (t.scaleBy(g, g), d.preventDefault());
708
708
  } else
709
709
  c.onMouseWheel(d, l);
710
710
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/slides",
3
- "version": "0.5.3",
3
+ "version": "0.5.4-nightly.202501131606",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,14 +45,14 @@
45
45
  "lib"
46
46
  ],
47
47
  "dependencies": {
48
- "@univerjs/core": "0.5.3",
49
- "@univerjs/engine-render": "0.5.3"
48
+ "@univerjs/engine-render": "0.5.4-nightly.202501131606",
49
+ "@univerjs/core": "0.5.4-nightly.202501131606"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "^5.7.2",
53
- "vite": "^6.0.6",
53
+ "vite": "^6.0.7",
54
54
  "vitest": "^2.1.8",
55
- "@univerjs-infra/shared": "0.5.3"
55
+ "@univerjs-infra/shared": "0.5.4"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run",
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS