@hatiolab/things-scene 9.0.0-beta.2 → 9.0.0-beta.4
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/db.sqlite +0 -0
- package/dist/animation/animate.d.ts +4 -0
- package/dist/animation/animations/animation.d.ts +14 -0
- package/dist/animation/animations/fade.d.ts +4 -0
- package/dist/animation/animations/heartbeat.d.ts +4 -0
- package/dist/animation/animations/moving.d.ts +4 -0
- package/dist/animation/animations/outline.d.ts +10 -0
- package/dist/animation/animations/rotation.d.ts +4 -0
- package/dist/animation/animations/vibration.d.ts +4 -0
- package/dist/animation/compile.d.ts +1 -0
- package/dist/animation/delta.d.ts +19 -0
- package/dist/animation/index.d.ts +1 -0
- package/dist/command/command-change.d.ts +7 -0
- package/dist/command/command-migrate.d.ts +4 -0
- package/dist/command/command-migrate.js +85 -0
- package/dist/command/command-migrate.js.map +1 -0
- package/dist/command/command.d.ts +5 -0
- package/dist/command/snapshot-commander.d.ts +15 -0
- package/dist/components/anchor/anchor.d.ts +128 -0
- package/dist/components/anchor/ellipse-anchors.d.ts +2 -0
- package/dist/components/anchor/ellipse-anchors.js +38 -0
- package/dist/components/anchor/ellipse-anchors.js.map +1 -0
- package/dist/components/anchor/rect-anchors.d.ts +10 -0
- package/dist/components/audio.d.ts +25 -0
- package/dist/components/audio.js +141 -0
- package/dist/components/audio.js.map +1 -0
- package/dist/components/cloud.d.ts +13 -0
- package/dist/components/cloud.js +31 -0
- package/dist/components/cloud.js.map +1 -0
- package/dist/components/component.d.ts +227 -0
- package/dist/components/component.js +912 -0
- package/dist/components/component.js.map +1 -0
- package/dist/components/container-abstract.d.ts +51 -0
- package/dist/components/container-abstract.js +372 -0
- package/dist/components/container-abstract.js.map +1 -0
- package/dist/components/container.d.ts +38 -0
- package/dist/components/container.js +75 -0
- package/dist/components/container.js.map +1 -0
- package/dist/components/data/data-mapping.d.ts +16 -0
- package/dist/components/data/data.d.ts +8 -0
- package/dist/components/data/evaluator.d.ts +1 -0
- package/dist/components/donut.d.ts +15 -0
- package/dist/components/donut.js +74 -0
- package/dist/components/donut.js.map +1 -0
- package/dist/components/drawer/draw-image-pendable.d.ts +1 -0
- package/dist/components/drawer/effect.d.ts +1 -0
- package/dist/components/drawer/fill.d.ts +14 -0
- package/dist/components/drawer/format.d.ts +1 -0
- package/dist/components/drawer/line.d.ts +3 -0
- package/dist/components/drawer/stroke.d.ts +1 -0
- package/dist/components/drawer/text-wrapper.d.ts +10 -0
- package/dist/components/drawer/text.d.ts +3 -0
- package/dist/components/ellipse.d.ts +35 -0
- package/dist/components/ellipse.js +99 -0
- package/dist/components/ellipse.js.map +1 -0
- package/dist/components/file/ondropfile.d.ts +1 -0
- package/dist/components/fit/fit.d.ts +15 -0
- package/dist/components/geometry/transcoord.d.ts +41 -0
- package/dist/components/geometry/union.d.ts +6 -0
- package/dist/components/gif-view.d.ts +18 -0
- package/dist/components/gif-view.js +116 -0
- package/dist/components/gif-view.js.map +1 -0
- package/dist/components/global-ref.d.ts +36 -0
- package/dist/components/global-ref.js +128 -0
- package/dist/components/global-ref.js.map +1 -0
- package/dist/components/group.d.ts +15 -0
- package/dist/components/group.js +145 -0
- package/dist/components/group.js.map +1 -0
- package/dist/components/html/elements.d.ts +2 -0
- package/dist/components/html/fill.d.ts +1 -0
- package/dist/components/html/reposition.d.ts +1 -0
- package/dist/components/html/shadow.d.ts +1 -0
- package/dist/components/html-overlay-container.d.ts +27 -0
- package/dist/components/html-overlay-container.js +14 -0
- package/dist/components/html-overlay-container.js.map +1 -0
- package/dist/components/html-overlay-element.d.ts +25 -0
- package/dist/components/html-overlay-element.js +9 -0
- package/dist/components/html-overlay-element.js.map +1 -0
- package/dist/components/image-view.d.ts +19 -0
- package/dist/components/image-view.js +180 -0
- package/dist/components/image-view.js.map +1 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.js +39 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/info-window.d.ts +41 -0
- package/dist/components/info-window.js +425 -0
- package/dist/components/info-window.js.map +1 -0
- package/dist/components/line.d.ts +91 -0
- package/dist/components/line.js +303 -0
- package/dist/components/line.js.map +1 -0
- package/dist/components/local-ref.d.ts +47 -0
- package/dist/components/local-ref.js +103 -0
- package/dist/components/local-ref.js.map +1 -0
- package/dist/components/mixins/connectable.d.ts +45 -0
- package/dist/components/mixins/data-source.d.ts +9 -0
- package/dist/components/mixins/html-element.d.ts +24 -0
- package/dist/components/mixins/move-handle.d.ts +11 -0
- package/dist/components/mixins/rect-path.d.ts +13 -0
- package/dist/components/mixins/value-holder.d.ts +18 -0
- package/dist/components/mutater/bounds.d.ts +10 -0
- package/dist/components/mutater/path.d.ts +5 -0
- package/dist/components/ortholine.d.ts +21 -0
- package/dist/components/ortholine.js +814 -0
- package/dist/components/ortholine.js.map +1 -0
- package/dist/components/outline/ellipse-outline.d.ts +4 -0
- package/dist/components/outline/ellipse-outline.js +11 -0
- package/dist/components/outline/ellipse-outline.js.map +1 -0
- package/dist/components/outline/path-outline.d.ts +1 -0
- package/dist/components/path.d.ts +5 -0
- package/dist/components/path.js +40 -0
- package/dist/components/path.js.map +1 -0
- package/dist/components/polygon.d.ts +40 -0
- package/dist/components/polygon.js +157 -0
- package/dist/components/polygon.js.map +1 -0
- package/dist/components/polyline.d.ts +18 -0
- package/dist/components/polyline.js +102 -0
- package/dist/components/polyline.js.map +1 -0
- package/dist/components/popup.d.ts +48 -0
- package/dist/components/popup.js +138 -0
- package/dist/components/popup.js.map +1 -0
- package/dist/components/rect.d.ts +26 -0
- package/dist/components/rect.js +91 -0
- package/dist/components/rect.js.map +1 -0
- package/dist/components/retention/retention-manager.d.ts +8 -0
- package/dist/components/root-container.d.ts +90 -0
- package/dist/components/root-container.js +478 -0
- package/dist/components/root-container.js.map +1 -0
- package/dist/components/ruler.d.ts +16 -0
- package/dist/components/ruler.js +77 -0
- package/dist/components/ruler.js.map +1 -0
- package/dist/components/shape.d.ts +25 -0
- package/dist/components/shape.js +80 -0
- package/dist/components/shape.js.map +1 -0
- package/dist/components/star.d.ts +13 -0
- package/dist/components/star.js +80 -0
- package/dist/components/star.js.map +1 -0
- package/dist/components/text/substitutor.d.ts +3 -0
- package/dist/components/text.d.ts +8 -0
- package/dist/components/text.js +15 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/three-container.d.ts +60 -0
- package/dist/components/three-container.js +515 -0
- package/dist/components/three-container.js.map +1 -0
- package/dist/components/triangle.d.ts +15 -0
- package/dist/components/triangle.js +76 -0
- package/dist/components/triangle.js.map +1 -0
- package/dist/const.d.ts +39 -0
- package/dist/core/collection.d.ts +8 -0
- package/dist/core/debug.d.ts +1 -0
- package/dist/core/deep-equals.d.ts +1 -0
- package/dist/core/dom-to-image.d.ts +127 -0
- package/dist/core/event.d.ts +92 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/list.d.ts +32 -0
- package/dist/core/logger.d.ts +3 -0
- package/dist/core/memoize.d.ts +6 -0
- package/dist/core/mixin.d.ts +1 -0
- package/dist/core/obj-accessor.d.ts +1 -0
- package/dist/core/reference-map.d.ts +14 -0
- package/dist/core/round-rect.d.ts +19 -0
- package/dist/core/script-loader.d.ts +3 -0
- package/dist/core/snapshot-taker.d.ts +12 -0
- package/dist/core/stack.d.ts +2 -0
- package/dist/core/timecapsule.d.ts +18 -0
- package/dist/core/utils.d.ts +9 -0
- package/dist/decorator/anchors-decorator.d.ts +31 -0
- package/dist/decorator/data-spread-decorator.d.ts +1 -0
- package/dist/decorator/decotag-decorator.d.ts +1 -0
- package/dist/decorator/index.d.ts +2 -0
- package/dist/decorator/link-decorator.d.ts +1 -0
- package/dist/effect/gradation.d.ts +1 -0
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/shadow.d.ts +2 -0
- package/dist/effect/turn.d.ts +1 -0
- package/dist/event/event-engine.d.ts +12 -0
- package/dist/event/event-pump.d.ts +11 -0
- package/dist/event/event-tracker.d.ts +21 -0
- package/dist/event/index.d.ts +2 -0
- package/dist/event/ua-event-handler.d.ts +32 -0
- package/dist/event-map/event-map.d.ts +9 -0
- package/dist/event-map/index.d.ts +1 -0
- package/dist/event-map/move-handler.d.ts +1 -0
- package/dist/event-map/text-editor-lite.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/layer/action/emphasize.d.ts +2 -0
- package/dist/layer/action/popup.d.ts +5 -0
- package/dist/layer/action/pressed.d.ts +2 -0
- package/dist/layer/add-layer.d.ts +42 -0
- package/dist/layer/add-layer.js +142 -0
- package/dist/layer/add-layer.js.map +1 -0
- package/dist/layer/decotag-layer.d.ts +27 -0
- package/dist/layer/decotag-layer.js +105 -0
- package/dist/layer/decotag-layer.js.map +1 -0
- package/dist/layer/guide-layer.d.ts +44 -0
- package/dist/layer/guide-layer.js +261 -0
- package/dist/layer/guide-layer.js.map +1 -0
- package/dist/layer/index.d.ts +7 -0
- package/dist/layer/index.js +11 -0
- package/dist/layer/index.js.map +1 -0
- package/dist/layer/layer.d.ts +32 -0
- package/dist/layer/layer.js +155 -0
- package/dist/layer/layer.js.map +1 -0
- package/dist/layer/model-layer.d.ts +46 -0
- package/dist/layer/model-layer.js +402 -0
- package/dist/layer/model-layer.js.map +1 -0
- package/dist/layer/modeler/anchor-handler.d.ts +36 -0
- package/dist/layer/modeler/control-handler.d.ts +18 -0
- package/dist/layer/modeler/focus-outline.d.ts +5 -0
- package/dist/layer/modeler/group-outline.d.ts +5 -0
- package/dist/layer/modeler/index.d.ts +7 -0
- package/dist/layer/modeler/path-handler.d.ts +22 -0
- package/dist/layer/modeler/resizer.d.ts +13 -0
- package/dist/layer/modeler/rotator.d.ts +15 -0
- package/dist/layer/modeler/rotator.js +120 -0
- package/dist/layer/modeler/rotator.js.map +1 -0
- package/dist/layer/modeling-layer.d.ts +66 -0
- package/dist/layer/modeling-layer.js +451 -0
- package/dist/layer/modeling-layer.js.map +1 -0
- package/dist/layer/selection/selected-finder.d.ts +1 -0
- package/dist/layer/selection-layer.d.ts +42 -0
- package/dist/layer/selection-layer.js +307 -0
- package/dist/layer/selection-layer.js.map +1 -0
- package/dist/layer/shift-layer.d.ts +18 -0
- package/dist/layer/shift-layer.js +61 -0
- package/dist/layer/shift-layer.js.map +1 -0
- package/dist/layout/absolute.d.ts +8 -0
- package/dist/layout/card.d.ts +7 -0
- package/dist/layout/html-absolute.d.ts +8 -0
- package/dist/layout/index.d.ts +8 -0
- package/dist/layout/index.js +12 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/layout.d.ts +11 -0
- package/dist/layout/linear-horizontal.d.ts +7 -0
- package/dist/layout/linear-vertical.d.ts +7 -0
- package/dist/layout/table.d.ts +9 -0
- package/dist/layout/three.d.ts +8 -0
- package/dist/layout/three.js +20 -0
- package/dist/layout/three.js.map +1 -0
- package/dist/license/license.d.ts +18 -0
- package/dist/model/compile.d.ts +1 -0
- package/dist/model/compile.js +28 -0
- package/dist/model/compile.js.map +1 -0
- package/dist/model/duplicate.d.ts +1 -0
- package/dist/model/index.d.ts +3 -0
- package/dist/model/selector.d.ts +2 -0
- package/dist/style/compile.d.ts +1 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/things-scene/api/add-start.d.ts +1 -0
- package/dist/things-scene/api/add.d.ts +5 -0
- package/dist/things-scene/api/align.d.ts +1 -0
- package/dist/things-scene/api/change.d.ts +2 -0
- package/dist/things-scene/api/clipboard.d.ts +3 -0
- package/dist/things-scene/api/distribute.d.ts +1 -0
- package/dist/things-scene/api/duplicate.d.ts +4 -0
- package/dist/things-scene/api/fullscreen.d.ts +1 -0
- package/dist/things-scene/api/group.d.ts +8 -0
- package/dist/things-scene/api/group.js +78 -0
- package/dist/things-scene/api/group.js.map +1 -0
- package/dist/things-scene/api/ids.d.ts +4 -0
- package/dist/things-scene/api/index.d.ts +15 -0
- package/dist/things-scene/api/listener.d.ts +3 -0
- package/dist/things-scene/api/remove.d.ts +4 -0
- package/dist/things-scene/api/symmetry.d.ts +2 -0
- package/dist/things-scene/api/symmetry.js +39 -0
- package/dist/things-scene/api/symmetry.js.map +1 -0
- package/dist/things-scene/api/to-data-url.d.ts +1 -0
- package/dist/things-scene/api/to-data-url.js +69 -0
- package/dist/things-scene/api/to-data-url.js.map +1 -0
- package/dist/things-scene/api/zorder.d.ts +2 -0
- package/dist/things-scene/application-context.d.ts +40 -0
- package/dist/things-scene/config.d.ts +4 -0
- package/dist/things-scene/create.d.ts +20 -0
- package/dist/things-scene/fps.d.ts +1 -0
- package/dist/things-scene/index.d.ts +17 -0
- package/dist/things-scene/index.js +23 -0
- package/dist/things-scene/index.js.map +1 -0
- package/dist/things-scene/polyfill.d.ts +2 -0
- package/dist/things-scene/scene.d.ts +155 -0
- package/dist/things-scene/version.d.ts +2 -0
- package/dist/threed/common.d.ts +22 -0
- package/dist/threed/control/three-controls.d.ts +11 -0
- package/dist/threed/control/three-controls.js +620 -0
- package/dist/threed/control/three-controls.js.map +1 -0
- package/dist/threed/html/elements.d.ts +2 -0
- package/dist/threed/real-object-camera-meshed.d.ts +12 -0
- package/dist/threed/real-object-camera-meshed.js +49 -0
- package/dist/threed/real-object-camera-meshed.js.map +1 -0
- package/dist/threed/real-object-camera.d.ts +9 -0
- package/dist/threed/real-object-camera.js +31 -0
- package/dist/threed/real-object-camera.js.map +1 -0
- package/dist/threed/real-object-dom-element.d.ts +20 -0
- package/dist/threed/real-object-dom-element.js +78 -0
- package/dist/threed/real-object-dom-element.js.map +1 -0
- package/dist/threed/real-object-dummy.d.ts +6 -0
- package/dist/threed/real-object-dummy.js +11 -0
- package/dist/threed/real-object-dummy.js.map +1 -0
- package/dist/threed/real-object-extrude.d.ts +19 -0
- package/dist/threed/real-object-extrude.js +171 -0
- package/dist/threed/real-object-extrude.js.map +1 -0
- package/dist/threed/real-object-gltf.d.ts +15 -0
- package/dist/threed/real-object-gltf.js +97 -0
- package/dist/threed/real-object-gltf.js.map +1 -0
- package/dist/threed/real-object-group.d.ts +5 -0
- package/dist/threed/real-object-group.js +11 -0
- package/dist/threed/real-object-group.js.map +1 -0
- package/dist/threed/real-object-mesh.d.ts +11 -0
- package/dist/threed/real-object-mesh.js +55 -0
- package/dist/threed/real-object-mesh.js.map +1 -0
- package/dist/threed/real-object-plane.d.ts +6 -0
- package/dist/threed/real-object-plane.js +23 -0
- package/dist/threed/real-object-plane.js.map +1 -0
- package/dist/threed/real-object-scene.d.ts +21 -0
- package/dist/threed/real-object-scene.js +89 -0
- package/dist/threed/real-object-scene.js.map +1 -0
- package/dist/threed/real-object-sprite.d.ts +12 -0
- package/dist/threed/real-object-sprite.js +35 -0
- package/dist/threed/real-object-sprite.js.map +1 -0
- package/dist/threed/real-object-text.d.ts +16 -0
- package/dist/threed/real-object-text.js +70 -0
- package/dist/threed/real-object-text.js.map +1 -0
- package/dist/threed/real-object.d.ts +48 -0
- package/dist/threed/real-object.js +199 -0
- package/dist/threed/real-object.js.map +1 -0
- package/dist/threed/texture/text-texture.d.ts +8 -0
- package/dist/threed/three-dimensional-container.d.ts +7 -0
- package/dist/threed/three-dimensional-container.js +2 -0
- package/dist/threed/three-dimensional-container.js.map +1 -0
- package/dist/threed/utils/bound-uv-generator.d.ts +16 -0
- package/dist/types.d.ts +53 -0
- package/dist/types.js +368 -0
- package/dist/types.js.map +1 -0
- package/package.json +1 -1
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.mjs +6 -6
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { Component } from '@hatiolab/things-scene';
|
|
5
|
+
// import { Component } from '@hatiolab/things-scene'
|
|
6
|
+
export default class Cloud extends Component {
|
|
7
|
+
prerender(ctx) {
|
|
8
|
+
//TODO center()를 구현할 때까지, 아무 구현없이 오버라이드한다.
|
|
9
|
+
}
|
|
10
|
+
render(ctx) {
|
|
11
|
+
var { x, y } = this.state;
|
|
12
|
+
ctx.beginPath();
|
|
13
|
+
ctx.moveTo(x, y);
|
|
14
|
+
ctx.bezierCurveTo(x - 40, y + 20, x - 40, y + 70, x + 50, y + 70);
|
|
15
|
+
ctx.bezierCurveTo(x + 80, y + 100, x + 150, y + 100, x + 170, y + 70);
|
|
16
|
+
ctx.bezierCurveTo(x + 250, y + 70, x + 250, y + 40, x + 220, y + 30);
|
|
17
|
+
ctx.bezierCurveTo(x + 260, y - 40, x + 200, y - 50, x + 170, y - 30);
|
|
18
|
+
ctx.bezierCurveTo(x + 150, y - 75, x + 80, y - 60, x + 80, y - 30);
|
|
19
|
+
ctx.bezierCurveTo(x + 30, y - 75, x - 20, y - 60, x, y);
|
|
20
|
+
ctx.closePath();
|
|
21
|
+
}
|
|
22
|
+
get path() {
|
|
23
|
+
var { x, y } = this.state;
|
|
24
|
+
return [{ x, y }];
|
|
25
|
+
}
|
|
26
|
+
set path(path) {
|
|
27
|
+
/* do nothing */
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
Component.register('cloud', Cloud);
|
|
31
|
+
//# sourceMappingURL=cloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../src/components/cloud.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAa,MAAM,wBAAwB,CAAA;AAE7D,qDAAqD;AAErD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS;IAC1C,SAAS,CAAC,GAA6B;QACrC,0CAA0C;IAC5C,CAAC;IAED,MAAM,CAAC,GAA6B;QAClC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAEzB,GAAG,CAAC,SAAS,EAAE,CAAA;QAEf,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAEhB,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;QACjE,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;QACrE,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;QACpE,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;QACpE,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAA;QAClE,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QAEvD,GAAG,CAAC,SAAS,EAAE,CAAA;IACjB,CAAC;IAED,IAAI,IAAI;QACN,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAEzB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IACnB,CAAC;IAED,IAAI,IAAI,CAAC,IAAI;QACX,gBAAgB;IAClB,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\n\nimport { Component, DIMENSION } from '@hatiolab/things-scene'\n\n// import { Component } from '@hatiolab/things-scene'\n\nexport default class Cloud extends Component {\n prerender(ctx: CanvasRenderingContext2D) {\n //TODO center()를 구현할 때까지, 아무 구현없이 오버라이드한다.\n }\n\n render(ctx: CanvasRenderingContext2D) {\n var { x, y } = this.state\n\n ctx.beginPath()\n\n ctx.moveTo(x, y)\n\n ctx.bezierCurveTo(x - 40, y + 20, x - 40, y + 70, x + 50, y + 70)\n ctx.bezierCurveTo(x + 80, y + 100, x + 150, y + 100, x + 170, y + 70)\n ctx.bezierCurveTo(x + 250, y + 70, x + 250, y + 40, x + 220, y + 30)\n ctx.bezierCurveTo(x + 260, y - 40, x + 200, y - 50, x + 170, y - 30)\n ctx.bezierCurveTo(x + 150, y - 75, x + 80, y - 60, x + 80, y - 30)\n ctx.bezierCurveTo(x + 30, y - 75, x - 20, y - 60, x, y)\n\n ctx.closePath()\n }\n\n get path() {\n var { x, y } = this.state\n\n return [{ x, y }]\n }\n\n set path(path) {\n /* do nothing */\n }\n}\n\nComponent.register('cloud', Cloud)\n"]}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
declare class Component {
|
|
2
|
+
static get nature(): {
|
|
3
|
+
mutable: boolean;
|
|
4
|
+
resizable: boolean;
|
|
5
|
+
rotatable: boolean;
|
|
6
|
+
properties: never[];
|
|
7
|
+
'value-property': string;
|
|
8
|
+
};
|
|
9
|
+
static register(type: any, clazz: any): any;
|
|
10
|
+
static get residents(): WeakMap<object, any>;
|
|
11
|
+
static registerDecorator(name: any, decorator: any): void;
|
|
12
|
+
constructor(model: any, app: any);
|
|
13
|
+
_app: any;
|
|
14
|
+
_model: any;
|
|
15
|
+
_state: {};
|
|
16
|
+
_delta: {
|
|
17
|
+
theta: number;
|
|
18
|
+
tx: number;
|
|
19
|
+
ty: number;
|
|
20
|
+
sx: number;
|
|
21
|
+
sy: number;
|
|
22
|
+
fade: number;
|
|
23
|
+
};
|
|
24
|
+
created(): void;
|
|
25
|
+
added(parent: any): void;
|
|
26
|
+
removed(parent: any): void;
|
|
27
|
+
ready(): Promise<void>;
|
|
28
|
+
set data(arg: any);
|
|
29
|
+
get data(): any;
|
|
30
|
+
touch(): void;
|
|
31
|
+
updatedAt: number | undefined;
|
|
32
|
+
clearCache(...attrs: any[]): void;
|
|
33
|
+
removeSelf(completely: any): void;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
_disposed: boolean | undefined;
|
|
36
|
+
get nature(): any;
|
|
37
|
+
get disposed(): boolean;
|
|
38
|
+
isLayer(): boolean;
|
|
39
|
+
isGroup(): boolean;
|
|
40
|
+
isContainer(): boolean;
|
|
41
|
+
isLine(): boolean;
|
|
42
|
+
isRoot(): boolean;
|
|
43
|
+
isRootModel(): boolean;
|
|
44
|
+
is3dish(): boolean;
|
|
45
|
+
isTemplate(): boolean;
|
|
46
|
+
isHTMLElement(): boolean;
|
|
47
|
+
isConnectable(): boolean;
|
|
48
|
+
replaceRefids(replaceMap: any): void;
|
|
49
|
+
get retention(): number;
|
|
50
|
+
get hasTextProperty(): boolean;
|
|
51
|
+
get app(): any;
|
|
52
|
+
/** Properties Getter/Setter */
|
|
53
|
+
get model(): any;
|
|
54
|
+
get state(): any;
|
|
55
|
+
get hierarchy(): any;
|
|
56
|
+
set textHidden(arg: boolean);
|
|
57
|
+
get textHidden(): boolean;
|
|
58
|
+
_textHidden: any;
|
|
59
|
+
get(property: any): any;
|
|
60
|
+
/**
|
|
61
|
+
* 컴포넌트의 모델 속성값을 바꾸는 메쏘드.
|
|
62
|
+
*
|
|
63
|
+
* - 하나의 속성을 변경하는 경우.
|
|
64
|
+
* component.set('top', 10)
|
|
65
|
+
* - 여러개의 속성을 변경하는 경우.
|
|
66
|
+
* component.set({top:10, left:50})
|
|
67
|
+
*/
|
|
68
|
+
set(props: any, propval: any): any;
|
|
69
|
+
getState(property: any): any;
|
|
70
|
+
setState(props: any, propval: any): any;
|
|
71
|
+
get root(): any;
|
|
72
|
+
get rootModel(): any;
|
|
73
|
+
set parent(arg: any);
|
|
74
|
+
get parent(): any;
|
|
75
|
+
_parent: any;
|
|
76
|
+
get anchors(): any;
|
|
77
|
+
findAnchor(name: any): any;
|
|
78
|
+
isDescendible(container: any): boolean;
|
|
79
|
+
getContext(): any;
|
|
80
|
+
set center(arg: {
|
|
81
|
+
x: any;
|
|
82
|
+
y: any;
|
|
83
|
+
});
|
|
84
|
+
get center(): {
|
|
85
|
+
x: any;
|
|
86
|
+
y: any;
|
|
87
|
+
};
|
|
88
|
+
set path(arg: never[]);
|
|
89
|
+
get path(): never[];
|
|
90
|
+
set location(arg: {
|
|
91
|
+
x: any;
|
|
92
|
+
y: any;
|
|
93
|
+
});
|
|
94
|
+
get location(): {
|
|
95
|
+
x: any;
|
|
96
|
+
y: any;
|
|
97
|
+
};
|
|
98
|
+
set dimension(arg: any);
|
|
99
|
+
get dimension(): any;
|
|
100
|
+
set bounds(arg: {
|
|
101
|
+
left: any;
|
|
102
|
+
top: any;
|
|
103
|
+
width: number;
|
|
104
|
+
height: number;
|
|
105
|
+
});
|
|
106
|
+
get bounds(): {
|
|
107
|
+
left: any;
|
|
108
|
+
top: any;
|
|
109
|
+
width: number;
|
|
110
|
+
height: number;
|
|
111
|
+
};
|
|
112
|
+
get drawPath(): never[];
|
|
113
|
+
outline(progress: any): any;
|
|
114
|
+
set strokeStyle(arg: any);
|
|
115
|
+
get strokeStyle(): any;
|
|
116
|
+
set fillStyle(arg: any);
|
|
117
|
+
get fillStyle(): any;
|
|
118
|
+
set fontColor(arg: any);
|
|
119
|
+
get fontColor(): any;
|
|
120
|
+
set rotation(arg: any);
|
|
121
|
+
get rotation(): any;
|
|
122
|
+
contains(x: any, y: any): boolean;
|
|
123
|
+
get mutable(): any;
|
|
124
|
+
get resizable(): any;
|
|
125
|
+
adjustResize(bounds: any, origin_bounds: any, diagonal: any): any;
|
|
126
|
+
get rotatable(): any;
|
|
127
|
+
adjustRotation(rotation: any, step: any): any;
|
|
128
|
+
get capturable(): any;
|
|
129
|
+
get stuck(): boolean;
|
|
130
|
+
findFirst(finder: any, ...others: any[]): Component | undefined;
|
|
131
|
+
findAll(s: any, ...others: any[]): any;
|
|
132
|
+
capture(x: any, y: any, except: any): false | Component | undefined;
|
|
133
|
+
prepare(resolve: any, reject: any): void;
|
|
134
|
+
prepareIf(condition: any): void;
|
|
135
|
+
get decotag(): string;
|
|
136
|
+
get decorators(): string[];
|
|
137
|
+
set hidden(arg: any);
|
|
138
|
+
get hidden(): any;
|
|
139
|
+
draw(context: any): void;
|
|
140
|
+
delta(attr: any, value: any): any;
|
|
141
|
+
prerender(context: any): void;
|
|
142
|
+
render(context: any): void;
|
|
143
|
+
postrender(context: any): void;
|
|
144
|
+
drawText(context: any): void;
|
|
145
|
+
drawStroke(context: any, override: any): void;
|
|
146
|
+
drawFill(context: any, override: any): void;
|
|
147
|
+
animate(opts: any): {
|
|
148
|
+
start: () => any;
|
|
149
|
+
stop: () => any;
|
|
150
|
+
};
|
|
151
|
+
_animate: {
|
|
152
|
+
start: () => any;
|
|
153
|
+
stop: () => any;
|
|
154
|
+
} | undefined;
|
|
155
|
+
move({ x, y }: {
|
|
156
|
+
x: any;
|
|
157
|
+
y: any;
|
|
158
|
+
}): void;
|
|
159
|
+
symmetryX(x: any): void;
|
|
160
|
+
symmetryY(y: any): void;
|
|
161
|
+
get animation(): any;
|
|
162
|
+
_animation: any;
|
|
163
|
+
effect(context: any, model: any): void;
|
|
164
|
+
set started(arg: any);
|
|
165
|
+
invalidate(): void;
|
|
166
|
+
get font(): string;
|
|
167
|
+
get lineHeight(): any;
|
|
168
|
+
defaultTextSubstitutor(): string;
|
|
169
|
+
get textSubstitutor(): () => string;
|
|
170
|
+
_text_substitutor: (() => string) | undefined;
|
|
171
|
+
set text(arg: any);
|
|
172
|
+
get text(): any;
|
|
173
|
+
textLines(context: any): string[][];
|
|
174
|
+
get textBounds(): {
|
|
175
|
+
left: any;
|
|
176
|
+
top: any;
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
};
|
|
180
|
+
get textRotation(): number;
|
|
181
|
+
get rotatePoint(): {
|
|
182
|
+
x: any;
|
|
183
|
+
y: any;
|
|
184
|
+
};
|
|
185
|
+
trim(): void;
|
|
186
|
+
set value(arg: any);
|
|
187
|
+
get value(): any;
|
|
188
|
+
get mappings(): any;
|
|
189
|
+
get RealObject(): void;
|
|
190
|
+
_realObject: void | undefined;
|
|
191
|
+
buildRealObject(): void;
|
|
192
|
+
serialize(...others: any[]): string;
|
|
193
|
+
get controls(): void;
|
|
194
|
+
closeScene(data: any): void;
|
|
195
|
+
}
|
|
196
|
+
declare namespace Component {
|
|
197
|
+
export { union };
|
|
198
|
+
export { transcoordR };
|
|
199
|
+
export { transcoordRR };
|
|
200
|
+
export { createCanvas };
|
|
201
|
+
export const memoize: typeof import("../core/memoize").intercept;
|
|
202
|
+
export const mixin: typeof core.mixin;
|
|
203
|
+
export { drawText };
|
|
204
|
+
export { font };
|
|
205
|
+
export { textLines };
|
|
206
|
+
export { drawStroke };
|
|
207
|
+
export { drawFill };
|
|
208
|
+
export { reposition };
|
|
209
|
+
export { RetentionManager };
|
|
210
|
+
export { template };
|
|
211
|
+
export { buildSubstitutor };
|
|
212
|
+
}
|
|
213
|
+
export default Component;
|
|
214
|
+
import union from "./geometry/union";
|
|
215
|
+
import { transcoordR } from "./geometry/transcoord";
|
|
216
|
+
import { transcoordRR } from "./geometry/transcoord";
|
|
217
|
+
import { createCanvas } from "./html/elements";
|
|
218
|
+
import * as core from "../core";
|
|
219
|
+
import { drawText } from "./drawer/text";
|
|
220
|
+
import { font } from "./drawer/text";
|
|
221
|
+
import { textLines } from "./drawer/text";
|
|
222
|
+
import drawStroke from "./drawer/stroke";
|
|
223
|
+
import { drawFill } from "./drawer/fill";
|
|
224
|
+
import reposition from "./html/reposition";
|
|
225
|
+
import RetentionManager from "./retention/retention-manager";
|
|
226
|
+
import template from "lodash/template";
|
|
227
|
+
import { buildSubstitutor } from "./text/substitutor";
|