Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

cms / cms texture atlas padding

An agent that packages CMS image sprites needs supplied padded rectangles checked for mutual overlap and canvas containment.

POST https://detect.halowerk.com/v1/cms/cms-texture-atlas-padding

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "padding": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "rectangles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "x": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "y": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "width": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              },
              "height": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              }
            },
            "required": [
              "x",
              "y",
              "width",
              "height"
            ],
            "additionalProperties": false
          },
          "maxItems": 512,
          "minItems": 0
        }
      },
      "required": [
        "width",
        "height",
        "padding",
        "rectangles"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "width": 20,
    "height": 20,
    "padding": 1,
    "rectangles": [
      {
        "x": 1,
        "y": 1,
        "width": 4,
        "height": 4
      },
      {
        "x": 7,
        "y": 1,
        "width": 4,
        "height": 4
      }
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →