@digipair/skill-canvas 0.25.4 → 0.25.6

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.
package/index.cjs.js CHANGED
@@ -23513,14 +23513,14 @@ function indent(str, spaces) {
23513
23513
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23514
23514
  // match is required
23515
23515
  if (!match) {
23516
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23516
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23517
23517
  v: nextMatch1
23518
23518
  };
23519
23519
  }
23520
23520
  var token = match.token, offset = match.offset;
23521
23521
  i1 += offset;
23522
23522
  if (token === " ") {
23523
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23523
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23524
23524
  }
23525
23525
  tokens1 = _to_consumable_array$1(tokens1).concat([
23526
23526
  token
@@ -23539,7 +23539,7 @@ function indent(str, spaces) {
23539
23539
  if (contextKeys.some(function(el) {
23540
23540
  return el.startsWith(name);
23541
23541
  })) {
23542
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23542
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23543
23543
  }
23544
23544
  if (dateTimeIdentifiers.some(function(el) {
23545
23545
  return el === name;
@@ -23558,9 +23558,9 @@ function indent(str, spaces) {
23558
23558
  if (dateTimeIdentifiers.some(function(el) {
23559
23559
  return el.startsWith(name);
23560
23560
  })) {
23561
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23561
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23562
23562
  }
23563
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23563
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23564
23564
  v: nextMatch1
23565
23565
  };
23566
23566
  };
@@ -27549,6 +27549,7 @@ const fillText = (params, pinsSettingsList, context)=>new CanvasService().fillTe
27549
27549
  const strokeStyle = (params, pinsSettingsList, context)=>new CanvasService().strokeStyle(params, pinsSettingsList, context);
27550
27550
  const fillStyle = (params, pinsSettingsList, context)=>new CanvasService().fillStyle(params, pinsSettingsList, context);
27551
27551
  const lineWidth = (params, pinsSettingsList, context)=>new CanvasService().lineWidth(params, pinsSettingsList, context);
27552
+ const measureText = (params, pinsSettingsList, context)=>new CanvasService().measureText(params, pinsSettingsList, context);
27552
27553
 
27553
27554
  exports.canvas = canvas;
27554
27555
  exports.drawImage = drawImage;
@@ -27557,5 +27558,6 @@ exports.fillStyle = fillStyle;
27557
27558
  exports.fillText = fillText;
27558
27559
  exports.lineWidth = lineWidth;
27559
27560
  exports.loadImage = loadImage;
27561
+ exports.measureText = measureText;
27560
27562
  exports.strokeRect = strokeRect;
27561
27563
  exports.strokeStyle = strokeStyle;
package/index.esm.js CHANGED
@@ -23491,14 +23491,14 @@ function indent(str, spaces) {
23491
23491
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23492
23492
  // match is required
23493
23493
  if (!match) {
23494
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23494
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23495
23495
  v: nextMatch1
23496
23496
  };
23497
23497
  }
23498
23498
  var token = match.token, offset = match.offset;
23499
23499
  i1 += offset;
23500
23500
  if (token === " ") {
23501
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23501
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23502
23502
  }
23503
23503
  tokens1 = _to_consumable_array$1(tokens1).concat([
23504
23504
  token
@@ -23517,7 +23517,7 @@ function indent(str, spaces) {
23517
23517
  if (contextKeys.some(function(el) {
23518
23518
  return el.startsWith(name);
23519
23519
  })) {
23520
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23520
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23521
23521
  }
23522
23522
  if (dateTimeIdentifiers.some(function(el) {
23523
23523
  return el === name;
@@ -23536,9 +23536,9 @@ function indent(str, spaces) {
23536
23536
  if (dateTimeIdentifiers.some(function(el) {
23537
23537
  return el.startsWith(name);
23538
23538
  })) {
23539
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23539
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23540
23540
  }
23541
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23541
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23542
23542
  v: nextMatch1
23543
23543
  };
23544
23544
  };
@@ -27527,5 +27527,6 @@ const fillText = (params, pinsSettingsList, context)=>new CanvasService().fillTe
27527
27527
  const strokeStyle = (params, pinsSettingsList, context)=>new CanvasService().strokeStyle(params, pinsSettingsList, context);
27528
27528
  const fillStyle = (params, pinsSettingsList, context)=>new CanvasService().fillStyle(params, pinsSettingsList, context);
27529
27529
  const lineWidth = (params, pinsSettingsList, context)=>new CanvasService().lineWidth(params, pinsSettingsList, context);
27530
+ const measureText = (params, pinsSettingsList, context)=>new CanvasService().measureText(params, pinsSettingsList, context);
27530
27531
 
27531
- export { canvas, drawImage, fillRect, fillStyle, fillText, lineWidth, loadImage, strokeRect, strokeStyle };
27532
+ export { canvas, drawImage, fillRect, fillStyle, fillText, lineWidth, loadImage, measureText, strokeRect, strokeStyle };
@@ -8,3 +8,4 @@ export declare const fillText: (params: any, pinsSettingsList: PinsSettings[], c
8
8
  export declare const strokeStyle: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
9
9
  export declare const fillStyle: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
10
10
  export declare const lineWidth: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
11
+ export declare const measureText: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-canvas",
3
- "version": "0.25.4",
3
+ "version": "0.25.6",
4
4
  "dependencies": {
5
5
  "canvas": "^2.11.2"
6
6
  },
package/schema.json CHANGED
@@ -125,7 +125,7 @@
125
125
  "/strokeRect": {
126
126
  "post": {
127
127
  "tags": ["service"],
128
- "summary": "Dessiner un rectangle",
128
+ "summary": "Dessiner un rectangle vide",
129
129
  "description": "Dessine le contour d'un rectangle aux coordonnées spécifiées.",
130
130
  "parameters": [
131
131
  {
@@ -171,8 +171,8 @@
171
171
  "/fillRect": {
172
172
  "post": {
173
173
  "tags": ["service"],
174
- "summary": "Déssine un rectangle",
175
- "description": "Déssine un rectangle aux coordonnées spécifiées.",
174
+ "summary": "Déssine un rectangle plein",
175
+ "description": "Déssine un rectangle plein aux coordonnées spécifiées.",
176
176
  "parameters": [
177
177
  {
178
178
  "name": "x",