Skip to content

Commit 4fd3222

Browse files
authored
Release v2.2.1 (#1008)
1 parent af51fa8 commit 4fd3222

35 files changed

+80
-74
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
12-11-2018 (v2.2.1)
2+
* utils - fix breakText() definition in Typescript
3+
* dia.CellView - findAttribute() docs
4+
* grunt - wrapper files use file extension .js.partial
5+
* demos - improvements
6+
17
30-10-2018 (v2.2.0)
28
* update insecure dependencies (mainly Lodash v4.17.11)
39
* use Karma+Istanbul to run tests

dist/geometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.2.0 (2018-10-30) - JavaScript diagramming library
1+
/*! JointJS v2.2.1 (2018-11-12) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/geometry.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.2.0 (2018-10-30) - JavaScript diagramming library
1+
/*! JointJS v2.2.1 (2018-11-12) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -7793,7 +7793,7 @@ V = Vectorizer = (function() {
77937793

77947794
var joint = {
77957795

7796-
version: '2.2.0',
7796+
version: '2.2.1',
77977797

77987798
config: {
77997799
// The class name prefix config is for advanced use only.
@@ -23755,7 +23755,7 @@ joint.highlighters.stroke = {
2375523755
ry: 0,
2375623756
attrs: {
2375723757
'stroke-width': 3,
23758-
stroke: '#FEB663'
23758+
'stroke': '#FEB663'
2375923759
}
2376023760
},
2376123761

@@ -23803,7 +23803,7 @@ joint.highlighters.stroke = {
2380323803
}
2380423804

2380523805
var highlightVel = V('path').attr({
23806-
d: pathData,
23806+
'd': pathData,
2380723807
'pointer-events': 'none',
2380823808
'vector-effect': 'non-scaling-stroke',
2380923809
'fill': 'none'

dist/joint.core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.d.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.2.0 (2018-10-30) - JavaScript diagramming library
1+
/*! JointJS v2.2.1 (2018-11-12) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -227,24 +227,24 @@ export namespace g {
227227

228228
bbox(): Rect;
229229

230-
clone(): Ellipse;
231-
232-
normalizedDistance(point: PlainPoint): number;
230+
center(): Point;
233231

234-
inflate(dx?: number, dy?: number): this;
232+
clone(): Ellipse;
235233

236234
containsPoint(p: PlainPoint): boolean;
237235

238-
center(): Point;
239-
240-
tangentTheta(p: PlainPoint): number;
241-
242236
equals(ellipse: Ellipse): boolean;
243237

238+
inflate(dx?: number, dy?: number): this;
239+
244240
intersectionWithLine(l: Line): Point[] | null;
245241

246242
intersectionWithLineFromCenterToPoint(p: PlainPoint, angle?: number): Point;
247243

244+
normalizedDistance(point: PlainPoint): number;
245+
246+
tangentTheta(p: PlainPoint): number;
247+
248248
toString(): string;
249249

250250
static fromRect(rect: PlainRect): Ellipse;
@@ -430,18 +430,22 @@ export namespace g {
430430

431431
adhereToRect(r: Rect): this;
432432

433+
angleBetween(p1: PlainPoint, p2: PlainPoint) : number;
434+
433435
bearing(p: Point): CardinalDirection;
434436

435437
changeInAngle(dx: number, dy: number, ref: PlainPoint | string): number;
436438

437439
clone(): Point;
438440

441+
cross(p1: PlainPoint, p2: PlainPoint) : number;
442+
439443
difference(dx?: number, dy?: number): Point;
440444
difference(p: PlainPoint): Point;
441445

442446
distance(p: PlainPoint | string): number;
443447

444-
squaredDistance(p: PlainPoint | string): number;
448+
dot(p: PlainPoint): number;
445449

446450
equals(p: Point): boolean;
447451

@@ -468,26 +472,22 @@ export namespace g {
468472

469473
snapToGrid(gx: number, gy?: number): this;
470474

471-
theta(p: PlainPoint | string): number;
472-
473-
translate(tx?: number, ty?: number): this;
474-
translate(tx: PlainPoint): this;
475-
476-
angleBetween(p1: PlainPoint, p2: PlainPoint) : number;
475+
squaredDistance(p: PlainPoint | string): number;
477476

478-
vectorAngle(p: PlainPoint) : number;
477+
theta(p: PlainPoint | string): number;
479478

480479
toJSON(): PlainPoint;
481480

482481
toPolar(origin?: PlainPoint | string): this;
483482

484483
toString(): string;
485484

486-
update(x?: number, y?: number): this;
485+
translate(tx?: number, ty?: number): this;
486+
translate(tx: PlainPoint): this;
487487

488-
dot(p: PlainPoint): number;
488+
update(x?: number, y?: number): this;
489489

490-
cross(p1: PlainPoint, p2: PlainPoint) : number;
490+
vectorAngle(p: PlainPoint) : number;
491491

492492
static fromPolar(distance: number, angle: number, origin?: PlainPoint | string): Point;
493493

@@ -579,6 +579,8 @@ export namespace g {
579579

580580
equals(r: PlainRect): boolean;
581581

582+
inflate(dx?: number, dy?: number): this;
583+
582584
intersect(r: Rect): Rect | null;
583585

584586
intersectionWithLine(l: Line): Point[] | null;
@@ -589,15 +591,17 @@ export namespace g {
589591

590592
leftMiddle(): Point;
591593

592-
moveAndExpand(r: PlainRect): this;
594+
maxRectScaleToFit(rect: PlainRect, origin?: PlainPoint): Scale;
593595

594-
offset(dx?: number, dy?: number): this;
595-
offset(p: PlainPoint): this;
596+
maxRectUniformScaleToFit(rect: PlainRect, origin?: PlainPoint): number;
596597

597-
inflate(dx?: number, dy?: number): this;
598+
moveAndExpand(r: PlainRect): this;
598599

599600
normalize(): this;
600601

602+
offset(dx?: number, dy?: number): this;
603+
offset(p: PlainPoint): this;
604+
601605
origin(): Point;
602606

603607
pointNearestToPoint(point: PlainPoint | string): Point;
@@ -610,10 +614,6 @@ export namespace g {
610614

611615
scale(sx: number, sy: number, origin?: PlainPoint | string): this;
612616

613-
maxRectScaleToFit(rect: PlainRect, origin?: PlainPoint): Scale;
614-
615-
maxRectUniformScaleToFit(rect: PlainRect, origin?: PlainPoint): number;
616-
617617
sideNearestToPoint(point: PlainPoint | string): RectangleSide;
618618

619619
snapToGrid(gx: number, gy?: number): this;
@@ -3001,7 +3001,7 @@ export namespace util {
30013001

30023002
export function parseCssNumeric(val: any, restrictUnits: string | string[]): { value: number; unit?: string } | null;
30033003

3004-
export function breakText(text: string, size: dia.Size, attrs?: attributes.NativeSVGAttributes, opt?: {
3004+
export function breakText(text: string, size: { width: number; height?: number; }, attrs?: attributes.NativeSVGAttributes, opt?: {
30053005
svgDocument?: SVGElement;
30063006
separator?: string | any;
30073007
eol?: string;

dist/joint.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.2.0 (2018-10-30) - JavaScript diagramming library
1+
/*! JointJS v2.2.1 (2018-11-12) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -7793,7 +7793,7 @@ V = Vectorizer = (function() {
77937793

77947794
var joint = {
77957795

7796-
version: '2.2.0',
7796+
version: '2.2.1',
77977797

77987798
config: {
77997799
// The class name prefix config is for advanced use only.
@@ -23755,7 +23755,7 @@ joint.highlighters.stroke = {
2375523755
ry: 0,
2375623756
attrs: {
2375723757
'stroke-width': 3,
23758-
stroke: '#FEB663'
23758+
'stroke': '#FEB663'
2375923759
}
2376023760
},
2376123761

@@ -23803,7 +23803,7 @@ joint.highlighters.stroke = {
2380323803
}
2380423804

2380523805
var highlightVel = V('path').attr({
23806-
d: pathData,
23806+
'd': pathData,
2380723807
'pointer-events': 'none',
2380823808
'vector-effect': 'non-scaling-stroke',
2380923809
'fill': 'none'

0 commit comments

Comments
 (0)