@node-projects/web-component-designer 0.1.80 → 0.1.81

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.
@@ -0,0 +1,16 @@
1
+ import { IPoint } from "../../../interfaces/IPoint";
2
+ export interface IMultiplayerService {
3
+ signOn(userInfo: userInfo): any;
4
+ }
5
+ export type userInfo = {
6
+ name: string;
7
+ color: string;
8
+ };
9
+ export type userContext = {
10
+ name: string;
11
+ };
12
+ export type cursor = {
13
+ point: IPoint;
14
+ state: 'none' | 'pointing' | 'chat';
15
+ document: string;
16
+ };
@@ -0,0 +1,6 @@
1
+ import { TypedEvent } from "@node-projects/base-custom-webcomponent";
2
+ import { userInfo } from "./IMultiplayerService";
3
+ export declare class MultiplayerService {
4
+ constructor(getUserInfo: () => userInfo, sendMessage: (message: any) => void, messageReceived: () => any);
5
+ cursorsChanged: TypedEvent<string>;
6
+ }
@@ -0,0 +1,5 @@
1
+ export class MultiplayerService {
2
+ constructor(getUserInfo, sendMessage, messageReceived) {
3
+ }
4
+ cursorsChanged;
5
+ }
@@ -18,7 +18,7 @@ export class CommonPropertiesService extends AbstractPropertiesService {
18
18
  service: this,
19
19
  attributeName: "class",
20
20
  propertyName: "className",
21
- propertyType: PropertyType.propertyAndAttribute
21
+ propertyType: PropertyType.attribute
22
22
  }, {
23
23
  name: "title",
24
24
  type: "string",
@@ -247,12 +247,6 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
247
247
  #node-projects-designer-search-container > #node-projects-designer-search-close::after {
248
248
  transform: translate(-50%, -50%) rotate(-45deg);
249
249
  }
250
-
251
- #node-projects-designer-canvas-canvas {
252
- margin: 0;
253
- padding: 0;
254
- border: none;
255
- }
256
250
  `;
257
251
  static template = html `
258
252
  <div style="display: flex;flex-direction: column;width: 100%;height: 100%; margin: 0 !important; padding: 0 !important; border: none !important;">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.80",
4
+ "version": "0.1.81",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",