Skip to content

layer context transform / scale don't seem to work #12

Description

@xzilja

I've created simple example below to test how certain transformations work on layers, demo is available at https://codesandbox.io/s/cool-varahamihira-i2vvd?file=/src/index.js:0-403

I might be missing something, but as far as I can tell that scale transform should work, yet no difference in display is visible with it added or removed.

import Concrete from "concretejs";

const viewport = new Concrete.Viewport({
  container: document.getElementById("app"),
  width: 500,
  height: 500
});

const layer = new Concrete.Layer();

viewport.add(layer);

const context = layer.scene.context;

context.fillRect(10, 10, 100, 100);
context.fillRect(110, 110, 100, 100);
context.fillRect(10, 210, 100, 100);
context.scale(2, 2); // Doesn't seem to work

viewport.render();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions